@font-face {
  font-family: "Polaroid";
  src: url("../../fonts/polaroid/polaroid.otf");
  font-display: swap;
}

@font-face {
  font-family: "Pbx Unbounded";
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url(../photobox/fonts/unbounded-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Pbx Unbounded";
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url(../photobox/fonts/unbounded-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Pbx Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(../photobox/fonts/manrope-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Pbx Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(../photobox/fonts/manrope-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.p2 {
  --p2-brand: var(--p55-primary-15,#00394c);
  --p2-accent: var(--p55-primary,#00838f);
  --p2-accent-dark: var(--p55-primary-25,#00737d);
  --p2-ink: var(--p55-ink,#0d1b22);
  --p2-muted: var(--p55-ink-404,#5b6b73);
  --p2-bg: #f6f4ef;
  --p2-soft: #f1eee7;
  --p2-line: #e6e2d9;
  --p2-card: #ffffff;
  --p2-danger: #b42318;
  --p2-warn-bg: #fff3d6;
  --p2-warn: #93370d;
  --p2-shadow: 0 1px 2px rgba(var(--p55-ink-rgb,13,27,34),.051), 0 12px 32px -12px rgba(var(--p55-ink-rgb,13,27,34),.2);
  --p2-stick: var(--p2-hist-h, 0px);
  --p2-top: var(--p55-hdr-top, 0px);
  --p2-sans: "Pbx Manrope", Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  --p2-display: "Pbx Unbounded", Unbounded, "Pbx Manrope", Manrope, system-ui, sans-serif;
  position: relative;
  min-height: 40vh;
  padding: 24px 0 0;
  background: var(--p2-bg);
  color: var(--p2-ink);
  font: 500 15px/1.45 var(--p2-sans);
  -webkit-font-smoothing: antialiased;
  text-align: left;
  overflow-x: clip;
}

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

.p2 [hidden] {
  display: none !important;
}

.p2 button,
.p2 input,
.p2 textarea {
  font-family: var(--p2-sans);
}

.p2 button {
  margin: 0;
  -webkit-tap-highlight-color: transparent;
}

.p2 :focus-visible {
  outline: 3px solid var(--p2-accent);
  outline-offset: 2px;
}

.p2 .visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

.p2-wrap {
  width: calc(100% - 30px);
  margin: 0 auto;
  padding: 0 0 28px;
}

@media (min-width: 576px) {
  .p2-wrap {
    width: min(100% - 30px, 510px);
  }
}

@media (min-width: 768px) {
  .p2-wrap {
    width: min(100% - 30px, 690px);
  }
}

@media (min-width: 992px) {
  .p2-wrap {
    width: min(100% - 30px, 930px);
  }
}

@media (min-width: 1200px) {
  .p2-wrap {
    width: min(100% - 30px, 1110px);
  }
}

@media (min-width: 1400px) {
  .p2-wrap {
    width: min(100% - 30px, 1290px);
  }
}

.p2-head {
  margin-bottom: 16px;
}

.p2-title {
  margin: 0 0 6px;
  font-family: var(--p2-display);
  font-weight: 800;
  font-size: 22px;
  line-height: 28px;
  letter-spacing: -0.02em;
  color: var(--p2-ink);
  text-transform: none;
}

.p2-lead {
  margin: 0;
  max-width: 720px;
  font-size: 14px;
  color: var(--p2-muted);
}

.p2-lead strong {
  color: var(--p2-accent-dark);
  font-weight: 800;
  white-space: nowrap;
}

.p2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--p2-ink);
  color: #ffffff;
  font: 700 15px/1 var(--p2-sans);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.2s;
}

.p2-btn:hover {
  color: #ffffff;
  text-decoration: none;
}

.p2-btn--primary {
  background: var(--p2-accent);
  box-shadow: 0 10px 24px -12px rgba(var(--p55-primary-rgb,0,131,143),.667);
}

.p2-btn--primary:hover {
  background: var(--p2-accent-dark);
}

.p2-btn--ghost {
  min-height: 44px;
  padding: 0 18px;
  background: #ffffff;
  border: 1.5px solid var(--p2-line);
  color: var(--p2-brand);
  font-size: 14px;
}

.p2-btn--ghost:hover {
  border-color: var(--p2-ink);
  color: var(--p2-brand);
}

.p2-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.p2-btn svg {
  flex: none;
}

.p2-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 260px;
  padding: 28px 20px;
  border: 2px dashed var(--p55-tint-759,#b7c7cc);
  border-radius: 24px;
  background: #ffffff;
  color: var(--p2-ink);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}

.p2-drop:hover,
.p2-drop.is-over {
  border-color: var(--p2-accent);
  background: var(--p55-tint-967,#f2fafb);
}

.p2-drop__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--p2-accent);
  color: #ffffff;
}

.p2-drop__title {
  font-family: var(--p2-display);
  font-weight: 800;
  font-size: 20px;
  line-height: 26px;
}

.p2-drop__sub {
  font-size: 14px;
  color: var(--p2-muted);
  max-width: 420px;
}

.p2-uploads {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--p2-shadow);
}

.p2-uploads__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 14px;
}

.p2-progress {
  height: 8px;
  border-radius: 999px;
  background: var(--p2-soft);
  overflow: hidden;
}

.p2-progress > i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--p2-accent);
  transition: width 0.2s;
}

.p2-uploads__list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  max-height: 240px;
  overflow: auto;
}

.p2-up {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 10px;
  padding: 6px 0;
  border-top: 1px solid var(--p2-line);
  font-size: 13px;
}

.p2-up__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.p2-up__state {
  color: var(--p2-muted);
  white-space: nowrap;
}

.p2-up .p2-progress {
  grid-column: 1 / -1;
  height: 5px;
}

.p2-up--err .p2-up__state {
  color: var(--p2-danger);
}

.p2-up__err {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--p2-danger);
}

.p2-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.p2-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 150px;
  border: 2px dashed var(--p55-tint-759,#b7c7cc);
  border-radius: 18px;
  background: #ffffff;
  color: var(--p2-brand);
  font: 700 14px/1.2 var(--p2-sans);
  cursor: pointer;
  text-align: center;
  padding: 10px;
}

.p2-add:hover {
  border-color: var(--p2-accent);
}

.p2-card {
  position: relative;
  min-width: 0;
  border-radius: 2px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(var(--p55-ink-rgb,13,27,34),.188), 0 8px 18px -8px rgba(var(--p55-ink-rgb,13,27,34),.4);
}

.p2-card__pic {
  position: relative;
  aspect-ratio: 1800 / 2160;
}

.p2-card__open {
  position: absolute;
  inset: 0;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
}

.p2-card__open canvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 2px;
  background: #ffffff;
}

.p2-card__warn {
  position: absolute;
  z-index: 2;
  top: calc(6.94% + 38px);
  left: calc(8.33% + 4px);
  min-height: 24px;
  max-width: calc(83.33% - 8px);
  padding: 0 8px;
  border-radius: 999px;
  background: var(--p2-warn-bg);
  color: var(--p2-warn);
  font: 800 11px/24px var(--p2-sans);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}

.p2-card__check,
.p2-card__act,
.p2-strip__check {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
}

.p2-card__check::before,
.p2-card__act::before,
.p2-strip__check::before {
  content: "";
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: rgba(var(--p55-ink-rgb,13,27,34),.6);
  box-shadow: 0 0 0 2px #ffffff;
}

.p2-card__check svg,
.p2-card__act svg,
.p2-strip__check svg {
  position: relative;
}

.p2-card__check {
  top: calc(6.94% - 7px);
  left: calc(8.33% - 7px);
}

.p2-strip__check {
  top: 8px;
  left: 8px;
}

.p2-card__check svg,
.p2-strip__check svg {
  opacity: 0;
}

.p2-card__check[aria-checked="true"]::before,
.p2-strip__check[aria-checked="true"]::before {
  background: var(--p2-accent);
}

.p2-card__check[aria-checked="true"] svg,
.p2-strip__check[aria-checked="true"] svg {
  opacity: 1;
}

.p2-card__del {
  top: calc(6.94% - 7px);
  right: calc(8.33% - 7px);
}

.p2-card__rot {
  top: calc(6.94% - 7px);
  right: calc(8.33% + 37px);
}

