﻿:root {
    --ce-header-height: 7.25rem;
    --ce-sticky-offset: calc(var(--ce-header-height) + 0.5rem);
    --ce-mobile-base-width: 390px;
    --ce-mobile-min-width: 360px;
    --ce-mobile-max-width: 430px;
    --ce-mobile-breakpoint: 900px;
    --ce-mobile-page-gutter: clamp(14px, 4vw, 20px);
    --ce-mobile-bottom-nav-height: 78px;
}

.ce-mobile-only {
    display: none !important;
}

.ce-mobile-shell {
    width: 100%;
}

@media (max-width: 900px) {
    .ce-mobile-shell {
        width: min(100%, var(--ce-mobile-max-width));
        margin-left: auto;
        margin-right: auto;
        padding-left: var(--ce-mobile-page-gutter);
        padding-right: var(--ce-mobile-page-gutter);
    }

    .ce-mobile-only {
        display: block !important;
    }

    .ce-desktop-only {
        display: none !important;
    }
}

@media (min-width: 901px) {
    .ce-desktop-only {
        display: block !important;
    }
}

body::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-track {
    background: #0a0f1a;
}

body::-webkit-scrollbar-thumb {
    background-color: #d4a853;
    border-radius: 20px;
}

@media (max-width: 1024px) {
    .logo-main {
        height: 240px;
    }
}

@media (max-width: 768px) {
    .logo-main {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .logo-main {
        height: 160px;
    }
}

.ce-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(9, 16, 29, 0.96), rgba(9, 16, 29, 0.92));
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.ce-util-bar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.015);
}

.ce-util-inner {
    max-width: 1400px;
    margin: 0 auto;
    min-height: 38px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.ce-util-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.ce-user-greeting {
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.60);
}

.ce-inline-form {
    display: inline;
    margin: 0;
}

.ce-util-link,
.ce-util-button {
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: color 0.18s ease;
}

    .ce-util-link:hover,
    .ce-util-button:hover {
        color: #ffffff;
    }

.ce-util-link-accent {
    color: #d4a853;
}

.ce-nav-shell {
    background: linear-gradient(to bottom, rgba(16, 24, 40, 0.95), rgba(11, 18, 32, 0.95));
}

.ce-nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    min-height: 76px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
}

.ce-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.ce-brand-logo {
    display: block;
    height: 42px;
    width: auto;
    max-width: 100%;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.28));
}

.ce-mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

    .ce-mobile-toggle span {
        display: block;
        width: 18px;
        height: 2px;
        background: rgba(255, 255, 255, 0.86);
        border-radius: 2px;
    }

.ce-nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.ce-nav-link,
.ce-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.82);
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

    .ce-nav-link:hover,
    .ce-dropdown-toggle:hover {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.06);
    }

.ce-nav-link-highlight {
    color: #d4a853;
    background: rgba(212, 168, 83, 0.08);
    border-color: rgba(212, 168, 83, 0.16);
}

    .ce-nav-link-highlight:hover {
        color: #e8c97a;
        background: rgba(212, 168, 83, 0.12);
        border-color: rgba(212, 168, 83, 0.22);
    }

.ce-caret {
    font-size: 0.76rem;
    opacity: 0.8;
}

.ce-dropdown {
    position: relative;
}

.ce-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 220px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(12, 19, 34, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.32);
    display: none;
    z-index: 1200;
}

.ce-dropdown:hover .ce-dropdown-menu,
.ce-dropdown:focus-within .ce-dropdown-menu {
    display: block;
}

.ce-dropdown-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
    transition: background 0.18s ease, color 0.18s ease;
}

    .ce-dropdown-menu a:hover {
        background: rgba(255, 255, 255, 0.05);
        color: #ffffff;
    }

