.fence-post-studio {
    --fence-post-summary-width: 360px;
    display: grid;
    gap: 1rem;
    color: #dce9f6;
}

@media (min-width: 1201px) {
    .web-page-shell.web-page-shell--fence-post-wide {
        width: min(1500px, calc(100% - 24px));
    }
}

.fence-post-studio__hero,
.fence-post-studio__panel,
.fence-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);
}

.fence-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));
}

.fence-post-studio__eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #9bb7d3;
}

.fence-post-studio__hero h1,
.fence-post-studio__panel-header h2 {
    margin: 0;
    color: #eef6ff;
}

.fence-post-studio__hero p,
.fence-post-studio__section-header p {
    margin: 0.25rem 0 0;
    color: #9db5cb;
    font-size: 12px;
    line-height: 1.45;
}

.fence-post-studio__hero-notes {
    display: grid;
    gap: 0.75rem;
}

.fence-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);
}

.fence-post-studio__hero-note strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    font-size: calc(1em + 2pt);
    border-radius: 999px;
    background: rgba(121, 183, 255, 0.16);
    color: #eef6ff;
}

.fence-post-studio__hero-note span {
    font-size: 14.67px;
}

.fence-post-studio__layout {
    display: grid;
    gap: 1rem;
    align-items: start;
}

.fence-post-studio__workspace,
.fence-post-studio__summary {
    min-width: 0;
}

.fence-post-studio__summary {
    display: grid;
    gap: 1rem;
    align-self: start;
}

.fence-post-studio__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    min-width: 0;
    align-items: stretch;
    justify-content: flex-start;
}

.fence-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;
}

.fence-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);
    border: 1px solid rgba(126, 154, 184, 0.24);
    border-radius: 10px;
    padding: 0 12px;
    background: linear-gradient(180deg, rgba(52, 72, 90, 0.98), rgba(35, 49, 62, 0.98));
    color: #dce9f6;
    font-weight: 600;
    font-size: 12px;
    line-height: 1.2;
    text-align: center;
    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;
}

.fence-post-studio .tab-button:hover,
.fence-post-studio .tab-button:focus-visible {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.fence-post-studio .tab-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(121, 183, 255, 0.18);
}

@media (max-width: 1320px) {
    .fence-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: 980px) {
    .fence-post-studio .tab-button {
        flex-basis: calc(((100% - 0.35rem) / 2) * 0.9);
        max-width: calc(((100% - 0.35rem) / 2) * 0.9);
    }
}

.fence-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);
    box-shadow: 0 1rem 2rem rgba(83, 130, 130, 0.18);
    color: #1b0f04;
}

.fence-post-studio #tabinfo {
    font-size: 10.5px;
}

.fence-post-studio .tabcontent {
    display: block;
}

.fence-post-studio__section-header {
    display: grid;
    gap: 0.15rem;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    background: #000;
    margin-bottom: 0.85rem;
}

.fence-post-studio__section-header--embedded,
.fence-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));
}

.fence-post-studio__section-header-row {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.fence-post-studio__section-header-row--summary {
    align-items: center;
}

.fence-post-studio__section-header-copy {
    min-width: 0;
}

.fence-post-studio__product-grid {
    display: grid;
    gap: 1rem;
}

.fence-post-studio__product-media {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 1rem;
    border-radius: 14px;
    background: #d9d9d9;
}

.fence-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: rgba(10, 16, 22, 0.4);
}

.fence-post-studio__product-form .grid {
    display: none;
}

.fence-post-studio__compact-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fence-post-studio__summary-panel {
    display: grid;
    gap: 1rem;
    position: static;
    overflow: hidden;
}

.fence-post-studio__field {
    display: grid;
    gap: 0.3rem;
    min-width: 0;
    width: 100%;
}

.fence-post-studio__field > span {
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9bb7d3;
}

.fence-post-studio input,
.fence-post-studio select,
.fence-post-studio textarea,
.fence-post-studio .button-link,
.fence-post-studio button {
    min-height: 38px;
    border-radius: 10px;
    font-size: 12px;
    box-sizing: border-box;
}

.fence-post-studio input,
.fence-post-studio select,
.fence-post-studio textarea {
    width: 100%;
    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);
}

