@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("/fonts/inter-latin-wght.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}




:root {
    --tabbed-font-family: "Inter", system-ui, -apple-system, sans-serif;
    --app-sidebar-width: 256px;
    --site-rail-width: 0px;
    --header-bar-height: 64px;
    --header-middle-width: 68%;
    --control-h: 32px;
    --header-dropdown-duration: 0.22s;
    --header-dropdown-ease: cubic-bezier(0.33, 1, 0.68, 1);
    --header-overlay-row-height: 48px;
    --header-overlay-left: var(--app-sidebar-width);
    --header-overlay-right-inset: 0;
    --tabbed-affiliate-top: 0px;
    --tabbed-fixed-below-header: var(--header-bar-height);
    --shop-grid-footer-height: var(--header-bar-height);
    --shop-gf-h: var(--control-h);
    --shop-gf-pill-radius: 9999px;
    --header-profile-menu-width: 192px;
    --header-profile-menu-item-height: var(--control-h);
    --ink: #111111;
    --muted: #6b7280;
    --line: #d0d0d0;
    --bg: #fafafa;
    --paper: #ffffff;
    --yes: #0f7a3a;
    --no: #9a9a9a;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    font-family: var(--tabbed-font-family);
}

html,
body {
    margin: 0;
    min-height: 100%;
    height: 100%;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--tabbed-font-family);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: -0.011em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
}

body {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #4a5568;
    background: #ffffff;
    padding-top: var(--header-bar-height);
}

button,
input,
select,
textarea,
table,
th,
td,
a,
span,
p,
h1 {
    font-family: var(--tabbed-font-family);
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.shop-shell {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    width: 100%;
    overflow: hidden;
}

.shop-layout {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    flex: 1 1 0;
    min-height: 0;
    width: 100%;
    overflow: hidden;
}

.shop-sidebar {
    position: relative;
    align-self: stretch;
    overflow: hidden;
    flex: 0 0 var(--app-sidebar-width);
    width: var(--app-sidebar-width);
    min-width: min(256px, 100%);
    background-color: #ffffff;
    border-right: 1px solid var(--line);
    box-shadow: 4px 0 32px rgba(90, 159, 212, 0.07);
    box-sizing: border-box;
}

.shop-sidebar-inner,
.sidebar-main {
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

@media (min-width: 656px) {
    :where(html:not(.is-compact)) .shop-layout {
        padding-left: var(--app-sidebar-width);
    }
    :where(html:not(.is-compact)) .shop-sidebar {
        position: fixed;
        top: var(--tabbed-fixed-below-header);
        left: var(--site-rail-width);
        bottom: var(--shop-grid-footer-height);
        z-index: 200;
        width: var(--app-sidebar-width);
        flex: none;
    }

}

.shop-main {
    flex: 1 1 0;
    align-self: stretch;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--paper);
}

.shop-sidebar .shop-filter-panels.contribute-tab-picker-rows {
    margin-top: 0;
    gap: 0;
    width: 100%;
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.shop-sidebar .shop-filter-stack.contribute-attr-column--stack {
    gap: 0;
    width: 100%;
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.contribute-attr-column--stack {
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
}

.contribute-attr-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: #fff;
}

.shop-sidebar .shop-filter-stack .shop-filter-panel.contribute-attr-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    margin: 0;
    border-radius: 0;
    border: none;
    background: #ffffff;
}

.shop-sidebar .shop-filter-stack .shop-filter-panel.contribute-attr-panel:not(:last-child) {
    border-bottom: 1px solid #e8e8e8;
}

.shop-sidebar .shop-filter-stack .shop-filter-panel.shop-filter-panel--collapsed {
    flex: 0 0 auto;
}

.shop-sidebar .shop-filter-stack .shop-filter-panel.shop-filter-panel--expanded {
    flex: 0 0 auto;
    min-height: 0;
    overflow: visible;
}

.shop-sidebar .shop-filter-mode {
    flex-shrink: 0;
    min-height: 48px;
    height: 48px;
    padding: 0 14px;
    border-bottom: 1px solid #d0d0d0;
    background: #fff;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    box-sizing: border-box;
}

.shop-filter-mode-label {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.02em;
    color: #6b7280;
    line-height: 1.2;
}

.shop-sidebar .shop-filter-mode-toggle {
    display: inline-flex;
    align-items: center;
    height: var(--control-h);
    padding: 2px;
    gap: 2px;
    border-radius: 9999px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    box-sizing: border-box;
}

.shop-sidebar .shop-filter-mode-btn {
    margin: 0;
    padding: 0 12px;
    align-self: stretch;
    border: none;
    border-radius: 9999px;
    background: transparent;
    font-family: var(--tabbed-font-family);
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.02em;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.shop-sidebar .shop-filter-mode-btn.shop-filter-mode-btn--active {
    background: #fffbeb;
    color: #967716;
    border: 1px solid #e8d9a8;
}

.shop-filter-panel-toggle {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    background: #fff;
    cursor: pointer;
    font-family: var(--tabbed-font-family);
    color: #6b7280;
    text-align: left;
    box-sizing: border-box;
    flex-shrink: 0;
}

.contribute-attr-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 48px;
    min-height: 48px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.02em;
    color: inherit;
    box-sizing: border-box;
}

.contribute-attr-header-title {
    color: inherit;
    font-family: var(--tabbed-font-family);
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.02em;
}

.shop-sidebar .shop-filter-panel.shop-filter-panel--has-selections .shop-filter-panel-toggle,
.shop-sidebar .shop-filter-panel.shop-filter-panel--expanded .shop-filter-panel-toggle {
    background: #fffbeb;
    color: #967716;
}

.shop-sidebar .shop-filter-panel:not(.shop-filter-panel--has-selections):not(.shop-filter-panel--expanded) .shop-filter-panel-toggle:hover {
    background: #fffbeb;
    color: #967716;
}

.shop-sidebar .shop-filter-panel > .shop-filter-panel-selected-wrap {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #fff;
}

.shop-sidebar .shop-filter-panel > .shop-filter-panel-selected-wrap:not(:empty) {
    border-bottom: 1px solid #e8e8e8;
}

.shop-sidebar .shop-filter-panel.shop-filter-panel--has-selections .shop-filter-panel-selected-wrap {
    background: #fffbeb;
}

.shop-sidebar .shop-filter-panel.shop-filter-panel--has-selections .sidebar-selected-chip {
    border-left: none;
    background: transparent;
    border-top-color: #e8d9a8;
}

.shop-sidebar .shop-filter-panel .shop-filter-panel-selected-wrap .sidebar-selected-chip:first-child {
    border-top: none;
}

.sidebar-selected-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--control-h);
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.02em;
    line-height: 1.35;
    color: #6b7280;
    background-color: #ffffff;
    border-top: 1px solid #e8e8e8;
    border-left: 4px solid #1976d2;
    box-sizing: border-box;
}

.sidebar-chip-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.sidebar-chip-left span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.35;
    font-family: var(--tabbed-font-family);
    font-size: 13px;
    font-weight: 300;
}

.sidebar-chip-color {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.sidebar-chip-remove {
    font-family: var(--tabbed-font-family);
    font-size: 13px;
    font-weight: 300;
    padding: 0 2px;
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    flex-shrink: 0;
    line-height: 1;
}

.sidebar-chip-remove:hover {
    color: #4a5568;
}

.shop-filter-panel-body {
    display: grid;
    grid-template-rows: 0fr;
    min-height: 0;
    overflow: hidden;
    background: #fff;
    transition: grid-template-rows var(--header-dropdown-duration) var(--header-dropdown-ease);
}

.shop-filter-panel--expanded .shop-filter-panel-body {
    grid-template-rows: 1fr;
    border-top: 1px solid #e8e8e8;
}

.shop-sidebar .shop-filter-panel--expanded > .shop-filter-panel-selected-wrap:not(:empty) + .shop-filter-panel-body {
    border-top: none;
}

.shop-sidebar .shop-filter-panel--expanded .shop-filter-panel-body {
    grid-template-rows: 1fr;
    flex: 0 0 auto;
    min-height: 0;
}

.shop-filter-panel-body-inner {
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(-6px);
    transition:
        opacity var(--header-dropdown-duration) var(--header-dropdown-ease),
        transform var(--header-dropdown-duration) var(--header-dropdown-ease);
}

.shop-filter-panel--expanded .shop-filter-panel-body-inner {
    opacity: 1;
    transform: translateY(0);
}

.shop-sidebar .shop-filter-panel--expanded .shop-filter-panel-body-inner {
    overflow: visible;
    min-height: min-content;
}

.shop-sidebar .shop-filter-search-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 6px 8px 4px;
    width: calc(100% - 16px);
    height: var(--control-h);
    min-height: var(--control-h);
    box-sizing: border-box;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    background-color: #f9fafb;
    overflow: hidden;
    flex-shrink: 0;
}

.shop-sidebar .shop-filter-search-wrap:focus-within {
    border-color: #d1d5db;
    background-color: #ffffff;
}

.shop-sidebar .shop-filter-search-input {
    margin: 0 !important;
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    padding: 0 4px 0 14px;
    font-family: var(--tabbed-font-family);
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.02em;
    color: #374151;
    border: none;
    background-color: transparent;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
}

.shop-sidebar .shop-filter-search-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    min-width: 40px;
    margin-left: auto;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.shop-sidebar .shop-filter-search-icon {
    display: block;
    width: 18px;
    height: 18px;
}

.sidebar-filter-list {
    display: flex;
    flex-direction: column;
}

.shop-sidebar .shop-filter-panel .contribute-attr-picker-list.sidebar-filter-list {
    flex-direction: column;
    gap: 0;
    padding: 4px 8px 8px;
}

.shop-sidebar .shop-filter-panel .contribute-attr-picker-list {
    flex: 0 0 auto;
    min-height: auto;
    overflow: visible;
}

.sidebar-filter-item {
    display: flex;
    align-items: center;
    min-height: var(--control-h);
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.02em;
    line-height: 1.35;
    color: #6b7280;
    gap: 8px;
    cursor: pointer;
    background-color: #ffffff;
    border-left: 4px solid transparent;
    box-sizing: border-box;
}

.shop-sidebar .shop-filter-panel .sidebar-filter-list .sidebar-filter-item {
    border-left: none;
    height: 32px;
    min-height: 32px;
    max-height: 32px;
    padding-top: 0;
    padding-bottom: 0;
    width: 100%;
}

.shop-sidebar .shop-filter-panel .sidebar-filter-list .sidebar-filter-item:hover {
    background: #fffbeb;
    color: #967716;
}

.sidebar-filter-item span {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: var(--tabbed-font-family);
    font-weight: 300;
}

.tab-checkbox {
    display: none;
}

.tab-color {
    width: 12px;
    height: 12px;
    border: none;
    flex-shrink: 0;
}

.table-wrap {
    overflow: auto;
    flex: 1 1 0;
    min-height: 0;
}

table {
    width: max-content;
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--paper);
    font-family: var(--tabbed-font-family);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: -0.011em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
}

th,
td {
    padding: 4px 8px;
    border-bottom: 1px solid #e8e8e8;
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
    max-width: 148px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: var(--tabbed-font-family);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: -0.011em;
    line-height: 1.35;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

th {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--paper);
    font-family: var(--tabbed-font-family);
    font-weight: 500;
    font-size: 12px;
    letter-spacing: -0.011em;
    text-transform: none;
    color: var(--ink);
    cursor: default;
    user-select: none;
    pointer-events: none;
}

tbody tr:hover td {
    background: #fafafa;
}

td.num {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "kern" 1, "liga" 1, "calt" 1, "tnum" 1;
}

a,
a:visited {
    color: #1976d2;
    text-decoration: none;
    font-family: var(--tabbed-font-family);
}

a:hover {
    text-decoration: underline;
}

.th-expand {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
}

.th-expand-label {
    min-width: 0;
}

th.col-tags .cell-expand-btn {
    pointer-events: auto;
}

.table-tags {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 0;
    min-width: 0;
    font-family: var(--tabbed-font-family);
}

.table-tags-more {
    display: grid;
    grid-template-rows: 0fr;
    width: 100%;
    min-height: 0;
    transition: grid-template-rows var(--header-dropdown-duration) var(--header-dropdown-ease);
}

td.col-tags.is-open .table-tags-more {
    grid-template-rows: 1fr;
}

.table-tags-more-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-height: 0;
    overflow: hidden;
    padding-top: 6px;
    opacity: 0;
    transform: translateY(-6px);
    transition:
        opacity var(--header-dropdown-duration) var(--header-dropdown-ease),
        transform var(--header-dropdown-duration) var(--header-dropdown-ease);
}

td.col-tags.is-open .table-tags-more-inner {
    opacity: 1;
    transform: translateY(0);
}

.cell-expand-btn {
    box-sizing: border-box;
    width: 24px;
    min-width: 24px;
    height: 24px;
    min-height: 24px;
    margin: 0;
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    background: #f9fafb;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    flex-shrink: 0;
    -webkit-appearance: none;
    appearance: none;
}

.cell-expand-btn:hover {
    border-color: #d1d5db;
    background: #ffffff;
}

.cell-expand-btn img {
    display: block;
    width: 14px;
    height: 14px;
    transition: transform 0.32s ease;
}

.cell-expand-btn.is-expanded img {
    transform: rotate(180deg);
}

.cell-expand-btn:focus {
    outline: none;
}

.cell-expand-btn:focus-visible {
    outline: 2px solid #1976d2;
    outline-offset: 2px;
}

.table-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    font-family: var(--tabbed-font-family);
}

.table-tag-color {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.table-tag .cell-filter {
    font-family: var(--tabbed-font-family);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: -0.011em;
}

.empty,
.error {
    padding: 40px 20px;
    color: var(--muted);
    font-weight: 300;
}

.header {
    width: 100%;
    height: var(--header-bar-height);
    display: flex;
    flex-direction: row;
    align-items: stretch;
    border-bottom: 1px solid #d0d0d0;
    position: fixed;
    top: var(--tabbed-affiliate-top);
    left: 0;
    right: 0;
    z-index: 10001;
    background: #ffffff;
    overflow: hidden;
}

.header-left {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 var(--app-sidebar-width);
    width: var(--app-sidebar-width);
    max-width: var(--app-sidebar-width);
    height: 100%;
    padding: 0 16px;
    border-right: 1px solid #d0d0d0;
    box-sizing: border-box;
}

.header-left-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.header-left-brand > a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    width: 40px;
    height: 40px;
}

.header-logo {
    width: 36px;
    height: 36px;
    display: block;
    object-fit: contain;
}

.header-middle {
    display: flex;
    flex: 1 1 auto;
    align-items: stretch;
    min-width: 0;
    padding: 0 8px;
}

.header-nav-options {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    flex: 1 1 auto;
    min-width: 0;
    gap: 4px;
}

.header-nav-item.header-nav-categories {
    flex: 0 1 auto;
    max-width: 100%;
    min-width: 0;
    display: flex;
}