.p2-card__del:hover::before {
  background: var(--p2-danger);
}

.p2-card__rot:hover::before {
  background: var(--p2-accent);
}

.p2-card.is-sel {
  box-shadow: 0 0 0 3px var(--p2-accent), 0 8px 18px -8px rgba(var(--p55-ink-rgb,13,27,34),.4);
}

.p2-strip.is-sel .p2-strip__pic {
  box-shadow: 0 0 0 3px var(--p2-accent), var(--p2-shadow);
}

.p2-card__copies {
  position: absolute;
  z-index: 2;
  left: calc(8.33% + 4px);
  bottom: calc(19% + 4px);
  display: flex;
  align-items: center;
  height: 30px;
  border-radius: 999px;
  background: rgba(var(--p55-ink-rgb,13,27,34),.702);
  color: #ffffff;
}

.p2-card__step {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #ffffff;
  font: 700 18px/1 var(--p2-sans);
  cursor: pointer;
}

.p2-card__step::after {
  content: "";
  position: absolute;
  inset: -7px;
}

.p2-card__step:hover:not(:disabled) {
  background: #ffffff33;
}

.p2-card__step:disabled {
  opacity: 0.4;
  cursor: default;
}

.p2-card__qty {
  min-width: 24px;
  padding: 0 4px;
  text-align: center;
  font: 800 13px/1 var(--p2-sans);
}

.p2-card__qty::before {
  content: "\00d7";
  font-weight: 600;
  opacity: 0.8;
}

.p2-cap__hit,
.p2-cap__hint,
.p2-cap__ta {
  position: absolute;
  margin: 0;
}

.p2-cap__hit {
  z-index: 1;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: text;
}

.p2-cap__hit:hover {
  background: rgba(var(--p55-primary-rgb,0,131,143),.078);
}

.p2-cap__hint {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #7a8790;
  font: 600 12px/1.2 var(--p2-sans);
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}

.p2-cap__ta {
  z-index: 3;
  box-sizing: border-box;
  padding: 0;
  border: 0;
  outline: 1.5px dashed rgba(var(--p55-primary-rgb,0,131,143),.6);
  outline-offset: 3px;
  background: transparent;
  resize: none;
  overflow: hidden;
  white-space: pre;
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

.p2-cap__ta[hidden],
.p2-cap__hit[hidden],
.p2-cap__hint[hidden] {
  display: none;
}

.p2-stagepic {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.p2-stagepic > * {
  pointer-events: auto;
}

.p2-stagepic .p2-cap__hint {
  pointer-events: none;
}

.p2-strip__pic .p2-cap__hint {
  font-size: 9px;
}

.p2-strip__pic .p2-cap__hit {
  top: auto !important;
  bottom: 0;
  min-height: 28px;
}

@media (hover: hover) and (pointer: fine) {
  .p2-card:not(.is-sel):hover {
    box-shadow: 0 0 0 2px rgba(var(--p55-primary-rgb,0,131,143),.502), 0 8px 18px -8px rgba(var(--p55-ink-rgb,13,27,34),.4);
  }

  .p2-card__act,
  .p2-card__copies {
    opacity: 0;
  }

  .p2-card.is-multi .p2-card__copies {
    opacity: 1;
  }

  .p2-card.is-multi:not(:hover):not(:focus-within) .p2-card__step {
    display: none;
  }

  .p2-card:hover .p2-card__act,
  .p2-card:focus-within .p2-card__act,
  .p2-card:hover .p2-card__copies,
  .p2-card:focus-within .p2-card__copies {
    opacity: 1;
  }
}

.p2-bar {
  position: sticky;
  bottom: var(--p55-cookie-h, 0px);
  z-index: 20;
  margin: 0 -16px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: #ffffff;
  box-shadow: 0 -8px 28px -10px rgba(var(--p55-ink-rgb,13,27,34),.2);
}

.p2-bar__inner {
  max-width: 1376px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

.p2-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1 1 100%;
}

.p2-chip {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  min-height: 48px;
  padding: 4px 10px;
  border: 1.5px solid var(--p2-line);
  border-radius: 16px;
  background: #ffffff;
  color: var(--p2-ink);
  font: 700 14px/1.15 var(--p2-sans);
  cursor: pointer;
}

.p2-chip small {
  font-weight: 600;
  font-size: 12px;
  color: var(--p2-muted);
}

.p2-chip[aria-checked="true"] {
  border-color: var(--p2-accent);
  background: var(--p55-surface-94,#e6f4f5);
  color: var(--p2-brand);
}

.p2-bar__sum {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 800;
  font-size: 16px;
}

.p2-bar__sum small {
  display: block;
  font-weight: 600;
  font-size: 12px;
  color: var(--p2-muted);
}

.p2-toasts {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + var(--p55-cookie-h, 0px) + var(--p2-bar-h, 0px));
  z-index: 100000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.p2-toast {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 520px;
  padding: 10px 10px 10px 16px;
  border-radius: 16px;
  background: var(--p2-ink);
  color: #ffffff;
  font: 600 14px/1.35 var(--p2-sans);
  box-shadow: 0 12px 32px -12px rgba(var(--p55-ink-rgb,13,27,34),.8);
  pointer-events: auto;
}

.p2-toast button {
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: #ffffff22;
  color: #ffffff;
  font: 700 14px/1 var(--p2-sans);
  cursor: pointer;
}

.p2-ed {
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: flex;
  flex-direction: column;
  background: var(--p2-bg);
  color: var(--p2-ink);
  overscroll-behavior: contain;
}

.p2-ed__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex: none;
  min-height: 56px;
  padding: 6px 8px;
  background: #ffffff;
  box-shadow: 0 1px 0 var(--p2-line);
}

.p2-ed__nav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 800;
  font-size: 14px;
}

.p2-iconbtn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--p2-ink);
  cursor: pointer;
}

.p2-iconbtn:hover {
  background: var(--p2-soft);
}

.p2-iconbtn:disabled {
  opacity: 0.3;
  cursor: default;
}

.p2-iconbtn--danger:hover {
  color: var(--p2-danger);
}

.p2-ed__body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.p2-ed__stage {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 12px 4px;
}

.p2-hintline {
  flex: none;
  margin: 0 0 6px;
  font-size: 12px;
  line-height: 16px;
  color: var(--p2-muted);
  text-align: center;
}

.p2-warnline {
  flex: none;
  margin: 0 0 6px;
  padding: 6px 10px;
  border-radius: 10px;
  background: var(--p2-warn-bg);
  color: var(--p2-warn);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  text-align: center;
}

.p2-stagebox {
  position: relative;
  flex: 1 1 0;
  width: 100%;
  min-height: 0;
}

.p2-stagebox canvas {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: block;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 10px 30px -12px rgba(var(--p55-ink-rgb,13,27,34),.4), 0 0 0 1px var(--p2-line);
  touch-action: none;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}

.p2-stagebox canvas.is-drag {
  cursor: grabbing;
}

.p2-ed__tools {
  flex: none;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  box-shadow: 0 -1px 0 var(--p2-line);
  padding-bottom: env(safe-area-inset-bottom);
}

.p2-panels {
  max-height: min(44vh, 400px);
  overflow-y: auto;
  padding: 12px 14px 8px;
}

.p2-panel[hidden] {
  display: none !important;
}

.p2-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.p2-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1.5px solid var(--p2-line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--p2-brand);
  font: 700 14px/1 var(--p2-sans);
  cursor: pointer;
}

.p2-tool:hover {
  border-color: var(--p2-ink);
}

.p2-slider {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-weight: 700;
  font-size: 14px;
}

.p2-slider input[type="range"],
.p2-fxrow input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  height: 44px;
  margin: 0;
  background: transparent;
  touch-action: pan-y;
  cursor: pointer;
}

.p2-slider input[type="range"]::-webkit-slider-runnable-track,
.p2-fxrow input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: var(--p2-line);
}

.p2-slider input[type="range"]::-webkit-slider-thumb,
.p2-fxrow input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  margin-top: -11px;
  border: 2px solid var(--p2-accent);
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 5px rgba(var(--p55-ink-rgb,13,27,34),.251);
}

