/* PasteHop redrawn in HTML and CSS: the bar, the key, the pile, the lid.
   Sizes are the app's points (pile-final/SPEC.md); 1px = 1pt, scaled with `zoom` on .ph.
   Amber belongs to the ⌘V key and to nothing else. */

.ph {
  --font: -apple-system, system-ui, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --serif: "New York", ui-serif, "Iowan Old Style", Georgia, serif;
  --spring: cubic-bezier(.2, .9, .25, 1.08);
  /* Dark (default) */
  --face: linear-gradient(#1E1F22, #16171A);
  --backdrop: none;
  --label: rgba(255, 255, 255, .94);
  --label2: rgba(255, 255, 255, .68);
  --label3: rgba(255, 255, 255, .44);
  --amber: #FFC53D;
  --amber-skirt: #C28C0E;
  --key-shadow: 0 0 0 .5px rgba(0, 0, 0, .55), 0 1px 1px rgba(0, 0, 0, .5), 0 3px 8px -1px rgba(0, 0, 0, .55);
  --cap-face: #4A4843;
  --cap-skirt: #262523;
  --cap-sign: #F4F1E8;
  --cap-shadow: 0 0 0 .5px rgba(0, 0, 0, .6), 0 1px 2px rgba(0, 0, 0, .4);
  --more-face: #F4F1E8;
  --more-skirt: #BDB6A3;
  --more-sign: #1C1B19;
  --blue: #0871EE;
  --knob: #E2E2E2;
  --shadow: inset 0 0 0 .5px rgba(255, 255, 255, .16), inset 0 .5px 0 rgba(255, 255, 255, .42), 0 0 0 .5px rgba(0, 0, 0, .7), 0 1px 2px rgba(0, 0, 0, .3), 0 8px 18px rgba(0, 0, 0, .32), 0 22px 48px rgba(0, 0, 0, .45);
  --shadow-place: inset 0 0 0 .5px rgba(255, 255, 255, .14), inset 0 .5px 0 rgba(255, 255, 255, .34), 0 0 0 .5px rgba(0, 0, 0, .7), 0 1px 2px rgba(0, 0, 0, .3), 0 6px 14px rgba(0, 0, 0, .34);
  --track: rgba(255, 255, 255, .16);
  --fill: rgba(255, 255, 255, .78);
  --fillet-a: rgba(0, 0, 0, .6);
  --fillet-b: rgba(255, 255, 255, .42);
  --hollow-line: rgba(255, 255, 255, .46);
  --hollow-face: #2A2B2E;
  --hollow-lip: rgba(0, 0, 0, .22);
  --tint-rgb: 0, 0, 0;
  --tint-k: 1;
  --btn: rgba(255, 255, 255, .09);
  --btn-on: rgba(255, 255, 255, .22);
  --seg: rgba(255, 255, 255, .14);
  --cell: rgba(255, 255, 255, .06);
  --cell-line: rgba(255, 255, 255, .22);
  --off: rgba(255, 255, 255, .1);
  --done: rgba(255, 255, 255, .56);

  font-family: var(--font);
  font-size: 13px;
  line-height: 16px;
  color: var(--label);
  -webkit-font-smoothing: antialiased;
  text-align: left;
}

.ph[data-theme="light"],
.ph[data-theme="lightglass"] {
  --face: linear-gradient(#FFFFFF, #F3F3F5);
  --label: rgba(0, 0, 0, .85);
  --label2: rgba(0, 0, 0, .6);
  --label3: rgba(0, 0, 0, .4);
  --amber: #F5B400;
  --amber-skirt: #BD8300;
  --key-shadow: 0 0 0 .5px rgba(118, 74, 0, .6), 0 1px 1px rgba(74, 46, 0, .28), 0 3px 6px -2px rgba(122, 78, 0, .4);
  --cap-face: #F7F4EC;
  --cap-skirt: #CDC6B3;
  --cap-sign: rgba(28, 27, 25, .88);
  --cap-shadow: 0 0 0 .5px rgba(0, 0, 0, .22), 0 1px 2px rgba(0, 0, 0, .14);
  --more-face: #403E3A;
  --more-skirt: #1D1C1A;
  --more-sign: #F4F1E8;
  --blue: #0064E1;
  --knob: #FFFFFF;
  --shadow: inset 0 0 0 .5px rgba(255, 255, 255, .55), inset 0 .5px 0 rgba(255, 255, 255, .95), 0 0 0 .5px rgba(0, 0, 0, .16), 0 1px 2px rgba(0, 0, 0, .1), 0 6px 14px rgba(0, 0, 0, .12), 0 18px 40px rgba(0, 16, 48, .22);
  --shadow-place: inset 0 0 0 .5px rgba(255, 255, 255, .55), inset 0 .5px 0 rgba(255, 255, 255, .95), 0 0 0 .5px rgba(0, 0, 0, .15), 0 1px 2px rgba(0, 0, 0, .08), 0 5px 12px rgba(0, 16, 48, .13);
  --track: rgba(0, 0, 0, .12);
  --fill: rgba(0, 0, 0, .62);
  --fillet-a: rgba(0, 24, 70, .21);
  --fillet-b: rgba(255, 255, 255, .96);
  --hollow-line: rgba(0, 0, 0, .36);
  --hollow-face: #F6F6F7;
  --hollow-lip: rgba(0, 0, 0, .06);
  --tint-rgb: 18, 40, 84;
  --tint-k: .31;
  --btn: rgba(0, 0, 0, .06);
  --btn-on: rgba(0, 0, 0, .15);
  --seg: rgba(255, 255, 255, .9);
  --cell: rgba(255, 255, 255, .7);
  --cell-line: rgba(0, 0, 0, .2);
  --off: rgba(0, 0, 0, .1);
  --done: rgba(0, 0, 0, .6);
}
.ph[data-theme="darkglass"] { --face: rgba(26, 27, 31, .52); --backdrop: blur(26px) saturate(170%); }
.ph[data-theme="lightglass"] { --face: rgba(255, 255, 255, .5); --backdrop: blur(26px) saturate(170%); }

.ph *, .ph *::before, .ph *::after { box-sizing: border-box; }

/* ---------- The bar (the notif) ---------- */
.bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: var(--w, 420px);
  max-width: 100%;
  height: 44px;
  padding: 0 16px 0 9px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--face);
  -webkit-backdrop-filter: var(--backdrop);
  backdrop-filter: var(--backdrop);
  box-shadow: var(--shadow);
  color: var(--label);
  transition: width .34s var(--spring);
}
.bar.has-btn { padding-right: 6px; }
.bar-text { flex: 1 1 auto; min-width: 0; }
.bar-title,
.bar-second { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-title { font: 600 13px/16px var(--font); letter-spacing: -.003em; }
.bar-second { font: 400 11px/14px var(--font); color: var(--label2); }
.bar-second b { font-weight: 600; color: var(--label); }
.bar-count { flex: none; font: 400 13px/16px var(--font); white-space: nowrap; font-variant-numeric: tabular-nums; }
.bar-count b { font-weight: 600; }
.bar-count i { font-style: normal; color: var(--label2); }
.bar-count.is-quiet { color: var(--label2); }
.bar-count.is-quiet b { color: var(--label); }
.bar-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--track); }
.bar-progress i { display: block; height: 100%; width: 0; background: var(--fill); transition: width .3s ease; }
.bar-btn {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 4px 0 12px;
  border-radius: 10px;
  background: var(--btn);
  font: 600 13px/16px var(--font);
  white-space: nowrap;
  transition: background .12s, transform .12s;
}
.bar-btn.no-key { padding-right: 12px; }
.bar-btn.is-down { background: var(--btn-on); transform: scale(.95); }
.bar-check {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 14px;
  background: var(--seg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ph[data-theme^="light"] .bar-check { background: rgba(0, 0, 0, .08); }
.bar-check svg { width: 17px; height: 17px; }

.minikey { flex: none; height: 24px; border-radius: 7px; background: var(--more-skirt); box-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.minikey > span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 21.5px;
  min-width: 30px;
  padding: 0 8px;
  border-radius: 7px;
  background: var(--more-face);
  color: var(--more-sign);
  font: 600 11.5px/1 var(--font);
  letter-spacing: .04em;
  white-space: nowrap;
}

/* ---------- The ⌘V key ---------- */
.key {
  position: relative;
  flex: none;
  width: 42px;
  height: 28px;
  border-radius: 8px;
  background: var(--amber-skirt);
  box-shadow: var(--key-shadow);
}
.key > span {
  position: absolute;
  left: 0;
  top: 0;
  width: 42px;
  height: 24.5px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--amber);
  box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .5);
  color: #1C1B19;
  font: 600 13px/1 var(--font);
  letter-spacing: .02em;
  transition: transform .07s ease-out;
}
.key.is-down > span { transform: translateY(2.6px); }
.key.is-hollow { background: var(--hollow-lip); box-shadow: inset 0 0 0 1px var(--hollow-line); }
.key.is-hollow > span { background: var(--hollow-face); box-shadow: inset 0 0 0 1px var(--hollow-line); color: var(--label2); }
.key.is-outline { background: var(--hollow-lip); box-shadow: inset 0 0 0 1px var(--amber); }
.key.is-outline > span { background: var(--hollow-face); box-shadow: inset 0 0 0 1px var(--amber); color: var(--label2); }

