:root {
    --ais-primary: #5400fc;
    --ais-primary-1: #1c01e7;
    --ais-primary-2: #01ade6;
    --ais-text: #111111;
    --ais-muted: #929292;
    --ais-border: rgba(0, 0, 0, 0.1);
    --ais-soft: #f2f7fc;
    --ais-summary-bg: #ffffff;
    --ais-summary-border: #dce8ff;
    --ais-error-bg: #fff3f2;
    --ais-error-border: #f9c8c3;
    --ais-error-text: #b91c1c;
    --ais-max-width: 1200px;
}

.myjin-ais-wrap {
    max-width: var(--ais-max-width);
    margin: 0 auto;
    color: var(--ais-text);
    /* font-family: "Noto Sans KR", "Apple SD Gothic Neo", sans-serif; */
}

.myjin-ais-input-wrap {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 56px;
    border: 2px solid #fff0;
    padding: 6px 10px;
    border-radius: 12px;
    background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, var(--ais-primary-2), var(--ais-primary)) border-box;
    outline: 0 !important;
    box-shadow: 0 10px 50px rgb(0 118 252 / 12%);
    align-items: center;
}

/* .myjin-ais-input-wrap::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    content: "";
    background: linear-gradient(90deg, var(--ais-primary-1), var(--ais-primary-2), var(--ais-primary));
} */

.myjin-ais-query-length-notice {
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid var(--ais-error-border);
    border-radius: 8px;
    background: var(--ais-error-bg);
    color: var(--ais-error-text);
    font-size: 14px;
    line-height: 1.5;
}

.myjin-ais-suggested-searches {
    display: inline-flex !important;
    gap: 14px;
    margin-top: 38px;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: auto;
    flex-wrap: wrap;
}

.myjin-ais-suggested-search-card {
    min-height: 62px;
    width: 182px;
    padding: 4px 16px;
    border: 1px solid #fff0;
    border-radius: 12px;
    background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, var(--ais-primary-2), var(--ais-primary)) border-box;
    color: var(--ais-text);
    font-size: 14px;
    font-family: 'Pretendard-Medium';
    font-weight: 400;
    line-height: 1.3;
    text-align: center;
    word-break: keep-all;
    cursor: pointer;
    overflow-wrap: anywhere;
    transition: transform .2s ease, box-shadow .2s ease;
}

.myjin-ais-suggested-search-card:hover,
.myjin-ais-suggested-search-card:focus {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(84, 0, 252, .12);
}

.myjin-ais-input {
    width: 100%;
    min-width: 0;
    height: 54px;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #111111;
    font-size: 32px;
    font-weight: 700;
    line-height: 44px;
    appearance: none;
    -webkit-appearance: none;
}

#myjin-ais-wrap .myjin-ais-input-wrap input.myjin-ais-input[type="text"] {
    width: 100%;
    min-width: 0;
    padding: 0 12px !important;
    color: #000;
    font-size: 22px;
    font-family: 'Pretendard-Medium';
    font-weight: normal;
    line-height: 1;
}

.myjin-ais-input::placeholder {
    color: #888888 !important;
}

#myjin-ais-wrap .myjin-ais-input-wrap input.myjin-ais-input[type="text"]::placeholder {
    color: #111111;
    opacity: 1;
}

.myjin-ais-input:focus,
.myjin-ais-input:active,
.myjin-ais-input:hover,
.myjin-ais-input-wrap:focus-within {
    border: 2px solid #00000000;
    background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, var(--ais-primary), var(--ais-primary-2)) border-box;
    box-shadow: 0 10px 40px rgb(84 0 252 / .17);
    transition: box-shadow .2s ease;
}

.myjin-ais-btn {
    width: 48px;
    height: 48px;
    margin: 0 -4px 0 auto;
    padding: 0 !important;
    border: 0 !important;
    color: #111111;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

#myjin-ais-wrap button.myjin-ais-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 48px;
    margin: 0 -4px 0 auto;
    color: #111;
    line-height: 1;
    background: #f1f4fc;
    border-radius: 10px;
}

#myjin-ais-wrap button.myjin-ais-btn:hover {
    background: #f3ecff;
    transition: .2s;
    color: #5105fb;
}

