@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url("/static/fonts/fredoka-latin-wght-normal.woff2") format("woff2-variations");
  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: "Fredoka";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url("/static/fonts/fredoka-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url("/static/fonts/nunito-latin-wght-normal.woff2") format("woff2-variations");
  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: "Nunito";
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url("/static/fonts/nunito-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --primary: #4a78d6;
  --on-primary: #fff;
  --surface: #f2e6d0;
  --ink: #5a3a24;
  --accent: #8e1f35;
  --on-accent: #fff;
  --page: #eef3fb;

  --card: color-mix(in srgb, var(--surface) 45%, white);
  --line: color-mix(in srgb, var(--ink) 18%, transparent);
  --muted: color-mix(in srgb, var(--ink) 70%, var(--page));
  --primary-soft: color-mix(in srgb, var(--primary) 14%, white);
  --accent-soft: color-mix(in srgb, var(--accent) 10%, white);
  --shadow:
    0 2px 0 color-mix(in srgb, var(--ink) 12%, transparent),
    0 10px 24px -12px color-mix(in srgb, var(--ink) 35%, transparent);
  --radius: 22px;
  --radius-small: 12px;
  --heading: "Fredoka", "Nunito", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--page);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
}

:root {
  --mx: 0;
  --my: 0;
  --page-scroll: 0;
  --hero-scroll: 0;
}
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
  will-change: translate;
}
body::before {
  --depth: 12;
  --drift: 180;
  top: -18rem;
  left: calc(10vw - 18rem);
  width: 36rem;
  height: 36rem;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
}
body::after {
  --depth: 22;
  --drift: 340;
  top: calc(30vh - 14rem);
  left: calc(95vw - 14rem);
  width: 28rem;
  height: 28rem;
  background: color-mix(in srgb, var(--primary) 8%, transparent);
}
@media (prefers-reduced-motion: no-preference) {
  body::before,
  body::after {
    translate: calc(var(--mx) * var(--depth) * -1px)
      calc(var(--my) * var(--depth) * -1px - var(--page-scroll) * var(--drift) * 1px);
  }
}

main {
  flex: 1;
  width: min(1120px, 100% - 2rem);
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

body.admin main {
  width: min(1400px, 100% - 2rem);
}

h1,
h2,
h3 {
  font-family: var(--heading);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.6em;
}
h1 {
  font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem);
}
h2 {
  font-size: 1.35rem;
}
h3 {
  font-size: 1.15rem;
}
p {
  margin: 0 0 0.8em;
}
a {
  color: color-mix(in srgb, var(--primary) 80%, var(--ink));
  text-underline-offset: 0.18em;
}
a:hover {
  color: var(--primary);
}
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 6px;
}
img,
video {
  max-width: 100%;
  height: auto;
}
[hidden] {
  display: none !important;
}