/* ---------- The kind cap ---------- */
.cap {
  position: relative;
  flex: none;
  width: var(--cs, 22px);
  height: var(--cs, 22px);
  border-radius: calc(var(--cs, 22px) * .27);
  background: var(--cap-skirt);
  box-shadow: var(--cap-shadow);
}
.cap > span {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 90%;
  border-radius: inherit;
  background: var(--cap-face);
  box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .22);
  color: var(--cap-sign);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cap svg { width: 60%; height: 60%; display: block; }
.cap .t { font: 700 calc(var(--cs, 22px) * .67)/1 var(--serif); margin-top: -4%; }
.cap.is-more { background: var(--more-skirt); }
.cap.is-more > span { background: var(--more-face); color: var(--more-sign); }

/* ---------- Fillet, switch ---------- */
.fillet { flex: none; align-self: stretch; width: 2px; display: flex; }
.fillet::before,
.fillet::after { content: ""; width: 1px; }
.fillet::before { background: linear-gradient(transparent 15%, var(--fillet-a) 38%, var(--fillet-a) 62%, transparent 85%); }
.fillet::after { background: linear-gradient(transparent 15%, var(--fillet-b) 38%, var(--fillet-b) 62%, transparent 85%); }

.switch { position: relative; flex: none; width: 44px; height: 20px; border-radius: 10px; background: var(--blue); transition: background .2s; }
.switch::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 2px;
  width: 26px;
  height: 16px;
  border-radius: 8px;
  background: var(--knob);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .35);
  transition: left .2s var(--spring);
}
.switch.is-off { background: var(--off); }
.switch.is-off::after { left: 2px; }