.myjin-ais-btn svg {
    width: 26px;
    height: 26px;
    stroke-width: 2;
}

.myjin-ais-btn:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.myjin-ais-loading-skeleton {
    margin-top: 20px;
}

.myjin-ais-summary-box {
    position: relative;
    margin-top: 20px;
    padding: 24px 28px;
    border: 0;
    border-radius: 8px;
    background: var(--ais-summary-bg);
    isolation: isolate;
}

.myjin-ais-result .myjin-ais-summary-box {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity .42s ease, transform .42s cubic-bezier(.2, .8, .2, 1);
    will-change: opacity, transform;
}

.myjin-ais-result.is-visible .myjin-ais-summary-box,
.myjin-ais-result .myjin-ais-summary-box.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.myjin-ais-summary-box::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 2.1px;
    border-radius: inherit;
    pointer-events: none;
    background: conic-gradient(from var(--myjin-border-angle, 0deg),
    #fff0 0deg, rgb(1 214 192 / .15) 16deg, rgb(129 0 255) 42deg, rgb(0 96 255 / 95%) 70deg, rgb(0 29 255 / 92%) 98deg, rgb(139 91 238 / .35) 126deg, rgb(139 91 238 / .08) 154deg, #fff0 210deg, #fff0 360deg
    );
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    animation: myjin-ai-border-flow 4s linear infinite;
    animation-play-state: paused;
}

.myjin-ais-result.is-streaming.is-stream-waiting .myjin-ais-summary-box::before {
    animation-play-state: running;
}

.myjin-ais-summary-box::after {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(1, 214, 192, 0.22), rgba(78, 140, 255, 0.6), rgba(140, 91, 238, 0.6));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
}

@keyframes myjin-ai-border-flow {
    to {
        --myjin-border-angle: 360deg;
    }
}

.myjin-ais-summary-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    color: #3166e8;
}

.myjin-ais-summary-header svg {
    width: 20px;
    height: 20px;
}

.myjin-ais-summary-font-controls {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.myjin-ais-summary-font-select-wrap {
    display: none;
    position: relative;
}

.myjin-ais-summary-font-select-wrap::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 8px;
    width: 5px;
    height: 5px;
    border-right: 1.25px solid #1c3f9a;
    border-bottom: 1.25px solid #1c3f9a;
    transform: translateY(-65%) rotate(45deg);
    pointer-events: none;
}

.myjin-ais-summary-font-select {
    width: 42px;
    height: 32px;
    padding: 0 18px 0 8px;
    border: 1px solid #7ca2f5;
    border-radius: 999px;
    background-color: #eef4ff;
    color: #1c3f9a;
    font-family: 'Pretendard-Regular';
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.myjin-ais-summary-font-btn {
    min-width: 34px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #d9dce4;
    border-radius: 999px;
    background: #ffffff;
    color: #1f2937;
    font-size: 13px;
    font-family: 'Pretendard-Regular';
    font-weight: normal;
    line-height: 1;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.myjin-ais-summary-font-btn:hover {
    border-color: #90b6ff;
    background: #f8fbff;
    color: #122033;
}

.myjin-ais-summary-font-btn.is-active,
.myjin-ais-summary-font-btn[aria-pressed="true"] {
    border-color: #7ca2f5;
    background: #eef4ff;
    color: #1c3f9a;
}

.myjin-ais-copy-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    padding: 8px 20px;
    border: 1px solid #d9dce4;
    border-radius: 999px;
    color: #1f2937;
    font-size: 14px;
    font-family: 'Pretendard-Regular';
    font-weight: normal;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease, transform 0.3s ease, box-shadow 0.35s ease;
}

.myjin-ais-copy-btn svg {
    width: 14px;
    height: 14px;
}

.myjin-ais-copy-btn:hover {
    border-color: #90b6ff !important;
    background: #f8fbff !important;
    color: #122033 !important;
    box-shadow: 0 4px 14px rgb(49 102 232 / .12) !important;
    transform: translateY(-2px) !important;
}

.myjin-ais-copy-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(49, 102, 232, 0.12);
}

