/* /try: the page, the phone, the sample apps a build makes (driven by the style's CSS variables, see try.js) and the\n   Owlex Builder screens themselves (.bd-*, the app's own colors: violet #8B5CF6, blue #4F8BFF, navy #1E1B4B). */
.pg { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: start; padding: 56px 0 112px; }
.pg-panel { display: grid; gap: 28px; }
.pg-group h2 { font-size: 14px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; margin-bottom: 10px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); cursor: pointer; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; transition: border-color var(--t-fast), background-color var(--t-fast), color var(--t-fast); }
.opt:hover { border-color: var(--ink-3); color: var(--ink); }
.opt[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.preset { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; cursor: pointer; font-size: 15px; font-weight: 500; color: var(--ink); text-align: left; transition: border-color var(--t-fast); }
.preset:hover { border-color: var(--ink-3); }
.preset[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.preset .sw { display: flex; }
.preset .sw i { width: 18px; height: 18px; border-radius: 50%; box-shadow: 0 0 0 2px #fff, inset 0 0 0 1px rgba(0, 0, 0, .1); }
.preset .sw i + i { margin-left: -4px; }
.ctl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ctl { display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.ctl input[type="color"] { width: 100%; height: 44px; padding: 4px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #fff; cursor: pointer; }
.ctl select { height: 44px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #fff; font-size: 15px; }
.ctl input[type="range"] { width: 100%; accent-color: var(--accent); height: 28px; }
.checkline { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 15px; color: var(--ink-2); cursor: pointer; }
.checkline input { width: 18px; height: 18px; accent-color: var(--accent); }
.try-steps { list-style: decimal; padding-left: 20px; display: grid; gap: 10px; color: var(--ink-2); font-size: 16px; }
.try-steps b { color: var(--ink); font-weight: 600; }
.style-card { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); }
.style-card b { font-size: 17px; }
.style-card p { color: var(--ink-2); font-size: 15px; margin-top: 4px; }
.pg-stage { position: sticky; top: 88px; display: grid; justify-items: center; gap: 14px; }
.pg-stage .hint { font-size: 14px; color: var(--ink-3); }

/* ---------- the phone ---------- */
.device { width: 360px; border-radius: 48px; padding: 10px; background: #0F0E14; box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 40px 80px -40px rgba(22, 20, 31, .55); }
.pg-screen {
  position: relative; height: 720px; border-radius: 38px; overflow: hidden; display: flex; flex-direction: column;
  background: var(--bgimg); color: var(--text); font-family: var(--fb); -webkit-font-smoothing: antialiased;
  transition: background .3s;
}
.pg-screen::before, .pg-screen::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; filter: blur(30px); }
.pg-screen::before { width: 260px; height: 260px; left: -90px; top: -60px; background: var(--glow1); }
.pg-screen::after { width: 280px; height: 280px; right: -110px; bottom: 60px; background: var(--glow2); }
.pg-screen > * { position: relative; z-index: 1; }
.pg-screen button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
.pg-screen input, .pg-screen textarea { font: inherit; color: var(--text); background: transparent; border: 0; outline: none; width: 100%; }
.pg-screen input::placeholder, .pg-screen textarea::placeholder { color: var(--muted); }
.pg-screen .ic { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; display: block; }
.pg-screen .sbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 22px 6px; font: 600 12px/1 system-ui, sans-serif; color: var(--text); }
.pg-screen .sbar .si { display: flex; gap: 4px; align-items: center; }
.pg-screen .sbar .si i { width: 3px; height: 8px; border-radius: 1px; background: var(--text); }
.pg-screen .sbar .si i + i { height: 10px; }
.pg-screen .sbar .si b { width: 18px; height: 9px; border-radius: 2px; border: 1.5px solid var(--text); margin-left: 3px; background: linear-gradient(90deg, var(--text) 70%, transparent 70%) content-box; padding: 1px; }
.pg-screen .gesture { display: grid; place-items: center; height: 18px; flex: none; }
.pg-screen .gesture i { width: 110px; height: 4px; border-radius: 4px; background: var(--text); opacity: .55; }
.pg-screen .scroll { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 4px 14px 16px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: none; }
.pg-screen .scroll::-webkit-scrollbar { display: none; }
.pg-screen .scroll.pad-float { padding-bottom: 84px; }
.pg-screen .scroll > * { flex-shrink: 0; }

.pg-screen /* text */
.t { font-family: var(--ft); font-weight: 600; letter-spacing: -.01em; line-height: 1.2; color: var(--text); }
.pg-screen .b { line-height: 1.4; color: var(--text); }
.pg-screen .muted { color: var(--muted) !important; }
.pg-screen .on { color: var(--onp) !important; }
.pg-screen .on-dim { color: color-mix(in srgb, var(--onp) 80%, transparent) !important; }
.pg-screen .semi { font-weight: 600; }
.pg-screen .med { font-weight: 500; }
.pg-screen .center { text-align: center; }
.pg-screen .ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-screen .strike { text-decoration: line-through; }
.pg-screen .w40 { width: 40px; flex: none; }
.pg-screen .row { display: flex; align-items: center; padding: 0; border: 0; gap: 0; grid-template-columns: none; }
.pg-screen .col { display: flex; flex-direction: column; }
.pg-screen .grow { flex: 1; min-width: 0; }
.pg-screen .gap8 { gap: 8px; }
.pg-screen .mid { padding: 0 10px; }
.pg-screen .pad { padding: 12px; }

.pg-screen /* surfaces */
.card { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow), var(--border); }
.pg-screen .r-row { border-radius: var(--rowr); }
.pg-screen .item { display: flex; align-items: center; padding: 10px; cursor: pointer; transition: transform .15s; }
.pg-screen .item:active, .pg-screen .pcard:active, .pg-screen .hero[data-a]:active { transform: scale(.98); }
.pg-screen .list { overflow: hidden; }
.pg-screen .set { display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: default; }
.pg-screen .set[data-a] { cursor: pointer; }
.pg-screen .set + .set { border-top: 1px solid color-mix(in srgb, var(--muted) 12%, transparent); }
.pg-screen .hero { background: var(--action); border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow); color: var(--onp); }
.pg-screen .hero[data-a] { cursor: pointer; }
.pg-screen .hero.row { flex-direction: row; align-items: center; gap: 10px; }
.pg-screen .hero-pill { display: inline-block; padding: 4px 10px; border-radius: var(--pill); background: var(--onp); color: var(--primary); font-size: 10px; font-weight: 600; }

.pg-screen /* controls */
.icirc { position: relative; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.pg-screen .badge { position: absolute; top: -3px; right: -3px; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 8px; background: var(--accent); color: var(--onp); border: 1.5px solid var(--surface); font: 700 8px/12px system-ui, sans-serif; text-align: center; }
.pg-screen .avatar { border-radius: 50%; background: var(--action); color: var(--onp); display: grid; place-items: center; font-family: var(--ft); font-weight: 600; flex: none; }
.pg-screen .btn-p, .pg-screen .btn-s { width: 100%; height: 42px; border-radius: var(--pill) !important; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 600; transition: transform .15s, opacity .2s; }
.pg-screen .btn-p { background: var(--action) !important; color: var(--onp) !important; box-shadow: var(--shadow); }
.pg-screen .btn-p:disabled { opacity: .45; cursor: default; }
.pg-screen .btn-s { background: var(--soft) !important; color: var(--primary) !important; }
.pg-screen .btn-s.danger { color: var(--err) !important; }
.pg-screen .btn-p:active, .pg-screen .btn-s:active { transform: scale(.98); }
.pg-screen .chips { display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.pg-screen .chip { flex: none; display: inline-block; height: auto; border: 0; white-space: nowrap; padding: 6px 12px !important; border-radius: var(--pill) !important; background: var(--soft) !important; color: var(--primary) !important; font-size: 11px; font-weight: 500; transition: background-color .2s, color .2s; }
.pg-screen .chip.on { background: var(--accent) !important; color: var(--onp) !important; }
.pg-screen .seg { display: flex; padding: 3px; border-radius: var(--pill); }
.pg-screen .seg button { flex: 1; min-height: 0; padding: 7px 0 !important; border-radius: var(--pill) !important; font-size: 11px; font-weight: 600; color: var(--muted) !important; }
.pg-screen .seg button.on { background: var(--action) !important; color: var(--onp) !important; }
.pg-screen .chk { width: 20px; height: 20px; border-radius: 50% !important; display: grid; place-items: center; flex: none; border: 1.5px solid color-mix(in srgb, var(--muted) 60%, transparent) !important; color: var(--onp) !important; transition: background-color .2s; }
.pg-screen .chk.on { background: var(--accent) !important; border-color: var(--accent) !important; }
.pg-screen .chk .ic { stroke-width: 2.6; }
.pg-screen .tgl { width: 36px; height: 20px; border-radius: 10px !important; background: color-mix(in srgb, var(--muted) 30%, transparent) !important; padding: 2px !important; flex: none; transition: background-color .2s; }
.pg-screen .tgl i { display: block; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.pg-screen .tgl.on { background: var(--accent) !important; }
.pg-screen .tgl.on i { transform: translateX(16px); }
.pg-screen .step { display: inline-flex; align-items: center; padding: 2px; border-radius: var(--pill); background: var(--soft); }
.pg-screen .step button { width: 24px; height: 24px; border-radius: 50% !important; display: grid; place-items: center; color: var(--primary) !important; }
.pg-screen .step b { width: 22px; text-align: center; font-size: 12px; font-weight: 600; }
.pg-screen .link { font-size: 11px; font-weight: 600; color: var(--accent) !important; }
.pg-screen .plain { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50% !important; }
.pg-screen .field { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border-radius: var(--pill); font-size: 12px; }
.pg-screen .field .clear { display: grid; place-items: center; }
.pg-screen .note { padding: 12px; border-radius: var(--small); }
.pg-screen .note textarea { min-height: 30px; resize: none; font-size: 12px; }
.pg-screen .tile { border-radius: 50%; display: grid; place-items: center; flex: none; }
.pg-screen .empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 0; }
.pg-screen .prog { width: 100%; border-radius: 9px; overflow: hidden; }
.pg-screen .prog i { display: block; height: 100%; border-radius: inherit; transition: width .3s; }
.pg-screen .ring { position: relative; display: grid; place-items: center; flex: none; }
.pg-screen .ring svg { position: absolute; inset: 0; }
.pg-screen .ring circle { fill: none; stroke-width: 6; }
.pg-screen .bars { display: flex; align-items: flex-end; gap: 6px; }
.pg-screen .bars i { flex: 1; border-radius: var(--small) var(--small) 0 0; background: color-mix(in srgb, var(--accent) 35%, transparent); transition: height .3s; }
.pg-screen .bars i.last { background: var(--action); }
.pg-screen .bar-l { display: flex; gap: 6px; margin-top: 4px; }
.pg-screen .bar-l span { flex: 1; text-align: center; font-size: 8px; color: var(--muted); }
.pg-screen .tag { align-self: flex-start; padding: 4px 10px; border-radius: var(--pill); background: var(--soft); color: var(--primary); font-size: 10px; font-weight: 600; }
.pg-screen .days { display: flex; gap: 5px; }
.pg-screen .day { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 8px 0 !important; border-radius: var(--small) !important; gap: 1px; }
.pg-screen .day .b { color: var(--muted); }
.pg-screen .day.on { background: var(--action) !important; }
.pg-screen .day.on .b { color: color-mix(in srgb, var(--onp) 85%, transparent); }
.pg-screen .day.on .t { color: var(--onp); }
.pg-screen .day i { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); margin-top: 3px; }
.pg-screen .day.on i { background: var(--onp); }
.pg-screen .vbar { width: 3px; height: 30px; border-radius: 3px; flex: none; }
.pg-screen .okpill { padding: 4px 10px; border-radius: var(--pill); background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--ok); font-size: 10px; font-weight: 600; }
.pg-screen .qa { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px !important; }
.pg-screen .qa-i { width: 46px; height: 46px; display: grid; place-items: center; border-radius: calc(var(--small) + 4px); }
.pg-screen .bank { aspect-ratio: 1.6; border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--shadow); color: var(--onp); }
.pg-screen .bank.ink { background: linear-gradient(135deg, var(--text), color-mix(in srgb, var(--text) 75%, transparent)); color: var(--bg); }
.pg-screen .bank .t { color: inherit; }
.pg-screen .bank .chipbox { width: 30px; height: 22px; border-radius: 5px; }
.pg-screen .bank .num { font: 500 15px/1 ui-monospace, "JetBrains Mono", monospace; letter-spacing: .02em; }
.pg-screen .person { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 2px !important; }
.pg-screen .person span:first-child { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--primary); font-family: var(--ft); font-weight: 600; font-size: 15px; }
.pg-screen .person span.on { background: var(--accent); color: var(--onp); }
.pg-screen .paybtn { padding: 6px 12px !important; border-radius: var(--pill) !important; background: var(--accent) !important; color: var(--onp) !important; font-size: 11px; font-weight: 600; }
.pg-screen .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pg-screen .pcard { padding: 8px; display: flex; flex-direction: column; gap: 4px; cursor: pointer; transition: transform .15s; }
.pg-screen .pimg { position: relative; aspect-ratio: 1; border-radius: var(--small); display: grid; place-items: center; }
.pg-screen .heartbtn { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50% !important; background: var(--surface) !important; display: grid; place-items: center; }
.pg-screen .addbtn { width: 24px; height: 24px; border-radius: 50% !important; background: var(--action) !important; color: var(--onp) !important; display: grid; place-items: center; }
.pg-screen .bigimg { aspect-ratio: 1.15; border-radius: var(--r); display: grid; place-items: center; }
.pg-screen .size { width: 36px; height: 36px; border-radius: var(--small) !important; border: 1px solid color-mix(in srgb, var(--muted) 40%, transparent) !important; font-size: 11px; font-weight: 600; }
.pg-screen .size.on { background: var(--accent) !important; border-color: var(--accent) !important; color: var(--onp) !important; }
.pg-screen .thumb { width: 52px; height: 52px; border-radius: var(--small); display: grid; place-items: center; flex: none; }