/* ---------- The pile ---------- */
.pile { position: relative; width: 640px; height: 190px; }
.pile-capsule {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  align-items: stretch;
  height: 44px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--face);
  -webkit-backdrop-filter: var(--backdrop);
  backdrop-filter: var(--backdrop);
  box-shadow: var(--shadow);
}
.pile-end {
  flex: none;
  width: 0;
  opacity: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  white-space: nowrap;
  font: 600 13px/16px var(--font);
  color: var(--label);
  transition: width .34s var(--spring), opacity .2s;
}
.pile-end > span { flex: none; width: 108px; display: flex; align-items: center; }
.pile-end.is-flow > span { gap: 8px; padding-left: 12px; }
.pile-end.is-next > span { justify-content: center; font-weight: 500; }
.pile-end.is-next.is-over > span { font-weight: 600; }
.pile-capsule .fillet { opacity: 0; transition: opacity .2s; }
.pile-mid {
  position: relative;
  flex: none;
  width: var(--w, 420px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px 0 9px;
  transition: width .34s var(--spring);
}
.pile.is-open .pile-end { width: 108px; opacity: 1; }
.pile.is-open .pile-capsule .fillet { opacity: 1; }
.pile.is-open .pile-mid { width: 420px; }

.place {
  position: absolute;
  left: 50%;
  top: var(--top);
  width: var(--pw, 406px);
  height: var(--phh, 38px);
  margin-left: calc(var(--pw, 406px) / -2);
  border-radius: calc(var(--phh, 38px) * .39);
  background: var(--face);
  -webkit-backdrop-filter: var(--backdrop);
  backdrop-filter: var(--backdrop);
  box-shadow: var(--shadow-place);
  font: 400 var(--pfs, 13px)/1 var(--font);
  color: var(--label);
  z-index: var(--pz, 3);
  opacity: 0;
  transform: translateY(calc(var(--top) * -1 + 6px)) scale(.97);
  transition: transform .34s var(--spring), opacity .18s, top .26s var(--spring), width .26s, height .26s, margin .26s;
  transition-delay: var(--pd, 0ms);
  pointer-events: none;
}
.place::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(var(--tint-rgb), calc(var(--ptint, .045) * var(--tint-k))); }
.place > * { position: absolute; top: 50%; transform: translateY(-50%); }
.place-n { right: calc(100% - 46px + (420px - var(--pw, 406px)) / 2); font: 600 12px/1 var(--font); color: var(--label2); font-variant-numeric: tabular-nums; }
.place .cap { left: calc(62px - (420px - var(--pw, 406px)) / 2); --cs: 20px; }
.place-v { left: calc(93px - (420px - var(--pw, 406px)) / 2); right: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
.place-check { right: 14px; width: 14px; height: 14px; display: none; }
.place.is-done .place-v,
.place.is-done .place-n { color: var(--done); }
.place.is-done .place-v { right: 38px; }
.place.is-done .place-check { display: block; color: var(--done); }
.pile.is-open .place { opacity: 1; transform: none; pointer-events: auto; }
.pile.is-open .place.is-gone { opacity: 0; transform: translateY(-14px) scale(.97); pointer-events: none; }

.lid {
  position: absolute;
  left: 50%;
  top: var(--top, 136px);
  width: 384px;
  height: 32px;
  margin-left: -192px;
  padding: 0 12px 0 6px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--face);
  -webkit-backdrop-filter: var(--backdrop);
  backdrop-filter: var(--backdrop);
  box-shadow: var(--shadow-place);
  z-index: 2;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity .16s, transform .3s var(--spring), top .26s var(--spring);
  pointer-events: none;
}
.lid .cap { --cs: 20px; }
.lid-cmd { font: 500 13px/16px var(--font); color: var(--label); white-space: nowrap; background: none; border: 0; padding: 0; margin: 0; cursor: inherit; }
button.lid-cmd { cursor: pointer; border-radius: 6px; }
.lid.has-lit .lid-cmd { color: var(--label3); }
.lid.has-lit .lid-cmd.is-lit { color: var(--label); font-weight: 600; }
.lid-more { margin-left: auto; font: 600 13px/16px var(--font); color: var(--label2); letter-spacing: .08em; }
.pile.is-open .lid { opacity: 1; transform: none; transition-delay: .12s; pointer-events: auto; }
.pile.is-open .lid.is-gone { opacity: 0; transition-delay: 0s; pointer-events: none; }

