:root {
    color-scheme: light;
    --ink: #17201d;
    --muted: #68736f;
    --line: #dbe2de;
    --surface: #ffffff;
    --soft: #f4f7f5;
    --soft-strong: #eef2ef;
    --brand: var(--ink);
    --brand-dark: #000000;
    --accent: #c94f32;
    --shadow: 0 18px 45px rgba(23, 32, 29, 0.12);
    --shadow-soft: 0 10px 28px rgba(23, 32, 29, 0.07);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, #f8faf8 0%, var(--soft-strong) 100%);
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    stroke-width: 2.2;
}

.icon-only,
.view-button,
.qty-control button,
.dialog-close,
.remove-button {
    line-height: 1;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        linear-gradient(120deg, rgba(23, 32, 29, 0.74), rgba(23, 32, 29, 0.58)),
        url("../img/login/background.jpg") center / cover;
}

.login-panel {
    width: min(100%, 460px);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 8px;
    padding: 34px;
    box-shadow: var(--shadow);
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--brand);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

h1 {
    margin-bottom: 8px;
    font-size: clamp(34px, 6vw, 54px);
    line-height: 1;
}

.panoply-logo {
    display: block;
    width: auto;
}

.panoply-logo-login {
    width: min(100%, 360px);
    height: auto;
    margin-bottom: 18px;
}

.panoply-logo-topbar {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: min(28vw, 230px);
    max-height: 52px;
    height: auto;
}

h2 {
    margin-bottom: 0;
    font-size: 28px;
}

.login-copy {
    color: var(--muted);
    line-height: 1.5;
}

.login-form label,
.quote-form label,
.search-field span {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.password-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

input,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 11px 12px;
    color: var(--ink);
    background: #fff;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

input:focus,
textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(23, 32, 29, 0.16);
}

.password-row button,
.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 8px;
    padding: 12px 16px;
    color: #fff;
    background: var(--brand);
    font-weight: 800;
}

.password-row button:hover,
.primary-button:hover {
    background: var(--brand-dark);
}

.form-alert,
.quote-message {
    color: var(--accent);
    font-weight: 700;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    min-height: 76px;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(23, 32, 29, 0.05);
    backdrop-filter: blur(16px);
}

.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--ink);
    background: #fff;
    font-weight: 800;
}

.ghost-button:hover,
.ghost-button:focus-visible {
    border-color: rgba(23, 32, 29, 0.34);
    box-shadow: 0 0 0 3px rgba(23, 32, 29, 0.08);
}

.app-layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr) 340px;
    gap: 18px;
    padding: 18px;
}

.zone-panel,
.quote-panel,
.catalog {
    min-height: calc(100vh - 104px);
}

.zone-panel,
.quote-panel {
    position: sticky;
    top: 88px;
    align-self: start;
    max-height: calc(100vh - 106px);
    overflow: auto;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    box-shadow: var(--shadow-soft);
}

.panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.panel-title strong {
    color: var(--ink);
}

.zone-list {
    display: grid;
    gap: 8px;
}

.zone-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    color: var(--ink);
    background: #fff;
    font-weight: 800;
    text-align: left;
}

.zone-button:hover,
.zone-button:focus-visible {
    border-color: rgba(23, 32, 29, 0.28);
    box-shadow: 0 0 0 3px rgba(23, 32, 29, 0.07);
}

.zone-button small {
    min-width: 28px;
    border-radius: 999px;
    padding: 3px 7px;
    color: var(--muted);
    background: var(--soft);
    text-align: center;
}

.zone-button.is-active {
    color: #fff;
    border-color: var(--brand);
    background: var(--brand);
}

.zone-button.is-active small {
    color: var(--brand);
    background: #fff;
}

.catalog {
    min-width: 0;
}

.catalog-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
}

.catalog-tools {
    display: flex;
    align-items: end;
    gap: 12px;
}