.pg-screen /* navigation */
.pg-nav { display: flex; flex: none; z-index: 2; }
.pg-nav button { display: flex; flex-direction: column; align-items: center; color: var(--muted) !important; }
.pg-nav button.on { color: var(--accent) !important; }
.pg-screen .nav-i { position: relative; display: grid; place-items: center; transition: background-color .2s; }
.pg-screen .nav-floating { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); gap: 14px; padding: 6px 10px; border-radius: var(--pill); background: var(--surface); box-shadow: var(--shadow), var(--border), 0 8px 20px -10px rgba(0, 0, 0, .25); }
.pg-screen .nav-floating .nav-i { width: 32px; height: 32px; border-radius: 50%; }
.pg-screen .nav-floating .on .nav-i { background: var(--soft); }
.pg-screen .nav-floating .nav-l { display: none; }
.pg-screen .nav-bar { justify-content: space-around; padding: 6px 0 2px; background: var(--surface); box-shadow: 0 -1px 0 color-mix(in srgb, var(--muted) 15%, transparent); }
.pg-screen .nav-bar button { flex: 1; }
.pg-screen .nav-bar .nav-i { width: 44px; height: 24px; border-radius: var(--pill); }
.pg-screen .nav-bar .on .nav-i { background: var(--soft); }
.pg-screen .nav-bar .nav-l { font-size: 9px; margin-top: 2px; }
.pg-screen .nav-bar .on .nav-l { font-weight: 600; }
.pg-screen .nav-top { gap: 14px; padding: 0 14px 6px; }
.pg-screen .nav-top .nav-i { display: none; }
.pg-screen .nav-top .nav-l { font-size: 12px; font-weight: 500; color: var(--muted); }
.pg-screen .nav-top .on .nav-l { color: var(--text); font-weight: 600; }
.pg-screen .nav-top button::after { content: ""; width: 0; height: 3px; border-radius: 3px; margin-top: 4px; background: var(--accent); transition: width .2s; }
.pg-screen .nav-top button.on::after { width: 22px; }

