:root { color-scheme: light; }
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, Arial, sans-serif; background: #f1f5f9; color: #0f172a; }
.container { max-width: 1440px; margin: 0 auto; padding: 0 16px; }
.topbar { background: #0b1220; color: #fff; position: sticky; top: 0; z-index: 120; border-bottom: 1px solid #1f2937; overflow: visible; }
.topbar-inner { display: grid; gap: 10px; padding: 12px 0; }
.topbar-main { display: grid; grid-template-columns: auto minmax(300px, 1fr) auto; align-items: center; gap: 14px; }
.brand-row { display: flex; align-items: center; gap: 10px; }
.brand-row-auth { display: flex; align-items: center; gap: 10px; }
.brand { display: inline-flex; align-items: center; color: #fff; text-decoration: none; }
.brand-logo { height: 53px; width: auto; display: block; }
.category-menu { position: relative; }
.category-menu summary {
    list-style: none;
    cursor: pointer;
    font-size: 13px;
    color: #cbd5e1;
    border: 1px solid #334155;
    border-radius: 999px;
    padding: 7px 12px;
    white-space: nowrap;
    background: #0f172a;
}
.category-menu summary::-webkit-details-marker { display: none; }
.category-menu-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: min(980px, calc(100vw - 24px));
    max-height: min(78vh, 760px);
    overflow-y: auto;
    overflow-x: hidden;
    background: #fff;
    border: 1px solid #dbe3ee;
    border-radius: 14px;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.1);
    padding: 14px;
    z-index: 260;
}
.category-menu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 18px; }
.category-menu-group { min-width: 0; }
.category-menu-group-title {
    display: block;
    color: #0f172a;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 8px;
}
.category-menu-group-title:hover { color: #1d4ed8; }
.category-menu-group-links { display: grid; gap: 6px; }
.category-menu-group-links a { color: #475569; text-decoration: none; font-size: 13px; }
.category-menu-group-links a:hover { color: #1d4ed8; }
.category-group-more {
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.category-group-more summary {
    list-style: none;
    cursor: pointer;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 600;
    display: inline;
    padding: 0;
    margin: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    text-decoration: none;
}
.category-group-more summary::-webkit-details-marker { display: none; }
.category-group-more[open] summary { display: none; }
.category-group-more-links {
    margin-top: 6px;
    display: grid;
    gap: 6px;
    width: 100%;
    text-align: left;
}
.category-group-more-links a { color: #475569; text-decoration: none; font-size: 13px; }
.category-group-more-links a:hover { color: #1d4ed8; }
.category-group-more-collapse {
    margin-top: 4px;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 600;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
    align-self: flex-start;
}
.category-menu-footer { margin-top: 12px; padding-top: 10px; border-top: 1px solid #e2e8f0; }
.category-menu-footer a { color: #1d4ed8; text-decoration: none; font-size: 13px; font-weight: 600; }
.nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.topbar-links { display: flex; align-items: center; gap: 12px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }
.topbar-links-wrap { position: relative; overflow: visible; margin-bottom: 6px; }
.nav-link { color: #cbd5e1; text-decoration: none; font-size: 14px; }
.nav-link:hover { color: #fff; }
.nav-user-wrap { display:flex; align-items:center; gap:8px; }
.nav-user-wrap:hover .nav-user { color: #fff; }
.nav-user { color: #e2e8f0; font-size: 14px; }
.nav-user-logo {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid #334155;
    background: #0f172a;
}
.nav-user-initial {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid #334155;
    background: #1e293b;
    color: #f8fafc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}
.badge { background:#ef4444;color:#fff;border-radius:999px;padding:2px 7px;font-size:11px;font-weight:700; }
.badge-info { background:#2563eb; }
.search-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
}
.search-inline-wrap {
    width: min(620px, 100%);
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    flex-wrap: nowrap;
    min-width: 0;
}
.search-inline-advanced { margin-top: 0; position: relative; flex: 0 0 auto; }
.search-inline-advanced summary {
    list-style: none;
    cursor: pointer;
    color: #94a3b8;
    font-size: 13px;
    text-decoration: underline;
    display: inline;
    white-space: nowrap;
}
.search-inline-advanced summary::-webkit-details-marker { display: none; }
.search-inline-advanced-body {
    margin-top: 0;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(520px, calc(100vw - 24px));
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 10px;
    z-index: 260;
}
.search-inline-advanced-body .row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.search-inline-advanced-body label { color: #cbd5e1; margin-bottom: 4px; font-size: 12px; }
.search-inline-advanced-body input,
.search-inline-advanced-body select {
    background: #0b1220;
    color: #f8fafc;
    border-color: #334155;
    padding: 9px 10px;
}
#top_category_search_dropdown {
    background: #0b1220;
    border: 1px solid #334155;
    border-radius: 10px;
    box-shadow: 0 10px 18px rgba(2, 6, 23, 0.45);
}
#top_category_search_no_results { color: #94a3b8; }
.top-category-search-wrap { position:relative; }
.top-category-search-dropdown {
    display:none;
    position:absolute;
    top:calc(100% + 4px);
    left:0;
    right:0;
    max-height:240px;
    overflow:auto;
    z-index:50;
    padding:6px;
}
.top-category-search-no-results { display:none;padding:8px; }
.top-category-select-hidden { display:none; }
.top-specs-fields {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
    grid-column:1 / -1;
}
.top-spec-warning { color:#b45309; }
.top-category-option {
    width: 100%;
    text-align: left;
    margin-bottom: 4px;
    border: 1px solid #334155;
    background: #0f172a;
    color: #e2e8f0;
}
.top-category-option:hover {
    border-color: #60a5fa;
    background: #1e293b;
    color: #fff;
}
.top-category-option-child {
    margin-left: 14px;
    width: calc(100% - 14px);
    border-color: #2b3a52;
    color: #cbd5e1;
}
.top-category-group-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: #94a3b8;
    margin: 8px 6px 4px;
}
.search-inline-advanced-actions { margin-top: 8px; display:flex; gap:8px; flex-wrap:wrap; }
.search-input-wrap { position: relative; flex: 1 1 auto; min-width: 0; }
.search-input { width: 100%; border: 1px solid #334155; background: #0f172a; color: #f8fafc; border-radius: 999px; padding: 11px 14px; }
.search-input-wrap .search-input { padding-right: 38px; }
.search-input::placeholder { color: #94a3b8; }
.search-clear-btn {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 999px;
    background: #1e293b;
    color: #cbd5e1;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.search-clear-btn.is-visible { display: inline-flex; }
.search-clear-btn:hover { background: #334155; color: #fff; }
.search-btn { border-radius: 999px; padding: 10px 14px; border: 0; background: #f59e0b; color: #111827; font-weight: 700; cursor: pointer; }
.topbar-actions { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.btn-logout {
    background: #0b1220;
    color: #e2e8f0;
    border: 1px solid #334155;
    border-radius: 999px;
    padding: 8px 12px;
}
.btn-logout:hover {
    color: #fff;
    border-color: #475569;
    background: #0f172a;
}
.locale-select {
    width: auto;
    min-width: 112px;
    max-width: 150px;
    padding: 8px 30px 8px 10px;
    border-radius: 10px;
    border: 0;
    background: #0f172a;
    color: #f8fafc;
    font-size: 13px;
}
.card { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 16px; }
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.btn { border: 0; border-radius: 10px; padding: 10px 14px; cursor: pointer; text-decoration: none; display: inline-block; font-weight: 600; }
.btn-primary { background: #2563eb; color: #fff; }
.btn-primary:hover { background: #1d4ed8; }
.btn-danger { background: #dc2626; color: #fff; }
.btn-muted { background: #e2e8f0; color: #0f172a; }
.btn-nav { background: #f59e0b; color: #111827; border-radius: 10px; padding: 8px 12px; text-decoration: none; font-size: 14px; font-weight: 700; }
.btn-nav:hover { background: #fbbf24; }
.btn-nav-secondary { background: #fff; color: #0f172a; border-radius: 10px; padding: 8px 12px; text-decoration: none; font-size: 14px; }
input, select, textarea { width: 100%; padding: 11px 12px; border: 1px solid #cbd5e1; border-radius: 10px; box-sizing: border-box; }
label { display: block; margin-bottom: 6px; font-size: 14px; color: #334155; }
.row { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.text-sm { font-size: 13px; color: #64748b; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px; border-bottom: 1px solid #e2e8f0; text-align: left; }
.flash { padding: 12px 14px; border-radius: 10px; background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.errors { padding: 12px 14px; border-radius: 10px; background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.toast-stack {
    position: fixed;
    top: 82px;
    right: 16px;
    display: grid;
    gap: 10px;
    width: min(420px, calc(100vw - 24px));
    z-index: 300;
}
.toast {
    border-radius: 10px;
    border: 1px solid;
    padding: 12px 44px 12px 14px;
    position: relative;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.1);
    opacity: 1;
    transition: opacity .2s ease, transform .2s ease;
}
.toast-success {
    background: #dcfce7;
    color: #166534;
    border-color: #86efac;
}
.toast-error {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fca5a5;
}
.toast-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(15, 23, 42, 0.15);
    border-radius: 999px;
    background: #fff;
    color: inherit;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.toast-hidden {
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
}
.toast-error-list { margin:0;padding-left:18px; }
.inline { display: inline; }
.page { padding-top: 20px; padding-bottom: 44px; }
.chip-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0 6px; }
.chip { background: #fff; border: 1px solid #dbe3ee; border-radius: 999px; padding: 8px 12px; font-size: 13px; color: #334155; text-decoration: none; }
.chip:hover { border-color: #93c5fd; color: #1d4ed8; }
.chip-more { position: relative; }
.chip-more summary {
    list-style: none;
    cursor: pointer;
    background: #fff;
    border: 1px solid #dbe3ee;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
    color: #334155;
    white-space: nowrap;
}
.chip-more summary::-webkit-details-marker { display: none; }
.chip-more-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 180px;
    background: #fff;
    border: 1px solid #dbe3ee;
    border-radius: 10px;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.1);
    padding: 6px;
    display: grid;
    gap: 2px;
    z-index: 130;
}
.chip-more-menu a {
    color: #334155;
    text-decoration: none;
    font-size: 13px;
    padding: 8px 10px;
    border-radius: 8px;
    white-space: nowrap;
}
.chip-more-menu a:hover { background: #f1f5f9; }
.footer { background: #0b1220; color: #94a3b8; padding: 24px 0; font-size: 13px; }
.footer .container { text-align: center; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin-bottom: 14px; }
.footer-top a { color: #cbd5e1; text-decoration: none; transition: color .15s; font-size: 15px; }
.footer-top a:hover { color: #fff; text-decoration: underline; }
.footer-top .footer-icon { margin-right: 5px; font-size: 17px; }
.footer-copy { color: #64748b; }
.cookie-consent { position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999; background: #1e293b; border-top: 2px solid #3b82f6; padding: 16px 0; box-shadow: 0 -4px 24px rgba(0,0,0,.35); }
.cookie-consent-inner { max-width: 960px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.cookie-consent-text { flex: 1; color: #e2e8f0; font-size: 14px; line-height: 1.5; margin: 0; }
.cookie-consent-text a { color: #93c5fd; text-decoration: underline; }
.cookie-consent-categories { display: flex; gap: 12px; flex-wrap: wrap; margin: 10px 0 4px; }
.cookie-cat { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #cbd5e1; flex-wrap: wrap; }
.cookie-cat strong { color: #f1f5f9; }
.cookie-cat-badge { font-size: 11px; padding: 2px 8px; border-radius: 999px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; }
.cookie-cat-on { background: #166534; color: #bbf7d0; }
.cookie-cat-optional { background: #854d0e; color: #fef08a; }
.cookie-cat-desc { font-size: 12px; color: #94a3b8; width: 100%; margin-top: 2px; }
.cookie-consent-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-consent-btn { white-space: nowrap; font-size: 13px; padding: 8px 18px; }
.atp-chatbot {
    position: fixed;
    right: 22px;
    bottom: 22px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    z-index: 10018;
    pointer-events: none;
}
.atp-chatbot.is-open { z-index: 10025; }
.atp-chatbot.is-cookie-visible { bottom: 114px; }
.atp-chatbot-trigger {
    pointer-events: auto;
    border: 0;
    border-radius: 999px;
    height: 42px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    background: #1e293b;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 14px 22px rgba(2, 6, 23, 0.32);
    cursor: pointer;
}
.atp-chatbot-trigger:hover { background: #1e293b; }
.atp-chatbot-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);
    width: min(390px, calc(100vw - 28px));
    height: min(66vh, 560px);
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 16px;
    box-shadow: 0 22px 38px rgba(15, 23, 42, 0.2);
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(14px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.atp-chatbot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
}
.atp-chatbot-header h3 { margin: 0; font-size: 16px; color: #111827; }
.atp-chatbot-close {
    border: 0;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    color: #111827;
    cursor: pointer;
}
.atp-chatbot-messages {
    padding: 12px;
    overflow: auto;
    background: #fff;
    display: grid;
    gap: 10px;
    align-content: start;
}
.atp-chatbot-message {
    max-width: 88%;
    padding: 9px 11px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.45;
    white-space: pre-wrap;
}
.atp-chatbot-message-assistant { justify-self: start; background: #f3f4f6; color: #111827; }
.atp-chatbot-message-user { justify-self: end; background: #1d4ed8; color: #fff; }
.atp-chatbot-areas {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 12px;
    border-top: 1px solid #e5e7eb;
    background: #f8fafc;
}
.atp-chatbot-area-btn {
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #fff;
    color: #334155;
    font-size: 12px;
    padding: 5px 10px;
    cursor: pointer;
}
.atp-chatbot-area-btn:hover {
    border-color: #94a3b8;
    background: #f1f5f9;
}
.atp-chatbot-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 10px 12px 12px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
}
.atp-chatbot-form input {
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 9px 10px;
    font-size: 14px;
}
.atp-chatbot-form button {
    border: 0;
    border-radius: 10px;
    padding: 9px 12px;
    background: #1d4ed8;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.atp-chatbot-form button:disabled { opacity: 0.6; cursor: not-allowed; }
.atp-chatbot.is-open .atp-chatbot-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}
.atp-chatbot.is-open .atp-chatbot-trigger { display: none; }
.atp-assist {
    position: fixed;
    right: 22px;
    bottom: 69px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    z-index: 10020;
    pointer-events: none;
}
.atp-assist.is-cookie-visible { bottom: 161px; }
.atp-assist::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.22);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease;
    pointer-events: none;
}
.atp-assist-trigger {
    pointer-events: auto;
    border: 0;
    border-radius: 999px;
    height: 42px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    background: #2563eb;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 14px 24px rgba(37, 99, 235, 0.3);
    cursor: pointer;
}
.atp-assist-trigger:hover { background: #1d4ed8; }
.atp-assist-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 12px);
    width: min(420px, calc(100vw - 28px));
    max-height: min(78vh, 760px);
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 16px;
    box-shadow: 0 24px 36px rgba(15, 23, 42, 0.16);
    overflow: hidden;
    opacity: 0;
    transform: translateY(16px);
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    pointer-events: none;
}
.atp-assist-header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 16px 20px 14px;
    border-bottom: 1px solid #e5e7eb;
}
.atp-assist-header h2 {
    margin: 0;
    font-size: 38px;
    line-height: 1;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.6px;
}
.atp-assist-close {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    font-size: 30px;
    line-height: 1;
    color: #111827;
    cursor: pointer;
}
.atp-assist-body {
    padding: 20px 24px 24px;
    max-height: calc(min(78vh, 760px) - 70px);
    overflow: auto;
}
.atp-assist-section { margin-bottom: 24px; }
.atp-assist-section:last-child { margin-bottom: 0; }
.atp-assist-section h3 {
    margin: 0 0 8px;
    font-size: 36px;
    line-height: 1.06;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.6px;
}
.atp-assist-section p {
    margin: 0 0 14px;
    color: #1f2937;
    font-size: 14px;
    line-height: 1.5;
}
.atp-assist-btn-primary,
.atp-assist-btn-outline {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}
.atp-assist-btn-primary {
    background: #1e6be8;
    color: #fff;
    border: 1px solid #1e6be8;
}
.atp-assist-btn-primary:hover { background: #1d4ed8; }
.atp-assist-btn-outline {
    background: #fff;
    color: #1e6be8;
    border: 1px solid #1e6be8;
}
.atp-assist-btn-outline:hover {
    background: #eff6ff;
    border-color: #1d4ed8;
    color: #1d4ed8;
}
.atp-assist-note {
    margin: 12px 0 0;
    font-size: 14px;
    color: #111827;
}
.atp-assist-section-links h3 { margin-bottom: 10px; }
.atp-assist-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1e6be8;
    text-decoration: none;
    font-size: 17px;
    font-weight: 700;
    margin: 0 16px 8px 0;
}
.atp-assist-link:hover { color: #1d4ed8; }
.atp-assist-link-btn {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    font: inherit;
}
.atp-assist.is-open .atp-assist-trigger { display: none; }
.atp-assist.is-open::before {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.atp-assist.is-open .atp-assist-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}
.atp-feedback {
    position: fixed;
    inset: 0;
    z-index: 10030;
    display: grid;
    align-items: end;
}
.atp-feedback[hidden] { display: none !important; }
.atp-feedback-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.24);
}
.atp-feedback-panel {
    position: relative;
    width: min(430px, calc(100vw - 20px));
    margin: 0 auto 14px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    max-height: min(82vh, 880px);
    overflow: auto;
    box-shadow: 0 20px 36px rgba(15, 23, 42, 0.26);
}
.atp-feedback-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid #e5e7eb;
}
.atp-feedback-header h3 {
    margin: 0;
    text-align: center;
    font-size: 18px;
    line-height: 1.2;
}
.atp-feedback-icon-btn {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.atp-feedback-body { padding: 14px 16px 16px; }
.atp-feedback-lead {
    margin: 0 0 12px;
    font-size: 16px;
    line-height: 1.35;
    color: #111827;
    font-weight: 600;
}
.atp-feedback-stars {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
}
.atp-feedback-star {
    border: 0;
    background: transparent;
    color: #111827;
    font-size: 24px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}
.atp-feedback-star.is-active { color: #1f2937; }
.atp-feedback-field { margin-bottom: 14px; }
.atp-feedback-label {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}
.atp-feedback-label span {
    font-weight: 500;
    color: #6b7280;
    margin-left: 6px;
}
.atp-feedback-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #111827;
}
.atp-feedback-radio input { margin: 0; }
.atp-feedback-field textarea {
    width: 100%;
    border: 1px solid #9ca3af;
    border-radius: 10px;
    padding: 10px;
    resize: vertical;
    min-height: 118px;
    font-size: 14px;
    box-sizing: border-box;
}
.atp-feedback-counter {
    margin-top: 4px;
    text-align: right;
    color: #6b7280;
    font-size: 12px;
}
.atp-feedback-footnote {
    margin: 12px 0;
    font-size: 12px;
    color: #4b5563;
    line-height: 1.4;
}
.atp-feedback-footnote-tight {
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
}
.atp-feedback-footnote-tight a {
    color: #1d4ed8;
    text-decoration: underline;
}
.atp-feedback-submit {
    width: 100%;
    border: 0;
    border-radius: 999px;
    height: 42px;
    background: #2563eb;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}
.atp-feedback-submit:hover { background: #1d4ed8; }
.gdpr-section { margin-top: 24px; padding: 20px; border: 1px solid #e2e8f0; border-radius: 8px; background: #f8fafc; }
.gdpr-section-title { font-size: 16px; font-weight: 600; margin: 0 0 8px; }
.gdpr-section-text { font-size: 13px; color: #64748b; margin: 0 0 12px; line-height: 1.5; }
.gdpr-danger { border-color: #fecaca; background: #fef2f2; }
.gdpr-danger .gdpr-section-title { color: #dc2626; }
.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll table { min-width: 680px; }
.split-layout { display: grid; gap: 16px; align-items: start; }
.split-layout-main { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); }
.split-layout-balanced { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.mobile-only { display: none; }
.desktop-only { display: inline-flex; }

.order-head-actions { display:flex; gap:8px; flex-wrap:wrap; }
.order-panel .btn { min-height: 42px; }

.offer-actions { display:flex; gap:6px; }
.offer-message { max-width: 280px; white-space: normal; }

.thread-bubble { max-width: 70%; }

.register-shell { max-width: 1160px; margin: 0 auto; background: #fff; border-radius: 20px; overflow: hidden; border: 1px solid #e2e8f0; }
.register-grid { display: grid; grid-template-columns: 1.15fr 1fr; }
.register-media {
    min-height: 700px;
    background:
        radial-gradient(circle at 20% 15%, #93c5fd 0%, transparent 30%),
        radial-gradient(circle at 85% 15%, #fda4af 0%, transparent 28%),
        radial-gradient(circle at 40% 80%, #86efac 0%, transparent 30%),
        linear-gradient(160deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    position: relative;
    padding: 32px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.register-media-title { font-size: 32px; line-height: 1.1; margin: 0; font-weight: 800; letter-spacing: -0.5px; }
.register-media-text { margin-top: 10px; color: #e2e8f0; font-size: 14px; max-width: 460px; }
.register-pane { padding: 44px 42px; }
.register-title { margin: 0 0 18px; font-size: 40px; letter-spacing: -0.8px; }
.register-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    padding: 4px;
    margin-bottom: 16px;
}
.register-switch-btn {
    border: 0;
    border-radius: 999px;
    padding: 9px 12px;
    font-weight: 600;
    color: #475569;
    background: transparent;
    cursor: pointer;
    transition: all .15s ease;
}
.register-switch-btn.active { background: #0f172a; color: #fff; }
.register-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.register-form label { margin-top: 10px; }
.register-form input { border-radius: 10px; border-color: #cbd5e1; }
.register-submit { width: 100%; border-radius: 999px; padding: 12px 18px; margin-top: 16px; font-size: 15px; }
.register-note { margin-top: 12px; font-size: 12px; color: #64748b; line-height: 1.45; }
.register-gdpr-consent { margin-top: 16px; }
.register-consent-label { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: #475569; line-height: 1.5; cursor: pointer; }
.register-consent-label input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; }
.register-consent-label a { color: #3b82f6; text-decoration: underline; }
.register-alt { margin-top: 16px; text-align: center; color: #64748b; font-size: 13px; }
.register-links { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.register-link { border: 1px solid #cbd5e1; border-radius: 999px; padding: 8px 12px; color: #334155; text-decoration: none; font-size: 13px; }
.company-fields { margin-top: 10px; }

.login-shell { max-width: 520px; margin: 0 auto; }
.login-title { margin: 0 0 4px; font-size: 34px; letter-spacing: -0.6px; }
.login-subtitle { margin: 0; color: #64748b; font-size: 14px; }
.login-form input { border-radius: 10px; }
.login-error-box {
    padding: 10px 12px;
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
    border-radius: 10px;
    font-size: 13px;
}
.login-remember { display: flex; gap: 8px; align-items: center; }
.login-remember input { width: auto; }
.login-submit { width: 100%; border-radius: 999px; padding: 12px 18px; }
.login-divider { margin: 16px 0 10px; text-align: center; color: #64748b; font-size: 13px; }
.login-social { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.login-social-link { border: 1px solid #cbd5e1; border-radius: 999px; padding: 8px 12px; color: #334155; text-decoration: none; font-size: 13px; }
.login-register { margin-top: 14px; text-align: center; color: #64748b; font-size: 13px; }
.login-register a { color: #1d4ed8; text-decoration: none; font-weight: 600; }
.login-register a:hover { text-decoration: underline; }

.form-error-text { color:#b91c1c;font-size:12px; }

.home-hero { padding: 24px; background: linear-gradient(120deg, #0f172a, #1d4ed8); color: #fff; border: 0; }
.home-hero-title { margin: 0 0 8px; font-size: 34px; line-height: 1.15; }
.home-hero-text { margin: 0; color: #cbd5e1; max-width: 640px; }
.popular-categories-row { display:flex; gap:10px; flex-wrap:wrap; overflow-x:visible; }
.popular-categories-row .chip { white-space:nowrap; flex:0 0 auto; }
.popular-categories-select { display:none; }
.results-layout { display:block; }
.results-layout.has-sidebar { display:grid; grid-template-columns: 250px minmax(0, 1fr); gap:16px; align-items:start; }
.results-sidebar { position:sticky; top:12px; }
.results-main { min-width:0; }
.product-card { padding:0; overflow:hidden; display:flex; flex-direction:column; height:100%; }
.product-card-image { width:100%; height:170px; object-fit:cover; display:block; }
.product-card-body { padding:14px 14px 16px; display:flex; flex-direction:column; flex:1; }
.product-card-title { margin:8px 0 10px; min-height:46px; font-size:16px; line-height:1.2; display:-webkit-box; line-clamp:3; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.product-card-price { font-weight:800; font-size:22px; color:#0f172a; }
.recent-card-image { width:100%; height:130px; object-fit:cover; display:block; }
.recent-card-title { margin:6px 0 8px; font-size:14px; line-height:1.2; }
.facet-card { padding:12px; }
.facet-card h3 { margin:0 0 8px; font-size:16px; }
.facet-group { margin-bottom:10px; }
.facet-group summary { list-style:none; cursor:pointer; font-size:16px; margin-bottom:6px; color:#1f2937; font-weight:700; display:flex; align-items:center; justify-content:space-between; }
.facet-group summary::-webkit-details-marker { display:none; }
.facet-group summary::after { content:'▾'; color:#475569; font-size:12px; }
.facet-group:not([open]) summary::after { content:'▸'; }
.facet-options { border: 1px solid #d6dbe7; border-radius: 10px; padding: 6px; background: #fff; }
.facet-check { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:8px; margin:0; padding:5px 4px; border-radius: 6px; font-size: 13px; color:#1e293b; }
.facet-check:hover { background:#f8fafc; }
.facet-check input[type="checkbox"] { margin:0; }
.facet-check-label { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.facet-count { color:#64748b; font-size:12px; white-space:nowrap; }
.facet-search-wrap { margin-bottom: 6px; }
.facet-search-input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 13px;
}
.facet-option-extra { display:none; }
.facet-more-btn { margin-top:6px; border:0; background:transparent; color:#2563eb; font-size:13px; cursor:pointer; padding:0; }
.facet-more-btn:hover { text-decoration:underline; }

.listing-cover { width:100%;height:360px;object-fit:cover;display:block; }
.listing-title { margin:8px 0 14px; }

.home-hero-row { display:flex;gap:18px;justify-content:space-between;align-items:center;flex-wrap:wrap; }
.home-cta-btn { background:#f59e0b;color:#111827;font-weight:700; }
.section-title { margin:0 0 12px; }
.section-title-sm { margin:0 0 10px; }
.home-taxonomy-title { font-size:18px; line-height:1.3; font-weight:700; }
.facet-total-products { margin-bottom:8px;color:#64748b; }
.facet-actions { display:flex;gap:8px;flex-wrap:wrap; }
.results-header { display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap; }
.results-heading { margin:0; }
.product-card-auction { border:2px solid #93c5fd; }
.card-image-wrap { position:relative; }
.badge-auction {
    position:absolute;
    top:10px;
    left:10px;
    background:#1d4ed8;
    color:#fff;
    padding:4px 10px;
    border-radius:999px;
    font-size:12px;
    font-weight:700;
}
.badge-promoted {
    position:absolute;
    bottom:10px;
    left:10px;
    background:#f59e0b;
    color:#111827;
    padding:4px 10px;
    border-radius:999px;
    font-size:12px;
    font-weight:700;
}
.favorite-form { position:absolute;top:10px;right:10px; }
.favorite-btn {
    width:38px;
    height:38px;
    padding:0;
    border-radius:999px;
    font-size:18px;
    line-height:1;
    display:inline-flex;
    align-items:center;
    justify-content:center;
}
.favorite-btn-sm {
    width:34px;
    height:34px;
    padding:0;
    border-radius:999px;
    font-size:16px;
    line-height:1;
    display:inline-flex;
    align-items:center;
    justify-content:center;
}
.auction-live { font-weight:700;color:#1d4ed8; }
.auction-outbid { color:#b45309;font-weight:700; }
.person-logo-admin {
    width:28px;
    height:28px;
    border-radius:999px;
    object-fit:cover;
    border:1px solid #d1d5db;
}
.person-initial-admin {
    width:28px;
    height:28px;
    border-radius:999px;
    background:#f1f5f9;
    color:#334155;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-weight:700;
    font-size:12px;
    border:1px solid #d1d5db;
}
.seller-inline { display:flex;align-items:center;gap:7px; }
.seller-inline-spaced { margin-bottom:10px; }
.seller-logo-sm {
    width:20px;
    height:20px;
    border-radius:999px;
    object-fit:cover;
    border:1px solid #d1d5db;
}
.seller-initial-sm {
    width:20px;
    height:20px;
    border-radius:999px;
    background:#f1f5f9;
    color:#334155;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-weight:700;
    font-size:10px;
    border:1px solid #d1d5db;
}
.seller-verified { color:#166534; }
.product-card-footer { padding-top:12px;margin-top:auto; }
.pagination-row { display:flex;gap:8px;flex-wrap:wrap;justify-content:center; }
.pagination-ellipsis { pointer-events:none; }
.recent-card-body { padding:12px; }

.listing-main-card { padding:0; overflow:hidden; }
.listing-main-body { padding:18px; }
.listing-photo-grid { display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:8px;margin-bottom:14px; }
.listing-photo-thumb { width:100%;height:74px;object-fit:cover;border-radius:8px;border:1px solid #dbe3ee; }
.listing-photos-count { margin-bottom:10px; }
.listing-spec-box { margin-bottom:12px;padding:10px;border:1px solid #e2e8f0;border-radius:10px; }
.listing-spec-title { margin-bottom:8px;font-weight:700; }
.listing-spec-grid { display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:8px; }
.listing-description { margin:0;line-height:1.6;color:#334155; }
.listing-price { font-size:30px;font-weight:800;margin:4px 0 10px; }
.listing-box { padding:12px;border:1px solid #e2e8f0;border-radius:12px; }
.listing-alert { color:#b91c1c;font-weight:700; }
.seller-box-title { margin-bottom:8px; }
.seller-profile-row { display:flex;align-items:center;gap:10px; }
.seller-logo-lg {
    width:42px;
    height:42px;
    border-radius:999px;
    object-fit:cover;
    border:1px solid #d1d5db;
}
.seller-initial-lg {
    width:42px;
    height:42px;
    border-radius:999px;
    background:#f1f5f9;
    color:#334155;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-weight:700;
    font-size:14px;
    border:1px solid #d1d5db;
}
.seller-name { font-weight:700;line-height:1.2; }
.btn-full { width:100%;text-align:center; }
.form-label-strong { font-weight:600; }
.phone-value { font-weight:700;font-size:20px; }
.related-card { padding:0;overflow:hidden; }
.related-image { width:100%;height:150px;object-fit:cover;display:block; }
.related-body { padding:12px; }
.related-title { margin:6px 0 8px; }
.related-price { font-weight:700; }
.review-head { display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap; }
.review-comment { margin:8px 0 0; }

.order-header { display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap; }
.order-title { margin:0; }
.order-tracking-title { margin-top:0; }
.order-event { padding:10px 0;border-bottom:1px solid #e2e8f0; }
.order-event-title { font-weight:700; }
.order-status-value { font-size:24px;font-weight:800; }
.order-shipping-box { padding:10px;border:1px solid #e2e8f0;border-radius:10px; }
.order-shipping-name { font-weight:700; }
.order-dispute-box { padding:10px;border:1px solid #fca5a5;border-radius:10px;background:#fff1f2; }
.order-dispute-title { font-weight:700; }

.page-header-row { display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap; }
.page-header-row-wide { gap:12px; }
.page-title-reset { margin:0; }

.person-inline { display:flex;align-items:center;gap:8px; }
.person-logo-md {
    width:26px;
    height:26px;
    border-radius:999px;
    object-fit:cover;
    border:1px solid #d1d5db;
}
.person-initial-md {
    width:26px;
    height:26px;
    border-radius:999px;
    background:#f1f5f9;
    color:#334155;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-weight:700;
    font-size:11px;
    border:1px solid #d1d5db;
}

.favorite-card { padding:0;overflow:hidden; }
.favorite-image { width:100%;height:170px;object-fit:cover;display:block; }
.favorite-body { padding:14px; }
.favorite-title { margin:8px 0; }
.favorite-unavailable-text { color:#b91c1c;font-weight:700; }
.favorite-price { font-weight:800;font-size:22px; }
.btn-disabled { cursor:not-allowed; }

.notification-section-title { margin:0 0 8px; }
.notification-other-title { margin-bottom:8px; }
.notification-card-unread { border-color:#93c5fd; }
.notification-card-read { border-color:#e2e8f0; }
.notification-row { display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap; }
.notification-title { font-weight:700; }
.notification-actions { display:flex;gap:8px;align-items:center; }
.price-delta-up { color:#b91c1c;font-weight:700; }
.price-delta-down { color:#15803d;font-weight:700; }

.thread-card-scroll { max-height:520px;overflow:auto; }
.thread-message-row { display:flex;margin-bottom:10px; }
.thread-message-row-own { justify-content:flex-end; }
.thread-message-row-other { justify-content:flex-start; }
.thread-bubble-base { padding:10px 12px;border-radius:12px; }
.thread-bubble-own { background:#dbeafe; }
.thread-bubble-other { background:#f1f5f9; }
.thread-message-text { white-space:pre-wrap; }

.my-listing-thumb {
    width:72px;
    height:56px;
    object-fit:cover;
    border-radius:8px;
    border:1px solid #e2e8f0;
}

.checkout-card { max-width:860px; }
.checkout-listing-title { margin:6px 0 4px; }
.checkout-listing-price { font-size:26px;font-weight:800; }
.checkout-save-address {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}
.checkout-save-address input[type="checkbox"] {
    width: auto;
    margin-top: 2px;
    flex-shrink: 0;
}
.checkout-save-address span {
    line-height: 1.25;
}

.listing-form-shell { max-width:800px; }
.category-search-wrap { position:relative; }
.category-search-dropdown {
    display:none;
    position:absolute;
    top:calc(100% + 4px);
    left:0;
    right:0;
    max-height:240px;
    overflow:auto;
    z-index:50;
    padding:6px;
}
.category-search-no-results { display:none;padding:8px; }
.category-select-hidden { display:none; }
.listing-spec-label { margin-bottom:8px;display:block; }
.listing-photo-grid-edit {
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(150px,1fr));
    gap:10px;
}
.listing-photo-card { border:1px solid #e2e8f0;border-radius:12px;padding:8px; }
.listing-photo-card-image { width:100%;height:100px;object-fit:cover;border-radius:8px; }
.listing-photo-remove-label { display:flex;align-items:center;gap:8px;font-size:12px; }
.input-auto { width:auto; }

.account-shell { max-width:760px;margin:0 auto; }
.account-subtitle { margin-top:-4px; }
.account-field-narrow { max-width:320px; }
.account-location-row { max-width:640px; }
.account-section-title { font-weight:700;margin-bottom:8px; }
.account-company-logo {
    width:52px;
    height:52px;
    border-radius:999px;
    object-fit:cover;
    border:1px solid #d1d5db;
}

.company-fields-hidden { display:none; }

.blend-hard-light { mix-blend-mode: hard-light; }
.blend-plus-darker { mix-blend-mode: plus-darker; }

.invoice-body {
    font-family: Arial, sans-serif;
    color: #111827;
    margin: 0;
    padding: 24px;
    background: #fff;
}
.invoice-wrap { max-width: 920px; margin: 0 auto; }
.invoice-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.invoice-muted { color: #6b7280; font-size: 13px; }
.invoice-title { font-size: 28px; font-weight: 800; margin: 0; }
.card-min-width { min-width:260px; }
.text-strong { font-weight:700; }
.invoice-grid { display:grid;grid-template-columns:1fr 1fr;gap:12px; }
.card-notes { margin-top:14px; }
.invoice-table { width: 100%; border-collapse: collapse; margin-top: 14px; }
.invoice-table th,
.invoice-table td { border-bottom: 1px solid #e5e7eb; text-align: left; padding: 10px; }
.invoice-total { font-size: 24px; font-weight: 800; text-align: right; margin-top: 16px; }
.invoice-actions { margin-top: 18px; display: flex; gap: 8px; }
.btn-print { background: #2563eb; color: #fff; }
.btn-back { background: #e5e7eb; color: #111827; text-decoration: none; display: inline-block; }

.email-body { font-family:Arial,sans-serif;color:#111827;line-height:1.5; }
.email-title { margin:0 0 8px; }

@media print {
    .invoice-actions { display: none; }
    .invoice-body { padding: 0; }
    .invoice-wrap { max-width: 100%; }
}

.admin-shell {
    min-height: 100vh;
}
.admin-brand {
    font-weight: 800;
    letter-spacing: 0.2px;
}
.admin-content table {
    width: 100%;
}
.admin-content .btn-muted {
    border: 1px solid var(--bs-secondary-border-subtle);
    background: var(--bs-secondary-bg-subtle);
    color: var(--bs-emphasis-color);
}
.admin-content .btn-muted:hover {
    background: var(--bs-tertiary-bg);
}
.admin-content .card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.04);
}
.admin-metric-value {
    font-size: 26px;
    font-weight: 700;
}
.admin-form-inline { display:flex;gap:8px; }
.admin-form-inline-wrap { display:flex;gap:8px;flex-wrap:wrap; }
.admin-form-inline-wrap-center { display:flex;gap:8px;flex-wrap:wrap;align-items:center; }
.admin-actions-tight { display:flex;gap:6px;flex-wrap:wrap; }
.admin-gap-8 { gap:8px; }
.admin-gap-16-wrap { gap:16px;flex-wrap:wrap; }
.admin-checkbox-label { display:flex;align-items:center;gap:8px;margin-bottom:10px; }
.admin-status-badge { font-size:12px;text-transform:uppercase; }
.admin-text-strong { font-weight:700; }
.admin-table-col-36 { width:36%; }
.admin-table-col-35 { width:35%; }
.admin-table-col-32 { width:32%; }
.admin-input-min-260 { min-width:260px; }
.admin-categories-head { display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:10px; }
.admin-field-narrow { max-width: 240px; }
.admin-actions-row { display:flex;gap:8px;flex-wrap:wrap; }
.admin-details-summary { cursor:pointer; }
.admin-details-pre {
    white-space: pre-wrap;
    max-height: 180px;
    overflow: auto;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 8px;
    border-radius: 8px;
}
.admin-details-pre-lg { max-height: 220px; }
.admin-locale-select {
    width: auto;
    min-width: 118px;
    max-width: 170px;
    padding: 0.3rem 2rem 0.3rem 0.55rem;
    border-radius: 0.375rem;
    background-color: #212529;
    color: #f8f9fa;
    border: 1px solid #495057;
    font-size: 0.8rem;
}
body::before,
body::after {
    content: none !important;
    display: none !important;
}

@media (max-width: 1100px) {
    .results-layout.has-sidebar { grid-template-columns: 1fr; }
    .results-sidebar { position:static; }
}

@media (max-width: 980px) {
    .register-grid { grid-template-columns: 1fr; }
    .register-media { min-height: 300px; }
    .results-main .grid.grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .register-title { font-size: 32px; }
}

@media (max-width: 840px) {
    .container { padding: 0 14px; }
    .topbar .container,
    main.container,
    .footer .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    .topbar-main { grid-template-columns: 1fr; gap: 10px; }
    .brand-row { justify-content: space-between; flex-wrap: wrap; row-gap: 8px; }
    .brand-row-auth { gap: 8px; }
    .category-menu { order: 3; width: 100%; }
    .category-menu summary { display: inline-flex; }
    .category-menu-panel {
        position: static;
        width: 100%;
        margin-top: 8px;
        box-shadow: none;
    }
    .category-menu-grid { grid-template-columns: 1fr; gap: 10px; }
    .topbar-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
        width: 100%;
        gap: 8px;
    }
    .topbar-actions .btn,
    .topbar-actions .btn-nav,
    .topbar-actions .btn-nav-secondary { width: auto; white-space: nowrap; }
    .topbar-actions .inline { display: inline-flex; }
    .nav-user-wrap { max-width: 100%; }
    .nav-user { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
    .topbar-links {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        gap: 8px;
        padding-bottom: 2px;
    }
    .topbar-links .nav-link {
        white-space: nowrap;
        padding: 6px 10px;
        border: 1px solid #334155;
        border-radius: 999px;
        background: #0f172a;
    }
    .mobile-only { display: inline-flex; }
    .desktop-only { display: none; }
    .topbar-more {
        position: relative;
        color: #cbd5e1;
        font-size: 14px;
    }
    .topbar-more summary {
        list-style: none;
        cursor: pointer;
        padding: 6px 8px;
        border-radius: 999px;
        border: 1px solid #334155;
        background: #0f172a;
        white-space: nowrap;
    }
    .topbar-more summary::-webkit-details-marker { display: none; }
    .topbar-more[open] summary,
    .topbar-more summary:hover { color: #fff; }
    .topbar-more-menu {
        position: absolute;
        right: 0;
        top: calc(100% + 8px);
        min-width: 180px;
        background: #0f172a;
        border: 1px solid #334155;
        border-radius: 10px;
        box-shadow: 0 10px 18px rgba(15, 23, 42, 0.12);
        padding: 6px;
        display: grid;
        gap: 2px;
        z-index: 220;
    }
    .topbar-more-menu a {
        color: #cbd5e1;
        font-size: 13px;
        padding: 8px 10px;
        border-radius: 8px;
    }
    .topbar-more-menu a:hover { background: #1e293b; color: #fff; }
    .search-inline { width: 100%; }
    .search-inline-wrap { width: 100%; display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
    .search-inline { gap: 6px; }
    .search-input-wrap { min-width: 0; }
    .search-input { min-width: 0; }
    .search-btn { white-space: nowrap; }
    .search-inline-advanced { margin-top: 0; flex: 0 0 auto; }
    .search-inline-advanced-body { position: static; width: 100%; margin-top: 8px; }
    .search-inline-advanced-body .row { grid-template-columns: 1fr; }
    .row { grid-template-columns: 1fr; }
    .brand-logo { height: 45px; }
    .btn { width: 100%; text-align: center; }
    .inline .btn { width: auto; }
    .split-layout { grid-template-columns: 1fr; }
    .table-scroll table { min-width: 620px; }
    .toast-stack {
        top: 72px;
        right: 10px;
        width: calc(100vw - 20px);
    }
    .chip-row { flex-wrap: nowrap; gap: 8px; overflow: visible; }
    .chip-row .chip { white-space: nowrap; }

    .order-head-actions { width: 100%; }
    .order-head-actions .btn { width: 100%; }
    .order-panel select,
    .order-panel input,
    .order-panel textarea { font-size: 16px; }

    .offer-actions { flex-direction: column; }
    .offer-actions .btn { width: 100%; }
    .offer-message { max-width: 180px; }

    .thread-bubble { max-width: 88%; }

    .atp-assist {
        right: 12px;
        left: auto;
        bottom: 59px;
    }
    .atp-assist.is-cookie-visible { bottom: 217px; }
    .atp-assist-panel {
        width: min(420px, calc(100vw - 24px));
        max-height: min(76vh, 740px);
    }
    .atp-assist-header h2 { font-size: 34px; }
    .atp-assist-section h3 { font-size: 34px; }

    .atp-chatbot {
        left: auto;
        right: 12px;
        bottom: 12px;
    }
    .atp-chatbot.is-cookie-visible { bottom: 170px; }
    .atp-chatbot-panel { width: min(390px, calc(100vw - 24px)); }
    .atp-feedback-panel {
        width: calc(100vw - 20px);
        margin-bottom: 10px;
        max-height: calc(100vh - 20px);
    }
}

@media (max-width: 640px) {
    .register-pane { padding: 24px 18px; }
    .register-row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .container { padding: 0 14px; }
    .topbar .container,
    main.container,
    .footer .container {
        padding-left: 18px;
        padding-right: 18px;
    }
    .topbar-inner { gap: 8px; padding: 10px 0; }
    .topbar-main { gap: 8px; }
    .topbar-actions { gap: 6px; }
    .locale-select { min-width: 98px; max-width: 132px; padding: 7px 28px 7px 8px; }
    .category-menu summary { padding: 6px 10px; }
    .search-input { padding: 10px 12px; }
    .search-btn { padding: 9px 12px; }
    .nav-user { display: none; }
    .brand-row-auth { gap: 6px; }
    .page { padding-top: 14px; padding-bottom: 28px; }
    .card { padding: 14px; border-radius: 14px; }
    main h1 { font-size: 26px; line-height: 1.2; }
    main h2 { font-size: 22px; line-height: 1.25; }
    .btn { padding: 10px 12px; }
    .grid-3 { grid-template-columns: 1fr; gap: 12px; }
    .table-scroll table { min-width: 560px; }
    .toast-stack {
        top: 66px;
        width: calc(100vw - 20px);
    }
    th, td { padding: 8px; }

    .home-hero { display: none; }
    .home-hero { padding: 16px; }
    .home-hero-title { font-size: 28px; }
    .home-hero-text { font-size: 14px; }
    .popular-categories-row { display:none; }
    .popular-categories-select { display:block; }
    .results-layout { margin-top: 12px; }
    .results-main > section { gap: 6px; }
    .results-main > section .text-sm { width:100%; }
    .results-main .grid.grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .product-card-image { height: 126px; }
    .product-card-body { padding: 10px; }
    .product-card-title { font-size: 14px; margin: 6px 0 7px; min-height: 0; line-clamp:2; -webkit-line-clamp: 2; }
    .product-card-price { font-size: 16px; }
    .product-card .text-sm { font-size: 12px; }
    .product-card .btn { padding: 8px 10px; font-size: 14px; }
    .recent-card-image { height: 120px; }
    .recent-card-title { font-size: 13px; }
    .facet-card .btn { width: 100%; }

    .listing-cover { height: 240px; }
    .listing-title { margin: 8px 0 10px; font-size: 24px; line-height: 1.2; }
}

@media (max-width: 340px) {
    .container { padding: 0 12px; }
    .topbar .container,
    main.container,
    .footer .container {
        padding-left: 14px;
        padding-right: 14px;
    }
    .brand-logo { height: 40px; }
    main h1 { font-size: 23px; }
    main h2 { font-size: 20px; }
    .search-input { padding: 10px 12px; }
    .search-btn { padding: 9px 12px; }
    .table-scroll table { min-width: 500px; }

    .results-main .grid.grid-3 { grid-template-columns: 1fr; }
    .home-hero-title { font-size: 24px; }

    .listing-cover { height: 210px; }
    .listing-title { font-size: 22px; }
}

/* ── Documentation pages ─────────────────────────────────── */
.page-content { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start; }
.page-sidebar { position: sticky; top: 16px; }
.page-sidebar-title { font-size: 14px; font-weight: 600; margin-bottom: 8px; color: #1e293b; }
.page-sidebar-links { list-style: none; padding: 0; margin: 0; }
.page-sidebar-links li { margin-bottom: 2px; }
.page-sidebar-links a { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 6px; color: #475569; font-size: 13px; text-decoration: none; transition: background .12s, color .12s; }
.page-sidebar-links a:hover { background: #f1f5f9; color: #0f172a; }
.page-sidebar-links a.page-sidebar-link-active { background: #e0f2fe; color: #0369a1; font-weight: 600; }
.page-sidebar-icon { font-size: 15px; }
.page-body { padding: 24px 28px; }
.page-title { font-size: 24px; font-weight: 700; margin-bottom: 18px; color: #0f172a; border-bottom: 2px solid #e2e8f0; padding-bottom: 10px; }
.page-html { line-height: 1.7; color: #334155; font-size: 15px; }
.page-html h2 { font-size: 20px; font-weight: 700; color: #0f172a; margin: 28px 0 12px; }
.page-html h3 { font-size: 17px; font-weight: 600; color: #1e293b; margin: 22px 0 10px; }
.page-html p { margin-bottom: 14px; }
.page-html ul, .page-html ol { margin: 0 0 14px 22px; }
.page-html li { margin-bottom: 6px; }
.page-html strong { color: #0f172a; }
.page-html a { color: #2563eb; text-decoration: underline; }
.page-html a:hover { color: #1d4ed8; }
.page-html .info-box { background: #eff6ff; border-left: 4px solid #3b82f6; padding: 12px 16px; border-radius: 6px; margin: 16px 0; font-size: 14px; color: #1e40af; }
.page-html .warn-box { background: #fefce8; border-left: 4px solid #eab308; padding: 12px 16px; border-radius: 6px; margin: 16px 0; font-size: 14px; color: #854d0e; }
.page-html .step-number { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; background: #2563eb; color: #fff; border-radius: 50%; font-size: 14px; font-weight: 700; margin-right: 8px; flex-shrink: 0; }
.page-html .steps-list { list-style: none; margin-left: 0; padding: 0; }
.page-html .steps-list li { display: flex; align-items: flex-start; margin-bottom: 14px; }

@media (max-width: 768px) {
    .page-content { grid-template-columns: 1fr; }
    .page-sidebar { position: static; }
    .page-sidebar-links { display: flex; flex-wrap: wrap; gap: 4px; }
    .page-sidebar-links li { margin-bottom: 0; }
    .page-body { padding: 16px; }
    .page-title { font-size: 20px; }
}