.p2-slider input[type="range"]::-moz-range-track,
.p2-fxrow input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: var(--p2-line);
}

.p2-slider input[type="range"]::-moz-range-thumb,
.p2-fxrow input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border: 2px solid var(--p2-accent);
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 5px rgba(var(--p55-ink-rgb,13,27,34),.251);
}

.p2-slider output {
  min-width: 48px;
  text-align: right;
  color: var(--p2-muted);
  font-variant-numeric: tabular-nums;
}

.p2-sub {
  margin: 8px 0 6px;
  font-weight: 800;
  font-size: 13px;
  color: var(--p2-muted);
}

.p2-input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1.5px solid var(--p2-line);
  border-radius: 14px;
  background: #ffffff;
  color: var(--p2-ink);
  font: 600 16px/1.2 var(--p2-sans);
}

.p2-input:focus {
  border-color: var(--p2-accent);
  outline: none;
}

.p2-fonts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 2px 2px 8px;
}

.p2-fonts--recent {
  grid-template-rows: auto;
}

.p2-font {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  min-height: 64px;
  padding: 6px 10px;
  border: 1.5px solid var(--p2-line);
  border-radius: 12px;
  background: var(--p2-fs-bg, #ffffff);
  color: var(--p2-fs-ink, var(--p2-ink));
  text-align: left;
  cursor: pointer;
}

.p2-font__s {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow-wrap: anywhere;
  font-size: 20px;
  line-height: 1.2;
  font-family: Polaroid, "Comic Sans MS", cursive;
}

.p2-font small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 600 11px/1.2 var(--p2-sans);
  color: var(--p2-muted);
  background: #ffffffd9;
  border-radius: 6px;
  padding: 0 5px;
  width: fit-content;
}

.p2-font[aria-checked="true"] {
  border-color: var(--p2-accent);
  box-shadow: 0 0 0 2px var(--p2-accent);
}

.p2-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.p2-sw {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1.5px solid var(--p2-line);
  border-radius: 50%;
  cursor: pointer;
}

.p2-sw[aria-checked="true"] {
  box-shadow: 0 0 0 3px #ffffff, 0 0 0 5px var(--p2-accent);
}

#p2-framecolors {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  justify-items: center;
  gap: 12px 0;
  max-width: 340px;
}

.p2-filters,
.p2-bgs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 84px;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 6px;
}

.p2-fl,
.p2-bg {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border: 1.5px solid var(--p2-line);
  border-radius: 14px;
  background: #ffffff;
  color: var(--p2-ink);
  font: 700 12px/1.2 var(--p2-sans);
  cursor: pointer;
}

.p2-fl[aria-checked="true"],
.p2-bg[aria-checked="true"] {
  border-color: var(--p2-accent);
  background: var(--p55-surface-94,#e6f4f5);
}

.p2-fl canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1500 / 1600;
  border-radius: 6px;
  background: var(--p2-soft);
}

.p2-bg {
  min-height: 0;
  padding: 0;
  overflow: hidden;
  justify-content: center;
}

.p2-bg i {
  display: block;
  width: 100%;
  height: 56px;
  background-size: cover;
  background-position: center;
  background-color: var(--p2-soft);
}

.p2-bg .p2-bg__none {
  background: linear-gradient(to top right, transparent calc(50% - 1px), var(--p2-danger) calc(50% - 1px), var(--p2-danger) calc(50% + 1px), transparent calc(50% + 1px)), #ffffff;
}

.p2-bg[aria-checked="true"] {
  box-shadow: 0 0 0 2px var(--p2-accent);
}

.p2-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 6px 0 4px;
}

.p2-stepper button {
  width: 56px;
  height: 56px;
  padding: 0;
  border: 1.5px solid var(--p2-line);
  border-radius: 50%;
  background: #ffffff;
  color: var(--p2-ink);
  font: 700 28px/1 var(--p2-sans);
  cursor: pointer;
}

.p2-stepper button:disabled {
  opacity: 0.35;
  cursor: default;
}

.p2-stepper output {
  min-width: 64px;
  text-align: center;
  font: 800 28px/1 var(--p2-display);
}

.p2-copies-note {
  margin: 4px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--p2-muted);
}

.p2-tabs {
  display: flex;
  border-top: 1px solid var(--p2-line);
}

.p2-tab {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 56px;
  padding: 4px 2px;
  border: 0;
  background: transparent;
  color: var(--p2-muted);
  font: 700 11px/1.1 var(--p2-sans);
  cursor: pointer;
}

.p2-tab span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.p2-tab[aria-selected="true"] {
  color: var(--p2-accent);
  box-shadow: inset 0 3px 0 var(--p2-accent);
}

html.p2-lock,
html.p2-lock body {
  overflow: hidden;
}

@media (min-width: 768px) {
  .p2 {
    padding: 36px 0 0;
  }

  .p2-title {
    font-size: 28px;
    line-height: 34px;
  }

  .p2-grid {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 16px;
  }

  .p2-chips {
    flex: 0 1 auto;
  }

  .p2-chip {
    flex: 0 0 auto;
    flex-direction: row;
    gap: 6px;
    padding: 0 16px;
    border-radius: 999px;
  }


  .p2-bar__sum {
    flex: 1 1 auto;
    text-align: right;
  }

  .p2-drop {
    min-height: 320px;
  }

  .p2-toasts {
    left: auto;
    right: 20px;
    bottom: calc(20px + var(--p55-cookie-h, 0px) + var(--p2-bar-h, 0px));
    align-items: flex-end;
  }
}

@media (min-width: 900px) {
  .p2-ed__stage {
    flex: 1 1 0;
    padding: 16px 24px 8px;
  }

  .p2-ed__tools {
    padding-bottom: 0;
  }

  .p2-tabs {
    order: -1;
    border-top: 0;
    border-bottom: 1px solid var(--p2-line);
  }

  .p2-tab {
    min-height: 60px;
    font-size: 12px;
  }

  .p2-tab[aria-selected="true"] {
    box-shadow: inset 0 -3px 0 var(--p2-accent);
  }

  .p2-panels {
    max-height: none;
    flex: 1 1 auto;
    padding: 18px 20px;
  }

  .p2-seg {
    display: none !important;
  }

  .p2-sg {
    display: block !important;
  }

  .p2-sg + .p2-sg {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--p2-line);
  }

  .p2-filters,
  .p2-bgs {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow-x: hidden;
  }
}

.p2-lead2 {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 16px;
  color: var(--p2-muted);
}

.p2-note {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 16px;
  color: var(--p2-muted);
}

.p2-note--warn {
  color: var(--p2-warn);
  font-weight: 600;
}

.p2-sub--first {
  margin-top: 0;
}

.p2-row--end {
  margin: 12px 0 0;
}

.p2-sources {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
  color: var(--p2-muted);
  font-size: 14px;
}

.p2-seg {
  display: flex;
  gap: 4px;
  margin: 0 0 8px;
  padding: 3px;
  border-radius: 999px;
  background: var(--p2-soft);
}

.p2-seg button {
  flex: 1 1 0;
  min-width: 0;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--p2-muted);
  font: 700 12px/1.1 var(--p2-sans);
  cursor: pointer;
}

.p2-seg button[aria-selected="true"] {
  background: #ffffff;
  color: var(--p2-brand);
  box-shadow: 0 1px 4px rgba(var(--p55-ink-rgb,13,27,34),.141);
}

.p2-sg {
  display: none;
}

.p2-sg.is-on {
  display: block;
}

.p2-textarea {
  display: block;
  min-height: 72px;
  padding: 10px 14px;
  resize: none;
  line-height: 1.3;
}

.p2-opts {
  display: flex;
  gap: 6px;
}

.p2-opt {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 44px;
  padding: 4px 8px;
  border: 1.5px solid var(--p2-line);
  border-radius: 12px;
  background: #ffffff;
  color: var(--p2-ink);
  font: 700 12px/1.15 var(--p2-sans);
  cursor: pointer;
}

.p2-opts--text .p2-opt {
  flex-direction: column;
  min-height: 64px;
  text-align: center;
}

.p2-opt[aria-checked="true"] {
  border-color: var(--p2-accent);
  background: var(--p55-surface-94,#e6f4f5);
  color: var(--p2-brand);
}

.p2-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 8px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.p2-check input {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--p2-accent);
}