.pg-screen /* overlays */
.snack { position: absolute; left: 12px; right: 12px; bottom: 30px; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--small); background: var(--text); color: var(--bg); font-size: 11px; animation: up .25s ease-out; }
.pg-screen .snack span { flex: 1; }
.pg-screen .snack button { color: var(--accent) !important; font-weight: 600; font-size: 11px; }
.pg-screen [data-dark="false"] .snack button { color: color-mix(in srgb, var(--accent) 60%, white) !important; }
.pg-screen .scrim { position: absolute; inset: 0; z-index: 6; background: rgba(0, 0, 0, .38); animation: fade .2s; }
.pg-screen .sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 7; padding: 16px 16px 26px; border-radius: calc(var(--r) + 4px) calc(var(--r) + 4px) 0 0; display: flex; flex-direction: column; gap: 10px; animation: up .25s ease-out; }
.pg-screen .handle { align-self: center; width: 36px; height: 4px; border-radius: 4px; background: color-mix(in srgb, var(--muted) 40%, transparent); }
.pg-screen .dlg { position: absolute; left: 24px; right: 24px; top: 50%; transform: translateY(-50%); z-index: 7; padding: 16px; border-radius: calc(var(--r) + 4px); display: flex; flex-direction: column; gap: 12px; animation: fade .2s; }
@keyframes up { from { transform: translateY(24px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }

@media (max-width: 1024px) {
  .pg { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .pg-stage { position: static; order: -1; }
}
@media (max-width: 480px) {
  .device { width: 100%; max-width: 360px; border-radius: 44px; padding: 8px; }
  .pg-screen { height: 660px; border-radius: 36px; }
  .presets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ctl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
}

/* ---------- Owlex Builder (simulated) ---------- */
.pg-screen .bd { position: absolute; inset: 0; display: flex; flex-direction: column; color: #1E1B4B; font-family: var(--font); }
.pg-screen .bd .ic { stroke-width: 1.8; }
.pg-screen .bd-grow { flex: 1; min-width: 0; }
.pg-screen .bd-row { display: flex; align-items: center; }
.pg-screen .bd-top { display: flex; align-items: center; gap: 9px; padding: 6px 14px 0; }
.pg-screen .bd-avatar { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, #8B5CF6, #4F8BFF); display: grid; place-items: center; border: 2px solid #fff; box-shadow: 0 6px 14px -6px rgba(139, 92, 246, .8); }
.pg-screen .bd-avatar.big { width: 64px; height: 64px; }
.pg-screen .bd-circle { position: relative; width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: #8B5CF6; box-shadow: 0 6px 14px -6px rgba(139, 92, 246, .55); flex: none; }
.pg-screen .bd-circle .ic { width: 20px; height: 20px; }
.pg-screen .bd-num { position: absolute; top: -3px; right: -3px; width: 15px; height: 15px; border-radius: 50%; background: linear-gradient(135deg, #8B5CF6, #4F8BFF); color: #fff; font: 600 9px/15px var(--font); text-align: center; }
.pg-screen .bd-dot { position: absolute; top: -1px; right: -1px; width: 13px; height: 13px; border-radius: 50%; border: 2px solid #fff; background: linear-gradient(135deg, #8B5CF6, #4F8BFF); }
.pg-screen .bd-title { text-align: center; padding: 12px 18px 0; }
.pg-screen .bd-hello { font-size: 18px; color: #7C7AA6; }
.pg-screen .bd-main { font-size: 19px; font-weight: 600; line-height: 1.25; margin-top: 3px; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pg-screen .bd-stage { flex: 1; min-height: 0; display: grid; place-items: center; }
.pg-screen .bd-robot-wrap { position: relative; width: min(220px, 100%); }
.pg-screen .bd-robot { display: block; width: 100%; animation: bd-float 4.5s ease-in-out infinite; }
.pg-screen .bd-robot img { width: 100%; height: auto; display: block; }
.pg-screen .bd-robot.busy { animation: bd-float 1.6s ease-in-out infinite; }
@keyframes bd-float { 50% { transform: translateY(-8px); } }
.pg-screen .bd-bubble { position: absolute; left: 50%; bottom: 84%; transform: translateX(-50%); width: max-content; max-width: 250px; padding: 9px 13px; border-radius: 16px; background: #fff; font-size: 12.5px; font-weight: 500; color: #1E1B4B; line-height: 1.35; text-align: center; box-shadow: 0 8px 18px -10px rgba(139, 92, 246, .7); z-index: 2; }
.pg-screen .bd-bubble:empty, .pg-screen .bd-bubble:has(span:empty) { visibility: hidden; }
.pg-screen .bd-bubble::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; background: #fff; transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
.pg-screen .bd-bottom { display: flex; flex-direction: column; gap: 10px; padding: 0 14px 6px; }
.pg-screen .bd-lines { display: flex; flex-direction: column; align-items: center; gap: 5px; min-height: 92px; justify-content: flex-end; }
.pg-screen .bd-line { display: flex; align-items: center; gap: 7px; font-size: 12px; color: rgba(124, 122, 166, .45); white-space: nowrap; animation: bd-in .35s ease-out; }
.pg-screen .bd-line.r0 { font-size: 14px; font-weight: 600; color: #1E1B4B; }
.pg-screen .bd-line.r0.done { color: #16A34A; }
.pg-screen .bd-line.r0.error { color: #E5484D; }
.pg-screen .bd-line.r1 { color: rgba(124, 122, 166, .75); }
.pg-screen .bd-line.r3 { color: rgba(124, 122, 166, .3); }
@keyframes bd-in { from { opacity: 0; transform: translateY(8px); } }
.pg-screen .bd-dots { width: 7px; height: 7px; border-radius: 50%; background: #8B5CF6; animation: bd-pulse .6s ease-in-out infinite alternate; }
@keyframes bd-pulse { from { opacity: .3; } }
.pg-screen .bd-card { background: #fff; border-radius: 22px; padding: 14px; display: flex; flex-direction: column; gap: 9px; box-shadow: 0 10px 22px -12px rgba(139, 92, 246, .55); animation: bd-in .3s ease-out; }
.pg-screen .bd-count { padding: 3px 8px; border-radius: 8px; background: #EDE7FF; color: #8B5CF6; font-size: 11px; font-weight: 600; }
.pg-screen .bd-skip { font-size: 12px; font-weight: 500; color: #7C7AA6; padding: 4px 6px; }
.pg-screen .bd-q { font-size: 15px; font-weight: 600; }
.pg-screen .bd-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.pg-screen .bd-opts button { padding: 11px 8px; border-radius: 13px; background: #EDE7FF; color: #5B3FD9; font-size: 12.5px; font-weight: 500; }
.pg-screen .bd-opts button:hover { background: #E2D9FF; }
.pg-screen .bd-sugs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pg-screen .bd-sugs button { display: flex; align-items: center; gap: 7px; height: 46px; padding: 0 9px; border-radius: 15px; background: rgba(255, 255, 255, .92); box-shadow: 0 4px 10px -6px rgba(139, 92, 246, .6); text-align: left; }
.pg-screen .bd-sugs span { width: 24px; height: 24px; border-radius: 7px; background: #EDE7FF; display: grid; place-items: center; flex: none; }
.pg-screen .bd-sugs b { font-size: 11px; font-weight: 500; color: #5B3FD9; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pg-screen .bd-input { display: flex; align-items: center; padding: 5px; border-radius: 28px; background: #fff; box-shadow: 0 10px 24px -12px rgba(139, 92, 246, .7); }
.pg-screen .bd-plus { width: 40px; height: 40px; border-radius: 50%; background: #EDE7FF; display: grid; place-items: center; flex: none; }
.pg-screen .bd-input input { flex: 1; min-width: 0; padding: 0 10px; font-size: 14px; color: #1E1B4B; }
.pg-screen .bd-input input::placeholder { color: #7C7AA6; }
.pg-screen .bd-input input:disabled { opacity: .6; }
.pg-screen .bd-send { width: 44px; height: 44px; border-radius: 50%; background: #EDE7FF; display: grid; place-items: center; flex: none; transition: background .2s; }
.pg-screen .bd-send.on { background: linear-gradient(135deg, #8B5CF6, #4F8BFF); }
.pg-screen .bd-grad { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 48px; border-radius: 999px; background: linear-gradient(90deg, #8B5CF6, #4F8BFF); color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 10px 22px -10px rgba(139, 92, 246, .8); text-decoration: none; }
.pg-screen .bd-grad:disabled { opacity: .45; }
.pg-screen .bd-light { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 48px; border-radius: 999px; background: #fff; color: #5B3FD9; font-size: 14px; font-weight: 600; }
.pg-screen .bd-note { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px; background: #fff; border: 1px solid rgba(139, 92, 246, .2); }
.pg-screen .bd-note b { display: block; font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-screen .bd-note small { font-size: 10px; color: #7C7AA6; }
.pg-screen .bd-notebtn { position: absolute; right: 14px; top: 46%; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #F0A6FF, #8B5CF6, #4F8BFF); box-shadow: 0 12px 24px -10px rgba(139, 92, 246, .9); z-index: 3; animation: bd-float 3s ease-in-out infinite; }
.pg-screen .bd-notebtn span { position: absolute; top: -2px; right: -2px; width: 18px; height: 18px; border-radius: 50%; background: #E5484D; border: 2px solid #fff; color: #fff; font-size: 9px; font-weight: 700; display: grid; place-items: center; }
.pg-screen .bd-toast { position: absolute; left: 14px; right: 14px; bottom: 34px; z-index: 9; padding: 10px 14px; border-radius: 12px; background: #1E1B4B; color: #fff; font-size: 12px; animation: bd-in .25s ease-out; }
.pg-screen .bd-head { display: flex; align-items: center; gap: 12px; padding: 6px 14px 4px; }
.pg-screen .bd-head h3 { flex: 1; font-size: 22px; font-weight: 600; letter-spacing: -.02em; margin: 0; }
.pg-screen .bd-pill { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; background: linear-gradient(90deg, #8B5CF6, #4F8BFF); color: #fff; font-size: 13px; font-weight: 600; }
.pg-screen .bd-scroll { flex: 1; overflow-y: auto; padding: 8px 14px 16px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: none; }
.pg-screen .bd-sub { font-size: 13px; color: #7C7AA6; line-height: 1.45; margin: 0; }
.pg-screen .bd-app { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 20px; background: #fff; text-align: left; box-shadow: 0 8px 18px -12px rgba(139, 92, 246, .6); }
.pg-screen .bd-app b { display: block; font-size: 14px; }
.pg-screen .bd-app small { display: block; font-size: 11px; color: #7C7AA6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-screen .bd-appicon { width: 44px; height: 44px; border-radius: 13px; background: linear-gradient(135deg, #8B5CF6, #4F8BFF); color: #fff; display: grid; place-items: center; font-size: 18px; font-weight: 600; flex: none; }
.pg-screen .bd-appicon.big { width: 64px; height: 64px; border-radius: 18px; font-size: 26px; margin: 0 auto; }
.pg-screen .bd-ver { font-size: 11px; color: #7C7AA6; }
.pg-screen .bd-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 40px 10px; }
.pg-screen .bd-empty > span { width: 72px; height: 72px; border-radius: 22px; background: #EDE7FF; display: grid; place-items: center; }
.pg-screen .bd-empty b { font-size: 17px; }
.pg-screen .bd-empty p { font-size: 12.5px; color: #7C7AA6; margin: 0 0 6px; }
.pg-screen .bd-saved { margin-top: auto; padding-top: 18px; }
.pg-screen .bd-saved b { font-size: 11px; color: #7C7AA6; letter-spacing: .04em; }
.pg-screen .bd-saved p { font-size: 11.5px; color: #7C7AA6; margin: 4px 0 0; }
.pg-screen .bd-style { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 22px; background: #fff; text-align: left; border: 2px solid transparent; box-shadow: 0 8px 18px -12px rgba(139, 92, 246, .6); }
.pg-screen .bd-style.on { border-color: #8B5CF6; }
.pg-screen .bd-style b { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.pg-screen .bd-style em { font-style: normal; font-size: 10px; font-weight: 600; color: #5B3FD9; background: #EDE7FF; padding: 2px 7px; border-radius: 6px; }
.pg-screen .bd-style small { display: block; font-size: 11px; color: #7C7AA6; line-height: 1.35; margin-top: 2px; }
.pg-screen .bd-thumb { width: 64px; height: 64px; border-radius: 16px; background: #EEEAFB; display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 9px; flex: none; }
.pg-screen .bd-thumb.auto { align-items: center; }
.pg-screen .bd-thumb i { height: 7px; border-radius: 4px; background: #fff; }
.pg-screen .bd-thumb i.g { height: 14px; background: linear-gradient(90deg, #8B5CF6, #4F8BFF); }
.pg-screen .bd-thumb i.s { width: 50%; background: #8B5CF6; }
.pg-screen .bd-sw { display: flex; margin-top: 6px; }
.pg-screen .bd-sw i { width: 13px; height: 13px; border-radius: 50%; box-shadow: 0 0 0 2px #fff; }
.pg-screen .bd-sw i + i { margin-left: -3px; }
.pg-screen .bd-tick { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #8B5CF6, #4F8BFF); display: grid; place-items: center; flex: none; }
.pg-screen .bd-foot { display: flex; flex-direction: column; gap: 8px; padding: 8px 14px 4px; }
.pg-screen .bd-scrim { position: absolute; inset: 0; z-index: 7; background: rgba(30, 27, 75, .35); animation: fade .2s; }
.pg-screen .bd-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 8; max-height: 88%; overflow-y: auto; padding: 12px 16px 26px; border-radius: 28px 28px 0 0; background: #F7F4FF; display: flex; flex-direction: column; gap: 9px; animation: up .25s ease-out; }
.pg-screen .bd-sheet.center { left: 26px; right: 26px; bottom: auto; top: 50%; transform: translateY(-50%); border-radius: 24px; padding: 22px 18px 14px; background: #fff; animation: fade .2s; }
.pg-screen .bd-sheet h4 { margin: 0; font-size: 17px; font-weight: 600; }
.pg-screen .bd-handle { align-self: center; width: 36px; height: 4px; border-radius: 4px; background: rgba(124, 122, 166, .4); }
.pg-screen .bd-level { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: #fff; text-align: left; border: 2px solid transparent; }
.pg-screen .bd-level.on { border-color: #8B5CF6; background: #EDE7FF; }
.pg-screen .bd-level b { display: block; font-size: 13.5px; }
.pg-screen .bd-level small { display: block; font-size: 10.5px; color: #7C7AA6; line-height: 1.3; }
.pg-screen .bd-radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(124, 122, 166, .5); flex: none; }
.pg-screen .bd-level.on .bd-radio { border-color: #8B5CF6; background: radial-gradient(circle, #8B5CF6 45%, transparent 50%); }
.pg-screen .bd-dots5 { display: flex; gap: 3px; flex: none; }
.pg-screen .bd-dots5 i { width: 6px; height: 6px; border-radius: 50%; background: rgba(124, 122, 166, .25); }
.pg-screen .bd-dots5 i.on { background: #8B5CF6; }
.pg-screen .bd-review { gap: 10px; padding: 10px 4px 0; }
.pg-screen .bd-review b { display: block; font-size: 13px; }
.pg-screen .bd-review small { display: block; font-size: 10.5px; color: #7C7AA6; line-height: 1.3; }
.pg-screen .bd-switch { width: 40px; height: 22px; border-radius: 11px; background: rgba(124, 122, 166, .3); padding: 2px; flex: none; transition: background .2s; }
.pg-screen .bd-switch i { display: block; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.pg-screen .bd-switch.on { background: #8B5CF6; }
.pg-screen .bd-switch.on i { transform: translateX(18px); }
.pg-screen .bd-acc { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 9px; padding-top: 6px; }
.pg-screen .bd-acc p, .pg-screen .bd-installer p { font-size: 12.5px; color: #7C7AA6; margin: 0 0 6px; line-height: 1.45; }
.pg-screen .bd-sheet textarea { min-height: 80px; padding: 12px; border-radius: 16px; background: #fff; font-size: 13px; resize: none; }
.pg-screen .bd-installer { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.pg-screen .bd-actions { width: 100%; justify-content: flex-end; gap: 6px; margin-top: 6px; }
.pg-screen .bd-actions button { padding: 10px 14px; border-radius: 10px; font-size: 13px; font-weight: 600; color: #5B3FD9; }
.pg-screen .bd-actions button.strong { background: #5B3FD9; color: #fff; }
.pg-screen .bd-bar { width: 100%; height: 4px; border-radius: 4px; background: #EDE7FF; overflow: hidden; margin: 8px 0 6px; }
.pg-screen .bd-bar i { display: block; height: 100%; width: 40%; background: #8B5CF6; animation: bd-load 1.4s ease-in-out infinite; }
@keyframes bd-load { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.pg-screen .gesture { border: 0; background: none; cursor: pointer; width: 100%; }
@media (prefers-reduced-motion: reduce) { .pg-screen .bd-robot, .pg-screen .bd-notebtn { animation: none; } }