.fence-post-studio input:not([readonly]):not([type="hidden"]),
.fence-post-studio select:not(:disabled),
.fence-post-studio textarea:not([readonly]) {
    background: rgba(62, 68, 74, 0.94);
    border-color: rgba(162, 182, 202, 0.32);
}

.fence-post-studio input[readonly],
.fence-post-studio textarea[readonly],
.fence-post-studio input:disabled,
.fence-post-studio select:disabled,
.fence-post-studio textarea:disabled {
    background: rgba(18, 24, 31, 0.72);
}

.fence-post-studio input,
.fence-post-studio select {
    height: 38px;
    line-height: 1.2;
}

.fence-post-studio textarea {
    max-width: none;
    margin: 0;
    padding-left: 10px;
    line-height: 1.45;
}

.fence-post-studio input::placeholder,
.fence-post-studio textarea::placeholder {
    color: rgba(229, 238, 247, 0.78);
}

.fence-post-studio input[type="number"] {
    appearance: textfield;
}

.fence-post-studio input[type="number"]::-webkit-outer-spin-button,
.fence-post-studio input[type="number"]::-webkit-inner-spin-button {
    margin: 0;
}

.fence-post-studio__metrics,
.fence-post-studio__summary-actions {
    display: grid;
    gap: 0.75rem;
}

.fence-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));
}

.fence-post-studio__metrics .metric span {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #9bb7d3;
}

.fence-post-studio__metrics .metric strong {
    font-size: calc(1.1rem + 1.33px);
    color: #eef6ff;
}

.fence-post-studio__add-to-cart {
    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-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding: 0 12px;
    box-shadow: 0 0.8rem 1.8rem rgba(56, 151, 61, 0.22);
}

.fence-post-studio__add-to-cart:hover,
.fence-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.28);
}

.fence-post-studio__return-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    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-family: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}

.fence-post-studio__sale-description {
    min-height: 180px;
    padding: 0.9rem;
    border-radius: 10px;
    border: 1px solid rgba(122, 146, 170, 0.28);
    background: rgba(18, 24, 31, 0.72);
    color: #eef6ff;
    font-size: calc(1rem + 1.33px);
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.fence-post-studio__reference-grid {
    display: grid;
    gap: 1rem;
}

.fence-post-studio__picker-panel {
    display: grid;
    gap: 0.85rem;
    margin-top: 1rem;
}

.fence-post-studio__preview-shell {
    display: grid;
    gap: 0.85rem;
}

.fence-post-studio__preview-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.fence-post-studio__preview-btn {
    min-width: 120px;
}

.fence-post-studio__preview-stage {
    position: relative;
    min-height: clamp(420px, 62vh, 760px);
    border-radius: 14px;
    border: 1px solid rgba(126, 154, 184, 0.16);
    background: radial-gradient(circle at top, rgba(121, 183, 255, 0.08), transparent 36%), #0d141c;
    overflow: hidden;
}

.fence-post-studio__preview-canvas {
    width: 100%;
    height: clamp(420px, 62vh, 760px);
}

.fence-post-studio__preview-canvas canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.fence-post-studio__preview-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    color: #9db5cb;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: linear-gradient(180deg, rgba(11, 16, 22, 0.1), rgba(11, 16, 22, 0.24));
    pointer-events: none;
}

.fence-post-studio__preview-stage.is-ready .fence-post-studio__preview-empty {
    display: none;
}

.fence-post-drill-overlay {
    position: fixed;
    inset: 0;
    z-index: 12120;
    display: grid;
    place-items: center;
    padding: 1.25rem;
    isolation: isolate;
    pointer-events: auto;
}

.fence-post-drill-overlay.is-hidden {
    display: none;
}

.fence-post-drill-overlay__backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(5, 9, 12, 0.72);
    backdrop-filter: blur(6px);
}