.p2-slider--first {
  margin-top: 0;
}

.p2-sw--custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  padding: 0 14px 0 8px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--p2-brand);
  font: 700 13px/1 var(--p2-sans);
}

.p2-sw--custom::before {
  content: "";
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: conic-gradient(var(--p55-accent,#e6007e), #f2c200, #2e7d32, var(--p55-primary,#00838f), #1f5fbf, #6a3fb5, var(--p55-accent,#e6007e));
}

.p2-sw--custom[aria-checked="true"]::before {
  background: var(--p2-custom, #222222);
  box-shadow: inset 0 0 0 2px #ffffff, 0 0 0 1px var(--p2-line);
}

.p2-sw--custom input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.p2-fine {
  margin-top: 10px;
  border-top: 1px solid var(--p2-line);
}

.p2-fine summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  font-weight: 800;
  font-size: 14px;
  list-style: none;
  cursor: pointer;
}

.p2-fine summary::-webkit-details-marker {
  display: none;
}

.p2-fine summary svg {
  transition: transform 0.2s;
}

.p2-fine[open] summary svg {
  transform: rotate(180deg);
}

.p2-fxrow {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

.p2-fxrow label {
  font-weight: 700;
  font-size: 13px;
}

.p2-fxrow output {
  text-align: right;
  font-size: 12px;
  font-weight: 700;
  color: var(--p2-muted);
  font-variant-numeric: tabular-nums;
}

.p2-busy {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #ffffffd9;
  text-align: center;
  font-size: 15px;
}

.p2-busy small {
  color: var(--p2-muted);
  font-size: 13px;
}

.p2-busy__spin {
  width: 34px;
  height: 34px;
  border: 4px solid var(--p2-line);
  border-top-color: var(--p2-accent);
  border-radius: 50%;
  animation: p2-spin 0.9s linear infinite;
}

@keyframes p2-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .p2-busy__spin {
    animation-duration: 3s;
  }
}

.p2-sheet {
  position: fixed;
  inset: 0;
  z-index: 99985;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.p2-sheet__back {
  position: absolute;
  inset: 0;
  background: rgba(var(--p55-ink-rgb,13,27,34),.451);
}

.p2-sheet__box {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 520px;
  padding: 20px 16px calc(16px + env(safe-area-inset-bottom));
  border-radius: 24px 24px 0 0;
  background: #ffffff;
  box-shadow: 0 -12px 40px -12px rgba(var(--p55-ink-rgb,13,27,34),.4);
}

.p2-sheet__box h2 {
  margin: 0;
  font: 800 20px/26px var(--p2-display);
}

.p2-sheet__box p {
  margin: 0 0 4px;
  color: var(--p2-muted);
  font-size: 14px;
}

.p2-src {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 10px 14px;
  border: 1.5px solid var(--p2-line);
  border-radius: 18px;
  background: #ffffff;
  color: var(--p2-ink);
  text-align: left;
  cursor: pointer;
}

.p2-src:hover {
  border-color: var(--p2-accent);
}

.p2-src > svg {
  flex: none;
  box-sizing: content-box;
  padding: 11px;
  border-radius: 50%;
  background: var(--p2-accent);
  color: #ffffff;
}

.p2-src b {
  display: block;
  font-size: 16px;
}

.p2-src small {
  display: block;
  color: var(--p2-muted);
  font-size: 13px;
}

html.p2-lock .p2-toasts {
  top: 64px;
  bottom: auto;
}

@media (min-width: 768px) {
  .p2-sheet {
    align-items: center;
  }

  .p2-sheet__box {
    border-radius: 24px;
  }
}

@media (min-width: 900px) {
  html.p2-lock .p2-toasts {
    top: auto;
    left: 20px;
    right: auto;
    bottom: 20px;
    align-items: flex-start;
  }
}

.p2-slider > span {
  flex: none;
  white-space: nowrap;
}

.p2-bar__tip {
  flex: 1 1 100%;
  margin: 0;
  padding: 6px 10px;
  border-radius: 10px;
  background: var(--p2-warn-bg);
  color: var(--p2-warn);
  font: 600 12px/16px var(--p2-sans);
}

.p2-board__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.p2-board__bar .p2-btn {
  flex: 1 1 0;
  min-width: 0;
}

.p2-board__bar .p2-btn:first-child {
  flex: 1 1 100%;
}

.p2-board__hint {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 16px;
  color: var(--p2-muted);
}

.p2-sheets {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.p2-sh {
  padding: 8px 4px 10px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--p2-shadow);
}

.p2-sh__title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 8px;
  padding: 0 4px;
  font: 800 15px/20px var(--p2-display);
  color: var(--p2-ink);
  text-transform: none;
}

.p2-sh__title small {
  font: 600 12px/16px var(--p2-sans);
  color: var(--p2-muted);
}

.p2-sh__row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}

.p2-strip {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.p2-strip__pic {
  position: relative;
  aspect-ratio: 506.664 / 1870;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 0 0 1px var(--p2-line);
}

.p2-strip__pic canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 4px;
}

.p2-slot {
  position: absolute;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.p2-slot {
  display: grid;
  place-items: center;
  border-radius: 3px;
  color: var(--p2-accent-dark);
  touch-action: pan-y;
}

.p2-slot:not(.is-empty) {
  cursor: grab;
}

.p2-slot.is-empty {
  background: #ffffff8c;
  outline: 2px dashed var(--p55-tint-598,#8aa0a7);
  outline-offset: -2px;
}

.p2-slot.is-empty:hover {
  background: rgba(var(--p55-surface-94-rgb,230,244,245),.8);
  outline-color: var(--p2-accent);
}

.p2-slot:not(.is-empty):hover {
  outline: 2px solid var(--p2-accent);
  outline-offset: -2px;
}

.p2-slot__plus {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffffe6;
  box-shadow: 0 1px 4px rgba(var(--p55-ink-rgb,13,27,34),.2);
}

.p2-slot:not(.is-empty) .p2-slot__plus {
  display: none;
}

.p2-slot__warn {
  position: absolute;
  top: 4px;
  left: 4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--p2-warn-bg);
  color: var(--p2-warn);
  font: 800 12px/20px var(--p2-sans);
  text-align: center;
  pointer-events: none;
}

.p2-slot.is-lifted {
  opacity: 0.3;
}

.p2-slot.is-drop {
  background: rgba(var(--p55-primary-rgb,0,131,143),.2);
  outline: 3px solid var(--p2-accent);
  outline-offset: -3px;
}

.p2-slot.is-current {
  outline: 3px solid var(--p2-accent);
  outline-offset: -3px;
  opacity: 0.6;
}

.p2-board.is-dragging,
.p2-board.is-dragging .p2-slot {
  cursor: grabbing;
}

.p2-slotzoom {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.p2-slotzoom__btn {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--p2-ink);
  cursor: pointer;
  pointer-events: auto;
}

.p2-slotzoom__btn::before {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffffffeb;
  box-shadow: 0 1px 4px rgba(var(--p55-ink-rgb,13,27,34),.251);
  transition: box-shadow 0.15s ease;
}

.p2-slotzoom__btn svg {
  position: relative;
  width: 15px;
  height: 15px;
}

.p2-slotzoom__btn:hover {
  color: var(--p2-accent);
}

.p2-slotzoom__btn:hover::before {
  box-shadow: 0 0 0 2px var(--p2-accent), 0 1px 4px rgba(var(--p55-ink-rgb,13,27,34),.251);
}

.p2-board.is-dragging .p2-slotzoom__btn {
  pointer-events: none;
}

@media (pointer: coarse) {
  .p2-slotzoom__btn {
    width: 44px;
    height: 44px;
  }
}

@media (hover: hover) and (pointer: fine) {
  .p2-slotzoom__btn {
    opacity: 0;
    transition: opacity 0.18s ease;
  }

  .p2-strip:hover .p2-slotzoom__btn,
  .p2-strip:focus-within .p2-slotzoom__btn {
    opacity: 1;
  }
}

.p2-strip__tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.p2-mini:hover {
  border-color: var(--p2-ink);
}

.p2-mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-width: 0;
  min-height: 44px;
  padding: 2px;
  border: 1.5px solid var(--p2-line);
  border-radius: 12px;
  background: #ffffff;
  color: var(--p2-brand);
  font: 700 11px/1.1 var(--p2-sans);
  cursor: pointer;
}

.p2-mini span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.p2-mini--danger:hover {
  color: var(--p2-danger);
  border-color: var(--p2-danger);
}

.p2-strip--ghost {
  align-items: stretch;
  justify-content: center;
  padding: 6px;
  border: 2px dashed var(--p55-tint-759,#b7c7cc);
  border-radius: 12px;
  background: #ffffff;
  color: var(--p2-brand);
  cursor: pointer;
  text-align: center;
}

.p2-strip--ghost:hover {
  border-color: var(--p2-accent);
}

.p2-ghost-in {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 160px;
}

.p2-ghost-in b {
  font: 700 13px/1.2 var(--p2-sans);
}

.p2-ghost-in small {
  font: 600 11px/1.25 var(--p2-sans);
  color: var(--p2-muted);
}

.p2-ghost-drag {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100001;
  width: 88px;
  height: 88px;
  overflow: hidden;
  border: 2px solid #ffffff;
  border-radius: 8px;
  box-shadow: 0 14px 30px -8px rgba(var(--p55-ink-rgb,13,27,34),.6);
  pointer-events: none;
  will-change: transform;
}

.p2-ghost-drag canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.p2-swap {
  position: fixed;
  inset: 0;
  z-index: 99996;
  display: flex;
  flex-direction: column;
  background: var(--p2-bg);
  color: var(--p2-ink);
}

.p2-swap__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  flex: none;
  padding: 10px 8px 10px 16px;
  background: #ffffff;
  box-shadow: 0 1px 0 var(--p2-line);
}

.p2-swap__head h2 {
  margin: 0;
  font: 800 18px/24px var(--p2-display);
}

.p2-swap__head p {
  margin: 2px 0 0;
  font-size: 13px;
  line-height: 18px;
  color: var(--p2-muted);
}

.p2-swap__list {
  flex: 1 1 auto;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 14px 10px;
  align-content: start;
  padding: 12px;
}

.p2-swap__strip {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  font-size: 12px;
}

.p2[data-type="stripes"] .p2-fl canvas {
  aspect-ratio: 1 / 1;
}

.p2-ed:not([data-kind="slot"]) .p2-only-slot,
.p2[data-type="stripes"] #p2-pos-l,
.p2[data-type="stripes"] #p2-pos,
.p2[data-type="stripes"] #p2-bgs-title,
.p2[data-type="stripes"] #p2-bgs {
  display: none;
}

