.workspace .chat-card,.public-shell .chat-card{border-radius:10px}
.workspace .aside-card,.workspace .panel{border-radius:10px}
.workspace .message.assistant,.workspace .message.user,.public-shell .message.assistant,.public-shell .message.user{border-radius:8px}
.workspace .suggestion,.public-shell .suggestion{border-radius:6px}
.workspace .btn,.public-shell .btn,.workspace .chat-compose button{border-radius:7px}
.workspace .field input,.workspace .field textarea,.workspace .field select,.workspace .inline-form input{border-radius:7px}
.workspace .notice,.workspace .code-box,.workspace .assistant-card{border-radius:8px}
.avatar.brand-avatar{background:#fff;border:1px solid #e8ebf1;border-radius:8px;padding:5px}
.avatar.brand-avatar img{display:block;width:100%;height:100%;object-fit:contain}
.workspace-heading .assistant-list-button{background:#eef3ff;border:1px solid #d5e0f5;color:#2457a7;padding:12px 16px;gap:10px;font-size:12px;font-weight:700;border-radius:7px}
.workspace-heading .assistant-list-button:hover{background:#e3ecff}
.workspace .scope-note{font-size:11px;color:#7b8493;line-height:1.8;margin-top:9px}
.rank-guide-title{display:flex;align-items:center;gap:10px}
.rank-guide-title img{width:34px;height:34px}
.rank-guide-title span{font-size:11px;color:#7b8493}
.rank-guide .rank-guide-title h3{margin:3px 0 0;font-size:18px}
.rank-stats{display:flex;gap:25px;margin:20px 0}
.rank-stats dt{font-size:11px;color:#7b8493;margin-bottom:5px}
.rank-stats dd{margin:0;font-size:15px;font-weight:700;color:#111}
.rank-progress-label{display:flex;justify-content:space-between;font-size:11px;color:#657086}
.rank-guide progress{appearance:none;width:100%;height:5px;border:0;display:block;margin:10px 0;background:#edf0f5}
.rank-guide progress::-webkit-progress-bar{background:#edf0f5}
.rank-guide progress::-webkit-progress-value{background:#1769ff}
.rank-guide progress::-moz-progress-bar{background:#1769ff}
.rank-guide .rank-next{font-size:11px;margin:0 0 16px}
.rank-guide details{border-top:1px solid #edf0f5;padding-top:14px}
.rank-guide summary{cursor:pointer;font-size:12px;font-weight:600;color:#303744}
.rank-levels{list-style:none;padding:0;margin:12px 0}
.rank-levels li{display:flex;justify-content:space-between;padding:7px 0;font-size:12px;color:#808898}
.rank-levels li[aria-current]{color:#1769ff;font-weight:700}
.rank-levels small{font-size:10px;margin-left:7px}
.rank-guide details p{font-size:10px;line-height:1.8;margin-top:10px}
@media(max-width:760px){.workspace-heading .assistant-list-button{padding:10px 12px;font-size:11px;gap:7px}}
.social-auth{text-align:center;padding:12px 0 3px}
.auth-mark{width:45px;height:45px;margin-bottom:18px}
.social-buttons{display:grid;gap:10px;margin:25px 0 18px}
.social-button{width:100%;min-height:50px;border-radius:7px;font-weight:650;justify-content:center;position:relative}
.social-kakao{background:#fee500;color:#191919;border:1px solid #fee500}
.social-google{background:#fff;color:#242424;border:1px solid #dadce0}
.social-symbol{position:absolute;left:18px;font-size:19px;font-weight:700}
.social-button small{font-size:10px;font-weight:400;margin-left:8px}
.social-auth .auth-note,.social-auth .auth-setup{font-size:11px;line-height:1.8;margin-bottom:0}
.social-auth .auth-setup{color:#68758b;margin-top:10px}
.social-button:disabled{opacity:.65;cursor:not-allowed}
.social-kakao:hover:not(:disabled),.social-kakao:active:not(:disabled){background:#f4dc00;color:#191919;border-color:#f4dc00;transform:none}
.social-google:hover:not(:disabled),.social-google:active:not(:disabled){background:#f6f7f9;color:#242424;border-color:#c5cad3;transform:none}
.social-button:focus-visible{outline:2px solid #1769ff;outline-offset:3px}
.social-button:disabled:hover{transform:none;filter:none}
.social-kakao:disabled:hover{background:#fee500;color:#191919;border-color:#fee500}
.social-google:disabled:hover{background:#fff;color:#242424;border-color:#dadce0}
#modal h2[tabindex="-1"]:focus{outline:none}
.source-refresh{display:inline-flex;gap:6px;align-items:center;font-size:11px;color:#59677c;margin:6px 0}
.source-refresh input{accent-color:#1769ff}
.assistant-title{display:flex;align-items:center;gap:10px;margin-top:11px}
.assistant-title h1{margin:0}
.rename-assistant{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border:1px solid #e3e7ee;border-radius:5px;background:#fff;color:#68758a;flex-shrink:0}
.rename-assistant:hover{background:#f3f5f8;color:#111}
.account-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:24px;align-items:start}
.profile-optional{font-size:11px;font-weight:400;color:#788396;margin-left:7px}
.account-status-row{display:flex;justify-content:space-between;gap:15px;border-top:1px solid #e9edf2;padding-top:18px;font-size:12px}
.account-status-row strong{font-size:12px;font-weight:600}
.account-status p{font-size:11px;line-height:1.8}
@media(max-width:760px){.account-layout{grid-template-columns:1fr}}
body.chat-only{background:#fff;overflow:hidden}
.chat-only #app{height:100dvh}
.chat-only .public-shell{width:100%;max-width:860px;height:100dvh;margin:0 auto;padding:0}
.chat-only .public-shell .chat-card{height:100%;display:flex;flex-direction:column;border-top:0;border-bottom:0;border-radius:0}
.chat-only .public-shell .messages{flex:1;height:auto;min-height:0;overflow-y:auto}
.chat-only .chat-head,.chat-only .chat-compose,.chat-only .chat-foot,.chat-only .public-login{flex-shrink:0}
.chat-only .public-login{margin:0;padding:10px 16px}
select:not([multiple]):not([size]),select[size="1"]:not([multiple]){-webkit-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='m1 1.5 5 5 5-5' stroke='%23758091' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:12px 8px;padding-right:36px}
@media(max-width:760px){.workspace .chat-layout{display:flex;flex-direction:column}.workspace .chat-layout aside{display:contents}.workspace .chat-layout .share-setup-card{order:-1}}
.workspace,.workspace [role="tabpanel"],.workspace .panel,.workspace .field,.workspace .share-grid>*,.workspace .form-grid>*{min-width:0}
.workspace .panel{max-width:100%}
.workspace .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
.workspace .field{align-content:start}
.workspace .share-grid{grid-template-columns:minmax(0,1fr) 280px}
.workspace input,.workspace textarea,.workspace select{min-width:0;max-width:100%}
.workspace .code-box{min-width:0;max-width:100%;overflow-x:auto;overflow-wrap:anywhere;word-break:break-word}
.source-url-form .btn{flex-shrink:0}
.source-add-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.material-add .upload-help{font-size:11px;line-height:1.8;margin:12px 0 0}
.source-list-header{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px;flex-wrap:wrap}
.source-list-header h2{margin:0 0 5px}
.source-list-header h2 span{color:#1769ff}
.source-list-header p{font-size:11px;color:#7b8493}
.source-page-size{display:flex;align-items:center;gap:8px;font-size:11px;color:#657086}
.source-page-size select{font:inherit;padding:7px 10px;border:1px solid #e1e6ed;border-radius:5px;background:white}
.source-update{display:flex;align-items:center;gap:8px 18px;flex-wrap:wrap;margin-top:8px;font-size:10px;color:#7b8493}
.source-update .source-refresh{margin:0;white-space:nowrap}
.material-list .source-row{min-width:0}
.material-list .source-icon{flex-shrink:0}
.material-list .source-tools{align-items:center;gap:8px}
.material-list .source-tools button,.material-list .source-tools select{min-height:32px;border-radius:5px;line-height:1.4}
.source-pagination{display:flex;justify-content:center;align-items:center;gap:12px;border-top:1px solid #e9edf2;padding-top:20px;margin-top:10px}
.source-page-numbers{display:flex;gap:4px;flex-wrap:wrap;justify-content:center}
.source-page-numbers button{min-width:32px;height:32px;background:#fff;border-radius:5px;font-size:12px;color:#657086}
.source-page-numbers button[aria-current="page"]{background:#edf3ff;color:#1769ff;font-weight:700}
.source-pagination button:disabled{cursor:default;opacity:.4}
@media(max-width:900px){.workspace .share-grid{grid-template-columns:minmax(0,1fr)}.workspace .widget-preview{max-width:420px;width:100%}}
@media(max-width:760px){.workspace .form-grid{grid-template-columns:minmax(0,1fr)}.source-url-form{align-items:stretch}.source-url-form input{flex-basis:100%;width:100%}.source-url-form .btn{width:100%}.material-list .source-row{gap:10px}.source-pagination{gap:6px}.source-pagination>.btn{padding:9px 10px}.source-page-numbers button{min-width:28px}.workspace .tabs{gap:18px}.workspace .tab{flex-shrink:0}.workspace-heading>div{min-width:0}.assistant-title h1{overflow-wrap:anywhere}}
@media(max-width:760px){.app-header .nav{gap:12px}.app-header .brand{font-size:23px;gap:6px}.app-header .brand-symbol{width:28px;height:28px}.app-header .wordmark-domain{display:none}.app-header .nav-actions{gap:8px}.app-header .nav-actions .btn{padding:10px 12px}.app-header .nav-actions .text-link{font-size:11px;white-space:nowrap}.workspace-heading{gap:14px}.assistant-title{align-items:flex-start}.assistant-title h1{min-width:0;line-height:1.4}}
/* Enrollment stays in the settings flow; a compact standalone screen serves students. */
.student-registration{display:grid;grid-template-columns:1fr 1fr;gap:32px;margin:25px 0 32px}
.student-registration>section{min-width:0}
.student-registration>section+section{border-left:1px solid #e5e8ef;padding-left:32px}
.student-management h3{font-size:16px;margin:0 0 12px}
.student-registration p,.student-registration small,.student-join>small{color:#7c8595;font-size:12px;line-height:1.8}
.student-registration>section>small{display:block;margin-top:14px}
.student-registration textarea{min-height:130px}
.student-list-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #e5e8ef;padding-bottom:12px}
.student-list-heading h3{margin:0}.student-list-heading span{font-size:12px;color:#7c8595}
.student-row,.invitation-row{display:flex;align-items:center;gap:12px;border-bottom:1px solid #edf0f5;padding:14px 0;font-size:12px}
.student-row>div,.invitation-row>div{flex:1;min-width:0;overflow-wrap:anywhere}
.student-row small,.invitation-row small{display:block;font-size:11px;color:#7c8595;margin-top:4px}
.student-row .text-button,.invitation-row button{flex-shrink:0}.invitation-row .btn{padding:8px 12px;font-size:12px}
.student-join{width:min(440px,100%);padding:64px 24px;margin:0 auto;box-sizing:border-box}
.student-join h1{font-size:26px;line-height:1.5;overflow-wrap:anywhere;margin:16px 0}
.student-join>p{font-size:14px;line-height:1.9;color:#7c8595}.student-join form{margin:32px 0 20px}
.student-join label small{font-weight:400;color:#7c8595}
body.chat-only.student-page{overflow:auto}.student-page .public-shell{height:auto;min-height:100dvh}.student-join .btn{border-radius:7px}
.student-row .member-role{width:110px;flex:0 0 110px;min-width:0;height:36px;padding-left:10px;font-size:12px}
.activity-table-wrap{overflow-x:auto;width:100%}.activity-table{width:100%;min-width:680px;border-collapse:collapse;font-size:12px;text-align:left}
.activity-table th{background:#f6f7f9;color:#727b8b;font-weight:500;padding:12px;border-bottom:1px solid #e5e8ef}
.activity-table td{padding:14px 12px;border-bottom:1px solid #edf0f5;vertical-align:top;overflow-wrap:anywhere}
.activity-table td:first-child{width:150px}.activity-table small{display:block;margin-top:4px;color:#7c8595;font-size:11px}
.activity-pager{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:18px;font-size:12px;color:#7c8595}.activity-pager>span{margin-right:auto}
.activity-pager .btn{padding:8px 12px;font-size:12px}
.chat-card .chat-compose{display:block}
.chat-compose-row{display:flex;align-items:flex-end;gap:12px;min-width:0}
.chat-compose-row textarea{flex:1;min-width:0}
.chat-compose-tools{display:flex;align-items:center;gap:8px;margin-top:6px}
.chat-compose-tools .attach-question-image{width:30px;height:30px;min-height:0;padding:3px;background:transparent;color:#717d8e;border-radius:6px}
.chat-compose-tools .attach-question-image:hover{background:#edf1f7;transform:none}
.chat-compose-tools small{font-size:10px;color:#8b94a2}
.question-image-preview{display:flex;align-items:center;gap:12px;border:1px solid #e5e9f1;border-radius:8px;padding:9px;margin-bottom:12px;min-width:0}
.question-image-preview[hidden]{display:none}.question-image-preview>img{width:56px;height:56px;object-fit:cover;border-radius:5px}
.question-image-preview>div{flex:1;min-width:0}.question-image-preview strong{font-size:12px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.question-image-preview small{display:block;font-size:10px;color:#8b94a2;margin-top:5px}
.question-image-preview .remove-question-image{padding:3px 8px;border-radius:5px;background:#f2f4f7;color:#7a8492;font-size:20px}
.question-images{margin-bottom:10px}.question-images img{display:block;max-width:min(100%,320px);max-height:300px;min-height:50px;object-fit:contain;border-radius:6px;background:#f4f6f9}
.question-images .image-unavailable{font-size:11px;color:#7a8492;padding:12px}
.message.answer-pending{display:flex;align-items:center;gap:10px;min-height:48px}
.answer-spinner{width:17px;height:17px;flex:0 0 17px;border:2px solid #e1e8f4;border-top-color:#1769ff;border-radius:50%;animation:answer-spin .9s linear infinite}
.answer-shimmer{font-size:12px;background:linear-gradient(100deg,#727d90 20%,#b8c6e0 40%,#1769ff 50%,#b8c6e0 60%,#727d90 80%);background-size:220% 100%;background-clip:text;-webkit-background-clip:text;color:transparent;animation:answer-shimmer 2.4s linear infinite}
@keyframes answer-spin{to{transform:rotate(360deg)}}@keyframes answer-shimmer{from{background-position:200% 0}to{background-position:-20% 0}}
@media(prefers-reduced-motion:reduce){.answer-spinner,.answer-shimmer{animation:none}.answer-shimmer{background:none;color:#727d90}}
.settings-savebar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:0 2px 28px}
.settings-savebar>p{font-size:12px;color:#7c8595}.settings-savebar .form-error{flex-basis:100%;margin:0}
.inline-load-error{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 0;color:#7c8595;font-size:12px}
.inline-load-error strong{font-size:12px;font-weight:500;color:#667185}.inline-load-error p{font-size:11px;margin-top:4px}
.inline-load-error .btn{flex-shrink:0}
@media(max-width:700px){.student-registration{grid-template-columns:1fr;gap:28px}.student-registration>section+section{border-left:0;border-top:1px solid #e5e8ef;padding:24px 0 0}.student-row{flex-wrap:wrap}.student-list-heading{align-items:flex-start;flex-direction:column}.student-join{padding-top:40px}}

.phone-input-action{display:flex;gap:8px}.phone-input-action input{min-width:0;flex:1}.phone-input-action .btn{white-space:nowrap}.phone-status{font-size:13px;color:#1769ff}.phone-verification h2{font-size:18px}.phone-verification .billing-muted{font-size:12px}.account-layout>aside .panel+.panel{margin-top:20px}.learning-list{border-top:1px solid #e1e5ed}.learning-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px 0;border-bottom:1px solid #e1e5ed}.learning-row h2{font-size:18px;font-weight:600;margin:0 0 8px}.learning-row p,.learning-help{font-size:13px;color:#7c8390;line-height:1.8}.learning-help{margin-top:24px}.student-entry{font-size:13px;color:#7c8390;margin-top:18px}.student-entry a{color:#1769ff;margin-left:6px}@media(max-width:600px){.learning-row{align-items:flex-start;gap:12px}.learning-row .btn{font-size:12px;padding:10px;white-space:nowrap}.phone-input-action .btn{padding:10px;font-size:12px}}

.chat-foot p{margin:0;line-height:1.5}.chat-branding{display:inline-flex;align-items:center;justify-content:center;gap:4px;margin-top:7px;color:#8b9099;font-size:10px;font-weight:500;line-height:1.4}.chat-branding img{display:block;width:13px;height:13px;filter:grayscale(1);opacity:.65}.chat-branding:hover{color:#555e6b;text-decoration:none}.chat-branding:focus-visible{outline:2px solid #79aaff;outline-offset:3px;border-radius:2px}

.assistant-delete-panel{margin-top:32px}.assistant-delete-panel h2{font-size:18px}.assistant-delete-panel p{margin-bottom:16px}.delete-assistant-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}#delete-assistant-form{margin-top:24px}

body:not(.chat-only):not(.embedded) #app{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
body:not(.chat-only):not(.embedded) #app>main{flex:1 0 auto;width:100%}
body:not(.chat-only):not(.embedded) #app>header,body:not(.chat-only):not(.embedded) #app>footer{flex-shrink:0}

.source-site-group{border-bottom:1px solid #e5e8ef;padding:22px 0}.source-site-group:last-child{border-bottom:0}.source-group-heading{display:flex;gap:14px;align-items:flex-start}.source-group-heading h3{font-size:15px;font-weight:600;margin:0;overflow-wrap:anywhere}.source-group-heading p{font-size:12px;color:#7e8898;margin:7px 0 12px;overflow-wrap:anywhere}.source-site-group details{margin:16px 0 0 54px}.source-site-group summary{cursor:pointer;font-size:13px;font-weight:500;color:#1769ff}.source-site-group details>.source-row{padding:16px 0}.source-site-group [data-source-group-content]{padding-top:12px}.source-site-group .source-tools{flex-wrap:wrap}@media(max-width:600px){.source-site-group details{margin-left:0}.source-group-heading{gap:10px}}

.material-usage{border-bottom:1px solid #e5e8ef;padding:0 0 26px;margin-bottom:26px}.material-usage-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.material-usage h2{font-size:17px;font-weight:600;margin:0}.material-usage-heading p{font-size:12px;color:#7e8898;margin:8px 0}.material-usage-charts{display:flex;gap:48px;flex-wrap:wrap;margin-top:16px}.material-usage-item{display:flex;gap:16px;align-items:center}.material-usage-item svg{width:90px;height:90px;flex-shrink:0}.material-usage-item text{font-family:inherit;font-size:13px;font-weight:600;fill:#252933}.material-usage-item h3{font-size:14px;font-weight:600;margin:0 0 8px}.material-usage-item p{font-size:13px;color:#7e8898;margin:0 0 5px}.material-usage-item strong{font-weight:600;color:#252933}.material-usage-item small{font-size:11px;color:#7e8898}@media(max-width:600px){.material-usage-charts{gap:18px}.material-usage-item{width:100%}.material-usage-heading{flex-wrap:wrap}}

.contact-page{max-width:680px;margin:0 auto;padding:36px 0 64px}.contact-page h1{font-size:28px;font-weight:700}.contact-page>p{color:#7e8898;margin:12px 0 30px}.contact-page .field{margin-bottom:20px}.contact-page textarea{min-height:190px}.inquiry-consent{display:flex;gap:10px;font-size:12px;color:#7e8898;line-height:1.7;margin:22px 0}.inquiry-consent input{flex-shrink:0;margin-top:4px}.contact-page [type=submit]{margin-top:16px}

.account-login-info{border-bottom:1px solid #e5e8ef;padding:0 0 24px;margin:0 0 26px}.account-login-info h2{font-size:16px;font-weight:600;margin:0 0 18px}.account-login-info dl{display:grid;grid-template-columns:1fr 1fr 1.5fr;gap:20px;margin:0}.account-login-info dt{font-size:12px;color:#7e8898;margin-bottom:8px}.account-login-info dd{font-size:14px;font-weight:500;margin:0;overflow-wrap:anywhere}.login-info-empty{color:#7e8898;font-size:13px;font-weight:400}@media(max-width:600px){.account-login-info dl{grid-template-columns:1fr;gap:16px}}

.rank-guide .rank-goal{margin:16px 0 0;line-height:1.8}.rank-guide .rank-goal strong{font-weight:600;color:#1769ff}

.capacity-notice{padding:20px;border:1px solid #dce5f7;background:#f8faff;border-radius:8px;margin-bottom:20px}.capacity-notice h2{font-size:16px;font-weight:600;margin:0 0 12px}.capacity-notice p{font-size:13px;color:#7e8898;line-height:1.7}.capacity-notice dl{font-size:12px;line-height:1.8;margin:14px 0}.capacity-notice dt{font-weight:600}.capacity-notice dd{margin:0 0 8px;overflow-wrap:anywhere}.capacity-notice .source-tools{display:flex;flex-wrap:wrap;gap:8px}
