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

.tpd-app {
    --tpd-accent: #7c3aed;
    --tpd-accent-2: #ec4899;
    --tpd-ink: #10131a;
    --tpd-muted: #6b7280;
    --tpd-line: #e7e8ed;
    --tpd-soft: #f6f7fa;
    --tpd-panel: #ffffff;
    position: relative;
    width: min(1480px, calc(100vw - 28px));
    margin: 32px auto;
    color: var(--tpd-ink);
    font-family: "Josefin Sans", "Montserrat", Arial, sans-serif;
    background: #fff;
    border: 1px solid rgba(16, 19, 26, .08);
    border-radius: 28px;
    box-shadow: 0 28px 80px rgba(20, 20, 35, .12);
    overflow: hidden;
}

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

.tpd-app button,
.tpd-app label[for] {
    -webkit-tap-highlight-color: transparent;
}

.tpd-header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 152px;
    padding: 30px 38px;
    color: #fff;
    background:
        radial-gradient(circle at 86% 30%, rgba(236, 72, 153, .32), transparent 26%),
        radial-gradient(circle at 67% -40%, rgba(124, 58, 237, .56), transparent 44%),
        #0b0c11;
    overflow: hidden;
}

.tpd-header::after {
    content: "";
    position: absolute;
    inset: auto -70px -125px auto;
    width: 360px;
    height: 220px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
    transform: rotate(-12deg);
}

.tpd-kicker {
    display: block;
    margin-bottom: 7px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .19em;
    color: var(--tpd-accent-2);
}

.tpd-header h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(25px, 2.3vw, 39px);
    line-height: 1.1;
    letter-spacing: -.025em;
}

.tpd-header p {
    max-width: 680px;
    margin: 10px 0 0;
    color: rgba(255, 255, 255, .64);
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.55;
}

.tpd-header__badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
    padding: 11px 15px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    color: rgba(255, 255, 255, .86);
    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(12px);
    font-size: 12px;
    font-weight: 700;
}

.tpd-header__badge span {
    width: 8px;
    height: 8px;
    background: #34d399;
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(52, 211, 153, .12);
}

.tpd-layout {
    display: grid;
    grid-template-columns: 285px minmax(420px, 1fr) 285px;
    min-height: 690px;
    background: var(--tpd-soft);
}

.tpd-panel {
    position: relative;
    z-index: 2;
    background: var(--tpd-panel);
}

.tpd-panel--left {
    border-right: 1px solid var(--tpd-line);
}

.tpd-panel--right {
    border-left: 1px solid var(--tpd-line);
}

.tpd-panel-section {
    padding: 25px 22px;
    border-bottom: 1px solid var(--tpd-line);
}

.tpd-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}

.tpd-section-heading--compact {
    margin-bottom: 16px;
}

.tpd-step {
    display: grid;
    place-items: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    color: #fff;
    background: var(--tpd-ink);
    border-radius: 8px;
    font-size: 10px;
    font-weight: 800;
}

.tpd-section-heading h3 {
    margin: 1px 0 3px;
    color: var(--tpd-ink);
    font-size: 15px;
    line-height: 1.25;
}

.tpd-section-heading p {
    margin: 0;
    color: var(--tpd-muted);
    font-family: Arial, sans-serif;
    font-size: 11px;
    line-height: 1.35;
}