.lead {
  font-size: 1.15rem;
  max-width: 46rem;
}
.hint,
small {
  color: var(--muted);
  font-size: 0.9rem;
}
.pre {
  white-space: pre-wrap;
}
.plain {
  list-style: none;
  padding: 0;
  margin: 0;
}
.plain li + li {
  margin-top: 0.35rem;
}
.zones {
  display: grid;
  gap: 0.6rem;
  margin: 0 0 1rem;
}
.zones > div {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.8rem;
  align-items: baseline;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
}
.zones dt {
  font-family: var(--heading);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.zones dd {
  margin: 0;
  min-width: 0;
}

header.site {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  width: min(1120px, 100% - 2rem);
  margin: 0 auto;
  padding: 1rem 0 0.5rem;
}
body.admin header.site {
  width: min(1400px, 100% - 2rem);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--heading);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.logo {
  width: 2.6rem;
  height: 2.6rem;
  object-fit: contain;
  transition: transform 0.25s ease;
}
.brand:hover .logo {
  transform: rotate(-12deg) scale(1.05);
}
header.site nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1rem;
}
header.site nav a:not(.button) {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  padding: 0.25rem 0;
  border-bottom: 3px solid transparent;
}
header.site nav a[aria-current="page"]:not(.button) {
  border-bottom-color: var(--primary);
}
header.site nav a.lang {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.7rem;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-weight: 700;
  color: var(--ink);
}
header.site nav a.lang:hover {
  border-color: var(--primary);
}
.flag {
  width: 1.35rem;
  height: 0.9rem;
  border-radius: 3px;
  box-shadow: 0 0 0 1px var(--line);
}
.phone-nav {
  display: none;
}
.phone-menu {
  position: relative;
}
.phone-menu > summary {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  margin: 0;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  list-style: none;
}
.phone-menu > summary::-webkit-details-marker {
  display: none;
}
.phone-menu[open] > summary {
  border-color: var(--primary);
}
.burger {
  display: grid;
  gap: 4px;
}
.burger i {
  display: block;
  width: 18px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
}
header.site .phone-menu nav {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 20;
  flex-direction: column;
  align-items: stretch;
  gap: 0.15rem;
  min-width: 13rem;
  padding: 0.6rem;
  background: var(--card);
  border: 3px solid white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
header.site .phone-menu nav a:not(.button, .lang) {
  padding: 0.5rem 0.7rem;
  border-bottom: 0;
  border-radius: var(--radius-small);
}
header.site .phone-menu nav a[aria-current="page"]:not(.button) {
  background: var(--primary-soft);
}
header.site .phone-menu nav a.lang {
  align-self: flex-start;
  margin: 0.4rem 0 0.2rem 0.4rem;
}
@media (max-width: 720px) {
  header.site {
    flex-wrap: nowrap;
    gap: 0.6rem;
  }
  .brand {
    min-width: 0;
    gap: 0.45rem;
    font-size: 1.1rem;
  }
  .brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .logo {
    flex: none;
    width: 2.2rem;
    height: 2.2rem;
  }
  header.site .site-nav {
    display: none;
  }
  .phone-nav {
    display: flex;
    flex: none;
    align-items: center;
    gap: 0.5rem;
  }
  .phone-nav > .button {
    padding: 0.4rem 0.9rem;
    font-size: 0.95rem;
  }
}
@media (max-width: 380px) {
  header.site {
    gap: 0.45rem;
  }
  .brand {
    font-size: 1rem;
  }
  .logo {
    width: 1.9rem;
    height: 1.9rem;
  }
  .phone-nav {
    gap: 0.4rem;
  }
  .phone-nav > .button {
    padding: 0.35rem 0.7rem;
    font-size: 0.9rem;
  }
  .phone-menu > summary {
    width: 2.4rem;
    height: 2.4rem;
  }
}

.admin-nav,
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  width: min(1400px, 100% - 2rem);
  margin: 0.5rem auto 0;
}
.tabs {
  width: auto;
  margin: 0 0 1rem;
}
.admin-nav a,
.tabs a {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: var(--card);
  border: 2px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}
.admin-nav a[aria-current],
.tabs a[aria-current] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--page);
}
.count {
  display: inline-block;
  min-width: 1.5em;
  padding: 0 0.4em;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--ink);
  font-size: 0.85em;
  text-align: center;
}

footer.site {
  padding: 1.5rem 1rem 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}
.paw-trail {
  display: block;
  width: 15rem;
  margin: 0 auto 1rem;
  fill: color-mix(in srgb, var(--primary) 45%, var(--page));
}
footer.site a {
  color: inherit;
}
form.inline {
  display: inline;
}