.myjin-ais-copy-btn.is-attention {
    background: linear-gradient(120deg, rgba(1, 214, 192, 0.18), rgba(78, 141, 255, 0.2), rgba(139, 91, 238, 0.18), #ffffff);
    border-color: rgba(78, 141, 255, 0.52);
    background-size: 220% 220%;
    animation: myjin-copy-btn-attention 2s ease forwards;
}

@keyframes myjin-copy-btn-attention {
    0% {
        background-position: 0% 50%;
        border-color: rgba(1, 214, 192, 0.6);
        box-shadow: 0 0 0 0 rgba(78, 141, 255, 0.24);
    }
    60% {
        background-position: 100% 50%;
        border-color: rgba(139, 91, 238, 0.58);
        box-shadow: 0 0 0 8px rgba(78, 141, 255, 0.05);
    }
    100% {
        background-position: 100% 50%;
        border-color: #d9dce4;
        background: #ffffff;
        box-shadow: 0 0 0 0 rgba(78, 141, 255, 0);
    }
}

.myjin-ais-summary-label {
    font-size: 18px;
    font-weight: 700;
    line-height: 22px;
}

.myjin-ais-summary-content {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(220px, 3fr);
    gap: 24px;
    align-items: start;
}

.myjin-ais-summary-main {
    min-width: 0;
}

.myjin-ais-summary-text {
    margin-bottom: 36px !important;
    color: #202323;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.66;
    font-family: 'Pretendard-Regular';
    white-space: normal;
}

.myjin-ais-summary-text p {
    margin: 0 0 14px;
}

.myjin-ais-summary-text p:last-child {
    margin-bottom: 0;
}

.myjin-ais-summary-text ol {
    margin: 14px 0px 27px 22px;
    padding: 0;
}

.myjin-ais-summary-text ul {
    margin: 7px 0 23px 14px;
    padding: 0;
    list-style-type: disc;
}

.myjin-ais-summary-text li {
    margin: 0 0 3px;
    line-height: 1.6;
}

.myjin-ais-summary-text ul li {
    line-height: 1.5;
    font-size: 15px;
    color: #343434;
}

.myjin-ais-summary-text li:last-child {
    margin-bottom: 0;
}

.myjin-ais-summary-text strong {
    font-weight: 700;
    font-family: 'Pretendard-SemiBold';
}

.myjin-ais-summary-text b {
    font-weight: 700;
    font-family: 'Pretendard-SemiBold';
}

.myjin-ais-summary-text strong.myjin-ais-md-strong {
    font-family: 'Pretendard-SemiBold', 'Pretendard-Regular', sans-serif !important;
    font-weight: 700 !important;
}

.myjin-ais-summary-text strong.myjin-ais-md-strong .myjin-ais-summary-link {
    font-family: inherit !important;
    font-weight: inherit !important;
}

.myjin-ais-summary-text a.myjin-ais-summary-link {
    word-break: break-all;
}

.myjin-ais-summary-link {
    color: #014aff;
    text-decoration: none;
    line-height: 1;
}

.myjin-ais-summary-link:hover {
    text-decoration-line: underline;
}

.myjin-ais-summary-cta {
    margin: 10px 0 50px;
}

.myjin-ais-recent-searches {
    min-width: 0;
    padding: 14px;
    border: 1px solid #e7ebf4;
    border-radius: 12px;
    background: #fafcff;
}

.myjin-ais-recent-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px !important;
    color: #3f4452;
    font-size: 14px;
    font-family: 'Pretendard-SemiBold';
    font-weight: normal;
    line-height: 20px;
}

.myjin-ais-recent-count {
    margin-left: auto;
    color: #9aa3b5;
    font-size: 12px;
    font-family: 'Pretendard-Regular';
    font-weight: normal;
}

.myjin-ais-recent-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    color: var(--ais-primary);
}

.myjin-ais-recent-title-icon svg {
    width: 16px;
    height: 16px;
}

.myjin-ais-recent-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.myjin-ais-recent-chip {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0px;
    padding: 9px 12px;
    border: 1px solid #bfd0ff;
    border-radius: 999px;
    background: #ffffff;
    color: #2454c8;
    font-size: 13px;
    line-height: 18px;
    font-family: 'Pretendard-Regular';
    font-weight: normal;
    text-align: left;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.myjin-ais-recent-chip[hidden] {
    display: none;
}

.myjin-ais-recent-chip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    color: currentColor;
}