.tpd-shape-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.tpd-shape-card {
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    min-height: 94px;
    padding: 10px;
    color: #4b5563;
    border: 1px solid var(--tpd-line);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.tpd-shape-card:hover {
    transform: translateY(-1px);
    border-color: rgba(124, 58, 237, .4);
}

.tpd-shape-card.is-active {
    color: var(--tpd-accent);
    border-color: var(--tpd-accent);
    background: color-mix(in srgb, var(--tpd-accent) 5%, #fff);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--tpd-accent) 11%, transparent);
}

.tpd-shape-card strong {
    font-size: 12px;
}

.tpd-shape-card small {
    position: absolute;
    top: 6px;
    right: 7px;
    padding: 3px 5px;
    color: var(--tpd-accent);
    background: color-mix(in srgb, var(--tpd-accent) 9%, #fff);
    border-radius: 5px;
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
}

.tpd-shape-icon {
    display: block;
    width: 38px;
    height: 31px;
    border: 2px solid currentColor;
    background: rgba(124, 58, 237, .05);
}

.tpd-shape-icon--round {
    width: 34px;
    height: 34px;
    border-radius: 50%;
}

.tpd-shape-icon--rectangle {
    border-radius: 7px;
}

.tpd-shape-icon--square {
    width: 34px;
    height: 34px;
    border-radius: 6px;
}

.tpd-shape-icon--custom {
    clip-path: polygon(22% 5%, 84% 12%, 96% 54%, 70% 94%, 13% 81%, 4% 34%);
    border: 0;
    background: currentColor;
    box-shadow: inset 0 0 0 3px currentColor;
    opacity: .65;
}

.tpd-control-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 18px;
}

.tpd-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 43px;
    padding: 8px 9px 8px 12px;
    border: 1px solid var(--tpd-line);
    border-radius: 10px;
    color: #4b5563;
    font-size: 10px;
    font-weight: 700;
}

.tpd-color-field {
    position: relative;
    display: block;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 8px;
    overflow: hidden;
}

.tpd-color-field input {
    position: absolute;
    inset: -7px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    cursor: pointer;
}

.tpd-range-control {
    display: block;
    margin-top: 16px;
}

.tpd-range-control > span {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: #4b5563;
    font-family: Arial, sans-serif;
    font-size: 10px;
}

.tpd-range-control b {
    font-weight: 600;
}

.tpd-range-control output {
    color: var(--tpd-muted);
}

.tpd-range-control input[type="range"] {
    width: 100%;
    height: 4px;
    margin: 0;
    accent-color: var(--tpd-accent);
    cursor: pointer;
}

.tpd-action-stack {
    display: grid;
    gap: 9px;
}

.tpd-tool-button {
    display: grid;
    grid-template-columns: 37px 1fr 20px;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 58px;
    padding: 9px 10px;
    color: var(--tpd-ink);
    text-align: left;
    border: 1px solid var(--tpd-line);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease;
}

.tpd-tool-button:hover {
    border-color: rgba(124, 58, 237, .35);
    background: color-mix(in srgb, var(--tpd-accent) 3%, #fff);
}

.tpd-tool-button > span:nth-child(2) {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tpd-tool-button strong {
    font-size: 11px;
}

.tpd-tool-button small {
    color: var(--tpd-muted);
    font-family: Arial, sans-serif;
    font-size: 9px;
}

.tpd-tool-button > i {
    color: var(--tpd-accent);
    font-size: 18px;
    font-style: normal;
}

.tpd-tool-icon {
    display: grid;
    place-items: center;
    width: 37px;
    height: 37px;
    color: var(--tpd-accent);
    background: color-mix(in srgb, var(--tpd-accent) 8%, #fff);
    border-radius: 10px;
    font-family: Georgia, serif;
    font-size: 20px;
    font-weight: 700;
}

.tpd-tool-icon svg {
    width: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.tpd-subtitle {
    margin: 20px 0 9px;
    color: var(--tpd-muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.tpd-mini-tools {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

.tpd-mini-tools button {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    min-width: 0;
    padding: 0;
    color: #5d6470;
    border: 1px solid var(--tpd-line);
    border-radius: 9px;
    background: #fff;
    cursor: pointer;
}

.tpd-mini-tools button:hover {
    color: var(--tpd-accent);
    border-color: var(--tpd-accent);
}

.tpd-mini-shape {
    display: block;
    width: 18px;
    height: 15px;
    border: 2px solid currentColor;
}

.tpd-mini-shape--circle {
    width: 17px;
    height: 17px;
    border-radius: 50%;
}

.tpd-mini-shape--star {
    width: auto;
    height: auto;
    border: 0;
    font-size: 22px;
    line-height: 1;
}

.tpd-mini-shape--shield {
    height: 20px;
    border-radius: 7px 7px 10px 10px;
    clip-path: polygon(0 0, 100% 0, 87% 68%, 50% 100%, 13% 68%);
    background: currentColor;
}

.tpd-mini-shape--line {
    width: 22px;
    height: 2px;
    border: 0;
    background: currentColor;
    transform: rotate(-28deg);
}

.tpd-stage-column {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 18px 20px 13px;
}

.tpd-canvas-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    margin-bottom: 10px;
    padding: 5px 7px;
    border: 1px solid var(--tpd-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, .92);
}

.tpd-toolbar-group {
    display: flex;
    gap: 4px;
}

.tpd-canvas-toolbar button {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    color: #505765;
    border: 0;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
}

.tpd-canvas-toolbar button:hover:not(:disabled) {
    color: var(--tpd-accent);
    background: color-mix(in srgb, var(--tpd-accent) 7%, #fff);
}

.tpd-canvas-toolbar button:disabled {
    opacity: .28;
    cursor: not-allowed;
}

.tpd-canvas-toolbar svg {
    width: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.tpd-toolbar-title {
    color: #6b7280;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.tpd-canvas-shell {
    position: relative;
    display: grid;
    place-items: center;
    flex: 1 1 auto;
    min-height: 530px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #eef0f4;
    isolation: isolate;
}

.tpd-canvas-backdrop {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .56;
    background-image:
        linear-gradient(45deg, rgba(110, 117, 130, .1) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(110, 117, 130, .1) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(110, 117, 130, .1) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(110, 117, 130, .1) 75%);
    background-position: 0 0, 0 9px, 9px -9px, -9px 0;
    background-size: 18px 18px;
}

.tpd-canvas-shell canvas {
    display: block;
    width: min(100%, 900px);
    height: auto;
    max-height: 100%;
    aspect-ratio: 900 / 620;
    touch-action: none;
    user-select: none;
}

.tpd-lasso-notice {
    position: absolute;
    top: 18px;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px 10px 10px;
    color: #fff;
    background: rgba(15, 17, 24, .92);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .16);
    transform: translateX(-50%);
    pointer-events: none;
}

.tpd-lasso-notice > span {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    background: var(--tpd-accent);
    border-radius: 9px;
}

.tpd-lasso-notice svg {
    width: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.tpd-lasso-notice div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tpd-lasso-notice strong {
    font-size: 11px;
}

.tpd-lasso-notice small {
    color: rgba(255, 255, 255, .62);
    font-family: Arial, sans-serif;
    font-size: 9px;
}

.tpd-loading {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    justify-items: center;
    color: #fff;
    background: rgba(9, 10, 14, .75);
    backdrop-filter: blur(5px);
}

.tpd-loading[hidden],
.tpd-lasso-notice[hidden],
.tpd-inspector[hidden],
.tpd-app [hidden] {
    display: none !important;
}

.tpd-loading span {
    width: 34px;
    height: 34px;
    border: 3px solid rgba(255, 255, 255, .22);
    border-top-color: #fff;
    border-radius: 50%;
    animation: tpd-spin .8s linear infinite;
}

.tpd-loading p {
    margin: 12px 0 0;
    font-size: 12px;
}

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

.tpd-stage-hint {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding-top: 10px;
    color: #808692;
    font-family: Arial, sans-serif;
    font-size: 9px;
}

.tpd-stage-hint span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tpd-dot {
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: #9ca3af;
}

.tpd-dot--rotate {
    border-radius: 50%;
    background: var(--tpd-accent);
}

.tpd-dot--move {
    border: 1px solid #9ca3af;
    background: transparent;
}

.tpd-empty-selection {
    display: grid;
    justify-items: center;
    padding: 28px 15px;
    text-align: center;
    border: 1px dashed #d9dce3;
    border-radius: 13px;
    background: #fafbfc;
}

.tpd-empty-selection span {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 9px;
    color: #9ca3af;
    background: #f0f1f4;
    border-radius: 13px;
}

.tpd-empty-selection svg {
    width: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.tpd-empty-selection p {
    max-width: 170px;
    margin: 0;
    color: #858b96;
    font-family: Arial, sans-serif;
    font-size: 10px;
    line-height: 1.55;
}

.tpd-field {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
    color: #5d6470;
    font-family: Arial, sans-serif;
    font-size: 9px;
    font-weight: 600;
}

.tpd-field--small {
    flex: 0 0 72px;
}

.tpd-field-row {
    display: flex;
    gap: 8px;
}

.tpd-field textarea,
.tpd-field select,
.tpd-field input {
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    color: var(--tpd-ink);
    border: 1px solid var(--tpd-line);
    border-radius: 9px;
    outline: 0;
    background: #fff;
    font-size: 11px;
}

.tpd-field textarea:focus,
.tpd-field select:focus,
.tpd-field input:focus {
    border-color: var(--tpd-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--tpd-accent) 9%, transparent);
}

.tpd-segmented {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    padding: 3px;
    margin-bottom: 13px;
    border: 1px solid var(--tpd-line);
    border-radius: 10px;
    background: #f5f6f8;
}

.tpd-segmented button {
    height: 29px;
    padding: 0;
    color: #626975;
    border: 0;
    border-radius: 7px;
    background: transparent;
    cursor: pointer;
}

.tpd-segmented button:nth-child(3) {
    text-align: center;
}

.tpd-segmented button:nth-child(4) {
    text-align: right;
    padding-right: 9px;
}

.tpd-segmented button.is-active {
    color: var(--tpd-accent);
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
}

.tpd-segmented button:disabled {
    opacity: .36;
    cursor: not-allowed;
}

.tpd-inspector-title {
    display: block;
    margin: 18px 0 9px;
    color: #6b7280;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.tpd-curve-presets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.tpd-curve-presets button {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    min-height: 56px;
    padding: 6px 3px;
    color: #6b7280;
    border: 1px solid var(--tpd-line);
    border-radius: 9px;
    background: #fff;
    font-size: 8px;
    font-weight: 700;
    cursor: pointer;
}

.tpd-curve-presets button:hover,
.tpd-curve-presets button.is-active {
    color: var(--tpd-accent);
    border-color: color-mix(in srgb, var(--tpd-accent) 58%, #fff);
    background: color-mix(in srgb, var(--tpd-accent) 5%, #fff);
}

.tpd-curve-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 34px;
    height: 18px;
    font-family: Arial, sans-serif;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .5px;
}

.tpd-curve-icon--up {
    padding-top: 6px;
    border-top: 2px solid currentColor;
    border-radius: 50% 50% 0 0;
}

.tpd-curve-icon--down {
    padding-bottom: 6px;
    border-bottom: 2px solid currentColor;
    border-radius: 0 0 50% 50%;
}

.tpd-style-colors {
    display: grid;
    gap: 7px;
}

.tpd-style-color {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 51px;
    padding: 8px 9px 8px 11px;
    border: 1px solid var(--tpd-line);
    border-radius: 11px;
    background: #fff;
}

.tpd-style-color > span:first-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.tpd-style-color strong {
    color: #343a46;
    font-size: 10px;
}

.tpd-style-color small {
    color: #9096a1;
    font-family: Arial, sans-serif;
    font-size: 8px;
}

.tpd-style-color__value {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tpd-style-color__value input[type="text"] {
    width: 65px;
    height: 31px;
    padding: 5px 6px;
    color: #4b5563;
    border: 1px solid var(--tpd-line);
    border-radius: 7px;
    outline: 0;
    background: #f8f9fb;
    font-family: Arial, sans-serif;
    font-size: 9px;
    text-align: center;
    text-transform: uppercase;
}

.tpd-style-color__value input[type="text"]:focus {
    border-color: var(--tpd-accent);
}

.tpd-style-color__value input[type="color"] {
    width: 32px;
    height: 32px;
    padding: 2px;
    border: 1px solid var(--tpd-line);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.tpd-switch-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    padding: 9px 10px 9px 11px;
    border: 1px solid var(--tpd-line);
    border-radius: 10px;
    cursor: pointer;
}

.tpd-switch-row > span {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.tpd-switch-row strong {
    color: #434955;
    font-size: 9px;
}

.tpd-switch-row small {
    color: #949aa5;
    font-family: Arial, sans-serif;
    font-size: 7px;
}

.tpd-switch-row input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.tpd-switch-row > i {
    position: relative;
    flex: 0 0 34px;
    width: 34px;
    height: 19px;
    border-radius: 999px;
    background: #d7d9df;
    transition: background .18s ease;
}

.tpd-switch-row > i::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
    transition: transform .18s ease;
}

.tpd-switch-row input:checked + i {
    background: var(--tpd-accent);
}

.tpd-switch-row input:checked + i::after {
    transform: translateX(15px);
}

.tpd-range-control.is-disabled {
    opacity: .42;
}

.tpd-order-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 18px;
}

.tpd-order-actions button {
    min-height: 36px;
    color: #4b5563;
    border: 1px solid var(--tpd-line);
    border-radius: 9px;
    background: #fff;
    font-size: 9px;
    font-weight: 700;
    cursor: pointer;
}

.tpd-order-actions button:hover {
    color: var(--tpd-accent);
    border-color: var(--tpd-accent);
}

.tpd-layers {
    display: grid;
    gap: 6px;
    max-height: 215px;
    overflow-y: auto;
}

.tpd-layer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 30px;
    align-items: center;
    gap: 3px;
    width: 100%;
    min-height: 38px;
    padding: 3px;
    color: #5d6470;
    border: 1px solid var(--tpd-line);
    border-radius: 9px;
    background: #fff;
}

.tpd-layer.is-active {
    color: var(--tpd-accent);
    border-color: color-mix(in srgb, var(--tpd-accent) 50%, #fff);
    background: color-mix(in srgb, var(--tpd-accent) 5%, #fff);
}

.tpd-layer__select {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 22px;
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 32px;
    padding: 0;
    color: inherit;
    text-align: left;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.tpd-layer__thumb {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    color: var(--tpd-accent);
    background: color-mix(in srgb, var(--tpd-accent) 7%, #fff);
    font-size: 12px;
    font-weight: 800;
}

.tpd-layer__name {
    overflow: hidden;
    font-family: Arial, sans-serif;
    font-size: 9px;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.tpd-layer__handle {
    color: #a1a6b0;
    text-align: center;
    letter-spacing: -1px;
}

.tpd-layer__delete {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    padding: 0;
    color: #a1a6b0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    cursor: pointer;
}

.tpd-layer__delete:hover {
    color: #be123c;
    background: #fff1f2;
}

.tpd-layer__delete svg {
    width: 15px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.tpd-layers-help {
    margin: 9px 1px 0;
    color: #989da7;
    font-family: Arial, sans-serif;
    font-size: 8px;
    line-height: 1.4;
}

.tpd-layers-empty {
    margin: 0;
    padding: 16px 10px;
    color: #9ca3af;
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 9px;
    border: 1px dashed var(--tpd-line);
    border-radius: 9px;
}

.tpd-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 28px;
    border-top: 1px solid var(--tpd-line);
    background: #fff;
}

.tpd-footer__note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 760px;
}

.tpd-footer__note > span {
    display: grid;
    place-items: center;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    color: var(--tpd-accent);
    border: 1px solid color-mix(in srgb, var(--tpd-accent) 35%, #fff);
    border-radius: 50%;
    font-family: Georgia, serif;
    font-size: 12px;
    font-style: italic;
    font-weight: 700;
}

.tpd-footer__note p {
    margin: 1px 0 0;
    color: #737985;
    font-family: Arial, sans-serif;
    font-size: 10px;
    line-height: 1.5;
}

.tpd-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    flex: 0 0 auto;
    min-height: 50px;
    padding: 12px 20px 12px 23px;
    color: #fff;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(115deg, var(--tpd-accent), var(--tpd-accent-2));
    box-shadow: 0 12px 28px color-mix(in srgb, var(--tpd-accent) 28%, transparent);
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
}

.tpd-primary-button:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 16px 34px color-mix(in srgb, var(--tpd-accent) 36%, transparent);
}

.tpd-primary-button svg {
    width: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.tpd-toast {
    position: fixed;
    z-index: 999999;
    right: 24px;
    bottom: 24px;
    max-width: min(360px, calc(100vw - 30px));
    padding: 13px 16px;
    color: #fff;
    background: #11131a;
    border-radius: 12px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .25);
    font-family: Arial, sans-serif;
    font-size: 12px;
}

.tpd-toast.is-error {
    background: #9f1239;
}

.tpd-mobile-tabs {
    display: none;
}

/* Attachment shown on the quote form page */
.tpd-attachment {
    display: flex;
    align-items: center;
    gap: 22px;
    width: 100%;
    margin: 20px 0 28px;
    padding: 18px;
    border: 1px solid #e6e7ec;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 15px 45px rgba(20, 20, 35, .07);
    font-family: "Josefin Sans", "Montserrat", Arial, sans-serif;
}

.tpd-attachment__preview {
    display: grid;
    place-items: center;
    flex: 0 0 130px;
    width: 130px;
    height: 110px;
    padding: 8px;
    border-radius: 13px;
    background-color: #eef0f4;
    background-image: linear-gradient(45deg, rgba(110,117,130,.1) 25%, transparent 25%), linear-gradient(-45deg, rgba(110,117,130,.1) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, rgba(110,117,130,.1) 75%), linear-gradient(-45deg, transparent 75%, rgba(110,117,130,.1) 75%);
    background-position: 0 0, 0 7px, 7px -7px, -7px 0;
    background-size: 14px 14px;
}

.tpd-attachment__preview img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.tpd-attachment__content {
    min-width: 0;
}

.tpd-attachment .tpd-kicker {
    color: #7c3aed;
}

.tpd-attachment h3 {
    margin: 0 0 5px;
    color: #10131a;
    font-size: 20px;
}

.tpd-attachment p {
    margin: 0;
    color: #6b7280;
    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 1.5;
}

.tpd-attachment__actions {
    display: flex;
    gap: 15px;
    margin-top: 13px;
}

.tpd-link {
    padding: 0;
    color: #7c3aed;
    border: 0;
    background: transparent;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.tpd-link:hover {
    color: #5b21b6;
}

.tpd-link--danger {
    color: #be123c;
}

.tpd-attachment__empty {
    width: 100%;
    padding: 8px 5px;
}

@media (max-width: 1180px) {
    .tpd-layout {
        grid-template-columns: 245px minmax(390px, 1fr) 245px;
    }

    .tpd-panel-section {
        padding: 21px 17px;
    }

    .tpd-shape-card {
        min-height: 84px;
    }

    .tpd-canvas-shell {
        min-height: 480px;
    }
}

@media (max-width: 980px) {
    .tpd-app {
        width: min(760px, calc(100vw - 24px));
        border-radius: 22px;
    }

    .tpd-header {
        min-height: 135px;
        padding: 25px 26px;
    }

    .tpd-header__badge {
        display: none;
    }

    .tpd-mobile-tabs {
        position: sticky;
        top: 0;
        z-index: 20;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 3px;
        padding: 6px;
        border-bottom: 1px solid var(--tpd-line);
        background: rgba(255, 255, 255, .94);
        backdrop-filter: blur(10px);
    }

    .tpd-mobile-tabs button {
        min-height: 38px;
        padding: 6px 3px;
        color: #737985;
        border: 0;
        border-radius: 8px;
        background: transparent;
        font-size: 10px;
        font-weight: 800;
    }

    .tpd-mobile-tabs button.is-active {
        color: var(--tpd-accent);
        background: color-mix(in srgb, var(--tpd-accent) 8%, #fff);
    }

    .tpd-layout {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .tpd-panel {
        border: 0;
    }

    .tpd-panel-section {
        display: none;
        padding: 20px 22px;
        border-bottom: 1px solid var(--tpd-line);
    }

    .tpd-panel-section.is-active {
        display: block;
    }

    .tpd-panel--left,
    .tpd-panel--right {
        display: contents;
    }

    .tpd-panel [data-tpd-panel="shape"] { order: 1; }
    .tpd-panel [data-tpd-panel="content"] { order: 1; }
    .tpd-stage-column { order: 2; }
    .tpd-panel [data-tpd-panel="style"] { order: 3; }
    .tpd-panel [data-tpd-panel="layers"] { order: 3; }

    .tpd-shape-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .tpd-shape-card {
        min-height: 82px;
    }

    .tpd-control-grid {
        max-width: 430px;
    }

    .tpd-action-stack {
        grid-template-columns: 1fr 1fr;
    }

    .tpd-mini-tools {
        max-width: 300px;
    }

    .tpd-stage-column {
        min-height: 520px;
        padding: 14px;
    }

    .tpd-canvas-shell {
        min-height: 430px;
    }

    .tpd-footer {
        align-items: stretch;
        flex-direction: column;
        padding: 19px 22px 22px;
    }

    .tpd-primary-button {
        width: 100%;
    }
}

@media (max-width: 620px) {
    .tpd-app {
        width: 100%;
        margin: 0;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .tpd-header {
        min-height: 128px;
        padding: 22px 18px;
    }

    .tpd-header h2 {
        font-size: 25px;
    }

    .tpd-header p {
        font-size: 11px;
    }

    .tpd-mobile-tabs button {
        font-size: 9px;
    }

    .tpd-panel-section {
        padding: 17px 15px;
    }

    .tpd-shape-grid {
        gap: 6px;
    }

    .tpd-shape-card {
        min-height: 75px;
        padding: 7px 3px;
    }

    .tpd-shape-icon {
        transform: scale(.82);
    }

    .tpd-shape-card strong {
        font-size: 10px;
    }

    .tpd-shape-card small {
        display: none;
    }

    .tpd-action-stack {
        grid-template-columns: 1fr;
    }

    .tpd-stage-column {
        min-height: 390px;
        padding: 9px;
    }

    .tpd-canvas-shell {
        min-height: 300px;
        border-radius: 13px;
    }

    .tpd-canvas-toolbar {
        margin-bottom: 7px;
    }

    .tpd-stage-hint {
        display: none;
    }

    .tpd-lasso-notice {
        top: 8px;
        width: calc(100% - 16px);
        padding: 8px;
    }

    .tpd-lasso-notice > span {
        flex: 0 0 28px;
        width: 28px;
        height: 28px;
    }

    .tpd-footer {
        padding: 16px 15px 19px;
    }

    .tpd-footer__note p {
        font-size: 9px;
    }

    .tpd-attachment {
        align-items: flex-start;
        gap: 14px;
        padding: 13px;
    }

    .tpd-attachment__preview {
        flex-basis: 86px;
        width: 86px;
        height: 86px;
    }

    .tpd-attachment h3 {
        font-size: 16px;
    }

    .tpd-attachment p {
        font-size: 10px;
    }

    .tpd-attachment__actions {
        flex-wrap: wrap;
        gap: 10px 13px;
    }
}