.button,
button {
  font: inherit;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.25rem;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 3px 0 color-mix(in srgb, var(--primary) 60%, var(--ink));
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease;
}
.button:hover {
  color: var(--on-primary);
  transform: translateY(-1px) rotate(-0.6deg);
}
.button:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--primary) 60%, var(--ink));
}
.button.cta {
  box-shadow: 0 4px 0 color-mix(in srgb, var(--primary) 50%, black);
}
.button.secondary {
  background: var(--card);
  color: var(--ink);
  border: 2px solid var(--line);
  box-shadow: 0 3px 0 var(--line);
}
.button.secondary:hover {
  color: var(--ink);
}
.button.danger {
  background: #b3261e;
  color: white;
  box-shadow: 0 3px 0 #6d1712;
}
.button.telegram {
  background: #2aabee;
  color: white;
  box-shadow: 0 3px 0 #1b7fb4;
}
.button.big {
  padding: 0.85rem 1.7rem;
  font-size: 1.1rem;
}
button.link {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.card {
  background: var(--card);
  border: 3px solid white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.4rem;
  margin: 0 0 1.25rem;
}
.card > :last-child {
  margin-bottom: 0;
}
.card.narrow {
  max-width: 34rem;
  margin-inline: auto;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.stack > * {
  margin: 0;
}
.row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.75rem 1rem;
}
.row > label {
  flex: 1 1 12rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 0 1.25rem;
}

.notice {
  border-radius: var(--radius-small);
  padding: 0.75rem 1rem;
  margin: 0 0 1rem;
  background: var(--primary-soft);
  border: 2px solid color-mix(in srgb, var(--primary) 35%, white);
}
.notice.bot-access {
  border-width: 3px;
  border-color: var(--primary);
}
.notice.bot-access p,
.notice.bot-access h2 {
  margin: 0 0 0.5rem;
}
.notice.bot-access > :last-child {
  margin-bottom: 0;
}
.notice.error {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 40%, white);
}
.notice ul {
  margin: 0;
  padding-left: 1.2rem;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-weight: 700;
}
label small {
  font-weight: 400;
}
input,
select,
textarea {
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  background: white;
  border: 2px solid var(--line);
  border-radius: var(--radius-small);
  padding: 0.55rem 0.75rem;
  width: 100%;
}
input[type="checkbox"],
input[type="radio"] {
  width: 1.2rem;
  height: 1.2rem;
  accent-color: var(--primary);
  flex: none;
}
input[type="file"] {
  padding: 0.45rem;
  background: var(--page);
  border-style: dashed;
}
input[type="color"] {
  width: 3rem;
  height: 2.4rem;
  padding: 0.15rem;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 25%, transparent);
}
input:user-invalid {
  border-color: var(--accent);
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
legend {
  font-family: var(--heading);
  font-weight: 600;
  font-size: 1.2rem;
  padding: 0;
  margin-bottom: 0.6rem;
}
label.check {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 600;
}
label.check input {
  margin-top: 0.2rem;
}
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-bottom: 0.75rem;
}
.choices label {
  flex-direction: row;
  align-items: center;
  gap: 0.45rem;
}
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.size-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.size-field > label {
  font-weight: 700;
}
.custom-size {
  display: none;
}
.size-field:has(option[value="custom"]:checked) .custom-size {
  display: flex;
}
@supports not selector(:has(*)) {
  .custom-size {
    display: flex;
  }
}

.delivery:has(input[value="pickup"]:checked) .ship-only,
.delivery:has(input[value="ship"]:checked) .con-only {
  display: none;
}

