.hub-view-tabs{display:flex;gap:30px;border-bottom:1px solid #e7dfd3;margin-top:20px}
.swal2-popup.ai-identity-popup{padding:30px 30px 36px;border:1px solid #f1e2cf;border-radius:26px;box-shadow:0 24px 80px #39291633;font-family:Inter,'Noto Sans Thai',sans-serif}
.ai-identity-popup .swal2-icon.ai-identity-icon{display:flex;width:100%;height:200px;margin:0 auto 22px;border:0;border-radius:0;background:none;font-size:inherit}
.ai-identity-icon .swal2-icon-content{width:100%;height:100%}
.ai-code-scene{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:100%;isolation:isolate;background:radial-gradient(ellipse at 50% 60%,#ffb77830,transparent 70%)}
.ai-code-orbit{position:absolute;inset:7px 25px;border:1px solid #ebcdb87a;border-radius:50%;transform:rotate(-12deg);z-index:-1}
.ai-code-window{width:calc(100% - 42px);max-width:380px;overflow:hidden;border:1px solid #ffffff26;border-radius:13px;background:#171c29;text-align:left;box-shadow:0 15px 30px #21233426;animation:ai-window-enter .65s ease-out both}
.ai-code-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;height:34px;padding:0 12px;background:#242b3c;border-bottom:1px solid #ffffff0d;color:#aeb6c8;font:10px/1.2 ui-monospace,Consolas,monospace}
.ai-code-dots{display:flex;gap:5px}.ai-code-dots b{width:6px;height:6px;border-radius:50%;background:#f48473}.ai-code-dots b:nth-child(2){background:#eac66d}.ai-code-dots b:nth-child(3){background:#7dd5b1}
.ai-code-language{font-size:8px;letter-spacing:1px;color:#f5ab73}
.ai-code-body{padding:17px 12px 15px;color:#dce3f1;font:11px/23px ui-monospace,Consolas,monospace;letter-spacing:0}
.ai-code-body>div{display:flex;align-items:center;white-space:nowrap}
.ai-code-body em{flex:0 0 26px;color:#59657c;font-size:9px;font-style:normal;user-select:none}
.ai-code-line{display:inline-block;overflow:hidden;max-width:0;white-space:pre;font:inherit;animation:ai-code-type 1s steps(30,end) forwards}
.ai-code-line span{color:#c3a5ff}.ai-code-line strong{color:#8bd9b6;font-weight:400}
.ai-code-line-1{animation-delay:.35s}.ai-code-line-2{animation-delay:1.15s}.ai-code-line-3{animation-delay:2s}.ai-code-line-4{animation-delay:2.9s}
.ai-code-cursor{display:inline-block;width:5px;height:12px;margin-left:5px;background:#ffa36b;vertical-align:middle;animation:ai-cursor-blink 1s steps(1) infinite}
.ai-code-status{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:8px 12px;border-top:1px solid #ffffff0b;color:#78869e;font:8px/1.3 ui-monospace,Consolas,monospace;letter-spacing:.4px}
.ai-code-status i{display:inline-block;width:5px;height:5px;margin-right:5px;border-radius:50%;background:#83d6af;box-shadow:0 0 7px #83d6af60}
.ai-code-badge{position:absolute;right:4px;bottom:8px;display:flex;align-items:center;gap:6px;padding:9px 12px;border:1px solid #ffceaa;border-radius:10px;background:#fff4e8;color:#b7480d;box-shadow:0 5px 15px #60391516;font:700 10px/1.2 Inter,sans-serif;letter-spacing:1px;animation:ai-badge-float 4s ease-in-out infinite}
.ai-code-badge svg{width:17px;height:17px}
@keyframes ai-code-type{to{max-width:100%}}
@keyframes ai-cursor-blink{50%{opacity:0}}
@keyframes ai-window-enter{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@keyframes ai-badge-float{50%{transform:translateY(-5px)}}
@media(max-width:480px){.ai-identity-popup .swal2-icon.ai-identity-icon{height:180px;margin-bottom:20px}.ai-code-window{width:calc(100% - 14px)}.ai-code-body{font-size:9px;padding:12px 9px}.ai-code-body em{flex-basis:20px}.ai-code-badge{right:0;bottom:0;font-size:9px;padding:8px 10px}.ai-code-status{font-size:7px}}
@media(prefers-reduced-motion:reduce){.ai-code-window,.ai-code-line,.ai-code-cursor,.ai-code-badge{animation:none}.ai-code-line{max-width:100%}}
.ai-identity-popup .swal2-title.ai-identity-title{padding:0;font-size:23px;font-weight:800;line-height:1.5;color:#352a21}
.ai-identity-popup .swal2-html-container.ai-identity-content{margin:8px 0 0;padding:0;overflow:visible}
.ai-identity-form{text-align:left}
.ai-identity-caption{text-align:center;margin:0 0 27px;color:#75614d;font-size:16px;font-weight:600;line-height:1.7}
.ai-identity-form>label{display:block;margin:18px 0 8px;color:#574638;font-size:13px;font-weight:700}
.ai-identity-field{display:flex;align-items:center;gap:12px;border:1px solid #e8ddcf;border-radius:13px;background:#fff;padding:0 15px;transition:border-color .2s,box-shadow .2s}
.ai-identity-field:focus-within{border-color:#f08442;box-shadow:0 0 0 3px #f084421a}
.ai-identity-field>i{color:#b29d86;font-size:16px;flex-shrink:0}
.ai-identity-field input{width:100%;min-width:0;height:52px;padding:0;border:0;outline:none;background:transparent;color:#352a21;font:inherit;font-size:14px}
.ai-identity-field input::placeholder{color:#aa9c8c}
.ai-identity-popup .swal2-close.ai-identity-close{top:12px;right:12px;width:32px;height:32px;border-radius:50%;background:#f4eee5;color:#9c8871;font-size:26px}
.ai-identity-popup .swal2-close.ai-identity-close:hover{background:#ffe8cf;color:#b94d0d}
.ai-identity-popup .swal2-actions{width:100%;margin:24px 0 0}
.ai-identity-popup .swal2-confirm.ai-identity-confirm{width:100%;margin:0;border-radius:12px;padding:14px 16px;font-family:inherit;font-size:14px;font-weight:700}
@media(max-width:480px){.swal2-popup.ai-identity-popup{padding:24px 20px 28px;border-radius:22px}.ai-identity-popup .swal2-title.ai-identity-title{font-size:20px}}
.hub-header-actions .forum-cta-compact{min-height:2.15rem;padding:0.3rem 0.55rem;gap:0.35rem;font-size:0.7rem;border-radius:0.7rem;color:#857461;border-color:#e7dfd3;background:#fffaf4;box-shadow:none}
.hub-header-actions .forum-cta-compact:hover{color:#d94a11;border-color:#e7ac83;box-shadow:none;transform:none}
.forum-cta-compact .forum-cta-icon{width:1.45rem;height:1.45rem;background:none;box-shadow:none}
.forum-cta-compact .forum-cta-icon svg{width:0.9rem;height:0.9rem}
.student-upload-cta{display:inline-flex;align-items:center;justify-content:center;gap:0.6rem;min-height:2.8rem;padding:0.35rem 0.9rem 0.35rem 0.4rem;border:1px solid #ed5908;border-radius:1rem;background:#f46a16;color:white;font-family:inherit;font-size:0.8rem;font-weight:800;white-space:nowrap;cursor:pointer;box-shadow:0 5px 16px #ed651f30;transition:background .2s,box-shadow .2s}
.student-upload-cta:hover{background:#d9540c;box-shadow:0 7px 20px #ed651f40}
.student-upload-icon{display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;flex-shrink:0;border-radius:0.7rem;background:#fff2e4;color:#c14a05;font-size:1.25rem}
.student-upload-cta:focus-visible{outline:3px solid #f46a16;outline-offset:3px}
.student-upload-cta>i{font-size:1.2rem}
.student-upload-mobile-label{display:none}
@media(min-width:721px) and (max-width:1350px){.hub-header{flex-wrap:wrap}.hub-header-actions{margin-left:auto}}
@media(max-width:720px){.student-upload-label{display:none}.student-upload-mobile-label{display:inline}.student-upload-cta{font-size:0.72rem;padding:0.5rem 0.65rem;gap:0.3rem}}
@media(max-width:380px){.hub-header-actions .forum-cta-compact{padding:0.3rem}.forum-cta-compact .forum-cta-mobile-label{display:none}.student-upload-cta{font-size:0.66rem;padding:0.5rem}.student-upload-cta>i{font-size:1rem}}
.hub-view-tabs button{background:none;border:0;border-bottom:2px solid transparent;padding:15px 3px;font-family:inherit;font-weight:700;font-size:15px;color:#82776a;cursor:pointer}
.hub-view-tabs button.active{color:#f46a16;border-bottom-color:#f46a16}
.hub-view-tabs button{display:inline-flex;align-items:center;justify-content:center;gap:8px}
.hub-view-tabs button>i{font-size:20px}
.hub-view-tabs #hubStudentsTab{padding:12px 17px;margin:3px 0 8px;border:1px solid #f6d2ad;border-radius:12px;background:#fff3e5;color:#a9430c;box-shadow:0 3px 10px #b65a0a0d}
.hub-view-tabs #hubStudentsTab:hover{background:#ffe8ce;border-color:#efb177}
.hub-view-tabs #hubStudentsTab.active{background:#f46a16;border-color:#f46a16;color:#fff;box-shadow:0 4px 12px #f46a1626}
#btnCat-ai-students{background:#fff2e3;color:#a9430c;border:1px solid #f5d0aa;border-left:3px solid #f46a16;font-weight:700;box-shadow:0 3px 10px #b65a0a0a}
#btnCat-ai-students:hover{background:#ffe8ce}
#btnCat-ai-students.bg-luxury-charcoal{background:#f46a16;color:#fff;border-color:#f46a16}
#btnCat-ai-students>span:first-child>i{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:8px;background:#ffe1bc;color:#b14a0c;font-size:17px}
#btnCat-ai-students.bg-luxury-charcoal>span:first-child>i{background:#ffffff26;color:#fff}
.hub-view-tabs button:focus-visible,.student-submit:focus-visible,.student-project-link:focus-visible{outline:3px solid #f46a16;outline-offset:4px}
.student-gallery-header[hidden]{display:none}
.student-gallery-header{padding:26px 0 0}
.student-gallery-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}
.student-gallery-heading h2{font-size:26px;font-weight:800;color:#29241f;margin:0 0 6px}
.student-gallery-heading p{font-size:14px;color:#82776a;margin:0}
.student-submit{border:1px solid #f46a16;background:transparent;color:#e95e0e;border-radius:12px;padding:12px 18px;font-size:14px;font-weight:700;display:flex;gap:8px;align-items:center;cursor:pointer;white-space:nowrap}
.student-submit:hover{background:#fff1e6}
.student-cohort-label{display:flex;align-items:center;gap:12px;margin-top:22px;font-size:13px;color:#82776a}
.student-cohort-label select{padding:8px 14px;border:1px solid #e7dfd3;border-radius:20px;background:white;color:#443a30;max-width:260px}
#workspaceGrid.student-gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.student-project-card{min-width:0;overflow:hidden;border-radius:16px;background:#fff;box-shadow:0 3px 16px #49321108;border:1px solid #efe8de}
.student-project-link{display:block;height:100%;text-decoration:none;color:inherit;transition:background .2s}
.student-project-link:hover{background:#fffaf4}
.student-project-preview{position:relative;aspect-ratio:16/9;background:#f5f1ea;overflow:hidden;display:flex;align-items:center;justify-content:center}
.student-project-preview>img{width:100%;height:100%;object-fit:contain}
.student-project-preview>i{font-size:48px;color:#ac9c87}
.student-project-badge{position:absolute;top:12px;left:12px;padding:5px 11px;background:#f46a16;color:white;font-size:11px;font-weight:700;border-radius:18px}
.student-project-body{padding:17px 18px}
.student-project-body h3{font-size:18px;font-weight:800;margin:0 0 6px;overflow-wrap:anywhere}
.student-project-body>p{font-size:13px;line-height:1.7;color:#82776a;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:44px;margin:0}
.student-project-creator{display:flex;align-items:center;gap:10px;margin-top:18px}
.student-project-creator>i:first-child{font-size:30px;color:#a39481}
.student-project-creator>div{flex:1;min-width:0}
.student-project-creator strong{display:block;font-size:12px;overflow-wrap:anywhere}
.student-project-creator span{display:block;font-size:11px;color:#968978;margin-top:3px}
.student-project-creator>i:last-child{color:#f46a16;font-size:20px}
.student-inline-badge{display:inline-flex;gap:5px;align-items:center;color:#b54b0a;background:#fff0df;border-radius:20px;padding:3px 8px;font-size:9px;font-weight:700}
@media(max-width:1100px){#workspaceGrid.student-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.hub-view-tabs{gap:20px}.hub-view-tabs button{font-size:13px}.student-gallery-heading{align-items:flex-start;flex-direction:column;gap:14px}.student-gallery-heading h2{font-size:23px}#workspaceGrid.student-gallery-grid{grid-template-columns:1fr}.student-submit{font-size:13px}.student-project-body h3{font-size:17px}}
@media(max-width:380px){.hub-view-tabs{gap:10px}.hub-view-tabs #hubStudentsTab{padding:10px}.hub-view-tabs button{font-size:12px;gap:5px}.student-upload-icon{width:1.65rem;height:1.65rem;font-size:1.05rem}}