.view-toggle {
    display: grid;
    grid-template-columns: repeat(2, 44px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.view-button {
    display: grid;
    place-items: center;
    border: 0;
    width: 44px;
    height: 42px;
    padding: 0;
    color: var(--ink);
    background: #fff;
    font-weight: 800;
}

.view-button .icon {
    width: 20px;
    height: 20px;
}

.view-button:hover,
.view-button:focus-visible {
    background: var(--soft);
}

.view-button.is-active {
    color: #fff;
    background: var(--ink);
}

.view-button:first-child {
    border-radius: 7px 0 0 7px;
}

.view-button:last-child {
    border-radius: 0 7px 7px 0;
}

.search-field {
    width: min(100%, 320px);
}

.search-field span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.product-list {
    display: grid;
    gap: 16px;
}

.zone-section {
    scroll-margin-top: 94px;
}

.zone-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    padding: 4px 4px;
}

.zone-section-head h3 {
    margin: 0;
    font-size: 21px;
}

.zone-section-head span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.zone-products {
    display: grid;
    gap: 16px;
}

.product-list[data-view="grid"] .zone-products {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    align-items: stretch;
}

.product-list[data-view="grid"] .product-card {
    height: 100%;
}

.product-list[data-view="grid"] .product-summary {
    height: 100%;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(132px, 1fr) auto;
    gap: 16px;
    align-content: start;
    align-items: stretch;
}

.product-list[data-view="grid"] .thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
}