.materials {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 0.75rem;
}
.materials legend {
  grid-column: 1 / -1;
}
.material {
  position: relative;
  gap: 0.15rem;
  padding: 0.8rem 0.9rem 0.8rem 2.6rem;
  border-radius: var(--radius-small);
  border: 2px solid var(--line);
  background: white;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.material:hover {
  transform: rotate(-1deg);
}
.material input {
  position: absolute;
  left: 0.85rem;
  top: 1rem;
}
.material:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.material-holo {
  background-image: linear-gradient(120deg, #fff 0%, #ffe6f6 25%, #e3f2ff 50%, #e9ffe9 75%, #fff 100%);
}
.material-glow .material-name::after {
  content: " ✦";
  color: #7bc96f;
}

.order-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 24rem);
  gap: 1.25rem;
  align-items: start;
}
.order-main > .card {
  margin: 0;
}
.order-side {
  position: sticky;
  top: 1rem;
}
.price-bar {
  display: none;
}
@media (max-width: 860px) {
  .order-form {
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: 5rem;
  }
  .order-side {
    position: static;
    scroll-margin-top: 1rem;
  }
  .price-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem max(1rem, env(safe-area-inset-right)) calc(0.7rem + env(safe-area-inset-bottom))
      max(1rem, env(safe-area-inset-left));
    background: var(--card);
    border-top: 3px solid white;
    box-shadow: 0 -10px 24px -14px color-mix(in srgb, var(--ink) 45%, transparent);
    transition:
      translate 0.25s ease,
      visibility 0s;
  }
  .price-bar.away {
    translate: 0 110%;
    visibility: hidden;
    transition:
      translate 0.25s ease,
      visibility 0s 0.25s;
  }
  .price-bar p {
    display: grid;
    margin: 0;
    line-height: 1.2;
  }
  .price-bar small {
    color: var(--muted);
    font-size: 0.8rem;
  }
  .price-bar strong {
    font-family: var(--heading);
    font-size: 1.3rem;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
  }
}
@media (max-width: 860px) and (prefers-reduced-motion: reduce) {
  .price-bar,
  .price-bar.away {
    transition: none;
  }
}
.designs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  counter-reset: design;
}
.design {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(6rem, 0.6fr) minmax(0, 1.2fr);
  grid-template-areas: "title title remove" "file file file" "preview preview preview" "size qty material" "artist artist artist" "remark remark remark";
  gap: 0.5rem 0.75rem;
  padding: 0.9rem;
  border-radius: var(--radius-small);
  background: white;
  border: 2px dashed color-mix(in srgb, var(--primary) 45%, white);
}
.design-title {
  grid-area: title;
  font-family: var(--heading);
  font-weight: 600;
}
.design-file {
  grid-area: file;
}
.design-qty {
  grid-area: qty;
}
.design-size {
  grid-area: size;
}
.design-material {
  grid-area: material;
}
.design-artist {
  grid-area: artist;
}
.design-remark {
  grid-area: remark;
}
.sticker-preview {
  grid-area: preview;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.sticker-preview canvas {
  flex: none;
  width: 9rem;
  height: 9rem;
  border-radius: var(--radius-small);
  background-color: color-mix(in srgb, var(--primary) 10%, white);
  background-image:
    linear-gradient(
      45deg,
      color-mix(in srgb, var(--primary) 18%, white) 25%,
      transparent 25%,
      transparent 75%,
      color-mix(in srgb, var(--primary) 18%, white) 75%
    ),
    linear-gradient(
      45deg,
      color-mix(in srgb, var(--primary) 18%, white) 25%,
      transparent 25%,
      transparent 75%,
      color-mix(in srgb, var(--primary) 18%, white) 75%
    );
  background-position:
    0 0,
    8px 8px;
  background-size: 16px 16px;
}
.preview-note {
  margin: 0;
  font-size: 0.88rem;
}
.preview-note.warn {
  color: var(--accent);
}
.remove-design,
.remove-poster {
  grid-area: remove;
  justify-self: end;
  color: var(--accent);
}
@media (max-width: 560px) {
  .design {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "title remove" "file file" "preview preview" "size size" "qty material" "artist artist" "remark remark";
  }
}
.add-design {
  align-self: flex-start;
}
.packs {
  padding: 1rem;
  border-radius: var(--radius-small);
  background: white;
  border: 2px solid #2aabee;
}
.packs h3 {
  margin: 0;
}
.packs p {
  margin: 0;
}
.packs > .button,
.packs .row .button {
  align-self: flex-start;
}
.pack-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.pack-tabs a {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 2px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
}
.pack-tabs a[aria-current] {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
}
.pack-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(4.5rem, 1fr));
  gap: 0.5rem;
}
.pack-sticker label {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: var(--radius-small);
  border: 3px solid var(--line);
  background: white;
  cursor: pointer;
}
.pack-sticker input {
  position: absolute;
  top: 0.3rem;
  right: 0.3rem;
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  accent-color: var(--primary);
}
.pack-sticker img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}
.pack-sticker label:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.pack-sticker label:has(input:focus-visible) {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}
.pack-sticker.unprintable {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: var(--radius-small);
  background: color-mix(in srgb, var(--surface) 60%, white);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}
