.ai-badge{display:inline-flex!important;vertical-align:middle;align-items:center;justify-content:center;flex:0 0 auto;margin:0 0 0 5px!important;padding:2px 5px;border:1px solid #a6c5df;border-radius:5px;background:#edf6fc;color:#37779f!important;font:600 9px/1.3 'Noto Sans KR',sans-serif;letter-spacing:.03em}
.library-nav .tutor-described{flex-direction:column;align-items:flex-start;justify-content:center;gap:3px;padding:7px 10px}
.tutor-described strong{display:flex;align-items:center;font-size:13px;white-space:nowrap;letter-spacing:-.03em}
.tutor-described .ai-badge{font-size:9px}
.tutor-described small{display:block;font-size:9px;line-height:1.4;font-weight:400;color:#929cad;white-space:nowrap;letter-spacing:-.04em}
.tutor-description{margin:6px 0 0;color:#8a95a7;font-size:12px;line-height:1.6}
.grading-heading h1,.friend-heading h1{display:flex;align-items:center;gap:3px}
h1 .ai-badge{font-size:11px;padding:3px 6px;letter-spacing:0}
.whale-friend-view{padding:30px;max-width:760px}
.friend-heading{display:flex;align-items:center;justify-content:space-between;min-height:125px;gap:12px;margin-bottom:12px}
.friend-heading h1{margin:0}
.friend-mascot{width:125px;height:125px;object-fit:contain;filter:drop-shadow(0 7px 8px #3b709719);animation:friend-arrive 300ms ease-out both}
.friend-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid var(--line);padding:0 0 15px}
.friend-toolbar label{margin:0}
.friend-reply-language{display:flex;flex-direction:column;gap:4px;flex:0 0 auto}
.friend-reply-language span{font-size:10px;color:#8a95a7}
.friend-toolbar select{width:auto;max-width:180px;margin:0;background:#fff;padding:7px 26px 7px 9px;font-size:12px;min-height:36px}
.friend-chat-actions{display:flex;align-items:center;gap:4px;min-width:0}
.friend-chat-actions .friend-chat-select{max-width:165px;width:100%;text-overflow:ellipsis;min-width:60px}
.friend-icon-button{display:grid;place-items:center;flex:0 0 auto;width:34px;height:36px;padding:0;border:0;border-radius:7px;background:transparent;color:#8293a6;font-size:22px}
.friend-icon-button:hover{background:#edf4fa;color:#37779f}
.friend-messages{height:clamp(320px,51svh,560px);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c9d9e6 transparent;padding:24px 4px 12px;outline-offset:2px}
.friend-empty{display:flex;height:100%;flex-direction:column;justify-content:center;align-items:center;color:#8a95a7;font-size:13px;gap:12px}
.friend-empty img{width:150px;height:140px;object-fit:contain;opacity:.8}
.friend-message{max-width:94%;margin:0 0 24px;animation:friend-arrive 180ms ease-out both;min-width:0}
.friend-message-user{margin-left:auto;max-width:90%}
.friend-speaker{display:block;font-size:10px;color:#8a95a7;margin-bottom:6px}
.friend-message-user>.friend-speaker{text-align:right}
.friend-bubble{padding:13px 16px;border:1px solid #e4eaf2;background:#f8fafc;border-radius:4px 15px 15px 15px;font-size:15px;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere;color:#344b62}
.friend-message-user .friend-bubble{background:#eff6fc;border-color:#dbe9f5;border-radius:15px 4px 15px 15px}
.friend-bubble[hidden],.friend-vocabulary[hidden],.friend-send[hidden],.friend-signin[hidden]{display:none}
.friend-formats{display:flex;flex-wrap:wrap;gap:3px;padding-top:7px}
.friend-message-user .friend-formats{justify-content:flex-end}
.friend-formats button{border:0;background:transparent;padding:5px 8px;min-height:30px;border-radius:6px;color:#8a95a7;font-size:11px}
.friend-formats button:hover{background:#f2f6fa;color:#416c91}
.friend-formats button[aria-pressed=true]{background:#e9f2f9;color:#37779f;font-weight:600}
.friend-original{margin:0 0 7px;font-size:11px;color:#8a95a7;overflow-wrap:anywhere}
.friend-original summary{cursor:pointer;width:fit-content}
.friend-original p{white-space:pre-wrap;line-height:1.7;margin:5px 0}
.friend-vocabulary{margin-top:10px;min-width:0}
.friend-vocabulary .word-table{table-layout:fixed}
.friend-vocabulary .table-word{font-size:17px}
.friend-vocabulary .table-reading,.friend-vocabulary .table-meaning{font-size:12px}
.friend-vocabulary .word-table th{font-size:11px;padding:8px 6px}
.friend-vocabulary .word-table td{padding:10px 6px}
.friend-vocabulary .word-table .favorite-column{width:32px}
.friend-vocabulary .word-table .word-column{width:27%}
.friend-vocabulary .word-table .reading-column{width:29%}
.friend-vocabulary .word-table .meaning-column{width:auto}
.friend-table-loading{font-size:12px;color:#8a95a7;padding:12px 0}
.friend-connection{display:flex;align-items:center;gap:5px;min-height:34px}
.friend-status{flex:1;margin:0;color:#8a95a7;font-size:11px;line-height:1.6}
.friend-connection .friend-icon-button{font-size:18px;width:30px;height:30px}
.friend-compose{position:relative;border:1px solid #d9e5ef;border-radius:13px;background:#fcfdff;box-shadow:0 4px 12px #29476006}
.friend-compose:focus-within{border-color:#8bb4d4;box-shadow:0 0 0 3px #e8f2fa}
.friend-compose textarea{border:0;background:transparent;resize:none;min-height:83px;max-height:180px;margin:0;padding:13px 53px 13px 14px;line-height:1.75;font-size:14px;outline:none;box-shadow:none}
.friend-compose textarea::placeholder{color:#9ba8b8}
.friend-send{position:absolute;bottom:12px;right:11px;border:0;border-radius:10px;width:35px;height:35px;background:#448ab8;color:white;font-size:24px;padding:0;line-height:1}
.friend-send:hover{background:#3478a5}
.friend-send:disabled{background:#d6e2eb;opacity:1;color:#91a6b6}
.friend-stop{font-size:13px}
.friend-scene-form{display:grid;gap:18px;padding:24px 0 8px}
.friend-scene-form label{display:grid;gap:8px;margin:0;font-size:13px;color:#526b82}
.friend-scene-form textarea{width:100%;min-width:0;resize:vertical;min-height:86px;max-height:240px;margin:0;padding:12px;border:1px solid #d9e5ef;border-radius:10px;background:#fcfdff;font:inherit;font-size:13px;line-height:1.75;box-sizing:border-box}
.friend-scene-form textarea::placeholder{color:#929fb0}
.friend-scene-form textarea:focus{outline:2px solid #a5c8e1;outline-offset:2px}
.friend-scene-form textarea:read-only{opacity:.7}
.friend-scene-note{margin:0;color:#8a95a7;font-size:11px;line-height:1.8;overflow-wrap:anywhere}
.friend-scene-actions{display:flex;align-items:center;gap:8px}
.friend-scene-actions .primary{min-height:42px;padding:10px 20px;border-radius:9px}
.friend-scene-actions .friend-icon-button{font-size:13px}
.friend-scene-summary{margin:14px 0 0;color:#7a8ca0;font-size:11px;overflow-wrap:anywhere}
.friend-scene-summary summary{cursor:pointer;padding:5px 0;line-height:1.6}
.friend-scene-summary p{margin:5px 0;white-space:pre-wrap;line-height:1.7}
.friend-study-bubble{line-height:2.1;padding-top:20px}
.friend-study-bubble ruby{ruby-position:over;ruby-align:center}
.friend-study-bubble rt{font-size:.55em;color:#7892a9;font-weight:400;line-height:1.3}
.friend-gloss{margin:9px 3px 0;font-size:11px;line-height:1.9;color:#72849a;overflow-wrap:anywhere}
.friend-gloss small{font-size:inherit;color:#8a98aa}
.friend-gloss-separator{color:#becbd6}
.friend-feedback{display:flex;align-items:baseline;gap:7px;margin:9px 0 0;font-size:11px;line-height:1.7;color:#72849a;overflow-wrap:anywhere}
.friend-feedback strong{flex:0 0 auto;padding:1px 7px;border-radius:5px;background:#eaf4fb;color:#447caa;font-size:11px;font-weight:600}
.friend-scene-actions [hidden]{display:none}
.friend-typing{display:flex;gap:5px;padding:14px;align-items:center}
.friend-typing i{width:5px;height:5px;background:#6ca6cd;border-radius:50%;animation:friend-thinking 750ms ease-in-out infinite alternate}
.friend-typing i:nth-child(2){animation-delay:120ms}.friend-typing i:nth-child(3){animation-delay:240ms}
@keyframes friend-arrive{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@keyframes friend-thinking{to{opacity:.25;transform:translateY(-3px)}}
@media(min-width:801px) and (max-width:900px){.tutor-described strong{font-size:12px}.tutor-described small{font-size:8px}}
@media(max-width:500px){.whale-friend-view{padding:19px 14px}.friend-heading{min-height:100px;margin-bottom:9px;gap:4px}.friend-heading h1{font-size:22px}.friend-mascot{width:100px;height:100px}.friend-toolbar{gap:6px}.friend-chat-actions .friend-chat-select{max-width:112px}.friend-toolbar select{font-size:11px;padding-right:16px}.friend-icon-button{width:28px}.friend-messages{height:450px;height:clamp(330px,53svh,500px);padding-top:19px}.friend-message{max-width:100%}.friend-message-user{max-width:94%}.friend-bubble{font-size:14px;padding:11px 13px}.friend-vocabulary .word-table th{font-size:9px;letter-spacing:-.03em}.friend-vocabulary .table-word{font-size:15px}.friend-vocabulary .table-reading,.friend-vocabulary .table-meaning{font-size:11px}.tutor-description{font-size:10px}}
@media(prefers-reduced-motion:reduce){.friend-mascot,.friend-message,.friend-typing i{animation:none}}