.fence-post-drill-overlay__dialog {
    position: relative;
    z-index: 1;
    width: min(1720px, calc(100vw - 2.5rem));
    height: calc(100vh - 2.5rem);
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(50, 67, 85, 0.9);
    background: linear-gradient(180deg, rgba(13, 18, 24, 0.98), rgba(16, 24, 32, 0.98));
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.fence-post-drill-overlay__shell {
    display: grid;
    grid-template-columns: minmax(360px, 430px) 10px minmax(0, 1fr);
    width: 100%;
    height: 100%;
}

.fence-post-drill-overlay__sidebar {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    background: linear-gradient(180deg, rgba(16, 23, 31, 0.98), rgba(22, 33, 44, 0.98));
    border-right: 1px solid #324355;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
    z-index: 2;
}

.fence-post-drill-overlay__sidebar-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 24px 24px 18px;
    border-bottom: 1px solid rgba(126, 154, 184, 0.22);
    background: linear-gradient(180deg, rgba(30, 45, 60, 0.75), rgba(18, 27, 36, 0.2));
}

.fence-post-drill-overlay__sidebar-header h2 {
    margin: 0;
    color: #eef6ff;
}

.fence-post-drill-overlay__sidebar-header p {
    margin: 0.25rem 0 0;
    color: #9db5cb;
    font-size: 12px;
    line-height: 1.45;
    max-width: 34ch;
}

.fence-post-drill-overlay__close {
    min-width: 88px;
    min-height: 38px;
    padding: 0 14px;
}

.fence-post-drill-overlay__sidebar-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-gutter: stable;
    padding: 22px;
}

.fence-post-drill-overlay__resizer {
    position: relative;
    width: 10px;
    height: 100%;
    background: linear-gradient(180deg, rgba(26, 34, 44, 0.95), rgba(18, 24, 32, 0.95));
    border-right: 1px solid #263240;
    border-left: 1px solid #10161d;
    z-index: 3;
}

.fence-post-drill-overlay__resizer::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3px;
    height: 56px;
    border-radius: 2px;
    transform: translate(-50%, -50%);
    background: linear-gradient(180deg, #7f9ec0 0%, #4f6b86 100%);
    opacity: 0.85;
}

.fence-post-drill-overlay__sidebar-body .container {
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
}

.fence-post-drill-overlay__sidebar-body h2,
.fence-post-drill-overlay__sidebar-body h3 {
    color: #eef6ff;
}

.fence-post-drill-overlay__sidebar-body p {
    color: #9db5cb;
}

.fence-post-drill-overlay__viewport-shell {
    position: relative;
    min-width: 0;
    min-height: 0;
    background:
        linear-gradient(180deg, rgba(4, 7, 11, 0.3), rgba(4, 7, 11, 0.82)),
        radial-gradient(circle at top, rgba(76, 123, 176, 0.08), transparent 30%),
        linear-gradient(180deg, #0a0f14 0%, #070c11 100%);
    overflow: hidden;
}

.fence-post-drill-overlay__viewport-canvas {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top, rgba(73, 111, 150, 0.06), transparent 28%),
        linear-gradient(180deg, #0a0f14 0%, #070c11 100%);
}

.fence-post-drill-overlay__viewport-canvas canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.fence-post-drill-overlay__viewport-overlay {
    position: absolute;
    top: 18px;
    left: 18px;
    right: 18px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    pointer-events: none;
}

.fence-post-drill-overlay__viewport-card {
    max-width: min(420px, calc(100% - 36px));
    min-width: 200px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(14, 21, 29, 0.84);
    border: 1px solid rgba(121, 183, 255, 0.2);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(10px);
    pointer-events: auto;
}

.fence-post-drill-overlay__viewport-card h3 {
    margin: 0 0 6px;
    font-size: 17px;
    color: #eef6ff;
}

.fence-post-drill-overlay__viewport-card p {
    margin: 0;
    color: #9db5cb;
    font-size: 13px;
    line-height: 1.45;
}

.fence-post-drill-overlay__sidebar-body h2.text-align-left,
.fence-post-drill-overlay__sidebar-body h3 {
    margin: 0 0 12px;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #9bb7d3;
}

.fence-post-drill-overlay__sidebar-body #drill-instructions {
    margin: 0 0 18px;
    padding: 14px 16px;
    border: 1px solid rgba(126, 154, 184, 0.18);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(23, 34, 44, 0.96), rgba(17, 25, 33, 0.96));
    color: #9db5cb;
    font-size: 12px;
    line-height: 1.5;
}

