.post-studio {
    --post-summary-width: 360px;
    display: grid;
    gap: 1rem;
    color: #dce9f6;
}

@media (min-width: 1201px) {
    .web-page-shell.web-page-shell--post-wide {
        width: min(1500px, calc(100% - 24px));
    }
}

.post-studio__hero,
.post-studio__panel,
.post-studio__summary-panel {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(126, 154, 184, 0.16);
    background: #111;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.post-studio__hero {
    display: grid;
    gap: 1rem;
    background:
        radial-gradient(circle at top right, rgba(121, 183, 255, 0.16), transparent 32%),
        linear-gradient(180deg, rgba(22, 31, 40, 0.96), rgba(16, 24, 33, 0.96));
}

.post-studio__eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #9bb7d3;
}

.post-studio__hero h1,
.post-studio__section-header h2 {
    margin: 0;
    color: #eef6ff;
}

.post-studio__hero h1 {
    padding: 0;
}

.post-studio__hero p,
.post-studio__section-header p {
    margin: 0.25rem 0 0;
    color: #9db5cb;
    font-size: 12px;
    line-height: 1.45;
}

.post-studio__hero-notes {
    display: grid;
    gap: 0.75rem;
}

.post-studio__hero-note {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem;
    border-radius: 14px;
    background: rgba(7, 12, 18, 0.34);
    border: 1px solid rgba(126, 154, 184, 0.14);
}

.post-studio__hero-note strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(121, 183, 255, 0.16);
    color: #eef6ff;
    font-size: calc(1em + 2pt);
}

.post-studio__hero-note span {
    font-size: 14.67px;
}

.post-studio__layout {
    display: grid;
    gap: 1rem;
    align-items: start;
}

.post-studio__workspace,
.post-studio__summary {
    min-width: 0;
}

.post-studio__summary {
    display: grid;
    gap: 1rem;
    align-self: start;
}

.post-studio__tabs-panel {
    margin-bottom: 0.85rem;
    padding: 0.45rem;
    border-radius: 14px;
    border: 1px solid rgba(121, 183, 255, 0.16);
    background: #111;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

.post-studio__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    min-width: 0;
    align-items: stretch;
    justify-content: flex-start;
}

.post-studio .tab-button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 1 calc(((100% - 1.4rem) / 5) * 0.9);
    min-height: 38px;
    width: auto;
    min-width: 0;
    max-width: calc(((100% - 1.4rem) / 5) * 0.9);
    margin: 0;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid rgba(126, 154, 184, 0.24);
    background: linear-gradient(180deg, rgba(52, 72, 90, 0.98), rgba(35, 49, 62, 0.98));
    color: #dce9f6;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    vertical-align: middle;
    white-space: normal;
    overflow-wrap: anywhere;
    transition: filter 0.14s ease, transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.post-studio .tab-button:hover,
.post-studio .tab-button:focus-visible {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.post-studio .tab-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(121, 183, 255, 0.18);
}

.post-studio .tab-button.active {
    background: linear-gradient(180deg, rgba(103, 150, 123, 0.98), rgba(83, 130, 130, 0.65));
    border-color: rgba(185, 116, 52, 0.48);
    color: #1b0f04;
    box-shadow: 0 1rem 2rem rgba(83, 130, 130, 0.18);
}

.post-studio #tabinfo {
    font-size: 10.5px;
}

.post-studio .tabcontent {
    display: none;
}

.post-studio .tabcontent.active {
    display: block;
}

.post-studio__section-header {
    display: grid;
    gap: 0.15rem;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    background: #000;
    margin-bottom: 0.85rem;
}

.post-studio__section-header--summary {
    background: radial-gradient(circle at top right, rgba(121, 183, 255, 0.16), transparent 32%),
        linear-gradient(180deg, rgba(22, 31, 40, 0.96), rgba(16, 24, 33, 0.96));
}

.post-studio__section-header-row {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.post-studio__section-header-row--summary {
    align-items: center;
}

.post-studio__section-header-copy {
    min-width: 0;
}

.post-studio__product-grid {
    display: grid;
    gap: 1rem;
}

.post-studio__product-media {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 1rem;
    border-radius: 14px;
    background: #d9d9d9;
}

.post-studio__product-media .product-img {
    width: min(100%, 360px);
    height: auto;
    border-radius: 14px;
    border: 1px solid rgba(126, 154, 184, 0.16);
    background: #eee;
}

.post-studio__compact-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.post-studio__field {
    display: grid;
    gap: 0.3rem;
    min-width: 0;
    width: 100%;
}

.post-studio__field > span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9bb7d3;
}

.post-studio input,
.post-studio select,
.post-studio textarea,
.post-studio button {
    box-sizing: border-box;
    font-family: inherit;
    min-height: 38px;
    border-radius: 10px;
    font-size: 12px;
}