/* ---------- The lid turned into a choice: head, tray, cells ---------- */
.head {
  width: var(--w, 420px);
  height: 32px;
  padding: 0 6px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--face);
  box-shadow: var(--shadow-place);
}
.head .cap { --cs: 20px; }
.head-name { flex: 1; font: 600 13px/16px var(--font); white-space: nowrap; }
.seg { font: 500 12px/16px var(--font); color: var(--label2); padding: 4px 9px; border-radius: 10px; white-space: nowrap; transition: background .15s, color .15s; }
.seg.is-on { font-weight: 600; color: var(--label); background: var(--seg); box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.tray {
  width: var(--w, 420px);
  height: 36px;
  padding: 0 6px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  background: var(--face);
  box-shadow: var(--shadow-place);
  color: var(--label2);
}
.cell {
  flex: 0 1 auto;
  min-width: 0;
  height: 24px;
  max-width: 190px;
  padding: 0 9px 0 3px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--cell);
  box-shadow: inset 0 0 0 .5px var(--cell-line);
  font: 400 12.5px/1 var(--font);
  color: var(--label);
}
.cell > b {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--cap-face);
  box-shadow: 0 1px 0 var(--cap-skirt);
  display: flex;
  align-items: center;
  justify-content: center;
  font: 600 11px/1 var(--font);
  color: var(--cap-sign);
}
.cell > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
.tab-arrow { flex: none; width: 16px; height: 12px; color: var(--label2); }

