.prompts-info-trigger {
    appearance: none;
    -webkit-appearance: none;
    display: inline;
    margin: 0;
    padding: 0 0.08em;
    border: 0;
    border-bottom: 1px dashed currentColor;
    border-radius: 3px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: inherit;
    line-height: inherit;
    text-align: inherit;
    text-decoration: none;
    vertical-align: baseline;
    white-space: nowrap;
    cursor: help;
}

.prompts-info-trigger:hover,
.prompts-info-trigger--active {
    color: var(--accent-primary, #2d7d7d);
    background: rgba(45, 125, 125, 0.1);
    border-bottom-style: solid;
}

.prompts-info-trigger:focus-visible {
    outline: 2px solid var(--accent-primary, #2d7d7d);
    outline-offset: 2px;
}

.prompts-info-popover {
    position: fixed;
    z-index: 2147483640;
    isolation: isolate;
    width: min(540px, calc(100vw - 24px));
    box-sizing: border-box;
    color: var(--text-primary, #2c3e50);
    font-family: inherit;
    opacity: 0;
    transform: translateY(-5px) scale(0.985);
    transition: opacity 150ms ease, transform 150ms ease;
}

.prompts-info-popover,
.prompts-info-popover * {
    box-sizing: border-box;
}

.prompts-info-popover[hidden] {
    display: none !important;
}

.prompts-info-popover--open {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.prompts-info-popover__panel {
    position: relative;
    z-index: 1;
    padding: 18px;
    border: 1.5px solid var(--border-color, rgba(45, 125, 125, 0.2));
    border-radius: var(--radius-lg, 18px);
    background:
        linear-gradient(145deg, rgba(45, 125, 125, 0.065), transparent 38%),
        var(--bg-primary, #fffdf8);
    box-shadow: var(--shadow-lg, 0 18px 50px rgba(27, 52, 62, 0.24));
}

.prompts-info-popover__arrow {
    position: absolute;
    z-index: 0;
    left: var(--prompts-info-arrow-left, 50%);
    width: 16px;
    height: 16px;
    background: var(--bg-primary, #fffdf8);
    transform: translateX(-50%) rotate(45deg);
}

.prompts-info-popover[data-placement="below"] .prompts-info-popover__arrow {
    top: -7px;
    border-top: 1.5px solid var(--border-color, rgba(45, 125, 125, 0.2));
    border-left: 1.5px solid var(--border-color, rgba(45, 125, 125, 0.2));
}

.prompts-info-popover[data-placement="above"] .prompts-info-popover__arrow {
    bottom: -7px;
    border-right: 1.5px solid var(--border-color, rgba(45, 125, 125, 0.2));
    border-bottom: 1.5px solid var(--border-color, rgba(45, 125, 125, 0.2));
}

.prompts-info-popover__header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.prompts-info-popover__header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border: 1.5px solid rgba(45, 125, 125, 0.28);
    border-radius: var(--radius-md, 12px);
    background: linear-gradient(145deg, rgba(45, 125, 125, 0.2), rgba(45, 125, 125, 0.08));
    color: var(--accent-primary, #2d7d7d);
    box-shadow: var(--shadow-sm, 0 2px 5px rgba(27, 52, 62, 0.1));
}

.prompts-info-popover__header-icon svg {
    width: 24px;
    height: 24px;
}

.prompts-info-popover__heading-copy {
    min-width: 0;
}

.prompts-info-popover__eyebrow {
    display: block;
    margin: 0 0 2px;
    color: var(--accent-primary, #2d7d7d);
    font-size: 0.67rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.11em;
}

.prompts-info-popover__title {
    margin: 0;
    color: var(--text-primary, #2c3e50);
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.prompts-info-popover__description {
    margin: 12px 0 0;
    color: var(--text-secondary, #5a6c7d);
    font-size: 0.92rem;
    line-height: 1.48;
}

.prompts-info-popover__example {
    margin-top: 14px;
    padding: 13px 14px;
    border: 1.5px solid rgba(45, 125, 125, 0.24);
    border-radius: var(--radius-md, 12px);
    background: rgba(45, 125, 125, 0.085);
    box-shadow: 3px 3px 0 rgba(45, 125, 125, 0.13);
}

.prompts-info-popover__example-label {
    display: inline-flex;
    align-items: center;
    min-height: 21px;
    margin: 0;
    padding: 3px 7px;
    border: 1px solid rgba(45, 125, 125, 0.2);
    border-radius: 999px;
    background: var(--bg-primary, #fffdf8);
    color: var(--accent-primary, #2d7d7d);
    font-size: 0.64rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.08em;
}

.prompts-info-popover__example-quote {
    margin: 8px 0 10px;
    padding: 0;
    border: 0;
    color: var(--text-primary, #2c3e50);
    font-size: 1rem;
    font-style: normal;
    font-weight: 750;
    line-height: 1.4;
}

.prompts-info-popover__example-files {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 10px;
    padding: 0;
    list-style: none;
}

.prompts-info-popover__example-file {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding: 6px 8px;
    border: 1px solid rgba(45, 125, 125, 0.2);
    border-radius: 8px;
    background: var(--bg-primary, #fffdf8);
    color: var(--text-secondary, #5a6c7d);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
}

.prompts-info-popover__example-file-icon {
    display: inline-flex;
    flex: 0 0 15px;
    width: 15px;
    height: 15px;
    color: var(--accent-primary, #2d7d7d);
}

.prompts-info-popover__example-file-icon svg {
    width: 15px;
    height: 15px;
}

.prompts-info-popover__example-result {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    padding: 9px 0 0;
    border-top: 1px solid rgba(45, 125, 125, 0.18);
    color: var(--text-secondary, #5a6c7d);
    font-size: 0.8rem;
    font-weight: 650;
    line-height: 1.35;
}

.prompts-info-popover__result-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 21px;
    width: 21px;
    height: 21px;
    border-radius: 999px;
    background: var(--accent-primary, #2d7d7d);
    color: #fff;
}

.prompts-info-popover__result-icon svg {
    width: 13px;
    height: 13px;
    stroke-width: 2.5;
}

.prompts-info-popover__facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.prompts-info-popover__fact {
    display: grid;
    grid-template-columns: 31px minmax(0, 1fr);
    align-items: start;
    gap: 9px;
    min-width: 0;
    min-height: 112px;
    padding: 12px;
    border: 1px solid var(--border-color, rgba(45, 125, 125, 0.18));
    border-radius: var(--radius-sm, 10px);
    background: var(--bg-secondary, #f5f7fa);
    box-shadow: var(--shadow-sm, 0 2px 5px rgba(27, 52, 62, 0.08));
}

.prompts-info-popover__fact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    border-radius: 9px;
    background: rgba(45, 125, 125, 0.12);
    color: var(--accent-primary, #2d7d7d);
}

.prompts-info-popover__fact-icon svg {
    width: 17px;
    height: 17px;
}

.prompts-info-popover__fact-copy {
    min-width: 0;
}

.prompts-info-popover__fact-title {
    margin: 0 0 4px;
    color: var(--text-primary, #2c3e50);
    font-size: 0.81rem;
    font-weight: 800;
    line-height: 1.25;
}

.prompts-info-popover__fact-body {
    margin: 0;
    color: var(--text-secondary, #5a6c7d);
    font-size: 0.76rem;
    line-height: 1.42;
}

.prompts-info-popover__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 14px;
}

.prompts-info-popover__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    min-height: 40px;
    margin: 0;
    padding: 9px 18px;
    border: 0;
    border-radius: var(--radius-sm, 10px);
    background: linear-gradient(135deg, var(--accent-primary, #2d7d7d), #4a9b9b);
    color: #fff;
    box-shadow: 2px 2px 0 var(--primary-color-dark, #236060);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
}

.prompts-info-popover__close:hover {
    filter: brightness(1.04);
    box-shadow: 3px 3px 0 var(--primary-color-dark, #236060);
    transform: translate(-1px, -1px);
}

.prompts-info-popover__close:active {
    box-shadow: 0 0 0 var(--primary-color-dark, #236060);
    transform: translate(2px, 2px);
}

.prompts-info-popover__close:focus-visible {
    outline: 3px solid rgba(45, 125, 125, 0.3);
    outline-offset: 3px;
}

.prompts-info-popover--mobile {
    transform: translateY(7px) scale(0.99);
}

.prompts-info-popover--mobile.prompts-info-popover--open {
    transform: translateY(0) scale(1);
}

.prompts-info-popover--mobile .prompts-info-popover__arrow {
    display: none;
}

@media (max-width: 640px) {
    .prompts-info-popover__panel {
        padding: 16px;
        border-radius: var(--radius-lg, 18px);
        box-shadow: 0 12px 40px rgba(27, 52, 62, 0.3);
    }

    .prompts-info-popover__close {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .prompts-info-popover__facts {
        grid-template-columns: 1fr;
    }

    .prompts-info-popover__fact {
        min-height: 0;
    }
}

@media (max-width: 360px) {
    .prompts-info-popover__panel {
        padding: 14px;
    }

    .prompts-info-popover__header {
        gap: 10px;
    }

    .prompts-info-popover__header-icon {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
    }

    .prompts-info-popover__title {
        font-size: 1.18rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .prompts-info-popover,
    .prompts-info-popover__close {
        transition: none;
    }
}
