/* whrss.com: the interactive Pop demo (assets/pop-demo.js). Sizes are the app's points:
   a 248-point ring (inner radius 38, outer 124, eight 66-point slots), 380-point cards with
   16-point padding and 20-point corners (AI 420, clipboard history 460, regex tester 520).
   Colors are the macOS system colors Pop uses: the accent blue, secondary label grays,
   and a glass surface (Liquid Glass on macOS 26, a blurred panel before it). */

.ppd {
  --pp-accent: #007aff;
  --pp-accent-10: rgba(0, 122, 255, 0.1);
  --pp-accent-20: rgba(0, 122, 255, 0.2);
  --pp-accent-22: rgba(0, 122, 255, 0.22);
  --pp-accent-34: rgba(0, 122, 255, 0.34);
  --pp-accent-40: rgba(0, 122, 255, 0.4);
  --pp-accent-50: rgba(0, 122, 255, 0.5);
  --pp-accent-70: rgba(0, 122, 255, 0.7);
  --pp-red: #ff3b30;
  --pp-orange: #ff9500;
  --pp-l1: rgba(0, 0, 0, 0.85);
  --pp-l2: rgba(0, 0, 0, 0.5);
  --pp-l3: rgba(0, 0, 0, 0.26);
  --pp-fill: rgba(0, 0, 0, 0.06);
  --pp-fill-10: rgba(0, 0, 0, 0.1);
  --pp-sep: rgba(0, 0, 0, 0.1);
  --pp-xmark: #f2f2f4;
  --pp-glass: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.06)), rgba(236, 236, 240, 0.72);
  --pp-glass-edge: rgba(255, 255, 255, 0.6);
  --pp-glass-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.28), 0 8px 22px rgba(0, 0, 0, 0.22), 0 2px 6px rgba(0, 0, 0, 0.08);
  --pp-menu: rgba(246, 246, 248, 0.94);
  --pp-btn: rgba(0, 0, 0, 0.075);
  --pp-btn-h: rgba(0, 0, 0, 0.12);
  --pp-field: rgba(255, 255, 255, 0.75);
  --pp-field-edge: rgba(0, 0, 0, 0.14);
  --pp-hub: rgba(0, 0, 0, 0.06);
  --pp-hub-edge: rgba(0, 0, 0, 0.12);
  --pp-win: #fcfcfd;
  --pp-bar: #efeff2;
  --pp-sn: rgba(0, 122, 255, 0.07);
  --pp-sn-h: rgba(0, 122, 255, 0.13);
  --pp-selbg: #b3d7ff;
  --pp-desk: radial-gradient(120% 90% at 8% 0%, #c6dbf8 0%, transparent 60%),
    radial-gradient(90% 80% at 100% 25%, #f4d3e4 0%, transparent 60%),
    radial-gradient(100% 90% at 40% 100%, #f6e0c4 0%, transparent 65%), #dde3ee;
  --pp-mb: rgba(255, 255, 255, 0.55);
  --pp-mb-ink: rgba(0, 0, 0, 0.85);
  --pp-mark-y: rgba(255, 204, 0, 0.45);
  --pp-mark-o: rgba(255, 149, 0, 0.45);
  --pp-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, Arial, sans-serif;
  --pp-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "PingFang SC", monospace;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  width: 100%;
  max-width: 600px;
}
@media (prefers-color-scheme: dark) {
  .ppd {
    --pp-accent: #0a84ff;
    --pp-accent-10: rgba(10, 132, 255, 0.12);
    --pp-accent-20: rgba(10, 132, 255, 0.24);
    --pp-accent-22: rgba(10, 132, 255, 0.3);
    --pp-accent-34: rgba(10, 132, 255, 0.4);
    --pp-accent-40: rgba(10, 132, 255, 0.45);
    --pp-accent-50: rgba(10, 132, 255, 0.55);
    --pp-accent-70: rgba(10, 132, 255, 0.75);
    --pp-red: #ff453a;
    --pp-orange: #ff9f0a;
    --pp-l1: rgba(255, 255, 255, 0.9);
    --pp-l2: rgba(255, 255, 255, 0.55);
    --pp-l3: rgba(255, 255, 255, 0.28);
    --pp-fill: rgba(255, 255, 255, 0.07);
    --pp-fill-10: rgba(255, 255, 255, 0.12);
    --pp-sep: rgba(255, 255, 255, 0.12);
    --pp-xmark: #2c2c30;
    --pp-glass: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.01)), rgba(30, 30, 34, 0.74);
    --pp-glass-edge: rgba(255, 255, 255, 0.16);
    --pp-glass-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 10px 26px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.3);
    --pp-menu: rgba(44, 44, 48, 0.96);
    --pp-btn: rgba(255, 255, 255, 0.12);
    --pp-btn-h: rgba(255, 255, 255, 0.18);
    --pp-field: rgba(0, 0, 0, 0.22);
    --pp-field-edge: rgba(255, 255, 255, 0.14);
    --pp-hub: rgba(255, 255, 255, 0.06);
    --pp-hub-edge: rgba(255, 255, 255, 0.12);
    --pp-win: #1f1f22;
    --pp-bar: #2a2a2d;
    --pp-sn: rgba(10, 132, 255, 0.14);
    --pp-sn-h: rgba(10, 132, 255, 0.22);
    --pp-selbg: #3f638b;
    --pp-desk: radial-gradient(120% 90% at 8% 0%, #1d3358 0%, transparent 60%),
      radial-gradient(90% 80% at 100% 25%, #3b2143 0%, transparent 60%),
      radial-gradient(100% 90% at 40% 100%, #3a2a1a 0%, transparent 65%), #15181f;
    --pp-mb: rgba(30, 30, 34, 0.5);
    --pp-mb-ink: rgba(255, 255, 255, 0.9);
    --pp-mark-y: rgba(255, 214, 10, 0.4);
    --pp-mark-o: rgba(255, 159, 10, 0.45);
  }
}


.ppd-tag {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 12px; padding: 3px 10px;
  font-size: 12.5px; line-height: 1.4; color: var(--text-3, #62626a);
  border: 1px solid var(--stroke, rgba(0, 0, 0, 0.09)); border-radius: 999px;
  text-align: center;
}
.ppd-dot { width: 6px; height: 6px; border-radius: 50%; background: #30c05a; flex: none; }

/* ---------- the desktop ---------- */
.pp-stage {
  position: relative;
  width: 100%;
  height: 500px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--pp-desk);
  box-shadow: inset 0 0 0 1px var(--stroke, rgba(0, 0, 0, 0.08));
  font: 13px/1.35 var(--pp-font);
  color: var(--pp-l1);
  text-align: left;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  isolation: isolate;
}
.pp-stage.pp-desk { height: 530px; }
.pp-stage button { font-family: inherit; }

.pp-mb {
  position: absolute; top: 0; left: 0; right: 0; z-index: 1;
  height: 24px;
  display: flex; align-items: center; gap: 1px;
  padding: 0 8px;
  background: var(--pp-mb);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  color: var(--pp-mb-ink);
  font: 500 12.5px/1 var(--pp-font);
  white-space: nowrap;
}
.pp-mb-item { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; }
.pp-mb-app { font-weight: 700; }
.pp-mb-fill { flex: 1; }
.pp-mb-icon img { width: 16px; height: 16px; border-radius: 4px; display: block; }
@media (max-width: 480px) { .pp-mb-item:nth-child(n+4):nth-child(-n+6) { display: none; } }

.pp-win {
  position: absolute; left: 16px; right: 16px; top: 16px; bottom: 16px;
  display: flex; flex-direction: column;
  background: var(--pp-win);
  border-radius: 12px;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.22), 0 14px 34px -10px rgba(20, 25, 40, 0.35), 0 3px 10px -3px rgba(20, 25, 40, 0.18);
  overflow: hidden;
}
.pp-desk .pp-win { top: 40px; }
.pp-bar {
  flex: none; height: 28px; display: flex; align-items: center; gap: 8px; padding: 0 12px;
  background: var(--pp-bar); border-bottom: 1px solid var(--pp-sep);
  font-size: 12px; font-weight: 600; color: var(--pp-l2);
}
.pp-bar i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; flex: none; }
.pp-bar i:nth-child(2) { background: #febc2e; }
.pp-bar i:nth-child(3) { background: #28c840; }
.pp-bar span { flex: 1; text-align: center; margin-right: 52px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-doc { flex: 1; min-height: 0; overflow: auto; padding: 12px 18px 4px; font-size: 13.5px; line-height: 1.55; }
.pp-doc h4 { margin: 0 0 6px; font-size: 15px; font-weight: 650; letter-spacing: 0; }
.pp-doc p { margin: 0 0 6px; overflow-wrap: anywhere; }
.pp-sn {
  appearance: none; border: 0; margin: 0; padding: 0 1px; font: inherit; color: inherit; line-height: inherit; text-align: left;
  display: inline; cursor: text; border-radius: 3px;
  background: transparent;
  text-decoration: underline dotted var(--pp-accent-50);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  overflow-wrap: anywhere;
}
.pp-sn:hover { background: var(--pp-sn); }
.pp-sn.is-sel { background: var(--pp-selbg); text-decoration-color: transparent; }
.pp-sn:focus-visible { outline: 2px solid var(--pp-accent); outline-offset: 1px; }
.pp-sn.is-mono { font: 12px/1.5 var(--pp-mono); }
.pp-hold {
  appearance: none; background: none; font: inherit; color: var(--pp-l2); text-align: left;
  flex: none; margin: 4px 12px 12px; padding: 7px 12px;
  display: flex; align-items: center; gap: 9px;
  border: 1.5px dashed var(--pp-l3); border-radius: 10px;
  font-size: 12.5px; line-height: 1.3; cursor: default;
}
.pp-hold svg { width: 20px; height: 20px; flex: none; color: var(--pp-accent); }
.pp-hold:hover { background: var(--pp-fill); }
.pp-hold:focus-visible { outline: 2px solid var(--pp-accent); outline-offset: 1px; }

.pp-layer { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.pp-layer > * { pointer-events: auto; }
.pp-layer > .is-leaving { pointer-events: none; }

/* ---------- glass ---------- */
.pp-disc, .pp-card, .pp-toast, .pp-pin {
  background: var(--pp-glass);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  box-shadow: var(--pp-glass-shadow);
}

/* ---------- the ring ---------- */
.pp-ring { position: absolute; width: 248px; height: 248px; margin: -124px 0 0 -124px; touch-action: none; }
.pp-disc { position: absolute; inset: 0; border-radius: 50%; transform: scale(0.3); opacity: 0; }
.pp-ring.is-shown .pp-disc { transform: none; opacity: 1; }

.pp-hl { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.pp-ring.has-hover .pp-hl { opacity: 1; }
.pp-hl-dot { position: absolute; left: 50%; transform: translateX(-50%); border-radius: 50%; background: var(--pp-accent-20); box-shadow: inset 0 0 0 1px var(--pp-accent-40); }
.pp-hl svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pp-hl path { fill: none; stroke: var(--pp-accent); stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 4px var(--pp-accent-70)); }
.pp-ring.hover-off .pp-hl-dot { background: var(--pp-fill-10); box-shadow: inset 0 0 0 1px var(--pp-l3); }
.pp-ring.hover-off .pp-hl path { stroke: var(--pp-l3); filter: none; }
.pp-ring.is-committed .pp-hl-dot { background: var(--pp-accent-34); }

.pp-slot {
  appearance: none; border: 0; background: none; padding: 0; font: inherit; color: inherit;
  position: absolute; left: 50%; top: 50%; width: 66px; height: 48px; margin: -24px 0 0 -33px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px; cursor: default;
  transform: translate(calc(var(--x) * 0.12), calc(var(--y) * 0.12)) scale(0.55);
  opacity: 0;
}
.pp-ring.is-shown .pp-slot { transform: translate(var(--x), var(--y)); opacity: 1; }
.pp-slot:focus { outline: none; }
.pp-slot:focus-visible .pp-slot-in span { text-decoration: underline; text-underline-offset: 2px; }
.pp-slot-in { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--pp-l1); max-width: 66px; }
.pp-slot-in svg { width: 22px; height: 22px; flex: none; }
.pp-slot-in span { font-size: 10.5px; line-height: 1.25; white-space: nowrap; max-width: 66px; overflow: hidden; text-overflow: ellipsis; }
.pp-slot.is-off .pp-slot-in { opacity: 0.3; }
.pp-ring.is-loading .pp-slot-in { opacity: 0.45; }
.pp-slot.is-active .pp-slot-in { color: var(--pp-accent); transform: scale(1.12); }
.pp-slot.is-active .pp-slot-in span { font-weight: 600; }
.pp-slot.is-commit .pp-slot-in { color: var(--pp-accent); transform: scale(1.2); }
.pp-ring.is-committed .pp-slot:not(.is-commit) .pp-slot-in { opacity: 0.35; }

.pp-hub {
  position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px;
  border-radius: 50%; background: var(--pp-hub); box-shadow: inset 0 0 0 1px var(--pp-hub-edge);
  display: flex; align-items: center; justify-content: center;
  transform: scale(0.5); opacity: 0;
}
.pp-ring.is-shown .pp-hub { transform: none; opacity: 1; }
.pp-hub-rot { position: absolute; inset: 0; opacity: 0; }
.pp-ring.has-hover .pp-hub-rot { opacity: 1; }
.pp-hub-rot i { position: absolute; left: 50%; top: 3.5px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--pp-accent); }
.pp-ring.hover-off .pp-hub-rot i { background: var(--pp-l3); }
.pp-center { position: relative; width: 62px; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.pp-center span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.pp-c-content { font-size: 10px; font-weight: 500; line-height: 1.25; color: var(--pp-l2); }
.pp-c-fn { font-size: 11px; font-weight: 600; line-height: 1.2; color: var(--pp-accent); }
.pp-c-fn.is-off { color: var(--pp-l2); }
.pp-c-detail { font-size: 9px; line-height: 1.2; color: var(--pp-l2); }

.pp-spin {
  display: inline-block; width: 12px; height: 12px; flex: none; border-radius: 50%;
  border: 2px solid var(--pp-l3); border-top-color: var(--pp-l1);
  animation: pp-spin 0.8s linear infinite;
}
@keyframes pp-spin { to { transform: rotate(360deg); } }

/* ---------- cards ---------- */
.pp-card {
  position: absolute; left: 8px; top: 8px;
  box-sizing: border-box;
  width: min(var(--w, 380px), calc(100% - 16px));
  max-height: calc(100% - 16px);
  overflow: auto;
  padding: 16px;
  border-radius: 20px;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 13px; line-height: 1.35;
  overscroll-behavior: contain;
}
.pp-card:focus { outline: none; }
.pp-card > * { flex: none; }
.pp-head { display: flex; align-items: center; gap: 6px; min-width: 0; }
.pp-head h5 { margin: 0; font-size: 13px; font-weight: 700; line-height: 1.3; letter-spacing: 0; white-space: nowrap; color: var(--pp-l1); }
.pp-sub { min-width: 0; font-size: 10px; color: var(--pp-l2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-x {
  appearance: none; border: 0; background: none; padding: 0; margin-left: auto; flex: none;
  width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--pp-l2); border-radius: 50%; cursor: default;
}
.pp-x svg { width: 15px; height: 15px; }
.pp-x:hover { color: var(--pp-l1); }
.pp-x:focus-visible { outline: 2px solid var(--pp-accent); outline-offset: 1px; }

.pp-flow { display: flex; flex-wrap: wrap; gap: 8px; }
.pp-btn {
  appearance: none; border: 0; margin: 0; font: inherit;
  box-sizing: border-box; height: 22px; padding: 0 9px;
  display: inline-flex; align-items: center;
  border-radius: 6px; background: var(--pp-btn); color: var(--pp-l1);
  font-size: 11.5px; font-weight: 500; white-space: nowrap; cursor: default;
}
.pp-btn:hover { background: var(--pp-btn-h); }
.pp-btn:active { filter: brightness(0.92); }
.pp-btn:disabled { opacity: 0.4; }
.pp-btn.is-tint { background: var(--pp-accent-20); color: var(--pp-accent); }
.pp-btn:focus-visible, .pp-popup:focus-visible, .pp-menubtn:focus-visible, .pp-link:focus-visible, .pp-ib:focus-visible, .pp-seg button:focus-visible {
  outline: 2px solid var(--pp-accent); outline-offset: 1px;
}

.pp-seg { display: inline-flex; padding: 1px; border-radius: 7px; background: var(--pp-fill); flex: none; }
.pp-seg button {
  appearance: none; border: 0; margin: 0; background: none; font: inherit; color: var(--pp-l1);
  height: 20px; min-width: 44px; padding: 0 10px; border-radius: 6px;
  font-size: 11px; font-weight: 500; white-space: nowrap; cursor: default;
}
.pp-seg button + button { box-shadow: -1px 0 0 -0.5px var(--pp-sep); }
.pp-seg button.is-on { background: var(--pp-accent); color: #fff; box-shadow: none; }
.pp-seg button.is-on + button { box-shadow: none; }
.pp-seg-l { align-self: flex-start; }
.pp-seg-l button { min-width: 40px; }

hr.pp-hr, .pp-card hr { border: 0; border-top: 1px solid var(--pp-sep); margin: 0; }
.pp-src { margin: 0; font-size: 12px; color: var(--pp-l2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pp-src2 { -webkit-line-clamp: 2; }
.pp-body { margin: 0; font-size: 13px; line-height: 1.4; -webkit-user-select: text; user-select: text; overflow-wrap: anywhere; }
.pp-pre { white-space: pre-wrap; }
.pp-note { margin: 0; font-size: 12px; color: var(--pp-l2); }
.pp-wait { margin: 0; display: flex; align-items: center; gap: 6px; color: var(--pp-l2); }
.pp-cap { margin: 0; font-size: 10px; color: var(--pp-l2); }
.pp-err { margin: 0; font-size: 10px; color: var(--pp-red); }
.pp-mono { font-family: var(--pp-mono); font-size: 12px; }
pre.pp-mono { margin: 0; white-space: pre; overflow: auto; max-height: 250px; line-height: 1.35; -webkit-user-select: text; user-select: text; }

/* translation */
.pp-trbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.pp-menuwrap { position: relative; flex: none; }
.pp-menubtn, .pp-popup {
  appearance: none; border: 0; margin: 0; font: inherit; color: var(--pp-l1);
  display: inline-flex; align-items: center; gap: 4px; cursor: default; white-space: nowrap;
}
.pp-menubtn { background: none; padding: 2px 4px; margin-left: -4px; border-radius: 5px; font-size: 12px; }
.pp-menubtn:hover { background: var(--pp-fill); }
.pp-menubtn svg, .pp-popup svg { width: 10px; height: 10px; opacity: 0.7; }
.pp-popup { height: 24px; padding: 0 8px 0 10px; border-radius: 6px; background: var(--pp-btn); font-size: 12px; font-weight: 500; gap: 8px; }
.pp-menu {
  position: absolute; top: calc(100% + 4px); left: 0; z-index: 3;
  min-width: 150px; max-height: 210px; overflow: auto;
  padding: 5px; border-radius: 10px;
  background: var(--pp-menu);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.2), 0 10px 26px rgba(0, 0, 0, 0.22);
  display: flex; flex-direction: column;
}
.pp-menu-r { left: auto; right: 0; }
.pp-menu button {
  appearance: none; border: 0; margin: 0; background: none; font: inherit; color: var(--pp-l1); text-align: left;
  padding: 3px 10px; border-radius: 5px; font-size: 13px; white-space: nowrap; cursor: default;
}
.pp-menu button:hover, .pp-menu button:focus { outline: none; background: var(--pp-accent); color: #fff; }
.pp-menu button:disabled { opacity: 0.35; background: none; color: var(--pp-l1); }
.pp-compare { display: flex; flex-direction: column; gap: 10px; }
.pp-cmp { display: flex; flex-direction: column; gap: 4px; }
.pp-cmp-h { display: flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 600; color: var(--pp-l2); }
.pp-cmp-h span { flex: 1; }
.pp-link { appearance: none; border: 0; margin: 0; padding: 0; background: none; font: inherit; font-size: 11px; font-weight: 400; color: var(--pp-l2); cursor: default; }
.pp-link:hover { color: var(--pp-l1); }

/* result rows */
.pp-rows { display: flex; flex-direction: column; gap: 5px; }
.pp-row { display: flex; align-items: baseline; gap: 8px; }
.pp-row-l { flex: 0 0 76px; font-size: 10px; color: var(--pp-l2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-row-v { flex: 1; min-width: 0; font: 12px/1.35 var(--pp-mono); -webkit-user-select: text; user-select: text; overflow-wrap: anywhere; }
.pp-ib {
  appearance: none; border: 0; margin: 0; padding: 0; background: none; color: var(--pp-l1);
  align-self: center; flex: none; width: 20px; height: 18px; border-radius: 4px;
  display: inline-flex; align-items: center; justify-content: center; cursor: default; opacity: 0.8;
}
.pp-ib:hover { opacity: 1; background: var(--pp-fill); }
.pp-ib svg { width: 15px; height: 15px; }

/* regex */
.pp-fieldrow { display: flex; align-items: center; gap: 6px; }
.pp-field {
  box-sizing: border-box; width: 100%; min-width: 0; height: 24px; margin: 0; padding: 0 7px;
  border-radius: 6px; border: 1px solid var(--pp-field-edge); background: var(--pp-field); color: var(--pp-l1);
  font: 13px var(--pp-font); outline: none;
  -webkit-user-select: text; user-select: text;
}
.pp-field::placeholder { color: var(--pp-l3); opacity: 1; }
.pp-field:focus { border-color: var(--pp-accent); box-shadow: 0 0 0 3px var(--pp-accent-50); }
.pp-field.pp-mono { font: 12.5px var(--pp-mono); }
.pp-field-soft { background: var(--pp-fill); border-color: transparent; }
.pp-checks { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 11px; }
.pp-check { display: inline-flex; align-items: center; gap: 5px; }
.pp-check input { margin: 0; width: 13px; height: 13px; accent-color: var(--pp-accent); }
.pp-preview { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 16px; max-height: 120px; overflow: auto; -webkit-user-select: text; user-select: text; }
.pp-preview mark { color: inherit; border-radius: 2px; background: var(--pp-mark-y); }
.pp-preview mark.o { background: var(--pp-mark-o); }
.pp-matches { list-style: none; margin: 0; padding: 0; max-height: 96px; overflow: auto; display: flex; flex-direction: column; gap: 3px; }
.pp-matches li { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.pp-matches .pp-mono { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pp-mn { flex: none; width: 24px; text-align: right; font-size: 10px; color: var(--pp-l2); }
.pp-replaced { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* AI */
.pp-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.pp-ai-out { max-height: 190px; overflow: auto; }
.pp-ai-out code { font: 12px var(--pp-mono); background: var(--pp-fill); border-radius: 3px; padding: 0 3px; }

/* lists: clipboard history and all actions */
.pp-list-wrap { position: relative; }
.pp-list { list-style: none; margin: 0; padding: 0; height: 300px; overflow: auto; display: flex; flex-direction: column; gap: 2px; }
.pp-clist { height: 290px; }
.pp-hrow, .pp-crow { display: flex; align-items: center; gap: 10px; border-radius: 8px; cursor: default; flex: none; }
.pp-hrow { padding: 6px 8px; }
.pp-crow { padding: 5px 8px; }
.pp-hrow:hover, .pp-crow:hover { background: var(--pp-fill); }
.pp-hrow.is-sel, .pp-crow.is-sel { background: var(--pp-accent-22); }
.pp-badge { width: 18px; height: 18px; border-radius: 50%; background: var(--pp-accent); color: #fff; font-size: 10px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; flex: none; font-variant-numeric: tabular-nums; }
.pp-hp { flex: 1; min-width: 0; font-size: 12px; display: flex; align-items: center; gap: 8px; }
.pp-hp > span:last-child { min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.pp-hm { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font-size: 10px; color: var(--pp-l2); text-align: right; white-space: nowrap; }
.pp-pinned svg { width: 11px; height: 11px; color: var(--pp-orange); display: block; }
.pp-thumb {
  width: 72px; height: 44px; flex: none; border-radius: 4px;
  background: linear-gradient(#fff 0 0) 8px 9px / 34px 4px no-repeat, linear-gradient(#fff 0 0) 8px 17px / 52px 3px no-repeat,
    linear-gradient(#fff 0 0) 8px 24px / 44px 3px no-repeat, linear-gradient(#fff 0 0) 8px 31px / 48px 3px no-repeat,
    linear-gradient(135deg, #6a8fd8, #c07ab8);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.pp-hv { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pp-cap0 { font-size: 10px; color: var(--pp-l2); }
.pp-cap1 { font-size: 10px; }
.pp-fi { display: inline-flex; flex: none; color: var(--pp-l2); }
.pp-fi svg { width: 15px; height: 15px; }
.pp-empty { position: absolute; inset: 0; margin: 0; display: flex; align-items: center; justify-content: center; color: var(--pp-l2); pointer-events: none; }
.pp-hint { margin: 0; font-size: 10px; color: var(--pp-l2); }
.pp-hint.is-accent { color: var(--pp-accent); }
.pp-ci { width: 24px; flex: none; display: flex; justify-content: center; }
.pp-ci svg { width: 18px; height: 18px; }
.pp-ct { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; font-size: 13px; }
.pp-ct .pp-cap0 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-ck { flex: none; font-size: 10px; color: var(--pp-l2); }

/* toast and pinned text */
.pp-stage .pp-toast { background: var(--pp-menu); }
.pp-toast {
  position: absolute; left: 50%; top: 50%; z-index: 4;
  max-width: calc(100% - 48px); box-sizing: border-box;
  padding: 10px 18px; border-radius: 999px;
  font-size: 13px; font-weight: 500; text-align: center;
  opacity: 0; transform: translate(-50%, -50%) scale(0.9);
  pointer-events: none;
}
.pp-toast.is-on { opacity: 1; transform: translate(-50%, -50%); }
.pp-toast:empty { display: none; }
.pp-pin {
  position: absolute; right: 12px; top: 12px; z-index: 3;
  max-width: min(240px, calc(100% - 24px)); box-sizing: border-box;
  padding: 12px 28px 12px 14px; border-radius: 14px;
  font-size: 12.5px; line-height: 1.4;
}
.pp-desk .pp-pin { top: 34px; }
.pp-pin p { margin: 0; -webkit-user-select: text; user-select: text; }
.pp-pin .pp-x { position: absolute; top: 7px; right: 7px; }

/* ---------- motion (Motion.swift): springs as curves; nothing moves with Reduce Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .pp-disc { transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.25, 1), opacity 0.2s ease-out; }
  .pp-slot { transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.25, 1) calc(var(--i) * 20ms), opacity 0.2s ease-out calc(var(--i) * 20ms); }
  .pp-hub { transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.25, 1) 0.04s, opacity 0.2s ease-out 0.04s; }
  .pp-hl, .pp-hub-rot { transition: transform 0.24s cubic-bezier(0.3, 1.25, 0.55, 1), opacity 0.12s ease-out; }
  .pp-slot-in { transition: transform 0.24s cubic-bezier(0.3, 1.35, 0.55, 1), color 0.12s ease-out, opacity 0.22s ease-out; }
  .pp-slot.is-commit .pp-slot-in { transition: transform 0.22s cubic-bezier(0.3, 1.6, 0.5, 1); }
  .pp-ring.is-leaving .pp-disc { transform: scale(1.05); opacity: 0; transition: transform 0.17s ease-in, opacity 0.17s ease-in; }
  .pp-ring.is-leaving .pp-slot { transform: translate(calc(var(--x) * 1.1), calc(var(--y) * 1.1)); opacity: 0; transition: transform 0.17s ease-in, opacity 0.17s ease-in; }
  .pp-ring.is-leaving .pp-hub, .pp-ring.is-leaving .pp-hl { opacity: 0; transition: opacity 0.17s ease-in; }
  .pp-card { transition: transform 0.34s cubic-bezier(0.3, 1.2, 0.5, 1), opacity 0.2s ease-out; }
  .pp-card.is-entering { transform: scale(0.92); opacity: 0; transition: none; }
  .pp-card.is-leaving { transform: scale(0.97); opacity: 0; transition: transform 0.17s ease-in, opacity 0.17s ease-in; }
  .pp-toast { transition: transform 0.3s cubic-bezier(0.3, 1.4, 0.5, 1), opacity 0.2s ease-out; }
  .pp-sn.is-flash { animation: pp-flash 1.2s ease-out; }
  .pp-btn, .pp-seg button, .pp-hrow, .pp-crow, .pp-sn, .pp-hold { transition: background-color 0.12s ease-out; }
}
@media (prefers-reduced-motion: reduce) {
  .pp-disc, .pp-hub, .pp-slot, .pp-hl, .pp-hub-rot { transition: opacity 0.12s linear; }
  .pp-disc, .pp-hub { transform: none; }
  .pp-slot { transform: translate(var(--x), var(--y)); }
  .pp-ring.is-leaving { opacity: 0; transition: opacity 0.12s linear; }
  .pp-card.is-leaving { opacity: 0; transition: opacity 0.12s linear; }
  .pp-toast, .pp-toast.is-on { transform: translate(-50%, -50%); }
  .pp-spin { animation-duration: 2s; }
}
@keyframes pp-flash { 0% { background: var(--pp-accent-50); } 100% { background: transparent; } }

/* Pop page hero: the demo beside one real screenshot. */
.pop-stage { align-items: center; }
/* Pop page hero: a wider desktop with the document window in the middle of it. */
.pop-stage > .ppd { max-width: 820px; }
@media (min-width: 700px) {
  .pop-stage .pp-stage.pp-desk { height: 560px; }
  .pop-stage .pp-desk .pp-win { left: 9%; right: 9%; top: 48px; bottom: 28px; }
}
@media (max-width: 480px) {
  .pp-stage { height: 560px; }
  .pp-stage.pp-desk { height: 590px; }
  .pp-win { left: 8px; right: 8px; top: 8px; bottom: 8px; }
  .pp-desk .pp-win { top: 32px; }
  .pp-doc { padding: 10px 12px 4px; font-size: 13px; }
  .pp-hold { margin: 4px 8px 8px; }
}

/* ---------- plugin library (Settings › Plugins › Plugin Library…, a 600 × 540 sheet) ---------- */
.pp-libstage { height: 520px; }
.pp-setwin { opacity: 0.9; }
.pp-setbody {
  flex: 1; background:
    linear-gradient(var(--pp-fill), var(--pp-fill)) 18px 64px / calc(100% - 36px) 44px no-repeat,
    linear-gradient(var(--pp-fill), var(--pp-fill)) 18px 120px / calc(100% - 36px) 150px no-repeat,
    linear-gradient(var(--pp-fill), var(--pp-fill)) 18px 282px / calc(100% - 36px) 150px no-repeat;
  border-top: 44px solid var(--pp-bar);
}
.pp-sheet {
  position: absolute; left: 50%; top: 58px; bottom: 26px; z-index: 2;
  width: min(560px, calc(100% - 40px)); transform: translateX(-50%);
  display: flex; flex-direction: column;
  background: var(--pp-win); border-radius: 16px;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.25), 0 24px 60px -12px rgba(20, 25, 40, 0.45), 0 4px 14px rgba(20, 25, 40, 0.16);
  overflow: hidden;
}
.pp-sh-head { flex: none; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--pp-sep); }
.pp-sh-head > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pp-sh-head strong { font-size: 13px; font-weight: 700; }
.pp-sh-head span { font-size: 11px; color: var(--pp-l2); }
.pp-sh-q { width: 200px; flex: none; }
.pp-sh-list { flex: 1; min-height: 0; overflow: auto; position: relative; padding: 12px 14px; background: var(--pp-bar); outline: none; }
.pp-sh-group { list-style: none; margin: 0; padding: 0 12px; background: var(--pp-win); border-radius: 10px; box-shadow: 0 0 0 0.5px var(--pp-sep); }
.pp-sh-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; }
.pp-sh-row + .pp-sh-row { border-top: 1px solid var(--pp-sep); }
.pp-sh-ic { width: 22px; flex: none; display: grid; place-items: center; color: var(--pp-l1); }
.pp-sh-ic svg { width: 18px; height: 18px; }
.pp-sh-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pp-sh-t > span { font-size: 13px; }
.pp-sh-t small { font-size: 11px; color: var(--pp-l2); }
.pp-sh-t em { font-style: normal; font-size: 10px; color: var(--pp-l3); }
.pp-sh-ok { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--pp-l2); white-space: nowrap; }
.pp-sh-ok svg { width: 12px; height: 12px; }
.pp-sh-row .pp-spin { margin-right: 14px; }
.pp-sh-foot { flex: none; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-top: 1px solid var(--pp-sep); }
.pp-sh-note { flex: 1; min-width: 0; font-size: 10.5px; line-height: 1.35; color: var(--pp-l2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pp-sh-foot .pp-link { color: var(--pp-accent); white-space: nowrap; }
.pp-btn.is-default { background: var(--pp-accent); color: #fff; padding: 0 14px; }
@media (max-width: 520px) {
  .pp-sheet { width: calc(100% - 20px); top: 48px; bottom: 14px; }
  .pp-sh-head { flex-wrap: wrap; }
  .pp-sh-q { width: 100%; }
  .pp-sh-foot .pp-link { display: none; }
}
