@font-face {
  font-family: "HuiFont29";
  src: url("/legacy/fonts_j/HuiFont29.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "APJapanesefont";
  src: url("/legacy/fonts_j/APJapanesefont.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "MikaChan";
  src: url("/legacy/fonts_j/mika.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Cinecaption";
  src: url("/legacy/fonts_j/cinecaption227.TTF") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "AzukiB";
  src: url("/legacy/fonts_j/azukiB.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "KilojiB";
  src: url("/legacy/fonts_j/kiloji_b.ttf") format("truetype");
  font-display: swap;
}

.td-app,
.td-app * {
  box-sizing: border-box;
}

.td-app {
  --td-preview-sticky-offset: 0px;
  margin: 0;
  background: #f3f3f4;
  color: #241f20;
  contain: layout paint;
  font-family: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  height: auto;
  min-height: 0;
  overflow: visible;
  padding: 18px;
}

.td-app button,
.td-app input,
.td-app select,
.td-app textarea {
  font: inherit;
}

.td-app-header {
  margin: 0 auto 14px;
  max-width: 1280px;
}

.td-app-header h1,
.td-panel h3 {
  margin: 0;
  line-height: 1.3;
  color: #241f20;
  font-size: 25px;
  font-weight: 900;
}

.td-app-header h1 {
  font-size: 24px;
  font-weight: 900;
}

.td-app-header p,
.td-panel p {
  margin: 6px 0 0;
  color: #5f595b;
  font-size: 16px;
  font-weight: 700;
}

.td-workspace {
  display: grid;
  grid-template-columns: minmax(560px, 1fr) minmax(420px, 520px);
  gap: 18px;
  height: clamp(760px, calc(100vh - 240px), 860px);
  margin: 0 auto;
  max-width: 1440px;
  min-height: 0;
}

.td-preview-column,
.td-controls-column {
  min-width: 0;
  min-height: 0;
}

.td-controls-column {
  display: flex;
  flex-direction: column;
  overflow: auto;
  padding-right: 0;
}

.td-text-panel {
  flex: 0 0 auto;
}

.td-controls-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.td-controls-scroll::-webkit-scrollbar {
  width: 8px;
}

.td-controls-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.td-controls-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #d5d5da;
}

.td-panel {
  margin-bottom: 16px;
  border-radius: 8px;
  background: #fff;
  border: 0;
  padding: 18px;
  box-shadow: none;
}

.td-preview-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin-bottom: 0;
}

.td-draft-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.td-draft-status {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  color: #5f656d;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}

.td-draft-status-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 999px;
  background: #8b929d;
}

.td-draft-status.is-saved .td-draft-status-dot {
  background: #60a582;
}

.td-draft-status.is-saving .td-draft-status-dot {
  background: #d0a044;
}

.td-draft-status.is-error .td-draft-status-dot {
  background: #c64b5f;
}

.td-draft-status.is-muted .td-draft-status-dot {
  background: #a5abb4;
}

.td-draft-actions {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
}

.td-history-actions {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.td-history-action {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid #d5cbc7;
  border-radius: 6px;
  background: #fff;
  color: #4f484c;
  cursor: pointer;
  padding: 0;
}

.td-history-action:hover {
  border-color: #bd4a78;
  background: #fff6fa;
  color: #9f315b;
}

.td-history-action:disabled {
  cursor: not-allowed;
  opacity: .35;
}

.td-history-action .td-preview-svg-icon {
  width: 18px;
  height: 18px;
}

.td-draft-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 86px;
  min-height: 36px;
  border: 1px solid #d5cbc7;
  border-radius: 6px;
  background: #fff;
  color: #332d2f;
  cursor: pointer;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.td-draft-action:hover,
.td-draft-action.is-active {
  border-color: #bd4a78;
  background: #fff6fa;
  color: #9f315b;
}

.td-draft-action:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.td-draft-action .td-preview-svg-icon {
  width: 18px;
  height: 18px;
}

.td-draft-action-status {
  display: none;
}

.td-mobile-download {
  position: relative;
  display: none;
}

.td-mobile-download-menu {
  position: absolute;
  z-index: 60;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  gap: 4px;
  min-width: 148px;
  border: 1px solid #d8d2ce;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(36, 31, 32, .16);
  padding: 6px;
}

.td-mobile-download-menu button {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #332d2f;
  cursor: pointer;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 900;
  text-align: left;
}

.td-mobile-download-menu button:hover {
  background: #fff6fa;
  color: #9f315b;
}

.td-mobile-download-menu .td-preview-svg-icon {
  width: 18px;
  height: 18px;
}

.td-draft-popover {
  margin: 0 0 14px;
  border: 1px solid #ded8d5;
  border-radius: 8px;
  background: #fbfbfc;
  padding: 12px;
}

.td-draft-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.td-draft-popover-head strong,
.td-draft-popover-head span {
  display: block;
}

.td-draft-popover-head strong {
  color: #241f20;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
}

.td-draft-popover-head span {
  margin-top: 3px;
  color: #716a6e;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.td-draft-save {
  flex: none;
  min-height: 36px;
  border: 1px solid #bd4a78;
  border-radius: 6px;
  background: #bd4a78;
  color: #fff;
  cursor: pointer;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 900;
}

.td-draft-save:hover {
  background: #a93e69;
}

.td-draft-save:disabled {
  cursor: wait;
  opacity: .7;
}

.td-draft-list {
  display: grid;
  gap: 12px;
  max-height: 260px;
  overflow: auto;
  padding-right: 2px;
}

.td-draft-section {
  display: grid;
  gap: 7px;
}

.td-draft-section-title {
  color: #4f484b;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}

.td-draft-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  align-items: stretch;
  gap: 8px;
}

.td-draft-item.is-active .td-draft-load {
  border-color: #bd4a78;
  background: #fff6fa;
}

.td-draft-load {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  border: 1px solid #ded8d5;
  border-radius: 8px;
  background: #fff;
  color: #332d2f;
  cursor: pointer;
  padding: 8px;
  text-align: left;
}

.td-draft-load:hover {
  border-color: #bd4a78;
  background: #fffafd;
}

.td-draft-load.is-auto:hover {
  border-color: #8da9c4;
  background: #f7fbff;
}

.td-draft-kind {
  display: grid;
  width: 48px;
  min-height: 30px;
  border-radius: 999px;
  background: #f1f4f7;
  color: #51697c;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  place-items: center;
}

.td-draft-load.is-manual .td-draft-kind {
  background: #fff0f6;
  color: #9f315b;
}

.td-draft-meta {
  display: block;
  min-width: 0;
}

.td-draft-meta strong,
.td-draft-meta span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.td-draft-meta strong {
  color: #241f20;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
}

.td-draft-meta span {
  margin-top: 4px;
  color: #716a6e;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.td-draft-delete {
  display: grid;
  width: 38px;
  min-height: 56px;
  border: 1px solid #ded8d5;
  border-radius: 8px;
  background: #fff;
  color: #766f73;
  cursor: pointer;
  place-items: center;
}

.td-draft-delete:hover {
  border-color: #d26b6b;
  background: #fff7f7;
  color: #bd3c3c;
}

.td-draft-delete .td-preview-svg-icon {
  width: 19px;
  height: 19px;
}

.td-draft-empty {
  border: 1px dashed #d7d0cc;
  border-radius: 8px;
  background: #fff;
  color: #716a6e;
  padding: 16px;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.td-panel .td-draft-note {
  margin: 10px 0 0;
  color: #716a6e;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
}

.td-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.td-panel .td-preview-help {
  min-width: 0;
  margin: 0;
  color: #68727d;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
}

.td-preview-help-mobile {
  display: none;
}

.td-preview-size-badge {
  display: inline-flex;
  flex: none;
  align-items: baseline;
  gap: 7px;
  border-radius: 999px;
  background: #f3f6f9;
  color: #5b6570;
  padding: 6px 10px;
  white-space: nowrap;
}

.td-preview-size-badge span {
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.td-preview-size-badge strong {
  color: #242a32;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.td-editor-help {
  margin: 0 0 14px;
  color: #5f595b;
  font-size: 16px;
  font-weight: 700;
}

.td-preview-stage-wrap {
  position: relative;
  display: flex;
  flex: 1;
  min-height: 420px;
  min-width: 0;
}

.td-preview-stage {
  position: relative;
  display: block;
  flex: 1;
  min-height: 0;
  min-width: 0;
  border: 0;
  border-radius: 7px;
  background: #e8e8ea;
  overflow: auto;
  overscroll-behavior: auto;
  padding: 34px;
  touch-action: none;
}

.td-preview-stage::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.td-preview-stage::-webkit-scrollbar-track {
  background: transparent;
}

.td-preview-stage::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #c9c9ce;
}

.td-preview-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  align-content: stretch;
  align-items: stretch;
  justify-items: stretch;
  flex: none;
  margin: auto;
  width: min(860px, 92%);
  min-height: 300px;
  border-radius: 6px;
  background: #fff;
  box-shadow: none;
  padding: 42px 34px;
  text-align: center;
  transform-origin: 0 0;
}

.td-preview-card-multi {
  display: block;
  overflow: hidden;
  margin: 0;
}

.td-preview-card-multi.is-transparent-preview {
  background-color: #ffffff !important;
  background-image: conic-gradient(#dfe3ea 25%, #ffffff 0 50%, #dfe3ea 0 75%, #ffffff 0);
  background-size: 16px 16px;
}

.td-preview-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.td-preview-stage:active .td-preview-canvas {
  cursor: grabbing;
}

.td-preview-selection-box {
  position: absolute;
  box-sizing: border-box;
  border: 2px solid #2f8dff;
  border-radius: 7px;
  outline: 2px solid rgba(255, 255, 255, .86);
  outline-offset: 0;
  box-shadow: 0 0 0 1px rgba(47, 141, 255, .22);
  pointer-events: none;
  transform-origin: 50% 50%;
}

.td-preview-selection-box.is-dragging {
  border-color: #1770df;
}

.td-preview-selection-box.is-recently-active {
  animation: td-preview-select-pulse 1.2s ease-out 1;
}

@keyframes td-preview-select-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(47, 141, 255, .36);
  }
  100% {
    box-shadow: 0 0 0 12px rgba(47, 141, 255, 0);
  }
}

.td-preview-aligner {
  display: flex;
  flex: none;
}

.td-preview-viewport {
  position: relative;
  flex: none;
  margin: 0;
}

.td-preview-zoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 5;
  display: flex;
  gap: 8px;
  align-items: flex-end;
  justify-content: flex-end;
  overflow: visible;
}

.td-preview-zoom-controls {
  position: relative;
  display: grid;
  grid-template-columns: 42px 74px 42px;
  align-items: center;
  min-height: 44px;
  border: 1px solid rgba(196, 202, 211, .95);
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 12px 32px rgba(36, 31, 32, .14);
  backdrop-filter: blur(10px);
}

.td-preview-zoom-button,
.td-preview-zoom-value,
.td-preview-zoom-toggle {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: #2f3a4a;
  cursor: pointer;
  font-weight: 900;
}

.td-preview-zoom-button,
.td-preview-zoom-toggle {
  font-size: 0;
  display: grid;
  place-items: center;
}

.td-preview-zoom-toggle {
  width: 46px;
  min-height: 46px;
  border: 1px solid rgba(196, 202, 211, .95);
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 12px 32px rgba(36, 31, 32, .14);
  backdrop-filter: blur(10px);
}

.td-preview-zoom.is-open .td-preview-zoom-toggle {
  background: #2f3a4a;
  border-color: #2f3a4a;
  color: #fff;
}

.td-preview-zoom-value {
  font-size: 14px;
  text-align: center;
}

.td-preview-svg-icon {
  display: block;
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.td-preview-zoom-button:hover,
.td-preview-zoom-value:hover,
.td-preview-zoom-toggle:hover {
  color: #9f315b;
}

.td-preview-zoom.is-open .td-preview-zoom-toggle:hover {
  color: #fff;
  background: #9f315b;
  border-color: #9f315b;
}

.td-preview-zoom-menu {
  position: absolute;
  right: 14px;
  bottom: 54px;
  display: grid;
  width: 118px;
  max-height: 282px;
  overflow: hidden;
  overflow-y: auto;
  border: 1px solid rgba(196, 202, 211, .95);
  border-radius: 10px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 18px 44px rgba(36, 31, 32, .16);
  padding: 6px;
}

.td-preview-zoom-menu button {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #2f3a4a;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.td-preview-zoom-menu button:hover,
.td-preview-zoom-menu button.is-active {
  background: #f3f6f9;
  color: #9f315b;
}

.td-preview-text-part {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max-content;
  max-width: none;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: move;
  padding: 8px;
  touch-action: none;
  transition: border-color .16s ease, background-color .16s ease;
  user-select: none;
}

.td-preview-text-part:hover {
  border-color: rgba(83, 120, 157, .26);
  background: rgba(255, 255, 255, .12);
}

.td-preview-text-part.is-active {
  border-color: transparent;
  background: transparent;
}

.td-preview-text-part.is-dragging {
  border-color: rgba(59, 130, 246, .72);
  background: rgba(255, 255, 255, .18);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, .14);
}

.td-preview-text-part.is-recently-active {
  animation: tdPreviewSelectionFlash 2.35s ease forwards;
}

@keyframes tdPreviewSelectionFlash {
  0%,
  48% {
    border-color: rgba(59, 130, 246, .58);
    background: rgba(255, 255, 255, .16);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, .12);
  }
  100% {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
  }
}

.td-download-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.td-download-bar .td-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  min-width: 0;
}