.pack-sticker[hidden] {
  display: none;
}
.pack-more {
  align-self: center;
}
.pack-add summary {
  cursor: pointer;
  font-weight: 700;
}
.pack-add[open] {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.pack-link label {
  flex: 1;
  min-width: 12rem;
}
.pack-link .button {
  align-self: flex-end;
}
.tg-source {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.tg-source img {
  flex: none;
  width: 3.5rem;
  height: 3.5rem;
  object-fit: contain;
}
.product-section {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.poster {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas: "title title remove" "file file file" "check check check" "size w h" "qty material finish";
}
.poster-check {
  grid-area: check;
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-small);
  background: var(--primary-soft);
  font-size: 0.88rem;
}
.poster-check.warn {
  background: var(--accent-soft);
  color: var(--accent);
}
.poster-size {
  grid-area: size;
}
.poster-w {
  grid-area: w;
}
.poster-h {
  grid-area: h;
}
.design-finish {
  grid-area: finish;
}
@media (max-width: 560px) {
  .poster {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "title remove" "file file" "check check" "size size" "w h" "qty material" "finish finish";
  }
}
.disclaimer {
  border-color: color-mix(in srgb, var(--primary) 30%, white);
}
.disclaimer .button {
  width: 100%;
  margin-top: 0.75rem;
}

.quote dl {
  margin: 0;
}
.quote dl > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px dashed var(--line);
}
.quote dt small {
  display: block;
}
.quote dd {
  margin: 0;
  font-weight: 800;
  white-space: nowrap;
}
.quote .total {
  border-bottom: 0;
  font-size: 1.25rem;
  font-family: var(--heading);
}
.quote .total dd {
  color: color-mix(in srgb, var(--primary) 80%, var(--ink));
}
.quote .hint {
  margin-top: 0.6rem;
}
.quote-errors {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--accent);
  font-weight: 700;
}
.final-price {
  margin-top: 0.75rem;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-small);
  background: var(--primary-soft);
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 0.75rem;
}
table {
  border-collapse: collapse;
  width: 100%;
}
th,
td {
  padding: 0.45rem 0.6rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
thead th {
  font-family: var(--heading);
  font-weight: 600;
}
table.prices td,
table.prices thead th:not(:first-child) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
table.prices th small {
  display: block;
  color: var(--muted);
  font-family: var(--body);
  font-size: 0.8rem;
  font-weight: 400;
}
table.prices td.at-minimum {
  color: var(--muted);
}
table.prices tbody tr:nth-child(odd) {
  background: color-mix(in srgb, var(--surface) 35%, transparent);
}
table.edit input {
  width: 6rem;
  text-align: right;
  padding: 0.3rem 0.45rem;
}
table.materials-edit input:not([type="checkbox"], [type="radio"]) {
  min-width: 7rem;
  padding: 0.3rem 0.45rem;
}
.calculator .calc-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}
.calculator .calc-form > .button {
  align-self: flex-start;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  margin: 1rem 0 2.5rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 1.4rem + 3.5vw, 3.6rem);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.hero-art {
  position: relative;
  aspect-ratio: 1;
  max-width: 22rem;
  justify-self: center;
  width: 100%;
}
.hero-art :is(.blob, .paw-ring, .hero-image) {
  --dx: calc(var(--mx) * var(--depth) * -1px);
  --dy: calc((var(--hero-scroll) * 1.5 - var(--my)) * var(--depth) * 1px);
}
.blob {
  position: absolute;
  border: 6px solid white;
  box-shadow: var(--shadow);
}
.blob.one {
  --depth: 8;
  inset: 8% 22% 30% 4%;
  border-radius: 46% 54% 40% 60% / 55% 40% 60% 45%;
  background: var(--primary);
  transform: translate(var(--dx), var(--dy)) rotate(-8deg);
}
.blob.two {
  --depth: 20;
  inset: 42% 4% 6% 36%;
  border-radius: 50%;
  background: color-mix(in srgb, var(--primary) 45%, white);
  transform: translate(var(--dx), var(--dy)) rotate(10deg);
}
.blob.three {
  --depth: 14;
  inset: 2% 6% 62% 58%;
  border-radius: 30% 70% 60% 40% / 50% 50% 50% 50%;
  background: var(--surface);
  transform: translate(var(--dx), var(--dy)) rotate(14deg);
}
.paw-ring {
  --depth: 14;
  position: absolute;
  inset: -26px;
  width: calc(100% + 52px);
  height: calc(100% + 52px);
  fill: color-mix(in srgb, var(--ink) 50%, transparent);
  translate: var(--dx) var(--dy);
}
.hero-image {
  --depth: 40;
  position: absolute;
  inset: 4%;
  width: 92%;
  height: 92%;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px color-mix(in srgb, var(--ink) 30%, transparent));
  translate: var(--dx) var(--dy);
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}
.facts li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  background: var(--card);
  border: 2px solid white;
  box-shadow: 0 2px 0 var(--line);
  font-size: 0.88rem;
  font-weight: 700;
}
.facts svg {
  flex: none;
  width: 1rem;
  height: 1rem;
  fill: var(--primary);
}
.hero-art.pile {
  max-width: 24rem;
}
.pile > * {
  --dx: calc(var(--mx) * var(--depth) * -1px);
  --dy: calc((var(--hero-scroll) * 1.5 - var(--my)) * var(--depth) * 1px);
  position: absolute;
  translate: var(--dx) var(--dy);
}
.hero-photo {
  padding: 7px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius) - 7px);
}
.hero-photo.p1 {
  --depth: 10;
  width: 46%;
  aspect-ratio: 3 / 4;
  left: 2%;
  top: 8%;
  rotate: -8deg;
}
.hero-photo.p2 {
  --depth: 18;
  width: 52%;
  aspect-ratio: 4 / 3;
  right: 0;
  top: 0;
  rotate: 6deg;
}
.hero-photo.p3 {
  --depth: 26;
  width: 40%;
  aspect-ratio: 3 / 4;
  right: 8%;
  bottom: 0;
  rotate: -3deg;
}
.hero-face {
  --depth: 40;
  width: 30%;
  left: 36%;
  top: 44%;
  rotate: 9deg;
  filter: drop-shadow(2.5px 0 0 white) drop-shadow(-2.5px 0 0 white) drop-shadow(0 2.5px 0 white)
    drop-shadow(0 -2.5px 0 white) drop-shadow(0 8px 10px color-mix(in srgb, var(--ink) 35%, transparent));
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .hero-photo,
  .hero-face {
    transition: rotate 0.35s ease;
  }
  .pile:hover .p1 {
    rotate: -12deg;
  }
  .pile:hover .p2 {
    rotate: 10deg;
  }
  .pile:hover .p3 {
    rotate: 2deg;
  }
  .pile:hover .hero-face {
    rotate: 2deg;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .blob {
    animation: wobble 7s ease-in-out infinite alternate;
  }
  .blob.two {
    animation-delay: -2s;
  }
  .blob.three {
    animation-delay: -4s;
  }
  .paw-ring use {
    animation: lift 5.4s ease-in-out infinite;
  }
  .paw-ring use:nth-child(2) {
    animation-delay: 0.6s;
  }
  .paw-ring use:nth-child(3) {
    animation-delay: 1.2s;
  }
  .paw-ring use:nth-child(4) {
    animation-delay: 1.8s;
  }
  .paw-ring use:nth-child(5) {
    animation-delay: 2.4s;
  }
  .paw-ring use:nth-child(6) {
    animation-delay: 3s;
  }
  .paw-ring use:nth-child(7) {
    animation-delay: 3.6s;
  }
  .paw-ring use:nth-child(8) {
    animation-delay: 4.2s;
  }
  .paw-ring use:nth-child(9) {
    animation-delay: 4.8s;
  }
}
@keyframes wobble {
  to {
    translate: 0 -8px;
    rotate: 4deg;
  }
}
@keyframes lift {
  0%,
  60%,
  100% {
    opacity: 1;
  }
  74%,
  84% {
    opacity: 0.08;
  }
}
@media (max-width: 720px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-art {
    max-width: 12rem;
    order: -1;
  }
  .hero-art.pile {
    max-width: 13rem;
  }
}

.gallery {
  margin-bottom: 2.5rem;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.chip {
  padding: 0.3rem 0.95rem;
  border-radius: 999px;
  background: white;
  border: 2px solid var(--line);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  text-transform: capitalize;
}
.chip[aria-current] {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
}
.carousel {
  position: relative;
}
.track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0.25rem 1.25rem;
  scrollbar-width: thin;
}
.slide {
  flex: 0 0 min(85%, 420px);
  scroll-snap-align: start;
  margin: 0;
  background: white;
  border-radius: var(--radius);
  padding: 0.6rem;
  box-shadow: var(--shadow);
}
.slide:nth-child(even) {
  rotate: 0.8deg;
}
.slide:nth-child(odd) {
  rotate: -0.6deg;
}
.slide img,
.slide video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: calc(var(--radius) - 8px);
  background: var(--surface);
}
.slide figcaption {
  padding: 0.5rem 0.3rem 0.1rem;
  font-weight: 600;
}
.carousel-button {
  position: absolute;
  top: calc(50% - 1.6rem);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 3px solid white;
  background: var(--ink);
  color: var(--page);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.carousel-button:disabled {
  opacity: 0.3;
  cursor: default;
}
.carousel-button.prev {
  left: -0.5rem;
}
.carousel-button.next {
  right: -0.5rem;
}
@media (hover: none) {
  .carousel-button {
    display: none;
  }
}

.steps-cards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
}
.faq {
  margin-top: 2.5rem;
}
.faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: 52rem;
}
.faq-list details.card {
  margin: 0;
  padding: 0;
}
.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 0;
  padding: 0.9rem 1.4rem;
  font-family: var(--heading);
  font-weight: 600;
  list-style: none;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 1.25rem;
  line-height: 1;
}
.faq-list details[open] summary::after {
  rotate: 45deg;
}
.faq-list details p {
  margin: 0 1.4rem 1rem;
}
.content-rule {
  border-left: 6px solid var(--primary);
}
.card.content-rule {
  margin-top: 2.5rem;
}
p.content-rule {
  margin: 0;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-small);
  background: var(--primary-soft);
}
.content-rule h2 {
  margin-top: 0;
}
.lost {
  text-align: center;
}
.lost-image {
  display: block;
  width: 10rem;
  height: 10rem;
  margin: 0 auto 1rem;
  object-fit: contain;
}
.lost-trail {
  width: 11rem;
  transform: rotate(-12deg);
}
.steps-cards .card {
  position: relative;
  margin: 0;
  padding-top: 2rem;
}
.step-number {
  position: absolute;
  top: -0.9rem;
  left: 1.2rem;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  font-family: var(--heading);
  font-weight: 700;
  border: 3px solid white;
  rotate: -8deg;
}

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
.steps li {
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: white;
  border: 2px solid var(--line);
  color: var(--muted);
  font-weight: 700;
}
.steps li.past {
  background: var(--primary-soft);
  color: var(--ink);
}
.steps li.current {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
}
.items {
  padding-left: 1.3rem;
  margin: 0;
}
.items li {
  margin-bottom: 0.5rem;
}
.items li span {
  display: block;
  color: var(--muted);
}
.message {
  padding: 0.6rem 0.8rem;
  border-left: 4px solid var(--primary);
  background: white;
  border-radius: 0 var(--radius-small) var(--radius-small) 0;
  margin-bottom: 0.6rem;
}
.message p {
  margin: 0.2rem 0 0;
  white-space: pre-wrap;
}