.ce-signin-btn {
    height: 34px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid rgba(212, 168, 83, 0.20);
    background: rgba(212, 168, 83, 0.10);
    color: #d4a853;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

    .ce-signin-btn:hover {
        background: rgba(212, 168, 83, 0.16);
        border-color: rgba(212, 168, 83, 0.32);
        color: #e8c97a;
    }

@media (max-width: 980px) {
    .ce-nav-inner {
        grid-template-columns: auto auto;
        justify-content: space-between;
    }

    .ce-mobile-toggle {
        display: inline-flex;
    }

    .ce-nav-links {
        display: none;
        grid-column: 1 / -1;
        width: 100%;
        padding: 12px 0 16px;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 8px;
    }

        .ce-nav-links.open {
            display: flex;
        }

    .ce-nav-link,
    .ce-dropdown-toggle {
        justify-content: space-between;
        width: 100%;
    }

    .ce-dropdown {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .ce-dropdown-menu {
        position: static;
        display: block;
        min-width: 0;
        margin-top: 8px;
        padding: 8px;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.05);
        box-shadow: none;
    }
}

@media (max-width: 900px) {
    .ce-util-inner,
    .ce-nav-inner {
        padding-left: 14px;
        padding-right: 14px;
    }

    .ce-brand-logo {
        height: 36px;
    }

    .ce-user-greeting {
        display: none;
    }

    body {
        padding-bottom: calc(var(--ce-mobile-bottom-nav-height) + env(safe-area-inset-bottom, 0px) + 8px);
    }

    footer {
        margin-bottom: 72px;
    }

    .ce-site-footer {
        margin-top: 2rem !important;
    }

    .ce-site-footer-inner {
        padding-top: 1rem !important;
        padding-bottom: 5.25rem !important;
    }

    .ce-site-footer-inner > .grid {
        display: block;
    }

    .ce-site-footer-brand p:first-child {
        margin-bottom: 0.25rem;
        font-size: 0.95rem;
    }

    .ce-site-footer-brand p:last-child {
        display: none;
    }

    .ce-site-footer-section {
        display: none;
    }

    .ce-site-footer-copy {
        margin-top: 0.75rem !important;
        padding-top: 0.75rem !important;
        font-size: 0.75rem !important;
    }

    .binder-tablet-menu {
        display: none;
    }

    .binder-global-search {
        display: none;
    }

    #inventory-top > .ce-classic-view,
    #inventory-top > .ce-binder-view,
    #wishlist-top > .ce-classic-view,
    #wishlist-top > .ce-binder-view {
        display: none !important;
    }

    body:has(.ce-mobile-set-experience),
    body:has(.ce-mobile-inventory-experience) {
        overscroll-behavior-y: none;
        padding-bottom: 0;
    }

    body:has(.ce-mobile-set-experience) .ce-site-footer,
    body:has(.ce-mobile-inventory-experience) .ce-site-footer {
        display: none;
    }

    .binder-backdrop:has(.ce-mobile-set-experience),
    .binder-backdrop:has(.ce-mobile-inventory-experience) {
        min-height: calc(100dvh - var(--ce-header-height, 63px));
        overflow: hidden;
        padding-bottom: 0;
        background-attachment: scroll;
    }

    .ce-mobile-set-experience,
    .ce-mobile-inventory-experience {
        display: flex !important;
        flex-direction: column;
        gap: clamp(5px, 0.9vh, 8px);
        height: var(--ce-collector-root-height, calc(100dvh - 156px));
        max-height: var(--ce-collector-root-height, calc(100dvh - 156px));
        overflow: hidden;
        touch-action: pan-x;
    }

    .ce-mobile-card-carousel {
        flex: 1 1 auto;
        height: var(--ce-collector-carousel-height, auto) !important;
        min-height: 0;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        overscroll-behavior: contain;
        touch-action: pan-x;
        padding-bottom: 0 !important;
    }

    .ce-mobile-card-page {
        height: 100% !important;
        grid-template-rows: minmax(0, 1fr) !important;
        gap: clamp(5px, 0.9vh, 10px) !important;
    }

    .ce-mobile-card {
        height: 100%;
        padding: clamp(3px, 0.7vh, 5px) !important;
    }

    .ce-mobile-card-art {
        flex: 1 1 auto !important;
        height: auto !important;
        min-height: 0 !important;
        margin: clamp(2px, 0.55vh, 5px) !important;
        aspect-ratio: auto !important;
        touch-action: manipulation;
    }

    .ce-mobile-card-info {
        flex: 0 0 auto;
        margin-top: clamp(1px, 0.35vh, 3px) !important;
        padding: clamp(4px, 0.85vh, 7px) !important;
    }

    .ce-mobile-card-info h2 {
        font-size: clamp(0.68rem, 1.55vh, 0.84rem) !important;
        line-height: 1.08 !important;
    }

    .ce-mobile-card-info p,
    .ce-mobile-card-number {
        font-size: clamp(0.54rem, 1.2vh, 0.66rem) !important;
    }

    .ce-mobile-card-parallel,
    .ce-mobile-card-editor,
    .ce-mobile-price-row {
        flex: 0 0 auto;
        margin-top: clamp(2px, 0.55vh, 5px) !important;
    }

    .ce-mobile-card-editor button,
    .ce-mobile-card-parallel button,
    .ce-mobile-card-editor input,
    .ce-mobile-qty,
    .ce-mobile-price {
        min-height: 30px;
        touch-action: manipulation;
    }

    .ce-mobile-pager-strip {
        flex: 0 0 auto;
        min-height: 18px;
        margin-top: 0 !important;
    }

    body.ce-mobile-sheet-open {
        overflow: hidden !important;
        overscroll-behavior: none;
    }

    .ce-mobile-sheet[aria-hidden="false"] {
        display: block !important;
        position: fixed;
        inset: 0;
        z-index: 1200;
        pointer-events: none;
    }

    .ce-mobile-sheet[aria-hidden="false"] .ce-mobile-sheet-backdrop {
        position: fixed !important;
        inset: 0 !important;
        z-index: 1200 !important;
        pointer-events: auto;
    }

    .ce-mobile-sheet[aria-hidden="false"] .ce-mobile-sheet-panel {
        position: fixed !important;
        left: 50% !important;
        right: auto !important;
        top: max(70px, env(safe-area-inset-top, 0px) + 64px) !important;
        bottom: calc(var(--ce-mobile-bottom-nav-height) + env(safe-area-inset-bottom, 0px) + 14px) !important;
        width: min(calc(100vw - 20px), var(--ce-mobile-max-width)) !important;
        max-width: var(--ce-mobile-max-width) !important;
        max-height: none !important;
        transform: translateX(-50%) !important;
        z-index: 1201 !important;
        display: grid !important;
        grid-template-rows: minmax(0, 1fr) auto auto;
        gap: clamp(8px, 1.3vh, 12px);
        overflow: hidden !important;
        border: 1px solid rgba(212, 168, 83, 0.22) !important;
        border-radius: 24px !important;
        padding: clamp(10px, 1.7vh, 14px) clamp(12px, 3vw, 18px) !important;
        pointer-events: auto;
    }

    .ce-mobile-sheet[aria-hidden="false"] .ce-mobile-sheet-grabber {
        display: none !important;
    }

    .ce-mobile-sheet[aria-hidden="false"] .ce-mobile-sheet-card {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: minmax(0, 1fr) auto !important;
        gap: clamp(7px, 1.2vh, 11px) !important;
        align-items: stretch !important;
        min-height: 0;
        text-align: center;
    }

    .ce-mobile-sheet[aria-hidden="false"] .ce-mobile-sheet-art-wrap {
        position: relative;
        width: min(100%, 320px) !important;
        max-width: min(100%, 320px) !important;
        min-height: 0;
        margin: 0 auto !important;
    }

    .ce-mobile-sheet[aria-hidden="false"] .ce-mobile-sheet-art {
        width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        aspect-ratio: 2.5 / 3.5;
    }

    .ce-mobile-sheet[aria-hidden="false"] .ce-mobile-sheet-art img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
    }

    .ce-mobile-sheet[aria-hidden="false"] .ce-mobile-sheet-titleline {
        justify-content: center;
        margin: 0;
        font-size: clamp(1rem, 2.5vh, 1.25rem) !important;
        line-height: 1.1;
    }

    .ce-mobile-sheet[aria-hidden="false"] #mobileSheetSubtitle {
        margin: 2px 0 0;
        font-size: clamp(0.72rem, 1.6vh, 0.85rem);
    }

    .ce-mobile-sheet[aria-hidden="false"] .ce-mobile-sheet-parallel-select {
        min-height: 36px;
        margin-top: clamp(5px, 0.9vh, 8px);
    }

    .ce-mobile-sheet[aria-hidden="false"] .ce-mobile-sheet-counts {
        display: grid !important;
        gap: clamp(7px, 1.2vh, 10px) !important;
        margin-top: 0 !important;
    }

    .ce-mobile-sheet[aria-hidden="false"] .ce-mobile-sheet-counter {
        min-height: clamp(52px, 8vh, 62px) !important;
        padding: clamp(7px, 1.1vh, 10px) clamp(10px, 2.4vw, 14px) !important;
    }

    .ce-mobile-sheet[aria-hidden="false"] .ce-mobile-sheet-counter button {
        width: clamp(38px, 7vh, 44px) !important;
        height: clamp(38px, 7vh, 44px) !important;
        touch-action: manipulation;
    }

    .ce-mobile-sheet[aria-hidden="false"] .ce-mobile-sheet-done {
        min-height: clamp(46px, 7vh, 54px) !important;
        margin-top: 0 !important;
    }

    .ce-mobile-sheet[aria-hidden="false"] .ce-mobile-sheet-price-row,
    .ce-mobile-sheet[aria-hidden="false"] .ce-mobile-sheet-note-link {
        margin-top: 0 !important;
    }

    .cd2-card-frame {
        height: min(62vh, 430px) !important;
        min-height: 360px !important;
        max-width: 320px !important;
        margin: 0 auto !important;
    }

    .cd2-card-detail-table-wrap {
        overflow-x: visible !important;
    }

    .cd2-table,
    .cd2-table tbody,
    .cd2-table tr,
    .cd2-table td {
        display: block;
        width: 100%;
    }

    .cd2-table thead {
        display: none;
    }

    .cd2-table tr {
        margin: 0 16px 12px;
        padding: 12px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 14px;
        background: rgba(3, 7, 14, 0.34);
    }

    .cd2-table td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 9px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    .cd2-table td:first-child {
        display: block;
        padding-top: 0;
        border-top: none;
    }

    .cd2-table td::before {
        content: attr(data-label);
        color: rgba(255, 255, 255, 0.55);
        font-size: 0.68rem;
        font-weight: 900;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .cd2-table td:first-child::before {
        content: none;
    }

    .cd2-input {
        min-height: 44px;
        width: 88px;
        text-align: center;
    }
}