.td-preview-row {
  display: flex;
  justify-content: center;
  min-height: 1em;
  gap: 0;
  line-height: 1;
}

.td-preview-text {
  display: grid;
  justify-items: center;
  width: max-content;
  max-width: none;
}

.td-preview-char {
  position: relative;
  display: inline-block;
  color: #221d1b;
  font-family: "Dela Gothic One", "Noto Sans JP", sans-serif;
  font-size: 0;
  font-weight: 900;
  line-height: 0;
  letter-spacing: 0;
  transform-origin: 50% 60%;
  vertical-align: top;
}

.td-preview-char-glyph {
  position: relative;
  display: inline-block;
  line-height: 1;
  transform-origin: 50% 60%;
  vertical-align: top;
}

.td-preview-char-layer {
  display: block;
}

.td-preview-char-outline {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.td-preview-char-fill {
  position: relative;
  z-index: 1;
}

.td-preview-char.is-decorated {
  margin: 0 1px;
}

.td-composer {
  position: relative;
  border: 1px solid #d7d0cc;
  border-radius: 8px;
  background: #fff;
  overflow: visible;
}

.td-rich-editor {
  display: block;
  width: 100%;
  min-height: 82px;
  max-height: 210px;
  overflow-y: auto;
  border: 0;
  outline: 0;
  padding: 13px 14px;
  color: #241f20;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}

.td-rich-editor:empty::before {
  color: #9a9296;
  content: attr(data-placeholder);
  pointer-events: none;
}

.td-rich-editor:focus {
  box-shadow: inset 0 0 0 2px rgba(91, 182, 255, .18);
}

.td-lexical-editor {
  caret-color: #241f20;
}

.td-lexical-editor p {
  margin: 0;
}

.td-lexical-icon-text {
  position: relative;
  display: inline-block;
  width: 1.08em;
  height: 1.08em;
  margin: 0 .04em;
  color: currentColor;
  line-height: 1;
  vertical-align: -0.13em;
  -webkit-text-fill-color: transparent;
}

.td-lexical-icon-text::before {
  position: absolute;
  inset: .02em;
  display: block;
  background: currentColor;
  content: "";
  mask: var(--td-lexical-icon-url) center / contain no-repeat;
  -webkit-mask: var(--td-lexical-icon-url) center / contain no-repeat;
  pointer-events: none;
}

.td-lexical-icon-text::selection {
  background: rgba(91, 182, 255, .35);
}

.td-lexical-image-host {
  display: inline-flex;
  position: relative;
  max-width: 100%;
  vertical-align: middle;
}

.td-lexical-image-card {
  position: relative;
  display: inline-flex;
  max-width: min(220px, 100%);
  margin: 6px 5px;
  overflow: hidden;
  border: 1px solid #ded6d2;
  border-radius: 7px;
  background: #f7f7f8;
  vertical-align: middle;
}

.td-lexical-image-card img {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
  max-height: 160px;
  object-fit: contain;
}

.td-lexical-image-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: rgba(36, 31, 32, .78);
  color: #fff;
  cursor: pointer;
  font-size: 0;
  line-height: 1;
  place-items: center;
  text-indent: -999px;
}

.td-lexical-image-remove::before,
.td-lexical-image-remove::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  transform-origin: 50% 50%;
}

.td-lexical-image-remove::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.td-lexical-image-remove::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.td-editor-load-error {
  border: 1px solid #e2b8bd;
  border-radius: 8px;
  background: #fff5f6;
  color: #8d2635;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 700;
}

.td-composer-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid #eee7e4;
  padding: 10px 12px 0;
}

.td-composer-attachment {
  position: relative;
  width: 74px;
  height: 74px;
  overflow: hidden;
  border: 1px solid #ded6d2;
  border-radius: 7px;
  background: #f7f7f8;
}

.td-composer-attachment img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.td-composer-attachment-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: rgba(36, 31, 32, .78);
  color: #fff;
  cursor: pointer;
  font-size: 0;
  line-height: 1;
  place-items: center;
  text-indent: -999px;
}

.td-composer-attachment-remove::before,
.td-composer-attachment-remove::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  transform-origin: 50% 50%;
}

.td-composer-attachment-remove::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.td-composer-attachment-remove::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.td-composer-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  border-top: 1px solid #eee7e4;
  padding: 8px 10px;
}

.td-composer-tool {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #625a5e;
  cursor: pointer;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  place-items: center;
}

.td-composer-tool:hover,
.td-composer-tool.is-active {
  background: #f3f6f9;
  color: #9f315b;
}

.td-composer-tool-plus {
  font-size: 0;
  text-indent: -999px;
}

.td-composer-tool-plus::before,
.td-composer-tool-plus::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  transform: translate(-50%, -50%);
}

.td-composer-tool-plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.td-composer-file {
  display: none;
}

.td-media-summary {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid #d7d0cc;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.td-media-summary > img,
.td-media-summary > svg {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: #f5f6f8;
  object-fit: contain;
}

.td-media-summary > div:not(.td-media-summary-actions):not(.td-crop-editor) strong,
.td-media-summary > div:not(.td-media-summary-actions):not(.td-crop-editor) span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.td-media-summary > div:not(.td-media-summary-actions):not(.td-crop-editor) strong {
  color: #241f20;
  font-size: 15px;
  font-weight: 900;
}

.td-media-summary > div:not(.td-media-summary-actions):not(.td-crop-editor) span {
  margin-top: 4px;
  color: #766f73;
  font-size: 12px;
  font-weight: 800;
}

.td-media-summary-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  width: 128px;
}

.td-media-summary-actions .td-media-summary-action {
  width: 100%;
}

.td-media-summary > .td-crop-editor-summary {
  grid-column: 1 / -1;
}

.td-media-summary-action {
  min-width: 76px;
  min-height: 44px;
  border: 1px solid #d5cbc7;
  border-radius: 8px;
  background: #fbfbfc;
  color: #4a4447;
  cursor: pointer;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 900;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.td-media-summary-action:hover {
  border-color: #8fc5ff;
  background: #f3f9ff;
}

.td-media-summary-actions .td-media-crop-action {
  border-color: #d7a5ba;
  background: #fff8fb;
  color: #8f2e56;
}

.td-media-summary-actions .td-media-crop-action:hover,
.td-media-summary-actions .td-media-crop-action.is-active {
  border-color: #bd4a78;
  background: #fff0f6;
  color: #7f274b;
  box-shadow: 0 4px 14px rgba(189, 74, 120, .12);
}

.td-emoji-panel {
  position: static;
  width: 100%;
  max-height: 258px;
  overflow-y: auto;
  border-top: 1px solid #eee7e4;
  border-radius: 0 0 8px 8px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .88);
  padding: 10px 12px 12px;
}

.td-emoji-search {
  width: 100%;
  height: 38px;
  border: 1px solid #d7d0cc;
  border-radius: 6px;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 700;
}

.td-emoji-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(34px, 1fr));
  gap: 4px;
  margin-top: 8px;
}

.td-emoji-category {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  height: 34px;
  border: 1px solid #e0d8d4;
  border-radius: 6px;
  background: #fbfbfc;
  color: #4f484c;
  cursor: pointer;
  padding: 0;
}

.td-emoji-category:hover {
  border-color: #9ecbff;
  background: #f2f8ff;
}

.td-emoji-category.is-active {
  border-color: #a86d95;
  background: #fff1f8;
  color: #8d416c;
}