.badge {
  display: inline-block;
  padding: 0.1rem 0.65rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
  font-family: var(--body);
  vertical-align: middle;
  background: var(--primary-soft);
  color: var(--ink);
}
.status-new {
  background: var(--primary);
  color: var(--on-primary);
}
.status-completed {
  background: #dcefdc;
}
.status-cancelled {
  background: #eee;
  color: #666;
}
.prepress-done {
  background: #dcefdc;
}
.prepress-manual,
.prepress-failed {
  background: var(--accent-soft);
  color: var(--accent);
}

.admin-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.admin-items > li {
  background: white;
  border-radius: var(--radius-small);
  padding: 0.9rem 1rem;
  border: 2px solid var(--line);
}
.item-top {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.5rem;
}
.item-head {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
}
.item-thumb {
  flex: none;
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  object-fit: contain;
  border-radius: var(--radius-small);
  border: 2px solid var(--line);
  background: repeating-conic-gradient(#e6e6e6 0% 25%, white 0% 50%) 50% / 12px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}
.job .item-thumb {
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 0.3rem;
}
.job-remark {
  font-weight: 700;
}
.item-files {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}
.step {
  font: inherit;
  font-size: 0.9rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  border: 2px dashed var(--line);
  background: white;
  color: var(--ink);
  cursor: pointer;
}
.step::before {
  content: "○ ";
}
.step.done {
  background: #dcefdc;
  border: 2px solid #9fcf9f;
}
.step.done::before {
  content: "✓ ";
}
.admin-items > li:target,
.job:target {
  border-color: var(--primary);
}
.board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.9rem;
  align-items: start;
  margin-bottom: 1.5rem;
}
.board-column {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius-small);
  padding: 0.75rem;
}
.board-column h2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  margin: 0 0 0.6rem;
}
.jobs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.job {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.6rem 0.75rem;
  background: white;
  border: 2px solid var(--line);
  border-radius: var(--radius-small);
  overflow-wrap: anywhere;
}
.job .badge {
  font-size: 0.75rem;
}
.job .due {
  font-weight: 700;
}
.job .button {
  width: 100%;
  margin-top: 0.4rem;
}
.steps-editor summary {
  cursor: pointer;
  font-family: var(--heading);
  font-weight: 600;
  font-size: 1.2rem;
}
.report {
  margin: 0 0 0.6rem;
  padding-left: 1.2rem;
}
.report .warn {
  color: var(--accent);
  font-weight: 700;
}
.history {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 22rem;
  overflow-y: auto;
}
.history li {
  padding: 0.35rem 0;
  border-bottom: 1px dashed var(--line);
}
.history small {
  display: block;
}
.danger-zone {
  border-color: #f3d2cf;
}
.colors {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}
label.color {
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
}
.media-admin {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: 1rem;
}
.media-admin .card {
  margin: 0;
}
.media-admin img,
.media-admin video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-small);
  margin-bottom: 0.75rem;
}