.myjin-ais-recent-chip-svg {
    display: block;
    width: 12px;
    height: 12px;
    opacity: .6;
}

.myjin-ais-recent-chip-text {
    display: block;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.myjin-ais-recent-chip:hover {
    background: #edf2ff;
    border-color: #84a3ff;
    color: #183f9c;
}

.myjin-ais-recent-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 24px;
    margin: 10px auto 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #8b98b8;
    cursor: pointer;
}

.myjin-ais-recent-toggle[hidden] {
    display: none;
}

.myjin-ais-recent-toggle svg {
    width: 18px;
    height: 18px;
    transition: transform .2s ease;
}

.myjin-ais-recent-toggle.is-expanded svg {
    transform: rotate(180deg);
}

.myjin-ais-summary-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    background: #004aff;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.myjin-ais-summary-cta-btn:hover {
    background: #212121;
    color: #ffffff;
}

.myjin-ais-pulse-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--ais-primary);
    animation: myjin-pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes myjin-pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.45;
        transform: scale(0.8);
    }
}

.myjin-ais-skeleton-lines {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
}

.myjin-ais-sk-line {
    height: 16px;
    border-radius: 4px;
    background: linear-gradient(90deg, #dbe4ef 25%, #f3f7fc 50%, #dbe4ef 75%);
    background-size: 200% 100%;
    animation: myjin-shimmer 1.8s linear infinite;
}

@keyframes myjin-shimmer {
    from {
        background-position: 200% 0;
    }
    to {
        background-position: -200% 0;
    }
}

@property --myjin-border-angle {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

.myjin-ais-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    margin: 20px 0 0;
    padding: 6px;
    border-radius: 6px;
    background: var(--ais-soft);
}

.myjin-ais-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    border: 0 !important;
    border-radius: 6px;
    background: transparent;
    box-shadow: none !important;
    color: #111111;
    font-size: 16px;
    font-weight: 500;
    line-height: 22px;
    text-decoration: none;
    outline: 0;
}

.myjin-ais-tab svg {
    width: 24px;
    height: 24px;
}

.myjin-ais-tab.is-active {
    background: #ffffff;
    color: var(--ais-primary);
    font-weight: 700;
    pointer-events: none;
}

.myjin-ais-panel[hidden] {
    display: none !important;
}

.myjin-ais-summary-note {
    margin-top: 18px;
    padding-left: 12px;
    color: var(--ais-muted);
    font-size: 14px;
    line-height: 22px;
}

.myjin-ais-summary-note-list {
    margin: 10px 0 0;
    padding-left: 22px;
    color: #333333;
    font-size: 14px;
    line-height: 22px;
}

.myjin-ais-summary-note-list li + li {
    margin-top: 4px;
}

.myjin-ais-summary-note-list a {
    color: #3166e8;
    text-decoration: none;
}

.myjin-ais-summary-note-list a:hover {
    text-decoration: underline;
}

.myjin-ais-summary-note-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.myjin-ais-summary-note-card {
    margin: 0;
}

.myjin-ais-summary-note-card-link {
    display: grid;
    grid-template-columns: 28px 1fr 70px;
    gap: 12px;
    align-items: start;
    min-height: 98px;
    padding: 14px;
    border-radius: 12px;
    background: #f3f5fb;
    color: #111;
    text-decoration: none;
}

.myjin-ais-summary-note-card-link:hover {
    background: #eef1ff;
}

.myjin-ais-summary-note-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #fff;
    color: var(--ais-primary);
    font-size: 12px;
    font-weight: 700;
}

.myjin-ais-summary-note-card-text {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    justify-content: space-between;
}

