/* ==========================================================================
   Multigravity v1.2.0 Showcase Styles
   - Hero App Store Launch Ribbon & Desktop CTA refinement
   - iPhone + iPad 13" Dual-Pane Workbench & Offline Demo Showcase (#devices)
   - v1.2.0 Flagship Interactive Stage: APNs / Live Activity / Build 17 Sounds / Relay (#v120Stage)
   - Dedicated Swarm Section (#swarm) & v1.1.8/v1.2.0 Feature Mini-Demos
   ========================================================================== */

/* ---------- 1. Hero App Store Ribbon & Desktop CTA ---------- */
.launch-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin:0 auto 18px;
  padding:6px 14px 6px 10px;
  border-radius:980px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.16);
  color:#f5f5f7;
  font-size:13px;
  font-weight:500;
  letter-spacing:.005em;
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  transition:background .25s var(--ease),border-color .25s var(--ease),transform .25s var(--ease);
}
.launch-pill:hover{
  background:rgba(255,255,255,.14);
  border-color:rgba(41,151,255,.55);
  transform:translateY(-1px);
}
.launch-pill .lp-dot{
  display:inline-flex;
  align-items:center;
  padding:2px 8px;
  border-radius:99px;
  background:linear-gradient(135deg,#0a84ff,#5e5ce6);
  color:#fff;
  font-size:11px;
  font-weight:700;
  letter-spacing:.02em;
}
.launch-pill .lp-arr{
  color:#2997ff;
  font-weight:600;
}

/* Desktop also displays compact App Store CTA alongside One-Click Install */
.btn.appstore-desk{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:rgba(255,255,255,.1);
  color:#f5f5f7;
  border:1px solid rgba(255,255,255,.22);
  padding:10px 20px;
}
.btn.appstore-desk:hover{
  background:rgba(255,255,255,.18);
  border-color:rgba(255,255,255,.38);
}
.is-ios .btn.appstore-desk{display:none}

/* Cockpit optional badge */
.opt-badge{
  display:inline-flex;
  align-items:center;
  gap:5px;
  margin-left:8px;
  padding:2px 9px;
  border-radius:99px;
  font-size:12px;
  font-weight:600;
  vertical-align:middle;
  background:rgba(0,113,227,.1);
  color:var(--blue);
  letter-spacing:0;
}

/* ---------- 2. New Section: iPhone + iPad 13" & Offline Demo (#devices) ---------- */
.devices-sec{
  background:var(--gray-bg);
  color:var(--ink);
  padding:clamp(76px,10vw,132px) 0;
  overflow:hidden;
}
.devices-head{
  text-align:center;
  max-width:780px;
  margin:0 auto 38px;
}
.devices-head .lead{
  margin-top:16px;
}
.devices-switch-wrap{
  display:flex;
  justify-content:center;
  margin-bottom:34px;
}
.dev-tablist{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:5px;
  border-radius:16px;
  background:#e8e8ed;
  border:1px solid rgba(0,0,0,.06);
  max-width:100%;
  overflow-x:auto;
  scroll-snap-type:inline proximity;
  scrollbar-width:none;
}
.dev-tablist::-webkit-scrollbar{display:none}
.dev-tab{
  position:relative;
  flex:none;
  scroll-snap-align:start;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:9px 18px;
  border-radius:12px;
  font-size:14.5px;
  font-weight:600;
  color:var(--ink-2);
  transition:color .2s var(--ease),background .2s var(--ease);
}
.dev-tab:hover{color:var(--ink)}
.dev-tab[aria-selected="true"]{
  background:#fff;
  color:var(--ink);
  box-shadow:0 2px 10px rgba(0,0,0,.07);
}
.dev-tab[aria-selected="true"]::after{
  content:"";
  position:absolute;
  inset:auto 18px 2px;
  border-block-end:2.5px solid var(--blue);
  border-radius:2px;
}

.dev-panels{
  max-width:1080px;
  margin:0 auto;
}
.dev-panel[hidden]{display:none}
.dev-panel-in{
  display:flex;
  flex-direction:column;
  align-items:center;
}

/* Pure CSS/SVG iPad 13" Landscape Dual-Pane Workbench */
.ipad-frame{
  width:min(100%,940px);
  background:#111114;
  border-radius:30px;
  padding:14px;
  box-shadow:
    0 34px 70px -24px rgba(0,0,0,.28),
    0 10px 26px -10px rgba(0,0,0,.14),
    inset 0 0 0 1.5px rgba(255,255,255,.14);
  position:relative;
}
.ipad-screen{
  background:#f5f5f7;
  border-radius:19px;
  overflow:hidden;
  color:#1d1d1f;
  border:1px solid rgba(0,0,0,.08);
  text-align:left;
}
.ipad-sb{
  height:28px;
  padding:0 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:11px;
  font-weight:600;
  color:#1d1d1f;
  background:#fbfbfd;
  border-bottom:1px solid rgba(0,0,0,.06);
}
.ipad-sb-r{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:#6e6e73;
  font-size:10.5px;
}
.ipad-demo-pill{
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:2px 8px;
  border-radius:99px;
  background:rgba(0,113,227,.1);
  color:#0071e3;
  font-size:10px;
  font-weight:700;
}
.ipad-split{
  display:grid;
  grid-template-columns:280px 1fr;
  min-height:468px;
}
.ipad-side{
  background:#f2f2f7;
  border-right:1px solid rgba(0,0,0,.08);
  padding:12px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.ipad-side-hd{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:2px 4px 4px;
}
.ipad-side-hd b{
  font-size:17px;
  letter-spacing:-.02em;
}
.ipad-side-acts{
  display:flex;
  gap:6px;
}
.ipad-side-acts i{
  width:24px;
  height:24px;
  border-radius:50%;
  background:#fff;
  border:1px solid rgba(0,0,0,.07);
  display:grid;
  place-items:center;
  font-style:normal;
  font-size:12px;
  color:#1d1d1f;
}
.ipad-qbar{
  background:#fff;
  border-radius:11px;
  padding:8px 10px;
  display:flex;
  align-items:center;
  gap:7px;
  font-size:11px;
  border:1px solid rgba(0,0,0,.05);
}
.ipad-qbar .iq-tr{
  flex:1;
  height:5px;
  border-radius:99px;
  background:#e5e5ea;
  position:relative;
  overflow:visible;
}
.ipad-qbar .iq-tr span{
  display:block;
  height:100%;
  width:74%;
  border-radius:99px;
  background:linear-gradient(90deg,#30d158,#34c759);
}
.ipad-qbar .iq-tr em{
  position:absolute;
  top:-2px;
  left:80%;
  width:2px;
  height:9px;
  border-radius:1px;
  background:#1d1d1f;
}
.ipad-bgcap{
  background:rgba(10,132,255,.1);
  color:#0066cc;
  border-radius:10px;
  padding:7px 10px;
  font-size:11px;
  font-weight:600;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.ipad-item{
  background:#fff;
  border-radius:12px;
  padding:9px 10px;
  border:1px solid rgba(0,0,0,.05);
  display:grid;
  gap:4px;
}
.ipad-item.active{
  background:#0071e3;
  color:#fff;
  border-color:#0071e3;
  box-shadow:0 6px 16px rgba(0,113,227,.24);
}
.ipad-item-r1{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:6px;
}
.ipad-item-r1 b{
  font-size:12px;
  font-weight:600;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.ipad-item-r2{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:6px;
  font-size:10.5px;
  color:#6e6e73;
}
.ipad-item.active .ipad-item-r2{color:rgba(255,255,255,.82)}
.ipad-pr-mini{
  display:inline-flex;
  align-items:center;
  gap:3px;
  padding:1.5px 6px;
  border-radius:99px;
  font-size:9.5px;
  font-weight:700;
  background:rgba(137,87,229,.15);
  color:#8957e5;
}
.ipad-item.active .ipad-pr-mini{
  background:rgba(255,255,255,.22);
  color:#fff;
}
.ipad-st-mini{
  font-size:9.5px;
  font-weight:700;
  padding:1.5px 6px;
  border-radius:99px;
}
.ipad-st-mini.run{background:rgba(0,113,227,.12);color:#0071e3}
.ipad-st-mini.act{background:rgba(255,159,10,.16);color:#c86a00}

/* Right Detail Pane on iPad */
.ipad-main{
  background:#fff;
  display:flex;
  flex-direction:column;
}
.ipad-mhd{
  padding:10px 16px;
  border-bottom:1px solid rgba(0,0,0,.07);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.ipad-mhd-l{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.ipad-mhd-l b{font-size:13.5px;font-weight:700}
.ipad-mhd-l small{font-size:10.5px;color:#6e6e73;display:flex;align-items:center;gap:6px}
.ipad-ctx-dot{
  width:8px;height:8px;border-radius:50%;
  border:2px solid #30d158;display:inline-block;
}
.ipad-mhd-r{
  display:flex;
  align-items:center;
  gap:6px;
}
.ipad-pr-pill{
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:4px 9px;
  border-radius:99px;
  background:#f3ebff;
  border:1px solid #d9c2ff;
  color:#6e40c9;
  font-size:11px;
  font-weight:600;
}
.ipad-pr-pill i{
  width:6px;height:6px;border-radius:50%;background:#8957e5;display:block;
}
.ipad-mbody{
  padding:14px 16px;
  display:flex;
  flex-direction:column;
  gap:11px;
  flex:1;
}
.ipad-ub{
  align-self:flex-end;
  background:#0071e3;
  color:#fff;
  font-size:12px;
  padding:8px 12px;
  border-radius:14px 14px 4px 14px;
  max-width:78%;
}
.ipad-ab{
  background:#f5f5f7;
  border:1px solid rgba(0,0,0,.06);
  border-radius:14px;
  padding:11px 13px;
  font-size:12px;
  line-height:1.5;
  display:grid;
  gap:8px;
}
.ipad-wf-row{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:7px;
}
.ipad-wf-card{
  background:#fff;
  border:1px solid rgba(0,0,0,.07);
  border-radius:10px;
  padding:7px 9px;
  display:grid;
  gap:3px;
}
.ipad-wf-card span{font-size:9.5px;color:#6e6e73;font-weight:600}
.ipad-wf-card b{font-size:11px;color:#1d1d1f}
.ipad-wf-card em{font-style:normal;font-size:10px;font-weight:600;color:#248a3d}
.ipad-wf-card em.run{color:#0071e3}
.ipad-btw{
  background:linear-gradient(135deg,#f6f3ff,#eef6ff);
  border:1px solid rgba(94,92,230,.24);
  border-radius:12px;
  padding:9px 12px;
  display:grid;
  gap:4px;
  font-size:11.5px;
}
.ipad-btw-hd{
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:10.5px;
  font-weight:700;
  color:#5856d6;
}
.ipad-btw-ins{
  background:#5856d6;
  color:#fff;
  padding:2px 8px;
  border-radius:99px;
  font-size:10px;
  font-weight:600;
}
.ipad-input{
  margin:0 16px 12px;
  background:#f5f5f7;
  border:1px solid rgba(0,0,0,.08);
  border-radius:14px;
  padding:8px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:11.5px;
  color:#86868b;
}
.ipad-input-chips{
  display:flex;
  gap:6px;
}
.ipad-input-chips span{
  padding:2px 8px;
  border-radius:99px;
  background:#fff;
  color:#1d1d1f;
  font-size:10.5px;
  font-weight:600;
  border:1px solid rgba(0,0,0,.07);
}

/* Offline Demo Mode Panel Card */
.demo-showcase-grid{
  width:min(100%,940px);
  display:grid;
  grid-template-columns:300px 1fr;
  gap:32px;
  align-items:center;
  background:#fff;
  border-radius:30px;
  padding:32px;
  border:1px solid rgba(0,0,0,.06);
  box-shadow:0 20px 44px -24px rgba(0,0,0,.14);
}
.demo-phone-card{
  background:#111114;
  border-radius:31px;
  padding:6px;
  box-shadow:0 24px 48px -18px rgba(0,0,0,.3);
}
.demo-phone-in{
  background:#fff;
  border-radius:25px;
  padding:16px 14px 18px;
  text-align:center;
  display:grid;
  gap:12px;
}
.demo-phone-top{
  display:flex;
  justify-content:space-between;
  font-size:10.5px;
  font-weight:600;
  color:#1d1d1f;
  padding:0 4px;
}
.demo-logo-box{
  width:52px;height:52px;margin:4px auto 0;
  border-radius:14px;
  background:#f5f5f7;
  display:grid;place-items:center;
  box-shadow:0 6px 16px rgba(0,0,0,.08);
}
.demo-phone-in h4{font-size:16px;font-weight:700;letter-spacing:-.02em}
.demo-phone-in p{font-size:11.5px;color:#6e6e73;line-height:1.4}
.demo-cta-primary{
  background:linear-gradient(135deg,#0071e3,#5856d6);
  color:#fff;
  border-radius:13px;
  padding:11px 12px;
  font-size:12px;
  font-weight:700;
  box-shadow:0 8px 18px rgba(0,113,227,.28);
}
.demo-cta-sub{
  background:#f5f5f7;
  color:#1d1d1f;
  border-radius:12px;
  padding:9px 12px;
  font-size:11.5px;
  font-weight:600;
}
.demo-features-col{
  text-align:left;
  display:grid;
  gap:16px;
}
.demo-features-col h3{
  font-size:clamp(24px,3vw,34px);
  line-height:1.12;
  font-weight:700;
  letter-spacing:-.03em;
}
.demo-features-col > p{
  font-size:16px;
  color:var(--ink-2);
  line-height:1.5;
}
.demo-pill-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:10px;
}
.demo-pill-item{
  background:var(--gray-bg);
  border-radius:14px;
  padding:11px 13px;
  border:1px solid rgba(0,0,0,.05);
  font-size:13.5px;
  color:var(--ink-2);
}
.demo-pill-item b{
  display:block;
  color:var(--ink);
  font-size:14px;
  margin-bottom:2px;
}

.devices-pillars{
  max-width:940px;
  margin:28px auto 0;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
}
.dp-card{
  background:#fff;
  border-radius:20px;
  padding:20px 22px;
  text-align:left;
  border:1px solid rgba(0,0,0,.05);
}
.dp-card b{
  display:block;
  font-size:16px;
  font-weight:700;
  margin-bottom:5px;
  color:var(--ink);
}
.dp-card p{
  font-size:14px;
  line-height:1.45;
  color:var(--ink-2);
}
.devices-cta{
  margin-top:28px;
  display:flex;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
}
.devices-cta .btn.appstore-solid{
  background:#000;
  color:#fff;
  display:inline-flex;
  align-items:center;
  gap:9px;
  padding:10px 22px;
}
.devices-cta .btn.appstore-solid:hover{background:#222}

/* ---------- 3. v1.2.0 Flagship Stage (#v120Stage) ---------- */
.v120-stage{
  margin:40px 0 56px;
  display:flex;
  flex-direction:column;
  align-items:center;
}
.v120-switcher{
  display:flex;
  flex-wrap:nowrap;
  gap:6px;
  background:rgba(255,255,255,.06);
  padding:5px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.1);
  margin-bottom:34px;
  max-width:100%;
  overflow-x:auto;
  scroll-snap-type:inline proximity;
  scrollbar-width:none;
}
.v120-switcher::-webkit-scrollbar{display:none}
.v120-tab{
  position:relative;
  flex:none;
  scroll-snap-align:start;
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 17px;
  border-radius:14px;
  border:1px solid transparent;
  color:#a1a1a6;
  background:transparent;
  cursor:pointer;
  transition:background .25s var(--ease),border-color .25s var(--ease),color .25s var(--ease);
  text-align:left;
}
.v120-tab:hover{background:rgba(255,255,255,.05)}
.v120-tab .v120-ico{font-size:20px;line-height:1}
.v120-tab b{
  display:block;
  font-size:14px;
  font-weight:700;
  color:#f5f5f7;
  white-space:nowrap;
}
.v120-tab small{
  display:block;
  font-size:11.5px;
  color:#86868b;
  margin-top:2px;
  white-space:nowrap;
}
.v120-tab[aria-selected="true"]{
  background:rgba(255,255,255,.12);
  border-color:rgba(41,151,255,.45);
  box-shadow:0 8px 24px rgba(0,0,0,.35),0 0 18px rgba(41,151,255,.18);
}
.v120-tab[aria-selected="true"]::after{
  content:"";
  position:absolute;
  inset:auto 16px 2px;
  border-block-end:2.5px solid #2997ff;
  border-radius:2px;
}
.v120-tab[aria-selected="true"] b{color:#5ac8fa}
.v120-tab[aria-selected="true"] small{color:#e5e5ea}

.v120-layout{
  display:grid;
  grid-template-columns:1fr 344px 1fr;
  gap:clamp(20px,3.5vw,48px);
  align-items:center;
  width:100%;
  max-width:1160px;
}
.v120-notes{
  display:flex;
  flex-direction:column;
  gap:16px;
}
.v120-note{
  border-radius:22px;
  padding:22px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  text-align:left;
  cursor:pointer;
  transition:border-color .3s var(--ease),background .3s var(--ease),transform .3s var(--ease);
}
.v120-note:hover{
  border-color:rgba(255,255,255,.18);
  background:rgba(255,255,255,.06);
}
.v120-note.active{
  background:linear-gradient(155deg,rgba(41,151,255,.16),rgba(191,90,242,.08));
  border-color:rgba(41,151,255,.48);
  box-shadow:0 12px 32px rgba(0,0,0,.32);
}
.v120-badge{
  display:inline-flex;
  align-items:center;
  gap:5px;
  font-family:var(--mono);
  font-size:10.5px;
  font-weight:700;
  letter-spacing:.05em;
  color:#5ac8fa;
  margin-bottom:8px;
}
.v120-note h4{
  font-size:17px;
  font-weight:700;
  color:#f5f5f7;
  margin-bottom:6px;
  letter-spacing:-.015em;
}
.v120-note p{
  font-size:13.5px;
  line-height:1.5;
  color:#a1a1a6;
}
.v120-note p b{color:#f5f5f7}

/* Interactive iPhone 16 Pro Dark Frame for v1.2.0 Stage */
.v120-phone-wrap{
  grid-column:2;
  display:flex;
  justify-content:center;
}
.v120-phone{
  width:330px;
  height:626px;
  border-radius:45px;
  background:#1c1c1e;
  padding:6px;
  box-shadow:
    0 34px 80px -16px rgba(0,0,0,.8),
    0 0 0 1px rgba(255,255,255,.16),
    inset 0 0 0 1px rgba(255,255,255,.08);
  position:relative;
  text-align:left;
}
.v120-screen{
  width:100%;
  height:100%;
  border-radius:39px;
  overflow:hidden;
  position:relative;
  background:
    radial-gradient(120% 60% at 20% 10%,rgba(41,151,255,.32),transparent 62%),
    radial-gradient(100% 55% at 85% 22%,rgba(191,90,242,.26),transparent 58%),
    radial-gradient(90% 60% at 50% 95%,rgba(48,209,88,.14),transparent 60%),
    linear-gradient(180deg,#090a12 0%,#101322 50%,#0a0c14 100%);
  color:#f5f5f7;
  display:flex;
  flex-direction:column;
}
.v120-sb{
  height:36px;
  padding:10px 22px 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:12px;
  font-weight:700;
  color:#fff;
  flex:none;
}
.v120-panel[hidden]{display:none}
.v120-panel{
  flex:1;
  min-height:0;
  display:flex;
  flex-direction:column;
}
.v120-panel-in{
  flex:1;
  min-height:0;
  padding:8px 14px 16px;
  display:flex;
  flex-direction:column;
  gap:11px;
  overflow-y:auto;
  scrollbar-width:none;
}
.v120-panel-in::-webkit-scrollbar{display:none}

/* Tab 1: Dynamic Island (Build 16 Redesign) */
.di-island{
  margin:2px auto 0;
  background:#000;
  border-radius:26px;
  border:1px solid rgba(255,255,255,.14);
  box-shadow:0 12px 32px rgba(0,0,0,.65);
  color:#fff;
  width:100%;
  transition:transform .3s var(--ease);
}
.di-island.compact{
  width:210px;
  border-radius:99px;
}
.di-compact-row{
  display:none;
  align-items:center;
  justify-content:space-between;
  padding:8px 13px;
  gap:8px;
}
.di-island.compact .di-compact-row{display:flex}
.di-island.compact .di-expanded-box{display:none}
.di-logo-img{
  width:22px;
  height:14px;
  object-fit:contain;
  flex:none;
}
.di-expanded-box{
  padding:13px 14px;
  display:grid;
  gap:9px;
}
.di-exp-hd{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
.di-exp-title{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
}
.di-exp-title b{
  font-size:12.5px;
  font-weight:700;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.di-step-chip{
  flex:none;
  font-size:10.5px;
  font-weight:700;
  padding:2.5px 8px;
  border-radius:99px;
  background:rgba(41,151,255,.22);
  color:#5ac8fa;
}
.di-step-chip.warn{background:rgba(255,159,10,.22);color:#ffb340}
.di-step-chip.ok{background:rgba(48,209,88,.22);color:#30d158}
.di-md-snippet{
  font-size:11.5px;
  line-height:1.45;
  color:#d1d1d6;
  background:rgba(255,255,255,.06);
  border-radius:12px;
  padding:8px 10px;
}
.di-md-snippet code{
  font-family:var(--mono);
  font-size:10.5px;
  background:rgba(41,151,255,.2);
  color:#70c2ff;
  padding:1px 5px;
  border-radius:4px;
}
.di-md-snippet b{color:#fff}
.di-exp-ft{
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:10.5px;
  color:#8e8e93;
}
.di-live-dot{
  display:inline-flex;
  align-items:center;
  gap:5px;
  color:#30d158;
  font-weight:600;
}
.di-live-dot i{
  width:6px;height:6px;border-radius:50%;background:#30d158;display:block;
}
@media(prefers-reduced-motion:no-preference){
  .di-live-dot i{animation:v120Pulse 1.8s ease-in-out infinite}
}
@keyframes v120Pulse{
  0%,100%{opacity:1;transform:scale(1)}
  50%{opacity:.45;transform:scale(.75)}
}

/* Interactive state controls inside phone */
.di-ctrl-row{
  display:flex;
  gap:6px;
  justify-content:center;
  flex-wrap:wrap;
}
.di-ctrl-btn{
  padding:5px 10px;
  border-radius:99px;
  font-size:11px;
  font-weight:600;
  color:#c7c7cc;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  transition:background .2s,color .2s,border-color .2s;
}
.di-ctrl-btn:hover{background:rgba(255,255,255,.14);color:#fff}
.di-ctrl-btn.active{
  background:#2997ff;
  color:#fff;
  border-color:#2997ff;
}

.ls-clock{
  text-align:center;
  margin:4px 0 2px;
}
.ls-clock small{
  display:block;
  font-size:11.5px;
  font-weight:500;
  color:rgba(255,255,255,.78);
}
.ls-clock b{
  display:block;
  font-size:48px;
  line-height:1.05;
  font-weight:700;
  letter-spacing:-.04em;
  color:rgba(255,255,255,.95);
}

/* Lock Screen Live Activity Card */
.ls-la-card{
  background:rgba(28,28,34,.82);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  border:1px solid rgba(255,255,255,.14);
  border-radius:20px;
  padding:12px 13px;
  display:grid;
  gap:8px;
  margin-top:auto;
}
.ls-la-hd{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
.ls-la-brand{
  display:flex;
  align-items:center;
  gap:7px;
  font-size:12px;
  font-weight:700;
  min-width:0;
}
.ls-la-brand span{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
#lsLaStep{
  flex:none;
  white-space:nowrap;
}
.ls-la-bar{
  height:5px;
  border-radius:99px;
  background:rgba(255,255,255,.12);
  overflow:hidden;
}
.ls-la-bar span{
  display:block;
  height:100%;
  border-radius:99px;
  background:linear-gradient(90deg,#2997ff,#5ac8fa,#30d158);
  transition:width .35s var(--ease);
}
.ls-la-meta{
  display:flex;
  justify-content:space-between;
  font-size:10.5px;
  color:#a1a1a6;
}

/* Tab 2: APNs Lock Screen Notification Stack */
.apns-stack{
  display:grid;
  gap:9px;
  margin-top:4px;
}
.apns-card{
  width:100%;
  text-align:left;
  background:rgba(32,34,42,.82);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  border:1px solid rgba(255,255,255,.13);
  border-radius:18px;
  padding:11px 12px;
  display:grid;
  gap:5px;
  transition:transform .2s var(--ease),border-color .2s var(--ease),background .2s var(--ease);
}
.apns-card:hover{
  background:rgba(44,46,56,.92);
  border-color:rgba(41,151,255,.45);
  transform:translateY(-1px);
}
.apns-card:active{transform:scale(.98)}
.apns-hd{
  display:flex;
  align-items:center;
  gap:7px;
  font-size:11px;
}
.apns-app-ic{
  width:20px;height:20px;border-radius:5px;
  background:#fff;display:grid;place-items:center;flex:none;
}
.apns-app-ic img{width:14px;height:auto}
.apns-ts{
  font-size:9.5px;
  font-weight:700;
  padding:1.5px 6px;
  border-radius:99px;
  background:rgba(255,159,10,.22);
  color:#ffb340;
}
.apns-ts.ok{background:rgba(48,209,88,.22);color:#30d158}
.apns-ts.err{background:rgba(255,69,58,.22);color:#ff6961}
.apns-time{
  margin-left:auto;
  font-size:10px;
  color:#8e8e93;
}
.apns-card b{font-size:12.5px;color:#fff;font-weight:700}
.apns-card p{font-size:11.5px;color:#c7c7cc;line-height:1.4}
.apns-hint{
  text-align:center;
  font-size:11px;
  color:#8e8e93;
  margin-top:auto;
  padding-top:4px;
}

/* Tab 3: Build 17 Custom Notification Sounds Sheet */
.snd-sheet{
  background:rgba(22,22,26,.94);
  border:1px solid rgba(255,255,255,.1);
  border-radius:22px;
  padding:10px 11px;
  display:grid;
  gap:6px;
  flex:1;
}
.snd-sheet-hd{
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.snd-sheet-hd b{font-size:13px;font-weight:700;color:#fff}
.snd-tf-tag{
  font-size:9.5px;
  font-weight:700;
  padding:2px 7px;
  border-radius:99px;
  background:rgba(41,151,255,.2);
  color:#5ac8fa;
}
.snd-group-lbl{
  font-size:10px;
  font-weight:700;
  color:#8e8e93;
  letter-spacing:.03em;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.snd-list{
  display:grid;
  gap:4px;
}
.snd-row{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:5.5px 9px;
  border-radius:10px;
  background:rgba(255,255,255,.045);
  border:1px solid rgba(255,255,255,.06);
  text-align:left;
  transition:background .2s,border-color .2s;
}
.snd-row:hover{
  background:rgba(255,255,255,.09);
  border-color:rgba(255,255,255,.16);
}
.snd-row.selected{
  background:rgba(41,151,255,.16);
  border-color:rgba(41,151,255,.45);
}
.snd-row.action.selected{
  background:rgba(255,159,10,.16);
  border-color:rgba(255,159,10,.48);
}
.snd-row-l{
  display:grid;
  gap:1px;
}
.snd-row-l b{font-size:12px;color:#f5f5f7;font-weight:600}
.snd-row-l small{font-size:10px;color:#8e8e93}
.snd-play-ic{
  display:inline-flex;
  align-items:center;
  gap:5px;
  font-size:10.5px;
  font-weight:600;
  color:#5ac8fa;
  flex:none;
}
.snd-row.action .snd-play-ic{color:#ffb340}
.snd-eq{
  display:inline-flex;
  align-items:flex-end;
  gap:2px;
  height:11px;
  width:11px;
  opacity:.35;
}
.snd-eq i{
  display:block;
  width:2.5px;
  height:4px;
  border-radius:2px;
  background:currentColor;
}
.snd-row.playing .snd-eq{opacity:1}
@media(prefers-reduced-motion:no-preference){
  .snd-row.playing .snd-eq i:nth-child(1){animation:eqBar .55s ease-in-out infinite}
  .snd-row.playing .snd-eq i:nth-child(2){animation:eqBar .45s ease-in-out .12s infinite}
  .snd-row.playing .snd-eq i:nth-child(3){animation:eqBar .6s ease-in-out .22s infinite}
}
@keyframes eqBar{
  0%,100%{transform:scaleY(.5)}
  50%{transform:scaleY(2.4)}
}

/* Tab 4: Android Foreground Sync + Stateless Cloudflare Relay */
.relay-card{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.1);
  border-radius:18px;
  padding:12px;
  display:grid;
  gap:8px;
}
.relay-card-hd{
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:11px;
  font-weight:700;
  color:#30d158;
}
.android-noti{
  background:#1f2421;
  border:1px solid rgba(48,209,88,.3);
  border-radius:14px;
  padding:10px 11px;
  display:grid;
  gap:6px;
}
.android-noti-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:10.5px;
  color:#9ad8ad;
}
.android-noti b{font-size:12px;color:#fff}
.android-noti p{font-size:11px;color:#c7c7cc;line-height:1.35}
.android-noti-acts{
  display:flex;
  gap:8px;
  padding-top:3px;
}
.android-noti-acts span{
  font-size:10.5px;
  font-weight:700;
  padding:3px 9px;
  border-radius:8px;
  background:rgba(48,209,88,.16);
  color:#30d158;
}
.android-noti-acts span.stop{
  background:rgba(255,69,58,.18);
  color:#ff6961;
}
.relay-pipe{
  display:grid;
  gap:6px;
}
.relay-node{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:8px 10px;
  border-radius:11px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
  font-size:11.5px;
}
.relay-node b{color:#fff;font-weight:600}
.relay-node small{color:#8e8e93;font-size:10px}
.relay-node.cf{
  background:rgba(255,159,10,.12);
  border-color:rgba(255,159,10,.35);
}
.relay-node.cf b{color:#ffb340}
.relay-arrow{
  text-align:center;
  font-size:10px;
  color:#5ac8fa;
  font-family:var(--mono);
  line-height:1;
}
.v120-phone-toast{
  position:absolute;
  left:14px;
  right:14px;
  bottom:14px;
  padding:9px 12px;
  border-radius:12px;
  background:rgba(0,113,227,.95);
  color:#fff;
  font-size:11.5px;
  font-weight:600;
  text-align:center;
  box-shadow:0 8px 24px rgba(0,0,0,.45);
  opacity:0;
  transform:translateY(8px);
  pointer-events:none;
  transition:opacity .25s var(--ease),transform .25s var(--ease);
  z-index:20;
}
.v120-phone-toast.show{
  opacity:1;
  transform:translateY(0);
}

/* ---------- 4. v1.1.8 & v1.2.0 Mini-Demos inside nbento ---------- */
.v233-demo{
  display:grid;
  gap:8px;
}
.v233-pr-row{
  display:flex;
  align-items:center;
  gap:7px;
  padding:8px 11px;
  border-radius:11px;
  background:rgba(137,87,229,.14);
  border:1px solid rgba(137,87,229,.35);
  font-size:12px;
  color:#e5d9ff;
}
.v233-pr-row b{color:#fff}
.v233-pr-row small{margin-left:auto;color:#a78bfa;font-family:var(--mono);font-size:10.5px}
.v233-btw-row{
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 11px;
  border-radius:11px;
  background:rgba(41,151,255,.12);
  border:1px solid rgba(41,151,255,.32);
  font-size:11.5px;
  color:#d1d1d6;
}
.v233-btw-tag{
  font-family:var(--mono);
  font-size:10.5px;
  font-weight:700;
  color:#5ac8fa;
  background:rgba(41,151,255,.2);
  padding:2px 6px;
  border-radius:6px;
}
.v233-trust-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:7px 11px;
  border-radius:11px;
  background:rgba(255,159,10,.1);
  border:1px solid rgba(255,159,10,.3);
  font-size:11.5px;
  color:#ffd08a;
}
.v233-trust-btn{
  padding:2.5px 9px;
  border-radius:99px;
  background:#ff9f0a;
  color:#000;
  font-size:10.5px;
  font-weight:700;
}

/* WeChat ZIP Archive Mini-Demo */
.wx-demo{
  border-radius:14px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  padding:11px;
  display:grid;
  gap:8px;
}
.wx-zip-hd{
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:11.5px;
  color:#e5e5ea;
}
.wx-zip-hd b{font-family:var(--mono);font-size:11px}
.wx-zip-hd span{
  font-size:10px;
  color:#30d158;
  background:rgba(48,209,88,.14);
  padding:2px 7px;
  border-radius:99px;
  font-weight:600;
}
.wx-bub-row{
  display:grid;
  gap:6px;
}
.wx-bub{
  font-size:11.5px;
  padding:6px 10px;
  border-radius:10px;
  max-width:88%;
}
.wx-bub.l{
  background:rgba(255,255,255,.09);
  color:#e5e5ea;
  justify-self:start;
}
.wx-bub.r{
  background:#2ba245;
  color:#fff;
  justify-self:end;
}

/* 7 Share Skins Interactive Mini-Demo */
.skins-demo{
  display:grid;
  gap:10px;
}
.skin-preview{
  border-radius:13px;
  padding:11px 13px;
  border:1px solid rgba(255,255,255,.12);
  transition:background .25s var(--ease),color .25s var(--ease),border-color .25s var(--ease);
  display:grid;
  gap:4px;
}
.skin-preview b{font-size:12px}
.skin-preview p{font-size:11px;opacity:.85;color:inherit}
.skin-swatches{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.skin-chip{
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:4px 9px;
  border-radius:99px;
  font-size:11px;
  font-weight:600;
  color:#c7c7cc;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.1);
}
.skin-chip i{
  width:9px;height:9px;border-radius:50%;display:block;
}
.skin-chip.active{
  background:rgba(255,255,255,.16);
  border-color:#2997ff;
  color:#fff;
}

/* Fix 4-card nminis grid to balanced 2x2 on desktop */
.new .nminis{
  grid-template-columns:repeat(2,1fr);
}
@media(max-width:820px){
  .new .nminis{grid-template-columns:minmax(0,1fr)}
}

/* ---------- 5. Dedicated Swarm Section (#swarm) ---------- */
.swarm-sec{
  background:#0a0a0d;
  color:#f5f5f7;
  padding:clamp(76px,10vw,132px) 0;
  position:relative;
  overflow:hidden;
}
.swarm-sec::before{
  content:"";
  position:absolute;
  inset:-10% -10% auto -10%;
  height:520px;
  background:radial-gradient(38% 55% at 50% 25%,rgba(255,159,10,.15),transparent 70%),
             radial-gradient(32% 50% at 20% 60%,rgba(41,151,255,.12),transparent 70%);
  pointer-events:none;
}
.swarm-sec .wrap-wide{position:relative}
.swarm-sec .head{text-align:center;margin-bottom:24px}
.swarm-sec .head .lead{max-width:680px;margin:16px auto 0}

/* ---------- 6. Responsive Overrides ---------- */
@media(max-width:1020px){
  .v120-layout{
    grid-template-columns:minmax(0,1fr);
    gap:22px;
    max-width:540px;
  }
  .v120-phone-wrap{grid-column:1;order:-1;width:100%;min-width:0}
  .ipad-split{grid-template-columns:220px minmax(0,1fr)}
  .demo-showcase-grid{grid-template-columns:minmax(0,1fr);padding:24px}
  .demo-phone-card{max-width:290px;margin:0 auto}
}
@media(max-width:760px){
  .ipad-split{grid-template-columns:minmax(0,1fr)}
  .ipad-side{border-right:0;border-bottom:1px solid rgba(0,0,0,.08)}
  .ipad-wf-row{grid-template-columns:minmax(0,1fr)}
  .devices-pillars{grid-template-columns:minmax(0,1fr)}
  .demo-pill-grid{grid-template-columns:minmax(0,1fr)}
  .v120-phone{width:min(100%,320px);height:610px}
}


/* =====================================================================
   7. iOS-native fidelity pass for #v120Stage (lock screen, island, settings)
   ===================================================================== */
.v120-stage{margin:28px 0 48px}

/* segmented control */
.v120-switcher{
  gap:2px;padding:3px;border-radius:12px;margin-bottom:30px;
  background:rgba(118,118,128,.22);border:0.5px solid rgba(255,255,255,.12);
  -webkit-backdrop-filter:saturate(180%) blur(18px);backdrop-filter:saturate(180%) blur(18px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12);
}
.v120-tab{padding:7px 22px;border-radius:9px;gap:0}
.v120-tab:hover{background:transparent}
.v120-tab b{font-size:13.5px;font-weight:600;color:#ebebf5;opacity:.75}
.v120-tab[aria-selected="true"]{background:rgba(99,99,102,.62);border-color:transparent;box-shadow:0 3px 8px rgba(0,0,0,.28),0 0 1px rgba(255,255,255,.2) inset}
.v120-tab[aria-selected="true"]::after{display:none}
.v120-tab[aria-selected="true"] b{color:#fff;opacity:1}

/* single column: phone + one caption */
.v120-layout{grid-template-columns:1fr;gap:26px;max-width:520px;justify-items:center}
.v120-phone-wrap{grid-column:1;order:-1}
.v120-notes{width:100%;gap:0}
.v120-note{display:none;background:none;border:0;box-shadow:none;padding:0;text-align:center;cursor:default}
.v120-note.active{display:block;background:none;border:0;box-shadow:none}
.v120-note:hover{background:none}
.v120-note h4{font-size:19px;margin-bottom:6px}
.v120-note p{font-size:14.5px;max-width:440px;margin:0 auto}

/* device */
.v120-phone{
  width:318px;height:652px;padding:6px;border-radius:52px;
  background:linear-gradient(145deg,#4a4a4f,#202023 45%,#3a3a3f);
  box-shadow:0 40px 90px -20px rgba(0,0,0,.85),0 0 0 1.5px rgba(255,255,255,.18),inset 0 0 0 1.5px rgba(0,0,0,.6);
}
.v120-screen{
  border-radius:46px;
  background:
    radial-gradient(90% 45% at 15% 8%,rgba(255,120,80,.55),transparent 65%),
    radial-gradient(80% 50% at 90% 30%,rgba(120,80,255,.5),transparent 62%),
    radial-gradient(100% 55% at 40% 100%,rgba(30,120,255,.55),transparent 60%),
    linear-gradient(180deg,#1b1233 0%,#241446 45%,#0f1d3d 100%);
}
/* static island + home indicator */
.v120-screen::before{
  content:"";position:absolute;top:11px;left:50%;width:100px;height:29px;margin-left:-50px;
  border-radius:20px;background:#000;z-index:4;
}
.v120-screen::after{
  content:"";position:absolute;bottom:8px;left:50%;width:112px;height:4.5px;margin-left:-56px;
  border-radius:3px;background:rgba(255,255,255,.85);z-index:5;pointer-events:none;
}
.v120-sb{height:50px;padding:16px 30px 0 34px;font-size:14.5px;font-weight:600;letter-spacing:-.01em;position:relative;z-index:3}
.v120-sb svg{width:52px;height:auto}
.v120-panel-in{padding:6px 12px 22px;gap:10px}

/* lock screen clock */
.ls-clock{margin:6px 0 4px;transition:margin .3s var(--ease)}
.ls-clock small{font-size:13px;font-weight:600;color:rgba(255,255,255,.82);letter-spacing:0}
.ls-clock b{font-size:68px;line-height:1.02;font-weight:600;letter-spacing:-.02em;color:rgba(255,255,255,.92)}

/* real Dynamic Island */
.di-island{
  position:absolute;top:11px;left:50%;transform:translateX(-50%);z-index:6;margin:0;
  width:calc(100% - 20px);border:0;border-radius:36px;box-shadow:none;background:#000;
  transition:width .35s var(--ease),border-radius .35s var(--ease);
}
.di-island.compact{width:112px;height:29px;border-radius:20px}
.di-compact-row{padding:0 12px;height:29px}
.di-logo-img{width:20px;height:13px}
.di-expanded-box{padding:14px 16px 13px;gap:9px}
.di-exp-title b{font-size:13px;font-weight:600}
.di-step-chip{font-size:11px;padding:2px 8px}
.di-md-snippet{background:none;padding:0;border-radius:0;font-size:13px;line-height:1.4;color:rgba(255,255,255,.88)}
.di-md-snippet code{font-size:11.5px;background:rgba(255,255,255,.14);color:#fff}
.di-exp-ft{font-size:11px}
.di-island:not(.compact) ~ .ls-clock{margin-top:100px}

/* lock screen Live Activity */
.ls-la-card{
  margin-top:12px;padding:13px 14px;gap:9px;border:0;border-radius:24px;
  background:rgba(36,36,40,.62);
  backdrop-filter:blur(28px) saturate(1.6);-webkit-backdrop-filter:blur(28px) saturate(1.6);
}
.ls-la-brand{font-size:13px;font-weight:600}
.ls-la-bar{height:5px;background:rgba(255,255,255,.18)}
.ls-la-bar span{background:#0a84ff}
.ls-la-meta{font-size:11.5px;color:rgba(255,255,255,.6)}
.di-ctrl-row{order:5;margin-top:auto;padding-top:10px}
.di-ctrl-btn{background:rgba(255,255,255,.14);border:0;color:#fff;font-weight:500}
.di-ctrl-btn.active{background:#fff;color:#000}

/* lock screen notification banners */
.apns-stack{gap:8px;margin-top:6px}
.apns-card{
  display:grid;grid-template-columns:38px 1fr auto;column-gap:10px;align-items:start;
  padding:11px 12px;border:0;border-radius:22px;
  background:rgba(36,36,40,.6);
  backdrop-filter:blur(28px) saturate(1.6);-webkit-backdrop-filter:blur(28px) saturate(1.6);
}
.apns-card:hover{background:rgba(52,52,58,.66);border:0;transform:none}
.apns-card:active{transform:scale(.985)}
.apns-app-ic{
  width:38px;height:38px;border-radius:9px;display:grid;place-items:center;
  background:linear-gradient(160deg,#17171c,#050507);box-shadow:inset 0 0 0 .5px rgba(255,255,255,.18);
}
.apns-app-ic img{width:24px;height:auto}
.apns-tx{display:grid;gap:1px;min-width:0}
.apns-card b{font-size:13.5px;font-weight:600;color:#fff;line-height:1.3}
.apns-card p{font-size:13px;line-height:1.3;color:rgba(255,255,255,.88);
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.apns-time{margin:0;font-size:11.5px;color:rgba(255,255,255,.55);padding-top:1px}
.apns-hint{font-size:11.5px;color:rgba(255,255,255,.5)}

/* sounds: iOS Settings grouped list */
.snd-sheet{background:none;border:0;padding:0;gap:6px}
.snd-sheet-hd{justify-content:center;padding:4px 0 2px}
.snd-sheet-hd b{font-size:15px;font-weight:600}
.snd-group-lbl{font-size:11px;font-weight:400;color:rgba(235,235,245,.55);letter-spacing:.02em;padding:6px 14px 0;text-transform:uppercase}
.snd-list{gap:0;background:rgba(28,28,32,.66);-webkit-backdrop-filter:saturate(180%) blur(24px);backdrop-filter:saturate(180%) blur(24px);border:0.5px solid rgba(255,255,255,.14);box-shadow:inset 0 1px 0 rgba(255,255,255,.10);border-radius:14px;overflow:hidden}
.snd-row{
  position:relative;border:0;border-radius:0;background:none;padding:0 14px 0 34px;height:38px;
}
.snd-row + .snd-row{box-shadow:0 -.5px 0 rgba(255,255,255,.12) inset}
.snd-row:hover{background:rgba(255,255,255,.07);border:0}
.snd-row.selected,.snd-row.action.selected{background:none;border:0}
.snd-row.selected::before{content:"";position:absolute;left:14px;top:50%;width:6px;height:11px;margin-top:-8px;
  border:solid #0a84ff;border-width:0 2.2px 2.2px 0;transform:rotate(45deg)}
.snd-row-l b{font-size:14px;font-weight:400;color:#fff}
.snd-play-ic,.snd-row.action .snd-play-ic{font-size:0;color:#0a84ff}
.snd-eq{opacity:0}
.snd-row.playing .snd-eq{opacity:1}

.v120-phone-toast{border-radius:18px;background:rgba(60,60,64,.92);backdrop-filter:blur(20px);font-weight:500;bottom:26px}

@media(max-width:760px){
  .v120-phone{width:min(100%,318px);height:640px}
  .v120-tab{padding:7px 14px}
}
@media(max-width:480px){
  .v120-tab{padding:7px 11px}
  .v120-tab b{font-size:12.5px}
}


/* ---- island state blocks: 2 on each side of the phone ---- */
.v120-layout{grid-template-columns:minmax(0,1fr) 318px minmax(0,1fr);max-width:1060px;align-items:center;gap:20px clamp(20px,3.5vw,48px)}
.v120-phone-wrap{grid-column:2;grid-row:1;order:0;min-width:0;max-width:100%}
.v120-states.left{grid-column:1;grid-row:1}
.v120-states.right{grid-column:3;grid-row:1}
.v120-notes{grid-column:1/-1;grid-row:2;justify-self:center;min-width:0;max-width:100%}
.v120-states{display:flex;flex-direction:column;gap:14px;min-width:0;max-width:100%}
.v120-stage:not([data-view="island"]) .v120-states{visibility:hidden}
.di-state-card{
  width:100%;min-width:0;
  text-align:left;padding:18px 20px;border-radius:20px;color:#a1a1a6;
  background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.10);
  -webkit-backdrop-filter:saturate(160%) blur(16px);backdrop-filter:saturate(160%) blur(16px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
  transition:background .25s var(--ease),border-color .25s var(--ease);
}
.di-state-card b{display:block;font-size:16px;font-weight:600;color:#f5f5f7;margin-bottom:5px}
.di-state-card span{display:block;font-size:13px;line-height:1.5}
.di-state-card:hover{background:rgba(255,255,255,.07)}
.di-state-card.active{background:rgba(10,132,255,.14);border-color:rgba(10,132,255,.55)}
@media(max-width:1020px){
  .v120-layout{grid-template-columns:minmax(0,1fr);max-width:420px}
  .v120-phone-wrap{grid-column:1;grid-row:1;width:100%;min-width:0}
  .v120-states{width:100%;min-width:0}
  .v120-states.left{grid-column:1;grid-row:2}
  .v120-states.right{grid-column:1;grid-row:3}
  .v120-notes{grid-row:4;width:100%;min-width:0}
  .v120-stage:not([data-view="island"]) .v120-states{display:none}
}


/* ---- 8. Faithful AgentActivityView.swift Live Activity & Dynamic Island ---- */
.di-island.compact{width:142px;height:29px;border-radius:20px}
.di-compact-row{padding:0 11px;height:29px;gap:6px}
.di-compact-ic,.di-exp-ic{display:inline-flex;align-items:center;justify-content:center;flex:none}
.di-compact-lbl{font-size:11.5px;font-weight:600;color:#fff;white-space:nowrap;letter-spacing:-.01em}
.di-compact-lbl.warn{color:#ff9500;font-weight:700}
.di-compact-lbl.ok{color:#34c759;font-weight:700}

.di-expanded-box{padding:13px 15px 12px;gap:7px}
.di-exp-hd{gap:6px}
.di-exp-title{gap:7px}
.di-exp-title b{font-size:13.5px;font-weight:700;color:#fff}
.di-exp-meta{display:flex;align-items:center;justify-content:space-between;font-size:11px;margin-top:1px}
.di-step-num{font-family:var(--mono);font-weight:700;color:#73bfff}
.di-rel-time{color:#8e8e93}
.di-exp-action{display:flex;align-items:flex-start;gap:6px}
.di-md-snippet{font-size:12px;font-weight:500;line-height:1.38;color:rgba(255,255,255,.92);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.di-md-snippet code,.ls-la-md code{
  font-family:var(--mono);font-size:11px;font-weight:500;
  color:#ffd173;background:#383838;padding:0.5px 4px;border-radius:3px;
}
.di-md-snippet b,.ls-la-md b{color:#fafaff;font-weight:700}
.di-exp-btns{display:flex;justify-content:flex-end;gap:7px;margin-top:2px}
.di-exp-btns[hidden]{display:none}
.di-island:not(.compact) ~ .ls-clock{margin-top:124px}

/* Status badge (AgentActivityView.swift cornerRadius 5) */
.la-status-badge{
  flex:none;white-space:nowrap;font-size:10.5px;font-weight:700;
  padding:2.5px 6.5px;border-radius:5px;line-height:1.25;
}
.la-status-badge.running{color:#9ebdff;background:rgba(88,86,214,.25)}
.la-status-badge.warn{color:#ffb366;background:rgba(255,149,0,.22)}
.la-status-badge.ok{color:#73e68c;background:rgba(52,199,89,.22)}

.la-act-ic{display:inline-flex;align-items:center;flex:none;margin-top:2px}

/* Action capsule buttons (AppIntents: Allow / Deny / Stop) */
.la-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:3px;
  border:0;border-radius:99px;font-size:10.5px;font-weight:700;line-height:1;
  padding:4.5px 9px;cursor:pointer;white-space:nowrap;
  transition:filter .15s,transform .15s;
}
.la-btn:hover{filter:brightness(1.12)}
.la-btn:active{transform:scale(.95)}
.la-btn.full{flex:1;padding:5.5px 10px;font-size:11px}
.la-btn.approve{background:#1fad57;color:#fff}
.la-btn.reject{background:rgba(255,59,48,.26);color:#ff8c8c}
.la-btn.stop{background:rgba(255,59,48,.22);color:#ff8c8c}

/* Lock Screen Live Activity Card (AgentLockScreenView) */
.ls-la-card{
  display:flex;align-items:flex-start;gap:10px;
  margin-top:auto;margin-bottom:10px;
  padding:11px 12px;border-radius:22px;border:1px solid rgba(255,255,255,.09);
  background:rgba(28,28,30,.92);
  backdrop-filter:blur(28px) saturate(1.4);-webkit-backdrop-filter:blur(28px) saturate(1.4);
  box-shadow:0 8px 24px rgba(0,0,0,.35);
}
.ls-la-avatar{
  width:38px;height:38px;flex:none;
  display:flex;align-items:center;justify-content:center;
}
.ls-la-avatar img{width:34px;height:22px;object-fit:contain}
.ls-la-col{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px}
.ls-la-hd{display:flex;align-items:center;justify-content:space-between;gap:6px}
.ls-la-title{
  font-size:13.5px;font-weight:700;color:#fafafc;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;
}
.ls-la-act{display:flex;align-items:flex-start;gap:5px}
.ls-la-md{
  font-size:11.8px;font-weight:500;line-height:1.38;color:#e6e8ed;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.ls-la-ft{display:flex;align-items:center;gap:5px;margin-top:1px;min-height:20px}
.ls-la-step{font-family:var(--mono);font-size:10.5px;font-weight:700;color:#85adff;white-space:nowrap}
.ls-la-dot,.ls-la-time{font-size:10.5px;color:#9ea6b3;white-space:nowrap}
.ls-la-btns{margin-left:auto;display:inline-flex;align-items:center;gap:5px;flex:none}
.ls-la-btns .la-btn{padding:3.5px 8px;font-size:10px}

/* ---- 9. fit fixes ---- */
.di-island{overflow:hidden}
.di-expanded-box{min-width:0}
.di-exp-hd{min-width:0}
.di-exp-title{flex:1;min-width:0}
.di-exp-title b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.di-step-num,.ls-la-step{font-family:inherit;font-variant-numeric:tabular-nums;letter-spacing:0}
.di-exp-meta{min-width:0}
.ls-la-card{margin-top:12px;margin-bottom:0}

/* ---- 10. Equalize nbento inner demo heights across both cards ---- */
.new .bc .demo{
  margin-top:0;
  flex:1;
  display:flex;
  flex-direction:column;
}
.new .bc .demo > *{
  flex:1;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.new .bc .probe{
  padding:8px 18px;
}

/* ==========================================================================
   11. v1.2.4 iOS Native Components Showcase (#widgets — replaces #devices)
   ========================================================================== */
.widgets-sec{
  background:var(--gray-bg);
  color:var(--ink);
  padding:clamp(76px,10vw,132px) 0;
  overflow:hidden;
}
.widgets-head{
  text-align:center;
  max-width:780px;
  margin:0 auto 32px;
}
.widgets-head .lead{margin-top:16px}

.wg-toolbar{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:12px 16px;
  margin-bottom:28px;
}
.wg-tablist{
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:4px;
  border-radius:16px;
  background:rgba(232,232,237,.68);
  -webkit-backdrop-filter:saturate(180%) blur(18px);
  backdrop-filter:saturate(180%) blur(18px);
  border:1px solid rgba(255,255,255,.78);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8),0 4px 14px -6px rgba(15,23,42,.10);
  max-width:100%;
  overflow-x:auto;
  scroll-snap-type:inline proximity;
  scrollbar-width:none;
}
.wg-tablist::-webkit-scrollbar{display:none}
.wg-tab{
  position:relative;
  flex:none;
  scroll-snap-align:start;
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:9px 18px;
  border-radius:12px;
  font-size:14px;
  font-weight:600;
  color:var(--ink-2);
  transition:color .2s var(--ease),background .2s var(--ease);
}
.wg-tab:hover{color:var(--ink)}
.wg-tab:focus-visible,
.wg-theme-btn:focus-visible,
.wg-cp-chip:focus-visible{
  outline:2px solid var(--blue);
  outline-offset:2px;
}
.wg-tab[aria-selected="true"]{
  background:#fff;
  color:var(--ink);
  box-shadow:0 2px 10px rgba(0,0,0,.07);
}
/* WCAG 1.4.1 non-color-only active tab indicator using border on pseudo-element */
.wg-tab[aria-selected="true"]::after{
  content:"";
  position:absolute;
  inset:auto 20px 3px;
  border-block-end:2.5px solid var(--blue);
  border-radius:2px;
}

.wg-theme-toggle{
  display:inline-flex;
  align-items:center;
  gap:3px;
  padding:4px;
  border-radius:14px;
  background:rgba(232,232,237,.68);
  -webkit-backdrop-filter:saturate(180%) blur(18px);
  backdrop-filter:saturate(180%) blur(18px);
  border:1px solid rgba(255,255,255,.78);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8),0 4px 14px -6px rgba(15,23,42,.10);
}
.wg-theme-btn{
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:7px 13px;
  border-radius:10px;
  font-size:13px;
  font-weight:600;
  color:var(--ink-2);
  transition:background .2s var(--ease),color .2s var(--ease);
}
.wg-theme-btn[aria-pressed="true"]{
  background:#fff;
  color:var(--ink);
  box-shadow:0 1px 6px rgba(0,0,0,.08);
}

/* Scoped Light/Dark Component Surface (modern-web-guidance: component-specific-light-dark-theme) */
.wg-stage-shell{
  max-width:1040px;
  margin:0 auto;
  position:relative;
}
.wg-stage-canvas{
  --wg-wall-light:
    radial-gradient(62% 72% at 15% 15%, rgba(125,180,255,.36), transparent 65%),
    radial-gradient(56% 70% at 88% 20%, rgba(198,162,255,.30), transparent 65%),
    radial-gradient(55% 65% at 50% 95%, rgba(112,226,184,.24), transparent 65%),
    linear-gradient(155deg,#e9eef8 0%,#eef2fa 50%,#e6ebf5 100%);
  --wg-wall-dark:
    radial-gradient(60% 70% at 16% 14%, rgba(45,112,255,.28), transparent 62%),
    radial-gradient(56% 68% at 86% 24%, rgba(140,82,255,.24), transparent 62%),
    radial-gradient(50% 60% at 52% 96%, rgba(30,175,115,.16), transparent 65%),
    linear-gradient(155deg,#0c101b 0%,#121626 52%,#0a0d16 100%);
  --wg-card-bg:rgba(255,255,255,.78);
  --wg-sub-bg:rgba(242,243,247,.76);
  --wg-border:rgba(255,255,255,.72);
  --wg-glass-inset:inset 0 1px 0 rgba(255,255,255,.92);
  --wg-ink:#111318;
  --wg-ink-2:#5c616e;
  --wg-ink-3:#868b98;
  --wg-track:rgba(0,0,0,.10);
  --wg-sel-bg:rgba(0,113,227,.08);
  --wg-sel-bd:#007aff;
  --wg-pill-bg:rgba(0,0,0,.055);
  color-scheme:only light;
  color:var(--wg-ink);
  background:var(--wg-wall-light);
  border-radius:32px;
  padding:clamp(22px,3.2vw,36px);
  border:1px solid rgba(255,255,255,.65);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.85),0 32px 68px -28px rgba(15,23,42,.18),0 8px 24px -10px rgba(15,23,42,.08);
  transition:background .35s var(--ease),border-color .35s var(--ease);
  position:relative;
  overflow:hidden;
}
.wg-stage-canvas[data-wg-theme="dark"]{
  --wg-card-bg:rgba(28,28,32,.74);
  --wg-sub-bg:rgba(44,44,50,.72);
  --wg-border:rgba(255,255,255,.14);
  --wg-glass-inset:inset 0 1px 0 rgba(255,255,255,.14);
  --wg-ink:#f5f5f7;
  --wg-ink-2:#a1a1aa;
  --wg-ink-3:#7c7c86;
  --wg-track:rgba(255,255,255,.13);
  --wg-sel-bg:rgba(10,132,255,.18);
  --wg-sel-bd:#0a84ff;
  --wg-pill-bg:rgba(255,255,255,.09);
  color-scheme:only dark;
  color:var(--wg-ink);
  background:var(--wg-wall-dark);
  border-color:rgba(255,255,255,.10);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.10),0 36px 76px -26px rgba(0,0,0,.55);
}
@supports (color: light-dark(white, black)){
  .wg-stage-canvas{
    --wg-card-bg:light-dark(rgba(255,255,255,.78),rgba(28,28,32,.74));
    --wg-sub-bg:light-dark(rgba(242,243,247,.76),rgba(44,44,50,.72));
    --wg-border:light-dark(rgba(255,255,255,.72),rgba(255,255,255,.14));
    --wg-ink:light-dark(#111318,#f5f5f7);
    --wg-ink-2:light-dark(#5c616e,#a1a1aa);
    --wg-ink-3:light-dark(#868b98,#7c7c86);
    --wg-track:light-dark(rgba(0,0,0,.10),rgba(255,255,255,.13));
    --wg-sel-bg:light-dark(rgba(0,113,227,.08),rgba(10,132,255,.18));
    --wg-sel-bd:light-dark(#007aff,#0a84ff);
    --wg-pill-bg:light-dark(rgba(0,0,0,.055),rgba(255,255,255,.09));
    color:var(--wg-ink);
  }
}

.wg-panel[hidden]{display:none}
.wg-panel{min-width:0;max-width:100%}
.wg-panel-inner{width:100%;min-width:0;max-width:100%}

/* Widget toast feedback inside canvas */
.wg-toast{
  position:absolute;
  left:50%;
  bottom:14px;
  transform:translate(-50%,10px);
  padding:7px 15px;
  border-radius:99px;
  background:rgba(18,18,22,.88);
  color:#fff;
  font-size:12.5px;
  font-weight:500;
  opacity:0;
  pointer-events:none;
  transition:opacity .22s var(--ease),transform .22s var(--ease);
  z-index:12;
  white-space:nowrap;
  max-width:90%;
  overflow:hidden;
  text-overflow:ellipsis;
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
}
.wg-toast.show{opacity:1;transform:translate(-50%,0)}

/* Scene 1: Home Screen Widgets Grid */
.wg-home-grid{
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);
  gap:20px;
  align-items:stretch;
  min-width:0;
}
.wg-home-left{
  display:flex;
  flex-direction:column;
  gap:18px;
  min-width:0;
}
.wg-small-pair{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:16px;
  flex:1;
  min-width:0;
}
.wg-card{
  background:var(--wg-card-bg);
  -webkit-backdrop-filter:saturate(180%) blur(24px);
  backdrop-filter:saturate(180%) blur(24px);
  color:var(--wg-ink);
  border:1px solid var(--wg-border);
  border-radius:26px;
  padding:16px 17px;
  box-shadow:var(--wg-glass-inset,inset 0 1px 0 rgba(255,255,255,.85)),0 16px 34px -18px rgba(0,0,0,.22),0 2px 6px rgba(0,0,0,.05);
  display:flex;
  flex-direction:column;
  text-align:left;
  position:relative;
  min-width:0;
  max-width:100%;
  transition:transform .25s var(--ease),box-shadow .25s var(--ease);
}
.wg-card-hd{
  display:flex;
  align-items:center;
  gap:7px;
  margin-bottom:11px;
  min-width:0;
}
.wg-bolt{
  width:20px;
  height:20px;
  border-radius:6px;
  display:grid;
  place-items:center;
  background:rgba(10,132,255,.14);
  color:#0a84ff;
  flex:none;
}
.wg-bolt svg{width:12px;height:12px;fill:currentColor}
.wg-brand-img{width:20px;height:13px;object-fit:contain;flex:none}
.wg-acct{
  font-size:13.5px;
  font-weight:700;
  color:var(--wg-ink);
  min-width:0;
  flex:0 1 auto;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.wg-tier{
  font-size:9.5px;
  font-weight:800;
  letter-spacing:.04em;
  padding:2.5px 6.5px;
  border-radius:5px;
  background:linear-gradient(135deg,#ff9f0a,#f2780c);
  color:#fff;
  line-height:1.1;
  flex:none;
}
.wg-sync-lbl{
  margin-left:auto;
  font-size:10.5px;
  font-weight:500;
  color:var(--wg-ink-3);
  white-space:nowrap;
  flex:none;
}
.wg-refresh-btn{
  width:24px;
  height:24px;
  border-radius:50%;
  background:var(--wg-pill-bg);
  color:var(--wg-ink-2);
  display:grid;
  place-items:center;
  flex:none;
  transition:background .2s,color .2s,transform .35s var(--ease);
}
.wg-refresh-btn:hover{background:rgba(10,132,255,.16);color:#0a84ff}
.wg-refresh-btn.spin svg{animation:wgSpin .55s ease}
.wg-refresh-btn svg{width:12px;height:12px;stroke:currentColor;fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
@keyframes wgSpin{from{transform:rotate(0)}to{transform:rotate(360deg)}}

/* Replicated 2x2 AccountQuotaSheet Panel Grid */
.wg-qgrid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:9px;
}
.wg-qcell{
  text-align:left;
  width:100%;
  min-width:0;
  background:var(--wg-sub-bg);
  border:1.5px solid transparent;
  border-radius:14px;
  padding:10px 11px 9px;
  display:flex;
  flex-direction:column;
  gap:6px;
  cursor:pointer;
  transition:border-color .18s,background .18s,transform .18s;
}
.wg-qcell:hover{transform:translateY(-1px)}
.wg-qcell.selected{
  background:var(--wg-sel-bg);
  border-color:var(--wg-sel-bd);
}
.wg-qcell-top{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:6px;
}
.wg-qcell-top span{
  font-size:11.5px;
  font-weight:600;
  color:var(--wg-ink-2);
  white-space:nowrap;
}
.wg-qcell-top b{
  font-family:var(--mono);
  font-size:12.5px;
  font-weight:700;
  color:var(--qc,#30d158);
}
.wg-bar{
  height:6px;
  border-radius:99px;
  background:var(--wg-track);
  position:relative;
  overflow:hidden;
}
.wg-bar i{
  display:block;
  height:100%;
  border-radius:99px;
  background:var(--qc,#30d158);
  width:var(--v,74%);
}
.wg-bar s{
  position:absolute;
  top:0;
  bottom:0;
  left:var(--p,80%);
  width:2px;
  border-radius:1px;
  background:rgba(255,255,255,.92);
  box-shadow:0 0 2px rgba(0,0,0,.28);
}
.wg-qcell small{
  font-size:10px;
  color:var(--wg-ink-3);
  font-variant-numeric:tabular-nums;
}

/* Small Widgets */
.wg-small-card{min-height:178px;justify-content:space-between}
.wg-big-pct{
  font-family:var(--mono);
  font-size:32px;
  font-weight:700;
  letter-spacing:-.04em;
  line-height:1.05;
  color:var(--qc,#30d158);
  margin:4px 0;
}
.wg-small-sub{
  font-size:11px;
  color:var(--wg-ink-2);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:6px;
}
.wg-status-pills{
  display:inline-flex;
  align-items:center;
  gap:5px;
  flex-wrap:wrap;
}
.wg-sp{
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:2.5px 7px;
  border-radius:99px;
  font-size:10px;
  font-weight:700;
  line-height:1.2;
  white-space:nowrap;
}
.wg-sp.warn{background:rgba(255,159,10,.16);color:#d97706}
.wg-sp.run{background:rgba(10,132,255,.15);color:#0a84ff}
.wg-sp.ok{background:rgba(48,209,88,.16);color:#248a3d}
.wg-sp.err{background:rgba(255,59,48,.16);color:#e11d48}
[data-wg-theme="dark"] .wg-sp.warn{color:#ffb340}
[data-wg-theme="dark"] .wg-sp.run{color:#5ac8fa}
[data-wg-theme="dark"] .wg-sp.ok{color:#4ade80}
[data-wg-theme="dark"] .wg-sp.err{color:#ff6961}

.wg-small-title{
  font-size:14.5px;
  font-weight:700;
  line-height:1.28;
  color:var(--wg-ink);
  margin:6px 0 7px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.wg-ws-chip{
  display:inline-flex;
  align-items:center;
  gap:4px;
  font-size:10.5px;
  font-weight:600;
  color:var(--wg-ink-2);
  background:var(--wg-pill-bg);
  padding:2.5px 8px;
  border-radius:99px;
  width:max-content;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.wg-small-ft{
  font-size:10.5px;
  color:var(--wg-ink-3);
  display:flex;
  align-items:center;
  gap:5px;
  margin-top:8px;
}
.wg-small-ft b{color:#ff9f0a;font-weight:700}

/* Large Active Chats Widget */
.wg-large-card{justify-content:space-between}
.wg-conv-list{
  display:flex;
  flex-direction:column;
  gap:7.5px;
  flex:1;
}
.wg-conv-row{
  width:100%;
  text-align:left;
  background:var(--wg-sub-bg);
  border:1px solid transparent;
  border-radius:13px;
  padding:9px 11px;
  display:flex;
  align-items:center;
  gap:9px;
  cursor:pointer;
  transition:border-color .18s,transform .18s,background .18s;
}
.wg-conv-row:hover{border-color:rgba(10,132,255,.35);transform:translateX(2px)}
.wg-conv-dot{
  width:8px;
  height:8px;
  border-radius:50%;
  flex:none;
}
.wg-conv-dot.warn{background:#ff9f0a;box-shadow:0 0 0 3px rgba(255,159,10,.2)}
.wg-conv-dot.run{background:#0a84ff;box-shadow:0 0 0 3px rgba(10,132,255,.2)}
.wg-conv-dot.ok{background:#30d158}
.wg-conv-dot.err{background:#ff3b30}
.wg-conv-main{flex:1;min-width:0}
.wg-conv-r1{
  display:flex;
  align-items:center;
  gap:6px;
}
.wg-conv-r1 b{
  font-size:12.5px;
  font-weight:650;
  color:var(--wg-ink);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.wg-conv-r2{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-top:2px;
  font-size:10.5px;
  color:var(--wg-ink-3);
}
.wg-conv-time{
  margin-left:auto;
  font-size:10.5px;
  font-variant-numeric:tabular-nums;
  color:var(--wg-ink-3);
  white-space:nowrap;
  flex:none;
}
.wg-card-ft{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:6px 8px;
  margin-top:11px;
  padding-top:9px;
  border-top:1px solid var(--wg-border);
  font-size:10.5px;
  color:var(--wg-ink-3);
}
.wg-badge-tag{
  font-size:10px;
  font-weight:600;
  padding:2px 7px;
  border-radius:99px;
  background:var(--wg-pill-bg);
  color:var(--wg-ink-2);
}

/* Scene 2: Lock Screen Accessories */
.wg-lock-layout{
  display:grid;
  grid-template-columns:minmax(270px,330px) minmax(0,1fr);
  gap:28px;
  align-items:center;
  max-width:860px;
  margin:0 auto;
  min-width:0;
}
.wg-ls-phone{
  background:linear-gradient(165deg,#19233c 0%,#10131e 55%,#1b1629 100%);
  color:#fff;
  border-radius:40px;
  padding:16px 20px 22px;
  border:4px solid #1d1d22;
  box-shadow:0 28px 60px -20px rgba(0,0,0,.45),inset 0 0 0 1px rgba(255,255,255,.15);
  display:flex;
  flex-direction:column;
  align-items:center;
  min-height:430px;
  position:relative;
}
[data-wg-theme="light"] .wg-ls-phone{
  background:linear-gradient(165deg,#3a66a8 0%,#284577 52%,#1d2b4e 100%);
}
.wg-ls-notch{
  width:92px;
  height:22px;
  border-radius:99px;
  background:#000;
  margin-bottom:18px;
}
.wg-ls-inline{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:12.5px;
  font-weight:600;
  color:rgba(255,255,255,.94);
  padding:3px 10px;
  border-radius:99px;
  background:rgba(255,255,255,.14);
  -webkit-backdrop-filter:saturate(180%) blur(18px);
  backdrop-filter:saturate(180%) blur(18px);
  border:1px solid rgba(255,255,255,.24);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.25);
  margin-bottom:4px;
}
.wg-ls-time{
  font-size:66px;
  font-weight:700;
  letter-spacing:-.04em;
  line-height:1.02;
  color:rgba(255,255,255,.95);
  margin-bottom:14px;
}
.wg-ls-row{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  margin-bottom:18px;
}
.wg-ls-circ{
  width:64px;
  height:64px;
  border-radius:50%;
  background:rgba(255,255,255,.14);
  -webkit-backdrop-filter:saturate(180%) blur(18px);
  backdrop-filter:saturate(180%) blur(18px);
  border:1px solid rgba(255,255,255,.24);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.26);
  display:grid;
  place-items:center;
  position:relative;
  flex:none;
}
.wg-ls-circ svg{width:56px;height:56px;transform:rotate(-90deg)}
.wg-ls-circ-lbl{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  line-height:1.05;
}
.wg-ls-circ-lbl b{font-size:13px;font-weight:700;color:#fff}
.wg-ls-circ-lbl small{font-size:8.5px;color:rgba(255,255,255,.78);font-weight:600}
.wg-ls-rect{
  flex:1;
  min-width:0;
  background:rgba(255,255,255,.14);
  -webkit-backdrop-filter:saturate(180%) blur(18px);
  backdrop-filter:saturate(180%) blur(18px);
  border:1px solid rgba(255,255,255,.24);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.26);
  border-radius:16px;
  padding:8px 11px;
  text-align:left;
  display:flex;
  flex-direction:column;
  gap:5px;
}
.wg-ls-rect-hd{
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:10.5px;
  font-weight:700;
  color:#fff;
}
.wg-ls-rect-r{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:6px;
  font-size:10px;
  color:rgba(255,255,255,.88);
}
.wg-ls-rect-r > span:first-child{white-space:nowrap;min-width:20px}
.wg-ls-rbar{
  height:4.5px;
  border-radius:99px;
  background:rgba(255,255,255,.22);
  overflow:hidden;
}
.wg-ls-rbar i{display:block;height:100%;border-radius:99px;background:#fff}
.wg-ls-mini-la{
  margin-top:auto;
  width:100%;
  padding:10px 12px;
  border-radius:18px;
  background:rgba(16,18,24,.64);
  -webkit-backdrop-filter:saturate(180%) blur(22px);
  backdrop-filter:saturate(180%) blur(22px);
  border:1px solid rgba(255,255,255,.18);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.16);
  display:flex;
  align-items:center;
  gap:9px;
  text-align:left;
}
.wg-ls-mini-la b{display:block;font-size:11.5px;color:#fff}
.wg-ls-mini-la small{display:block;font-size:10px;color:rgba(255,255,255,.72)}
.wg-ls-mini-la > div{min-width:0}

.wg-lock-specs{
  display:flex;
  flex-direction:column;
  gap:12px;
  text-align:left;
  min-width:0;
}
.wg-spec-card{
  background:var(--wg-card-bg);
  -webkit-backdrop-filter:saturate(180%) blur(22px);
  backdrop-filter:saturate(180%) blur(22px);
  border:1px solid var(--wg-border);
  box-shadow:var(--wg-glass-inset,inset 0 1px 0 rgba(255,255,255,.85)),0 12px 28px -16px rgba(0,0,0,.16);
  border-radius:20px;
  padding:16px 18px;
  min-width:0;
}
.wg-spec-card span{
  display:inline-block;
  font-family:var(--mono);
  font-size:11px;
  font-weight:700;
  color:#0a84ff;
  margin-bottom:5px;
}
.wg-spec-card h4{font-size:16px;font-weight:700;color:var(--wg-ink);margin-bottom:4px}
.wg-spec-card p{font-size:13.5px;line-height:1.45;color:var(--wg-ink-2)}

/* Scene 3: CarPlay & Apple Watch */
.wg-cw-layout{
  display:grid;
  grid-template-columns:minmax(0,1.55fr) minmax(0,.75fr);
  gap:22px;
  align-items:center;
  min-width:0;
}
.wg-cw-layout > *{
  min-width:0;
  max-width:100%;
}
.wg-carplay{
  background:#0c0d11;
  color:#f5f5f7;
  color-scheme:dark;
  border-radius:28px;
  padding:12px;
  border:5px solid #202128;
  box-shadow:0 28px 60px -24px rgba(0,0,0,.48);
  text-align:left;
  width:100%;
  max-width:100%;
  min-width:0;
  overflow:hidden;
}
.wg-cp-screen{
  display:grid;
  grid-template-columns:52px minmax(0,1.05fr) minmax(0,1fr);
  gap:10px;
  min-height:276px;
  min-width:0;
}
.wg-cp-dock{
  background:rgba(255,255,255,.08);
  -webkit-backdrop-filter:saturate(160%) blur(16px);
  backdrop-filter:saturate(160%) blur(16px);
  border:0.5px solid rgba(255,255,255,.12);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14);
  border-radius:16px;
  padding:10px 6px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:space-between;
  font-size:10.5px;
  font-weight:700;
  color:#fff;
}
.wg-cp-icons{display:flex;flex-direction:column;gap:8px;align-items:center}
.wg-cp-ico{
  width:30px;
  height:30px;
  border-radius:9px;
  display:grid;
  place-items:center;
  font-size:13px;
  background:rgba(255,255,255,.12);
}
.wg-cp-homegrid{
  display:grid;
  grid-template-columns:repeat(2,5px);
  gap:2.5px;
  opacity:.72;
}
.wg-cp-homegrid i{
  width:5px;
  height:5px;
  border-radius:1.5px;
  background:#fff;
  display:block;
}
.wg-cp-widget-tag{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:6px;
  min-width:0;
  font-size:9.5px;
  font-weight:600;
  color:var(--wg-ink-3);
  letter-spacing:.01em;
  padding-bottom:7px;
  margin-bottom:4px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.wg-cp-widget-tag > span:first-child{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.wg-cp-readonly{
  flex:none;
  white-space:nowrap;
  padding:1.5px 6px;
  border-radius:99px;
  background:var(--wg-pill-bg);
  color:var(--wg-ink-2);
  font-size:9px;
  font-weight:600;
}
.wg-cp-note{
  margin-top:8px;
  font-size:11.5px;
  line-height:1.45;
  color:var(--wg-ink-2);
  text-align:center;
  max-width:100%;
  overflow-wrap:break-word;
}
.wg-cp-ic-slot{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:none;
}
.wg-cp-map{
  border-radius:18px;
  background:
    radial-gradient(circle at 70% 25%, rgba(48,209,88,.22), transparent 55%),
    linear-gradient(155deg,#182433 0%,#121923 100%);
  border:1px solid rgba(255,255,255,.09);
  padding:12px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  position:relative;
  overflow:hidden;
  min-width:0;
}
.wg-cp-navpill{
  background:#1f9d55;
  color:#fff;
  border-radius:12px;
  padding:8px 10px;
  font-size:11.5px;
  font-weight:700;
  line-height:1.28;
  position:relative;
  z-index:2;
  min-width:0;
}
.wg-cp-navpill small{display:block;font-weight:500;opacity:.88;font-size:10px}
.wg-cp-roads{position:absolute;inset:0;opacity:.4;pointer-events:none}
.wg-cp-eta{
  position:relative;
  z-index:2;
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:rgba(16,18,24,.82);
  border-radius:10px;
  padding:6px 10px;
  font-size:11px;
  font-weight:600;
  width:max-content;
  max-width:100%;
}
.wg-cp-cards{
  display:flex;
  flex-direction:column;
  gap:10px;
  min-width:0;
}
.wg-cp-la{
  background:rgba(30,31,38,.78);
  -webkit-backdrop-filter:saturate(180%) blur(18px);
  backdrop-filter:saturate(180%) blur(18px);
  color:#f5f5f7;
  border:1px solid rgba(255,255,255,.12);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14);
  border-radius:18px;
  padding:13px 14px;
  flex:1;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  gap:8px;
  min-width:0;
}
.wg-cp-la-r1{
  display:flex;
  align-items:center;
  gap:7px;
  min-width:0;
}
.wg-cp-la-r1 b{
  flex:1;
  min-width:0;
  font-size:13px;
  font-weight:700;
  color:var(--wg-ink);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.wg-cp-la-r2{
  font-size:12px;
  line-height:1.38;
  color:var(--wg-ink-2);
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  overflow-wrap:anywhere;
}
.wg-cp-quota{
  background:rgba(30,31,38,.78);
  -webkit-backdrop-filter:saturate(180%) blur(18px);
  backdrop-filter:saturate(180%) blur(18px);
  color:#f5f5f7;
  border:1px solid rgba(255,255,255,.12);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14);
  border-radius:18px;
  padding:11px 13px;
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:0;
}
.wg-cp-quota > div:last-child{
  line-height:1.35;
  overflow-wrap:anywhere;
}
.wg-cp-statebar{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin-top:14px;
  flex-wrap:wrap;
}
.wg-cp-chip{
  padding:5px 12px;
  border-radius:99px;
  font-size:12px;
  font-weight:600;
  background:var(--wg-card-bg);
  color:var(--wg-ink-2);
  border:1px solid var(--wg-border);
  transition:border-color .18s,color .18s,background .18s;
}
.wg-cp-chip[aria-pressed="true"]{
  background:#0071e3;
  border-color:#0071e3;
  color:#fff;
}

/* Apple Watch Smart Stack */
.wg-watch-wrap{display:flex;flex-direction:column;align-items:center;gap:10px}
.wg-watch{
  width:214px;
  background:#090a0d;
  color:#fff;
  border-radius:46px;
  padding:14px 14px 16px;
  border:7px solid #2c2d35;
  box-shadow:0 26px 52px -18px rgba(0,0,0,.48),inset 0 0 0 1px rgba(255,255,255,.14);
  position:relative;
  text-align:left;
}
.wg-watch::after{
  content:"";
  position:absolute;
  right:-11px;
  top:54px;
  width:5px;
  height:36px;
  border-radius:3px;
  background:#3c3d47;
}
.wg-watch-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:11px;
  font-weight:700;
  color:rgba(255,255,255,.85);
  margin-bottom:10px;
}
.wg-watch-card{
  background:#1c1e26;
  border:1px solid rgba(255,255,255,.12);
  border-radius:18px;
  padding:11px;
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-bottom:8px;
}
.wg-watch-card b{font-size:12.5px;line-height:1.25;color:#fff}
.wg-watch-card p{font-size:11px;line-height:1.35;color:#c7c9d4}
.wg-watch-next{
  background:rgba(255,255,255,.07);
  border-radius:14px;
  padding:8px 10px;
  font-size:10.5px;
  color:rgba(255,255,255,.72);
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.wg-watch-cap{
  font-size:12px;
  font-weight:600;
  color:var(--wg-ink-2);
}

/* ==========================================================================
   12. v1.2.4 What's New 2-Card Demos & Download TestFlight + WeChat Modal
   ========================================================================== */
.v234-demo{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:9px;
  font-size:12.5px;
  min-width:0;
}
.v234-row{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
  padding:9px 11px;
  border-radius:12px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.09);
  color:#e5e5ea;
}
.v234-row b{font-weight:650;color:#fff;white-space:nowrap;flex:none}
.v234-row span.v234-sub{flex:1;min-width:0;color:#a1a1a6;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.v234-pill{
  display:inline-flex;
  align-items:center;
  padding:2px 8px;
  border-radius:99px;
  font-size:11px;
  font-weight:700;
  font-family:var(--mono);
  flex:none;
}
.v234-pill.neon{background:rgba(191,90,242,.22);color:#e0aaff;border:1px solid rgba(191,90,242,.38)}
.v234-pill.mcp{background:rgba(41,151,255,.18);color:#64d2ff;border:1px solid rgba(41,151,255,.32);margin-left:auto}
.v234-pill.skill{background:rgba(48,209,88,.18);color:#6ee7b7;border:1px solid rgba(48,209,88,.32)}
.v234-pill.ok{background:rgba(48,209,88,.16);color:#30d158;margin-left:auto}
.v234-pill.amber{background:rgba(255,159,10,.18);color:#ffb340;margin-left:auto}
.v234-langs{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
}
.v234-langs i{
  font-style:normal;
  font-size:11.5px;
  font-weight:600;
  padding:3px 9px;
  border-radius:99px;
  background:rgba(255,255,255,.07);
  color:#f5f5f7;
}

/* TestFlight secondary CTA in Download iOS Card */
.btn.tf-btn{
  background:rgba(255,255,255,.13);
  color:#fff;
  border:1px solid rgba(255,255,255,.22);
  font-size:15px;
  min-height:44px;
  padding:9px 18px;
}
.btn.tf-btn:hover{background:rgba(255,255,255,.21)}
.btn.tf-light{
  background:#fff;
  color:var(--ink);
  border:1px solid rgba(0,0,0,.12);
  font-size:15px;
}
.btn.tf-light:hover{background:#ececf0}

/* Community WeChat / GitHub Strip */
.comm-strip{
  margin-top:20px;
  background:var(--gray-bg);
  border-radius:26px;
  padding:22px 28px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
}
.comm-strip-l{display:flex;align-items:center;gap:14px;min-width:0}
.comm-ic{
  width:46px;
  height:46px;
  border-radius:14px;
  background:#fff;
  display:grid;
  place-items:center;
  color:#07c160;
  box-shadow:0 2px 8px rgba(0,0,0,.06);
  flex:none;
}
.comm-ic.gh{color:var(--ink)}
.comm-ic.tg{color:#26a5e4}
.comm-acts{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.comm-strip h4{font-size:18px;font-weight:700;letter-spacing:-.02em;margin-bottom:2px}
.comm-strip p{font-size:14.5px;color:var(--ink-2)}

/* WeChat QR Native Modal Dialog (modern-web-guidance: light-dismiss-a-dialog + animate-to-from-top-layer) */
dialog.wx-dialog{
  margin:auto;
  padding:0;
  border:1px solid rgba(0,0,0,.08);
  border-radius:28px;
  background:#fff;
  color:var(--ink);
  width:min(92vw,372px);
  max-height:90vh;
  overflow:auto;
  box-shadow:0 36px 80px -20px rgba(0,0,0,.36);
  opacity:0;
  transition-property:opacity,transform,display,overlay;
  transition-duration:.26s;
  transition-timing-function:var(--ease);
  transition-behavior:allow-discrete;
}
@media (prefers-reduced-motion: no-preference){
  dialog.wx-dialog{transform:scale(.93) translateY(8px)}
}
dialog.wx-dialog[open]:not([data-closing]){
  opacity:1;
}
@media (prefers-reduced-motion: no-preference){
  dialog.wx-dialog[open]:not([data-closing]){transform:scale(1) translateY(0)}
}
@starting-style{
  dialog.wx-dialog[open]:not([data-closing]){opacity:0}
  @media (prefers-reduced-motion: no-preference){
    dialog.wx-dialog[open]:not([data-closing]){transform:scale(.93) translateY(8px)}
  }
}
dialog.wx-dialog::backdrop{
  background:rgba(0,0,0,0);
  -webkit-backdrop-filter:blur(0px);
  backdrop-filter:blur(0px);
  transition-property:background-color,backdrop-filter,display,overlay;
  transition-duration:.26s;
  transition-timing-function:var(--ease);
  transition-behavior:allow-discrete;
}
dialog.wx-dialog[open]:not([data-closing])::backdrop{
  background:rgba(0,0,0,.52);
  -webkit-backdrop-filter:blur(6px);
  backdrop-filter:blur(6px);
}
@starting-style{
  dialog.wx-dialog[open]:not([data-closing])::backdrop{
    background:rgba(0,0,0,0);
    -webkit-backdrop-filter:blur(0px);
    backdrop-filter:blur(0px);
  }
}
@media (prefers-reduced-motion: reduce){
  dialog.wx-dialog,
  dialog.wx-dialog::backdrop{transition-duration:.1s}
}
.wx-dialog-in{
  padding:22px 22px 20px;
  text-align:center;
}
.wx-dialog-hd{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:14px;
}
.wx-dialog-hd h3{font-size:18px;font-weight:700;letter-spacing:-.02em}
.wx-dialog-x{
  width:32px;
  height:32px;
  border-radius:50%;
  background:var(--gray-bg);
  color:var(--ink-2);
  display:grid;
  place-items:center;
  font-size:18px;
  line-height:1;
}
.wx-dialog-x:hover{background:#e5e5ea;color:var(--ink)}
.wx-qr-frame{
  border-radius:18px;
  overflow:hidden;
  background:#f5f5f7;
  border:1px solid rgba(0,0,0,.06);
  margin-bottom:14px;
}
.wx-qr-frame img{width:100%;height:auto;display:block}
.wx-dialog-note{font-size:13px;line-height:1.5;color:var(--ink-2);margin-bottom:14px}
.wx-dialog-note a{color:var(--link);text-decoration:underline}

@media(max-width:900px){
  .wg-home-grid,.wg-lock-layout,.wg-cw-layout{grid-template-columns:minmax(0,1fr)}
  .wg-ls-phone{max-width:320px;margin:0 auto;width:100%}
  .wg-cp-screen{grid-template-columns:44px minmax(0,1fr);grid-template-rows:auto auto}
  .wg-cp-dock{grid-row:1/3}
}
@media(max-width:600px){
  .wg-stage-canvas{padding:14px;border-radius:24px}
  .wg-tablist{padding:3px;gap:2px;border-radius:14px}
  .wg-tab{padding:8px 11px;font-size:12.5px;gap:4px;border-radius:10px}
  .wg-tab[aria-selected="true"]::after{inset:auto 10px 3px}
  .wg-small-pair{grid-template-columns:minmax(0,1fr)}
  .wg-qgrid{grid-template-columns:minmax(0,1fr)}
  .wg-card{padding:14px;border-radius:22px}
  .wg-status-pills{gap:4px;flex-wrap:nowrap}
  .wg-sp{padding:2px 6px;font-size:9.5px}
  .wg-carplay{padding:10px;border-width:4px;border-radius:22px}
  .wg-cp-screen{grid-template-columns:38px minmax(0,1fr);gap:8px}
  .wg-cp-dock{padding:8px 4px;border-radius:12px;font-size:9.5px}
  .wg-cp-ico{width:26px;height:26px;border-radius:8px;font-size:12px}
  .wg-cp-la{padding:11px 12px;border-radius:14px}
  .wg-cp-quota{padding:10px 12px;border-radius:14px}
  .wg-cp-map{padding:10px;border-radius:14px}
  .wg-cp-navpill{font-size:11px;padding:7px 9px}
  .wg-cp-note{font-size:11px;padding:0 2px}
  .wg-cp-chip{padding:5px 10px;font-size:11.5px}
  .comm-strip{padding:18px 20px}
}

/* Compact Repositioned Legacy Live Alerts Section (#live-alerts) */
.live-alerts{
  background:#000;
  color:#f5f5f7;
  padding:clamp(64px,8vw,108px) 0;
  position:relative;
  overflow:hidden;
}
.live-alerts::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:420px;
  background:radial-gradient(45% 65% at 50% 0%,rgba(41,151,255,.12),transparent 72%);
  pointer-events:none;
}
.live-alerts .wrap-wide{position:relative}
.live-alerts-head{
  text-align:center;
  max-width:740px;
  margin:0 auto 28px;
}
.live-alerts-head .lead{
  margin-top:14px;
  font-size:clamp(15.5px,1.5vw,19px);
}
.live-alerts .v120-stage{
  margin:20px 0 0;
}

/* Defer layout/paint for static below-the-fold sections (paired with contain-intrinsic-size to prevent CLS) */
#more,
#live-alerts,
#install,
#download,
.compare,
#faq {
  content-visibility: auto;
  contain-intrinsic-size: auto none auto 720px;
}