@media (min-width: 768px) {
  .p2-board__bar .p2-btn,
  .p2-board__bar .p2-btn:first-child {
    flex: 0 0 auto;
  }

  .p2-bar__tip {
    order: 4;
  }

  .p2-sheets {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
  }

  .p2-sh {
    flex: 1 1 480px;
    max-width: 560px;
    padding: 14px 16px 16px;
    border-radius: 18px;
  }

  .p2-sh__title {
    margin-bottom: 12px;
    font-size: 17px;
  }

  .p2-sh__row {
    gap: 14px;
  }

  .p2-swap__list {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    padding: 20px 24px;
  }
}

.p2-main {
  min-width: 0;
}

.p2-selbar {
  position: sticky;
  top: calc(var(--p2-top) + var(--p2-stick));
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0 -8px 4px;
  padding: 4px 8px 8px;
  background: var(--p2-bg);
  box-shadow: 0 10px 10px -10px rgba(var(--p55-ink-rgb,13,27,34),.251);
}

.p2-selbar .p2-btn {
  min-height: 44px;
}

.p2-selbar__count {
  margin-right: auto;
  font-weight: 700;
  color: var(--p2-muted);
}

.p2-selbar__hint {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 16px;
  color: var(--p2-muted);
}

.p2-btn--danger {
  color: var(--p2-danger);
}

.p2-strip__head {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 44px;
}

.p2-strip__head .p2-strip__check {
  position: relative;
  top: auto;
  left: auto;
  flex: none;
}

.p2-strip__no {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 700 13px/1.2 var(--p2-sans);
  color: var(--p2-muted);
}

.p2-strip {
  position: relative;
}

.p2-side {
  position: fixed;
  left: 0;
  right: 0;
  bottom: var(--p55-cookie-h, 0px);
  z-index: 20;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  box-shadow: 0 -8px 28px -10px rgba(var(--p55-ink-rgb,13,27,34),.2);
  padding-bottom: env(safe-area-inset-bottom);
}

.p2-side .p2-tabs--side {
  order: 3;
}

.p2-scopebar {
  order: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 0 14px;
}

.p2-scope {
  flex: 1 1 auto;
  margin: 0;
  font-weight: 700;
  font-size: 13px;
  line-height: 18px;
  color: var(--p2-brand);
}

.p2-side__close {
  display: inline-grid;
}

.p2-panels--tools {
  order: 2;
  max-height: min(40vh, 330px);
}

.p2-side.is-open .p2-bar {
  display: none;
}

.p2-side .p2-bar {
  order: 4;
  position: static;
  margin: 0;
  padding: 10px 14px;
  border-top: 1px solid var(--p2-line);
  box-shadow: none;
}

.p2-side:not(.is-open) .p2-scopebar,
.p2-side:not(.is-open) .p2-panels--tools {
  display: none;
}

.p2-work {
  padding-bottom: calc(var(--p2-bar-h, 0px) + 12px);
}

@media (min-width: 992px) {
  .p2-work {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    padding-bottom: 0;
  }

  .p2-side {
    position: sticky;
    top: calc(var(--p55-hdr-top, 0px) + var(--p2-stick) + 12px);
    left: auto;
    right: auto;
    bottom: auto;
    z-index: 5;
    max-height: max(480px, calc(100vh - 200px - var(--p55-cookie-h, 0px)));
    overflow: hidden;
    border-radius: 18px;
    box-shadow: var(--p2-shadow);
    padding-bottom: 0;
  }

  .p2-side .p2-tabs--side {
    order: 0;
    border-top: 0;
    border-bottom: 1px solid var(--p2-line);
  }

  .p2-scopebar,
  .p2-side:not(.is-open) .p2-scopebar {
    display: flex;
    padding-top: 10px;
  }

  .p2-side__close {
    display: none;
  }

  .p2-panels--tools,
  .p2-side:not(.is-open) .p2-panels--tools {
    display: block;
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
  }

  .p2-side .p2-bar,
  .p2-side.is-open .p2-bar {
    display: block;
    flex: none;
  }

  .p2-side .p2-bar__inner {
    gap: 8px;
  }

  .p2-side .p2-chips {
    flex: 1 1 100%;
  }

  .p2-side .p2-chip {
    flex: 1 1 0;
    flex-direction: column;
    gap: 2px;
    padding: 4px 8px;
    border-radius: 16px;
  }

  .p2-side .p2-bar__sum {
    flex: 1 1 100%;
    text-align: left;
  }

  .p2-side .p2-bar .p2-btn {
    flex: 1 1 100%;
  }

  .p2-toasts {
    bottom: calc(20px + var(--p55-cookie-h, 0px));
  }
}

.p2-fxrow.is-mixed output,
.p2-slider.is-mixed output {
  color: var(--p2-muted);
  font-style: italic;
}

.p2-fxrow.is-mixed input[type="range"]::-webkit-slider-thumb,
.p2-slider.is-mixed input[type="range"]::-webkit-slider-thumb {
  background: #ffffff;
  border-color: var(--p2-muted);
}

.p2-fxrow.is-mixed input[type="range"]::-moz-range-thumb,
.p2-slider.is-mixed input[type="range"]::-moz-range-thumb {
  background: #ffffff;
  border-color: var(--p2-muted);
}

.p2-paper-sel {
  display: none;
}

.p2-tabs--ed {
  width: 100%;
}