.header-categories-mains-scroll {
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    display: flex;
    align-items: stretch;
    scrollbar-width: none;
}

.header-categories-mains-scroll::-webkit-scrollbar {
    display: none;
}

.header-categories-row--mains {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 2px;
    min-height: var(--header-bar-height);
    width: max-content;
}

.header-category-main,
.header-category-sub {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    height: var(--control-h);
    min-height: var(--control-h);
    margin: 0;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.02em;
    color: #6b7280;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    border: 1px solid transparent;
    border-radius: 9999px;
    background: transparent;
    cursor: pointer;
    font-family: var(--tabbed-font-family);
}

.header-category-main:hover,
.header-category-main.is-active,
.header-category-sub:hover,
.header-category-sub.is-active {
    background: #fffbeb;
    color: #967716;
    border-color: #e8d9a8;
}

.header-end {
    display: flex;
    flex: 0 0 auto;
    flex-shrink: 0;
    align-items: stretch;
    justify-content: flex-end;
    margin-left: auto;
    width: auto;
    min-width: 0;
    padding: 0 8px;
    box-sizing: border-box;
}

.header-end > .header-mobile-search {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    margin-right: 16px;
    padding: 0;
    box-sizing: border-box;
}

.header-mobile-search__wrap {
    display: flex;
    align-items: center;
    width: min(300px, 42vw);
    max-width: 100%;
    height: var(--control-h);
    min-height: var(--control-h);
    max-height: var(--control-h);
    margin: 0;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    background: #f9fafb;
    box-sizing: border-box;
    overflow: hidden;
    flex-shrink: 0;
}

.header-mobile-search__wrap:focus-within {
    border-color: #d1d5db;
    background-color: #ffffff;
}

.header-mobile-search__input {
    flex: 1;
    min-width: 0;
    min-height: 0;
    height: 100%;
    padding: 0 12px 0 14px;
    border: none;
    border-radius: 0;
    font-family: var(--tabbed-font-family);
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.02em;
    color: #374151;
    background: transparent;
    box-sizing: border-box;
    line-height: 1.3;
    text-align: left;
    -webkit-appearance: none;
    appearance: none;
}

.header-mobile-search__input:focus {
    outline: none;
    color: #111827;
}

.header-mobile-search__input::placeholder {
    color: #6b7280;
    opacity: 0.75;
}

.header-mobile-search__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    width: var(--control-h);
    min-width: var(--control-h);
    max-width: var(--control-h);
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    color: #4a5568;
    flex: 0 0 var(--control-h);
    margin: 0;
    margin-left: auto;
    box-sizing: border-box;
}

.header-mobile-search__submit:hover {
    color: #111827;
    background: transparent;
}

.header-mobile-search__submit:focus {
    outline: none;
}

.header-mobile-search__submit:focus-visible {
    outline: 2px solid #1976d2;
    outline-offset: -2px;
    background: transparent;
    color: #111827;
}

.header-mobile-search__icon {
    display: block;
    width: 18px;
    height: 18px;
    opacity: 1;
}

@media (min-width: 656px) {
    :where(html:not(.is-compact)) .header-end > .header-mobile-search .header-mobile-search__wrap {
        width: 300px;
        min-width: 300px;
        max-width: 300px;
    }

}

.header-categories-dropdown {
    position: fixed;
    top: var(--tabbed-fixed-below-header);
    left: var(--header-overlay-left);
    right: var(--header-overlay-right-inset);
    z-index: 310;
    background: transparent;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--header-dropdown-duration) var(--header-dropdown-ease);
}

.header-categories-dropdown.is-open {
    opacity: 1;
    pointer-events: auto;
}

.header-categories-dropdown[hidden] {
    display: none;
}

.header-categories-dropdown > .header-categories-panel {
    width: 100%;
    border-bottom: 1px solid #d0d0d0;
    background: #ffffff;
    overflow: hidden;
}

.header-categories-row--subs {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 2px;
    padding: 0 8px;
    background: #ffffff;
    max-height: 0;
    min-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition:
        max-height var(--header-dropdown-duration) var(--header-dropdown-ease),
        min-height var(--header-dropdown-duration) var(--header-dropdown-ease),
        opacity var(--header-dropdown-duration) var(--header-dropdown-ease),
        transform var(--header-dropdown-duration) var(--header-dropdown-ease);
}

.header-categories-row--subs.header-categories-subs--open {
    max-height: calc(var(--header-overlay-row-height) - 1px);
    min-height: calc(var(--header-overlay-row-height) - 1px);
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.shop-grid-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    height: var(--shop-grid-footer-height);
    padding: 0 16px;
    border-top: 1px solid #d0d0d0;
    background: #ffffff;
    flex-shrink: 0;
    z-index: 210;
    box-sizing: border-box;
}

.shop-grid-footer:has(.shop-grid-footer__select[aria-expanded="true"]) {
    overflow: visible;
    z-index: 250;
}

.shop-grid-footer__left {
    display: none;
}

.shop-grid-footer__auth-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: var(--control-h);
    padding: 0 14px;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    background: #f9fafb;
    color: #374151;
    font-family: var(--tabbed-font-family);
    font-size: 13px;
    font-weight: 300;
    cursor: pointer;
}

.shop-grid-footer__auth-pill:hover {
    background: #ffffff;
    border-color: #d1d5db;
}

.shop-grid-footer__sort {
    display: flex;
    align-items: center;
    justify-self: start;
}

.shop-grid-footer__sort-menu {
    position: relative;
    width: 12rem;
}

.shop-grid-footer__select {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: var(--control-h);
    padding: 0 14px;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    background: #f9fafb;
    color: #374151;
    font-family: var(--tabbed-font-family);
    font-size: 13px;
    font-weight: 300;
    cursor: pointer;
}

.shop-grid-footer__select:hover,
.shop-grid-footer__select[aria-expanded="true"] {
    background: #ffffff;
    border-color: #d1d5db;
}

.shop-grid-footer__sort-dropdown {
    position: absolute;
    left: 0;
    bottom: calc(100% + 6px);
    width: 100%;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
    z-index: 320;
    overflow: hidden;
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition:
        opacity var(--header-dropdown-duration) var(--header-dropdown-ease),
        transform var(--header-dropdown-duration) var(--header-dropdown-ease);
}

.shop-grid-footer__sort-dropdown.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.shop-grid-footer__sort-dropdown[hidden] {
    display: none;
}

.shop-grid-footer__sort-option {
    display: flex;
    width: 100%;
    padding: 8px 14px;
    border: none;
    background: transparent;
    text-align: left;
    font-family: var(--tabbed-font-family);
    font-size: 13px;
    font-weight: 300;
    color: #374151;
    cursor: pointer;
}

.shop-grid-footer__sort-option:hover,
.shop-grid-footer__sort-option[aria-selected="true"] {
    background: #fffbeb;
    color: #967716;
}

.shop-grid-footer__showing {
    margin: 0;
    padding: 0 8px;
    font-size: 13px;
    font-weight: 300;
    color: #6b7280;
    white-space: nowrap;
    justify-self: center;
}

.shop-grid-footer__pager {
    display: flex;
    align-items: center;
    justify-self: end;
    gap: 8px;
}

.shop-grid-footer__page {
    min-width: 3.25rem;
    text-align: center;
    font-weight: 300;
    color: #374151;
}

.shop-grid-footer__btn {
    height: var(--control-h);
    min-width: var(--control-h);
    padding: 0 10px;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    background: #f9fafb;
    color: #374151;
    cursor: pointer;
    font-family: var(--tabbed-font-family);
}

.shop-grid-footer__btn:disabled {
    opacity: 0.4;
    cursor: default;
}

@media (min-width: 656px) {
    :where(html:not(.is-compact)) .shop-grid-footer {
        margin-left: var(--app-sidebar-width);
    }
    :where(html:not(.is-compact)) .shop-grid-footer__left {
        display: flex !important;
        position: fixed;
        left: 0;
        bottom: 0;
        z-index: 211;
        flex-direction: row;
        align-items: center;
        justify-content: stretch;
        gap: 8px;
        width: var(--app-sidebar-width);
        height: var(--shop-grid-footer-height);
        min-height: var(--shop-grid-footer-height);
        max-height: var(--shop-grid-footer-height);
        padding: 0 12px;
        border-top: 1px solid #d0d0d0;
        border-right: 1px solid #d0d0d0;
        background: #ffffff;
        box-sizing: border-box;
    }
    :where(html:not(.is-compact)) .shop-grid-footer__left .shop-grid-footer__auth-pill {
        width: auto;
        max-width: 100%;
        min-width: 0;
        flex: 1 1 auto;
        justify-content: flex-start;
    }
    :where(html:not(.is-compact)) .shop-grid-footer__left .shop-grid-footer__profile {
        height: 100%;
        flex: 1 1 auto;
        min-width: 0;
    }
    :where(html:not(.is-compact)) .shop-grid-footer__left .shop-grid-footer__signin {
        justify-content: center;
        width: 100%;
    }
    :where(html:not(.is-compact)) .header-login-slot, :where(html:not(.is-compact)) .header-right {
        display: none !important;
    }
    :where(html:not(.is-compact)) #header-profile-dropdown {
        top: auto;
        bottom: calc(var(--shop-grid-footer-height) + 6px);
        left: 6px;
        right: auto;
        width: calc(var(--app-sidebar-width) - 12px);
        min-width: calc(var(--app-sidebar-width) - 12px);
        max-width: calc(var(--app-sidebar-width) - 12px);
        max-height: min(85vh, calc(100dvh - var(--shop-grid-footer-height) - 16px));
    }

}

.login-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--header-dropdown-duration) var(--header-dropdown-ease);
}

.login-modal-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.login-modal-backdrop[hidden] {
    display: none;
}

.contribute-modal {
    background: #fff;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    width: 100%;
    max-width: 540px;
    box-shadow: none;
    border: 1px solid #d0d0d0;
    opacity: 0;
    transform: translateY(-8px);
    transition:
        opacity var(--header-dropdown-duration) var(--header-dropdown-ease),
        transform var(--header-dropdown-duration) var(--header-dropdown-ease);
}

.login-modal-backdrop.is-open .contribute-modal.login-modal-shell {
    opacity: 1;
    transform: translateY(0);
}

.contribute-modal.login-modal-shell {
    position: relative;
    max-width: 420px;
    max-height: min(92vh, 720px);
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
}

.contribute-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid #d0d0d0;
    flex-shrink: 0;
}

.contribute-modal.login-modal-shell .contribute-modal-header {
    position: relative;
    justify-content: center;
    padding-left: 52px;
    padding-right: 52px;
    min-height: 60px;
    box-sizing: border-box;
}

.contribute-modal-title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: #4a5568;
}

.contribute-modal.login-modal-shell .contribute-modal-title {
    display: block;
    width: 100%;
    margin: 0;
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.02em;
    color: #374151;
    text-align: center;
}

.contribute-modal-body {
    overflow-y: auto;
    padding: 20px;
    flex: 1;
}

.login-modal-logo {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: block;
    width: 32px;
    height: 32px;
    pointer-events: none;
}

.login-modal-close {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    z-index: 1;
    box-sizing: border-box;
    flex: 0 0 var(--control-h);
    width: var(--control-h);
    min-width: var(--control-h);
    height: var(--control-h);
    min-height: var(--control-h);
    margin: 0;
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    background: #f9fafb;
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    appearance: none;
    -webkit-appearance: none;
}

.login-modal-close img {
    display: block;
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.login-modal-close:hover {
    border-color: #d1d5db;
    background: #ffffff;
}

.login-modal-close:focus {
    outline: none;
}

.login-modal-close:focus-visible {
    outline: 2px solid #1976d2;
    outline-offset: 2px;
}

.login-modal-lead {
    margin: 0 0 18px;
    font-size: 13px;
    font-weight: 300;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #6b7280;
}

.login-modal-form .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 14px;
}

.login-modal-footer {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
}

.login-modal-legal {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
    font-size: 13px;
    line-height: 1.4;
    color: #6b7280;
    font-weight: 300;
    letter-spacing: 0.02em;
}

.login-modal-legal a {
    color: #6b7280;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.login-modal-legal a:hover {
    color: #4a5568;
}

.login-modal-form input[type="email"],
.login-modal-form input[type="text"] {
    height: var(--control-h);
    min-height: var(--control-h);
    max-height: var(--control-h);
    padding: 0 14px;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 300;
    font-family: inherit;
    letter-spacing: 0.02em;
    color: #374151;
    background: #f9fafb;
    box-sizing: border-box;
    width: 100%;
}

.login-modal-field-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    height: var(--control-h);
    min-height: var(--control-h);
    max-height: var(--control-h);
    margin: 0;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    background: #f9fafb;
    box-sizing: border-box;
    overflow: hidden;
}

.login-modal-field-wrap:hover,
.login-modal-field-wrap:focus-within {
    background: #ffffff;
    border-color: #d1d5db;
}

.login-modal-form .login-modal-field-wrap input[type="email"],
.login-modal-form .login-modal-field-wrap input[type="text"] {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    height: 100%;
    min-height: 0;
    max-height: none;
    padding: 0 8px 0 14px;
    border: none;
    border-radius: 0;
    background: transparent;
}

.login-modal-form .login-modal-field-wrap input:focus,
.login-modal-form .login-modal-field-wrap input:focus-visible {
    background: transparent;
    border: none;
    outline: none;
}

.login-modal-username-at {
    flex: 0 0 auto;
    padding: 0 2px 0 14px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.02em;
    line-height: 1;
    user-select: none;
    pointer-events: none;
}

.login-modal-form .login-modal-username-wrap input[type="text"] {
    padding-left: 2px;
}

.login-modal-field-go {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    flex: 0 0 40px;
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #4a5568;
    cursor: pointer;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
}

.login-modal-field-go:focus {
    outline: none;
}

.login-modal-field-go:focus-visible {
    outline: 2px solid #1976d2;
    outline-offset: -2px;
    color: #111827;
}

