.pg{--pg-panel:360px;--pg-control:38px;flex-direction:column;height:100dvh;display:flex;overflow:hidden}.pg-app{grid-template-columns:var(--pg-panel) minmax(0, 1fr);flex:1;min-height:0;display:grid}.pg-panel{border-right:1px solid var(--s-border);background:var(--s-bg);flex-direction:column;min-height:0;display:flex}.pg-panel-head{padding:22px 20px 14px}.pg-panel-head h1{letter-spacing:-.015em;margin:0;font-size:22px;line-height:1.2}.pg-panel-head p{color:var(--s-muted);margin:4px 0 0;font-size:14px;line-height:1.45}.pg-tabs{background:var(--s-surface);border-radius:10px;grid-auto-columns:minmax(0,1fr);grid-auto-flow:column;gap:2px;margin:0 20px;padding:3px;display:grid}.site .pg-tabs button{min-height:34px;color:var(--s-muted);font:inherit;cursor:pointer;background:0 0;border:0;border-radius:7px;padding:0 6px;font-size:13.5px;font-weight:600}.site .pg-tabs button:hover{color:var(--s-text)}.site .pg-tabs button[aria-selected=true]{background:var(--s-bg);color:var(--s-text);box-shadow:0 1px 2px #0000001f, 0 0 0 1px var(--s-border)}.pg-panel-body{overscroll-behavior:contain;flex:1;min-height:0;padding:4px 20px 24px;overflow-y:auto}.pg-panel-body:focus-visible{outline-offset:-2px}.pg-panel-foot{border-top:1px solid var(--s-border);justify-content:flex-end;gap:8px;padding:12px 20px;display:flex}.pg-panel-foot .s-btn:last-child{flex:1}.pg-section{border:0;border-bottom:1px solid var(--s-border);min-width:0;margin:0;padding:18px 0}.pg-section:last-child{border-bottom:0}.pg-section-head{justify-content:space-between;align-items:center;gap:12px;min-height:20px;margin-bottom:12px;display:flex}.pg-section legend{float:left;color:var(--s-muted);letter-spacing:.07em;text-transform:uppercase;padding:0;font-size:11.5px;font-weight:700}.pg-section-body{gap:14px;display:grid}.pg-hint{color:var(--s-muted);margin:-6px 0 12px;font-size:13px;line-height:1.45}.pg-intro{color:var(--s-muted);margin:16px 0 0;font-size:13.5px;line-height:1.5}.pg-intro code{font-family:var(--s-mono);font-size:.92em}.pg-field{gap:7px;min-width:0;display:grid}.pg-field-top{justify-content:space-between;align-items:baseline;display:flex}.pg-label{font-size:14px;font-weight:500}.pg-value{color:var(--s-muted);font-variant-numeric:tabular-nums;font-size:13px}.pg-choice{background:var(--s-surface);border-radius:10px;grid-auto-columns:minmax(0,1fr);grid-auto-flow:column;gap:2px;padding:3px;display:grid}.site .pg-choice button{min-width:0;min-height:32px;color:var(--s-muted);font:inherit;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;background:0 0;border:0;border-radius:7px;padding:0 8px;font-size:13.5px;font-weight:500;overflow:hidden}.site .pg-choice button:hover{color:var(--s-text)}.site .pg-choice button[aria-pressed=true]{background:var(--s-bg);color:var(--s-text);box-shadow:0 1px 2px #0000001f, 0 0 0 1px var(--s-border);font-weight:600}.pg-swatches{flex-wrap:wrap;gap:10px;display:flex}.site .pg-swatch{color:#fff;cursor:pointer;aspect-ratio:1;border:0;border-radius:50%;flex:none;place-items:center;width:32px;min-width:0;height:32px;min-height:0;padding:0;display:grid;box-shadow:inset 0 0 0 1px #00000026}.site .pg-swatch[aria-pressed=true]{box-shadow:0 0 0 2px var(--s-bg), 0 0 0 4px var(--s-text)}.pg-colors{gap:2px;margin:0 -8px;display:grid}.pg-color{border-radius:var(--s-radius-small);cursor:pointer;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;gap:12px;min-height:40px;padding:0 8px;font-size:14px;display:grid}.pg-color:hover{background:var(--s-surface)}.pg-color input{cursor:pointer;background:0 0;border:0;border-radius:50%;width:28px;height:28px;padding:0}.pg-color input::-webkit-color-swatch-wrapper{padding:0}.pg-color input::-webkit-color-swatch{border:1px solid var(--s-border-strong);border-radius:50%}.pg-color input::-moz-color-swatch{border:1px solid var(--s-border-strong);border-radius:50%}.pg-color code{color:var(--s-muted);font-family:var(--s-mono);text-transform:uppercase;font-size:12px}.pg-ruler{cursor:grab;touch-action:pan-y;border-radius:6px;outline:none;height:32px;position:relative}.pg-ruler[data-dragging]{cursor:grabbing}.pg-ruler:focus-visible{box-shadow:0 0 0 2px var(--s-accent-text)}.pg-ruler-viewport{position:absolute;inset:0;overflow:hidden;-webkit-mask-image:linear-gradient(90deg,#0000,#000 22% 78%,#0000);mask-image:linear-gradient(90deg,#0000,#000 22% 78%,#0000)}.pg-ruler-track{position:absolute;top:0;bottom:0;left:50%}@media (prefers-reduced-motion:no-preference){.pg-ruler-track{transition:transform .12s}.pg-ruler[data-dragging] .pg-ruler-track{transition:none}}.pg-ruler-tick{background:var(--s-muted);opacity:.6;width:1px;height:6px;margin:-3px 0 0 -.5px;position:absolute;top:50%}.pg-ruler-tick[data-major]{opacity:1;height:11px;margin-top:-5.5px}.pg-ruler-tick[data-default]{background:var(--s-text);opacity:1;height:15px;margin-top:-7.5px}.pg-ruler-fill{background:var(--s-accent);border-radius:999px;height:2px;position:absolute;bottom:2px}.pg-ruler-marker{background:var(--s-accent-text);pointer-events:none;border-radius:999px;width:2px;margin-left:-1px;position:absolute;top:2px;bottom:2px;left:50%}.site .pg-input{background:var(--s-surface);width:100%;height:44px;color:var(--s-text);font:inherit;border:0;border-radius:10px;padding:0 14px;font-size:15px}.site .pg-input:focus-visible{outline:2px solid var(--s-accent-text);outline-offset:2px}.site .pg-input:hover{background:var(--s-surface-2)}.site .pg-input::placeholder{color:var(--s-muted);opacity:.8}.pg-switch{cursor:pointer;justify-content:space-between;align-items:center;gap:12px;min-height:32px;font-size:14px;display:flex}.pg-switch input{background:var(--s-surface-2);width:38px;height:22px;box-shadow:inset 0 0 0 1px var(--s-border-strong);cursor:pointer;appearance:none;border-radius:999px;flex:none;margin:0;position:relative}.pg-switch input:after{content:"";background:#fff;border-radius:50%;width:16px;height:16px;position:absolute;top:3px;left:3px;box-shadow:0 1px 3px #0000004d}.pg-switch input:checked{background:var(--s-accent);box-shadow:none}.pg-switch input:checked:after{left:19px}@media (prefers-reduced-motion:no-preference) and (max-width:900px){.pg-panel{transition:transform .28s cubic-bezier(.2,.8,.2,1),visibility 0s linear .28s}.pg-panel[data-open]{transition:transform .28s cubic-bezier(.2,.8,.2,1),visibility}}@media (prefers-reduced-motion:no-preference){.pg-switch input,.pg-switch input:after,.site .pg-choice button,.site .pg-tabs button{transition:left .15s,background-color .15s,color .15s}}.site .pg-link{color:var(--s-accent-text);font:inherit;cursor:pointer;background:0 0;border:0;padding:2px 0;font-size:13.5px;font-weight:600}.site .pg-link:hover{text-decoration:underline}.pg-ratios{gap:8px;margin:0;padding:0;font-size:14px;list-style:none;display:grid}.pg-ratios li{justify-content:space-between;align-items:center;gap:12px;display:flex}.pg-ratios strong{font-variant-numeric:tabular-nums;white-space:nowrap;align-items:center;gap:8px;display:inline-flex}.pg-badge{border-radius:999px;padding:1px 8px;font-size:12px;font-weight:600}.pg-ratios strong[data-ok=true] .pg-badge{background:color-mix(in srgb, var(--s-good) 16%, transparent);color:var(--s-good)}.pg-ratios strong[data-ok=false] .pg-badge{background:color-mix(in srgb, var(--s-bad) 16%, transparent);color:var(--s-bad)}.pg-log-bar{color:var(--s-muted);justify-content:space-between;align-items:center;margin:18px 0 8px;font-size:13px;display:flex}.pg-log{margin:0;padding:0;list-style:none}.pg-log li{border-bottom:1px solid var(--s-border);grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;padding:8px 0;font-size:13.5px;display:grid}.pg-log-kind{background:var(--s-surface);color:var(--s-muted);font-family:var(--s-mono);border-radius:6px;padding:2px 8px;font-size:12px}.pg-log-kind[data-kind=change],.pg-log-kind[data-kind=onSave],.pg-log-kind[data-kind=onExport]{background:var(--s-accent-soft);color:var(--s-accent-text)}.pg-log-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.pg-log-count{color:var(--s-muted);font-variant-numeric:tabular-nums}.pg-log time{color:var(--s-muted);font-variant-numeric:tabular-nums;font-size:12px}.pg-empty{border:1px dashed var(--s-border-strong);border-radius:var(--s-radius);color:var(--s-muted);text-align:center;margin:8px 0 0;padding:20px;font-size:13.5px}.pg-work{background:var(--s-bg-soft);flex-direction:column;min-width:0;min-height:0;display:flex}.pg-toolbar{border-bottom:1px solid var(--s-border);background:var(--s-bg);flex-wrap:wrap;align-items:center;gap:8px 14px;min-height:56px;padding:8px 16px;display:flex}.pg-custom{color:var(--s-muted);align-items:center;gap:6px;display:flex}.pg-number .pg-input{font-variant-numeric:tabular-nums;width:84px;height:34px}.pg-size-note{color:var(--s-muted);font-variant-numeric:tabular-nums;font-size:13px}.pg-phone-actions{display:none}.pg-panel-head{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.site .pg-sheet-close{background:var(--s-surface);width:40px;height:40px;color:var(--s-text);cursor:pointer;border:0;border-radius:10px;flex:none;place-items:center;padding:0;display:none}.site .pg-sheet-close:hover{background:var(--s-surface-2)}.pg-stage{flex-direction:column;flex:1;min-height:0;display:flex;position:relative;overflow:auto}.pg-stage[data-framed]{background:radial-gradient(circle at 50% 20%, var(--s-surface), var(--s-bg-soft) 70%);padding:24px}.pg-frame{flex:1;min-height:0;position:relative}.pg-stage[data-framed] .pg-frame{border:1px solid var(--s-border-strong);box-shadow:var(--s-shadow);border-radius:18px;flex:none;margin:auto;overflow:clip}.pg-dialog{border:1px solid var(--s-border);background:var(--s-bg);width:min(720px,100vw - 32px);max-height:min(680px,100dvh - 32px);color:var(--s-text);border-radius:16px;padding:0;box-shadow:0 30px 90px #00000073}.pg-dialog::backdrop{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#0000008c}.pg-dialog-box{max-height:inherit;flex-direction:column;display:flex}.pg-dialog-head{justify-content:space-between;align-items:flex-start;gap:16px;padding:20px 20px 12px;display:flex}.pg-dialog-head h2{margin:0;font-size:19px}.pg-dialog-head p{color:var(--s-muted);margin:2px 0 0;font-size:14px}.site .pg-dialog-close,.site .pg-copy{border:1px solid var(--s-border);border-radius:var(--s-radius-small);background:var(--s-bg);width:36px;height:36px;min-height:0;color:var(--s-muted);cursor:pointer;flex:none;place-items:center;padding:0;display:grid}.site .pg-dialog-close:hover,.site .pg-copy:hover{background:var(--s-surface);color:var(--s-text)}.pg-dialog-bar{justify-content:space-between;align-items:center;gap:12px;padding:0 20px 12px;display:flex}.pg-dialog-bar .pg-choice{width:240px}.pg-dialog-code{border:1px solid var(--s-border);background:var(--s-code);min-height:0;font-family:var(--s-mono);white-space:pre;border-radius:10px;flex:1;margin:0 20px;padding:16px;font-size:13px;line-height:1.6;overflow:auto}.pg-dialog-note{color:var(--s-muted);margin:0;padding:12px 20px 18px;font-size:13px;line-height:1.5}@media (max-width:1200px){.pg{--pg-panel:320px}}@media (max-width:900px){.pg-app{flex-direction:column;display:flex}.pg-work{flex:1;min-height:0}.pg-sizes,.pg-custom,.pg-size-note{display:none}.pg-toolbar{min-height:0;padding:8px var(--s-gutter)}.pg-phone-actions{flex:1;gap:8px;display:flex}.pg-phone-actions .s-btn{flex:1}.pg-stage[data-framed]{background:0 0;padding:0}.site .pg-stage[data-framed] .pg-frame{box-shadow:none;border:0;border-radius:0;flex:1;margin:0;zoom:1!important;width:auto!important;height:auto!important}.pg-panel{z-index:50;visibility:hidden;border:0;position:fixed;inset:0;transform:translateY(100%)}.pg-panel[data-open]{visibility:visible;transform:none}.pg-panel-head{padding-top:max(16px, env(safe-area-inset-top))}.site .pg-sheet-close{display:grid}.pg-panel-foot{padding-bottom:max(12px, env(safe-area-inset-bottom))}.pg-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.pg-dialog-bar .pg-choice{flex:1;width:auto}}