.myjin-ais-summary-note-card-title {
    display: -webkit-box;
    overflow: hidden;
    color: #111;
    font-size: 15px;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.myjin-ais-summary-note-card-date {
    color: #666666;
    font-size: 13px;
    line-height: 1;
}

.myjin-ais-summary-note-card-thumb {
    width: 70px;
    height: 70px;
    border-radius: 4px;
    object-fit: cover;
}

.myjin-ais-related-searches {
    margin-top: 38px;
    opacity: 0;
    transform: translateY(8px);
    animation: myjin-related-searches-in .34s ease forwards;
}

.myjin-ais-related-searches.is-loading {
    position: relative;
    padding: 12px 14px 14px;
    border-radius: 10px;
    background: #f8fbff;
    overflow: hidden;
}

.myjin-ais-related-searches.is-loading::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1.5px;
    border-radius: inherit;
    pointer-events: none;
    background: conic-gradient(from var(--myjin-border-angle, 0deg), rgba(1, 214, 192, 0.15), rgba(78, 140, 255, 0.52), rgba(139, 91, 238, 0.35), rgba(1, 214, 192, 0.15));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    animation: myjin-ai-border-flow 3.8s linear infinite;
}

.myjin-ais-related-searches.is-empty .myjin-ais-related-searches-title {
    color: #6a7080;
}

.myjin-ais-related-searches-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px !important;
    color: #3f4452;
    font-size: 16px;
    line-height: 24px;
    font-family: 'Pretendard-SemiBold';
    font-weight: normal;
}

.myjin-ais-related-searches-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: var(--ais-primary);
}

.myjin-ais-related-searches-icon svg {
    display: block;
    width: 18px;
    height: 18px;
}

.myjin-ais-related-searches-icon.is-loading {
    animation: myjin-related-icon-float 1.35s ease-in-out infinite;
}

.myjin-ais-related-searches-icon.is-loading svg {
    animation: myjin-related-icon-glow 1.35s ease-in-out infinite;
}

.myjin-ais-related-searches-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    animation: myjin-related-chips-in .34s ease both;
}

.myjin-ais-related-searches-skeleton {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.myjin-ais-related-searches-skeleton-chip {
    display: inline-flex;
    width: 128px;
    height: 34px;
    border-radius: 999px;
    background: linear-gradient(90deg, #eaf0ff 25%, #f7faff 50%, #eaf0ff 75%);
    background-size: 200% 100%;
    animation: myjin-shimmer 1.35s linear infinite;
}

.myjin-ais-related-searches-skeleton-chip:nth-child(2) {
    width: 154px;
}

.myjin-ais-related-searches-skeleton-chip:nth-child(3) {
    width: 118px;
}

.myjin-ais-related-searches-skeleton-chip:nth-child(4) {
    width: 142px;
}

.myjin-ais-related-chip {
    border: 1px solid #bfd0ff;
    border-radius: 999px;
    background: #ffffff;
    color: #2454c8;
    font-size: 14px;
    line-height: 20px;
    font-family: 'Pretendard-Regular';
    font-weight: normal;
    padding: 8px 14px;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.myjin-ais-related-chip:hover {
    background: #edf2ff;
    border-color: #84a3ff;
    color: #183f9c;
}

.myjin-ais-related-chip-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none !important;
}

@keyframes myjin-related-searches-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes myjin-related-chips-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes myjin-related-icon-float {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-2px) rotate(12deg);
    }
}

@keyframes myjin-related-icon-glow {
    0%,
    100% {
        filter: drop-shadow(0 0 0 rgba(84, 0, 252, 0));
        opacity: .75;
    }
    50% {
        filter: drop-shadow(0 0 8px rgba(84, 0, 252, .35));
        opacity: 1;
    }
}

.myjin-ais-sources {
    margin-top: 48px;
}

.myjin-ais-sources .myjin-ais-sources-label {
    margin: 0 0 10px;
    color: #111;
    font-size: 27px;
}

.myjin-ais-sources-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--ais-border);
}

.myjin-ais-source-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    align-items: stretch;
    height: 152px;
    gap: 30px;
    min-height: 152px;
    padding: 20px 0;
    border-bottom: 1px solid var(--ais-border);
    background: #fff;
    cursor: pointer;
}

.myjin-ais-source-item-related {
    gap: 30px;
}

.myjin-ais-source-item-keyword {
    gap: 0;
}

.myjin-ais-source-item.no-thumb {
    grid-template-columns: 180px 1fr;
}

.myjin-ais-source-thumb {
    width: 180px;
    min-height: 112px;
    height: 100%;
    align-self: stretch;
    overflow: hidden;
    border-radius: 8px;
    background: #f4f5fa;
}

.myjin-ais-source-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.myjin-ais-source-thumb.is-empty {
    background: var(--ais-soft);
}