.fence-post-drill-overlay__sidebar-body #drill-config {
    display: grid;
    gap: 14px;
}

.fence-post-drill-overlay__sidebar-body #select-drill-item {
    margin-bottom: 0;
    padding: 16px;
    border: 1px solid rgba(126, 154, 184, 0.18);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(23, 34, 44, 0.96), rgba(17, 25, 33, 0.96));
}

.fence-post-drill-overlay__sidebar-body #select-drill-item .inputgroup__label {
    margin-bottom: 6px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #a8bacb;
}

.fence-post-drill-overlay__sidebar-body .custom-select .selected {
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(122, 146, 170, 0.28);
    background: rgba(7, 12, 17, 0.42);
    color: #e7f0f8;
}

.fence-post-drill-overlay__sidebar-body .custom-select .selected::after {
    color: #a8bacb;
}

.fence-post-drill-overlay__sidebar-body .custom-select .options {
    margin-top: 6px;
    border: 1px solid rgba(122, 146, 170, 0.28);
    border-radius: 12px;
    background: rgba(16, 24, 34, 0.98);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.32);
}

.fence-post-drill-overlay__sidebar-body .custom-select .option {
    color: #e7f0f8;
}

.fence-post-drill-overlay__sidebar-body .custom-select .option:hover {
    background: rgba(74, 152, 255, 0.22);
}

.fence-post-drill-overlay__sidebar-body #hole-rows {
    display: grid;
    gap: 12px;
}

.fence-post-drill-overlay__sidebar-body .hole-row {
    margin: 0;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(121, 183, 255, 0.16);
    background: linear-gradient(180deg, rgba(26, 39, 51, 0.94), rgba(19, 28, 37, 0.94));
}

.fence-post-drill-overlay__sidebar-body .drill-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.fence-post-drill-overlay__sidebar-body .drill-card-title {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: #dce9f6;
}

.fence-post-drill-overlay__sidebar-body .hole-row .field-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.fence-post-drill-overlay__sidebar-body .hole-row .field-grid:last-child {
    margin-bottom: 0;
}

.fence-post-drill-overlay__sidebar-body .hole-row .field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.fence-post-drill-overlay__sidebar-body .hole-row .field label {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #a8bacb;
}

.fence-post-drill-overlay__sidebar-body .hole-row input,
.fence-post-drill-overlay__sidebar-body .hole-row select {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(122, 146, 170, 0.28);
    background: rgba(7, 12, 17, 0.42);
    color: #e7f0f8;
}

.fence-post-drill-overlay__sidebar-body .hole-row .ghost,
.fence-post-drill-overlay__sidebar-body #add-holes {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
}

.fence-post-drill-overlay__sidebar-body .hole-row .ghost {
    background: rgba(35, 52, 68, 0.55);
    color: #e7f0f8;
    border: 1px solid rgba(122, 146, 170, 0.3);
}

.fence-post-drill-overlay__sidebar-body .flex-row {
    display: flex;
    justify-content: flex-start;
}

.fence-post-drill-overlay__sidebar-body #add-holes {
    border: 1px solid transparent;
    background: linear-gradient(180deg, #79b7ff, #4a98ff);
    color: #08131f;
}

.fence-post-drill-overlay__sidebar-body .image-container {
    display: block;
    width: 100%;
    margin-top: 16px;
    border-radius: 14px;
    border: 1px solid rgba(126, 154, 184, 0.16);
    background: rgba(7, 12, 17, 0.42);
}

.fence-post-drill-overlay__viewport-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    color: #9db5cb;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: linear-gradient(180deg, rgba(11, 16, 22, 0.1), rgba(11, 16, 22, 0.24));
    pointer-events: none;
}

.fence-post-drill-overlay__viewport-shell.is-ready .fence-post-drill-overlay__viewport-empty {
    display: none;
}

.fence-post-studio .color-picker-wrapper {
    display: grid;
    gap: 0.85rem;
}

.fence-post-studio .slider-wrapper {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
}

.fence-post-studio .color-picker-container {
    overflow: hidden;
}

.fence-post-studio .color-slider {
    overflow: hidden;
}

.fence-post-studio .color-list {
    display: flex;
    gap: 0.75rem;
    transition: transform 0.2s ease;
}

