@font-face {
  font-family: TemplateBold;
  src: url("/static/template-fonts/bold.ttf");
}
@font-face {
  font-family: TemplateSans;
  src: url("/static/template-fonts/sans.ttf");
}
@font-face {
  font-family: TemplateSerif;
  src: url("/static/template-fonts/serif.ttf");
}
.pt-page {
  max-width: 1440px;
  margin: 0 auto;
  padding: 30px 28px 80px;
  color: #25382d;
}
.pt-hero {
  padding: 40px 0 38px;
  max-width: 900px;
}
.pt-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  font-weight: 800;
  color: #70806f;
  margin: 0 0 14px;
}
.pt-hero h1 {
  font-size: clamp(34px, 5vw, 64px);
  letter-spacing: -0.045em;
  line-height: 1.12;
  margin: 0 0 24px;
}
.pt-hero > p:not(.pt-kicker) {
  max-width: 590px;
  line-height: 1.7;
  color: #657363;
}
.pt-steps {
  display: flex;
  gap: 24px;
  margin-top: 30px;
  font-size: 13px;
}
.pt-filters {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}
.pt-page label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
}
.pt-page input:not([type="checkbox"]):not([type="range"]),
.pt-page select,
.pt-page textarea {
  font: inherit;
  color: inherit;
  border: 1px solid #d1d7cd;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
.pt-filters input {
  min-width: 240px !important;
}
.pt-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.pt-card {
  border: 1px solid #dce0d6;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.2s;
  color: inherit;
}
.pt-card:hover {
  transform: translateY(-3px);
}
.pt-card-art {
  height: 315px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pt-card canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.pt-card-tag {
  position: absolute;
  bottom: 16px;
  left: 16px;
  padding: 7px 12px;
  background: #fff;
  border-radius: 30px;
  font-size: 11px;
}
.pt-card-text {
  padding: 24px;
}
.pt-card-text p {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #758070;
  margin: 0 0 12px;
}
.pt-card-text h2 {
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 22px;
}
.pt-card-text > span {
  font-size: 13px;
}
.pt-note {
  margin-top: 24px;
  color: #657363;
  font-size: 13px;
}
.pt-link {
  font-size: 13px;
  color: #596d55;
}
.pt-editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 24px 0 16px;
}
.pt-editor-header h1 {
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0;
}
.pt-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.pt-page button:not(.button),
.pt-file-button {
  font: inherit;
  font-size: 12px;
  border: 1px solid #d1d7cd;
  border-radius: 7px;
  padding: 9px 11px;
  background: #fff;
  color: #304735;
  cursor: pointer;
}
.pt-page button:hover:not(:disabled),
.pt-file-button:hover {
  border-color: #728768;
  background: #f2f5ee;
}
.pt-page button:disabled {
  opacity: 0.45;
  cursor: default;
}
.pt-page button[aria-pressed="true"] {
  background: #e0ead9;
  border-color: #718365;
}
.pt-page button:focus-visible,
.pt-page a:focus-visible,
.pt-page input:focus-visible,
.pt-page select:focus-visible {
  outline: 3px solid #9db66f;
  outline-offset: 3px;
}
.pt-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}
.pt-admin-workspace {
  grid-template-columns: 260px minmax(0, 1fr) 275px;
  gap: 16px;
}
.pt-panel {
  border: 1px solid #dce0d6;
  border-radius: 14px;
  padding: 20px;
  background: #fff;
  min-width: 0;
}
.pt-panel h2 {
  font-size: 16px;
  margin: 0 0 14px;
}
.pt-panel h2:not(:first-child) {
  margin-top: 26px;
}
.pt-panel h2 small {
  display: block;
  font-size: 10px;
  color: #71806d;
  margin-top: 4px;
  font-weight: 400;
}
.pt-panel h3 {
  font-size: 13px;
  margin: 16px 0 10px;
}
.pt-panel > p {
  font-size: 13px;
  line-height: 1.6;
}
.pt-panel label {
  margin-bottom: 12px;
}
.pt-panel hr {
  border: 0;
  border-top: 1px solid #dce0d6;
  margin: 20px 0;
}
.pt-panel details {
  font-size: 12px;
  margin-top: 22px;
}
.pt-panel summary {
  cursor: pointer;
}
.pt-stack {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.pt-tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.pt-hint {
  font-size: 11px !important;
  color: #687764;
  line-height: 1.6;
}
.pt-layer-list {
  display: grid;
  gap: 5px;
}
.pt-layer-list button {
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pt-stage-toolbar {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.pt-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #dce0d6;
  background-color: #f3f3ec;
  background-image:
    linear-gradient(45deg, #e8eae3 25%, transparent 25%),
    linear-gradient(-45deg, #e8eae3 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e8eae3 75%),
    linear-gradient(-45deg, transparent 75%, #e8eae3 75%);
  background-size: 20px 20px;
  background-position:
    0 0,
    0 10px,
    10px -10px,
    -10px 0;
}
.pt-stage canvas {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 660px;
  touch-action: none;
}
.pt-stage-column {
  min-width: 0;
  position: sticky;
  top: 16px;
}
.pt-color-row {
  align-items: center;
  justify-content: center;
  margin: 14px 0;
}
.pt-color-row .pt-check {
  flex-direction: row;
  align-items: center;
}
.pt-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 8px;
}
.pt-field-grid label {
  min-width: 0;
}
.pt-photo-list {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}
.pt-photo-row {
  display: flex;
  align-items: center;
  border: 1px solid #d1d7cd;
  border-radius: 9px;
  padding: 6px;
  gap: 6px;
}
.pt-photo-row.selected {
  border-color: #5b7845;
  background: #f1f5eb;
}
.pt-photo-row > button:first-child {
  flex: 1;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  min-width: 0;
}
.pt-photo-row img,
.pt-photo-thumb {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 5px;
  background: #e1e7d8;
  display: grid;
  place-content: center;
  flex-shrink: 0;
}
.pt-photo-row span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.pt-photo-row button {
  padding: 7px !important;
  font-size: 11px !important;
}
.pt-file-button {
  text-align: center;
  position: relative;
  overflow: hidden;
  display: block !important;
}
.pt-file-button input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.pt-purchase {
  border-top: 1px solid #dce0d6;
  padding-top: 20px;
  margin-top: 20px;
}
.pt-purchase .button {
  width: 100%;
}
.pt-price {
  font-size: 26px;
  font-weight: 700;
  margin: 14px 0;
}
.pt-price small {
  display: block;
  font-size: 11px;
  color: #6c7b66;
  font-weight: 400;
  margin-top: 4px;
}
.pt-download {
  margin-top: 16px;
  width: 100%;
}
.pt-banner {
  padding: 15px;
  background: #edf2e3;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 13px;
}
.pt-banner button {
  margin-left: 8px;
}
#pt-status {
  font-size: 13px;
  min-height: 18px;
  color: #486537;
  overflow-wrap: anywhere;
}
#pt-status[data-error="true"] {
  color: #a44026;
}
#pt-zoom-dialog {
  border: 0;
  border-radius: 14px;
  width: min(1200px, 96vw);
  max-width: 96vw;
  height: 92dvh;
  max-height: 92dvh;
  padding: 12px;
  background: #ecefe7;
}
#pt-zoom-dialog[open] {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#pt-zoom-dialog::backdrop {
  background: #152019c9;
}
.pt-viewer-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.pt-viewer-toolbar button {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #bdcbb7;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}
.pt-viewer-toolbar output {
  min-width: 48px;
  text-align: center;
}
#pt-close-zoom {
  margin-left: auto;
}
#pt-viewer-canvas {
  display: block;
  width: 100%;
  height: 100%;
  flex: 1 1 0;
  min-height: 0;
  touch-action: none;
  cursor: grab;
  border-radius: 8px;
}
#pt-viewer-canvas:active {
  cursor: grabbing;
}
.pt-viewer-hint {
  flex-shrink: 0;
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: #46543c;
}
.pt-editor [hidden],
.pt-page [hidden] {
  display: none !important;
}
.pt-panel input[type="range"] {
  width: 100%;
  accent-color: #54703f;
}
.pt-controls {
  overflow-wrap: anywhere;
}
#pt-inspector > .pt-actions {
  margin: 12px 0;
}
@media (min-width: 1100px) {
  .pt-editor {
    max-width: 1550px;
  }
  .pt-admin-workspace .pt-stage canvas {
    max-height: 700px;
  }
}
@media (max-width: 1100px) {
  .pt-admin-workspace {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .pt-admin-workspace .pt-controls {
    grid-column: 1/-1;
    display: block;
  }
  .pt-admin-workspace .pt-stage-column {
    position: static;
  }
  .pt-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .pt-page {
    padding: 20px 14px 90px;
  }
  .pt-hero {
    padding: 20px 0;
  }
  .pt-steps {
    flex-direction: column;
    gap: 9px;
    margin-top: 20px;
  }
  .pt-grid {
    grid-template-columns: 1fr;
  }
  .pt-card-art {
    height: 290px;
  }
  .pt-filters {
    flex-direction: column;
    gap: 12px;
  }
  .pt-editor-header {
    flex-direction: column;
    align-items: stretch;
  }
  .pt-workspace,
  .pt-admin-workspace {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .pt-stage-column {
    position: static;
  }
  .pt-stage canvas {
    max-height: 440px;
  }
  .pt-admin-workspace .pt-library {
    order: 2;
  }
  .pt-admin-workspace .pt-controls {
    order: 3;
  }
  .pt-panel {
    padding: 16px;
  }
  .pt-tool-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .pt-stage-toolbar button {
    font-size: 11px !important;
  }
  .pt-card-text {
    padding: 20px;
  }
  .pt-editor-header .button {
    padding: 12px;
    flex: 1;
    font-size: 12px;
  }
  .pt-color-row {
    justify-content: flex-start;
  }
}
.pt-editor-header .button-secondary {
  background: #fff;
  color: #304735;
  border: 1px solid #c9d2c3;
}
@media (max-width: 700px) {
  .pt-workspace:not(.pt-admin-workspace) .pt-stage-column {
    position: static;
    background: #fff7f0;
    padding: 8px 0;
    border-bottom: 1px solid #dce0d6;
  }
  .pt-workspace:not(.pt-admin-workspace) .pt-stage canvas {
    max-height: min(52dvh, 440px);
  }
  .pt-workspace:not(.pt-admin-workspace) #pt-stage-hint {
    display: none;
  }
  .pt-workspace:not(.pt-admin-workspace) .pt-color-row {
    margin: 8px 0 0;
  }
  .pt-workspace:not(.pt-admin-workspace) .pt-color-row label {
    flex-direction: row;
    align-items: center;
  }
  .pt-workspace:not(.pt-admin-workspace) .pt-color-row select {
    width: auto;
  }
}
@font-face {
  font-family: TemplateDate;
  src: url('/static/template-fonts/date.ttf') format('truetype');
}