.td-emoji-category-svg {
  display: block;
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.td-emoji-category-count {
  display: none;
}

.td-emoji-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.td-emoji-option {
  position: relative;
  display: grid;
  min-width: 0;
  height: 38px;
  border: 0;
  border-radius: 6px;
  background: #f7f7f8;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  place-items: center;
}

.td-emoji-option:hover {
  background: #eef6ff;
}

.td-emoji-option-asset {
  background: #fff8fb;
}

.td-emoji-option-asset img {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.td-icon-option img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.td-emoji-asset-badge {
  position: absolute;
  right: 2px;
  bottom: 2px;
  border-radius: 999px;
  background: #b94778;
  color: #fff;
  padding: 1px 4px;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.2;
  pointer-events: none;
}

.td-preview-attachment {
  display: block;
  overflow: hidden;
  margin-top: 16px;
  border-radius: 6px;
}

.td-preview-attachment img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.td-preview-char.is-asset,
.td-preview-char.is-icon {
  display: inline-grid;
  line-height: 0;
  place-items: center;
  vertical-align: middle;
}

.td-preview-asset-glyph {
  display: block;
  object-fit: contain;
  pointer-events: none;
}

.td-preview-icon-glyph {
  display: block;
  fill: currentColor;
  overflow: visible;
  pointer-events: none;
}

.td-preview-media-part {
  cursor: grab;
}

.td-preview-media-part.is-dragging {
  cursor: grabbing;
}

.td-preview-media-frame {
  display: block;
  box-sizing: border-box;
  overflow: visible;
  line-height: 0;
}

.td-preview-media-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.td-preview-shape-image {
  object-fit: contain;
  overflow: visible;
}

.td-part-tabs-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: end;
  margin: 0 0 12px;
}

.td-part-tabs-scroll {
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2px;
}

.td-part-tabs {
  display: flex;
  gap: 6px;
  align-items: flex-end;
  width: max-content;
  min-width: 100%;
}

.td-part-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
  align-items: flex-end;
}

.td-part-tab-wrap,
.td-part-add,
.td-layer-toggle {
  display: inline-grid;
  flex: 0 0 auto;
  align-items: center;
  min-height: 38px;
  border: 1px solid #d9d2ce;
  border-radius: 8px 8px 0 0;
  background: #f5f5f6;
  color: #4a4447;
  cursor: pointer;
  font-weight: 900;
}

.td-part-tab-wrap {
  grid-template-columns: minmax(0, 1fr) 20px;
  gap: 8px;
  flex-basis: 126px;
  min-width: 112px;
  max-width: 126px;
  padding: 8px 10px;
  transition:
    transform .16s cubic-bezier(.2, .8, .2, 1),
    opacity .16s ease,
    background-color .16s ease,
    border-color .16s ease,
    box-shadow .16s ease;
  will-change: transform;
}

.td-part-tab-wrap.is-active {
  border-bottom-color: #fff;
  background: #fff;
  color: #241f20;
}

.td-part-tab-wrap.is-dragging {
  opacity: .55;
  transform: translateY(-2px);
}

.td-part-tab {
  display: block;
  min-width: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
  font-weight: 900;
  text-align: left;
}

.td-part-tab-label {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.td-part-tab-inline-icon,
.td-layer-inline-icon {
  position: relative;
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  margin: 0 .03em;
  color: currentColor;
  line-height: 1;
  vertical-align: -0.12em;
  -webkit-text-fill-color: transparent;
}

.td-part-tab-inline-icon::before,
.td-layer-inline-icon::before {
  position: absolute;
  inset: .02em;
  display: block;
  background: currentColor;
  content: "";
}

.td-part-tab-inline-icon::before {
  mask: var(--td-part-tab-icon-url) center / contain no-repeat;
  -webkit-mask: var(--td-part-tab-icon-url) center / contain no-repeat;
}

.td-layer-inline-icon::before {
  mask: var(--td-layer-icon-url) center / contain no-repeat;
  -webkit-mask: var(--td-layer-icon-url) center / contain no-repeat;
}

.td-part-tab-media {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  min-width: 0;
}

.td-part-tab-thumb {
  display: grid;
  width: 24px;
  height: 24px;
  overflow: hidden;
  border: 1px solid #e2ddda;
  border-radius: 6px;
  background: #fff;
  color: #9f315b;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  place-items: center;
}

.td-part-tab-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.td-part-tab-wrap.is-active .td-part-tab-thumb {
  border-color: #cfd7e2;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .72);
}

.td-part-tab-close {
  position: relative;
  display: grid;
  align-self: center;
  width: 20px;
  height: 20px;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: #7a7175;
  font-size: 0;
  line-height: 1;
  place-items: center;
  text-indent: -999px;
}

.td-part-tab-close::before,
.td-part-tab-close::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 17px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  transform-origin: 50% 50%;
}

.td-part-tab-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.td-part-tab-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.td-part-tab-close:hover {
  color: #241f20;
}

.td-part-add,
.td-layer-toggle {
  position: relative;
  min-width: 42px;
  overflow: hidden;
  padding: 8px 13px;
  font-size: 0;
  line-height: 1;
  place-items: center;
  text-indent: -999px;
}

.td-part-add::before,
.td-part-add::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  transform: translate(-50%, -50%);
}

.td-part-add::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.td-layer-toggle {
  color: #5b5558;
}

.td-layer-toggle.is-active {
  border-bottom-color: #fff;
  background: #fff;
  color: #241f20;
}

.td-layer-toggle::before,
.td-layer-toggle::after {
  position: absolute;
  left: 50%;
  width: 17px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  transform: translateX(-50%);
}

.td-layer-toggle::before {
  top: 11px;
  box-shadow: 0 6px 0 currentColor;
}

.td-layer-toggle::after {
  top: 23px;
}

.td-part-add.is-active {
  border-bottom-color: #fff;
  background: #fff;
  color: #241f20;
}

.td-add-menu,
.td-stamp-picker {
  margin: -8px 0 12px;
  border: 1px solid #d8dce3;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.td-add-menu-title {
  margin-bottom: 8px;
  color: #6d6669;
  font-size: 12px;
  font-weight: 900;
}

.td-add-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.td-add-menu-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-areas:
    "icon main"
    "icon sub";
  column-gap: 9px;
  align-items: center;
  min-height: 58px;
  border: 1px solid #e1dbd8;
  border-radius: 8px;
  background: #fbfbfc;
  color: #302b2d;
  cursor: pointer;
  padding: 9px 10px;
  text-align: left;
}

.td-add-menu-item:hover,
.td-add-menu-item.is-active {
  border-color: #8fc5ff;
  background: #f3f9ff;
}

.td-add-menu-item:disabled {
  cursor: default;
  opacity: .45;
}

.td-add-menu-icon {
  display: grid;
  grid-area: icon;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #f1ece9;
  color: #9f315b;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  place-items: center;
}

.td-add-menu-svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.td-add-menu-main {
  grid-area: main;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
}

.td-add-menu-sub {
  grid-area: sub;
  color: #7b7478;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.td-stamp-picker {
  margin-top: -4px;
}

.td-stamp-picker-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: #6d6669;
  font-size: 12px;
  font-weight: 900;
}

.td-stamp-search {
  margin-bottom: 8px;
}

.td-stamp-categories {
  margin-bottom: 10px;
}

.td-stamp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 8px;
}

.td-stamp-option {
  display: grid;
  position: relative;
  gap: 6px;
  justify-items: center;
  min-height: 92px;
  border: 1px solid #e3ddda;
  border-radius: 8px;
  background: #fbfbfc;
  cursor: pointer;
  padding: 8px;
  color: #4a4447;
  font-size: 12px;
  font-weight: 900;
}

.td-stamp-option:hover,
.td-stamp-option.is-active {
  border-color: #8fc5ff;
  background: #f3f9ff;
}

.td-stamp-option img,
.td-stamp-option svg {
  display: block;
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.td-stamp-option.is-locked {
  cursor: not-allowed;
  opacity: .72;
}

.td-stamp-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 26px;
  border-radius: 999px;
  background: rgba(34, 29, 27, .78);
  color: #fff;
  padding: 2px 6px;
  font-size: 10px;
  line-height: 1.2;
}

.td-stamp-badge.is-paid {
  background: #bd4a78;
}

.td-stamp-empty {
  grid-column: 1 / -1;
  border: 1px dashed #ddd5d1;
  border-radius: 8px;
  background: #fff;
  color: #756e72;
  padding: 18px 12px;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.td-stamp-replace-picker {
  margin-top: 8px;
}

.td-layer-panel {
  max-height: 0;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: max-height .24s cubic-bezier(.2, .8, .2, 1), opacity .18s ease, margin .18s ease, visibility 0s linear .24s;
}

.td-layer-panel.is-open {
  max-height: 290px;
  margin: 0 0 12px;
  opacity: 1;
  visibility: visible;
  transition: max-height .24s cubic-bezier(.2, .8, .2, 1), opacity .18s ease, margin .18s ease, visibility 0s;
}

.td-layer-panel-inner {
  min-height: 0;
  overflow: hidden;
  border: 1px solid #d8dce3;
  border-radius: 8px;
  background: #fbfbfc;
  padding: 12px;
}

.td-layer-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: #6d6669;
  font-size: 12px;
  font-weight: 900;
}

.td-layer-list {
  display: grid;
  gap: 8px;
  max-height: 210px;
  overflow-y: auto;
  padding-right: 2px;
}

.td-layer-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto 32px 32px;
  gap: 8px;
  align-items: center;
  border: 1px solid #e0d9d6;
  border-radius: 7px;
  background: #fff;
  padding: 6px;
  cursor: grab;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.td-layer-row:active {
  cursor: grabbing;
}

.td-layer-row.is-active {
  border-color: #8fc5ff;
  background: #f3f9ff;
  box-shadow: 0 0 0 2px rgba(91, 182, 255, .12);
}

.td-layer-row.is-dragging {
  opacity: .55;
}

.td-layer-row.is-hidden .td-layer-name {
  opacity: .48;
}

.td-layer-grip {
  position: relative;
  width: 24px;
  height: 30px;
}

.td-layer-grip::before {
  position: absolute;
  top: 8px;
  left: 7px;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: #9aa2af;
  box-shadow:
    0 7px 0 #9aa2af,
    0 14px 0 #9aa2af,
    7px 0 0 #9aa2af,
    7px 7px 0 #9aa2af,
    7px 14px 0 #9aa2af;
  content: "";
}

.td-layer-name {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #241f20;
  cursor: pointer;
  padding: 4px;
  text-align: left;
}

.td-layer-type {
  border-radius: 999px;
  background: #f1ece9;
  color: #6d6669;
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 900;
}