.login-modal-field-go:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.login-modal-field-go svg {
    display: block;
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.login-modal-form input:hover,
.login-modal-form input:focus {
    outline: none;
    background: #ffffff;
    border-color: #d1d5db;
}

.login-modal-after-send {
    margin-top: 4px;
}

.login-modal-status {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.02em;
    line-height: 1.45;
    color: #6b7280;
}

.login-modal-status--error {
    color: #c62828;
}

.login-modal-identity {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    margin: 0 0 14px;
}

.login-modal-identity-fields {
    flex: 1 1 auto;
    min-width: 0;
}

.login-modal-identity-fields .form-group {
    margin-bottom: 14px;
}

.login-modal-identity-fields .form-group:last-child {
    margin-bottom: 0;
}

.login-modal-photo-btn {
    flex: 0 0 auto;
    width: 78px;
    height: 78px;
    margin: 0;
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    background: #f9fafb;
    overflow: hidden;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.login-modal-photo-btn:hover {
    background: #ffffff;
    border-color: #d1d5db;
}

.login-modal-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: var(--control-h);
    min-height: var(--control-h);
    max-height: var(--control-h);
    padding: 0 14px;
    margin: 0;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    background: #f9fafb;
    color: #374151;
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.02em;
    line-height: 1;
    cursor: pointer;
    font-family: inherit;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
}

.login-modal-submit:hover {
    background: #ffffff;
    border-color: #d1d5db;
    color: #111827;
}

.login-modal-submit:focus {
    outline: none;
}

.login-modal-submit:focus-visible {
    outline: 2px solid #1976d2;
    outline-offset: 2px;
}

.login-modal-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.login-modal-submit--username {
    display: none;
    flex: 0 0 auto;
    align-self: flex-end;
}

.contribute-modal-body:has(#login-modal-username-step:not([hidden])) .login-modal-submit--username {
    display: inline-flex;
}

.shop-grid-footer__signin[hidden],
.shop-grid-footer__profile[hidden],
.shop-grid-footer__favs[hidden] {
    display: none;
}

th.col-tags,
td.col-tags {
    max-width: 200px;
    overflow: visible;
    text-overflow: unset;
}

td.col-tags {
    white-space: normal;
    vertical-align: middle;
}

td.col-tags.is-open {
    max-width: 200px;
}

.name-cell {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    width: max-content;
    max-width: none;
}

.product-name-btn {
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    color: inherit;
    cursor: pointer;
    text-align: left;
    white-space: nowrap;
}

.product-name-btn:hover {
    color: #1976d2;
    text-decoration: underline;
}

th.col-freeze,
td.col-freeze {
    position: sticky;
    left: 0;
    width: max-content;
    max-width: none;
    white-space: nowrap;
    overflow: visible;
    text-overflow: unset;
    background: var(--paper);
    box-shadow: 4px 0 10px rgba(15, 23, 42, 0.08);
}

th.col-freeze {
    z-index: 14;
}

td.col-freeze {
    z-index: 6;
}

.favorite-heart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 0;
    border: none;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    flex-shrink: 0;
}

.favorite-heart:hover {
    color: #4a5568;
}

.favorite-heart.is-on {
    color: #e11d48;
}

.favorite-heart.is-on .favorite-heart-icon {
    fill: #e11d48;
}

.user-page-title {
    margin: 0;
    display: flex;
    align-items: center;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 400;
    color: #374151;
}

.user-main {
    flex: 1 1 0;
    min-height: 0;
    overflow: auto;
    background: var(--paper);
    padding: 24px 20px 80px;
}

.user-empty {
    margin: 40px auto;
    max-width: 40rem;
    color: var(--muted);
    font-weight: 300;
    text-align: center;
}

.user-fav-list {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 52rem;
}

.user-fav-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: baseline;
    padding: 12px 0;
    border-bottom: 1px solid #e8e8e8;
}

.user-fav-name {
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-user:not(:has(.shop-grid-footer__sort)) .shop-grid-footer,
.page-user-settings .shop-grid-footer {
    grid-template-columns: minmax(0, 1fr);
}

.page-user:not(:has(.shop-layout)) .shop-grid-footer,
.page-user-settings .shop-grid-footer {
    margin-left: 0;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--header-dropdown-duration) var(--header-dropdown-ease);
}

.modal-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.modal-overlay[hidden] {
    display: none;
}

body.product-modal-open {
    overflow: hidden;
}

.modal-card {
    width: min(520px, 96vw);
    max-height: 88vh;
    overflow-x: hidden;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #d0d0d0;
    box-shadow: none;
    opacity: 0;
    transform: translateY(-8px);
    transition:
        opacity var(--header-dropdown-duration) var(--header-dropdown-ease),
        transform var(--header-dropdown-duration) var(--header-dropdown-ease);
}

.modal-overlay.is-open .modal-card {
    opacity: 1;
    transform: none;
}

.modal-card:focus,
.modal-card:focus-visible {
    outline: none;
}

.modal-header-top {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 16px 14px;
}

.modal-header-sub {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: 8px;
    width: 100%;
    min-width: 0;
}

.modal-header-brand {
    justify-self: start;
    min-width: 0;
}

.modal-brand {
    margin: 0;
    font-family: var(--tabbed-font-family);
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    line-height: 1.2;
}

.modal-brand-link,
.modal-brand-link:visited {
    color: inherit;
    text-decoration: none;
}

.modal-brand-link:hover {
    text-decoration: underline;
}

.modal-category {
    justify-self: center;
    text-align: center;
    min-width: 0;
    font-family: var(--tabbed-font-family);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: -0.011em;
    color: #1976d2;
    text-transform: none;
}

.modal-category a,
.modal-category a:visited {
    font-family: inherit;
    color: inherit;
    font-weight: inherit;
    text-transform: none;
}

.modal-category-sep {
    font-weight: 400;
    opacity: 0.7;
}

.modal-heart-btn {
    justify-self: end;
    width: 22px;
    height: 22px;
}

.modal-heart-btn .favorite-heart-icon {
    width: 20px;
    height: 20px;
}

.modal-header-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
}

.modal-product-name {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: #4a5568;
    line-height: 1.25;
}

.modal-expand-rule {
    border-bottom: 1px solid #eee;
}

.modal-body {
    display: block;
}

.modal-details-col {
    padding: 12px 16px 16px;
}

.modal-metadata-stack--flat {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.modal-metadata-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    width: 100%;
    min-width: 0;
}

.modal-metadata-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.modal-flat-section-title {
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.modal-flat-lines {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.modal-detail-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.02em;
    color: #4a5568;
    line-height: 1.45;
}

.modal-detail-line--muted {
    color: #6b7280;
    font-style: italic;
    font-size: 12px;
}

.modal-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.modal-tag-color {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
}

.modal-tag a,
.modal-tag a:visited {
    color: #4a5568;
}

@media (max-width: 560px) {
    .modal-metadata-columns {
        grid-template-columns: 1fr;
    }
}

.header-end {
    gap: 8px;
}

.header-login-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 0;
    align-self: center;
}

.header-right {
    display: flex;
    align-items: center;
    align-self: center;
}

.header-login-slot[hidden],
.header-right[hidden] {
    display: none;
}

.header-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--shop-gf-h);
    min-height: var(--shop-gf-h);
    max-height: var(--shop-gf-h);
    padding: 0 14px;
    margin: 0;
    border: 1px solid #e5e7eb;
    border-radius: var(--shop-gf-pill-radius);
    background: #f9fafb;
    color: #374151;
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.02em;
    line-height: 1;
    cursor: pointer;
    font-family: inherit;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
}

.header-login-btn:hover {
    background: #ffffff;
    border-color: #d1d5db;
    color: #111827;
}

.header-login-btn:focus {
    outline: none;
}

.header-login-btn:focus-visible {
    outline: 2px solid #1976d2;
    outline-offset: 2px;
}

.header-profile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--control-h);
    height: var(--control-h);
    min-width: var(--control-h);
    min-height: var(--control-h);
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 50%;
    box-sizing: border-box;
    background: transparent;
    cursor: pointer;
    font: inherit;
    line-height: 0;
    flex-shrink: 0;
}

.header-profile-menu-btn__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.header-profile-menu-btn:focus {
    outline: none;
}

.header-profile-menu-btn:focus-visible {
    outline: 2px solid #1976d2;
    outline-offset: 2px;
    border-radius: 50%;
}

.header-profile-avatar-frame {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
}

.header-profile-menu-btn .header-profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.header-profile-avatar-img--placeholder {
    object-fit: contain;
    object-position: center;
    box-sizing: border-box;
}

.shop-grid-footer__favs {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    height: var(--shop-gf-h);
    min-height: var(--shop-gf-h);
    max-height: var(--shop-gf-h);
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
}

.shop-grid-footer__favs .profile-fav-heart {
    height: var(--shop-gf-h);
    min-height: var(--shop-gf-h);
    max-height: var(--shop-gf-h);
}

.shop-grid-footer__favs:hover .profile-fav-heart {
    background: #ffffff;
    border-color: #d1d5db;
}

.shop-grid-footer__favs:focus {
    outline: none;
}

.shop-grid-footer__favs:focus-visible .profile-fav-heart {
    outline: 2px solid #1976d2;
    outline-offset: 2px;
}

.shop-grid-footer__profile-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1px;
    min-width: 0;
    max-width: 100%;
}

.shop-grid-footer__profile {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
    width: auto;
    max-width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    background: none;
    box-shadow: none;
    color: #374151;
    font-family: inherit;
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.02em;
    line-height: 1;
    cursor: pointer;
    text-align: left;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    overflow: hidden;
}

.shop-grid-footer__profile:hover,
.shop-grid-footer__profile[aria-expanded="true"],
.shop-grid-footer__profile:focus {
    background: none;
    outline: none;
    color: #111827;
}

.shop-grid-footer__profile:focus-visible {
    outline: 2px solid #1976d2;
    outline-offset: 2px;
}

.shop-grid-footer__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
    background: #f3f4f6;
}

.shop-grid-footer__avatar--placeholder {
    width: 22px;
    height: 22px;
    object-fit: contain;
    opacity: 0.55;
    border-radius: 0;
    background: transparent;
}

.shop-grid-footer__username {
    font-size: 13px;
    font-weight: inherit;
    line-height: 1.3;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    max-width: 100%;
}

.shop-grid-footer__joined {
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 0.02em;
    line-height: 1.2;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.shop-grid-footer__joined[hidden] {
    display: none;
}

.profile-fav-heart {
    position: relative;
    display: inline-flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
    height: 28px;
    min-width: 52px;
    padding: 0 12px;
    box-sizing: border-box;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
}

.profile-fav-heart__fill {
    display: block;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    object-fit: contain;
    pointer-events: none;
}

.profile-fav-heart__num {
    font-family: var(--tabbed-font-family);
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.02em;
    color: #374151;
    line-height: 1.3;
}

.header-profile-menu-dropdown-new {
    position: fixed;
    top: calc(var(--tabbed-fixed-below-header) + 6px);
    right: max(8px, env(safe-area-inset-right, 0px));
    left: auto;
    width: var(--header-profile-menu-width);
    min-width: min(var(--header-profile-menu-width), calc(100vw - 16px));
    max-width: min(var(--header-profile-menu-width), calc(100vw - 16px));
    text-align: left;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
    z-index: 10002;
    max-height: min(85vh, calc(100dvh - var(--tabbed-fixed-below-header) - 16px));
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--header-dropdown-duration) var(--header-dropdown-ease);
}

.header-profile-menu-dropdown-new.is-open {
    opacity: 1;
    pointer-events: auto;
}

.header-profile-menu-dropdown-new[hidden] {
    display: none;
}

.header-profile-menu-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 100%;
    padding: 18px 14px 14px;
    gap: 10px;
    box-sizing: border-box;
    border-bottom: 1px solid #f1f5f9;
}

.header-profile-menu-dropdown-new:has(.profile-page-who__share) .header-profile-menu-hero {
    padding-top: 28px;
}

.header-profile-menu-dropdown-new .profile-page-who__chrome {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 8px;
    box-sizing: border-box;
    pointer-events: none;
}

.header-profile-menu-dropdown-new .profile-page-who__share {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    flex: 0 0 var(--control-h);
    width: var(--control-h);
    min-width: var(--control-h);
    height: var(--control-h);
    min-height: var(--control-h);
    margin: 0;
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    background: #f9fafb;
    color: #374151;
    cursor: pointer;
    pointer-events: auto;
    appearance: none;
    -webkit-appearance: none;
}

