/* Uses the existing eduyaa.css popup, typography and button components. */
.intro-ai-selector[hidden] { display: none !important; }
.intro-ai-selector.modalpop.active {
    inset: 0; height: 100%; padding: 20px; z-index: 200;
    background: rgba(0, 0, 0, .6); overflow: auto;
}
.intro-ai-selector .popupwrap {
    position: relative; top: auto; width: 100%; max-width: 800px;
    max-height: 100%; opacity: 1; transition: none; display: flex;
}
.intro-ai-selector .pop-container.md {
    width: 100%; margin: 0; display: flex; flex-direction: column;
    max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px);
    transform: none; transition: none; border-radius: 0;
}
.intro-ai-selector .ptitle {
    height: 50px; line-height: 50px; padding: 0 50px 0 25px;
    margin: 0; width: 100%; font-size: 18px; flex: none;
}
.intro-ai-selector .btn-close { width: 50px; height: 50px; }
.intro-ai-selector .pbody {
    padding: 25px; min-height: 0; max-height: none; margin: 0;
    overflow: auto; overscroll-behavior: contain;
}
.intro-ai-description { margin-bottom: 25px; color: #666; font-size: 15px; }
.intro-ai-description strong {
    display: block; color: #222; font-size: 20px; font-weight: 600; margin-bottom: 7px;
}
.intro-ai-count { font-size: 15px; color: #333; margin-bottom: 10px; }
.intro-ai-count em { color: #0b5deb; margin-left: 4px; font-weight: 600; }
.intro-ai-list { border-top: 2px solid #333; }
.intro-ai-row {
    border-bottom: 1px solid #ddd; display: grid;
    grid-template-columns: minmax(0, 1fr) 104px; gap: 24px;
    align-items: center; padding: 23px 15px;
}
.intro-ai-row:hover { background: #fafafa; }
.intro-ai-name { font-size: 19px; color: #222; font-weight: 600; display: block; margin-bottom: 8px; }
.intro-ai-product { font-size: 14px; color: #555; margin-bottom: 5px; overflow-wrap: anywhere; }
.intro-ai-period { font-size: 14px; color: #666; }
.intro-ai-period em { color: #777; margin-right: 12px; }
.intro-ai-row .btn-blue {
    min-width: 100px; height: 40px; font-size: 15px;
    display: flex; align-items: center; justify-content: center;
}
.intro-ai-selector button:disabled { cursor: wait; opacity: .65; }
.intro-ai-note { margin-top: 20px; background: #f8f8f8; padding: 15px 18px; font-size: 13px; color: #666; line-height: 1.8; }
.intro-ai-note p { padding-left: 10px; position: relative; }
.intro-ai-note p::before { content: '·'; position: absolute; left: 0; }
.intro-ai-selector .btncenter { margin: 0; padding: 0 25px 25px; flex: none; }
.intro-ai-selector .btncenter .btn-white { min-width: 100px; height: 40px; line-height: 40px; font-size: 15px; }
.intro-ai-state { padding: 30px 15px 40px; text-align: center; border-top: 2px solid #333; border-bottom: 1px solid #ddd; color: #666; }
.intro-ai-state h3 { font-size: 18px; font-weight: 500; color: #333; margin-bottom: 12px; }
.intro-ai-state p { font-size: 15px; line-height: 1.8; }
.intro-ai-actions { display: flex; justify-content: center; gap: 8px; margin-top: 25px; }
.intro-ai-warning { padding: 12px 0; font-size: 14px; color: #555; }
.intro-ai-warning button { color: #0b5deb; text-decoration: underline; margin-left: 10px; }
.intro-ai-spinner { width: 26px; height: 26px; border: 2px solid #ddd; border-top-color: #0b5deb; border-radius: 50%; margin: 0 auto 20px; animation: introAiSpin .8s linear infinite; }
.intro-ai-selector button:focus-visible, .intro-ai-selector a:focus-visible { outline: 2px solid #0b5deb; outline-offset: 3px; }
@keyframes introAiSpin { to { transform: rotate(360deg); } }
@media (max-width: 767px) {
    .intro-ai-selector.modalpop.active { padding: 16px; }
    .intro-ai-selector .pop-container.md { max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); }
    .intro-ai-selector .ptitle { padding-left: 20px; }
    .intro-ai-selector .pbody { padding: 22px 18px; }
    .intro-ai-description { font-size: 14px; margin-bottom: 22px; word-break: keep-all; }
    .intro-ai-description strong { font-size: 18px; }
    .intro-ai-count { font-size: 14px; }
    .intro-ai-row { gap: 14px; padding: 20px 4px; grid-template-columns: minmax(0, 1fr) 76px; }
    .intro-ai-name { font-size: 17px; }
    .intro-ai-product { font-size: 13px; word-break: keep-all; }
    .intro-ai-period { font-size: 12px; word-break: keep-all; }
    .intro-ai-period em { display: block; font-size: 12px; margin: 0 0 2px; }
    .intro-ai-row .btn-blue { min-width: 76px; width: 76px; height: 40px; padding: 0 8px; font-size: 13px; }
    .intro-ai-note { padding: 12px; font-size: 12px; word-break: keep-all; }
    .intro-ai-selector .btncenter { padding: 0 18px 20px; }
    .intro-ai-state { padding: 25px 0; }
    .intro-ai-state h3 { font-size: 17px; }
    .intro-ai-state p { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .intro-ai-spinner { animation: none; } }