.td-layer-label {
  display: -webkit-box;
  overflow: hidden;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.td-layer-media {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.td-layer-thumb {
  display: grid;
  width: 26px;
  height: 26px;
  overflow: hidden;
  border: 1px solid #e2ddda;
  border-radius: 6px;
  background: #fff;
  color: #9f315b;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  place-items: center;
}

.td-layer-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.td-layer-media-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.td-layer-order {
  min-width: 24px;
  color: #8a8386;
  font-size: 12px;
  font-weight: 900;
  text-align: right;
}

.td-layer-visibility,
.td-layer-delete {
  display: grid;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #5b5558;
  cursor: pointer;
  padding: 0;
  place-items: center;
}

.td-layer-visibility:hover,
.td-layer-visibility:focus-visible,
.td-layer-delete:hover,
.td-layer-delete:focus-visible {
  background: #f1ece9;
  color: #241f20;
}

.td-layer-visibility:focus-visible,
.td-layer-delete:focus-visible {
  outline: 2px solid #0b84ff;
  outline-offset: 2px;
}

.td-layer-visibility.is-hidden {
  color: #9a9296;
}

.td-layer-delete:hover,
.td-layer-delete:focus-visible {
  color: #b5364d;
}

.td-layer-delete:disabled,
.td-layer-delete.is-disabled {
  color: #c6c0c3;
  cursor: not-allowed;
}

.td-layer-delete:disabled:hover,
.td-layer-delete.is-disabled:hover {
  background: transparent;
  color: #c6c0c3;
}

.td-layer-visibility-svg,
.td-layer-delete-svg {
  display: block;
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.td-grid-wrap {
  overflow: auto;
  padding: 3px 2px 2px;
}

.td-cell-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 14px;
}

.td-cell-toolbar .td-button {
  min-height: 36px;
  padding: 8px 11px;
  font-size: 13px;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, opacity .18s ease;
}

.td-grid {
  display: grid;
  gap: 8px;
  min-width: max-content;
}

.td-grid-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 56px;
  gap: 8px;
  align-items: center;
}

.td-grid-header-row {
  margin-bottom: 2px;
}

.td-grid-corner,
.td-column-label,
.td-row-label,
.td-cell {
  width: 56px;
  height: 56px;
}

.td-grid-corner {
  pointer-events: none;
}

.td-grid-header-row .td-grid-corner {
  height: 38px;
}

.td-column-label,
.td-row-label {
  appearance: none;
  display: grid;
  border: 1px solid #d3d9e1;
  border-radius: 6px;
  background: #f3f6f9;
  color: #55606b;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  place-items: center;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease;
}

.td-column-label {
  height: 38px;
}

.td-column-label:disabled {
  cursor: default;
  opacity: .48;
}

.td-column-label:disabled:hover {
  border-color: #d3d9e1;
  background: #f3f6f9;
}

.td-column-label:focus-visible,
.td-row-label:focus-visible {
  outline: 2px solid #0b84ff;
  outline-offset: 2px;
}

.td-column-label:hover,
.td-row-label:hover {
  border-color: #a8c8e8;
  background: #f8fbff;
}

.td-column-label.is-selected,
.td-row-label.is-selected {
  border-color: #5bb6ff;
  background: #e8f5ff;
  box-shadow: 0 0 0 2px rgba(91, 182, 255, .18);
  color: #2b5f91;
}

.td-cell {
  position: relative;
  border: 1px solid #dce3ea;
  border-radius: 8px;
  background: #fbfdff;
  color: #2b3440;
  cursor: pointer;
  font-weight: 900;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease, transform .18s ease;
}

.td-cell:hover {
  border-color: #a8c8e8;
  transform: translateY(-1px);
}

.td-cell.is-selected {
  border-color: #5bb6ff;
  background: #e8f5ff;
  box-shadow: 0 0 0 2px rgba(91, 182, 255, .18);
}

.td-cell.is-whitespace .td-cell-char {
  color: #9ba6b2;
  font-size: 12px;
}

.td-cell-char {
  display: block;
  font-size: 25px;
  line-height: 1;
}

.td-cell-asset {
  display: block;
  width: 38px;
  height: 38px;
  margin: auto;
  object-fit: contain;
  pointer-events: none;
}

.td-cell-icon {
  display: block;
  width: 32px;
  height: 32px;
  margin: auto;
  fill: currentColor;
  pointer-events: none;
}

.td-cell-badge {
  position: absolute;
  right: 8px;
  bottom: 7px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #b94778;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .9);
  pointer-events: none;
}

.td-selected-count {
  min-width: 72px;
  border-radius: 999px;
  background: #eef6ff;
  color: #2d5d91;
  padding: 6px 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
}

.td-field {
  margin-bottom: 14px;
}

.td-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 10px;
  border-radius: 7px;
  background: #f1ece9;
  padding: 4px;
}

.td-mode-tab {
  min-height: 38px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #5c5356;
  cursor: pointer;
  font-weight: 900;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.td-mode-tab.is-active {
  background: #fff;
  color: #241f20;
  box-shadow: 0 1px 2px rgba(36, 31, 32, .08);
}

.td-mode-status {
  margin: 0 0 14px;
  color: #6d6669;
  font-size: 12px;
  font-weight: 700;
}

.td-global-note {
  margin: 0 0 14px;
  border-radius: 6px;
  background: #f3f6f9;
  color: #55606b;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 700;
}

.td-checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: #332d2f;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
}

.td-checkbox-row input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #9f315b;
}

.td-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  margin: 0 0 16px;
  border: 1px solid #e0d9d6;
  border-radius: 8px;
  background: #fbfbfc;
  color: #332d2f;
  cursor: pointer;
  padding: 13px 14px;
  text-align: left;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.td-switch-row:hover {
  border-color: #d0c5c1;
  background: #fff;
}

.td-switch-title {
  min-width: 0;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.4;
}

.td-switch-control {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 10px;
}

.td-switch-state {
  min-width: 28px;
  color: #6c7481;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-align: right;
}

.td-switch-track {
  position: relative;
  display: block;
  width: 50px;
  height: 28px;
  border-radius: 999px;
  background: #d5dae2;
  transition: background-color .2s ease;
}

.td-switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 5px rgba(36, 31, 32, .22);
  transition: transform .2s cubic-bezier(.2, .8, .2, 1);
}

.td-switch-row.is-on .td-switch-track {
  background: #9f6b93;
}

.td-shadow-card.is-on .td-switch-track {
  background: #9f6b93;
}

.td-switch-row.is-on .td-switch-thumb {
  transform: translateX(22px);
}

.td-shadow-card.is-on .td-switch-thumb {
  transform: translateX(22px);
}

.td-switch-row:focus-visible {
  outline: 2px solid #0b84ff;
  outline-offset: 2px;
}

.td-background-controls {
  animation: tdFadeSlideIn .2s ease both;
}

.td-shadow-section {
  margin-top: 18px;
}

.td-shadow-card {
  overflow: hidden;
  border: 1px solid #e0d9d6;
  border-radius: 8px;
  background: #fbfbfc;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.td-shadow-card:hover {
  border-color: #d0c5c1;
  background: #fff;
}

.td-shadow-card.is-on {
  background: #fff;
  box-shadow: 0 8px 20px rgba(36, 31, 32, .06);
}

.td-shadow-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  border: 0;
  background: transparent;
  color: #332d2f;
  cursor: pointer;
  padding: 13px 14px;
  text-align: left;
}

.td-shadow-toggle:focus-visible {
  outline: 2px solid #0b84ff;
  outline-offset: -3px;
}

.td-shadow-controls {
  border-top: 1px solid #ece9e7;
  padding: 0 14px 14px;
  animation: tdFadeSlideIn .2s ease both;
}

.td-shadow-note {
  margin: 0 0 12px;
  padding-top: 12px;
  color: #6d6669;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
}

.td-background-transparency {
  margin-bottom: 14px;
}

.td-background-transparency .td-switch-row {
  margin-bottom: 10px;
}

.td-background-transparency-controls {
  animation: tdFadeSlideIn .2s ease both;
}

.td-transparency-note {
  margin-top: -2px;
  margin-bottom: 14px;
}

.td-settings-panel {
  margin: 0 0 14px;
  border: 1px solid #d8dce3;
  border-radius: 8px;
  background: #fff;
  overflow: visible;
}

.td-settings-tabs {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  border-bottom: 1px solid #ece9e7;
  border-radius: 8px 8px 0 0;
  background: #fbfbfc;
  padding: 10px;
}

.td-settings-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #615b5e;
  cursor: pointer;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
}

.td-settings-tab:hover {
  border-color: #ded6d9;
  background: #fff;
}

.td-settings-tab.is-active {
  border-color: #c64b7f;
  background: #fff;
  color: #9f315b;
  box-shadow: 0 8px 24px rgba(157, 49, 91, .12);
}

.td-settings-tab-dot {
  display: block;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: currentColor;
}

.td-settings-tab-dot-position {
  border-radius: 999px;
}

.td-settings-tab-dot-background {
  border-radius: 2px;
  box-shadow: inset 0 0 0 4px #fff;
}