.header-profile-menu-dropdown-new .profile-page-who__share img {
    display: block;
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.header-profile-menu-dropdown-new .profile-page-who__share:hover {
    border-color: #d1d5db;
    background: #ffffff;
}

.header-profile-menu-hero__frame {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    box-sizing: border-box;
}

.header-profile-menu-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.header-profile-menu-hero__img.header-profile-avatar-img--placeholder {
    object-fit: contain;
    object-position: center;
    padding: 18px;
    box-sizing: border-box;
}

.header-profile-menu-hero__who {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    max-width: 100%;
    text-align: center;
}

.header-profile-menu-hero__display-name {
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.02em;
    line-height: 1.2;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.header-profile-menu-hero__display-name[hidden],
.header-profile-menu-hero__joined[hidden] {
    display: none;
}

.header-profile-menu-hero__username {
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.02em;
    line-height: 1.3;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.header-profile-menu-hero__joined {
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 0.02em;
    line-height: 1.2;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.header-profile-menu-item-new {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: var(--header-profile-menu-item-height);
    height: var(--header-profile-menu-item-height);
    padding: 0 14px;
    margin: 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid #f1f5f9;
    border-radius: 0;
    text-align: left;
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.02em;
    color: #374151;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    box-sizing: border-box;
}

.header-profile-menu-item-new:last-child {
    border-bottom: none;
}

#header-profile-link-settings {
    border-bottom: none;
}

.header-profile-menu-item-new:hover {
    background: #fffbeb;
    color: #967716;
}

.header-profile-menu-item-new:focus {
    outline: none;
}

.header-profile-menu-item-new:focus-visible {
    outline: 2px solid #c9a227;
    outline-offset: -2px;
    background: #fffbeb;
    color: #967716;
}

#header-profile-menu-logout {
    height: calc(var(--header-profile-menu-item-height) + 2px);
    min-height: calc(var(--header-profile-menu-item-height) + 2px);
    padding-bottom: 2px;
}

#header-profile-menu-logout:hover,
#header-profile-menu-logout:focus-visible {
    background: #fef2f2;
    color: #b91c1c;
}

.page-user:not(:has(.shop-grid-footer__sort)) .shop-grid-footer,
.page-user-settings .shop-grid-footer {
    grid-template-columns: minmax(0, 1fr);
}

.page-user-settings .shop-grid-footer__sort,
.page-user-settings .shop-grid-footer__showing,
.page-user-settings .shop-grid-footer__pager {
    display: none !important;
}

.legal-page {
    max-width: 40rem;
    margin: 0 auto;
    padding: 8px 8px 40px;
    color: #374151;
    font-weight: 300;
    line-height: 1.6;
}

.legal-page h1 {
    margin: 0 0 16px;
    font-size: 15px;
    font-weight: 500;
    color: #111827;
}

@media (max-width: 655px) {
    .login-modal-backdrop {
        padding: 16px;
    }

    .contribute-modal.login-modal-shell {
        max-width: 100%;
    }
}
/* compact copy */
    :where(html.is-compact) .login-modal-backdrop {
        padding: 16px;
    }
    :where(html.is-compact) .contribute-modal.login-modal-shell {
        max-width: 100%;
    }



@media (prefers-reduced-motion: reduce) {
    .header-categories-dropdown,
    .header-categories-row--subs,
    .shop-grid-footer__sort-dropdown,
    .login-modal-backdrop,
    .contribute-modal.login-modal-shell,
    .header-profile-menu-dropdown-new,
    .shop-filter-panel-body,
    .shop-filter-panel-body-inner,
    .table-tags-more,
    .table-tags-more-inner,
    .modal-overlay,
    .modal-card {
        transition-duration: 0.01ms;
    }
}

/* plantindex.org additions */
.modal-sci-name { display: block; font-size: 14px; font-weight: 400; color: var(--muted); margin-top: 4px; }
.modal-source { display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 2px; margin-bottom: 6px; }
.modal-source-fields { font-size: 12px; color: var(--muted); }
.modal-body > .modal-details-col .modal-flat-section + .modal-flat-section { margin-top: 0; }
td.col-size { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-grid-footer__left a.shop-grid-footer__auth-pill { text-decoration: none; color: inherit; margin-right: 6px; }

.shop-drawer-head,
.shop-drawer-backdrop { display: none; }

@media (max-width: 655px) {
    html, body { max-width: 100%; overflow-x: hidden; }
    body.shop-drawer-locked { overflow: hidden; }

    .header { flex-wrap: wrap; gap: 8px; padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
    .header-middle { order: 3; flex: 1 0 100%; min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .header-end { flex: 1 1 auto; min-width: 0; justify-content: flex-end; }
    .header-mobile-search { flex: 1 1 auto; min-width: 0; }
    .header-mobile-search__wrap { width: 100%; min-width: 0; }
    .header-mobile-search__input { min-height: 44px; font-size: 16px; min-width: 0; width: 100%; }
    .header-mobile-search__submit,
    .header-login-btn,
    .header-profile-menu-btn,
    .shop-grid-footer__btn,
    .shop-grid-footer__select,
    .shop-grid-footer__sort-option,
    .shop-filter-mode-btn,
    .shop-filter-panel-toggle,
    .sidebar-filter-item,
    .cell-expand-btn { min-height: 44px; min-width: 44px; }
    .shop-filter-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
    .shop-filter-toggle__count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #111827; color: #fff; font-size: 12px; }
    .shop-filter-toggle__count[hidden] { display: none; }

    .shop-layout { padding-left: 0; }
    .shop-sidebar {
        position: fixed; top: 0; bottom: 0; left: 0; z-index: 1000;
        width: min(88vw, 360px); min-width: 0; flex: none;
        display: flex; flex-direction: column;
        transform: translateX(-100%); transition: transform 0.22s ease;
        visibility: hidden; box-shadow: 0 0 40px rgba(0, 0, 0, 0.2);
        padding-bottom: env(safe-area-inset-bottom);
    }
    .shop-sidebar.is-drawer-open { transform: none; visibility: visible; }
    .shop-sidebar .shop-sidebar-inner { overflow-y: auto; -webkit-overflow-scrolling: touch; }
    .shop-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--line); flex: 0 0 auto; }
    .shop-drawer-title { font-size: 16px; font-weight: 600; }
    .shop-drawer-close { width: 44px; height: 44px; border: 0; background: transparent; font-size: 28px; line-height: 1; cursor: pointer; }
    .shop-drawer-backdrop { display: block; position: fixed; inset: 0; z-index: 999; background: rgba(17, 24, 39, 0.4); }
    .shop-drawer-backdrop[hidden] { display: none; }

    /* Table -> cards */
    .table-wrap { overflow-x: hidden; overflow-y: auto; }
    #grid, #grid tbody, #grid tr, #grid td { display: block; width: 100%; box-sizing: border-box; }
    #grid { min-width: 0; width: 100%; font-size: 14px; }
    #grid thead { display: none; }
    #grid tbody tr { margin: 0; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--paper); }
    #grid td { position: static; padding: 4px 0; border: 0; white-space: normal; overflow-wrap: anywhere; display: flex; gap: 12px; align-items: baseline; min-height: 0; }
    #grid td[data-label]::before { content: attr(data-label); flex: 0 0 104px; color: #6b7280; font-size: 12px; font-weight: 500; }
    #grid td.col-freeze { font-size: 16px; font-weight: 600; padding-bottom: 8px; left: auto; box-shadow: none; background: transparent; }
    #grid td.col-freeze a, #grid td.col-freeze button { min-height: 44px; display: inline-flex; align-items: center; }
    #grid td:empty, #grid td.empty::before { display: none; }
    #grid td.col-tags > * { min-width: 0; flex-wrap: wrap; }

    .shop-grid-footer { flex-wrap: wrap; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); height: auto; margin-left: 0; }
    .shop-grid-footer__showing { flex: 1 0 100%; order: -1; margin: 0; font-size: 12px; }

    .modal-overlay { padding: 0; align-items: flex-end; }
    .modal-card { width: 100%; max-width: 100%; max-height: 92vh; overflow-y: auto; border-radius: 16px 16px 0 0; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
    .login-modal-backdrop { align-items: flex-end; padding: 0; }
    .contribute-modal.login-modal-shell { width: 100%; max-height: 92vh; overflow-y: auto; border-radius: 16px 16px 0 0; }
    .login-modal-shell input { font-size: 16px; min-height: 44px; }
    .login-modal-shell button { min-height: 44px; }
}
/* compact copy */
    html:where(.is-compact), :where(html.is-compact) body { max-width: 100%; overflow-x: hidden; }
    :where(html.is-compact) body.shop-drawer-locked { overflow: hidden; }
    :where(html.is-compact) .header { flex-wrap: wrap; gap: 8px; padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
    :where(html.is-compact) .header-middle { order: 3; flex: 1 0 100%; min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    :where(html.is-compact) .header-end { flex: 1 1 auto; min-width: 0; justify-content: flex-end; }
    :where(html.is-compact) .header-mobile-search { flex: 1 1 auto; min-width: 0; }
    :where(html.is-compact) .header-mobile-search__wrap { width: 100%; min-width: 0; }
    :where(html.is-compact) .header-mobile-search__input { min-height: 44px; font-size: 16px; min-width: 0; width: 100%; }
    :where(html.is-compact) .header-mobile-search__submit, :where(html.is-compact) .header-login-btn, :where(html.is-compact) .header-profile-menu-btn, :where(html.is-compact) .shop-grid-footer__btn, :where(html.is-compact) .shop-grid-footer__select, :where(html.is-compact) .shop-grid-footer__sort-option, :where(html.is-compact) .shop-filter-mode-btn, :where(html.is-compact) .shop-filter-panel-toggle, :where(html.is-compact) .sidebar-filter-item, :where(html.is-compact) .cell-expand-btn { min-height: 44px; min-width: 44px; }
    :where(html.is-compact) .shop-filter-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
    :where(html.is-compact) .shop-filter-toggle__count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #111827; color: #fff; font-size: 12px; }
    :where(html.is-compact) .shop-filter-toggle__count[hidden] { display: none; }
    :where(html.is-compact) .shop-layout { padding-left: 0; }
    :where(html.is-compact) .shop-sidebar {
        position: fixed; top: 0; bottom: 0; left: 0; z-index: 1000;
        width: min(88vw, 360px); min-width: 0; flex: none;
        display: flex; flex-direction: column;
        transform: translateX(-100%); transition: transform 0.22s ease;
        visibility: hidden; box-shadow: 0 0 40px rgba(0, 0, 0, 0.2);
        padding-bottom: env(safe-area-inset-bottom);
    }
    :where(html.is-compact) .shop-sidebar.is-drawer-open { transform: none; visibility: visible; }
    :where(html.is-compact) .shop-sidebar .shop-sidebar-inner { overflow-y: auto; -webkit-overflow-scrolling: touch; }
    :where(html.is-compact) .shop-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--line); flex: 0 0 auto; }
    :where(html.is-compact) .shop-drawer-title { font-size: 16px; font-weight: 600; }
    :where(html.is-compact) .shop-drawer-close { width: 44px; height: 44px; border: 0; background: transparent; font-size: 28px; line-height: 1; cursor: pointer; }
    :where(html.is-compact) .shop-drawer-backdrop { display: block; position: fixed; inset: 0; z-index: 999; background: rgba(17, 24, 39, 0.4); }
    :where(html.is-compact) .shop-drawer-backdrop[hidden] { display: none; }
    :where(html.is-compact) .table-wrap { overflow-x: hidden; overflow-y: auto; }
    :where(html.is-compact) #grid, :where(html.is-compact) #grid tbody, :where(html.is-compact) #grid tr, :where(html.is-compact) #grid td { display: block; width: 100%; box-sizing: border-box; }
    :where(html.is-compact) #grid { min-width: 0; width: 100%; font-size: 14px; }
    :where(html.is-compact) #grid thead { display: none; }
    :where(html.is-compact) #grid tbody tr { margin: 0; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--paper); }
    :where(html.is-compact) #grid td { position: static; padding: 4px 0; border: 0; white-space: normal; overflow-wrap: anywhere; display: flex; gap: 12px; align-items: baseline; min-height: 0; }
    :where(html.is-compact) #grid td[data-label]::before { content: attr(data-label); flex: 0 0 104px; color: #6b7280; font-size: 12px; font-weight: 500; }
    :where(html.is-compact) #grid td.col-freeze { font-size: 16px; font-weight: 600; padding-bottom: 8px; left: auto; box-shadow: none; background: transparent; }
    :where(html.is-compact) #grid td.col-freeze a, :where(html.is-compact) #grid td.col-freeze button { min-height: 44px; display: inline-flex; align-items: center; }
    :where(html.is-compact) #grid td:empty, :where(html.is-compact) #grid td.empty::before { display: none; }
    :where(html.is-compact) #grid td.col-tags > * { min-width: 0; flex-wrap: wrap; }
    :where(html.is-compact) .shop-grid-footer { flex-wrap: wrap; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); height: auto; margin-left: 0; }
    :where(html.is-compact) .shop-grid-footer__showing { flex: 1 0 100%; order: -1; margin: 0; font-size: 12px; }
    :where(html.is-compact) .modal-overlay { padding: 0; align-items: flex-end; }
    :where(html.is-compact) .modal-card { width: 100%; max-width: 100%; max-height: 92vh; overflow-y: auto; border-radius: 16px 16px 0 0; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
    :where(html.is-compact) .login-modal-backdrop { align-items: flex-end; padding: 0; }
    :where(html.is-compact) .contribute-modal.login-modal-shell { width: 100%; max-height: 92vh; overflow-y: auto; border-radius: 16px 16px 0 0; }
    :where(html.is-compact) .login-modal-shell input { font-size: 16px; min-height: 44px; }
    :where(html.is-compact) .login-modal-shell button { min-height: 44px; }



/* Mobile header: two rows (brand + search/account, then categories). */
@media (max-width: 655px) {
    :root { --pi-m-header-h: 104px; --tabbed-fixed-below-header: var(--pi-m-header-h); }
    body { padding-top: var(--pi-m-header-h); }
    .header { height: var(--pi-m-header-h); flex-wrap: wrap; align-content: flex-start; align-items: center; gap: 0 8px; }
    .header-left { flex: 0 0 auto; width: auto; max-width: none; height: 56px; padding: 0 4px 0 0; border-right: 0; }
    .header-end { height: 56px; align-items: center; }
    .header-middle { height: 48px; border-top: 1px solid var(--line); }
    .header-mobile-search { flex: 1 1 auto; width: auto; }
    .header-categories-dropdown { top: var(--pi-m-header-h); left: 0; right: 0; }
    #grid td { max-width: none; overflow: visible; overflow-wrap: break-word; }
    #grid td > * { flex: 1 1 auto; min-width: 0; max-width: none; }
    .shop-grid-footer { display: flex; align-items: center; justify-content: space-between; }
    .shop-grid-footer__sort { flex: 1 1 auto; min-width: 0; }
    .shop-sidebar, .shop-drawer-backdrop { z-index: 10010; }
    .shop-sidebar { z-index: 10011; }
}
/* compact copy */
    :root:where(.is-compact) { --pi-m-header-h: 104px; --tabbed-fixed-below-header: var(--pi-m-header-h); }
    :where(html.is-compact) body { padding-top: var(--pi-m-header-h); }
    :where(html.is-compact) .header { height: var(--pi-m-header-h); flex-wrap: wrap; align-content: flex-start; align-items: center; gap: 0 8px; }
    :where(html.is-compact) .header-left { flex: 0 0 auto; width: auto; max-width: none; height: 56px; padding: 0 4px 0 0; border-right: 0; }
    :where(html.is-compact) .header-end { height: 56px; align-items: center; }
    :where(html.is-compact) .header-middle { height: 48px; border-top: 1px solid var(--line); }
    :where(html.is-compact) .header-mobile-search { flex: 1 1 auto; width: auto; }
    :where(html.is-compact) .header-categories-dropdown { top: var(--pi-m-header-h); left: 0; right: 0; }
    :where(html.is-compact) #grid td { max-width: none; overflow: visible; overflow-wrap: break-word; }
    :where(html.is-compact) #grid td > * { flex: 1 1 auto; min-width: 0; max-width: none; }
    :where(html.is-compact) .shop-grid-footer { display: flex; align-items: center; justify-content: space-between; }
    :where(html.is-compact) .shop-grid-footer__sort { flex: 1 1 auto; min-width: 0; }
    :where(html.is-compact) .shop-sidebar, :where(html.is-compact) .shop-drawer-backdrop { z-index: 10010; }
    :where(html.is-compact) .shop-sidebar { z-index: 10011; }


@media (max-width: 655px) {
    .header-category-main { min-height: 44px; display: inline-flex; align-items: center; }
    #grid td a,
#grid td button,
.cell-filter { min-height: 44px; display: inline-flex; align-items: center; }
    #grid td { padding: 0; align-items: center; }
}
/* compact copy */
    :where(html.is-compact) .header-category-main { min-height: 44px; display: inline-flex; align-items: center; }
    :where(html.is-compact) #grid td a, :where(html.is-compact) #grid td button, :where(html.is-compact) .cell-filter { min-height: 44px; display: inline-flex; align-items: center; }
    :where(html.is-compact) #grid td { padding: 0; align-items: center; }


@media (max-width: 655px) {
    .header { flex-wrap: wrap; padding: 0 12px; box-sizing: border-box; }
    .header-left { order: 1; }
    .header-end { order: 2; flex: 1 1 0; min-width: 0; }
    .header-middle { order: 3; flex: 0 0 100%; margin: 0 -12px; }
    .header-mobile-search, .header-mobile-search__wrap { width: auto !important; min-width: 0 !important; max-width: none !important; flex: 1 1 auto; }
    #grid td.col-freeze { display: block; padding-right: 0; }
    .login-modal-email, .login-modal-shell input { min-height: 44px; }
}
/* compact copy */
    :where(html.is-compact) .header { flex-wrap: wrap; padding: 0 12px; box-sizing: border-box; }
    :where(html.is-compact) .header-left { order: 1; }
    :where(html.is-compact) .header-end { order: 2; flex: 1 1 0; min-width: 0; }
    :where(html.is-compact) .header-middle { order: 3; flex: 0 0 100%; margin: 0 -12px; }
    :where(html.is-compact) .header-mobile-search, :where(html.is-compact) .header-mobile-search__wrap { width: auto !important; min-width: 0 !important; max-width: none !important; flex: 1 1 auto; }
    :where(html.is-compact) #grid td.col-freeze { display: block; padding-right: 0; }
    :where(html.is-compact) .login-modal-email, :where(html.is-compact) .login-modal-shell input { min-height: 44px; }


@media (max-width: 655px) {
    .header .header-end > .header-mobile-search { flex: 1 1 0 !important; width: 0 !important; }
    .header .header-end > .header-mobile-search .header-mobile-search__wrap { width: 100% !important; }
}
/* compact copy */
    :where(html.is-compact) .header .header-end > .header-mobile-search { flex: 1 1 0 !important; width: 0 !important; }
    :where(html.is-compact) .header .header-end > .header-mobile-search .header-mobile-search__wrap { width: 100% !important; }


@media (max-width: 655px) {
    #grid td.col-freeze, #grid td.col-freeze * { white-space: normal; max-width: 100%; text-align: left; }
}
/* compact copy */
    :where(html.is-compact) #grid td.col-freeze, :where(html.is-compact) #grid td.col-freeze * { white-space: normal; max-width: 100%; text-align: left; }



@media (max-width: 655px) {
    td.col-size { max-width: none; white-space: normal; }
    .modal-metadata-columns { flex-direction: column; }
    .shop-grid-footer__left a.shop-grid-footer__auth-pill { min-height: 44px; display: inline-flex; align-items: center; }
}
/* compact copy */
    :where(html.is-compact) td.col-size { max-width: none; white-space: normal; }
    :where(html.is-compact) .modal-metadata-columns { flex-direction: column; }
    :where(html.is-compact) .shop-grid-footer__left a.shop-grid-footer__auth-pill { min-height: 44px; display: inline-flex; align-items: center; }



/* ===== Mobile v2 (<=655px): compact list rows, slim chrome ===== */
#grid td.col-mchips { display: none; }
@media (max-width: 655px) {
    :root { --pi-m-header-h: calc(96px + env(safe-area-inset-top)); }
    .header { height: var(--pi-m-header-h); padding-top: env(safe-area-inset-top); }
    .header-left, .header-end { height: 52px; }
    .header-mobile-search__input { min-height: 38px; height: 38px; }
    .header-mobile-search__submit { min-height: 38px; }

    /* Category row: Filters pill + scrolling categories */
    .header-middle { height: 44px; display: flex; align-items: center; overflow: hidden; }
    .header-middle .shop-filter-toggle { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 32px; min-height: 32px; margin: 0 4px 0 12px; padding: 0 12px; border: 1px solid #111827; border-radius: 999px; background: #fff; color: #111827; font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
    .header-middle .header-nav-options { flex: 1 1 auto; min-width: 0; height: 100%; }
    .header-middle .header-nav-item, .header-categories-mains-scroll { height: 100%; }
    .header-categories-mains-scroll { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; scroll-padding: 0 12px; }
    .header-categories-mains-scroll::-webkit-scrollbar { display: none; }
    .header-categories-row--mains { min-height: 0; height: 100%; align-items: center; gap: 4px; padding: 0 12px 0 4px; }
    .header-category-main { min-height: 32px; height: 32px; padding: 0 12px; border-radius: 999px; font-size: 13px; white-space: nowrap; flex: 0 0 auto; }

    /* Rows: name, scientific name, one chip line */
    #grid tbody tr { display: grid; grid-template-columns: 1fr; row-gap: 2px; padding: 10px 16px; cursor: pointer; -webkit-tap-highlight-color: rgba(0,0,0,0.04); }
    #grid tbody tr:active { background: #f5f5f5; }
    #grid tbody td { display: none !important; }
    #grid tbody td.col-freeze, #grid tbody td.col-sci, #grid tbody td.col-mchips, #grid tbody td.empty { display: block !important; padding: 0; min-height: 0; }
    #grid td[data-label]::before { content: none !important; display: none; }
    #grid td.col-freeze { font-size: 15px; padding: 0; }
    #grid td.col-freeze .product-name-btn { min-height: 0 !important; display: block !important; padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: #111827; text-align: left; line-height: 1.3; }
    #grid td.col-sci { font-size: 13px; color: #6b7280; line-height: 1.3; }
    .m-chips { display: flex; flex-wrap: nowrap; gap: 6px; margin-top: 4px; overflow: hidden; }
    .m-chip { flex: 0 0 auto; font-size: 11px; line-height: 18px; padding: 0 8px; border: 1px solid #e5e7eb; border-radius: 999px; color: #374151; background: #fafafa; white-space: nowrap; }

}
/* compact copy */
    :root:where(.is-compact) { --pi-m-header-h: calc(96px + env(safe-area-inset-top)); }
    :where(html.is-compact) .header { height: var(--pi-m-header-h); padding-top: env(safe-area-inset-top); }
    :where(html.is-compact) .header-left, :where(html.is-compact) .header-end { height: 52px; }
    :where(html.is-compact) .header-mobile-search__input { min-height: 38px; height: 38px; }
    :where(html.is-compact) .header-mobile-search__submit { min-height: 38px; }
    :where(html.is-compact) .header-middle { height: 44px; display: flex; align-items: center; overflow: hidden; }
    :where(html.is-compact) .header-middle .shop-filter-toggle { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 32px; min-height: 32px; margin: 0 4px 0 12px; padding: 0 12px; border: 1px solid #111827; border-radius: 999px; background: #fff; color: #111827; font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
    :where(html.is-compact) .header-middle .header-nav-options { flex: 1 1 auto; min-width: 0; height: 100%; }
    :where(html.is-compact) .header-middle .header-nav-item, :where(html.is-compact) .header-categories-mains-scroll { height: 100%; }
    :where(html.is-compact) .header-categories-mains-scroll { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; scroll-padding: 0 12px; }
    :where(html.is-compact) .header-categories-mains-scroll::-webkit-scrollbar { display: none; }
    :where(html.is-compact) .header-categories-row--mains { min-height: 0; height: 100%; align-items: center; gap: 4px; padding: 0 12px 0 4px; }
    :where(html.is-compact) .header-category-main { min-height: 32px; height: 32px; padding: 0 12px; border-radius: 999px; font-size: 13px; white-space: nowrap; flex: 0 0 auto; }
    :where(html.is-compact) #grid tbody tr { display: grid; grid-template-columns: 1fr; row-gap: 2px; padding: 10px 16px; cursor: pointer; -webkit-tap-highlight-color: rgba(0,0,0,0.04); }
    :where(html.is-compact) #grid tbody tr:active { background: #f5f5f5; }
    :where(html.is-compact) #grid tbody td { display: none !important; }
    :where(html.is-compact) #grid tbody td.col-freeze, :where(html.is-compact) #grid tbody td.col-sci, :where(html.is-compact) #grid tbody td.col-mchips, :where(html.is-compact) #grid tbody td.empty { display: block !important; padding: 0; min-height: 0; }
    :where(html.is-compact) #grid td[data-label]::before { content: none !important; display: none; }
    :where(html.is-compact) #grid td.col-freeze { font-size: 15px; padding: 0; }
    :where(html.is-compact) #grid td.col-freeze .product-name-btn { min-height: 0 !important; display: block !important; padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: #111827; text-align: left; line-height: 1.3; }
    :where(html.is-compact) #grid td.col-sci { font-size: 13px; color: #6b7280; line-height: 1.3; }
    :where(html.is-compact) .m-chips { display: flex; flex-wrap: nowrap; gap: 6px; margin-top: 4px; overflow: hidden; }
    :where(html.is-compact) .m-chip { flex: 0 0 auto; font-size: 11px; line-height: 18px; padding: 0 8px; border: 1px solid #e5e7eb; border-radius: 999px; color: #374151; background: #fafafa; white-space: nowrap; }




/* Plant photos */
.plant-thumb { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 6px; object-fit: cover; background: #f3f4f6; display: block; }
#grid td.col-freeze .name-cell { display: flex; align-items: center; gap: 10px; }
#grid td.col-mthumb { display: none; }
.modal-photo { margin: 0; padding: 12px 20px 0; }
.modal-photo img { display: block; width: 100%; max-height: 360px; object-fit: cover; border-radius: 10px; background: #f3f4f6; }
.modal-photo-credit { margin-top: 6px; font-size: 11px; line-height: 1.4; color: #6b7280; overflow-wrap: anywhere; }
.modal-photo-credit a { color: inherit; text-decoration: underline; }
@media (max-width: 655px) {
    #grid tbody tr { grid-template-columns: 56px minmax(0, 1fr); column-gap: 12px; }
    #grid tbody td.col-mthumb { display: block !important; grid-column: 1; grid-row: 1 / span 3; align-self: center; padding: 0; }
    #grid tbody td.col-freeze, #grid tbody td.col-sci, #grid tbody td.col-mchips { grid-column: 2; }
    #grid td.col-mthumb .plant-thumb { width: 56px; height: 56px; border-radius: 8px; }
    #grid td.col-freeze .name-cell > .plant-thumb { display: none; }
    .modal-photo { padding: 12px 16px 0; }
    .modal-photo img { max-height: 240px; }
}
/* compact copy */
    :where(html.is-compact) #grid tbody tr { grid-template-columns: 56px minmax(0, 1fr); column-gap: 12px; }
    :where(html.is-compact) #grid tbody td.col-mthumb { display: block !important; grid-column: 1; grid-row: 1 / span 3; align-self: center; padding: 0; }
    :where(html.is-compact) #grid tbody td.col-freeze, :where(html.is-compact) #grid tbody td.col-sci, :where(html.is-compact) #grid tbody td.col-mchips { grid-column: 2; }
    :where(html.is-compact) #grid td.col-mthumb .plant-thumb { width: 56px; height: 56px; border-radius: 8px; }
    :where(html.is-compact) #grid td.col-freeze .name-cell > .plant-thumb { display: none; }
    :where(html.is-compact) .modal-photo { padding: 12px 16px 0; }
    :where(html.is-compact) .modal-photo img { max-height: 240px; }



/* ===== tabbed.shop mobile header, drawer and footer (port of productindex.org 249bb00), <=655px ===== */
.header-logo-drawer-btn, .header-mobile-actions, .mobile-cat-menu { display: none; }
@media (max-width: 655px) {
    :root { --pi-m-header-h: 64px; --tabbed-fixed-below-header: 64px; }
    body { padding-top: 64px; }
    .header { height: 64px; padding: 0 16px; gap: 16px; flex-wrap: nowrap; align-items: center; justify-content: space-between; border-bottom: 1px solid #d0d0d0; box-sizing: border-box; }
    .header-middle, .header-categories-dropdown { display: none !important; }
    .header-left { order: 0; flex: 0 0 auto; width: auto; max-width: none; height: 63px; padding: 0; border: 0; display: flex; align-items: center; }
    .header-left-brand { display: flex; align-items: center; height: 40px; }
    .page-index .header-logo-link { display: none !important; }
    .header-logo-drawer-btn { display: inline-flex; position: relative; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; margin: 0; border: 0; background: transparent; cursor: pointer; border-radius: 0; }
    .header-logo-drawer-btn:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
    .header-logo-drawer-btn .header-logo { width: 32px; height: 32px; }
    .header-logo-drawer-btn .shop-filter-toggle__count { position: absolute; top: -2px; right: -4px; display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #111827; color: #fff; font-size: 11px; line-height: 18px; box-sizing: border-box; border: 2px solid #fff; }
    .header-logo-drawer-btn .shop-filter-toggle__count[hidden] { display: none; }
    .header-end { order: 0; flex: 0 0 auto; height: 63px; gap: 4px; display: flex; align-items: center; justify-content: flex-end; }
    .header .header-end > .header-mobile-search { display: none !important; }

    .header-mobile-actions { display: flex; align-items: center; gap: 4px; }
    .header-mobile-search-btn { width: 40px; height: 40px; padding: 0; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; }
    .header-mobile-search-btn__icon { width: 24px; height: 24px; display: block; }
    .header-mobile-menu-btn { width: 32px; height: 32px; min-width: 32px; min-height: 32px; margin: 0 4px; padding: 0; border: 1px solid #e5e7eb; border-radius: 9999px; background: #f9fafb; color: #374151; display: flex; align-items: center; justify-content: center; cursor: pointer; }
    .header-mobile-menu-btn__svg { width: 18px; height: 18px; display: block; }
    .header-mobile-menu-btn__bar { transition: transform 0.18s ease; transform-origin: 12px 12px; }
    .header.is-menu-open .header-mobile-menu-btn__bar--top,
    .header.is-searching .header-mobile-menu-btn__bar--top { transform: translateY(4px) rotate(45deg); }
    .header.is-menu-open .header-mobile-menu-btn__bar--bot,
    .header.is-searching .header-mobile-menu-btn__bar--bot { transform: translateY(-4px) rotate(-45deg); }

    .header.is-searching .header-left,
    .header.is-searching .header-mobile-search-btn { display: none !important; }
    .header.is-searching .header-end { flex: 1 1 auto; min-width: 0; gap: 8px; }
    .header.is-searching .header-end > .header-mobile-search { display: flex !important; flex: 1 1 0 !important; width: 0 !important; height: 32px; order: -1; }
    .header.is-searching .header-end > .header-mobile-search .header-mobile-search__wrap { height: 32px !important; min-height: 32px !important; max-height: 32px !important; width: 100% !important; border-radius: 9999px; display: flex; align-items: center; box-sizing: border-box; }
    .header.is-searching .header-mobile-search__input { height: 32px; min-height: 32px; line-height: 32px; font-size: 16px; padding-top: 0; padding-bottom: 0; box-sizing: border-box; }
    .header.is-searching .header-mobile-search__submit { height: 32px; min-height: 32px; min-width: 32px; }

    .mobile-cat-menu { display: block; position: fixed; top: 64px; left: 0; right: 0; bottom: 0; z-index: 10005; background: #fff; overflow-y: auto; padding: 8px 0 env(safe-area-inset-bottom); }
    .mobile-cat-menu[hidden] { display: none; }
    .mobile-cat-menu__list { list-style: none; margin: 0; padding: 0; }
    .mobile-cat-menu__item { width: 100%; min-height: 48px; padding: 0 16px; border: 0; border-bottom: 1px solid #f0f0f0; background: transparent; text-align: left; font: inherit; font-size: 15px; color: #374151; cursor: pointer; }
    .mobile-cat-menu__item.is-active { font-weight: 600; color: #111827; }
    .mobile-cat-menu__empty { padding: 12px 14px; font-size: 14px; color: #6b7280; }

    :root { --shop-grid-footer-height: calc(64px + env(safe-area-inset-bottom)); }
    .shop-grid-footer { display: grid !important; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; height: 64px; min-height: 64px; max-height: none; padding: 0 16px env(safe-area-inset-bottom); gap: 8px; margin-left: 0; border-top: 1px solid #d0d0d0; box-sizing: content-box; flex-wrap: nowrap; }
    .shop-grid-footer__left { display: none !important; }
    .shop-grid-footer__sort { flex: none; order: 0; }
    .shop-grid-footer__sort, .shop-grid-footer__sort-menu { width: auto !important; min-width: 0 !important; }
    .shop-grid-footer .shop-grid-footer__select { width: auto !important; min-width: 88px !important; max-width: 160px; height: 32px; min-height: 32px; padding: 0 12px; border-radius: 9999px; border: 1px solid #e5e7eb; background: #f9fafb; color: #374151; font-size: 11px; font-weight: 300; letter-spacing: 0.22px; }
    .shop-grid-footer__showing { order: 0; flex: none; margin: 0; padding: 0 2px; text-align: center; font-size: 10px; font-weight: 300; letter-spacing: 0.2px; color: #6b7280; white-space: nowrap; }
    .shop-grid-footer__pager { order: 0; display: flex; align-items: center; gap: 8px; }
    .shop-grid-footer__btn { width: 32px; height: 32px; min-width: 32px; min-height: 32px; padding: 0; border-radius: 9999px; border: 1px solid #e5e7eb; background: #f9fafb; color: #374151; font-size: 11px; }
    .shop-grid-footer__page { font-size: 10px; font-weight: 300; color: #374151; min-width: 26px; text-align: center; }
    .shop-grid-footer__sort-dropdown { bottom: calc(100% + 8px); top: auto; }
}
/* compact copy */
    :root:where(.is-compact) { --pi-m-header-h: 64px; --tabbed-fixed-below-header: 64px; }
    :where(html.is-compact) body { padding-top: 64px; }
    :where(html.is-compact) .header { height: 64px; padding: 0 16px; gap: 16px; flex-wrap: nowrap; align-items: center; justify-content: space-between; border-bottom: 1px solid #d0d0d0; box-sizing: border-box; }
    :where(html.is-compact) .header-middle, :where(html.is-compact) .header-categories-dropdown { display: none !important; }
    :where(html.is-compact) .header-left { order: 0; flex: 0 0 auto; width: auto; max-width: none; height: 63px; padding: 0; border: 0; display: flex; align-items: center; }
    :where(html.is-compact) .header-left-brand { display: flex; align-items: center; height: 40px; }
    :where(html.is-compact) .page-index .header-logo-link { display: none !important; }
    :where(html.is-compact) .header-logo-drawer-btn { display: inline-flex; position: relative; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; margin: 0; border: 0; background: transparent; cursor: pointer; border-radius: 0; }
    :where(html.is-compact) .header-logo-drawer-btn:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
    :where(html.is-compact) .header-logo-drawer-btn .header-logo { width: 32px; height: 32px; }
    :where(html.is-compact) .header-logo-drawer-btn .shop-filter-toggle__count { position: absolute; top: -2px; right: -4px; display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #111827; color: #fff; font-size: 11px; line-height: 18px; box-sizing: border-box; border: 2px solid #fff; }
    :where(html.is-compact) .header-logo-drawer-btn .shop-filter-toggle__count[hidden] { display: none; }
    :where(html.is-compact) .header-end { order: 0; flex: 0 0 auto; height: 63px; gap: 4px; display: flex; align-items: center; justify-content: flex-end; }
    :where(html.is-compact) .header .header-end > .header-mobile-search { display: none !important; }
    :where(html.is-compact) .header-mobile-actions { display: flex; align-items: center; gap: 4px; }
    :where(html.is-compact) .header-mobile-search-btn { width: 40px; height: 40px; padding: 0; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; }
    :where(html.is-compact) .header-mobile-search-btn__icon { width: 24px; height: 24px; display: block; }
    :where(html.is-compact) .header-mobile-menu-btn { width: 32px; height: 32px; min-width: 32px; min-height: 32px; margin: 0 4px; padding: 0; border: 1px solid #e5e7eb; border-radius: 9999px; background: #f9fafb; color: #374151; display: flex; align-items: center; justify-content: center; cursor: pointer; }
    :where(html.is-compact) .header-mobile-menu-btn__svg { width: 18px; height: 18px; display: block; }
    :where(html.is-compact) .header-mobile-menu-btn__bar { transition: transform 0.18s ease; transform-origin: 12px 12px; }
    :where(html.is-compact) .header.is-menu-open .header-mobile-menu-btn__bar--top, :where(html.is-compact) .header.is-searching .header-mobile-menu-btn__bar--top { transform: translateY(4px) rotate(45deg); }
    :where(html.is-compact) .header.is-menu-open .header-mobile-menu-btn__bar--bot, :where(html.is-compact) .header.is-searching .header-mobile-menu-btn__bar--bot { transform: translateY(-4px) rotate(-45deg); }
    :where(html.is-compact) .header.is-searching .header-left, :where(html.is-compact) .header.is-searching .header-mobile-search-btn { display: none !important; }
    :where(html.is-compact) .header.is-searching .header-end { flex: 1 1 auto; min-width: 0; gap: 8px; }
    :where(html.is-compact) .header.is-searching .header-end > .header-mobile-search { display: flex !important; flex: 1 1 0 !important; width: 0 !important; height: 32px; order: -1; }
    :where(html.is-compact) .header.is-searching .header-end > .header-mobile-search .header-mobile-search__wrap { height: 32px !important; min-height: 32px !important; max-height: 32px !important; width: 100% !important; border-radius: 9999px; display: flex; align-items: center; box-sizing: border-box; }
    :where(html.is-compact) .header.is-searching .header-mobile-search__input { height: 32px; min-height: 32px; line-height: 32px; font-size: 16px; padding-top: 0; padding-bottom: 0; box-sizing: border-box; }
    :where(html.is-compact) .header.is-searching .header-mobile-search__submit { height: 32px; min-height: 32px; min-width: 32px; }
    :where(html.is-compact) .mobile-cat-menu { display: block; position: fixed; top: 64px; left: 0; right: 0; bottom: 0; z-index: 10005; background: #fff; overflow-y: auto; padding: 8px 0 env(safe-area-inset-bottom); }
    :where(html.is-compact) .mobile-cat-menu[hidden] { display: none; }
    :where(html.is-compact) .mobile-cat-menu__list { list-style: none; margin: 0; padding: 0; }
    :where(html.is-compact) .mobile-cat-menu__item { width: 100%; min-height: 48px; padding: 0 16px; border: 0; border-bottom: 1px solid #f0f0f0; background: transparent; text-align: left; font: inherit; font-size: 15px; color: #374151; cursor: pointer; }
    :where(html.is-compact) .mobile-cat-menu__item.is-active { font-weight: 600; color: #111827; }
    :where(html.is-compact) .mobile-cat-menu__empty { padding: 12px 14px; font-size: 14px; color: #6b7280; }
    :root:where(.is-compact) { --shop-grid-footer-height: calc(64px + env(safe-area-inset-bottom)); }
    :where(html.is-compact) .shop-grid-footer { display: grid !important; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; height: 64px; min-height: 64px; max-height: none; padding: 0 16px env(safe-area-inset-bottom); gap: 8px; margin-left: 0; border-top: 1px solid #d0d0d0; box-sizing: content-box; flex-wrap: nowrap; }
    :where(html.is-compact) .shop-grid-footer__left { display: none !important; }
    :where(html.is-compact) .shop-grid-footer__sort { flex: none; order: 0; }
    :where(html.is-compact) .shop-grid-footer__sort, :where(html.is-compact) .shop-grid-footer__sort-menu { width: auto !important; min-width: 0 !important; }
    :where(html.is-compact) .shop-grid-footer .shop-grid-footer__select { width: auto !important; min-width: 88px !important; max-width: 160px; height: 32px; min-height: 32px; padding: 0 12px; border-radius: 9999px; border: 1px solid #e5e7eb; background: #f9fafb; color: #374151; font-size: 11px; font-weight: 300; letter-spacing: 0.22px; }
    :where(html.is-compact) .shop-grid-footer__showing { order: 0; flex: none; margin: 0; padding: 0 2px; text-align: center; font-size: 10px; font-weight: 300; letter-spacing: 0.2px; color: #6b7280; white-space: nowrap; }
    :where(html.is-compact) .shop-grid-footer__pager { order: 0; display: flex; align-items: center; gap: 8px; }
    :where(html.is-compact) .shop-grid-footer__btn { width: 32px; height: 32px; min-width: 32px; min-height: 32px; padding: 0; border-radius: 9999px; border: 1px solid #e5e7eb; background: #f9fafb; color: #374151; font-size: 11px; }
    :where(html.is-compact) .shop-grid-footer__page { font-size: 10px; font-weight: 300; color: #374151; min-width: 26px; text-align: center; }
    :where(html.is-compact) .shop-grid-footer__sort-dropdown { bottom: calc(100% + 8px); top: auto; }



/* ===== Accounts & favorites (ported from productindex.org) ===== */
.shop-grid-footer__auth-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: var(--control-h);
    padding: 0 14px;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    background: #f9fafb;
    color: #374151;
    font-family: var(--tabbed-font-family);
    font-size: 13px;
    font-weight: 300;
    cursor: pointer;
}
.shop-grid-footer__auth-pill:hover {
    background: #ffffff;
    border-color: #d1d5db;
}
@media (min-width: 656px) {
    :where(html:not(.is-compact)) .shop-grid-footer__left .shop-grid-footer__auth-pill {
        width: auto;
        max-width: 100%;
        min-width: 0;
        flex: 1 1 auto;
        justify-content: flex-start;
    }
    :where(html:not(.is-compact)) .shop-grid-footer__left .shop-grid-footer__profile {
        height: 100%;
        flex: 1 1 auto;
        min-width: 0;
    }
    :where(html:not(.is-compact)) .shop-grid-footer__left .shop-grid-footer__signin {
        justify-content: center;
        width: 100%;
    }
    :where(html:not(.is-compact)) .header-login-slot, :where(html:not(.is-compact)) .header-right {
        display: none !important;
    }
    :where(html:not(.is-compact)) #header-profile-dropdown {
        top: auto;
        bottom: calc(var(--shop-grid-footer-height) + 6px);
        left: 6px;
        right: auto;
        width: calc(var(--app-sidebar-width) - 12px);
        min-width: calc(var(--app-sidebar-width) - 12px);
        max-width: calc(var(--app-sidebar-width) - 12px);
        max-height: min(85vh, calc(100dvh - var(--shop-grid-footer-height) - 16px));
    }

}
.login-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--header-dropdown-duration) var(--header-dropdown-ease);
}
.login-modal-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}
.login-modal-backdrop[hidden] {
    display: none;
}
.contribute-modal {
    background: #fff;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    width: 100%;
    max-width: 540px;
    box-shadow: none;
    border: 1px solid #d0d0d0;
    opacity: 0;
    transform: translateY(-8px);
    transition:
        opacity var(--header-dropdown-duration) var(--header-dropdown-ease),
        transform var(--header-dropdown-duration) var(--header-dropdown-ease);
}
.login-modal-backdrop.is-open .contribute-modal.login-modal-shell {
    opacity: 1;
    transform: translateY(0);
}
.contribute-modal.login-modal-shell {
    position: relative;
    max-width: 420px;
    max-height: min(92vh, 720px);
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
}
.contribute-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid #d0d0d0;
    flex-shrink: 0;
}
.contribute-modal.login-modal-shell .contribute-modal-header {
    position: relative;
    justify-content: center;
    padding-left: 52px;
    padding-right: 52px;
    min-height: 60px;
    box-sizing: border-box;
}
.contribute-modal-title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: #4a5568;
}
.contribute-modal.login-modal-shell .contribute-modal-title {
    display: block;
    width: 100%;
    margin: 0;
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.02em;
    color: #374151;
    text-align: center;
}
.contribute-modal-body {
    overflow-y: auto;
    padding: 20px;
    flex: 1;
}
.login-modal-logo {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: block;
    width: 32px;
    height: 32px;
    pointer-events: none;
}
.login-modal-close {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    z-index: 1;
    box-sizing: border-box;
    flex: 0 0 var(--control-h);
    width: var(--control-h);
    min-width: var(--control-h);
    height: var(--control-h);
    min-height: var(--control-h);
    margin: 0;
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    background: #f9fafb;
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    appearance: none;
    -webkit-appearance: none;
}
.login-modal-close img {
    display: block;
    width: 18px;
    height: 18px;
    pointer-events: none;
}
.login-modal-close:hover {
    border-color: #d1d5db;
    background: #ffffff;
}
.login-modal-close:focus {
    outline: none;
}
.login-modal-close:focus-visible {
    outline: 2px solid #1976d2;
    outline-offset: 2px;
}
.login-modal-lead {
    margin: 0 0 18px;
    font-size: 13px;
    font-weight: 300;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #6b7280;
}
.login-modal-form .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 14px;
}
.login-modal-footer {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
}
.login-modal-legal {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
    font-size: 13px;
    line-height: 1.4;
    color: #6b7280;
    font-weight: 300;
    letter-spacing: 0.02em;
}
.login-modal-legal a {
    color: #6b7280;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.login-modal-legal a:hover {
    color: #4a5568;
}
.login-modal-form input[type="email"],
.login-modal-form input[type="text"] {
    height: var(--control-h);
    min-height: var(--control-h);
    max-height: var(--control-h);
    padding: 0 14px;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 300;
    font-family: inherit;
    letter-spacing: 0.02em;
    color: #374151;
    background: #f9fafb;
    box-sizing: border-box;
    width: 100%;
}
.login-modal-field-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    height: var(--control-h);
    min-height: var(--control-h);
    max-height: var(--control-h);
    margin: 0;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    background: #f9fafb;
    box-sizing: border-box;
    overflow: hidden;
}
.login-modal-field-wrap:hover,
.login-modal-field-wrap:focus-within {
    background: #ffffff;
    border-color: #d1d5db;
}
.login-modal-form .login-modal-field-wrap input[type="email"],
.login-modal-form .login-modal-field-wrap input[type="text"] {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    height: 100%;
    min-height: 0;
    max-height: none;
    padding: 0 8px 0 14px;
    border: none;
    border-radius: 0;
    background: transparent;
}
.login-modal-form .login-modal-field-wrap input:focus,
.login-modal-form .login-modal-field-wrap input:focus-visible {
    background: transparent;
    border: none;
    outline: none;
}
.login-modal-username-at {
    flex: 0 0 auto;
    padding: 0 2px 0 14px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.02em;
    line-height: 1;
    user-select: none;
    pointer-events: none;
}
.login-modal-form .login-modal-username-wrap input[type="text"] {
    padding-left: 2px;
}
.login-modal-field-go {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    flex: 0 0 40px;
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #4a5568;
    cursor: pointer;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
}
.login-modal-field-go:focus {
    outline: none;
}
.login-modal-field-go:focus-visible {
    outline: 2px solid #1976d2;
    outline-offset: -2px;
    color: #111827;
}
.login-modal-field-go:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.login-modal-field-go svg {
    display: block;
    width: 18px;
    height: 18px;
    pointer-events: none;
}
.login-modal-form input:hover,
.login-modal-form input:focus {
    outline: none;
    background: #ffffff;
    border-color: #d1d5db;
}
.login-modal-after-send {
    margin-top: 4px;
}
.login-modal-status {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.02em;
    line-height: 1.45;
    color: #6b7280;
}
.login-modal-status--error {
    color: #c62828;
}
.login-modal-identity {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    margin: 0 0 14px;
}
.login-modal-identity-fields {
    flex: 1 1 auto;
    min-width: 0;
}
.login-modal-identity-fields .form-group {
    margin-bottom: 14px;
}
.login-modal-identity-fields .form-group:last-child {
    margin-bottom: 0;
}
.login-modal-photo-btn {
    flex: 0 0 auto;
    width: 78px;
    height: 78px;
    margin: 0;
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    background: #f9fafb;
    overflow: hidden;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}
.login-modal-photo-btn:hover {
    background: #ffffff;
    border-color: #d1d5db;
}
.login-modal-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: var(--control-h);
    min-height: var(--control-h);
    max-height: var(--control-h);
    padding: 0 14px;
    margin: 0;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    background: #f9fafb;
    color: #374151;
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.02em;
    line-height: 1;
    cursor: pointer;
    font-family: inherit;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
}
.login-modal-submit:hover {
    background: #ffffff;
    border-color: #d1d5db;
    color: #111827;
}
.login-modal-submit:focus {
    outline: none;
}
.login-modal-submit:focus-visible {
    outline: 2px solid #1976d2;
    outline-offset: 2px;
}
.login-modal-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.login-modal-submit--username {
    display: none;
    flex: 0 0 auto;
    align-self: flex-end;
}
.contribute-modal-body:has(#login-modal-username-step:not([hidden])) .login-modal-submit--username {
    display: inline-flex;
}
.shop-grid-footer__signin[hidden],
.shop-grid-footer__profile[hidden],
.shop-grid-footer__favs[hidden] {
    display: none;
}
.favorite-heart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 0;
    border: none;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    flex-shrink: 0;
}
.favorite-heart:hover {
    color: #4a5568;
}
.favorite-heart.is-on {
    color: #e11d48;
}
.favorite-heart.is-on .favorite-heart-icon {
    fill: #e11d48;
}
.user-page-title {
    margin: 0;
    display: flex;
    align-items: center;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 400;
    color: #374151;
}
.user-main {
    flex: 1 1 0;
    min-height: 0;
    overflow: auto;
    background: var(--paper);
    padding: 24px 20px 80px;
}
.user-empty {
    margin: 40px auto;
    max-width: 40rem;
    color: var(--muted);
    font-weight: 300;
    text-align: center;
}
.modal-heart-btn {
    justify-self: end;
    width: 22px;
    height: 22px;
}
.modal-heart-btn .favorite-heart-icon {
    width: 20px;
    height: 20px;
}
.header-login-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 0;
    align-self: center;
}
.header-right {
    display: flex;
    align-items: center;
    align-self: center;
}
.header-login-slot[hidden],
.header-right[hidden] {
    display: none;
}
.header-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--shop-gf-h);
    min-height: var(--shop-gf-h);
    max-height: var(--shop-gf-h);
    padding: 0 14px;
    margin: 0;
    border: 1px solid #e5e7eb;
    border-radius: var(--shop-gf-pill-radius);
    background: #f9fafb;
    color: #374151;
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.02em;
    line-height: 1;
    cursor: pointer;
    font-family: inherit;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
}
.header-login-btn:hover {
    background: #ffffff;
    border-color: #d1d5db;
    color: #111827;
}
.header-login-btn:focus {
    outline: none;
}
.header-login-btn:focus-visible {
    outline: 2px solid #1976d2;
    outline-offset: 2px;
}
.header-profile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--control-h);
    height: var(--control-h);
    min-width: var(--control-h);
    min-height: var(--control-h);
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 50%;
    box-sizing: border-box;
    background: transparent;
    cursor: pointer;
    font: inherit;
    line-height: 0;
    flex-shrink: 0;
}
.header-profile-menu-btn__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.header-profile-menu-btn:focus {
    outline: none;
}
.header-profile-menu-btn:focus-visible {
    outline: 2px solid #1976d2;
    outline-offset: 2px;
    border-radius: 50%;
}
.header-profile-avatar-frame {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
}
.header-profile-menu-btn .header-profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}
.header-profile-avatar-img--placeholder {
    object-fit: contain;
    object-position: center;
    box-sizing: border-box;
}
.shop-grid-footer__favs {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    height: var(--shop-gf-h);
    min-height: var(--shop-gf-h);
    max-height: var(--shop-gf-h);
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
}
.shop-grid-footer__favs .profile-fav-heart {
    height: var(--shop-gf-h);
    min-height: var(--shop-gf-h);
    max-height: var(--shop-gf-h);
}
.shop-grid-footer__favs:hover .profile-fav-heart {
    background: #ffffff;
    border-color: #d1d5db;
}
.shop-grid-footer__favs:focus {
    outline: none;
}
.shop-grid-footer__favs:focus-visible .profile-fav-heart {
    outline: 2px solid #1976d2;
    outline-offset: 2px;
}
.shop-grid-footer__profile-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1px;
    min-width: 0;
    max-width: 100%;
}
.shop-grid-footer__profile {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
    width: auto;
    max-width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    background: none;
    box-shadow: none;
    color: #374151;
    font-family: inherit;
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.02em;
    line-height: 1;
    cursor: pointer;
    text-align: left;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    overflow: hidden;
}
.shop-grid-footer__profile:hover,
.shop-grid-footer__profile[aria-expanded="true"],
.shop-grid-footer__profile:focus {
    background: none;
    outline: none;
    color: #111827;
}
.shop-grid-footer__profile:focus-visible {
    outline: 2px solid #1976d2;
    outline-offset: 2px;
}
.shop-grid-footer__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
    background: #f3f4f6;
}
.shop-grid-footer__avatar--placeholder {
    width: 22px;
    height: 22px;
    object-fit: contain;
    opacity: 0.55;
    border-radius: 0;
    background: transparent;
}
.shop-grid-footer__username {
    font-size: 13px;
    font-weight: inherit;
    line-height: 1.3;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    max-width: 100%;
}
.shop-grid-footer__joined {
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 0.02em;
    line-height: 1.2;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.shop-grid-footer__joined[hidden] {
    display: none;
}
.profile-fav-heart {
    position: relative;
    display: inline-flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
    height: 28px;
    min-width: 52px;
    padding: 0 12px;
    box-sizing: border-box;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
}
.profile-fav-heart__fill {
    display: block;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    object-fit: contain;
    pointer-events: none;
}
.profile-fav-heart__num {
    font-family: var(--tabbed-font-family);
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.02em;
    color: #374151;
    line-height: 1.3;
}
.header-profile-menu-dropdown-new {
    position: fixed;
    top: calc(var(--tabbed-fixed-below-header) + 6px);
    right: max(8px, env(safe-area-inset-right, 0px));
    left: auto;
    width: var(--header-profile-menu-width);
    min-width: min(var(--header-profile-menu-width), calc(100vw - 16px));
    max-width: min(var(--header-profile-menu-width), calc(100vw - 16px));
    text-align: left;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
    z-index: 10002;
    max-height: min(85vh, calc(100dvh - var(--tabbed-fixed-below-header) - 16px));
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--header-dropdown-duration) var(--header-dropdown-ease);
}
.header-profile-menu-dropdown-new.is-open {
    opacity: 1;
    pointer-events: auto;
}
.header-profile-menu-dropdown-new[hidden] {
    display: none;
}
.header-profile-menu-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 100%;
    padding: 18px 14px 14px;
    gap: 10px;
    box-sizing: border-box;
    border-bottom: 1px solid #f1f5f9;
}
.header-profile-menu-dropdown-new:has(.profile-page-who__share) .header-profile-menu-hero {
    padding-top: 28px;
}
.header-profile-menu-dropdown-new .profile-page-who__chrome {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 8px;
    box-sizing: border-box;
    pointer-events: none;
}
.header-profile-menu-dropdown-new .profile-page-who__share {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    flex: 0 0 var(--control-h);
    width: var(--control-h);
    min-width: var(--control-h);
    height: var(--control-h);
    min-height: var(--control-h);
    margin: 0;
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    background: #f9fafb;
    color: #374151;
    cursor: pointer;
    pointer-events: auto;
    appearance: none;
    -webkit-appearance: none;
}
.header-profile-menu-dropdown-new .profile-page-who__share img {
    display: block;
    width: 18px;
    height: 18px;
    pointer-events: none;
}
.header-profile-menu-dropdown-new .profile-page-who__share:hover {
    border-color: #d1d5db;
    background: #ffffff;
}
.header-profile-menu-hero__frame {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    box-sizing: border-box;
}
.header-profile-menu-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}
.header-profile-menu-hero__img.header-profile-avatar-img--placeholder {
    object-fit: contain;
    object-position: center;
    padding: 18px;
    box-sizing: border-box;
}
.header-profile-menu-hero__who {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    max-width: 100%;
    text-align: center;
}
.header-profile-menu-hero__display-name {
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.02em;
    line-height: 1.2;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.header-profile-menu-hero__display-name[hidden],
.header-profile-menu-hero__joined[hidden] {
    display: none;
}
.header-profile-menu-hero__username {
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.02em;
    line-height: 1.3;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.header-profile-menu-hero__joined {
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 0.02em;
    line-height: 1.2;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.header-profile-menu-item-new {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: var(--header-profile-menu-item-height);
    height: var(--header-profile-menu-item-height);
    padding: 0 14px;
    margin: 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid #f1f5f9;
    border-radius: 0;
    text-align: left;
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.02em;
    color: #374151;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    box-sizing: border-box;
}
.header-profile-menu-item-new:last-child {
    border-bottom: none;
}
#header-profile-link-settings {
    border-bottom: none;
}
.header-profile-menu-item-new:hover {
    background: #fffbeb;
    color: #967716;
}
.header-profile-menu-item-new:focus {
    outline: none;
}
.header-profile-menu-item-new:focus-visible {
    outline: 2px solid #c9a227;
    outline-offset: -2px;
    background: #fffbeb;
    color: #967716;
}
#header-profile-menu-logout {
    height: calc(var(--header-profile-menu-item-height) + 2px);
    min-height: calc(var(--header-profile-menu-item-height) + 2px);
    padding-bottom: 2px;
}
#header-profile-menu-logout:hover,
#header-profile-menu-logout:focus-visible {
    background: #fef2f2;
    color: #b91c1c;
}
@media (max-width: 655px) {
.login-modal-backdrop {
        padding: 16px;
    }
.contribute-modal.login-modal-shell {
        max-width: 100%;
    }
}
/* compact copy */
    :where(html.is-compact) .login-modal-backdrop {
        padding: 16px;
    }
    :where(html.is-compact) .contribute-modal.login-modal-shell {
        max-width: 100%;
    }


@media (prefers-reduced-motion: reduce) {
.header-categories-dropdown,
    .header-categories-row--subs,
    .shop-grid-footer__sort-dropdown,
    .login-modal-backdrop,
    .contribute-modal.login-modal-shell,
    .header-profile-menu-dropdown-new,
    .shop-filter-panel-body,
    .shop-filter-panel-body-inner,
    .table-tags-more,
    .table-tags-more-inner,
    .modal-overlay,
    .modal-card {
        transition-duration: 0.01ms;
    }
}
@media (max-width: 655px) {
.header-mobile-search__submit,
    .header-login-btn,
    .header-profile-menu-btn,
    .shop-grid-footer__btn,
    .shop-grid-footer__select,
    .shop-grid-footer__sort-option,
    .shop-filter-mode-btn,
    .shop-filter-panel-toggle,
    .sidebar-filter-item,
    .cell-expand-btn { min-height: 44px; min-width: 44px; }
.login-modal-backdrop { align-items: flex-end; padding: 0; }
.contribute-modal.login-modal-shell { width: 100%; max-height: 92vh; overflow-y: auto; border-radius: 16px 16px 0 0; }
.login-modal-shell input { font-size: 16px; min-height: 44px; }
.login-modal-shell button { min-height: 44px; }
}
/* compact copy */
    :where(html.is-compact) .header-mobile-search__submit, :where(html.is-compact) .header-login-btn, :where(html.is-compact) .header-profile-menu-btn, :where(html.is-compact) .shop-grid-footer__btn, :where(html.is-compact) .shop-grid-footer__select, :where(html.is-compact) .shop-grid-footer__sort-option, :where(html.is-compact) .shop-filter-mode-btn, :where(html.is-compact) .shop-filter-panel-toggle, :where(html.is-compact) .sidebar-filter-item, :where(html.is-compact) .cell-expand-btn { min-height: 44px; min-width: 44px; }
    :where(html.is-compact) .login-modal-backdrop { align-items: flex-end; padding: 0; }
    :where(html.is-compact) .contribute-modal.login-modal-shell { width: 100%; max-height: 92vh; overflow-y: auto; border-radius: 16px 16px 0 0; }
    :where(html.is-compact) .login-modal-shell input { font-size: 16px; min-height: 44px; }
    :where(html.is-compact) .login-modal-shell button { min-height: 44px; }


@media (max-width: 655px) {
.login-modal-email, .login-modal-shell input { min-height: 44px; }
}
/* compact copy */
    :where(html.is-compact) .login-modal-email, :where(html.is-compact) .login-modal-shell input { min-height: 44px; }


@media (max-width: 655px) {
.header-login-slot, .header-right { height: 40px; }
.header-login-btn, .header-profile-menu-btn { height: 40px; min-height: 40px; padding-top: 0; padding-bottom: 0; display: inline-flex; align-items: center; box-sizing: border-box; }
}
/* compact copy */
    :where(html.is-compact) .header-login-slot, :where(html.is-compact) .header-right { height: 40px; }
    :where(html.is-compact) .header-login-btn, :where(html.is-compact) .header-profile-menu-btn { height: 40px; min-height: 40px; padding-top: 0; padding-bottom: 0; display: inline-flex; align-items: center; box-sizing: border-box; }


@media (max-width: 655px) {
.header-login-slot, .header-right { position: fixed; top: 0; left: 50%; transform: translateX(-50%); height: 64px; display: flex; align-items: center; z-index: 10002; }
.header-login-slot[hidden], .header-right[hidden] { display: none !important; }
.header-login-btn { width: 120px; height: 32px; min-height: 32px; padding: 0 28px; justify-content: center; border-radius: 9999px; border: 1px solid #e5e7eb; background: #f9fafb; color: #374151; font-size: 13px; font-weight: 300; letter-spacing: 0.26px; }
.header-profile-menu-btn { height: 40px; min-height: 40px; }
.header.is-searching .header-left,
    .header.is-searching .header-login-slot,
    .header.is-searching .header-right,
    .header.is-searching .header-mobile-search-btn { display: none !important; }
}
/* compact copy */
    :where(html.is-compact) .header-login-slot, :where(html.is-compact) .header-right { position: fixed; top: 0; left: 50%; transform: translateX(-50%); height: 64px; display: flex; align-items: center; z-index: 10002; }
    :where(html.is-compact) .header-login-slot[hidden], :where(html.is-compact) .header-right[hidden] { display: none !important; }
    :where(html.is-compact) .header-login-btn { width: 120px; height: 32px; min-height: 32px; padding: 0 28px; justify-content: center; border-radius: 9999px; border: 1px solid #e5e7eb; background: #f9fafb; color: #374151; font-size: 13px; font-weight: 300; letter-spacing: 0.26px; }
    :where(html.is-compact) .header-profile-menu-btn { height: 40px; min-height: 40px; }
    :where(html.is-compact) .header.is-searching .header-left, :where(html.is-compact) .header.is-searching .header-login-slot, :where(html.is-compact) .header.is-searching .header-right, :where(html.is-compact) .header.is-searching .header-mobile-search-btn { display: none !important; }



/* plantindex-specific account bits */
.name-cell .favorite-heart { margin-left: auto; flex: 0 0 auto; }
.modal-header-title-row { display: flex; align-items: flex-start; gap: 8px; }
.modal-header-title-row .modal-heart-btn { margin-left: auto; flex: 0 0 auto; }
.user-main { max-width: 720px; margin: 0 auto; padding: calc(var(--header-bar-height, 64px) + 24px) 16px 48px; box-sizing: border-box; }
.user-page-title { margin: 0; font-size: 14px; color: #4b5563; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-profile-head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.user-profile-avatar { width: 64px; height: 64px; border-radius: 50%; background: #f3f4f6; }
.user-profile-name { margin: 0; font-size: 20px; font-weight: 600; }
.user-profile-handle { margin: 4px 0 0; font-size: 14px; color: #6b7280; }
.user-section-title { font-size: 16px; font-weight: 600; margin: 0 0 12px; }
.user-count { color: #6b7280; font-weight: 400; }
.user-fav-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid #e5e7eb; }
.user-fav-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #e5e7eb; min-width: 0; }
.user-fav-text { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.user-fav-name { color: #111827; text-decoration: none; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-fav-name:hover { text-decoration: underline; }
.user-fav-sci { font-size: 13px; color: #6b7280; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-empty { color: #6b7280; font-size: 14px; }
.user-back { margin-top: 24px; font-size: 14px; }
.user-back a { color: #374151; }
.user-settings-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid #e5e7eb; border-bottom: 1px solid #e5e7eb; }
.user-settings-label { margin: 0; font-size: 15px; font-weight: 500; }
.user-settings-help, .user-settings-meta, .user-settings-status { margin: 4px 0 0; font-size: 13px; color: #6b7280; }
.user-settings-meta { margin-top: 16px; }
.user-switch { position: relative; display: inline-block; width: 44px; height: 26px; flex: 0 0 auto; }
.user-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.user-switch__track { position: absolute; inset: 0; border-radius: 9999px; background: #d1d5db; transition: background 0.15s; }
.user-switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform 0.15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.user-switch input:checked + .user-switch__track { background: #111827; }
.user-switch input:checked + .user-switch__track::after { transform: translateX(18px); }
.user-switch input:focus-visible + .user-switch__track { outline: 2px solid #111827; outline-offset: 2px; }
.page-user .header-middle { min-width: 0; }
@media (max-width: 655px) {
    .page-user .header-middle { display: none; }
}
/* compact copy */
    :where(html.is-compact) .page-user .header-middle { display: none; }



@media (max-width: 655px) {
 .shop-sidebar .shop-filter-mode { height: auto; min-height: 56px; padding: 8px 16px; gap: 12px; justify-content: space-between; }
 .shop-sidebar .shop-filter-mode-label { font-size: 14px; color: #4b5563; white-space: nowrap; }
 .shop-sidebar .shop-filter-mode-toggle { height: 40px; padding: 3px; gap: 2px; flex: 0 0 auto; overflow: visible; }
 .shop-sidebar .shop-filter-mode-btn { min-height: 0; min-width: 52px; height: 100%; padding: 0 14px; font-size: 14px; font-weight: 400; box-sizing: border-box; border: 1px solid transparent; }
 .shop-sidebar .shop-filter-mode-btn.shop-filter-mode-btn--active { border-color: #e8d9a8; }
}
/* compact copy */
    :where(html.is-compact) .shop-sidebar .shop-filter-mode { height: auto; min-height: 56px; padding: 8px 16px; gap: 12px; justify-content: space-between; }
    :where(html.is-compact) .shop-sidebar .shop-filter-mode-label { font-size: 14px; color: #4b5563; white-space: nowrap; }
    :where(html.is-compact) .shop-sidebar .shop-filter-mode-toggle { height: 40px; padding: 3px; gap: 2px; flex: 0 0 auto; overflow: visible; }
    :where(html.is-compact) .shop-sidebar .shop-filter-mode-btn { min-height: 0; min-width: 52px; height: 100%; padding: 0 14px; font-size: 14px; font-weight: 400; box-sizing: border-box; border: 1px solid transparent; }
    :where(html.is-compact) .shop-sidebar .shop-filter-mode-btn.shop-filter-mode-btn--active { border-color: #e8d9a8; }



/* 404 */
.not-found-page { text-align: left; }
.not-found-code { margin: 0 0 8px; font-size: 13px; font-weight: 500; letter-spacing: 0.08em; color: #6b7280; }
.not-found-page h1 { margin-top: 0; }
.not-found-home { display: inline-flex; align-items: center; height: 32px; padding: 0 16px; border: 1px solid #e5e7eb; border-radius: 9999px; background: #f9fafb; color: #374151; font-size: 13px; text-decoration: none; }
.not-found-home:hover { background: #f3f4f6; }

/* ===== Polish pass: one type scale and spacing rhythm for content pages ===== */
.page-sub .shop-shell { min-height: 100vh; }
.page-sub .user-main { max-width: 680px; margin: 0 auto; padding: calc(var(--header-bar-height, 64px) + 40px) 24px 96px; box-sizing: border-box; }
.page-sub .legal-page { max-width: none; padding: 0; font-size: 15px; line-height: 1.65; color: #374151; font-weight: 300; }
.page-sub .legal-page h1, .page-sub .user-section-title, .page-sub .user-profile-name { font-size: 20px; line-height: 1.3; font-weight: 600; color: #111827; margin: 0 0 16px; }
.page-sub .legal-page p { margin: 0 0 16px; }
.page-sub .legal-page a, .page-sub .user-back a { color: #111827; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: #d1d5db; }
.page-sub .legal-page a:hover, .page-sub .user-back a:hover { text-decoration-color: #111827; }
.page-sub .user-profile-head { margin-bottom: 32px; }
.page-sub .user-profile-name { margin: 0; }
.page-sub .user-section-title { font-size: 15px; margin-bottom: 12px; }
.page-sub .user-back { margin: 32px 0 0; font-size: 14px; }
.page-sub .not-found-home { text-decoration: none; color: #374151; }
.page-sub .header-logo-link { display: inline-flex; align-items: center; }
.user-page-title { font-size: 14px; font-weight: 400; color: #374151; }

/* plant sheet header: family on one line, group/duration beneath, no floating centre column */
.modal-header-sub { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.modal-header-brand, .modal-category { justify-self: auto; text-align: left; }
.modal-brand { font-size: 13px; font-weight: 600; color: #374151; }
.modal-brand .modal-detail-line--muted { font-weight: 400; color: #6b7280; }
.modal-category { font-size: 13px; }
.modal-header-title-row { align-items: flex-start; }
.modal-product-name { line-height: 1.25; }

@media (max-width: 655px) {
    .page-sub .user-main { padding: 32px 16px 64px; }
    .page-sub .header-logo-link .header-logo { width: 32px; height: 32px; }
    .page-sub .legal-page h1, .page-sub .user-profile-name { font-size: 18px; }
    .page-sub .legal-page { font-size: 14px; }
}
/* compact copy */
    :where(html.is-compact) .page-sub .user-main { padding: 32px 16px 64px; }
    :where(html.is-compact) .page-sub .header-logo-link .header-logo { width: 32px; height: 32px; }
    :where(html.is-compact) .page-sub .legal-page h1, :where(html.is-compact) .page-sub .user-profile-name { font-size: 18px; }
    :where(html.is-compact) .page-sub .legal-page { font-size: 14px; }



/* footer rail: one Sign in / profile control, About + Terms as quiet text links */
@media (min-width: 656px) {
    :where(html:not(.is-compact)) .shop-grid-footer__left { gap: 4px; }
    :where(html:not(.is-compact)) .shop-grid-footer__left a.shop-grid-footer__auth-pill[href="/about"], :where(html:not(.is-compact)) .shop-grid-footer__left a.shop-grid-footer__auth-pill[href="/terms"] {
        flex: 0 0 auto; height: auto; min-height: 0; padding: 0 6px; margin: 0; border: 0; background: transparent;
        font-size: 12px; color: #6b7280; justify-content: center;
    }
    :where(html:not(.is-compact)) .shop-grid-footer__left a.shop-grid-footer__auth-pill[href="/about"]:hover, :where(html:not(.is-compact)) .shop-grid-footer__left a.shop-grid-footer__auth-pill[href="/terms"]:hover { color: #111827; text-decoration: underline; }
    :where(html:not(.is-compact)) .shop-grid-footer__left .shop-grid-footer__signin { flex: 1 1 auto; justify-content: center; margin-right: 6px; }

}

/* ---- Production pass: states, focus, motion ---- */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 2px solid #111;
    outline-offset: 2px;
}
.modal-photo img { height: auto; }
.skeleton-row td { padding: 14px 16px; border-bottom: 1px solid #f3f4f6; }
.skeleton-bar {
    display: block; height: 12px; width: 60%; max-width: 520px; border-radius: 6px;
    background: linear-gradient(90deg, #eceef1 0%, #f7f8f9 50%, #eceef1 100%);
    background-size: 200% 100%;
    animation: pi-shimmer 1.2s ease-in-out infinite;
}
.skeleton-row:nth-child(3n+2) .skeleton-bar { width: 45%; }
.skeleton-row:nth-child(3n) .skeleton-bar { width: 70%; }
@keyframes pi-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
td.state-cell { padding: 48px 16px; text-align: center; }
td.state-cell .state-title { display: block; font-size: 14px; font-weight: 600; color: #111; }
td.state-cell .state-sub { display: block; margin-top: 4px; font-size: 13px; color: #6b7280; }
td.state-cell .state-btn {
    margin-top: 16px; padding: 8px 16px; border: 1px solid #e5e7eb; border-radius: 999px;
    background: #fff; color: #111; font: inherit; font-size: 13px; font-weight: 500; cursor: pointer;
}
td.state-cell .state-btn:hover { background: #f9fafb; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
#grid tbody td.state-cell { display: block !important; padding: 48px 16px !important; text-align: center; }
#grid tbody tr.skeleton-row td { display: block !important; padding: 14px 16px !important; }
#grid tbody td.state-cell::before, #grid tbody tr.skeleton-row td::before { display: none !important; }
#grid th.col-mchips, #grid th.col-mthumb { display: none; }
#grid tbody tr.skeleton-row { display: block !important; }
#grid tbody tr.skeleton-row td { width: 100%; }
/* Terms page */
.page-sub .legal-page h2 { font-size: 15px; line-height: 1.4; font-weight: 600; color: #111827; margin: 32px 0 8px; }
.page-sub .legal-page .legal-meta { margin: -8px 0 24px; font-size: 13px; color: #6b7280; }
.page-sub .legal-page ul { margin: 0 0 16px; padding-left: 20px; }
.page-sub .legal-page li { margin: 0 0 8px; }
.page-sub .legal-page li::marker { color: #9ca3af; }
.page-sub .legal-page strong { font-weight: 600; color: #111827; }
.page-sub .legal-page .legal-callout { padding: 12px 16px; border: 1px solid #e5e7eb; border-left: 3px solid #111827; border-radius: 8px; background: #f9fafb; }
.page-sub .legal-page .legal-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; overflow-wrap: anywhere; }
@media (max-width: 655px) { .page-sub .legal-page h2 { font-size: 14px; margin-top: 28px; } }
/* compact copy */
    :where(html.is-compact) .page-sub .legal-page h2 { font-size: 14px; margin-top: 28px; } 


/* ---- Tag markers: monochrome icons (sun/water/soil/attracts) and true-color bloom swatches ---- */
.tag-icon { display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; flex: 0 0 14px; color: #4b5563; margin-right: 6px; vertical-align: -2px; }
.tag-icon svg { display: block; width: 14px; height: 14px; }
.tag-swatch { box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
.table-tag .tag-icon, .modal-tag .tag-icon { margin-right: 6px; }
.sidebar-filter-item .tag-icon, .sidebar-chip-left .tag-icon { margin-right: 8px; }
.m-chip .tag-icon { width: 12px; height: 12px; flex-basis: 12px; margin-right: 4px; }
.m-chip .tag-icon svg { width: 12px; height: 12px; }
.m-chip { display: inline-flex; align-items: center; }

/* ---- Numeric columns + sortable headers ---- */
#grid td.col-num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.th-sort { all: unset; pointer-events: auto; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; font: inherit; color: inherit; }
.th-sort:focus-visible { outline: 2px solid #967716; outline-offset: 2px; border-radius: 4px; }
.th-sort-ind { color: #9ca3af; font-size: 11px; }
th[aria-sort="ascending"] .th-sort-ind, th[aria-sort="descending"] .th-sort-ind { color: #967716; }

/* ---- Sidebar size range filters ---- */
.shop-range { padding: 10px 16px 12px; border-bottom: 1px solid #e5e7eb; display: flex; flex-direction: column; gap: 10px; }
.shop-range-row { border: 0; margin: 0; padding: 0; min-width: 0; }
.shop-range-label { padding: 0; font-size: 13px; font-weight: 500; color: #374151; margin-bottom: 6px; }
.shop-range-unit { font-weight: 300; color: #6b7280; }
.shop-range-inputs { display: flex; align-items: center; gap: 6px; }
.shop-range-input { flex: 1 1 0; min-width: 0; width: 100%; height: 32px; padding: 0 10px; border: 1px solid #e5e7eb; border-radius: 8px; background: #f9fafb; font: inherit; font-size: 13px; box-sizing: border-box; -moz-appearance: textfield; }
.shop-range-input::-webkit-outer-spin-button, .shop-range-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.shop-range-input:focus { outline: none; border-color: #967716; background: #fff; box-shadow: 0 0 0 2px rgba(150,119,22,.15); }
.shop-range-dash { color: #9ca3af; }
.shop-range-clear { align-self: flex-start; background: none; border: 0; padding: 2px 0; font: inherit; font-size: 12px; color: #967716; text-decoration: underline; cursor: pointer; }
.shop-range-clear[hidden] { display: none; }
@media (max-width: 655px) { .shop-range-input { font-size: 16px; height: 38px; } }
:where(html.is-compact) .shop-range-input { font-size: 16px; height: 38px; }
