.auriculo-search-wrapper {
    --auriculo-primary: #2563eb;
    --auriculo-button-text: #fff;
    --auriculo-hover: #1d4ed8;
    --auriculo-input-border: #d1d5db;
    --auriculo-result-bg: #fff;
    --auriculo-result-border: #e5e7eb;
    --auriculo-related-bg: #eff6ff;
    --auriculo-related-text: #1e40af;
    --auriculo-related-border: #bfdbfe;
    --auriculo-related-hover: #dbeafe;
    --auriculo-radius: 12px;
    --auriculo-max-width: 860px;
    --auriculo-image-max-width: 720px;
    width: 100%;
    max-width: var(--auriculo-max-width);
    margin: 0 auto;
    font-family: inherit;
    box-sizing: border-box;
}

.auriculo-search-wrapper *,
.auriculo-search-wrapper *::before,
.auriculo-search-wrapper *::after {
    box-sizing: border-box;
}

.auriculo-search-row {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.auriculo-search-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 50px;
    padding: 0 15px;
    border: 1px solid var(--auriculo-input-border);
    border-radius: var(--auriculo-radius);
    background: #fff;
    color: #111827;
    font: inherit;
    line-height: 1;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.auriculo-search-input:focus {
    border-color: var(--auriculo-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .14);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--auriculo-primary) 16%, transparent);
}

.auriculo-search-button {
    flex: 0 0 auto;
    min-width: 104px;
    height: 50px;
    padding: 0 16px;
    border: 0;
    border-radius: var(--auriculo-radius);
    background: var(--auriculo-primary);
    color: var(--auriculo-button-text);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: background-color .2s ease, transform .15s ease, opacity .2s ease;
}

.auriculo-search-button:hover,
.auriculo-search-button:focus-visible {
    background: var(--auriculo-hover);
    color: var(--auriculo-button-text);
    outline: 2px solid var(--auriculo-primary);
    outline-offset: 2px;
}

.auriculo-search-button:active { transform: translateY(1px); }
.auriculo-search-button:disabled { cursor: wait; opacity: .65; }
.auriculo-search-button svg { width: 19px; height: 19px; fill: currentColor; }

.auriculo-search-help {
    margin: 7px 2px 0;
    color: #7c8594;
    font-size: 12px;
    line-height: 1.55;
}

.auriculo-search-hints { margin-top: 8px; }
.auriculo-hints-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    padding: 1px 0 4px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.auriculo-hint-button {
    appearance: none;
    flex: 0 0 auto;
    min-height: 31px;
    padding: 4px 10px;
    border: 1px solid var(--auriculo-input-border);
    border-radius: 999px;
    background: #fff;
    color: #4b5563;
    font: inherit;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
}

.auriculo-hint-button:hover,
.auriculo-hint-button:focus-visible {
    border-color: var(--auriculo-primary);
    color: var(--auriculo-primary);
    outline: none;
}

.auriculo-search-status {
    min-height: 0;
    margin: 10px 2px 0;
    color: #6b7280;
    font-size: 13px;
}

.auriculo-search-status:empty { display: none; }

.auriculo-search-results {
    display: grid;
    gap: 16px;
    margin-top: 14px;
}

.auriculo-result-card {
    padding: 18px;
    border: 1px solid var(--auriculo-result-border);
    border-radius: var(--auriculo-radius);
    background: var(--auriculo-result-bg);
    box-shadow: 0 7px 24px rgba(15, 23, 42, .05);
}

.auriculo-result-title {
    margin: 0 0 14px;
    color: #111827;
    font-size: clamp(19px, 3vw, 27px);
    line-height: 1.5;
    text-align: center;
}

.auriculo-result-gallery {
    display: grid;
    gap: 12px;
    justify-items: center;
}

.auriculo-result-image-link {
    display: block;
    width: 100%;
    max-width: var(--auriculo-image-max-width);
    border-radius: max(0px, calc(var(--auriculo-radius) - 2px));
    overflow: hidden;
    background: #f8fafc;
}