.td-settings-tab-icon {
  display: block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.td-settings-tab span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.td-settings-pane {
  padding: 18px;
}

.td-panel-tabs-shell {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.td-panel-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 10px;
}

.td-panel-tab {
  display: flex;
  min-width: 0;
  min-height: 58px;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  border: 1px solid #d8dce3;
  border-radius: 8px 8px 0 0;
  background: #fff;
  color: #3b3537;
  cursor: pointer;
  padding: 10px 12px;
  text-align: left;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease;
}

.td-panel-tab:hover {
  border-color: #cfd7e1;
  background: #fbfbfc;
}

.td-panel-tab.is-active {
  border-color: #bd4a78;
  background: #fff7fb;
  box-shadow: inset 0 -3px 0 #bd4a78;
  color: #241f20;
}

.td-panel-tab-title {
  overflow: hidden;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.td-panel-tab-summary {
  overflow: hidden;
  color: #6d6669;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.td-panel-tab-body {
  min-width: 0;
}

.td-tab-panel-section {
  min-width: 0;
}

.td-tab-panel-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

.td-tab-panel-header h3 {
  margin: 0;
  color: #241f20;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.25;
}

.td-tab-panel-header p {
  margin: 0;
  color: #6d6669;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.td-accordion-card {
  margin: 0 0 14px;
  border: 1px solid #d8dce3;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.td-accordion-card.is-open {
  border-color: #cfd7e1;
}

.td-accordion-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  border: 0;
  background: #fff;
  color: #241f20;
  cursor: pointer;
  padding: 16px 18px;
  text-align: left;
  transition: background-color .2s ease, border-color .2s ease;
}

.td-accordion-header:hover {
  background: #fbfbfc;
}

.td-accordion-card.is-open .td-accordion-header {
  border-bottom: 1px solid #ece9e7;
}

.td-accordion-title {
  font-size: 24px;
  font-weight: 900;
  line-height: 1.25;
}

.td-accordion-summary {
  min-width: 0;
  overflow: hidden;
  color: #6d6669;
  font-size: 12px;
  font-weight: 900;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.td-accordion-icon {
  position: relative;
  display: grid;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #f1ece9;
  color: #7a5369;
  font-weight: 900;
  place-items: center;
  transition: background-color .2s ease, color .2s ease, transform .22s ease;
}

.td-accordion-card.is-open .td-accordion-icon {
  transform: rotate(180deg);
}

.td-accordion-icon::before,
.td-accordion-icon::after {
  position: absolute;
  width: 10px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.td-accordion-icon.is-plus::after {
  transform: rotate(90deg);
}

.td-accordion-body-wrap {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  opacity: 0;
  transition: grid-template-rows .24s cubic-bezier(.2, .8, .2, 1), opacity .18s ease;
}

.td-accordion-card.is-open .td-accordion-body-wrap {
  grid-template-rows: 1fr;
  opacity: 1;
}

.td-accordion-body {
  min-height: 0;
  overflow: hidden;
  padding: 18px;
}

.td-inner-section {
  margin-top: 18px;
  border-top: 1px solid #ece9e7;
  padding-top: 18px;
}

.td-inner-section-header {
  margin-bottom: 12px;
}

.td-inner-section-header h4 {
  margin: 0;
  color: #241f20;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
}

.td-inner-section-header p {
  margin: 4px 0 0;
  color: #6d6669;
  font-size: 12px;
  font-weight: 700;
}

@keyframes tdFadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.td-subsection {
  margin: 0 0 18px;
  border-radius: 8px;
  border: 0;
  background: #f3f3f4;
  padding: 16px;
}

.td-setting-card {
  margin: 0 0 18px;
  border: 1px solid #d8dce3;
  border-radius: 8px;
  background: #fff;
  padding: 22px;
}

.td-setting-card-header {
  margin-bottom: 18px;
}

.td-setting-card h4 {
  margin: 0;
  color: #241f20;
  font-size: 25px;
  line-height: 1.3;
  font-weight: 900;
}

.td-setting-card p {
  margin: 8px 0 0;
  color: #5f595b;
  font-size: 16px;
  font-weight: 700;
}

.td-subsection-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.td-subsection h4 {
  margin: 0;
  color: #241f20;
  font-size: 25px;
  line-height: 1.3;
  font-weight: 900;
}

.td-subsection p {
  margin: 8px 0 0;
  color: #5f595b;
  font-size: 16px;
  font-weight: 700;
}

.td-text-button {
  min-height: 30px;
  border: 0;
  background: transparent;
  color: #9f315b;
  cursor: pointer;
  padding: 4px 0;
  font-size: 12px;
  font-weight: 900;
}

.td-outline-add-button {
  min-height: 32px;
  border: 1px solid #d7c9cf;
  border-radius: 6px;
  background: #fff;
  color: #8f2e56;
  cursor: pointer;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 900;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.td-outline-add-button:hover {
  border-color: #bd4a78;
  background: #fff7fb;
  color: #7f274b;
}

.td-outline-add-button:focus-visible {
  outline: 2px solid #0b84ff;
  outline-offset: 2px;
}

.td-upload-shell {
  position: relative;
}

.td-upload {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 2px 12px;
  align-items: center;
  margin-bottom: 14px;
  border: 1px solid #d9d2ce;
  border-radius: 8px;
  background: #fff;
  cursor: default;
  padding: 14px;
}

.td-upload:hover {
  border-color: #bd4a78;
  background: #fffafd;
}

.td-upload.is-active {
  border-color: #bd4a78;
  background: #fff7fb;
}

.td-upload.is-crop-open {
  gap: 8px 12px;
}

.td-field .td-upload-picker,
.td-upload-picker {
  display: contents;
  margin: 0;
}

.td-upload-picker > span {
  cursor: pointer;
}

.td-upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.td-upload-icon {
  display: grid;
  grid-column: 1;
  grid-row: span 2;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #f4e8ee;
  color: #9f315b;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  place-items: center;
}

.td-upload-main {
  grid-column: 2;
  min-width: 0;
  overflow: hidden;
  color: #2f292b;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.td-upload-sub {
  grid-column: 2;
  color: #7d7477;
  font-size: 12px;
  font-weight: 700;
}

.td-upload-preview-wrap {
  position: relative;
  grid-column: 3;
  grid-row: 1 / span 2;
  display: block;
  width: 64px;
  height: 48px;
}

.td-upload-preview {
  width: 64px;
  height: 48px;
  border: 1px solid rgba(159, 49, 91, .18);
  border-radius: 6px;
  background: #fff;
  object-fit: cover;
}

.td-upload-actions {
  display: flex;
  grid-column: 2 / 4;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
  margin-top: 8px;
}

.td-upload-crop-toggle {
  min-height: 34px;
  border: 1px solid #d7a5ba;
  border-radius: 7px;
  background: #fff8fb;
  color: #8f2e56;
  cursor: pointer;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 900;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.td-upload-crop-toggle:hover,
.td-upload-crop-toggle.is-active {
  border-color: #bd4a78;
  background: #fff0f6;
  color: #7f274b;
  box-shadow: 0 4px 14px rgba(189, 74, 120, .12);
}

.td-upload-remove {
  z-index: 2;
  display: grid;
  grid-column: 3;
  grid-row: 1 / span 2;
  justify-self: end;
  align-self: start;
  width: 32px;
  height: 32px;
  margin-top: -10px;
  margin-right: -10px;
  border: 1px solid rgba(36, 31, 32, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 2px 8px rgba(36, 31, 32, .18);
  color: #7f274b;
  cursor: pointer;
  padding: 0;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  place-items: center;
}

.td-upload-remove:hover {
  background: #fff0f6;
  border-color: #bd4a78;
}

.td-background-crop-editor.td-crop-editor {
  grid-column: 1 / -1;
  margin-top: 12px;
  border: 0;
  border-top: 1px solid #eadde3;
  border-radius: 0;
  background: transparent;
  padding: 14px 0 0;
}

.td-background-image-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  border: 1px solid #d9d2ce;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.td-background-image-preview {
  width: 72px;
  height: 72px;
  overflow: hidden;
  border: 1px solid #ece9e7;
  border-radius: 7px;
  background: #f5f6f8;
}

.td-background-image-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.td-background-image-meta {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.td-background-image-meta strong,
.td-background-image-meta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.td-background-image-meta strong {
  color: #2f292b;
  font-size: 14px;
  font-weight: 900;
}

.td-background-image-meta span {
  color: #6d6669;
  font-size: 12px;
  font-weight: 700;
}

.td-background-image-meta .td-background-image-label {
  color: #9f315b;
  font-size: 11px;
  font-weight: 900;
}

.td-background-image-actions {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.td-background-change-button,
.td-background-remove-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  text-align: center;
}

.td-background-remove-button {
  min-width: 72px;
}

.td-background-position-controls {
  margin-bottom: 14px;
}

.td-individual-editor {
  margin: 0 0 18px;
}

.td-individual-editor .td-panel {
  margin: 0;
  border-radius: 6px;
  background: #f3f3f4;
  padding: 14px;
}

.td-individual-editor .td-panel-header {
  align-items: center;
}

.td-field label {
  display: block;
  margin-bottom: 7px;
  color: #413b3d;
  font-size: 12px;
  font-weight: 900;
}

.td-field select,
.td-field input[type="number"] {
  width: 100%;
  border: 1px solid #d9d2ce;
  border-radius: 6px;
  background: #fff;
  padding: 8px 10px;
}

.td-field input[type="range"] {
  width: 100%;
}

.td-font-picker-field {
  position: relative;
}

.td-font-picker-trigger {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 52px;
  border: 1px solid #d9d2ce;
  border-radius: 8px;
  background: #fff;
  color: #241f20;
  cursor: pointer;
  padding: 9px 12px;
  text-align: left;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.td-font-picker-trigger.is-open {
  border-color: #9f6b93;
  box-shadow: 0 0 0 3px rgba(159, 107, 147, .12);
}

.td-font-picker-current,
.td-font-option-main {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.td-font-picker-name,
.td-font-option-name {
  overflow: hidden;
  color: #241f20;
  font-size: 14px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.td-font-picker-sample,
.td-font-option-sample {
  overflow: hidden;
  color: #736b6f;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.td-font-picker-caret {
  position: relative;
  width: 18px;
  height: 18px;
}

.td-font-picker-caret::before {
  position: absolute;
  top: 5px;
  left: 4px;
  width: 9px;
  height: 9px;
  border-right: 2px solid #6f666a;
  border-bottom: 2px solid #6f666a;
  content: "";
  transform: rotate(45deg);
}

.td-font-menu {
  position: absolute;
  z-index: 20;
  right: 0;
  left: 0;
  margin-top: 6px;
  border: 1px solid #d8dce3;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(37, 31, 34, .16);
  padding: 10px;
}

.td-font-search {
  width: 100%;
  min-height: 40px;
  border: 1px solid #d9d2ce;
  border-radius: 7px;
  padding: 8px 10px;
  font-weight: 700;
}

.td-font-menu-list {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
  padding: 8px 2px 2px;
}

.td-font-group {
  display: grid;
  gap: 2px;
}

.td-font-group-title {
  color: #8b8387;
  padding: 6px 8px 3px;
  font-size: 11px;
  font-weight: 900;
}

.td-font-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  gap: 10px;
  align-items: center;
  width: 100%;
  border: 0;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
  padding: 8px;
  text-align: left;
}

.td-font-option:hover,
.td-font-option.is-active {
  background: #f4f8fb;
}

.td-font-option-check {
  color: #1d6fc7;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.td-font-empty {
  color: #7d7477;
  padding: 12px 8px;
  font-size: 13px;
  font-weight: 700;
}

.td-field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.td-field-label-row label {
  margin: 0;
}

.td-range-control {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 144px;
  gap: 14px;
  align-items: center;
}

.td-app .td-range-reset {
  min-height: 24px;
  border: 1px solid #d7c9cf;
  border-radius: 5px;
  background: #fff;
  color: #8f2e56;
  cursor: pointer;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, opacity .18s ease;
}

.td-app .td-range-reset:hover:not(:disabled) {
  border-color: #bd4a78;
  background: #fff7fb;
  color: #7f274b;
}

.td-app .td-range-reset:disabled {
  cursor: default;
  opacity: .42;
}

.td-app .td-range-reset:focus-visible {
  outline: 2px solid #0b84ff;
  outline-offset: 2px;
}

.td-range-control input[type="range"] {
  width: 100%;
  accent-color: #9f6b93;
}

.td-value-input {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto 28px;
  gap: 4px;
  align-items: center;
  min-height: 42px;
  border: 1px solid #d9d2ce;
  border-radius: 8px;
  background: #fff;
  padding: 0 5px;
}

.td-value-stepper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  background: #f7f3f6;
  color: #8f2e56;
  cursor: pointer;
  padding: 0;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  touch-action: manipulation;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
}

.td-value-stepper:hover:not(:disabled) {
  background: #fff0f6;
  color: #7f274b;
}

.td-value-stepper:disabled {
  cursor: default;
  color: #c8b8c0;
  opacity: .55;
}

.td-value-input input[type="number"] {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0;
  font-weight: 900;
  outline: none;
  text-align: center;
}

.td-value-input span {
  color: #766d72;
  font-size: 12px;
  font-weight: 900;
}

.td-crop-editor {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  border: 1px solid #e0d9d6;
  border-radius: 8px;
  background: #fbfbfc;
  padding: 12px;
}

.td-crop-editor-summary {
  margin-top: 2px;
  border: 0;
  background: transparent;
  padding: 0;
}

.td-crop-button {
  width: 100%;
  min-height: 38px;
  margin-top: 8px;
  border: 1px solid #d7c9cf;
  border-radius: 7px;
  background: #fff;
  color: #8f2e56;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.td-crop-button:hover {
  border-color: #bd4a78;
  background: #fff7fb;
}

.td-crop-reset {
  justify-self: start;
}

.td-crop-preview-shell {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 760px;
  min-height: 250px;
  border: 0;
  border-radius: 0;
  background: #f0f0f1;
  padding: 0;
  justify-self: center;
}

.td-crop-source-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 100%;
  min-height: 220px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #9c9c9c;
  box-shadow: none;
  cursor: grab;
  touch-action: auto;
  user-select: none;
}

.td-crop-image-box {
  position: relative;
  display: block;
  width: min(100%, calc(360px * var(--td-crop-image-ratio, 1)));
  max-height: 360px;
}

.td-crop-source-stage:active {
  cursor: grabbing;
}

.td-crop-source-image {
  display: block;
  width: 100%;
  height: 100%;
  max-height: inherit;
  border-radius: 0;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.td-crop-selection-frame {
  position: absolute;
  z-index: 2;
  max-width: 100%;
  max-height: 100%;
  border: 2px solid #5bb6ff;
  box-shadow: 0 0 0 999px rgba(36, 31, 32, .42);
  pointer-events: none;
  transform: none;
}

.td-crop-selection-frame::before,
.td-crop-selection-frame::after {
  display: none;
  content: none;
}

.td-crop-editor .td-field {
  min-width: 0;
}

.td-crop-editor .td-field-label-row label {
  white-space: nowrap;
}

.td-crop-editor .td-range-control {
  grid-template-columns: minmax(120px, 1fr) 116px;
}

.td-text-align-control {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  border-radius: 8px;
  background: #f1ece9;
  padding: 4px;
}

.td-text-align-button {
  display: grid;
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #5c5356;
  cursor: pointer;
  place-items: center;
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.td-text-align-button:hover {
  background: #fff;
}

.td-text-align-button.is-active {
  background: #fff;
  color: #241f20;
  box-shadow: 0 1px 2px rgba(36, 31, 32, .08);
}

.td-text-align-button:focus-visible {
  outline: 2px solid #0b84ff;
  outline-offset: 2px;
}

.td-align-icon {
  display: grid;
  gap: 3px;
  width: 22px;
}

.td-align-icon span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.td-align-icon span:nth-child(1),
.td-align-icon span:nth-child(3) {
  width: 22px;
}

.td-align-icon span:nth-child(2) {
  width: 15px;
}

.td-align-icon span:nth-child(4) {
  width: 18px;
}

.td-align-icon-start {
  justify-items: start;
}

.td-align-icon-center {
  justify-items: center;
}

.td-align-icon-end {
  justify-items: end;
}

.td-size-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 0 0 14px;
  border-radius: 8px;
  background: #f1ece9;
  padding: 4px;
}

.td-size-mode-button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #655c60;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.td-size-mode-button.is-active {
  background: #fff;
  color: #241f20;
}

.td-segment-control {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  border-radius: 8px;
  background: #f1ece9;
  padding: 4px;
}

.td-segment-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #655c60;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.td-segment-button.is-active {
  background: #fff;
  color: #241f20;
}

.td-segment-button:hover {
  background: rgba(255, 255, 255, .72);
}

.td-segment-button:focus-visible {
  outline: 2px solid #0b84ff;
  outline-offset: 2px;
}

.td-segment-icon {
  flex: 0 0 auto;
  display: block;
  width: 22px;
  height: 22px;
  color: currentColor;
}

.td-segment-label {
  min-width: 0;
}

.td-field-inline {
  display: grid;
  grid-template-columns: 1fr 86px auto;
  gap: 8px;
  align-items: center;
}

.td-field-inline label {
  margin: 0;
}

.td-outline-list {
  display: grid;
  gap: 12px;
}

.td-outline-item {
  border: 1px solid #e0d9d6;
  border-radius: 8px;
  background: #fbfbfc;
  padding: 12px;
}

.td-outline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.td-outline-title {
  color: #332d2f;
  font-size: 13px;
  font-weight: 900;
}

.td-outline-empty {
  border: 1px dashed #d5cbc7;
  border-radius: 8px;
  color: #7d7477;
  padding: 14px;
  font-size: 13px;
  font-weight: 700;
}

.td-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.td-input-note {
  color: #6d6669;
  font-size: 12px;
}

.td-swatches {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(6, 40px);
  gap: 10px;
  align-items: center;
  justify-content: start;
  width: 100%;
  padding: 2px;
}

.td-swatch {
  justify-self: center;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border: 1px solid rgba(45, 39, 42, .12);
  border-radius: 999px;
  background-clip: padding-box;
  box-shadow: none;
  cursor: pointer;
  text-indent: -999px;
}

.td-swatch.is-active {
  border-color: #ffffff;
  box-shadow: 0 0 0 3px #3b82f6;
}

.td-swatch.is-light {
  border-color: #d8dce3;
}

/* Fill picker: tabs + gradient swatches */
.td-fill-picker {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee8f0;
}

.td-fill-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 4px;
  border-radius: 8px;
  background: #f5f2f7;
}

.td-fill-tab {
  min-height: 38px;
  padding: 6px 14px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #665e6f;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.td-fill-tab.is-active {
  background: #fff;
  color: #4f4264;
  box-shadow: 0 4px 14px rgba(54, 46, 68, .12);
}

.td-gradient-swatches {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
  padding: 2px;
}

.td-gradient-extra-swatches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-height: 180px;
  overflow-y: auto;
  padding: 2px 4px 2px 2px;
}

.td-palette-groups {
  display: grid;
  gap: 18px;
  padding-top: 2px;
}

.td-palette-group {
  display: grid;
  gap: 9px;
}

.td-palette-group-title {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  color: #746d7b;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
}

.td-palette-group-title.has-action {
  grid-template-columns: auto minmax(0, 1fr) 30px;
}

.td-palette-group-title::after {
  grid-column: 2;
  height: 1px;
  background: #eee8f0;
  content: "";
}

.td-palette-group-title.has-action .td-palette-settings-button {
  grid-column: 3;
  justify-self: end;
}

.td-palette-groups .td-swatches {
  grid-template-columns: repeat(8, 32px);
  gap: 10px;
  padding: 0;
}

.td-palette-groups .td-swatch {
  width: 32px;
  height: 32px;
}

.td-palette-groups .td-color-plus-button {
  width: 32px;
  height: 32px;
}

.td-palette-groups .td-color-plus-mark,
.td-palette-groups .td-color-plus-mark::before {
  width: 10px;
  height: 2px;
}

.td-grad-swatch {
  border: 0 !important;
  border-radius: 7px !important;
  width: 100% !important;
  height: 26px !important;
  background-clip: border-box;
  box-shadow: none !important;
}

.td-palette-groups .td-gradient-swatches {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
}

.td-palette-groups .td-grad-swatch {
  height: 22px !important;
  border-radius: 6px !important;
}

.td-solid-swatch-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  gap: 10px;
  align-items: start;
}

.td-gradient-position-label {
  color: #6d6675;
  font-size: 12px;
  font-weight: 900;
}

.td-color-plus-wrap {
  position: relative;
  display: inline-flex;
  width: max-content;
  margin-top: 0;
}

.td-color-plus-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border: 1px solid rgba(45, 39, 42, .12);
  border-radius: 999px;
  background: #d6dbe3;
  cursor: pointer;
  transition: box-shadow .15s, transform .15s;
}

.td-color-plus-button:hover {
  transform: translateY(-1px);
}

.td-color-plus-button.is-open {
  box-shadow: 0 0 0 3px #3b82f6, 0 3px 10px rgba(36, 31, 32, .16);
}

.td-color-plus-preview {
  position: absolute;
  inset: 0;
  opacity: .26;
}

.td-color-plus-mark,
.td-color-plus-mark::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 3px;
  border-radius: 999px;
  background: #4f5665;
  content: "";
  transform: translate(-50%, -50%);
}