.picture-slots {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1rem;
}
.picture-slots .card {
  margin: 0;
}
.picture-slots h3 {
  margin: 0;
}
.picture-preview {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.picture-preview img {
  width: 6rem;
  height: 6rem;
  object-fit: contain;
  border-radius: var(--radius-small);
  background: var(--page);
}
.step-edit h3 {
  margin: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
details > summary {
  cursor: pointer;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.stars {
  color: #e0a419;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.stars-off {
  color: var(--line);
}
.review-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.6rem;
  font-size: 1.2rem;
}
.review-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
  gap: 0 1.25rem;
  align-items: start;
}
.review-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.6rem;
  margin-bottom: 0.5rem;
}
.review-head .stars {
  font-size: 1.15rem;
}
.review-photo img {
  display: block;
  width: 100%;
  max-width: 16rem;
  height: auto;
  border-radius: var(--radius-small);
  margin-bottom: 0.75rem;
}
.review-reply {
  padding: 0.6rem 0.8rem;
  border-left: 4px solid var(--primary);
  background: white;
  border-radius: 0 var(--radius-small) var(--radius-small) 0;
  margin-bottom: 0.75rem;
}
.review-reply p {
  margin: 0.2rem 0 0;
}
.verified,
.review-published {
  background: #dcefdc;
}
.review-rejected {
  background: var(--accent-soft);
  color: var(--accent);
}
.star-choices {
  position: relative;
  display: inline-flex;
  flex-direction: row-reverse;
}
.star-choices input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.star-choices label {
  font-size: 2.2rem;
  line-height: 1;
  padding: 0 0.1rem;
  color: var(--line);
  cursor: pointer;
}
.star-choices input:checked ~ label,
.star-choices label:hover,
.star-choices label:hover ~ label {
  color: #e0a419;
}
.star-choices input:focus-visible + label {
  outline: 3px solid color-mix(in srgb, var(--primary) 50%, transparent);
  border-radius: 6px;
}

.prose {
  max-width: 48rem;
}
.prose h2 {
  margin-top: 1.2rem;
}
.price-note {
  margin-bottom: 0.4rem;
}
.mini-app-start {
  text-align: center;
}

body.mini-app header.site {
  padding-top: 0.5rem;
}
body.mini-app .brand {
  font-size: 1.15rem;
}
body.mini-app .logo {
  width: 2rem;
  height: 2rem;
}

@media print {
  header.site,
  footer.site,
  .admin-nav,
  form,
  body::before,
  body::after {
    display: none;
  }
  .card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

input[type="file"] {
  min-width: 0;
  max-width: 100%;
}
:root {
  --primary: #4a78d6;
  --on-primary: #ffffff;
  --surface: #f2e6d0;
  --ink: #5a3a24;
  --accent: #8e1f35;
  --on-accent: #ffffff;
  --page: #eef3fb;
}