@media (max-width: 991px) {
  .p2-side .p2-chips,
  .p2-side .p2-bar__tip,
  .p2-side .p2-bar__sum small {
    display: none;
  }

  .p2-side .p2-bar {
    padding: 6px 14px;
  }

  .p2-side .p2-bar__inner {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .p2-side .p2-bar__sum {
    order: 1;
    flex: 1 1 auto;
    font-size: 14px;
    line-height: 1.2;
  }

  .p2-side .p2-paper-sel {
    order: 2;
    display: block;
    flex: 0 1 132px;
    min-width: 0;
    height: 44px;
    padding: 0 8px;
    border: 1.5px solid var(--p2-line);
    border-radius: 12px;
    background: #ffffff;
    color: var(--p2-ink);
    font: 700 13px/1.2 var(--p2-sans);
  }

  .p2-side .p2-bar .p2-btn {
    order: 3;
    flex: none;
    min-height: 44px;
    padding: 0 14px;
  }

  .p2-side .p2-tab {
    min-height: 50px;
  }
}

@media (max-width: 899px) {
  .p2-tabs--ed {
    order: 2;
  }
}

@media (max-width: 400px) {
  .p2-side .p2-bar__sum {
    font-size: 12px;
  }

  .p2-side .p2-bar .p2-btn {
    padding: 0 12px;
  }

  .p2-side .p2-bar .p2-btn svg {
    display: none;
  }
}

@media (min-width: 900px) {
  .p2-tabs--ed {
    max-width: 860px;
    margin: 0 auto;
  }

  .p2-panels--frame {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: 12px 24px 16px;
  }

  .p2-panels--frame .p2-panel[data-panel="frame"] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 20px;
  }

  .p2-panels--frame .p2-panel[data-panel="frame"] .p2-row {
    margin: 0;
  }

  .p2-panels--frame .p2-panel[data-panel="frame"] .p2-slider {
    flex: 1 1 260px;
    min-width: 240px;
  }

  .p2-panels--frame .p2-rb {
    flex: 1 1 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 12px;
  }

  .p2-panels--frame .p2-rb .p2-sub {
    margin: 0;
  }

  .p2-panels--frame .p2-rb .p2-row {
    margin: 0;
  }

  .p2-ed .p2-filters {
    grid-auto-flow: column;
    grid-auto-columns: 84px;
    grid-template-columns: none;
    overflow-x: auto;
  }

  .p2-ed .p2-fx {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
  }
}

.p2-histbar {
  position: sticky;
  top: var(--p55-hdr-top, 0px);
  z-index: 7;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin: 0 -15px;
  padding: 4px 15px 6px;
  background: var(--p2-bg);
}

.p2-histbar.is-stuck::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: var(--p55-hdr-top, 0px);
  background: var(--p2-bg);
}

.p2-histbar__grp {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.p2-histbar [hidden] {
  display: none !important;
}

.p2-pv__box > .p2-help {
  width: 100%;
}

.p2-histbar .p2-btn {
  min-height: 44px;
}

.p2-viewsize {
  display: none;
  padding: 3px;
  border: 1.5px solid var(--p2-line);
  border-radius: 999px;
  background: #ffffff;
}

.p2-viewsize button {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--p2-muted);
  font: 700 13px/1 var(--p2-sans);
  cursor: pointer;
}

.p2-viewsize button[aria-checked="true"] {
  background: var(--p2-accent);
  color: #ffffff;
}

@media (max-width: 991px) {
  .p2 {
    --p2-stick: 0px;
  }

  .p2-histbar {
    position: static;
    margin: 0 0 10px;
    padding: 0;
    background: transparent;
  }

  .p2-histbar.is-stuck::before {
    content: none;
  }
}

@media (max-width: 767px) {
  .p2-histbar .p2-hb span,
  .p2-histbar [data-act="help"] span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .p2-histbar .p2-hb,
  .p2-histbar [data-act="help"] {
    width: 44px;
    padding: 0;
  }

  .p2-histbar [data-act="preview"] {
    padding: 0 12px;
    font-size: 13px;
  }

  .p2-selbar {
    gap: 6px;
    padding: 2px 8px 6px;
  }

  .p2-selbar .p2-btn--ghost {
    padding: 0 9px;
    font-size: 13px;
  }

  .p2-selbar #p2-selall svg {
    display: none;
  }

  .p2-selbar [data-act="sel-del"] {
    width: 44px;
    padding: 0;
  }

  .p2-selbar [data-act="sel-del"] span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .p2-selbar__count {
    font-size: 13px;
  }
}

@media (min-width: 768px) {
  .p2-viewsize {
    display: inline-flex;
  }

  .p2-grid.is-small {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
  }
}

.p2-card,
.p2-strip {
  scroll-margin-top: calc(var(--p2-stick) + var(--p2-sel-h, 0px) + 8px);
}

.p2-card {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.p2-card__more {
  top: auto;
  bottom: calc(19% - 7px);
  right: calc(8.33% - 7px);
}

.p2-card__more:hover::before {
  background: var(--p2-accent);
}

.p2-card.is-lifted {
  opacity: 0.3;
}

.p2-card.is-drop {
  outline: 3px solid var(--p2-accent);
  outline-offset: 2px;
}

.p2-grid.is-dragging,
.p2-grid.is-dragging .p2-card__open {
  cursor: grabbing;
}

.p2-ghost-drag--card {
  width: 90px;
  height: 108px;
  border: 0;
  border-radius: 2px;
}

.p2-card__cwarn {
  position: absolute;
  z-index: 2;
  left: calc(8.33% + 4px);
  bottom: calc(19% + 38px);
  max-width: calc(83.33% - 8px);
  min-height: 18px;
  padding: 0 7px;
  border: 0;
  border-radius: 999px;
  background: #fff3d6e6;
  color: var(--p2-warn);
  font: 800 10px/18px var(--p2-sans);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.p2-card__cwarn[hidden] {
  display: none;
}

.p2-card__cwarn--fix {
  pointer-events: auto;
  cursor: pointer;
}

.p2-card__cwarn--fix::after {
  content: "";
  position: absolute;
  inset: -8px;
}

.p2-card__cwarn--fix:hover {
  background: #ffe7a8;
}

.p2-menu {
  position: fixed;
  z-index: 100002;
  min-width: 190px;
  padding: 6px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 16px 40px -12px rgba(var(--p55-ink-rgb,13,27,34),.667), 0 0 0 1px var(--p2-line);
}

.p2-menu__item {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--p2-ink);
  font: 700 14px/1.2 var(--p2-sans);
  text-align: left;
  cursor: pointer;
}

.p2-menu__item:hover:not(:disabled),
.p2-menu__item:focus-visible {
  background: var(--p55-tint-949,#eef5f6);
}

.p2-menu__item:disabled {
  opacity: 0.4;
  cursor: default;
}

.p2-side[data-tab="help"] .p2-scope {
  visibility: hidden;
}

.p2-help {
  font: 500 14px/1.45 var(--p2-sans);
  color: var(--p2-ink);
}

.p2-help__h {
  margin: 16px 0 6px;
  font: 800 15px/1.3 var(--p2-sans);
}

.p2-help__h:first-child {
  margin-top: 4px;
}

.p2-help__list {
  margin: 0;
  padding-left: 20px;
}

.p2-help__list li {
  margin: 0 0 6px;
}

.p2-help__note {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--p2-muted);
}

.p2-help__desk,
.p2-help__touch {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .p2-help__desk {
    display: block;
  }
}

@media (hover: none), (pointer: coarse) {
  .p2-help__touch {
    display: block;
  }
}

.p2-help__keys {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 6px 12px;
  margin: 0;
  align-items: center;
}

.p2-help__keys dt {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  margin: 0;
}

.p2-help__keys dd {
  margin: 0;
}

.p2-help kbd {
  display: inline-block;
  min-width: 24px;
  padding: 2px 6px;
  border: 1px solid var(--p2-line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: #f7f5f0;
  color: #222222;
  box-shadow: none;
  font: 700 12px/1.3 var(--p2-sans);
  text-align: center;
  white-space: nowrap;
}

.p2-help__contact {
  margin: 0 0 8px;
}

.p2-pv {
  position: fixed;
  inset: 0;
  z-index: 99997;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.p2-pv[hidden] {
  display: none;
}

.p2-pv__back {
  position: absolute;
  inset: 0;
  background: rgba(var(--p55-ink-rgb,13,27,34),.702);
}

.p2-pv__box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: min(560px, 100%);
  max-height: 100%;
  padding: 14px 16px 16px;
  border-radius: 18px;
  background: #ffffff;
  overflow: auto;
}

.p2-pv__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  align-self: stretch;
}

.p2-pv__top h2 {
  margin: 0;
  font: 800 18px/1.2 var(--p2-sans);
}

.p2-pv__note {
  align-self: stretch;
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--p2-muted);
}