.product-list[data-view="grid"] .product-title strong {
    display: -webkit-box;
    min-height: 42px;
    margin-bottom: 6px;
    overflow: hidden;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-list[data-view="grid"] .product-title span {
    display: -webkit-box;
    min-height: 36px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-list[data-view="grid"] .product-title .product-variant-badge {
    display: inline-flex;
    min-height: 0;
    overflow: visible;
    -webkit-line-clamp: unset;
}

.product-list[data-view="grid"] .product-actions {
    display: grid;
    grid-template-columns: 1fr;
    align-self: end;
    margin-top: auto;
    gap: 10px;
}

.product-list[data-view="grid"] .qty-control {
    grid-template-columns: 38px 1fr 38px;
}

.product-list[data-view="grid"] .add-button {
    width: 100%;
}

.product-list[data-view="grid"] .product-detail {
    padding: 0 18px 20px;
}

.product-list[data-view="grid"] .detail-grid {
    grid-template-columns: 1fr;
}

.product-list[data-view="grid"] > .custom-product-card {
    width: 100%;
}

.product-list[data-view="grid"] .custom-product-summary {
    height: auto;
    grid-template-columns: 78px minmax(0, 1fr) auto;
    grid-template-rows: none;
    align-items: center;
    gap: 18px;
}

.product-list[data-view="grid"] .custom-product-summary .thumb {
    width: 78px;
    aspect-ratio: 1;
}

.product-list[data-view="grid"] .custom-open-button {
    width: auto;
    justify-self: end;
}

.product-list[data-view="grid"] .custom-product-body {
    grid-template-columns: minmax(0, 1fr) minmax(200px, 240px) 190px;
    padding: 6px 18px 22px;
}

.product-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 0 rgba(23, 32, 29, 0.04);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.product-card:hover,
.product-card:focus-within {
    border-color: rgba(23, 32, 29, 0.24);
    box-shadow: var(--shadow-soft);
}

.product-summary {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    width: 100%;
    padding: 18px;
    cursor: pointer;
}

.product-toggle {
    min-width: 0;
    border: 0;
    padding: 0;
    color: inherit;
    background: transparent;
    text-align: left;
}

.thumb {
    width: 78px;
    aspect-ratio: 1;
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center;
    border-radius: 8px;
    border: 1px solid rgba(23, 32, 29, 0.08);
    color: var(--brand);
    background: #eef2ef;
    font-weight: 900;
}

.thumb-button {
    border: 0;
    padding: 0;
}

.thumb-button:hover,
.thumb-button:focus-visible {
    box-shadow: 0 0 0 3px rgba(23, 32, 29, 0.18);
}

.thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.thumb img + span {
    display: none;
}

.product-title {
    min-width: 0;
}

.product-title strong {
    display: block;
    margin-bottom: 7px;
    line-height: 1.18;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-title span {
    color: var(--muted);
    font-size: 13px;
}

.product-title .product-variant-badge,
.product-dialog-info .product-variant-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: fit-content;
    margin-top: 10px;
    border: 1px solid rgba(23, 32, 29, 0.22);
    border-radius: 999px;
    padding: 4px 9px;
    color: var(--ink);
    background: var(--soft);
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.product-variant-badge .icon {
    width: 13px;
    height: 13px;
    stroke-width: 2.5;
}

.product-dialog-info .product-variant-badge {
    margin: -4px 0 16px;
}

.product-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: default;
}

.qty-control {
    display: grid;
    grid-template-columns: 36px 42px 36px;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.qty-control button {
    display: grid;
    place-items: center;
    border: 0;
    background: var(--soft);
    font-weight: 900;
}

.qty-control button .icon {
    width: 15px;
    height: 15px;
}

.qty-control button:hover,
.qty-control button:focus-visible {
    background: var(--soft-strong);
}

.qty-control input {
    border: 0;
    border-radius: 0;
    padding: 8px 4px;
    text-align: center;
}

.add-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 8px;
    padding: 11px 14px;
    color: #fff;
    background: var(--ink);
    font-weight: 800;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.12);
}

.add-button:hover,
.add-button:focus-visible,
.custom-open-button:hover,
.custom-open-button:focus-visible {
    background: #000;
    box-shadow: 0 8px 18px rgba(23, 32, 29, 0.18);
}

.product-detail {
    display: none;
    padding: 4px 18px 20px 114px;
    background: linear-gradient(180deg, rgba(244, 247, 245, 0.62), rgba(255, 255, 255, 0));
}

.product-card.is-open .product-detail {
    display: grid;
}

.custom-product-card {
    border-color: rgba(23, 32, 29, 0.36);
    background: linear-gradient(180deg, #fbfcfb 0%, #ffffff 100%);
}

.custom-product-summary {
    grid-template-columns: 78px minmax(0, 1fr) auto;
    padding: 18px;
}

.custom-product-summary strong,
.custom-product-summary span {
    display: block;
}

.custom-product-summary span {
    color: var(--muted);
    font-size: 13px;
}

.custom-kicker {
    margin-bottom: 3px;
    color: var(--brand) !important;
    font-size: 11px !important;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.custom-product-summary .custom-thumb {
    display: grid;
    grid-template-rows: auto auto;
    align-content: center;
    justify-items: center;
    gap: 7px;
    padding: 8px;
    color: #fff;
    background: var(--brand);
    text-align: center;
}

.custom-product-summary .custom-thumb .custom-thumb-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    border-radius: 999px;
    color: #fff !important;
}

.custom-product-summary .custom-thumb .custom-thumb-icon .icon {
    width: 18px;
    height: 18px;
}

.custom-product-summary .custom-thumb .custom-thumb-label {
    color: #fff !important;
    font-size: 9px;
    font-weight: 900;
    line-height: 1.05;
    text-transform: uppercase;
}

.custom-product-body {
    grid-template-columns: minmax(0, 1fr) minmax(180px, 240px) 190px;
    gap: 20px;
    align-items: end;
    padding: 6px 18px 22px 114px;
}

.product-card.is-open .custom-product-body {
    display: grid;
}

.custom-open-button {
    color: #fff;
    background: var(--brand);
}

.custom-open-button span,
.custom-open-button .icon {
    color: #fff;
}

.custom-product-body label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.custom-upload {
    display: grid;
    gap: 8px;
}

.custom-upload input {
    padding: 9px;
}

.custom-image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 34px;
}

.custom-image-chip {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 6px;
    max-width: 170px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 4px 6px 4px 4px;
    background: #fff;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.custom-image-chip img {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    object-fit: cover;
}

.custom-image-chip span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.custom-product-body textarea {
    min-height: 92px;
    resize: vertical;
}

.custom-product-body .product-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.custom-product-body .qty-control {
    grid-template-columns: 42px 1fr 42px;
}

.custom-product-body .add-button {
    width: 100%;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
}

.detail-grid div {
    border-top: 1px solid var(--line);
    padding-top: 12px;
    line-height: 1.42;
}

.detail-grid span {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.detail-grid span .icon {
    width: 14px;
    height: 14px;
    color: var(--ink);
    stroke-width: 2.3;
}

.variant-select {
    display: grid;
    gap: 8px;
    margin-top: 16px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.detail-grid + .variant-select {
    margin-top: 28px;
}

.variant-select select.needs-selection {
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(23, 32, 29, 0.16);
}

.product-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.gallery-thumb {
    display: grid;
    grid-template-columns: 54px auto;
    align-items: center;
    gap: 10px;
    min-width: 142px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 7px 12px 7px 7px;
    color: var(--ink);
    background: #fff;
    font-weight: 800;
}

.gallery-thumb:hover,
.gallery-thumb:focus-visible {
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(23, 32, 29, 0.12);
}

.gallery-thumb img {
    width: 54px;
    height: 54px;
    border-radius: 6px;
    object-fit: cover;
    background: #fff;
}

.gallery-thumb span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.gallery-thumb span .icon {
    width: 15px;
    height: 15px;
}

select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px;
    background: #fff;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

select:focus {
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(23, 32, 29, 0.14);
}

.cart-items {
    display: grid;
    gap: 10px;
}

.cart-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 0 rgba(23, 32, 29, 0.04);
}

.cart-controls {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
}

.cart-qty-control {
    grid-template-columns: 34px 1fr 34px;
}

.cart-qty-control input {
    min-width: 0;
}

.cart-line.is-custom {
    border-color: rgba(23, 32, 29, 0.36);
    background: #fbfcfb;
}

.cart-line strong,
.cart-line small {
    display: block;
}

.cart-line small {
    color: var(--muted);
}

.cart-image-strip {
    display: flex;
    gap: 5px;
    margin-top: 7px;
}

.cart-image-strip img {
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 6px;
    object-fit: cover;
    background: #fff;
}

.remove-button {
    display: grid;
    place-items: center;
    border: 0;
    color: var(--accent);
    background: transparent;
    font-weight: 900;
    border-radius: 8px;
    padding: 8px 10px;
}

.remove-button .icon {
    width: 16px;
    height: 16px;
}

.remove-button:hover,
.remove-button:focus-visible {
    background: rgba(201, 79, 50, 0.08);
}

.empty-state {
    margin: 12px 0;
    padding: 18px;
    border: 1px dashed var(--line);
    border-radius: 8px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.58);
    text-align: center;
}

.quote-form {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.mobile-quote-shortcut {
    display: none;
}

.product-dialog,
.image-dialog {
    position: relative;
    border: 0;
    border-radius: 8px;
    padding: 56px 20px 20px;
    box-shadow: var(--shadow);
}

.product-dialog {
    width: min(1120px, calc(100vw - 32px));
    max-height: min(90vh, 900px);
    overflow: auto;
}

.product-dialog-content {
    display: grid;
    grid-template-columns: minmax(340px, 44%) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.product-dialog-media {
    display: grid;
    gap: 10px;
}

.product-dialog-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 520px;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(23, 32, 29, 0.04);
}

.product-dialog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-dialog-placeholder {
    display: grid;
    place-items: center;
    color: var(--ink);
    background: var(--soft);
    font-weight: 900;
}

.product-dialog-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    gap: 8px;
}

.dialog-gallery-thumb {
    aspect-ratio: 1;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
    background: #fff;
}

.dialog-gallery-thumb.is-active {
    border-color: var(--ink);
}

.dialog-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-dialog-info h3 {
    margin: 0 0 14px;
    font-size: 30px;
    line-height: 1.1;
}

.product-dialog-actions {
    display: grid;
    grid-template-columns: minmax(130px, 190px) minmax(120px, 180px);
    gap: 10px;
    margin-top: 16px;
}

.product-dialog-actions .qty-control {
    grid-template-columns: 42px 1fr 42px;
}

.product-dialog-actions .add-button {
    width: 100%;
}

.image-dialog {
    width: min(760px, calc(100vw - 32px));
}

.image-dialog img {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    background: var(--soft);
}

.dialog-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0;
    background: #fff;
    color: var(--ink);
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}

