*{box-sizing:border-box}html,body,button,input,select,textarea,table{font-family:"TH SarabunPSK","TH Sarabun PSK","TH Sarabun New","Sarabun",sans-serif!important}body{margin:0;background:#f4f7fb;color:#173856;font-size:20px}button,input,select,textarea{font-size:19px}.hidden{display:none!important}.muted{color:#73869b}.auth-page{min-height:100vh;display:grid;grid-template-columns:1.08fr .92fr}.auth-brand{background:linear-gradient(135deg,#08345f,#0a5b9a);color:white;padding:70px 9%;display:flex;flex-direction:column;justify-content:center}.auth-brand .eyebrow{font-size:15px;opacity:.9}.auth-brand h1{font-size:43px;line-height:1.25;margin:16px 0 28px}.branch-th{font-size:32px;font-weight:700}.branch-en{font-size:25px;color:#d8ebfb;margin-top:3px}.product-name{font-size:21px;margin-top:10px}.auth-wrap{display:grid;place-items:center;padding:28px}.auth-box{width:min(680px,100%);background:white;border:1px solid #dbe5ee;border-radius:18px;padding:30px;box-shadow:0 16px 45px rgba(20,55,90,.1)}.tabs{display:flex;gap:8px;margin-bottom:22px}.tab{flex:1;border:1px solid #b9cad9;background:white;padding:10px;border-radius:8px;color:#385a77}.tab.active{background:#1772c3;color:white;border-color:#1772c3}label{display:block;font-weight:700;margin-bottom:12px}input,select,textarea{width:100%;border:1px solid #c8d5e1;border-radius:8px;padding:9px 11px;background:white;margin-top:4px}.email-group{display:flex}.email-group input{border-radius:8px 0 0 8px}.email-group span{display:flex;align-items:center;padding:0 12px;border:1px solid #c8d5e1;border-left:0;border-radius:0 8px 8px 0;background:#edf2f6}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}.span2{grid-column:1/-1}.btn{border:0;border-radius:8px;padding:9px 14px;cursor:pointer}.btn.primary{background:#1772c3;color:white}.btn.outline{background:white;color:#275372;border:1px solid #b8cad9}.btn.danger{background:#b54747;color:white}.full{width:100%}.app{min-height:100vh;display:grid;grid-template-columns:285px 1fr}.sidebar{background:linear-gradient(180deg,#083764,#0b4f87);color:white;padding:20px 16px}.side-brand{padding:10px 12px 24px;border-bottom:1px solid rgba(255,255,255,.15);margin-bottom:16px}.side-brand strong{display:block;font-size:26px;margin:5px 0}.side-brand small{display:block;opacity:.8}nav{display:flex;flex-direction:column;gap:5px}nav button{background:transparent;border:0;color:#dcecff;text-align:left;padding:11px 14px;border-radius:9px;font-size:20px;cursor:pointer}nav button.active,nav button:hover{background:rgba(255,255,255,.14);color:white}.nav-section{font-size:15px;opacity:.55;margin:17px 13px 4px}.topbar{min-height:76px;background:white;border-bottom:1px solid #dbe5ee;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:10px 25px;position:sticky;top:0;z-index:5}.topbar h1{margin:0;font-size:28px}.topbar small{color:#8a9bad}.top-actions{display:flex;align-items:center;gap:8px}.userbox{display:flex;align-items:center;gap:10px;margin-left:6px}.userbox div:first-child{display:flex;flex-direction:column;text-align:right}.avatar{width:42px;height:42px;border-radius:50%;background:#1772c3;color:white;display:grid;place-items:center;font-weight:700}.content{padding:26px}.page{display:none}.page.active{display:block}.page-head{margin-bottom:18px}.page-head h2{font-size:31px;margin:0}.page-head p{margin:3px 0;color:#73869b}.notice,.msg{padding:12px 15px;border-radius:8px;margin-bottom:14px}.notice{background:#e9f4fd;border-left:4px solid #1772c3}.msg.error{background:#fde7e7;color:#a53b3b}.msg.success{background:#e3f4e9;color:#287044}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}.stat{background:white;border:1px solid #dbe5ee;border-radius:13px;padding:18px}.stat span{color:#718399}.stat strong{display:block;font-size:38px;color:#0d568f}.card,.download-box{background:white;border:1px solid #dbe5ee;border-radius:14px;padding:20px;margin-bottom:17px}.card h3,.download-box h3{margin:0 0 12px}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:14px}.toolbar.left{justify-content:flex-start}.search{max-width:360px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse}th{background:#f4f7fa;color:#536e88;text-align:left;padding:10px;border-bottom:1px solid #dbe5ee;white-space:nowrap}td{padding:10px;border-bottom:1px solid #eef2f5;vertical-align:top}.badge{display:inline-block;padding:4px 9px;border-radius:20px;font-size:16px;font-weight:700}.green{background:#e3f4e9;color:#287044}.yellow{background:#fff0cf;color:#8a5b08}.red{background:#fde7e7;color:#a53b3b}.blue{background:#e1effc;color:#15558d}.gray{background:#edf1f4;color:#607386}.photo{width:58px;height:70px;border-radius:8px;object-fit:cover;border:1px solid #d6e1eb;background:#eef3f7}.photo-placeholder{width:58px;height:70px;border-radius:8px;background:#eef3f7;display:grid;place-items:center;font-size:28px}.photo-preview{width:120px;height:145px;object-fit:cover;border-radius:10px;border:1px solid #cbd8e4;margin-top:8px}.cards2{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.cards3{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.advisor-card,.type-card,.submission-card,.review-card,.milestone-item{background:white;border:1px solid #dbe5ee;border-radius:12px;padding:16px}.advisor-card h3{margin:0;color:#0c548f}.advisor-en{color:#70859b;margin:1px 0 8px}.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.steps>div{border:1px solid #dbe5ee;border-radius:10px;padding:12px;display:flex;flex-direction:column}.steps b{color:#0d538e}.submission-card,.review-card{margin-bottom:12px}.file-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:8px}.milestone-item{display:grid;grid-template-columns:42px 1fr auto;gap:12px;align-items:center;margin-bottom:8px}.milestone-num{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#e1effc;color:#15558d;font-weight:700}.modal{position:fixed;inset:0;background:rgba(5,28,52,.55);z-index:100;display:grid;place-items:center;padding:20px}.modal-box{background:white;width:min(800px,100%);max-height:92vh;overflow:auto;border-radius:16px;padding:24px}.modal-box.small{width:min(520px,100%)}.center{text-align:center}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.icon-btn{width:36px;height:36px;border:0;border-radius:50%;font-size:24px}.checkbox{font-weight:400}.checkbox input{width:auto;margin-right:8px}@media(max-width:1050px){.auth-page{grid-template-columns:1fr}.auth-brand{display:none}.app{grid-template-columns:86px 1fr}.side-brand div,.side-brand small,.side-brand strong,nav span,.nav-section{display:none}nav button{text-align:center}.stats{grid-template-columns:1fr 1fr}.cards2,.cards3,.steps{grid-template-columns:1fr}}@media(max-width:720px){.grid2,.stats{grid-template-columns:1fr}.span2{grid-column:auto}.content{padding:14px}.topbar{align-items:flex-start}.userbox{display:none}.search{max-width:none}}@media print{.sidebar,.topbar,.no-print,.modal{display:none!important}.app{display:block!important}.content{padding:0}.page{display:none!important}.page.active{display:block!important}body{background:white}@page{size:A4;margin:12mm}}


/* ===== Guide page: complete version 2026-09-18.2 ===== */
.guide-page-head{background:linear-gradient(135deg,#f8fbff,#eef7ff);border:1px solid #d7e7f4;border-radius:14px;padding:18px 20px}.guide-page-head h2{color:#0b4f8d}.guide-quote{margin-top:8px;color:#155fa4;font-size:22px;font-weight:700;font-style:italic}.guide-ack-card{border:2px solid #f0c95f;background:#fffdf5}.guide-section-title{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;font-size:25px;font-weight:700;color:#0a5597;margin-bottom:14px;padding-bottom:8px;border-bottom:2px solid #d7e9f8}.guide-section-title>span{background:#0d67b7;color:white;border-radius:8px;padding:2px 9px}.guide-section-title small{font-size:18px;color:#4c78a0;font-weight:600;margin-left:auto}.guide-steps-detailed{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:9px}.guide-step{border:1px solid #d9e6f0;background:linear-gradient(180deg,#f8fbff,#fff);border-radius:12px;padding:12px;min-height:185px}.guide-step-num{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#126fc4;color:#fff;font-weight:700;font-size:21px;margin-bottom:8px}.guide-step b{display:block;color:#0a5597;font-size:20px;line-height:1.2}.guide-step p{margin:8px 0 0;line-height:1.35}.guide-highlight{margin-top:14px;background:linear-gradient(90deg,#fff3c6,#fff9e6);border:1px solid #edd278;border-radius:12px;padding:14px 16px;display:flex;gap:10px;align-items:flex-start;flex-wrap:wrap}.guide-highlight strong{font-size:21px;color:#735a00}.guide-highlight span{flex:1;min-width:280px}.guide-two-col{display:grid;grid-template-columns:1fr 1fr;gap:16px}.guide-note{color:#5f7790;margin-top:-4px}.guide-time-table{border:1px solid #d8e5ef;border-radius:10px;overflow:hidden}.guide-time-table>div{display:grid;grid-template-columns:1fr 1fr}.guide-time-table>div:nth-child(odd){background:#f6faff}.guide-time-table b,.guide-time-table strong{padding:10px 12px}.guide-time-table strong{background:#fff5d7;color:#0d5a9c}.guide-footnote{margin-top:11px;background:#fff7d8;border-radius:8px;padding:10px 12px}.guide-check-list{list-style:none;padding:0;margin:0}.guide-check-list li{position:relative;padding:8px 0 8px 32px;border-bottom:1px solid #edf2f6}.guide-check-list li:last-child{border-bottom:0}.guide-check-list li:before{content:'✓';position:absolute;left:3px;top:7px;width:22px;height:22px;border-radius:50%;background:#26834d;color:#fff;display:grid;place-items:center;font-size:14px;font-weight:700}.guide-check-list code{font-family:inherit;background:#eef5fb;padding:2px 6px;border-radius:5px;color:#0d5796}.guide-do-dont{display:grid;grid-template-columns:1fr 1fr;gap:16px}.guide-do,.guide-dont{border-radius:12px;padding:15px}.guide-do{background:#eef9f2;border:1px solid #cce9d6}.guide-dont{background:#fff1f1;border:1px solid #efcece}.guide-do h3{color:#267448}.guide-dont h3{color:#b43e3e}.guide-do ul,.guide-dont ul{margin:0;padding-left:25px}.guide-do li,.guide-dont li{margin:7px 0}.guide-principles{background:linear-gradient(135deg,#fff9df,#fff2b8);border-color:#efd77f}.guide-principles h3{color:#0b4f8d}.guide-principle-tags{display:flex;flex-wrap:wrap;gap:8px}.guide-principle-tags span{background:white;border:1px solid #ecd57e;border-radius:20px;padding:6px 11px;font-weight:700;color:#19578b}.guide-message-example{background:linear-gradient(135deg,#f4faff,#eaf5ff)}.guide-message-box{background:white;border:1px solid #d7e6f2;border-radius:10px;padding:14px 16px;line-height:1.5;color:#165795}.guide-poster-card{text-align:center}.guide-poster{width:min(100%,1100px);height:auto;border-radius:12px;border:1px solid #d8e4ee;box-shadow:0 5px 20px rgba(28,70,110,.08)}
@media(max-width:1250px){.guide-steps-detailed{grid-template-columns:repeat(4,1fr)}}
@media(max-width:900px){.guide-steps-detailed{grid-template-columns:repeat(2,1fr)}.guide-two-col,.guide-do-dont{grid-template-columns:1fr}.guide-section-title small{margin-left:0;width:100%}}
@media(max-width:560px){.guide-steps-detailed{grid-template-columns:1fr}.guide-time-table>div{grid-template-columns:1fr}.guide-time-table strong{border-top:1px solid #eadfb9}.guide-page-head h2{font-size:26px}.guide-quote{font-size:19px}}
@media print{.guide-steps-detailed{grid-template-columns:repeat(2,1fr)}.guide-two-col,.guide-do-dont{grid-template-columns:1fr}.guide-step{min-height:auto}.guide-poster-card{display:none!important}}


/* ===== RESOURCE LIBRARY : STABLE 2026-09-19.1 ===== */
.field-help{display:block;margin-top:6px;font-size:.92em;color:#6c7f91}
.resource-admin-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:8px}
.resource-toolbar{gap:12px;justify-content:flex-start}.resource-toolbar select{min-width:260px}
.resource-list{display:grid;gap:14px;margin-top:16px}
.resource-card{border:1px solid #dbe6f0;border-radius:14px;padding:18px;background:#fff;box-shadow:0 2px 8px rgba(25,65,100,.04)}
.resource-card.inactive{opacity:.72;background:#f7f9fb}
.resource-card-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}
.resource-card h3{margin:0 0 4px;color:#143a61}.resource-meta{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 12px}
.resource-chip{display:inline-flex;align-items:center;border-radius:999px;padding:3px 10px;background:#eaf3fb;color:#1f6398;font-size:.9em}
.resource-chip.off{background:#f7e7e7;color:#a73535}.resource-description{color:#536d82;white-space:pre-wrap;margin:8px 0 12px}
.resource-files{display:flex;gap:8px;flex-wrap:wrap}.resource-admin-actions{display:flex;gap:8px;flex-wrap:wrap}
.resource-empty{text-align:center;padding:34px 16px;color:#72879a}
@media(max-width:760px){.resource-card-head{flex-direction:column}.resource-toolbar{align-items:stretch}.resource-toolbar select{min-width:0;width:100%}}
\n\n/* ===== SYSTEM CONTACT FOOTER : STABLE 2026-09-19.3 ===== */\n.auth-wrap{align-content:center}\n.auth-system-contact{margin:14px auto 0;width:min(660px,100%);text-align:center;color:#637b90;font-size:.96em;line-height:1.45}\n.auth-system-contact strong{display:block;color:#143a61;font-size:1.04em;margin-bottom:2px}\n.auth-system-contact span{display:block}\n.auth-system-contact a,.system-contact-footer a{color:#176fb6;text-decoration:none}\n.auth-system-contact a:hover,.system-contact-footer a:hover{text-decoration:underline}\n.system-contact-footer{margin-top:24px;padding:18px 22px;border:1px solid #d7e5f1;border-radius:14px;background:linear-gradient(135deg,#f8fbff,#edf6ff);text-align:center;color:#526d83;box-shadow:0 2px 8px rgba(25,65,100,.04)}\n.system-contact-title{font-size:1.12em;font-weight:700;color:#0c548f;margin-bottom:3px}\n.system-contact-name{font-weight:700;color:#173f65}\n.system-contact-org{margin-top:1px}\n.system-contact-links{display:flex;justify-content:center;gap:18px;flex-wrap:wrap;margin-top:7px}\n.system-contact-note{margin-top:7px;font-size:.93em;color:#6c8194}\n@media(max-width:720px){.system-contact-links{display:grid;gap:4px}.system-contact-footer{padding:16px 14px}}\n@media print{.system-contact-footer{break-inside:avoid;box-shadow:none;margin-top:12mm;border-color:#bfcbd5}.auth-system-contact{display:none!important}}\n
/* ===== ROLE-SCOPED DASHBOARDS : STABLE 2026-09-19.3 ===== */
.role-dashboard{display:block}
.role-profile-card{padding:20px}
.role-profile-main{display:flex;gap:18px;align-items:flex-start}
.role-profile-photo{width:96px;height:118px;object-fit:cover;border-radius:12px;border:1px solid #d6e1eb;background:#eef3f7;flex:0 0 auto}
.role-profile-placeholder{display:grid;place-items:center;font-size:42px}
.role-profile-main h3{margin:0 0 8px;color:#123f67;font-size:1.25em}
.role-profile-main>div:last-child>div{margin:3px 0}
.role-thesis{margin-top:8px;padding-top:8px;border-top:1px solid #e6edf3}
.role-action-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.role-action{border:1px solid #d9e6f0;background:linear-gradient(180deg,#f9fcff,#fff);border-radius:12px;padding:16px;text-align:left;cursor:pointer;color:#173f65;font-family:inherit}
.role-action:hover{border-color:#9bc5e8;box-shadow:0 5px 18px rgba(20,79,125,.08);transform:translateY(-1px)}
.role-action b{display:block;font-size:1.06em;color:#0d5d9f;margin-bottom:5px}
.role-action span{display:block;color:#627b91;line-height:1.35}
.role-summary-list{display:grid;gap:9px}
.role-summary-row{display:flex;justify-content:space-between;gap:14px;align-items:center;border:1px solid #e0e9f1;background:#fbfdff;border-radius:10px;padding:11px 13px}
.role-summary-row>div{min-width:0}.role-summary-row b{display:block;color:#173f65}.role-summary-row span:not(.badge){display:block;color:#70859a;font-size:.94em;margin-top:2px}
@media(max-width:1000px){.role-action-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:680px){.role-profile-main{flex-direction:column}.role-action-grid{grid-template-columns:1fr}.role-summary-row{align-items:flex-start;flex-direction:column}}
@media print{.role-action-grid{grid-template-columns:repeat(2,1fr)}.role-action{cursor:default}.role-action:hover{transform:none;box-shadow:none}}

/* DELETE WRONG REGISTRATION - triple confirmation */
.danger-note{border-left:5px solid #b42318;background:#fff4f2;color:#7a271a}.danger-note b{color:#b42318}.deleteMember{margin-top:4px}


/* ===== GRADUATION DOCUMENTS : STABLE 2026-09-20.4 ===== */
.graduation-summary-card select{min-width:300px;max-width:520px}.graduation-section{border-left:4px solid #1772c3}.graduation-section-title{display:flex;gap:12px;align-items:flex-start;margin-bottom:10px}.graduation-section-title>span{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#0e67b3;color:#fff;font-weight:700;flex:0 0 auto}.graduation-section-title b{display:block;color:#0d538e;font-size:1.15em}.graduation-section-title small{display:block;color:#6e8295;margin-top:2px}.graduation-files{display:grid;gap:7px;margin-top:12px}.graduation-file-row{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid #e0e8ef;background:#fbfdff;border-radius:9px;padding:9px 11px}.graduation-file-row>div{min-width:0}.graduation-file-row b{color:#244b6b}.graduation-file-row small{display:block;color:#75899a;word-break:break-all}.graduation-file-actions{display:flex;gap:7px;flex-wrap:wrap}.graduation-count{font-weight:700;color:#0c5d9f}.graduation-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap}.graduation-readonly input,.graduation-readonly textarea,.graduation-readonly select{background:#f4f7fa;color:#667d91}.graduation-empty{padding:14px;border:1px dashed #c9d7e2;border-radius:9px;color:#75899a;text-align:center}.graduation-group-label{font-weight:700;color:#173f65;margin:12px 0 5px}
@media(max-width:760px){.graduation-summary-card select{min-width:0;width:100%}.graduation-file-row{align-items:flex-start;flex-direction:column}.graduation-actions{justify-content:stretch}.graduation-actions .btn{width:100%}}
@media print{.graduation-section{break-inside:avoid}.graduation-file-actions{display:none!important}}

.graduation-upload-grid>div{min-width:0}.graduation-upload-grid label{margin-bottom:0}


/* ===== GRADUATION PRINT + SIMILARITY : STABLE 2026-09-20.6 ===== */
.graduation-print-notice{margin:14px 0;padding:13px 15px;border:1px solid #e2b95f;border-left:5px solid #d69b19;border-radius:9px;background:#fff8e5;color:#6f520d}
.graduation-print-notice b{color:#5d4208}
@media print{.graduation-print-notice{border:2px solid #555;background:white;color:#111;break-inside:avoid}}

/* ===== REVIEW PDF WORKSPACE : STABLE 2026-09-23.1 ===== */
.review-card-main{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.review-card-actions{display:flex;gap:8px;flex-wrap:wrap}.submission-review-actions{margin-top:12px;padding-top:10px;border-top:1px dashed #d8e3ec}.modal-box.review-workspace-box{width:min(1540px,calc(100vw - 28px));max-height:96vh;padding:16px}.review-workspace{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}.review-workspace:has(.review-comment-panel:not(.hidden)){grid-template-columns:minmax(0,1.6fr) minmax(340px,.72fr)}.review-document-pane{min-width:0}.review-workspace-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:10px}.review-workspace-actions{display:flex;gap:7px;flex-wrap:wrap}.review-pdf-wrap{height:min(74vh,900px);min-height:560px;border:1px solid #cbd8e4;border-radius:10px;background:#e8edf2;overflow:hidden;position:relative}.review-pdf-frame{width:100%;height:100%;border:0;background:white}.review-pdf-loading,.review-pdf-empty{position:absolute;inset:0;display:grid;place-items:center;text-align:center;color:#5f7488;padding:24px}.review-comment-panel{border:1px solid #d6e2ec;border-radius:12px;background:#fbfdff;padding:15px;overflow:auto;max-height:82vh}.review-comment-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.review-comment-head h3{margin:0;color:#0d538e}.review-file-counter{text-align:right;margin:4px 0 6px;color:#0d538e}.review-selected-files{display:grid;gap:6px;margin-bottom:12px}.review-selected-file{border:1px solid #dce6ee;background:white;border-radius:8px;padding:8px 10px;display:flex;justify-content:space-between;gap:8px;word-break:break-word}.review-selected-file span{color:#718399;white-space:nowrap}.review-history{display:grid;gap:12px}.review-history-item{border:1px solid #dbe5ee;border-radius:12px;padding:14px;background:#fbfdff}.review-comment-text{padding:12px;border-left:4px solid #1772c3;background:white;border-radius:8px;margin:8px 0;line-height:1.55}.review-due{margin:8px 0;color:#795400}.review-return-files{margin-top:10px;border-top:1px dashed #d4e0ea;padding-top:10px}.field-help{display:block;color:#70859a;font-weight:400;font-size:.88em;margin-top:4px}
@media(max-width:1050px){.review-workspace:has(.review-comment-panel:not(.hidden)){grid-template-columns:1fr}.review-comment-panel{max-height:none}.review-pdf-wrap{height:65vh;min-height:480px}}
@media(max-width:720px){.modal-box.review-workspace-box{width:100%;max-height:98vh;padding:10px}.review-pdf-wrap{height:58vh;min-height:420px}.review-workspace-actions .btn{flex:1 1 auto}.review-card-actions{width:100%}.review-card-actions .btn{flex:1 1 auto}}


/* Revision rounds 1-10 : Stable 2026-09-23.3 */
.submission-round-info{border:1px solid #cbdcec;background:#f5f9fd;border-radius:12px;padding:12px 14px;color:#24486d;line-height:1.45}
.submission-round-info.ready{border-color:#9fc8ae;background:#f1faf4;color:#205c36}
.submission-round-info.wait{border-color:#edd190;background:#fff9eb;color:#805600}
.submission-round-info.blocked{border-color:#e7b2b2;background:#fff3f3;color:#8d2d2d}
.revision-round-chip{display:inline-flex;align-items:center;border-radius:999px;padding:4px 9px;font-weight:700;font-size:.9em;background:#eef4fb;color:#224e78;margin-left:6px}
.submission-revision-action{margin-top:10px;display:flex;gap:8px;flex-wrap:wrap}

/* Stable 2026-09-23.7: clearer advisor return action + sticky footer for iPad/tablet */
.review-submit-sticky{position:sticky;bottom:-15px;z-index:12;margin:14px -15px -15px;padding:12px 15px 15px;background:linear-gradient(180deg,rgba(251,253,255,.88) 0%,#fbfdff 28%,#fbfdff 100%);border-top:1px solid #d6e2ec;box-shadow:0 -8px 18px rgba(19,65,105,.08)}
.review-submit-sticky-note{text-align:center;color:#60778d;font-size:.86em;margin-bottom:7px}
.review-return-btn{min-height:48px;font-size:1.02em;font-weight:800;box-shadow:0 3px 10px rgba(20,103,177,.18)}
.review-card-actions .reviewBtn{font-weight:800;min-width:155px}
@media(max-width:1050px){.review-comment-panel{max-height:72vh;overflow:auto}.review-submit-sticky{bottom:-15px}}
@media(max-width:720px){.review-comment-panel{max-height:76vh}.review-submit-sticky{margin-left:-15px;margin-right:-15px}.review-return-btn{min-height:52px;font-size:1.06em}}

/* Stable 2026-09-23.8: clearer Comment / return workflow on iPad & Tablet */
.review-tablet-guide{background:#eef7ff;border:1px solid #c5ddf3;border-left:4px solid #1772c3;border-radius:10px;padding:10px 12px;margin-bottom:12px;color:#34556f;line-height:1.45}
@media(max-width:1050px){.review-tablet-guide{font-size:.95em}.review-workspace-actions #toggleReviewComment{flex:1 1 100%;min-height:48px;font-weight:800}.review-comment-panel{scroll-margin-top:12px}.review-return-btn{min-height:54px;font-weight:800;font-size:1.05em}}

/* Stable 2026-09-23.9: direct PDF handwriting on iPad/Tablet */
.review-annotator{height:100%;display:flex;flex-direction:column;background:#dfe6ed}.review-annotator-toolbar{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;padding:8px 10px;background:#fff;border-bottom:1px solid #c8d5e1;position:sticky;top:0;z-index:4}.review-page-nav,.review-ink-tools{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.review-tool-select{width:auto;min-width:112px;margin:0;padding:7px 9px;font-size:.92em}.review-pen-main{font-weight:800}.review-ink-status{padding:7px 11px;background:#fff7dd;color:#76520b;border-bottom:1px solid #ead6a3;font-size:.9em}.review-annotator-viewport{flex:1;overflow:auto;padding:12px;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;scrollbar-gutter:stable both-edges}.review-pages-container{display:flex;flex-direction:column;align-items:center;gap:16px;width:max-content;min-width:100%;padding:0 18px 18px;box-sizing:border-box}.review-canvas-stage{position:relative;margin:0 auto;background:#fff;box-shadow:0 2px 9px rgba(0,0,0,.22);flex:0 0 auto}.review-canvas-stage canvas{position:absolute;inset:0;display:block}.review-continuous-page{scroll-margin-top:86px}.review-page-label{position:absolute;top:8px;right:10px;z-index:3;background:rgba(15,47,78,.78);color:#fff;border-radius:999px;padding:4px 9px;font-size:.78em;pointer-events:none}.review-page-continuous-info{padding:7px 10px;border-radius:999px;background:#eef6ff;color:#0d538e}.review-pdf-canvas{z-index:1}.review-ink-canvas{z-index:2}.review-ink-canvas.pan{pointer-events:none;touch-action:auto}.review-ink-canvas.drawing{pointer-events:auto;touch-action:none;cursor:crosshair}.review-auto-pdf-note{font-size:.92em}.review-return-btn{box-shadow:0 4px 12px rgba(23,114,195,.25)}
@media(max-width:1050px){.review-pdf-wrap{height:68vh;min-height:520px}.review-annotator-toolbar{position:sticky;top:0}.review-ink-tools{width:100%}.review-ink-tools .btn{flex:1 1 auto}.review-pen-main{min-height:48px}.review-tool-select{flex:1 1 120px}.review-submit-sticky{position:sticky;bottom:-15px;z-index:20}.review-return-btn{min-height:58px;font-size:1.08em}}
@media(max-width:720px){.review-pdf-wrap{height:62vh;min-height:450px}.review-annotator-viewport{padding:6px}.review-page-nav{width:100%;justify-content:space-between}.review-page-nav .btn{padding:8px 10px}.review-ink-status{font-size:.84em}.review-submit-sticky-note{font-size:.8em}}

/* Continuous PDF review - Stable Build 2026-09-23.10 */
.review-annotator-viewport{scroll-behavior:auto}.review-pages-container{min-height:100%}@media(max-width:1050px){.review-pages-container{gap:12px}.review-page-continuous-info{width:100%;justify-content:center}}

/* Stable Build 2026-09-23.11: Apple Pencil/Finger source selector + eraser */
.review-input-source{display:flex;align-items:center;gap:6px;padding:3px 5px;border:1px solid #d6e2ee;border-radius:10px;background:#f6faff}
.review-input-label{font-size:.88em;font-weight:800;color:#244b70;white-space:nowrap}
.review-eraser-main{font-weight:800}
.review-ink-canvas.erasing{pointer-events:auto;cursor:cell}
.review-ink-canvas.drawing.input-pen,.review-ink-canvas.erasing.input-pen{pointer-events:auto;touch-action:pan-x pan-y;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.review-ink-canvas.drawing.input-finger,.review-ink-canvas.erasing.input-finger{pointer-events:auto;touch-action:none}
@media(max-width:1050px){.review-input-source{flex:1 1 100%;justify-content:center}.review-input-source .btn{min-height:46px;flex:1 1 120px}.review-eraser-main{min-height:48px}}


/* Stable Build 2026-09-24.2: iPad/Tablet control modes + fullscreen PDF review */
.review-fullscreen-btn{font-weight:800}
body.review-fullscreen-active{overflow:hidden!important}
.review-document-pane.review-pdf-fullscreen{position:fixed!important;inset:0!important;z-index:10000!important;background:#eef3f7!important;padding:10px!important;display:flex!important;flex-direction:column!important;min-width:0!important}
.review-document-pane.review-pdf-fullscreen .review-workspace-toolbar{flex:0 0 auto;background:#fff;padding:8px 10px;border-radius:10px;margin-bottom:8px;box-shadow:0 2px 8px rgba(0,0,0,.08)}
.review-document-pane.review-pdf-fullscreen .review-pdf-wrap{flex:1 1 auto!important;height:auto!important;min-height:0!important;border-radius:10px!important}
.review-document-pane.review-pdf-fullscreen .review-annotator{height:100%!important}
.review-document-pane.review-pdf-fullscreen .review-annotator-viewport{height:100%!important;max-height:none!important}
.review-document-pane.review-pdf-fullscreen .review-fullscreen-btn{background:#0d6fbd!important;color:#fff!important;border-color:#0d6fbd!important;min-height:44px}
.review-input-source{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:4px 6px;border:1px solid #d8e4ef;border-radius:10px;background:#f8fbff}
.review-input-label{font-weight:800;color:#244867}
@media(max-width:1050px){
  .review-input-source{width:100%}
  .review-input-source .btn{flex:1 1 42%;min-height:50px;font-weight:800}
  .review-fullscreen-btn{min-height:48px}
  .review-document-pane.review-pdf-fullscreen{padding:6px!important}
  .review-document-pane.review-pdf-fullscreen .review-workspace-toolbar{padding:6px}
}

/* Review focus mode + autosave draft 2026-09-24.3 */
.review-focus-toggle{font-weight:800;white-space:nowrap}
.review-draft-status{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;background:#eef6ff;color:#0d538e;font-size:.82em;white-space:nowrap}
.review-draft-status[data-kind="saving"]{background:#fff4d9;color:#805700}
.review-draft-status[data-kind="error"]{background:#fde7e7;color:#a53b3b}
.modal-box.review-workspace-box.review-focus-mode{padding:6px!important;max-height:99vh!important}
.modal-box.review-workspace-box.review-focus-mode>.modal-head{display:none!important}
.modal-box.review-workspace-box.review-focus-mode .review-tablet-guide,
.modal-box.review-workspace-box.review-focus-mode .review-workspace-toolbar{display:none!important}
.modal-box.review-workspace-box.review-focus-mode .review-workspace{gap:0!important}
.modal-box.review-workspace-box.review-focus-mode .review-pdf-wrap{height:calc(99vh - 12px)!important;min-height:0!important;border-radius:8px!important}
.modal-box.review-workspace-box.review-focus-mode .review-comment-panel{display:none!important}
.modal-box.review-workspace-box.review-focus-mode .review-annotator-toolbar{padding:6px 8px!important}
@media(max-width:1050px){
 .review-page-continuous-info{width:100%;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
 .review-focus-toggle{min-height:44px}
 .review-draft-status{font-size:.78em}
}

.review-ink-canvas.pan.input-pen{pointer-events:auto;touch-action:pan-x pan-y;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}

/* 2026-09-24.7 iPad native navigation */
.review-annotator-viewport{touch-action:pan-x pan-y;-webkit-overflow-scrolling:touch;overflow:auto}
.review-zoom-controls{display:flex;align-items:center;gap:4px;padding:2px 4px;border:1px solid #d6e0ea;border-radius:10px;background:#f8fbfe}
.review-zoom-controls .btn{min-width:40px;padding:7px 10px}
.review-zoom-value{min-width:50px;text-align:center;font-weight:800;color:#184b78;font-size:.88em}
@media(max-width:900px){
  .review-zoom-controls{order:3}
  .review-zoom-controls .btn{min-width:44px;min-height:42px}
}


/* CLEAN MEMBER EMAIL STATUS — 2026-09-26.7 */
.member-email-state{display:inline-flex;align-items:center;white-space:nowrap;border-radius:999px;padding:5px 9px;font-weight:700;line-height:1.2}
.member-email-state.confirmed{background:#e8f7ed;color:#18763a}
.member-email-state.unconfirmed{background:#fff4d9;color:#946200}
.member-email-state.unknown{background:#f1f4f7;color:#667085}
.resendConfirmation{white-space:nowrap;margin:2px 4px 2px 0}

/* AUTH ACCESS RECOVERY 2026-09-27.1 */
.auth-helper-btn{margin-top:10px}.member-email-state{white-space:nowrap}.repairAccess{white-space:nowrap;margin-left:4px}@media(max-width:720px){.auth-helper-btn{min-height:48px}.repairAccess{margin:4px 0 0 0}}

/* Existing student required-photo gate 2026-09-27.3 */
.photo-required-box{max-width:560px}
.photo-required-file{display:block;text-align:left;width:100%;margin:10px 0 12px}
.photo-required-file input{margin-top:8px;width:100%}
.photo-required-box .photo-preview{display:block;margin:8px auto 12px;max-width:180px;max-height:220px;object-fit:cover}
.photo-required-box .photo-preview.hidden{display:none}
.photo-required-box .btn{margin-top:8px}
body.photo-required-active{overflow:hidden}

/* Resource manager enhancements - Stable Build 2026-09-29.1 */
.resource-note{margin:8px 0 12px;padding:10px 12px;border-left:3px solid #8ca9c3;background:#f7fafc;color:#415d72;white-space:pre-wrap;border-radius:6px}
.resource-updated{display:inline-flex;align-items:center;color:#71879a;font-size:.86em;padding:3px 0}
.resource-file-item{display:flex;gap:6px;align-items:center;flex-wrap:wrap;max-width:100%}
.resource-file-item .resourceDownload{max-width:100%;white-space:normal;text-align:left}
.resource-file-item .resourceFileDelete{padding:8px 10px}
@media(max-width:760px){.resource-admin-actions{width:100%}.resource-admin-actions .btn{flex:1 1 140px}.resource-file-item{width:100%}.resource-file-item .resourceDownload{flex:1 1 220px}.resource-file-item .resourceFileDelete{flex:0 0 auto}}

/* iPad Writing Performance - Stable Build 2026-09-29.2 */
.review-canvas-stage{contain:layout paint style}
.review-pdf-canvas,.review-ink-canvas{image-rendering:auto}
.review-ink-canvas{will-change:contents;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.review-annotator-viewport{scroll-anchor:none}

/* iPad Ink Engine 3: freeze scroll only while Apple Pencil is physically down */
.review-annotator-viewport.review-pen-active{overflow:hidden!important;touch-action:none!important;-webkit-overflow-scrolling:auto!important}


/* Student Individual Profile 2026-10-02.1 */
.student-row-actions{display:flex;gap:6px;flex-wrap:wrap}.student-profile-actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap;margin-bottom:12px}.student-profile-export{background:#fff;color:#16344f;border:1px solid #d7e2eb;border-radius:12px;padding:22px;font-family:"TH SarabunPSK","TH Sarabun PSK","TH Sarabun New","Sarabun",sans-serif!important}.student-profile-export-head{text-align:center;border-bottom:2px solid #0d568f;padding-bottom:10px;margin-bottom:16px}.student-profile-export-university{font-size:24px;font-weight:700;color:#0d568f}.student-profile-export-system{font-size:15px;color:#718399}.student-profile-export-head h2{font-size:28px;margin:5px 0 0}.student-profile-export-main{display:grid;grid-template-columns:125px 1fr;gap:18px;align-items:start;margin-bottom:16px}.student-profile-export-photo img,.student-profile-export-photo-placeholder{width:112px;height:138px;border-radius:9px;border:1px solid #ccd9e4;object-fit:cover;background:#eef3f7}.student-profile-export-photo-placeholder{display:grid;place-items:center;font-size:42px}.student-profile-export-summary{display:grid;gap:6px}.student-profile-export-summary>div{display:grid;grid-template-columns:145px 1fr;gap:10px;padding-bottom:4px;border-bottom:1px dashed #e1e8ef}.student-profile-export-summary b{color:#0d568f}.student-profile-export-table{width:100%;border-collapse:collapse}.student-profile-export-table th,.student-profile-export-table td{border:1px solid #d7e2eb;padding:9px 10px;vertical-align:top}.student-profile-export-table th{background:#f1f6fa;color:#0d568f;width:19%;white-space:nowrap}.student-profile-export-foot{text-align:right;margin-top:12px;color:#718399;font-size:15px}@media(max-width:720px){.student-profile-export{padding:12px}.student-profile-export-main{grid-template-columns:1fr}.student-profile-export-photo{text-align:center}.student-profile-export-summary>div{grid-template-columns:1fr}.student-profile-export-table th,.student-profile-export-table td{display:block;width:100%}.student-profile-export-table th{border-bottom:0}.student-profile-export-table td{margin-bottom:4px}}

/* Combined Student Export 2026-10-02.2 */
.student-combined-export{position:fixed;left:-100000px;top:0;width:794px;background:#fff;z-index:-10}
.student-combined-page{width:794px;min-height:1080px;background:#fff;color:#16344f;padding:30px 34px;page-break-after:always;break-after:page;font-family:"TH SarabunPSK","TH Sarabun PSK","TH Sarabun New","Sarabun",sans-serif}
.student-combined-page:last-child{page-break-after:auto;break-after:auto}
.student-combined-seq{font-size:14px;color:#718399;margin-top:2px}


/* Student Filters + BD22 Integration 2026-10-02.4 */
.student-type-filter-bar{display:grid;grid-template-columns:minmax(130px,.7fr) minmax(230px,1.35fr) minmax(230px,1.35fr) auto;gap:10px;align-items:end;margin:12px 0 15px;padding:12px;background:#f6f9fc;border:1px solid #dce6ef;border-radius:11px}
.student-filter-field label{display:block;font-size:13px;font-weight:700;color:#315574;margin-bottom:4px}
.student-filter-field select{width:100%;min-height:40px;border:1px solid #ccd9e4;border-radius:8px;background:#fff;padding:7px 9px;color:#17324d}
.student-filter-actions{display:flex;align-items:end}
.student-filter-summary{grid-column:1/-1;font-size:13px;color:#647b90;padding-top:2px}
.bd22Student{white-space:nowrap}
@media(max-width:1050px){.student-type-filter-bar{grid-template-columns:1fr 1fr}.student-filter-actions{align-items:center}}
@media(max-width:700px){.student-type-filter-bar{grid-template-columns:1fr}.student-filter-summary{grid-column:1}}
/* Graduate Forms Workflow 2026-10-02.5 */
.forms-workflow-frame-wrap{background:#f4f7fa;border:1px solid #d9e3ec;border-radius:12px;overflow:hidden;min-height:760px}
#formsWorkflowFrame{display:block;width:100%;min-height:780px;border:0;background:#f4f7fa}
@media(max-width:900px){#formsWorkflowFrame{min-height:900px}}


/* Staff Rights Management 2026-10-02.6 */
.staff-rights-manager{margin-top:14px}
.staff-role-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.staff-role-add{display:grid;grid-template-columns:1fr auto;gap:9px;margin-top:12px}
.staff-role-add input{min-height:42px;border:1px solid #cad8e5;border-radius:8px;padding:8px 10px}
.staff-role-note{margin-top:9px;padding:9px 11px;border-left:4px solid #2d82cc;background:#eef7ff;color:#48657d;font-size:13px}
.staff-role-list{display:grid;gap:8px;margin-top:12px}
.staff-role-row{display:flex;justify-content:space-between;gap:12px;align-items:center;border:1px solid #dde7ef;border-radius:9px;padding:10px;background:#fbfdff}
.staff-role-error{color:#a43737;background:#fff0f0;padding:9px;border-radius:8px}
@media(max-width:700px){.staff-role-add{grid-template-columns:1fr}.staff-role-row{align-items:flex-start;flex-direction:column}}