.ce-mobile-bottom-nav {
    display: none;
}

@media (max-width: 900px) {
    .ce-mobile-bottom-nav {
        position: fixed;
        left: 50%;
        right: auto;
        bottom: calc(8px + env(safe-area-inset-bottom, 0px));
        width: min(calc(100vw - 20px), var(--ce-mobile-max-width));
        transform: translateX(-50%);
        z-index: 1100;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 5px;
        padding: 7px;
        border: 1px solid rgba(212, 168, 83, 0.2);
        border-radius: 22px;
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(5, 9, 16, 0.96));
        box-shadow: 0 18px 44px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.06);
        backdrop-filter: blur(18px);
    }

    .ce-mobile-bottom-nav-item {
        display: flex;
        min-height: 48px;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 2px;
        border-radius: 16px;
        color: rgba(255, 255, 255, 0.7);
        font-size: 0.64rem;
        font-weight: 800;
        text-decoration: none;
        white-space: nowrap;
    }

    .ce-mobile-bottom-nav-item.is-active {
        color: #f4cf80;
        background: linear-gradient(135deg, rgba(212, 168, 83, 0.22), rgba(212, 168, 83, 0.08));
        box-shadow: inset 0 0 0 1px rgba(212, 168, 83, 0.18);
    }

    .ce-mobile-bottom-nav-icon {
        font-size: 0.95rem;
        line-height: 1;
    }

    .ce-mobile-bottom-nav-item.ce-mobile-bottom-nav-btn {
        border: none;
        background: none;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        font-family: inherit;
    }

    .ce-mobile-bottom-nav-item.ce-mobile-bottom-nav-btn:active {
        opacity: 0.75;
    }

    /* Binder submenu group */
    .ce-mobile-binder-group {
        position: relative;
    }

    .ce-mobile-binder-submenu {
        display: none;
        position: absolute;
        bottom: calc(100% + 8px);
        left: 50%;
        transform: translateX(-50%);
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(5, 9, 16, 0.98));
        border: 1px solid rgba(212, 168, 83, 0.25);
        border-radius: 14px;
        padding: 6px;
        min-width: 160px;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
        z-index: 1150;
        backdrop-filter: blur(18px);
    }

    .ce-mobile-binder-submenu.is-open {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .ce-mobile-binder-submenu-link {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 14px;
        border-radius: 10px;
        color: rgba(255, 255, 255, 0.8);
        font-size: 0.78rem;
        font-weight: 700;
        text-decoration: none;
        white-space: nowrap;
        transition: background 0.15s, color 0.15s;
    }

    .ce-mobile-binder-submenu-link:active {
        background: rgba(212, 168, 83, 0.15);
        color: #f4cf80;
    }

    .ce-mobile-binder-submenu-icon {
        font-size: 0.9rem;
        line-height: 1;
    }
}