/* ---------- The lid card (Free): how the app itself names the price ---------- */
.lidcard {
  width: 406px;
  max-width: 100%;
  padding: 0 0 9px;
  border-radius: 18px;
  background: var(--face);
  box-shadow: var(--shadow);
}
.lidcard-row { height: 32px; padding: 0 12px 0 6px; display: flex; align-items: center; gap: 9px; }
.lidcard-row .cap { --cs: 20px; }
.lidcard-row .lid-cmd { display: inline-flex; align-items: center; gap: 5px; }
.lock { width: 10px; height: 12px; flex: none; color: var(--label2); }
.lidcard p { margin: 3px 14px 9px 35px; font: 400 12px/17px var(--font); color: var(--label2); }
.lidcard p b { font-weight: 600; color: var(--label); }
.lidcard-foot { margin: 0 9px 0 35px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lidcard-price { font: 650 13px/16px var(--font); color: var(--label); }
.lidcard-get { height: 28px; padding: 0 14px; border-radius: 8px; background: var(--blue); color: #fff; font: 600 13px/28px var(--font); white-space: nowrap; }

/* ---------- Marks and the dragged rectangle (never amber) ---------- */
.mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #CDC6B3;
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .25), 0 2px 5px rgba(0, 0, 0, .18);
  position: relative;
  flex: none;
}
.mark > span {
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 20px;
  border-radius: 6px;
  background: #F7F4EC;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 12px/1 -apple-system, system-ui, sans-serif;
  color: rgba(28, 27, 25, .88);
  transition: height .12s, transform .12s;
}
.mark svg { width: 14px; height: 14px; display: none; }
.mark.is-done > span { transform: translateY(1.5px); }
.mark.is-done > span > i { display: none; }
.mark.is-done svg { display: block; }
.mark i { font-style: normal; }
.dragrect {
  position: absolute;
  border-radius: 8px;
  background: rgba(20, 20, 24, .07);
  box-shadow: inset 0 0 0 1.5px rgba(20, 20, 24, .6), 0 0 0 1px rgba(255, 255, 255, .7);
  pointer-events: none;
}

/* ---------- Light Mac windows (the world the bar floats on) ---------- */
.win {
  --wfont: -apple-system, system-ui, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .2), 0 26px 60px rgba(24, 56, 116, .24), 0 8px 18px rgba(24, 56, 116, .12);
  color: #141418;
  font-family: var(--wfont);
  text-align: left;
}
.win-top {
  position: relative;
  height: 40px;
  display: flex;
  align-items: center;
  background: linear-gradient(#F6F6F8, #ECECEF);
  border-bottom: .5px solid rgba(0, 0, 0, .12);
}
.win-dots { display: flex; gap: 8px; margin-left: 14px; }
.win-dots i { width: 12px; height: 12px; border-radius: 50%; background: #D0D0D4; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .14); }
.win.is-front .win-dots i:nth-child(1) { background: #FF5F57; }
.win.is-front .win-dots i:nth-child(2) { background: #FEBC2E; }
.win.is-front .win-dots i:nth-child(3) { background: #28C840; }
.win-title { position: absolute; left: 70px; right: 70px; text-align: center; font: 600 13px/1 var(--wfont); color: rgba(20, 20, 24, .6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-url {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 54%;
  height: 26px;
  border-radius: 8px;
  background: rgba(0, 0, 0, .06);
  display: flex;
  align-items: center;
  justify-content: center;
  font: 400 12.5px/1 var(--wfont);
  color: rgba(20, 20, 24, .6);
  white-space: nowrap;
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .ph *, .ph *::before, .ph *::after { transition-duration: 0s !important; transition-delay: 0s !important; }
}