.myjin-ais-source-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: space-between;
    min-width: 0;
}

.myjin-ais-source-meta-line {
    gap: 10px;
    display: flex;
    align-items: center;
}

.myjin-ais-source-date:before {
    content: "|";
    opacity: .5;
    margin-right: 10px;
}

.myjin-ais-source-title {
display: -webkit-box;
    overflow: hidden;
    color: #111;
    font-size: 20px;
    font-family: 'Pretendard-SemiBold';
    font-weight: normal;
    line-height: 25px;
    word-break: keep-all;
    text-decoration: none;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.myjin-ais-source-title:hover {
    text-decoration: underline;
}

.myjin-ais-source-category {
    color: var(--ais-muted);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.myjin-ais-source-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.myjin-ais-source-date {
    color: var(--ais-muted);
    font-size: 14px;
}

.myjin-ais-source-excerpt {
    position: relative;
    display: -webkit-box;
    overflow: hidden;
    margin: 0 !important;
    color: #4f4f4f;
    font-size: 16px;
    font-family: 'Pretendard-Light';
    font-weight: normal;
    letter-spacing: 0px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.myjin-ais-error {
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid var(--ais-error-border);
    border-radius: 8px;
    background: var(--ais-error-bg);
    color: var(--ais-error-text);
    font-size: 14px;
    line-height: 22px;
}

.myjin-ais-keyword-fallback {
    margin-top: 12px;
}

.myjin-ais-keyword-fallback a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #3166e8;
    font-size: 14px;
    font-weight: 700;
    line-height: 22px;
    text-decoration: none;
}

.myjin-ais-keyword-fallback a:hover {
    text-decoration: underline;
}

.myjin-ais-keyword-results {
    margin-top: 32px;
}

.myjin-ais-keyword-results .myjin-ais-sources-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    border-top: 0;
}

.myjin-ais-keyword-results .myjin-ais-source-item,
.myjin-ais-keyword-results .myjin-ais-source-item.no-thumb {
    display: flex;
    height: auto;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--ais-border);
    border-radius: 8px;
    background: #ffffff;
    flex-direction: column;
}

.myjin-ais-keyword-results .myjin-ais-source-thumb {
    width: 100%;
    height: 180px;
    border-radius: 0;
    flex: 0 0 auto;
}

.myjin-ais-keyword-results .myjin-ais-source-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    min-height: 144px;
    padding: 18px;
}

.myjin-ais-keyword-results .myjin-ais-source-meta-line {
    gap: 8px;
}

.myjin-ais-keyword-results .myjin-ais-source-title {
    color: #111111;
}

.myjin-ais-keyword-results .myjin-ais-source-category {
    color: var(--ais-primary);
    font-size: 13px;
}