/* ============================================================
   Mobile Toolbox Bottom Sheet
   ============================================================ */

.ce-toolbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.ce-toolbox-overlay.is-open {
    display: block;
    opacity: 1;
}

.ce-toolbox-sheet {
    position: fixed;
    left: 50%;
    bottom: calc(var(--ce-mobile-bottom-nav-height) + env(safe-area-inset-bottom, 0px));
    z-index: 1210;
    width: min(calc(100vw - 16px), 480px);
    max-height: calc(100dvh - var(--ce-header-height) - var(--ce-mobile-bottom-nav-height) - 24px);
    transform: translateX(-50%) translateY(calc(100% + var(--ce-mobile-bottom-nav-height) + env(safe-area-inset-bottom, 0px)));
    border: 1px solid rgba(212, 168, 83, 0.2);
    border-bottom: none;
    border-radius: 20px 20px 0 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(7, 11, 18, 0.99));
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    overflow-y: auto;
    overscroll-behavior: contain;
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

.ce-toolbox-sheet.is-open {
    transform: translateX(-50%) translateY(0);
}

.ce-toolbox-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px 8px;
    position: sticky;
    top: 0;
    background: rgba(15, 23, 42, 0.98);
    z-index: 1;
}

.ce-toolbox-sheet-handle {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.2);
}