.dialog-close:hover,
.dialog-close:focus-visible {
    border-color: rgba(23, 32, 29, 0.3);
    background: var(--soft);
}

@media (max-width: 1120px) {
    .app-layout {
        grid-template-columns: 190px minmax(0, 1fr);
    }

    .quote-panel {
        position: static;
        grid-column: 1 / -1;
        min-height: auto;
        max-height: none;
    }
}

@media (max-width: 760px) {
    body.has-mobile-quote-shortcut {
        padding-bottom: 86px;
    }

    .topbar,
    .catalog-head {
        align-items: stretch;
        flex-direction: column;
    }

    .catalog-tools {
        align-items: stretch;
        flex-direction: column;
    }

    .view-toggle {
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
    }

    .view-button {
        width: 100%;
        height: 44px;
    }

    .panoply-logo-topbar {
        position: static;
        align-self: center;
        transform: none;
        width: min(100%, 220px);
        max-height: none;
    }

    .topbar form {
        align-self: center;
    }

    .app-layout {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .zone-panel {
        position: static;
        min-height: auto;
        max-height: none;
    }

    .zone-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-summary {
        gap: 14px;
        grid-template-columns: 58px minmax(0, 1fr);
        padding: 14px;
    }

    .thumb {
        width: 58px;
    }

    .product-actions {
        grid-column: 1 / -1;
        justify-content: end;
    }

    .product-list[data-view="grid"] .zone-products {
        grid-template-columns: 1fr;
    }

    .product-list[data-view="grid"] .product-summary {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 16px;
        padding: 16px;
    }

    .product-list[data-view="grid"] .thumb {
        width: 100%;
        aspect-ratio: 4 / 3;
    }

    .product-list[data-view="grid"] .product-actions {
        grid-column: auto;
        justify-content: stretch;
    }

    .custom-product-summary {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .custom-open-button {
        grid-column: 1 / -1;
        justify-self: end;
    }

    .custom-product-body {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 4px 16px 18px;
    }

    .product-list[data-view="grid"] .custom-product-summary {
        height: auto;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 14px;
        align-items: stretch;
        padding: 16px;
    }

    .product-list[data-view="grid"] .custom-product-summary .custom-thumb {
        width: 100%;
        min-height: 120px;
        aspect-ratio: auto;
    }

    .product-list[data-view="grid"] .custom-open-button {
        width: 100%;
        justify-self: stretch;
    }

    .product-list[data-view="grid"] .custom-product-body {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 16px 18px;
    }

    .product-detail {
        grid-template-columns: 1fr;
        padding: 4px 16px 18px;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .product-dialog-content {
        grid-template-columns: 1fr;
    }

    .product-dialog-actions {
        grid-template-columns: 1fr;
    }

    .mobile-quote-shortcut:not([hidden]) {
        position: fixed;
        right: 14px;
        bottom: max(14px, env(safe-area-inset-bottom));
        left: 14px;
        z-index: 5;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        min-height: 54px;
        border: 1px solid rgba(255, 255, 255, 0.24);
        border-radius: 8px;
        padding: 12px 16px;
        color: #fff;
        background: var(--ink);
        box-shadow: 0 16px 36px rgba(23, 32, 29, 0.28);
        font-weight: 900;
    }

    .mobile-quote-shortcut strong {
        display: grid;
        place-items: center;
        min-width: 26px;
        height: 26px;
        border-radius: 999px;
        color: var(--ink);
        background: #fff;
        font-size: 13px;
    }
}