.p2-pv__note b {
  color: var(--p2-ink);
}

.p2-pv--wide .p2-pv__box {
  align-items: stretch;
  width: min(1080px, 100%);
  max-height: min(900px, 100%);
  overflow: hidden;
}

.p2-pv__list {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 18px 16px;
  align-content: start;
  padding: 16px;
  border-radius: 10px;
  background: #e9e6df;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.p2-pv__list--strips {
  grid-template-columns: repeat(auto-fit, 170px);
  justify-content: center;
}

.p2-pv__card {
  position: relative;
  margin: 0;
}

.p2-pv__card canvas {
  display: block;
  width: 100%;
  height: auto;
  background: #ffffff;
  box-shadow: 0 6px 18px -8px rgba(var(--p55-ink-rgb,13,27,34),.533);
}

.p2-pv__card.is-loading canvas {
  opacity: 0.55;
}

.p2-pv__card.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border: 3px solid rgba(255, 255, 255, .85);
  border-top-color: var(--p2-accent);
  border-radius: 50%;
  animation: p2-spin 0.9s linear infinite;
  pointer-events: none;
}

.p2-pv__qty {
  position: absolute;
  top: 8px;
  right: 8px;
  min-width: 30px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(var(--p55-ink-rgb,13,27,34),.851);
  color: #ffffff;
  text-align: center;
  font: 800 13px/1 var(--p2-sans);
}

.p2-pv__fail {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--p2-muted);
}

@media (max-width: 599px) {
  .p2-pv--wide .p2-pv__box {
    padding: 12px;
  }

  .p2-pv__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 12px;
    padding: 12px;
  }

  .p2-pv__list--strips {
    grid-template-columns: repeat(3, 1fr);
    justify-content: normal;
  }
}

.p2-card__check::before,
.p2-card__act::before,
.p2-strip__check::before {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.p2-card__act::before {
  background: #ffffffeb;
  box-shadow: 0 1px 4px rgba(var(--p55-ink-rgb,13,27,34),.251);
}

.p2-card__act {
  color: var(--p2-ink);
}

.p2-card__act svg,
.p2-card__check svg,
.p2-strip__check svg {
  width: 15px;
  height: 15px;
}

.p2-card__check::before,
.p2-strip__check::before {
  background: rgba(var(--p55-ink-rgb,13,27,34),.2);
  box-shadow: inset 0 0 0 2px #ffffff, 0 1px 4px rgba(var(--p55-ink-rgb,13,27,34),.251);
}

.p2-card__check[aria-checked="true"]::before,
.p2-strip__check[aria-checked="true"]::before {
  background: var(--p2-accent);
  box-shadow: inset 0 0 0 2px #ffffff, 0 1px 4px rgba(var(--p55-ink-rgb,13,27,34),.251);
}

.p2-card__rot {
  right: calc(8.33% + 25px);
}

.p2-card__zoom {
  top: calc(6.94% - 7px);
  right: calc(8.33% + 57px);
}

.p2-grid.is-small .p2-card__rot {
  right: calc(8.33% + 21px);
}

.p2-grid.is-small .p2-card__zoom {
  right: calc(8.33% + 49px);
}

.p2-card__del:hover::before {
  background: #ffffff;
  box-shadow: 0 0 0 2px var(--p2-danger), 0 1px 4px rgba(var(--p55-ink-rgb,13,27,34),.251);
}

.p2-card__del:hover {
  color: var(--p2-danger);
}

.p2-card__rot:hover::before,
.p2-card__zoom:hover::before,
.p2-card__more:hover::before {
  background: #ffffff;
  box-shadow: 0 0 0 2px var(--p2-accent), 0 1px 4px rgba(var(--p55-ink-rgb,13,27,34),.251);
}

.p2-card__rot:hover,
.p2-card__zoom:hover,
.p2-card__more:hover {
  color: var(--p2-accent);
}

.p2-card__act:active::before,
.p2-card__check:active::before,
.p2-strip__check:active::before {
  transform: scale(0.9);
}

@media (hover: hover) and (pointer: fine) {
  .p2-card__act,
  .p2-card__copies,
  .p2-card__check,
  .p2-card .p2-strip__check {
    opacity: 0;
    transform: translateY(-3px) scale(0.92);
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  .p2-card:hover .p2-card__act,
  .p2-card:focus-within .p2-card__act,
  .p2-card:hover .p2-card__copies,
  .p2-card:focus-within .p2-card__copies,
  .p2-card.is-multi .p2-card__copies,
  .p2-card:hover .p2-card__check,
  .p2-card:focus-within .p2-card__check,
  .p2-card.is-sel .p2-card__check,
  html.p2-has-sel .p2-card__check {
    opacity: 1;
    transform: none;
  }

  .p2-card:hover .p2-card__act {
    transition-delay: 0.04s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .p2-card__act,
  .p2-card__copies,
  .p2-card__check {
    transition: none;
  }
}

@media (min-width: 900px) {
  .p2-panel[data-panel="text"]:not([hidden]) {
    display: flex;
    flex-direction: column;
  }

  .p2-panel[data-panel="text"] > .p2-lead2 {
    order: 0;
  }

  .p2-panel[data-panel="text"] > .p2-sg[data-sg="text"] {
    order: 1;
  }

  .p2-panel[data-panel="text"] > .p2-sg[data-sg="look"] {
    order: 2;
  }

  .p2-panel[data-panel="text"] > .p2-sg[data-sg="place"] {
    order: 3;
  }

  .p2-panel[data-panel="text"] > .p2-sg[data-sg="font"] {
    order: 4;
  }

  .p2-panel[data-panel="text"] .p2-sub {
    margin: 6px 0 4px;
    font-size: 12px;
  }

  .p2-panel[data-panel="text"] .p2-sub--first {
    margin-top: 0;
  }

  .p2-panel[data-panel="text"] .p2-fonts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    padding-bottom: 4px;
  }

  .p2-panel[data-panel="text"] .p2-font {
    min-height: 40px;
    padding: 4px 6px;
    border-radius: 8px;
  }

  .p2-panel[data-panel="text"] .p2-font__s {
    font-size: 15px;
    -webkit-line-clamp: 1;
  }

  .p2-panel[data-panel="text"] .p2-font small {
    font-size: 10px;
    padding: 0 3px;
  }

  .p2-panel[data-panel="text"] .p2-swatches {
    gap: 6px;
  }

  .p2-panel[data-panel="text"] .p2-sw {
    width: 28px;
    height: 28px;
  }

  .p2-panel[data-panel="text"] .p2-sw[aria-checked="true"] {
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--p2-accent);
  }

  .p2-panel[data-panel="text"] .p2-sw--custom {
    width: auto;
    height: 28px;
    gap: 6px;
    padding: 0 10px 0 4px;
    font-size: 12px;
  }

  .p2-panel[data-panel="text"] .p2-sw--custom::before {
    width: 20px;
    height: 20px;
  }

  .p2-panel[data-panel="text"] .p2-opt {
    min-height: 32px;
    padding: 2px 6px;
    border-radius: 8px;
  }

  .p2-panel[data-panel="text"] .p2-opts--text .p2-opt {
    flex-direction: row;
    min-height: 34px;
    font-size: 11px;
  }

  .p2-panel[data-panel="text"] .p2-opt svg {
    width: 16px;
    height: 16px;
    flex: none;
  }

  .p2-panel[data-panel="text"] .p2-check {
    min-height: 32px;
    margin-top: 4px;
    font-size: 13px;
  }
}

.p2-card.is-loading .p2-card__open::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border: 3px solid rgba(255, 255, 255, .85);
  border-top-color: var(--p2-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
  animation: p2-spin 0.9s linear infinite;
  pointer-events: none;
}

@media (max-width: 991px) {
  .p2-scopebar {
    padding: 2px 4px 0 14px;
  }

  .p2-side__close {
    width: 40px;
    height: 40px;
  }

  .p2-panels--tools {
    padding: 6px 14px 4px;
  }

  .p2-panel[data-panel="border"] .p2-sub {
    margin: 6px 0 4px;
  }

  #p2-framecolors {
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 0;
    max-width: 460px;
  }

  #p2-framecolors .p2-sw {
    width: calc(100% - 6px);
    max-width: 38px;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  #p2-framecolors .p2-sw[aria-checked="true"] {
    box-shadow: 0 0 0 1.5px #ffffff, 0 0 0 3.5px var(--p2-accent);
  }

  #p2-framecolors .p2-sw::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
  }

  .p2-bgs {
    grid-auto-columns: 76px;
    gap: 6px;
    padding: 3px 3px 4px;
  }

  .p2-bg {
    height: 52px;
    border-radius: 12px;
  }

  .p2-bg i {
    height: 100%;
  }

  .p2-side .p2-tab {
    min-height: 46px;
  }

  html.p55-chrome.p55-chrome-editor.p2-hdr-auto.p2-hdr-move:not(#p55-x) body .p55-mbar {
    transition: transform 0.22s ease, visibility 0s;
  }

  html.p55-chrome.p55-chrome-editor.p2-hdr-auto.p2-hdr-away:not(.p55-chrome-hdr-off):not(#p55-x) body .p55-mbar {
    transform: translateY(-100%);
    visibility: hidden;
  }

  html.p55-chrome.p55-chrome-editor.p2-hdr-auto.p2-hdr-away.p2-hdr-move:not(.p55-chrome-hdr-off):not(#p55-x) body .p55-mbar {
    transition: transform 0.22s ease, visibility 0s 0.22s;
  }

  html.p55-chrome.p55-chrome-editor.p55-hdr-anim:not(#p55-x) body .p55-mbar {
    transition: none;
  }

  html.p2-hdr-away:not(.p55-chrome-hdr-off) .p2 {
    --p2-top: 0px;
  }

  .p2-selbar {
    transition: top 0.22s ease;
  }
}