@media (max-width: 985px) {
    .myjin-ais-input-wrap {
        grid-template-columns: 1fr 48px;
    }

    .myjin-ais-input-wrap::after {
        height: 4px;
    }

    .myjin-ais-input {
        height: auto;
        min-height: 36px;
        font-size: 18px;
        line-height: 27px;
        white-space: normal;
        word-break: break-all;
    }

    #myjin-ais-wrap .myjin-ais-input-wrap input.myjin-ais-input[type="text"] {
        height: auto;
        font-size: 16px;
        white-space: normal;
        word-break: break-all;
    }

    #myjin-ais-wrap button.myjin-ais-btn {
        width: 40px;
        height: 40px;
    }

    .myjin-ais-btn svg {
        width: 20px;
        height: 20px;
    }

    .myjin-ais-summary-box {
        padding: 18px;
        margin-top: 10px;
    }

    .myjin-ais-summary-label {
        font-size: 14px;
        line-height: 22px;
    }

    .myjin-ais-summary-font-controls {
        margin-left: 0;
        order: 3;
    }

    .myjin-ais-suggested-searches {
        margin-top: 20px;
        gap: 8px;
    }

    .myjin-ais-suggested-search-card {
        min-height: 38px;
        width: fit-content;
        padding: 10px;
        font-size: 13px;
        border-radius: 8px;
        font-family: 'Pretendard-Regular';
        line-height: 1;
    }

    .myjin-ais-copy-btn {
        margin-left: 0;
        order: 4;
    }

    .myjin-ais-summary-content {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .myjin-ais-summary-text {
        font-size: 16px;
        line-height: 24px;
    }

    .myjin-ais-recent-searches {
        padding: 12px;
    }

    .myjin-ais-summary-note,
    .myjin-ais-summary-note-list {
        font-size: 14px;
        line-height: 22px;
    }

    .myjin-ais-summary-note-cards {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .myjin-ais-summary-note-card-link {
        grid-template-columns: 26px 1fr 60px;
        min-height: 80px;
        padding: 12px;
    }

    .myjin-ais-summary-note-rank {
        width: 26px;
        height: 26px;
        font-size: 18px;
    }

    .myjin-ais-summary-note-card-title {
        font-size: 14px;
    }

    .myjin-ais-summary-note-card-thumb {
        width: 72px;
        height: 72px;
    }

    .myjin-ais-sources {
        margin-top: 40px;
    }

    .myjin-ais-sources-label {
        font-size: 28px;
        line-height: 38px;
    }

    .myjin-ais-source-item {
        grid-template-columns: 86px 1fr;
        min-height: 94px;
        padding: 14px 0;
    }

    .myjin-ais-source-item.no-thumb {
        grid-template-columns: 86px 1fr;
    }

    .myjin-ais-source-thumb {
        width: 86px;
        min-height: 62px;
        height: 62px;
    }

    .myjin-ais-keyword-results .myjin-ais-sources-list {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .myjin-ais-keyword-results .myjin-ais-source-thumb {
        width: 100%;
        min-height: 190px;
        height: 190px;
    }

    .myjin-ais-keyword-results .myjin-ais-source-content {
        min-height: 0;
        padding: 16px;
        gap: 4px;
    }

    .myjin-ais-source-meta-line {
        gap: 8px;
    }

    .myjin-ais-source-title {
        font-size: 16px;
        line-height: 24px;
    }

    .myjin-ais-source-category {
        font-size: 13px;
    }

    .myjin-ais-source-date,
    .myjin-ais-source-excerpt {
        font-size: 14px;
    }

    .myjin-ais-tab {
        font-size: 12px;
        gap: 3px;
        min-height: 28px;
    }

    .myjin-ais-tab svg {
        width: 20px;
        height: 20px;
    }

    .myjin-ais-tabs {
        margin-top: 12px;
    }
}

@media (max-width: 600px) {
    .myjin-ais-summary-header {
        flex-wrap: nowrap;
        gap: 6px;
    }

    .myjin-ais-summary-header > svg {
        width: 17px;
        height: 17px;
    }

    .myjin-ais-summary-header > svg,
    .myjin-ais-summary-label,
    .myjin-ais-summary-font-controls,
    .myjin-ais-copy-btn {
        flex: 0 0 auto;
    }

    .myjin-ais-summary-label {
        white-space: nowrap;
    }

    .myjin-ais-summary-font-controls {
        margin-left: auto;
        order: initial;
    }

    .myjin-ais-summary-font-btn {
        display: none;
    }

    .myjin-ais-summary-font-select-wrap {
        display: inline-flex;
    }

    .myjin-ais-copy-btn {
        width: 34px;
        height: 32px;
        margin-left: 0;
        padding: 0;
        justify-content: center;
        gap: 0;
        order: initial;
    }

    .myjin-ais-copy-btn svg {
        width: 16px;
        height: 16px;
    }

    .myjin-ais-copy-btn-text {
        display: none;
    }

    .myjin-ais-sources {
        margin-top: 32px;
    }

    .myjin-ais-sources-label {
        margin-bottom: 12px;
    }

    .myjin-ais-source-item {
        grid-template-columns: 82px minmax(0, 1fr);
        height: auto;
        min-height: 0;
        gap: 10px;
        padding: 12px 0;
        align-items: start;
    }

    .myjin-ais-source-item-related {
        gap: 10px;
    }

    .myjin-ais-source-item.no-thumb {
        grid-template-columns: 82px minmax(0, 1fr);
    }

    .myjin-ais-source-thumb {
        width: 82px;
        min-height: 62px;
        height: auto;
        align-self: stretch;
    }

    .myjin-ais-source-content {
        gap: 2px;
        justify-content: flex-start;
    }

    .myjin-ais-source-meta-line > * {
        font-size: 10px;
    }

    .myjin-ais-source-meta,
    .myjin-ais-source-meta-line {
        gap: 5px;
    }
}

/* ─── 이탈 방지 UX 스타일 (Retention Box) ────────────────────────────────── */
.myjin-ais-retention-box {
    margin-top: 16px;
    padding: 22px 26px;
    border: 1px dashed rgba(84, 0, 252, 0.28);
    border-radius: 12px;
    background: #fafbff;
    color: #333333;
}

.myjin-ais-retention-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--ais-primary);
    font-size: 16px;
    font-family: 'Pretendard-SemiBold';
}