.fence-post-studio .color-item {
    width: 92px;
    min-width: 92px;
    display: grid;
    gap: 0.45rem;
    padding: 0.65rem;
    border-radius: 10px;
    border: 1px solid rgba(122, 146, 170, 0.28);
    background: rgba(18, 24, 31, 0.72);
    cursor: pointer;
    text-align: center;
}

.fence-post-studio .color-item:hover {
    border-color: rgba(185, 116, 52, 0.48);
}

.fence-post-studio .color-swatch {
    width: 100%;
    height: 44px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.fence-post-studio .color-title {
    font-size: 11px;
    line-height: 1.35;
    color: #dce9f6;
}

.fence-post-studio .scroll-btn,
.fence-post-studio .color-toggle-btn {
    min-height: 38px;
    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;
    padding: 0 12px;
}

.fence-post-studio .scroll-btn:disabled {
    opacity: 0.5;
}

.fence-post-studio #selected-color {
    min-height: 20px;
    font-size: 12px;
    color: #9db5cb;
}

.fence-post-studio .color-picker-container.show-all .slider-wrapper {
    grid-template-columns: minmax(0, 1fr);
}

.fence-post-studio .color-picker-container.show-all .scroll-btn {
    display: none;
}

.fence-post-studio .color-list.show-all {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
    width: 100% !important;
    transform: none !important;
}

.fence-post-studio #jsonOutput.hidden {
    display: none;
}

.fence-post-studio .resize-ta {
    width: 100%;
}

@media (min-width: 1100px) {
    .fence-post-studio__hero {
        grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr);
        align-items: start;
    }

    .fence-post-studio__layout {
        grid-template-columns: minmax(0, 1fr) minmax(320px, var(--fence-post-summary-width));
    }

    .fence-post-studio__product-grid {
        grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
        align-items: start;
    }

    .fence-post-studio__summary {
        position: sticky;
        top: 1rem;
    }
}

@media (max-width: 1099px) {
    .fence-post-studio__summary {
        position: static;
    }

    .fence-post-studio__compact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fence-post-drill-overlay__dialog {
        width: min(1720px, calc(100vw - 1.5rem));
        height: calc(100vh - 1.5rem);
    }

    .fence-post-drill-overlay__shell {
        grid-template-columns: minmax(320px, 390px) 10px minmax(0, 1fr);
    }

    .fence-post-drill-overlay__sidebar-body .hole-row .field-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .fence-post-studio__hero,
    .fence-post-studio__panel,
    .fence-post-studio__summary-panel {
        padding: 0.85rem;
    }

    .fence-post-studio__compact-grid,
    .fence-post-studio__tabs {
        grid-template-columns: minmax(0, 1fr);
    }

    .fence-post-studio .slider-wrapper {
        grid-template-columns: minmax(0, 1fr);
    }

    .fence-post-studio__preview-toolbar {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .fence-post-drill-overlay {
        padding: 0.75rem;
    }

    .fence-post-drill-overlay__dialog {
        width: calc(100vw - 1.5rem);
        height: calc(100vh - 1.5rem);
        border-radius: 16px;
    }

    .fence-post-drill-overlay__shell {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }

    .fence-post-drill-overlay__resizer {
        display: none;
    }

    .fence-post-drill-overlay__sidebar {
        border-right: none;
        border-bottom: 1px solid #324355;
        box-shadow: none;
    }

    .fence-post-drill-overlay__sidebar-body {
        padding: 16px;
    }

    .fence-post-drill-overlay__viewport-shell {
        min-height: 52vh;
        min-height: 52svh;
    }

    .fence-post-drill-overlay__viewport-overlay {
        top: 14px;
        left: 14px;
        right: 14px;
    }

    .fence-post-drill-overlay__viewport-card {
        max-width: calc(100% - 8px);
    }

    .fence-post-drill-overlay__sidebar-body .hole-row .field-grid {
        grid-template-columns: 1fr;
    }

    .fence-post-studio .tab-button,
    .fence-post-studio .scroll-btn,
    .fence-post-studio .color-toggle-btn,
    .fence-post-studio__preview-btn,
    .fence-post-studio__return-link,
    .fence-post-studio__add-to-cart {
        width: 100%;
    }
}