@media (max-width: 991px) and (prefers-reduced-motion: reduce) {
  html.p55-chrome.p55-chrome-editor.p2-hdr-auto.p2-hdr-move:not(#p55-x) body .p55-mbar,
  html.p55-chrome.p55-chrome-editor.p2-hdr-auto.p2-hdr-away.p2-hdr-move:not(.p55-chrome-hdr-off):not(#p55-x) body .p55-mbar,
  .p2-selbar {
    transition: none;
  }
}

.p2-reset__short,
.p2-pv__short {
  display: none;
}

@media (max-width: 767px) {
  .p2-histbar__grp:first-child {
    display: contents;
  }

  .p2-histbar {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .p2-histbar__right {
    flex: 0 0 auto;
    flex-wrap: nowrap;
  }

  .p2-histbar .p2-reset {
    flex: 1 1 auto;
    justify-content: center;
    min-width: 44px;
    padding: 0 10px;
    font-size: 13px;
    line-height: 1.15;
  }

  .p2-histbar .p2-hb,
  .p2-histbar [data-act="help"] {
    flex: none;
  }

  .p2-reset__full,
  .p2-pv__full {
    display: none;
  }

  .p2-pv__short {
    display: inline;
  }
}

@media (min-width: 430px) and (max-width: 767px) {
  .p2-reset__short {
    display: inline;
  }
}

.p2-card__move,
.p2-slotmove {
  position: absolute;
  z-index: 3;
  left: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  transform: translate(-50%, -50%);
  border: 0;
  background: transparent;
  color: var(--p2-ink);
  cursor: grab;
  touch-action: none;
  pointer-events: auto;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0s 0.18s;
}

.p2-card__move {
  top: 43.98%;
}

.p2-slotmove {
  top: 50%;
}

.p2-card__move::before,
.p2-slotmove::before {
  content: "";
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffffc2;
  box-shadow: 0 1px 4px rgba(var(--p55-ink-rgb,13,27,34),.251);
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.p2-slotmove::before {
  width: 34px;
  height: 34px;
}

.p2-card__move svg,
.p2-slotmove svg {
  position: relative;
}

.p2-card__move:hover::before,
.p2-slotmove:hover::before,
.p2-card__move.is-drag::before,
.p2-slotmove.is-drag::before {
  background: #ffffff;
}

.p2-card__move:focus-visible::before,
.p2-slotmove:focus-visible::before,
.p2-card__move.is-drag::before,
.p2-slotmove.is-drag::before {
  box-shadow: 0 0 0 2px var(--p2-accent), 0 1px 4px rgba(var(--p55-ink-rgb,13,27,34),.251);
}

.p2-card__move.is-drag,
.p2-slotmove.is-drag {
  cursor: grabbing;
}

.p2-card.is-sel .p2-card__move,
.p2-strip.is-sel .p2-slotmove,
.p2-card__move.is-drag,
.p2-slotmove.is-drag {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

@media (hover: hover) and (pointer: fine) {
  .p2-card:hover .p2-card__move,
  .p2-card:focus-within .p2-card__move,
  .p2-strip:hover .p2-slotmove,
  .p2-strip:focus-within .p2-slotmove {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
  }
}

.p2-grid.is-dragging .p2-card__move,
.p2-board.is-dragging .p2-slotmove {
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .p2-card__move,
  .p2-slotmove,
  .p2-card__move::before,
  .p2-slotmove::before {
    transition: none;
  }
}

.p2-fieldwrap {
  position: relative;
}

.p2-fieldwrap .p2-textarea {
  padding-right: 52px;
}

.p2-emoji-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--p2-muted);
  cursor: pointer;
}

.p2-emoji-btn:hover,
.p2-emoji-btn[aria-expanded="true"] {
  background: var(--p2-soft);
  color: var(--p2-accent);
}

.p2-emoji-btn:focus-visible {
  outline: 2px solid var(--p2-accent);
  outline-offset: 2px;
}

.p2-fieldwrap__emo {
  position: absolute;
  right: 6px;
  top: 6px;
}

.p2-cap__emo {
  position: absolute;
  right: 4px;
  z-index: 4;
  width: 40px;
  height: 40px;
  background: #ffffff;
  box-shadow: 0 2px 8px -2px rgba(var(--p55-ink-rgb,13,27,34),.4), 0 0 0 1px var(--p2-line);
}

.p2-cap__emo--top {
  top: 4px;
}

.p2-cap__emo--bottom {
  bottom: 4px;
}

.p2-cap__emo--out {
  top: 100%;
  right: 50%;
  margin-top: 4px;
  transform: translateX(50%);
}

.p2-cap__emo[hidden] {
  display: none;
}

.p2-card.is-capediting .p2-card__check,
.p2-card.is-capediting .p2-card__act,
.p2-card.is-capediting .p2-card__copies,
.p2-card.is-capediting .p2-card__move,
.p2-strip.is-capediting .p2-strip__tools {
  visibility: hidden;
}

.p2-emoji {
  position: fixed;
  z-index: 100003;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  padding: 6px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 16px 40px -12px rgba(var(--p55-ink-rgb,13,27,34),.667), 0 0 0 1px var(--p2-line);
  overflow: hidden;
}

.p2-emoji img {
  display: block;
  pointer-events: none;
}

.p2-emoji__tabs {
  display: flex;
  flex: none;
  gap: 2px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--p2-line);
  overflow-x: auto;
}

.p2-emoji__tab {
  display: grid;
  place-items: center;
  flex: 1 0 40px;
  min-width: 40px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.p2-emoji__tab[aria-selected="true"] {
  background: var(--p55-surface-93,#e3f2f4);
  box-shadow: inset 0 -2px 0 var(--p2-accent);
}

.p2-emoji__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
  flex: 1 1 auto;
  gap: 2px;
  min-height: 0;
  padding-top: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.p2-emoji__item {
  display: grid;
  place-items: center;
  width: 100%;
  min-width: 40px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.p2-emoji__item:hover,
.p2-emoji__item:focus-visible,
.p2-emoji__tab:hover {
  background: var(--p55-tint-949,#eef5f6);
}