.post-studio input,
.post-studio select,
.post-studio textarea {
    width: 100%;
    margin: 0;
    padding: 7px 10px;
    border: 1px solid rgba(122, 146, 170, 0.28);
    background: rgba(18, 24, 31, 0.72);
    color: #eef6ff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.post-studio input:not([readonly]):not([type="hidden"]),
.post-studio select:not(:disabled),
.post-studio textarea:not([readonly]) {
    background: rgba(62, 68, 74, 0.94);
    border-color: rgba(162, 182, 202, 0.32);
}

.post-studio input[readonly],
.post-studio textarea[readonly],
.post-studio input:disabled,
.post-studio select:disabled,
.post-studio textarea:disabled {
    background: rgba(18, 24, 31, 0.72);
}

.post-studio input,
.post-studio select {
    height: 38px;
    line-height: 1.2;
}

.post-studio input:focus,
.post-studio select:focus,
.post-studio textarea:focus {
    outline: none;
    border-color: rgba(207, 123, 34, 0.72);
    box-shadow: 0 0 0 0.3rem rgba(207, 123, 34, 0.14);
}

.post-studio textarea {
    min-height: 120px;
    max-width: none;
    margin: 0;
    padding-left: 10px;
    line-height: 1.45;
    resize: vertical;
}

.post-studio__summary-panel {
    display: grid;
    gap: 1rem;
    position: static;
    overflow: hidden;
}

.post-studio__metrics,
.post-studio__summary-actions {
    display: grid;
    gap: 0.75rem;
}

.post-studio__metrics {
    margin-bottom: 0;
}

.post-studio__metrics .metric {
    display: grid;
    gap: 0.2rem;
    padding: 0.8rem 0.9rem;
    border-radius: 14px;
    border: 1px solid rgba(182, 196, 209, 0.26);
    background: linear-gradient(180deg, rgba(48, 62, 76, 0.98), rgba(29, 40, 51, 0.98));
}

.post-studio__metrics .metric span {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #9bb7d3;
}

.post-studio__metrics .metric strong {
    font-size: calc(1.1rem + 1.33px);
    color: #eef6ff;
}

.post-studio__add-to-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    width: 100%;
    min-height: 38px;
    border: 1px solid rgba(57, 181, 74, 0.48);
    border-radius: 10px;
    background: linear-gradient(180deg, #4aa84f 0%, #38973d 100%);
    color: #111111;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 0.8rem 1.8rem rgba(56, 151, 61, 0.18);
    transition: background 0.3s, box-shadow 0.3s, transform 0.3s;
}

.post-studio__add-to-cart:hover,
.post-studio__add-to-cart:focus-visible {
    background: linear-gradient(180deg, #72cb73 0%, #39B54A 100%);
    color: #111111;
    box-shadow: 0 1rem 2.2rem rgba(57, 181, 74, 0.24);
}

.post-studio__return-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid rgba(126, 154, 184, 0.24);
    background: linear-gradient(180deg, rgba(52, 72, 90, 0.98), rgba(35, 49, 62, 0.98));
    color: #dce9f6;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
}

.post-studio__sale-description {
    min-height: 120px;
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(126, 154, 184, 0.12);
    background: linear-gradient(180deg, rgba(19, 29, 38, 0.98), rgba(13, 21, 28, 0.98));
    color: #dce9f6;
    font-size: 12px;
    line-height: 1.7;
}

.post-studio__reference-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: stretch;
}

.post-studio .container {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.post-studio .inputgroup-container,
.post-studio .inputgroup {
    background: transparent;
    border: none;
    box-shadow: none;
    margin: 0;
    padding: 0;
}

.post-studio .inputgroup {
    display: grid;
    gap: 0.55rem;
    margin-bottom: 1rem;
}

.post-studio .inputgroup__label {
    padding: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9fb0be;
}

.post-studio .inputgroup__entry {
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
}

.post-studio .inputgroup__entry p,
.post-studio .container p,
.post-studio .container h2,
.post-studio .container h3 {
    margin-left: 0;
}

.post-studio .form-btn2,
.post-studio .animatebuttons {
    min-height: 44px;
    border-radius: 12px;
}

.post-studio .image-container {
    flex: 0 1 calc(50% - 0.5rem);
    width: calc(50% - 0.5rem);
    max-width: 100%;
    height: 100%;
    min-height: 300px;
    aspect-ratio: 10 / 13;
    margin: 0;
    border-radius: 14px;
    object-fit: contain;
    background: #eee;
    padding: 0.75rem;
    box-sizing: border-box;
    overflow: hidden;
}

@media (max-width: 960px) {
    .post-studio .image-container {
        flex: 0 1 100%;
        width: 100%;
    }
}

.post-studio__preview-panel .animation {
    display: grid;
    gap: 1rem;
}

.post-studio__preview-panel .animationcontrols {
    margin-right: 0;
    padding-right: 0;
    width: auto;
}

.post-studio .resize-ta {
    margin-top: 1rem;
}

@media (min-width: 1100px) {
    .post-studio__hero {
        grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr);
        align-items: start;
    }
}

@media (min-width: 961px) {
    .post-studio__layout {
        grid-template-columns: minmax(0, 1fr) minmax(320px, var(--post-summary-width));
    }

    .post-studio__product-grid {
        grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.05fr);
    }

}

@media (max-width: 1320px) {
    .post-studio .tab-button {
        flex-basis: calc(((100% - 0.7rem) / 3) * 0.9);
        max-width: calc(((100% - 0.7rem) / 3) * 0.9);
    }
}

@media (max-width: 960px) {
    .post-studio__metrics {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .post-studio__hero,
    .post-studio__panel,
    .post-studio__summary-panel {
        padding: 12px;
        border-radius: 12px;
    }

    .post-studio .tab-button {
        flex-basis: calc(((100% - 0.35rem) / 2) * 0.9);
        max-width: calc(((100% - 0.35rem) / 2) * 0.9);
    }

    .post-studio .tab-button,
    .post-studio__return-link,
    .post-studio__add-to-cart {
        width: 100%;
    }
}