.ce-toolbox-sheet-title {
    color: #f4cf80;
    font-size: 0.92rem;
    font-weight: 900;
}

.ce-toolbox-sheet-close {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(212, 168, 83, 0.35);
    border-radius: 8px;
    background: rgba(212, 168, 83, 0.1);
    color: #f4cf80;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.ce-toolbox-sheet-close:hover,
.ce-toolbox-sheet-close:focus-visible {
    background: rgba(212, 168, 83, 0.25);
    border-color: rgba(212, 168, 83, 0.6);
}

.ce-toolbox-sheet-body {
    padding: 8px 18px calc(20px + env(safe-area-inset-bottom, 0px));
}

.ce-toolbox-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

@media (min-width: 400px) {
    .ce-toolbox-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.ce-toolbox-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.ce-toolbox-tile:hover,
.ce-toolbox-tile:focus-visible {
    border-color: rgba(212, 168, 83, 0.35);
    background: rgba(212, 168, 83, 0.06);
}

.ce-toolbox-tile-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(212, 168, 83, 0.12);
    color: #d4a853;
    font-size: 1.15rem;
    font-weight: 950;
}

.ce-toolbox-tile-name {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.68rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
}

.ce-toolbox-empty {
    text-align: center;
    padding: 28px 12px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.82rem;
}

.ce-toolbox-widget-view {
    display: none;
}

.ce-toolbox-widget-view.is-active {
    display: block;
}

.ce-toolbox-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: none;
    background: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    padding: 4px 0;
    margin-bottom: 10px;
    -webkit-tap-highlight-color: transparent;
}

.ce-toolbox-back:hover {
    color: #f4cf80;
}

.ce-toolbox-widget-content {
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 14px;
    background:
        radial-gradient(circle at 18% 10%, rgba(212, 168, 83, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(17, 24, 39, 0.72), rgba(7, 11, 18, 0.54));
    padding: 16px;
}