.auriculo-result-image { display: block; width: 100%; height: auto; margin: 0; }
.auriculo-result-description { margin-top: 16px; color: #374151; line-height: 2; }
.auriculo-result-description > :first-child { margin-top: 0; }
.auriculo-result-description > :last-child { margin-bottom: 0; }

.auriculo-search-wrapper.is-loading .auriculo-search-status::before {
    content: '';
    display: inline-block;
    width: 13px;
    height: 13px;
    margin-left: 6px;
    border: 2px solid #d1d5db;
    border-top-color: var(--auriculo-primary);
    border-radius: 50%;
    vertical-align: -2px;
    animation: auriculo-spin .7s linear infinite;
}

@keyframes auriculo-spin { to { transform: rotate(360deg); } }

/* Full-width accordion browser. Main categories, subcategories and items stay stacked; only related items use horizontal chips. */
.auriculo-category-browser {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #edf0f4;
}

.auriculo-browser-heading { margin-bottom: 10px; }
.auriculo-browser-title {
    margin: 0;
    color: #1f2937;
    font-size: 14px;
    line-height: 1.6;
}

.auriculo-browser-navigation { display: none !important; }
.auriculo-browser-view { min-height: 40px; }

.auriculo-browser-focus-bar {
    margin-bottom: 8px;
}

.auriculo-browser-focus-bar[hidden] { display: none !important; }

.auriculo-browser-back {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 5px 10px;
    border: 1px solid #e3e7ed;
    border-radius: 999px;
    background: #fff;
    color: #4b5563;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.auriculo-browser-back:hover,
.auriculo-browser-back:focus-visible {
    border-color: var(--auriculo-primary);
    color: var(--auriculo-primary);
    outline: none;
}

.auriculo-browser-back-arrow {
    color: var(--auriculo-primary);
    font-size: 15px;
    line-height: 1;
}

.auriculo-category-browser.is-root-focused .auriculo-browser-heading {
    display: none;
}

.auriculo-browser-tree.is-root-focused > .auriculo-browser-node.is-root:not(.is-focused-root) {
    display: none;
}

.auriculo-browser-tree.is-root-focused > .auriculo-browser-node.is-focused-root {
    animation: auriculo-focus-root .16s ease-out;
}

@keyframes auriculo-focus-root {
    from { opacity: .55; transform: translateY(3px); }
    to { opacity: 1; transform: translateY(0); }
}
.auriculo-browser-tree,
.auriculo-browser-children,
.auriculo-browser-item-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    width: 100%;
}

.auriculo-browser-node {
    width: 100%;
    min-width: 0;
}

.auriculo-browser-category {
    appearance: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-width: 0;
    min-height: 52px;
    padding: 11px 14px;
    border: 1px solid #e3e7ed;
    border-radius: 11px;
    background: #fff;
    color: #1f2937;
    font: inherit;
    text-align: right;
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.auriculo-browser-node.is-root > .auriculo-browser-category {
    min-height: 58px;
    padding: 13px 15px;
    border-color: color-mix(in srgb, var(--auriculo-primary) 18%, #e3e7ed);
    background: color-mix(in srgb, var(--auriculo-primary) 4%, #fff);
}

.auriculo-browser-category:hover,
.auriculo-browser-category:focus-visible,
.auriculo-browser-node.is-open > .auriculo-browser-category {
    border-color: var(--auriculo-primary);
    background: color-mix(in srgb, var(--auriculo-primary) 7%, #fff);
    box-shadow: 0 3px 12px rgba(15, 23, 42, .04);
    outline: none;
}

.auriculo-browser-category-text {
    min-width: 0;
    flex: 1 1 auto;
}

.auriculo-browser-category-text strong {
    display: block;
    overflow: visible;
    color: inherit;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.55;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
}

.auriculo-browser-node.is-root > .auriculo-browser-category .auriculo-browser-category-text strong {
    font-size: 16px;
    font-weight: 800;
}

.auriculo-browser-arrow {
    flex: 0 0 auto;
    color: var(--auriculo-primary);
    font-size: 19px;
    line-height: 1;
    transform: rotate(0deg);
    transition: transform .18s ease;
}

.auriculo-browser-category[aria-expanded="true"] .auriculo-browser-arrow {
    transform: rotate(180deg);
}

.auriculo-browser-panel {
    width: 100%;
    padding: 8px 12px 2px;
}

.auriculo-browser-panel[hidden] { display: none !important; }
.auriculo-browser-children { gap: 7px; }

.auriculo-browser-node.is-child > .auriculo-browser-category {
    min-height: 48px;
    padding: 10px 13px;
    border-color: #e7eaf0;
    background: #fff;
}

.auriculo-browser-node.is-child > .auriculo-browser-category .auriculo-browser-category-text strong {
    font-size: 14px;
    font-weight: 700;
}

.auriculo-browser-item-list {
    gap: 7px;
    margin-top: 7px;
}

.auriculo-browser-item {
    appearance: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 9px 13px;
    border: 1px solid #edf0f4;
    border-radius: 10px;
    background: #fff;
    color: #374151;
    font: inherit;
    text-align: right;
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.auriculo-browser-item:hover,
.auriculo-browser-item:focus-visible,
.auriculo-browser-item.is-active {
    border-color: var(--auriculo-primary);
    background: color-mix(in srgb, var(--auriculo-primary) 6%, #fff);
    color: var(--auriculo-primary);
    outline: none;
}

.auriculo-browser-item-title {
    display: block;
    min-width: 0;
    overflow: visible;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
}

.auriculo-browser-item-arrow {
    flex: 0 0 auto;
    color: var(--auriculo-primary);
    font-size: 15px;
}

.auriculo-browser-empty {
    width: 100%;
    padding: 10px 12px;
    border: 1px dashed #e5e7eb;
    border-radius: 10px;
    color: #8b94a3;
    font-size: 12px;
    text-align: center;
}

.auriculo-browser-data { display: none !important; }

/* Google-like one-line related chips with horizontal scrolling. */
.auriculo-related {
    margin-top: 13px;
    padding: 0;
    border: 0;
    background: transparent;
}

.auriculo-related[hidden] { display: none !important; }
.auriculo-related-title {
    margin-bottom: 7px;
    color: #4b5563;
    font-size: 13px;
    font-weight: 700;
}

.auriculo-related-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 7px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1px 0 6px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.auriculo-related-button {
    appearance: none;
    flex: 0 0 auto;
    width: max-content;
    max-width: none;
    min-height: 35px;
    padding: 6px 12px;
    border: 1px solid var(--auriculo-related-border);
    border-radius: 999px;
    background: #fff;
    color: var(--auriculo-related-text);
    font: inherit;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    scroll-snap-align: start;
    transition: background-color .18s ease, border-color .18s ease;
}

.auriculo-related-button:hover,
.auriculo-related-button:focus-visible {
    border-color: var(--auriculo-primary);
    background: var(--auriculo-related-hover);
    color: var(--auriculo-related-text);
    outline: none;
}

.auriculo-related-name {
    display: block;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.auriculo-search-wrapper[aria-busy="true"] .auriculo-search-input { cursor: progress; }

@media (max-width: 600px) {
    .auriculo-search-row { gap: 6px; }

    .auriculo-search-input {
        height: 46px;
        padding: 0 12px;
        border-radius: 10px;
        font-size: 14px;
    }

    .auriculo-search-button {
        flex: 0 0 46px;
        width: 46px;
        min-width: 46px;
        height: 46px;
        padding: 0;
        border-radius: 10px;
    }

    .auriculo-search-button span { display: none; }
    .auriculo-search-button svg { width: 20px; height: 20px; }

    .auriculo-category-browser { margin-top: 14px; padding-top: 11px; }
    .auriculo-browser-focus-bar { margin-bottom: 7px; }
    .auriculo-browser-back { min-height: 32px; padding: 5px 9px; font-size: 11px; }
    .auriculo-browser-tree { gap: 7px; }
    .auriculo-browser-node.is-root > .auriculo-browser-category { min-height: 56px; padding: 11px 13px; }
    .auriculo-browser-node.is-root > .auriculo-browser-category .auriculo-browser-category-text strong { font-size: 15px; }
    .auriculo-browser-panel { padding: 7px 8px 1px; }
    .auriculo-browser-node.is-child > .auriculo-browser-category { min-height: 46px; padding: 9px 11px; }
    .auriculo-browser-item { min-height: 43px; padding: 9px 11px; }

    .auriculo-result-card { padding: 13px; }

    .auriculo-related-list {
        margin-inline: -1px;
        padding-bottom: 7px;
    }
}


@media (prefers-reduced-motion: reduce) {
    .auriculo-search-wrapper *,
    .auriculo-search-wrapper *::before,
    .auriculo-search-wrapper *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

.auriculo-category-browser[hidden]{display:none!important}

/* Very simple visual guide shown after license activation. */
.auriculo-use-guide {
    margin-bottom: 14px;
    padding: 14px;
    border: 1px solid #ead7e8;
    border-radius: 14px;
    background: #fffafd;
}

.auriculo-use-guide-head {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 10px;
}

.auriculo-use-guide-head > span {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #f7e9f6;
    font-size: 18px;
}

.auriculo-use-guide-head strong,
.auriculo-use-guide-head small,
.auriculo-use-guide-options strong,
.auriculo-use-guide-options small {
    display: block;
}

.auriculo-use-guide-head strong { color: #2d2230; font-size: 14px; }
.auriculo-use-guide-head small { margin-top: 2px; color: #727985; font-size: 11px; }

.auriculo-use-guide-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.auriculo-use-guide-options > div {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 56px;
    padding: 9px;
    border: 1px solid #ececf0;
    border-radius: 11px;
    background: #fff;
}

.auriculo-use-guide-options b {
    flex: 0 0 29px;
    width: 29px;
    height: 29px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--auriculo-primary);
    color: #fff;
    font-size: 12px;
}

.auriculo-use-guide-options strong { color: #333740; font-size: 12px; }
.auriculo-use-guide-options small { margin-top: 2px; color: #747b87; font-size: 10px; line-height: 1.55; }

@media (max-width: 600px) {
    .auriculo-use-guide { padding: 11px; }
    .auriculo-use-guide-options { grid-template-columns: 1fr; }
}


/* Free preview / locked catalog mode. */
.auriculo-preview-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding: 13px 14px;
    border: 1px solid #f1d29a;
    border-radius: 14px;
    background: linear-gradient(135deg, #fffaf0, #fff);
    box-shadow: 0 6px 20px rgba(120, 83, 20, .06);
}

.auriculo-preview-banner-icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #fff0c9;
    font-size: 21px;
}

.auriculo-preview-banner-copy { flex: 1 1 auto; min-width: 0; }
.auriculo-preview-banner-copy strong,
.auriculo-preview-banner-copy span { display: block; }
.auriculo-preview-banner-copy strong { color: #593b00; font-size: 14px; }
.auriculo-preview-banner-copy span { margin-top: 3px; color: #7a6540; font-size: 11px; line-height: 1.7; }

.auriculo-preview-show-free,
.auriculo-preview-unlock,
.auriculo-result-unlock {
    appearance: none;
    min-height: 40px;
    padding: 8px 13px;
    border: 0;
    border-radius: 10px;
    background: var(--auriculo-primary);
    color: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}


.auriculo-preview-show-free {
    border: 1px solid #b9dfc7;
    background: #effbf3;
    color: #176b39;
}

.auriculo-preview-show-free:hover,
.auriculo-preview-show-free:focus-visible {
    border-color: #63b982;
    background: #e4f8eb;
    outline: none;
}

.auriculo-free-view[hidden] { display: none !important; }
.auriculo-free-view {
    padding: 12px;
    border: 1px solid #cce8d5;
    border-radius: 14px;
    background: linear-gradient(145deg, #f5fcf7, #fff);
}

.auriculo-free-view-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.auriculo-free-view-head strong,
.auriculo-free-view-head small { display: block; }
.auriculo-free-view-head strong { color: #175f34; font-size: 15px; }
.auriculo-free-view-head small { margin-top: 3px; color: #5e7767; font-size: 11px; }

.auriculo-free-back {
    appearance: none;
    flex: 0 0 auto;
    min-height: 36px;
    padding: 7px 11px;
    border: 1px solid #d7dde4;
    border-radius: 999px;
    background: #fff;
    color: #4b5563;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.auriculo-free-back:hover,
.auriculo-free-back:focus-visible {
    border-color: var(--auriculo-primary);
    color: var(--auriculo-primary);
    outline: none;
}

.auriculo-free-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
}

.auriculo-free-list .auriculo-browser-item {
    border-color: #cfead8;
    background: #fff;
}

.auriculo-browser-free-items {
    margin-top: 0;
    margin-bottom: 2px;
    padding: 7px;
    border: 1px solid #d6eddd;
    border-radius: 12px;
    background: #f5fcf7;
}

.auriculo-browser-free-items .auriculo-browser-item {
    border-color: #cce8d5;
}

.auriculo-browser-item.is-locked {
    position: relative;
    border-color: #e4e6eb;
    background: linear-gradient(90deg, #f7f7f8, #fbfbfc);
    color: #8a8f99;
}

.auriculo-browser-item.is-locked::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(255, 255, 255, .18);
    pointer-events: none;
}

.auriculo-browser-item.is-locked:hover,
.auriculo-browser-item.is-locked:focus-visible {
    border-color: #c9cdd5;
    background: #f4f5f7;
    color: #666d78;
}

.auriculo-browser-item-lock {
    position: relative;
    z-index: 1;
    flex: 0 0 29px;
    width: 29px;
    height: 29px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e6e8ec;
    font-size: 13px;
}

.auriculo-browser-item-free {
    flex: 0 0 auto;
    padding: 3px 8px;
    border-radius: 999px;
    background: #e8f8ee;
    color: #187640;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.auriculo-result-card-locked {
    min-height: 210px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(145deg, #fafafa, #f1f2f5);
    border-style: dashed;
}

.auriculo-result-card-locked .auriculo-result-title { margin-bottom: 7px; }
.auriculo-result-card-locked p { max-width: 430px; margin: 0 0 14px; color: #747b87; font-size: 12px; line-height: 1.8; }
.auriculo-result-lock {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin-bottom: 10px;
    border-radius: 50%;
    background: #e4e6eb;
    font-size: 25px;
}

.auriculo-related-button.is-locked {
    border-color: #dedfe4;
    background: #f5f5f6;
    color: #777d87;
}
.auriculo-related-lock { margin-right: 5px; font-size: 10px; }

.auriculo-preview-license-panel {
    position: relative;
    margin-top: 18px;
    padding-top: 10px;
    border-top: 2px solid color-mix(in srgb, var(--auriculo-primary) 18%, #e5e7eb);
}
.auriculo-preview-license-panel[hidden] { display: none !important; }
.auriculo-preview-license-close {
    appearance: none;
    position: sticky;
    top: 10px;
    z-index: 3;
    margin: 0 0 5px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid #e2e4e8;
    border-radius: 50%;
    background: #fff;
    color: #555b65;
    font: inherit;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .08);
}

@media (max-width: 600px) {
    .auriculo-preview-banner { align-items: flex-start; flex-wrap: wrap; padding: 11px; }
    .auriculo-preview-banner-icon { flex-basis: 38px; width: 38px; height: 38px; }
    .auriculo-preview-banner-copy { width: calc(100% - 52px); }
    .auriculo-preview-show-free,
    .auriculo-preview-unlock { width: 100%; min-height: 43px; }
    .auriculo-result-unlock { width: 100%; }
    .auriculo-free-view-head { align-items: stretch; flex-direction: column; }
    .auriculo-free-back { width: 100%; }
}