.myjin-ais-retention-section {
    margin-bottom: 16px;
}

.myjin-ais-retention-section:last-child {
    margin-bottom: 0;
}

.myjin-ais-retention-subtitle {
    margin: 0 0 10px !important;
    color: #4b5563;
    font-size: 14px;
    font-family: 'Pretendard-SemiBold';
}

.myjin-ais-retention-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.myjin-ais-retention-cat-btn {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    background: #ffffff;
    color: #374151;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.myjin-ais-retention-cat-btn:hover {
    border-color: var(--ais-primary);
    background: #f5f3ff;
    color: var(--ais-primary-1);
}

.myjin-ais-retention-prompts {
    margin: 0;
    padding: 0;
    list-style: none;
}

.myjin-ais-retention-prompts li {
    margin-bottom: 8px;
}

.myjin-ais-retention-prompts li:last-child {
    margin-bottom: 0;
}

.myjin-ais-retention-prompt-btn {
    padding: 0;
    border: 0;
    background: transparent;
    color: #2563eb;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    transition: color 0.2s ease;
}

.myjin-ais-retention-prompt-btn:hover {
    color: var(--ais-primary-1);
    text-decoration: underline;
}
.myjin-ais-result.is-streaming #myjin-ais-panel-ai > .myjin-ais-sources,
.myjin-ais-result.is-streaming .myjin-ais-summary-notes,
.myjin-ais-result.is-streaming .myjin-ais-related-searches {
    display: none !important;
}

.myjin-ais-tabs.is-locked {
    cursor: progress;
}

.myjin-ais-tabs.is-locked .myjin-ais-tab {
    pointer-events: none;
    opacity: 0.72;
}

.myjin-ais-stream-status {
    display: flex;
    align-items: center;
    gap: 8px;
    max-height: 0;
    margin: 0;
    overflow: hidden;
    color: #52606d;
    font-size: 14px;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(-3px);
    transition: max-height 220ms ease, margin 220ms ease, opacity 180ms ease, transform 220ms ease;
}

.myjin-ais-stream-status.is-visible {
    max-height: 52px;
    margin: 0 0 14px;
    opacity: 1;
    transform: translateY(0);
}

.myjin-ais-stream-block + .myjin-ais-stream-status.is-visible {
    margin: 12px 0 0;
}

.myjin-ais-stream-status.is-moving {
    opacity: 0;
    transform: translateY(-3px);
}

.myjin-ais-stream-status-text {
    min-width: 0;
    overflow-wrap: anywhere;
}

.myjin-ais-stream-status-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: var(--ais-primary-2);
    animation: myjin-ais-stream-pulse 1.2s ease-in-out infinite;
}

.myjin-ais-stream-block {
    animation: myjin-ais-stream-reveal 260ms ease-out both;
}

.myjin-ais-stream-section,
.myjin-ais-stream-closing {
    margin-top: 18px;
}

.myjin-ais-stream-paragraph + .myjin-ais-stream-paragraph {
    margin-top: 10px;
}

.myjin-ais-stream-fragment {
    animation: myjin-ais-stream-fade 220ms ease-out both;
}

@keyframes myjin-ais-stream-reveal {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes myjin-ais-stream-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes myjin-ais-stream-pulse {
    0%, 100% { opacity: 0.45; transform: scale(0.88); }
    50% { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .myjin-ais-stream-status,
    .myjin-ais-stream-block,
    .myjin-ais-stream-fragment,
    .myjin-ais-stream-status-dot {
        animation: none;
        transition: none;
    }
}