.td-color-plus-mark::before {
  transform: translate(-50%, -50%) rotate(90deg);
}

.td-color-popover {
  box-sizing: border-box;
  width: 236px;
  padding: 12px;
  border: 1px solid rgba(36, 31, 32, .1);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(36, 31, 32, .2);
}

.td-color-popover * {
  box-sizing: border-box;
}

.td-color-area {
  position: relative;
  height: 164px;
  overflow: hidden;
  border-radius: 10px;
  cursor: crosshair;
  background-image:
    linear-gradient(to top, #000, transparent),
    linear-gradient(to right, #fff, transparent);
  touch-action: none;
}

.td-color-area::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0));
  content: "";
}

.td-color-area::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #000, rgba(0, 0, 0, 0));
  content: "";
}

.td-color-area-handle {
  position: absolute;
  z-index: 1;
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .32), 0 2px 8px rgba(0, 0, 0, .28);
  transform: translate(-50%, -50%);
}

.td-color-popover-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.td-color-popover-preview {
  position: relative;
  width: 30px;
  height: 30px;
  overflow: hidden;
  border: 1px solid #ddd7e2;
  border-radius: 999px;
  background-color: #fff;
  background-image:
    linear-gradient(45deg, #d7d2dc 25%, transparent 25%),
    linear-gradient(-45deg, #d7d2dc 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #d7d2dc 75%),
    linear-gradient(-45deg, transparent 75%, #d7d2dc 75%);
  background-position: 0 0, 0 5px, 5px -5px, -5px 0;
  background-size: 10px 10px;
}

.td-color-popover-preview span {
  position: absolute;
  inset: 0;
}

.td-color-popover-input {
  min-width: 0;
  height: 34px;
  border: 1px solid #d7d2dc;
  border-radius: 7px;
  color: #4d4654;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 800;
  padding: 0 9px;
  text-transform: uppercase;
}

.td-color-popover-label,
.td-color-popover-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  color: #6d6675;
  font-size: 12px;
  font-weight: 900;
}

.td-color-hue-range,
.td-color-alpha-range {
  width: 100%;
  height: 28px;
  margin: 10px 0 2px;
  appearance: none;
  background: transparent;
  cursor: pointer;
  touch-action: pan-x;
}

.td-color-hue-range {
  border-radius: 999px;
  background: linear-gradient(to right, #ff0040 0%, #ff00ff 15%, #3200ff 28%, #0094ff 42%, #00f2c8 54%, #00f000 66%, #fff000 82%, #ff2a00 100%);
}

.td-color-hue-range::-webkit-slider-runnable-track,
.td-color-alpha-range::-webkit-slider-runnable-track {
  height: 22px;
  border-radius: 999px;
  background: transparent;
}

.td-color-hue-range::-webkit-slider-thumb,
.td-color-alpha-range::-webkit-slider-thumb {
  width: 30px;
  height: 30px;
  margin-top: -4px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: #e733ef;
  box-shadow: 0 1px 8px rgba(36, 31, 32, .28);
  appearance: none;
}

.td-color-hue-range::-moz-range-track,
.td-color-alpha-range::-moz-range-track {
  height: 22px;
  border-radius: 999px;
  background: transparent;
}

.td-color-hue-range::-moz-range-thumb,
.td-color-alpha-range::-moz-range-thumb {
  width: 30px;
  height: 30px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: #e733ef;
  box-shadow: 0 1px 8px rgba(36, 31, 32, .28);
}

.td-color-alpha-range {
  border-radius: 999px;
  background:
    linear-gradient(to right, rgba(112, 90, 130, 0), #705a82),
    linear-gradient(45deg, #d7d2dc 25%, transparent 25%),
    linear-gradient(-45deg, #d7d2dc 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #d7d2dc 75%),
    linear-gradient(-45deg, transparent 75%, #d7d2dc 75%);
  background-position: 0 0, 0 0, 0 6px, 6px -6px, -6px 0;
  background-size: auto, 12px 12px, 12px 12px, 12px 12px, 12px 12px;
}

.td-color-alpha-range::-webkit-slider-thumb,
.td-color-alpha-range::-moz-range-thumb {
  background: #705a82;
}

.td-alpha-range {
  width: 100%;
  accent-color: #705a82;
}

.td-gradient-preview {
  height: 42px;
  margin-top: 10px;
  border: 1px solid rgba(45, 39, 42, .1);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .38);
}

.td-gradient-detail-panel {
  display: grid;
  gap: 16px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #ece7ef;
  border-radius: 8px;
  background: #fbfafc;
}

.td-gradient-palette-view {
  display: grid;
  gap: 10px;
}

.td-gradient-palette-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 30px;
}

.td-palette-settings-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 30px;
  height: 30px;
  border: 1px solid #ded8e5;
  border-radius: 999px;
  background: #fff;
  color: #705a82;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}

.td-palette-settings-button.has-label {
  width: auto;
  min-width: 0;
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.td-palette-settings-button:hover {
  border-color: #cfc4d8;
  background: #f8f5fa;
}

.td-palette-settings-icon {
  width: 15px;
  height: 15px;
  fill: currentColor;
  flex: 0 0 auto;
}

.td-palette-back-button {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #5d5269;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  padding: 0;
}

.td-palette-back-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex: 0 0 auto;
}

.td-palette-back-button:hover {
  color: #3f3748;
}

.td-gradient-type-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.td-gradient-type-row label {
  margin: 0;
  color: #6d6675;
  font-size: 12px;
  font-weight: 900;
}

.td-gradient-type-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 3px;
  border-radius: 8px;
  background: #f4f1f5;
}

.td-gradient-type-option {
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #655d69;
  font-size: 12px !important;
  font-weight: 900 !important;
  cursor: pointer;
}

.td-gradient-type-option.is-active {
  background: #fff;
  color: #3f3748;
  box-shadow: 0 2px 8px rgba(54, 46, 68, .12);
}

.td-gradient-type-option:hover {
  background: rgba(255, 255, 255, .72);
}

.td-gradient-range-control {
  display: grid;
  gap: 10px;
}

.td-gradient-range-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.td-gradient-range-values {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #6d6675;
  font-size: 12px;
  font-weight: 900;
}

.td-gradient-dual-range {
  position: relative;
  height: 40px;
  border-radius: 999px;
}

.td-gradient-dual-range::before {
  position: absolute;
  top: 15px;
  right: 0;
  left: 0;
  height: 10px;
  border-radius: 999px;
  background: #ececf0;
  content: "";
}

.td-gradient-dual-range::after {
  position: absolute;
  top: 15px;
  left: var(--left-stop);
  width: calc(var(--right-stop) - var(--left-stop));
  height: 10px;
  border-radius: 999px;
  background: var(--gradient-preview);
  content: "";
}

.td-gradient-stop-range {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 40px;
  margin: 0;
  appearance: none;
  background: transparent;
  pointer-events: none;
}

.td-gradient-stop-range::-webkit-slider-runnable-track {
  height: 40px;
  background: transparent;
}

.td-gradient-stop-range::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  margin-top: 9px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #705a82;
  box-shadow: 0 0 0 1px rgba(36, 31, 32, .24);
  appearance: none;
  pointer-events: auto;
}

.td-gradient-stop-range::-moz-range-track {
  height: 40px;
  background: transparent;
}

.td-gradient-stop-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #705a82;
  box-shadow: 0 0 0 1px rgba(36, 31, 32, .24);
  pointer-events: auto;
}

.td-gradient-stop-range-start::-webkit-slider-thumb {
  background: var(--gradient-left-color, #ff7a18);
}

.td-gradient-stop-range-start::-moz-range-thumb {
  background: var(--gradient-left-color, #ff7a18);
}

.td-gradient-stop-range-end::-webkit-slider-thumb {
  background: var(--gradient-right-color, #ff2d95);
}

.td-gradient-stop-range-end::-moz-range-thumb {
  background: var(--gradient-right-color, #ff2d95);
}

.td-fill-detail-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 30px;
  margin-top: 8px;
  padding: 4px 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #bd4a78;
  font-size: 11px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  cursor: pointer;
  align-self: flex-start;
  transition: background .15s, color .15s;
}

.td-fill-detail-button:hover {
  color: #9f315b;
  background: #fbedf3;
}

.td-expand-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  transition: transform .15s;
}

.td-fill-detail-chevron {
  position: relative;
  display: block;
  width: 9px;
  height: 9px;
  border-right: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  border-radius: 1px;
  transform: translateY(-2px) rotate(45deg);
}

.td-expand-icon.is-open {
  transform: rotate(180deg);
}

.td-grad-swatch.is-active {
  box-shadow: 0 0 0 3px #3b82f6 !important;
}

.td-background-size-group {
  margin-bottom: 8px;
}

.td-background-size-group > .td-field:last-child,
.td-background-size-group > div > .td-field:last-child {
  margin-bottom: 0;
}

.td-aspect-field {
  position: relative;
}

.td-aspect-select {
  position: relative;
}

.td-aspect-trigger,
.td-aspect-option {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  min-height: 42px;
  border: 1px solid #d9d2ce;
  border-radius: 7px;
  background: #fff;
  color: #2f292b;
  cursor: pointer;
  padding: 8px 10px;
  text-align: left;
}

.td-aspect-trigger {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto 18px;
}

.td-aspect-trigger:hover,
.td-aspect-option:hover,
.td-aspect-option.is-active {
  border-color: #bd4a78;
  background: #fff7fb;
}

.td-aspect-caret {
  position: relative;
  width: 18px;
  height: 18px;
}

.td-aspect-caret::before {
  position: absolute;
  top: 5px;
  left: 4px;
  width: 9px;
  height: 9px;
  border-right: 2px solid #6f666a;
  border-bottom: 2px solid #6f666a;
  content: "";
  transform: rotate(45deg);
}

.td-aspect-menu {
  position: absolute;
  z-index: 25;
  right: 0;
  left: 0;
  display: grid;
  gap: 6px;
  margin-top: 6px;
  border: 1px solid #d8dce3;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(37, 31, 34, .16);
  padding: 8px;
}

.td-aspect-menu .td-aspect-option {
  border-color: transparent;
}

.td-aspect-icon {
  display: block;
  justify-self: center;
  border: 2px solid currentColor;
  border-radius: 5px;
  color: #615b5e;
}

.td-aspect-icon-square {
  width: 18px;
  height: 18px;
}

.td-aspect-icon-portrait {
  width: 16px;
  height: 22px;
}

.td-aspect-icon-story {
  width: 12px;
  height: 24px;
}

.td-aspect-icon-landscape {
  width: 24px;
  height: 18px;
}

.td-aspect-icon-wide {
  width: 26px;
  height: 14px;
}

.td-aspect-icon-custom {
  width: 22px;
  height: 18px;
  border-style: dashed;
}

.td-aspect-option-label {
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.td-aspect-option-ratio {
  color: #8b8387;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.td-size-preset-control {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.td-size-preset-button {
  display: grid;
  gap: 2px;
  min-height: 48px;
  border: 1px solid #d9d2ce;
  border-radius: 7px;
  background: #fff;
  color: #2f292b;
  cursor: pointer;
  padding: 8px 10px;
  text-align: left;
}

.td-size-preset-button:hover,
.td-size-preset-button.is-active {
  border-color: #bd4a78;
  background: #fff7fb;
}

.td-size-preset-label {
  font-size: 13px;
  font-weight: 900;
}

.td-size-preset-note {
  color: #8b8387;
  font-size: 11px;
  font-weight: 800;
}

.td-shape-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 48px);
  gap: 8px;
}

.td-shape-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid #d9d2ce;
  border-radius: 7px;
  background: #fff;
  color: #3a3336;
  cursor: pointer;
  padding: 0;
}

.td-shape-button:hover,
.td-shape-button.is-active {
  border-color: #bd4a78;
  background: #fff7fb;
  color: #8f2e56;
}

.td-shape-button:focus-visible {
  outline: 3px solid rgba(189, 74, 120, .24);
  outline-offset: 2px;
}

.td-shape-preview {
  display: block;
  width: 30px;
  height: 30px;
  background: currentColor;
}

.td-shape-label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  padding: 0;
  white-space: nowrap;
}

.td-shape-preview-rect {
  border-radius: 2px;
}

.td-shape-preview-rounded {
  border-radius: 9px;
}

.td-shape-preview-circle {
  border-radius: 999px;
}

.td-shape-preview-heart {
  clip-path: polygon(50% 91%, 41% 82%, 26% 69%, 14% 55%, 8% 40%, 10% 25%, 18% 13%, 31% 8%, 42% 13%, 50% 22%, 58% 13%, 69% 8%, 82% 13%, 90% 25%, 92% 40%, 86% 55%, 74% 69%, 59% 82%);
}

.td-shape-preview-badge {
  -webkit-mask-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%3E%3Cpath%20fill%3D%22%23000%22%20stroke%3D%22%23000%22%20stroke-width%3D%223%22%20stroke-linejoin%3D%22round%22%20d%3D%22M50%202%20L60%2013%20L74%208%20L77%2023%20L92%2026%20L87%2040%20L98%2050%20L87%2060%20L92%2074%20L77%2077%20L74%2092%20L60%2087%20L50%2098%20L40%2087%20L26%2092%20L23%2077%20L8%2074%20L13%2060%20L2%2050%20L13%2040%20L8%2026%20L23%2023%20L26%208%20L40%2013%20Z%22%2F%3E%3C%2Fsvg%3E");
  mask-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%3E%3Cpath%20fill%3D%22%23000%22%20stroke%3D%22%23000%22%20stroke-width%3D%223%22%20stroke-linejoin%3D%22round%22%20d%3D%22M50%202%20L60%2013%20L74%208%20L77%2023%20L92%2026%20L87%2040%20L98%2050%20L87%2060%20L92%2074%20L77%2077%20L74%2092%20L60%2087%20L50%2098%20L40%2087%20L26%2092%20L23%2077%20L8%2074%20L13%2060%20L2%2050%20L13%2040%20L8%2026%20L23%2023%20L26%208%20L40%2013%20Z%22%2F%3E%3C%2Fsvg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}



.td-button {
  min-height: 42px;
  border: 1px solid #d5cbc7;
  border-radius: 6px;
  background: #fff;
  color: #332d2f;
  cursor: pointer;
  padding: 10px 12px;
  font-weight: 900;
}

.td-button:hover {
  background: #faf7f6;
}

.td-button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.td-button-primary {
  border-color: #bd4a78;
  background: #bd4a78;
  color: #fff;
}

.td-button-primary:hover {
  background: #a93e69;
}

@media (max-width: 1180px) {
  .td-app {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .td-workspace {
    grid-template-columns: 1fr;
    height: auto;
  }

  .td-controls-column {
    display: block;
    overflow: visible;
    padding-right: 0;
  }

  .td-controls-scroll {
    min-height: 0;
    overflow: visible;
    padding-right: 0;
  }

  .td-settings-tabs {
    z-index: 24;
    top: var(--td-preview-sticky-offset, 0px);
    box-shadow: 0 8px 18px rgba(36, 31, 32, .08);
  }

  .td-panel-tabs {
    gap: 6px;
  }

  .td-panel-tab {
    min-height: 52px;
    padding: 9px 10px;
  }

  .td-panel-tab-title {
    font-size: 15px;
  }

  .td-panel-tab-summary {
    font-size: 10px;
  }

  .td-preview-column {
    position: sticky;
    top: 0;
    z-index: 30;
    margin: -18px -18px 14px;
    border-bottom: 1px solid #dedade;
    background: #f3f3f4;
    padding: 10px 18px 12px;
  }

  .td-preview-panel {
    height: auto;
    border: 1px solid #e1dde0;
    padding: 10px;
  }

  .td-draft-toolbar {
    gap: 8px;
    margin-bottom: 8px;
  }

  .td-draft-status {
    font-size: 11px;
  }

  .td-draft-actions {
    gap: 6px;
  }

  .td-history-actions {
    gap: 4px;
    margin-left: auto;
  }

  .td-history-action {
    width: 34px;
    height: 34px;
  }

  .td-draft-action {
    min-width: 74px;
    min-height: 34px;
    padding: 7px 8px;
    font-size: 12px;
  }

  .td-draft-popover {
    margin-bottom: 10px;
    padding: 10px;
  }

  .td-preview-panel .td-panel-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 7px;
    margin: 0 0 8px;
  }

  .td-panel .td-preview-help {
    flex: 1 1 auto;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
  }

  .td-preview-help-desktop {
    display: none;
  }

  .td-preview-help-mobile {
    display: inline;
  }

  .td-preview-stage-wrap {
    flex: none;
    height: 168px;
    min-height: 168px;
    margin-top: 0;
  }

  .td-preview-stage {
    padding: 8px;
  }

  .td-preview-card {
    width: 96%;
  }

  .td-download-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
  }

  .td-download-bar .td-button {
    min-height: 42px;
    padding: 8px 10px;
    font-size: 12px;
    white-space: nowrap;
  }

  .td-preview-zoom {
    display: none;
  }

  .td-preview-char {
    font-size: 54px;
  }
}

