.whatthatmean-term {
    background: var(--whatthatmean-highlight-bg, transparent);
    border-bottom: 1px var(--whatthatmean-underline-style, none) var(--whatthatmean-underline-color, currentColor);
    border-radius: 4px;
    color: var(--whatthatmean-marked-text-color, var(--whatthatmean-term-color, inherit));
    cursor: help;
    display: inline;
    padding: 0 .04em;
    position: relative;
    text-decoration: none;
    text-underline-offset: .16em;
    transition: background-color .12s ease, color .12s ease, opacity .12s ease;
}

.whatthatmean-term::after {
    align-items: center;
    border: 1px solid var(--whatthatmean-indicator-color, #4EA3FF);
    border-radius: 999px;
    box-sizing: border-box;
    color: var(--whatthatmean-indicator-color, #4EA3FF);
    content: '?';
    display: var(--whatthatmean-indicator-display, inline-flex);
    font-size: .58em;
    font-weight: 700;
    height: 1.15em;
    justify-content: center;
    line-height: 1;
    margin-left: .18em;
    opacity: .62;
    transform: translateY(-.34em);
    vertical-align: baseline;
    width: 1.15em;
}


.whatthatmean-term:hover,
.whatthatmean-term.is-active {
    background: var(--whatthatmean-hover-bg, rgba(30, 115, 255, .10));
    color: var(--whatthatmean-marked-active-text-color, var(--whatthatmean-marked-text-color, var(--whatthatmean-term-color, inherit)));
    opacity: .96;
}

.whatthatmean-term:hover::after,
.whatthatmean-term.is-active::after {
    opacity: .9;
}


.whatthatmean-term:focus {
    outline: 2px solid var(--whatthatmean-underline-color, currentColor);
    outline-offset: 2px;
}

.whatthatmean-floating-popup {
    background: var(--whatthatmean-popup-bg, #F7FAFF);
    border: 1px solid var(--whatthatmean-popup-border, rgba(0,0,0,.16));
    border-radius: var(--whatthatmean-popup-radius, 12px);
    box-shadow: var(--whatthatmean-popup-shadow, 0 14px 34px rgba(15, 23, 42, .18));
    box-sizing: border-box;
    color: var(--whatthatmean-popup-text, #061B3A);
    display: block;
    font-size: 14px;
    left: 0;
    line-height: 1.55;
    max-width: min(var(--whatthatmean-popup-width, 340px), calc(100vw - 20px));
    opacity: 0;
    padding: var(--whatthatmean-popup-padding, 14px);
    pointer-events: none;
    position: absolute;
    text-align: left;
    top: 0;
    transform: translateY(4px);
    transition: opacity .12s ease, transform .12s ease;
    visibility: hidden;
    white-space: normal;
    width: max-content;
    z-index: 999999;
}

.whatthatmean-floating-popup.is-visible {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.whatthatmean-popup-header {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.whatthatmean-popup-title {
    color: var(--whatthatmean-popup-title, #061B3A);
    display: block;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
}

.whatthatmean-popup-icon {
    align-items: center;
    color: var(--whatthatmean-header-icon-color, #061B3A);
    display: inline-flex;
    flex: 0 0 auto;
    height: var(--whatthatmean-header-icon-size, 18px);
    justify-content: center;
    line-height: 1;
    width: var(--whatthatmean-header-icon-size, 18px);
}

.whatthatmean-popup-icon svg {
    display: block;
    height: 100%;
    width: 100%;
}

.whatthatmean-popup-icon svg path {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.whatthatmean-popup-icon-open_book svg path:first-child,
.whatthatmean-popup-icon-open_book svg path:nth-child(2),
.whatthatmean-popup-icon-closed_book svg path:first-child,
.whatthatmean-popup-icon-bookmark_book svg path:first-child,
.whatthatmean-popup-icon-book_stack svg path:nth-child(-n+3) {
    fill: color-mix(in srgb, currentColor 8%, transparent);
}

.whatthatmean-popup-header-left {
    justify-content: flex-start;
}

.whatthatmean-popup-header-right {
    justify-content: space-between;
}

.whatthatmean-popup-header-no-icon {
    justify-content: flex-start;
}

.whatthatmean-popup-divider {
    background: var(--whatthatmean-popup-divider, #4EA3FF);
    height: 1px;
    margin: 9px 0 10px;
    width: 100%;
}

.whatthatmean-popup-body {
    padding-right: 0;
}

.whatthatmean-popup-logo {
    display: none !important;
}

.whatthatmean-floating-popup::before {
    background: var(--whatthatmean-popup-bg, #F7FAFF);
    border-left: 1px solid var(--whatthatmean-popup-border, rgba(0,0,0,.16));
    border-top: 1px solid var(--whatthatmean-popup-border, rgba(0,0,0,.16));
    content: "";
    height: 10px;
    left: 50%;
    position: absolute;
    top: -6px;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
}

.whatthatmean-floating-popup.is-above::before {
    border: 0;
    border-bottom: 1px solid var(--whatthatmean-popup-border, rgba(0,0,0,.16));
    border-right: 1px solid var(--whatthatmean-popup-border, rgba(0,0,0,.16));
    bottom: -6px;
    top: auto;
}

.whatthatmean-list-search,
.whatthatmean-live-search {
    border: 1px solid #4EA3FF;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 16px;
    margin-bottom: 16px;
    max-width: 520px;
    padding: 10px 12px;
    width: 100%;
}

.whatthatmean-list-item,
.whatthatmean-result {
    border: 1px solid #eaecf0;
    border-radius: 10px;
    margin-bottom: 12px;
    padding: 14px 16px;
}

.whatthatmean-list-item h3,
.whatthatmean-result h3 {
    margin-top: 0;
}

.whatthatmean-synonyms,
.whatthatmean-empty {
    color: #667085;
}

.whatthatmean-synonyms {
    font-size: .95em;
    margin-bottom: 0;
}

@media (hover: none) {
    .whatthatmean-term {
        cursor: pointer;
    }
}

.whatthatmean-popup-logo {
    display: flex !important;
    justify-content: flex-end;
    margin-top: 10px;
}

.whatthatmean-popup-logo img {
    border-radius: 6px;
    display: block;
    height: var(--whatthatmean-logo-size, 26px);
    object-fit: cover;
    opacity: .82;
    width: var(--whatthatmean-logo-size, 26px);
}

.whatthatmean-admin-head {
    align-items: center;
    display: flex;
    gap: 16px;
    margin-bottom: 18px;
}

.whatthatmean-admin-head img {
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .12);
    height: 74px;
    width: 74px;
}

.whatthatmean-admin-head h1 {
    margin-bottom: 4px;
}

.whatthatmean-admin-page .whatthatmean-admin-card {
    background: #F7FAFF;
    border: 1px solid #4EA3FF;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .06);
    margin: 0 0 16px;
    max-width: 980px;
    padding: 18px 20px;
}

.whatthatmean-admin-page .whatthatmean-admin-card h2 {
    color: #061B3A;
    margin-top: 0;
}

.whatthatmean-admin-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    max-width: 1100px;
}

.whatthatmean-admin-grid .whatthatmean-admin-card {
    margin: 0;
}

.whatthatmean-admin-page code {
    background: #fff;
    border: 1px solid #4EA3FF;
    border-radius: 6px;
    color: #061B3A;
    padding: 3px 6px;
}

.wtm-doc-box {
    background: #F7FAFF;
    border: 1px solid #4EA3FF;
    border-radius: 16px;
    box-sizing: border-box;
    color: #061B3A;
    margin: 0 0 18px;
    padding: 20px 22px;
}

.wtm-doc-box h1,
.wtm-doc-box h2,
.wtm-doc-box h3 {
    color: #061B3A;
    margin-top: 0;
}

.wtm-doc-box code {
    background: #ffffff;
    border: 1px solid #4EA3FF;
    border-radius: 6px;
    color: #061B3A;
    padding: 3px 6px;
}

.wtm-doc-header {
    text-align: center;
}

.wtm-doc-logo img {
    box-shadow: 0 10px 28px rgba(15, 23, 42, .12);
}

/* WhatThatMean 4.0 Design-Erweiterungen */
.whatthatmean-term::after {
    content: var(--whatthatmean-indicator-symbol, '?');
    font-size: calc(var(--whatthatmean-indicator-size, 14px) * .72);
    height: var(--whatthatmean-indicator-size, 14px);
    margin-left: .2em;
    order: var(--whatthatmean-indicator-order, 0);
    transform: var(--whatthatmean-indicator-transform, translateY(-.34em));
    width: var(--whatthatmean-indicator-size, 14px);
}
.whatthatmean-term {
    align-items: baseline;
    gap: .05em;
}
.whatthatmean-floating-popup {
    border-width: var(--whatthatmean-popup-border-style, 1px);
    font-family: var(--whatthatmean-font-family, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif);
    font-size: var(--whatthatmean-body-font-size, 14px);
    line-height: var(--whatthatmean-body-line-height, 1.55);
    transform: var(--whatthatmean-animation-shift, translateY(4px));
}
.whatthatmean-floating-popup.is-visible {
    transform: translateY(0) scale(1);
}
.whatthatmean-popup-title {
    font-size: var(--whatthatmean-title-font-size, 15px);
    font-weight: var(--whatthatmean-title-font-weight, 700);
}
.whatthatmean-popup-body a {
    color: var(--whatthatmean-popup-link, #1E73FF);
}
.whatthatmean-popup-logo {
    align-items: center;
    gap: 7px;
}
.whatthatmean-popup-logo span {
    color: var(--whatthatmean-popup-text, #061B3A);
    font-size: 11px;
    opacity: .68;
}
.whatthatmean-design-layout {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) 360px;
    max-width: 1400px;
}
.whatthatmean-design-main details summary {
    cursor: pointer;
    font-size: 15px;
}
.whatthatmean-design-main .form-table th {
    width: 190px;
}
.whatthatmean-design-preview {
    position: sticky;
    top: 46px;
    align-self: start;
}
.whatthatmean-design-preview .wtm-preview-popup {
    margin-top: 18px;
    width: 100%;
    max-width: 320px;
}
@media (max-width: 1100px) {
    .whatthatmean-design-layout { grid-template-columns: 1fr; }
    .whatthatmean-design-preview { position: static; }
}
@media (max-width: 640px) {
    .whatthatmean-floating-popup {
        max-width: calc(var(--whatthatmean-mobile-width, 92vw));
        width: calc(var(--whatthatmean-mobile-width, 92vw));
    }
}

.whatthatmean-ai-result {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #d0d7e2;
    background: #f7faff;
    color: #061B3A;
    font-size: 13px;
    line-height: 1.45;
}
.whatthatmean-ai-result.is-success {
    border-color: #4EA3FF;
    background: #F7FAFF;
}
.whatthatmean-ai-result.is-error {
    border-color: #b42318;
    background: #fff5f5;
    color: #7a271a;
}