@media (min-width: 981px) and (max-width: 1180px) {
  .td-app {
    padding: 18px clamp(18px, 4vw, 42px);
  }

  .td-preview-column {
    position: sticky;
    top: 0;
    z-index: 30;
    margin: 0 0 14px;
    border-bottom: 1px solid #dedade;
    background: #f3f3f4;
    padding: 0 0 12px;
  }

  .td-preview-panel {
    min-height: 520px;
  }

  .td-preview-panel .td-panel-header {
    display: flex;
  }

  .td-preview-stage-wrap {
    height: 420px;
    min-height: 420px;
    margin-top: 0;
  }

  .td-preview-stage {
    padding: 24px;
  }

  .td-download-bar {
    display: grid;
  }

  .td-preview-zoom {
    display: flex;
    right: 10px;
    bottom: 10px;
  }
}

@media (max-width: 560px) {
  .td-app {
    contain: none;
    padding: 12px;
  }

  .td-preview-column {
    margin: -12px -12px 12px;
    top: var(--td-visual-viewport-top, 0px);
    padding: 8px 12px 10px;
  }

  .td-panel {
    padding: 14px;
  }

  .td-draft-toolbar,
  .td-draft-popover-head {
    align-items: stretch;
  }

  .td-draft-toolbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .td-history-actions {
    grid-column: 1;
    justify-self: start;
    margin-left: 0;
  }

  .td-draft-actions {
    grid-column: 3;
    justify-self: end;
  }

  .td-draft-action {
    min-width: 0;
  }

  .td-draft-status {
    display: none;
  }

  .td-draft-action span {
    display: none;
  }

  .td-draft-action-status {
    position: absolute;
    top: 5px;
    right: 5px;
    display: block !important;
    width: 7px;
    height: 7px;
    border: 1px solid #fff;
    border-radius: 999px;
    background: #8b929d;
    box-shadow: 0 0 0 1px rgba(36, 31, 32, .08);
  }

  .td-draft-action-status.is-saved {
    background: #60a582;
  }

  .td-draft-action-status.is-saving {
    background: #d0a044;
  }

  .td-draft-action-status.is-error {
    background: #c64b5f;
  }

  .td-draft-action-status.is-muted {
    background: #a5abb4;
  }

  .td-mobile-download {
    display: block;
  }

  .td-draft-popover-head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .td-draft-save {
    width: 100%;
  }

  .td-draft-list {
    max-height: 220px;
  }

  .td-draft-item {
    grid-template-columns: minmax(0, 1fr) 36px;
  }

  .td-draft-load {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .td-draft-kind {
    width: 44px;
  }

  .td-settings-tabs {
    gap: 4px;
    top: calc(var(--td-visual-viewport-top, 0px) + var(--td-preview-sticky-offset, 0px));
    padding: 6px;
    border-radius: 8px 8px 0 0;
  }

  .td-settings-tab {
    flex-direction: column;
    gap: 4px;
    min-height: 48px;
    padding: 6px 4px;
    font-size: 10px;
  }

  .td-settings-tab-icon {
    width: 14px;
    height: 14px;
  }

  .td-settings-tab span:last-child {
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
  }

  .td-settings-pane {
    padding: 14px 12px;
  }

  .td-mode-tabs,
  .td-fill-tabs {
    min-width: 0;
  }

  .td-mode-tab {
    min-width: 0;
    padding: 7px 6px;
    font-size: 12px;
  }

  .td-field,
  .td-outline-list,
  .td-outline-item,
  .td-fill-picker,
  .td-solid-swatch-row,
  .td-range-control,
  .td-value-input {
    min-width: 0;
  }

  .td-field-label-row,
  .td-outline-header {
    flex-wrap: wrap;
  }

  .td-outline-item {
    padding: 10px;
  }

  .td-range-control {
    grid-template-columns: minmax(86px, 1fr) 132px;
    gap: 8px;
  }

  .td-value-input {
    grid-template-columns: 30px minmax(0, 1fr) auto 30px;
    gap: 4px;
    width: 132px;
    min-height: 44px;
    padding: 0 4px;
  }

  .td-value-stepper {
    width: 30px;
    height: 34px;
    font-size: 18px;
  }

  .td-swatches {
    grid-template-columns: repeat(auto-fit, minmax(36px, 40px));
    gap: 8px;
  }

  .td-swatch,
  .td-color-plus-button {
    width: 38px;
    height: 38px;
  }

  .td-palette-groups .td-swatches {
    grid-template-columns: repeat(auto-fit, minmax(30px, 32px));
    gap: 8px;
  }

  .td-palette-groups .td-swatch,
  .td-palette-groups .td-color-plus-button {
    width: 32px;
    height: 32px;
  }

  .td-palette-groups .td-gradient-swatches {
    grid-template-columns: repeat(auto-fit, minmax(48px, 1fr));
  }

  .td-fill-tabs {
    gap: 6px;
    padding: 4px;
  }

  .td-app .td-fill-tab {
    min-height: 34px;
    padding: 5px 6px;
    font-size: 11px;
    line-height: 1.1;
    white-space: nowrap;
  }

  .td-download-bar .td-button {
    min-height: 40px;
    padding: 8px 6px;
    font-size: 11px;
    gap: 5px;
  }

  .td-download-bar {
    justify-self: center;
    width: 100%;
    max-width: calc(100vw - 84px);
  }

  .td-download-label {
    font-size: 0;
  }

  .td-download-label::after {
    content: attr(data-mobile-label);
    font-size: 11px;
  }

  .td-download-bar {
    display: none;
  }

  .td-media-summary {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .td-media-summary-actions {
    grid-column: 1 / -1;
    width: 100%;
  }

  .td-add-menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .td-add-menu {
    padding: 10px;
  }

  .td-add-menu-title,
  .td-add-menu-sub {
    display: none;
  }

  .td-add-menu-item {
    grid-template-columns: 28px minmax(0, 1fr);
    grid-template-areas: "icon main";
    column-gap: 7px;
    min-height: 44px;
    padding: 7px 8px;
  }

  .td-add-menu-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
  }

  .td-add-menu-svg {
    width: 18px;
    height: 18px;
  }

  .td-add-menu-main {
    font-size: 12px;
    line-height: 1.2;
  }

  .td-stamp-picker-header {
    display: grid;
    gap: 2px;
  }

  .td-stamp-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .td-accordion-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .td-accordion-summary {
    display: none;
  }

  .td-preview-stage-wrap {
    height: 152px;
    min-height: 152px;
  }

  .td-preview-stage {
    padding: 8px;
  }

  .td-preview-card {
    padding: 0;
  }

  .td-preview-char {
    font-size: 42px;
  }

  .td-grid-row {
    grid-auto-columns: 48px;
    gap: 6px;
  }

  .td-row-label,
  .td-column-label,
  .td-grid-corner,
  .td-cell {
    width: 48px;
    height: 48px;
  }

  .td-column-label {
    height: 36px;
  }

  .td-grid-header-row .td-grid-corner {
    height: 36px;
  }
}
