:root{--blue:#1767b5;--blue-dark:#0c4e92;--blue-soft:#f1f8ff;--line:#dbe7f2;--ink:#18324b;--muted:#6d8092;--white:#fff;--gold:#b98320;--shadow:0 9px 24px rgba(26,67,105,.08)}*{box-sizing:border-box}body{margin:0;background:var(--blue-soft);color:var(--ink);font:15px/1.45 "Segoe UI",Arial,sans-serif}a{color:inherit;text-decoration:none}.nts-icon{width:19px;height:19px;flex:0 0 auto}.nts-shell{min-height:100vh}.nts-app{min-height:100vh;display:flex}.nts-sidebar{position:fixed;inset:0 auto 0 0;width:254px;background:#fff;border-right:1px solid var(--line);padding:26px 15px 18px;display:flex;flex-direction:column;z-index:10}.nts-brand{height:55px;padding:0 10px;display:flex;align-items:center}.nts-brand img{max-width:180px;max-height:54px;object-fit:contain;object-position:left center}.nts-sidebar-caption,.nts-eyebrow{margin:0;color:#7190ab;font-size:11px;font-weight:700;letter-spacing:1.25px}.nts-sidebar-caption{padding:28px 12px 9px}.nts-nav{display:grid;gap:5px}.nts-nav a,.nts-logout,.nts-profile-dropdown a{display:flex;gap:12px;align-items:center;border-radius:10px;font-weight:600;transition:transform .18s ease,box-shadow .18s ease,background .18s ease,color .18s ease}.nts-nav a{padding:12px;color:#526a80}.nts-nav a:hover,.nts-nav a.active{background:#edf7ff;color:var(--blue);box-shadow:0 5px 14px rgba(31,105,171,.09);transform:translateX(2px)}.nts-logout{margin-top:auto;padding:12px;color:#a54343}.nts-logout:hover{background:#fff2f2;transform:translateX(2px)}.nts-main{width:calc(100% - 254px);margin-left:254px}.nts-topbar{height:86px;background:#fff;border-bottom:1px solid var(--line);padding:0 34px;display:flex;align-items:center;justify-content:space-between}.nts-topbar h1{font-size:22px;margin:2px 0 0}.nts-content{padding:28px 34px 45px;max-width:1380px}.nts-card{background:#fff;border:1px solid var(--line);border-radius:15px;padding:24px;box-shadow:var(--shadow);margin-bottom:20px}.nts-card h2,.nts-card h3{margin:0 0 8px}.nts-card h2{font-size:19px}.nts-card h3{font-size:15px}.nts-card p{color:var(--muted)}.nts-card-title{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:20px}.nts-card-title>.nts-icon{color:var(--blue);width:27px;height:27px}.nts-profile-menu{position:relative}.nts-profile-trigger{border:0;background:transparent;display:flex;align-items:center;gap:10px;color:var(--ink);font-weight:700;cursor:pointer;padding:7px;border-radius:10px;transition:.18s}.nts-profile-trigger:hover{background:#f3f8fc;transform:translateY(-1px)}.nts-profile-trigger img{width:38px;height:38px;border-radius:50%;object-fit:cover;border:2px solid #dcebf7}.nts-profile-dropdown{display:none;position:absolute;right:0;top:calc(100% + 9px);width:202px;padding:7px;background:#fff;border:1px solid var(--line);border-radius:11px;box-shadow:var(--shadow);z-index:20}.nts-profile-dropdown.open{display:grid}.nts-profile-dropdown a{padding:10px;color:#4f6579}.nts-profile-dropdown a:hover{background:#f2f8fd;color:var(--blue);transform:translateX(2px)}.nts-icon-button{display:none;border:0;background:transparent;color:var(--ink);padding:8px;cursor:pointer}.nts-alert{padding:12px 15px;border-radius:10px;margin:0 0 18px;border:1px solid}.nts-alert.success{background:#effaf3;border-color:#c9ecd5;color:#197448}.nts-alert.error{background:#fff4f4;border-color:#ffd4d4;color:#a23c3c}.nts-welcome{border-radius:16px;padding:28px;background:linear-gradient(120deg,#e6f5ff,#f9fcff);border:1px solid #cde5fa;display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.nts-welcome h2{margin:4px 0;font-size:25px}.nts-welcome p{color:#5b7591;margin:0}.nts-welcome>.nts-icon{width:78px;height:78px;color:#d4a448}.nts-stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.nts-stat-grid .nts-card{display:flex;gap:15px;align-items:center}.nts-stat-grid strong{font-size:16px}.nts-stat-grid p{font-size:13px;margin:3px 0}.nts-stat-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:12px;background:#eaf6ff;color:var(--blue)}.nts-stat-icon.gold{background:#fff6e5;color:var(--gold)}.nts-stat-icon.muted{background:#f1f4f6;color:#6e8497}.nts-next-card{max-width:610px}.nts-placeholder{text-align:center;max-width:600px;margin:65px auto}.nts-placeholder-icon{display:inline-grid;place-items:center;width:70px;height:70px;border-radius:50%;background:#eef8ff;color:var(--blue);margin-bottom:13px}.nts-placeholder-icon .nts-icon{width:35px;height:35px}.nts-form{display:grid;gap:20px}.nts-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.nts-field{display:grid;gap:7px}.nts-field label{font-weight:650;color:#405a71;font-size:14px}.nts-field input,.nts-field select,.nts-inline-form input{width:100%;border:1px solid #cbddea;border-radius:9px;padding:11px 12px;background:#fff;color:var(--ink);font:inherit;outline:none;transition:border .18s,box-shadow .18s}.nts-field input:focus,.nts-field select:focus,.nts-inline-form input:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(23,103,181,.12)}.nts-field small{color:var(--muted);font-size:12px}.nts-password{position:relative}.nts-password input{padding-right:44px}.nts-password button{position:absolute;right:4px;top:4px;width:36px;height:36px;display:grid;place-items:center;border:0;background:transparent;color:#62819d;border-radius:7px;cursor:pointer}.nts-password button:hover{background:#edf6fd;color:var(--blue)}.nts-button{border:0;border-radius:9px;background:var(--blue);color:#fff;padding:11px 15px;display:inline-flex;align-items:center;justify-content:center;gap:8px;width:max-content;font:700 14px inherit;cursor:pointer;box-shadow:0 5px 12px rgba(23,103,181,.2);transition:transform .18s,box-shadow .18s,background .18s}.nts-button:hover{background:var(--blue-dark);transform:translateY(-2px);box-shadow:0 9px 17px rgba(23,103,181,.25)}.nts-button.secondary{background:#eff7fd;color:var(--blue);box-shadow:none}.nts-button.secondary:hover{background:#e0f1fc}.nts-branding-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:20px;margin-top:25px}.nts-brand-preview{width:100%;height:132px;object-fit:contain;background:#f6fbff;border:1px solid var(--line);border-radius:10px;padding:12px;margin-bottom:10px}.nts-brand-preview.favicon{height:76px;width:76px;padding:10px}.nts-image-upload,.nts-file-drop{position:relative;border:1.5px dashed #a6c5dd;border-radius:11px;background:#f8fcff;min-height:124px;display:grid;place-items:center;text-align:center;color:#59748b;cursor:pointer;overflow:hidden;transition:.18s}.nts-image-upload:hover,.nts-image-upload.drag-over,.nts-file-drop:hover,.nts-file-drop.drag-over{border-color:var(--blue);background:#eef8ff;box-shadow:0 4px 15px rgba(20,105,177,.09)}.nts-image-upload input,.nts-file-drop input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.nts-upload-prompt,.nts-file-drop{padding:17px;display:grid;gap:5px;justify-items:center}.nts-upload-prompt .nts-icon,.nts-file-drop .nts-icon{color:var(--blue);width:26px;height:26px}.nts-upload-prompt span,.nts-file-drop span{font-size:12px}.nts-crop-stage{position:absolute;inset:0;background:#0e2d47;display:grid;place-items:center;overflow:hidden}.nts-crop-image{max-width:none;max-height:none;user-select:none;transform-origin:center}.nts-crop-box{position:absolute;border:2px solid #fff;box-shadow:0 0 0 9999px rgba(9,31,49,.45);cursor:move}.nts-crop-handle{position:absolute;width:12px;height:12px;border-radius:2px;background:#fff;border:1px solid var(--blue)}.nts-crop-handle.nw{left:-7px;top:-7px}.nts-crop-handle.ne{right:-7px;top:-7px}.nts-crop-handle.sw{left:-7px;bottom:-7px}.nts-crop-handle.se{right:-7px;bottom:-7px}.nts-crop-actions{position:absolute;left:0;right:0;bottom:0;padding:10px;background:rgba(255,255,255,.95);display:flex;gap:7px;justify-content:center}.nts-crop-actions .nts-button{padding:7px 9px;font-size:12px}.nts-email-sections{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:25px}.nts-email-sections section{border:1px solid var(--line);border-radius:11px;padding:17px;background:#fbfdff}.nts-email-sections h3{color:var(--blue);padding-bottom:10px;border-bottom:1px solid var(--line);margin-bottom:16px}.nts-segmented{display:flex;gap:8px}.nts-segmented input{position:absolute;opacity:0;width:1px}.nts-segmented span{display:inline-block;padding:9px 12px;border:1px solid #cbddea;border-radius:9px;font-weight:650;color:#5d778d;cursor:pointer}.nts-segmented input:checked+span{border-color:var(--blue);background:#eaf6ff;color:var(--blue)}.nts-check{align-content:center}.nts-check label{display:flex;align-items:center;gap:8px;font-weight:500}.nts-check input{width:auto}.nts-test-email p{margin-top:0}.nts-inline-form{display:flex;gap:10px;max-width:620px}.nts-profile-head{display:flex;align-items:center;gap:17px;margin-bottom:22px}.nts-profile-head img{width:86px;height:86px;border-radius:50%;object-fit:cover;border:3px solid #e3f0fa}.nts-profile-head h2,.nts-profile-head p{margin:0}.nts-muted{font-size:13px}.nts-auth-page{min-height:100vh;display:grid;place-items:center;padding:24px;background:linear-gradient(135deg,#e8f5ff,#f8fcff)}.nts-auth-card{width:min(100%,460px);padding:34px;background:#fff;border:1px solid #d5e7f4;border-radius:18px;box-shadow:0 16px 35px rgba(28,74,113,.12)}.nts-auth-logo{display:block;max-width:185px;max-height:68px;object-fit:contain;object-position:left center;margin-bottom:22px}.nts-auth-card h1{margin:3px 0 8px;font-size:27px}.nts-auth-copy{color:var(--muted);margin:0 0 24px}.nts-auth-link{margin:0;text-align:right;font-weight:650;font-size:13px}.nts-auth-link a{color:var(--blue)}
@media(max-width:860px){.nts-sidebar{transform:translateX(-100%);transition:transform .2s}.nts-sidebar.open{transform:translateX(0);box-shadow:8px 0 25px rgba(17,50,79,.15)}.nts-main{width:100%;margin-left:0}.nts-topbar{padding:0 18px}.nts-content{padding:20px 18px}.nts-icon-button{display:block}.nts-profile-trigger span{display:none}.nts-branding-grid,.nts-email-sections,.nts-stat-grid{grid-template-columns:1fr}.nts-form-grid{grid-template-columns:1fr}}@media(max-width:480px){.nts-topbar h1{font-size:18px}.nts-welcome{padding:20px}.nts-welcome>.nts-icon{display:none}.nts-inline-form{display:grid}.nts-card{padding:18px}.nts-auth-card{padding:26px 20px}}
.nts-card{transition:transform .18s ease,box-shadow .18s ease}.nts-card:hover{transform:translateY(-3px);box-shadow:0 14px 28px rgba(26,67,105,.12)}.nts-stat-grid .nts-card{min-height:112px}.nts-stat-icon{box-shadow:inset 0 0 0 1px rgba(23,103,181,.06)}.nts-welcome-trophy{display:grid;place-items:center;width:86px;height:86px;border-radius:50%;background:#fff8e9;color:#bd8825;box-shadow:0 8px 18px rgba(166,113,20,.13)}.nts-welcome-trophy .nts-icon{width:45px;height:45px}.nts-home-page{background:#fff;overflow-x:hidden}.nts-home-header{height:76px;padding:8px clamp(18px,5vw,76px);display:flex;align-items:center;gap:25px;justify-content:space-between;background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:30}.nts-home-brand{display:flex;align-items:center;gap:11px;font-size:17px;font-weight:750;color:var(--ink);white-space:nowrap}.nts-home-brand img{width:82px;height:64px;object-fit:contain}.nts-home-nav{display:flex;gap:24px;color:#5c758b;font-size:14px;font-weight:650}.nts-home-nav a:hover{color:var(--blue)}.nts-home-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.nts-home-hero{min-height:470px;padding:72px clamp(18px,8vw,128px);display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,.85fr);gap:60px;align-items:center;background:#f3f9fe}.nts-home-hero-copy{max-width:600px}.nts-home-platform-label{display:flex;align-items:center;gap:9px;margin-bottom:8px}.nts-home-platform-label img{width:34px;height:28px;object-fit:contain}.nts-home-platform-label .nts-eyebrow{margin:0}.nts-home-hero h1{font-size:clamp(42px,6vw,68px);line-height:1;margin:10px 0 17px;letter-spacing:-2px}.nts-home-hero-copy>p:not(.nts-eyebrow){font-size:18px;line-height:1.65;color:#567089;margin:0 0 28px}.nts-home-visual{height:312px;position:relative;overflow:hidden;border-radius:22px;background:linear-gradient(135deg,#d7edfc,#f8fcff);border:1px solid #cfe4f4;box-shadow:0 20px 35px rgba(32,86,125,.13)}.nts-home-track{position:absolute;inset:20px;border:24px solid #8eb9db;border-radius:50%;transform:rotate(-20deg);opacity:.55}.nts-home-track span{position:absolute;inset:17px;border:2px solid #fafdff;border-radius:50%}.nts-home-track span:nth-child(2){inset:39px}.nts-home-track span:nth-child(3){inset:61px}.nts-home-visual-badge{position:absolute;left:22px;bottom:22px;display:flex;align-items:center;gap:9px;padding:11px 14px;border-radius:10px;background:rgba(255,255,255,.94);color:#547189;font-size:13px;font-weight:650;box-shadow:0 7px 15px rgba(28,76,111,.12)}.nts-home-visual-badge .nts-icon{color:var(--blue)}.nts-home-medal{position:absolute;right:30px;top:27px;color:#c18b24;background:#fff7e4;padding:15px;border-radius:50%;box-shadow:0 7px 14px rgba(172,120,22,.14)}.nts-home-medal .nts-icon{width:34px;height:34px}.nts-home-section{padding:78px clamp(18px,8vw,128px)}.nts-section-heading{margin-bottom:28px}.nts-section-heading h2,.nts-home-about h2,.nts-home-login h2{margin:6px 0 0;font-size:clamp(27px,4vw,39px);letter-spacing:-.7px}.nts-home-highlight-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.nts-home-highlight{padding:24px;border:1px solid var(--line);border-radius:15px;background:#fff;transition:transform .18s,box-shadow .18s}.nts-home-highlight:hover{transform:translateY(-4px);box-shadow:var(--shadow)}.nts-home-highlight>span{display:grid;place-items:center;width:46px;height:46px;border-radius:12px;background:#eaf6ff;color:var(--blue)}.nts-home-highlight:nth-child(4)>span{background:#fff6e4;color:#bd8825}.nts-home-highlight h3{margin:16px 0 5px;font-size:17px}.nts-home-highlight p{margin:0;color:var(--muted);font-size:14px}.nts-home-about{margin:0 clamp(18px,8vw,128px) 78px;padding:40px;display:grid;grid-template-columns:auto minmax(0,1fr);gap:27px;align-items:start;border:1px solid #d2e8f8;border-radius:18px;background:#f3faff}.nts-home-about p:last-child{max-width:720px;margin:14px 0 0;color:#55708a;font-size:16px;line-height:1.65}.nts-home-about-icon{display:grid;place-items:center;width:65px;height:65px;border-radius:15px;background:#fff;color:var(--blue);box-shadow:0 6px 14px rgba(32,90,132,.1)}.nts-home-about-icon .nts-icon{width:32px;height:32px}.nts-home-login{padding:58px clamp(18px,8vw,128px);display:grid;grid-template-columns:1fr 1.2fr;gap:45px;align-items:center;background:#eef8ff}.nts-home-login p:not(.nts-eyebrow){color:#617a90}.nts-home-login-options{display:grid;gap:11px}.nts-home-login-option{display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center;padding:17px;border:1px solid #d4e5f1;border-radius:12px;background:#fff;transition:transform .18s,box-shadow .18s,border .18s}.nts-home-login-option:hover{transform:translateX(4px);border-color:#a6cbe7;box-shadow:var(--shadow)}.nts-home-login-option>span{display:grid;place-items:center;width:42px;height:42px;border-radius:10px;background:#eaf6ff;color:var(--blue)}.nts-home-login-option strong,.nts-home-login-option small{display:block}.nts-home-login-option small{margin-top:3px;color:var(--muted)}.nts-home-login-option>.nts-icon{color:var(--blue)}.nts-home-footer{padding:21px clamp(18px,8vw,128px);display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;background:#fff;color:#7890a2;font-size:13px}.nts-home-footer span:first-child{font-weight:700;color:#506a80}@media(max-width:980px){.nts-home-hero{grid-template-columns:1fr;gap:35px}.nts-home-visual{max-width:600px;width:100%}.nts-home-highlight-grid{grid-template-columns:repeat(2,1fr)}.nts-home-header{gap:15px}.nts-home-nav{display:none}.nts-home-login{grid-template-columns:1fr}}@media(max-width:600px){.nts-home-header{height:76px;padding:8px 15px}.nts-home-brand img{width:62px;height:52px}.nts-home-platform-label{gap:7px;margin-bottom:7px}.nts-home-platform-label img{width:29px;height:24px}.nts-home-actions{gap:7px}.nts-home-header .nts-button{padding:9px 10px;font-size:12px}.nts-home-hero{padding:55px 20px}.nts-home-hero h1{font-size:46px}.nts-home-hero-copy>p:not(.nts-eyebrow){font-size:16px}.nts-home-visual{height:260px}.nts-home-visual-badge{right:16px;left:16px;justify-content:center;font-size:12px}.nts-home-section{padding:55px 20px}.nts-home-highlight-grid{grid-template-columns:1fr}.nts-home-about{margin:0 20px 55px;padding:25px;grid-template-columns:1fr}.nts-home-login{padding:45px 20px}.nts-welcome-trophy{display:none}.nts-topbar{gap:10px}.nts-profile-trigger{padding:4px}.nts-content{overflow:hidden}}
.nts-crop-stage{z-index:1}.nts-crop-actions{z-index:2}
.nts-home-platform-label{flex-direction:column;align-items:flex-start;gap:7px;margin-bottom:10px}.nts-home-platform-label img{width:212px;height:70px;object-fit:contain;object-position:left center}.nts-home-platform-label .nts-eyebrow{line-height:1.2}@media(max-width:600px){.nts-home-platform-label{gap:6px;margin-bottom:9px}.nts-home-platform-label img{width:200px;height:66px}}
.nts-subnav,.nts-page-actions,.nts-dashboard-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:20px}.nts-subnav a{display:inline-flex;align-items:center;gap:7px;padding:9px 12px;border:1px solid var(--line);border-radius:9px;background:#fff;color:#557089;font-weight:650;font-size:13px;transition:.18s}.nts-subnav a:hover,.nts-subnav a.active{transform:translateY(-2px);box-shadow:var(--shadow);background:#edf7ff;color:var(--blue)}.nts-master-grid,.nts-dashboard-grid{display:grid;grid-template-columns:minmax(280px,.8fr) minmax(0,1.4fr);gap:20px}.nts-count-badge{min-width:32px;height:32px;display:grid;place-items:center;border-radius:50%;background:#eaf6ff;color:var(--blue);font-weight:750}.nts-table-wrap{overflow-x:auto}.nts-table{width:100%;border-collapse:collapse;min-width:610px}.nts-table th{padding:11px 10px;text-align:left;background:#f3f9fe;color:#60809a;font-size:12px;letter-spacing:.4px}.nts-table td{padding:12px 10px;border-bottom:1px solid #e5eef5;vertical-align:middle}.nts-table tbody tr:hover{background:#fbfdff}.nts-table td small{display:block;color:var(--muted);font-size:12px;margin-top:2px}.nts-table-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.nts-table-actions form{margin:0}.nts-table-actions .nts-button{padding:7px 9px;font-size:12px}.nts-color-dot,.nts-house-name i,.nts-house-summary i{display:inline-block;width:13px;height:13px;border-radius:50%;border:1px solid rgba(0,0,0,.08);vertical-align:-2px}.nts-status{display:inline-flex;padding:4px 8px;border-radius:99px;font-size:12px;font-weight:700}.nts-status.active{background:#ebf8ef;color:#25804d}.nts-status.inactive{background:#fff1f1;color:#a44949}.nts-empty{text-align:center;color:var(--muted);padding:25px!important}.nts-filter-grid{display:grid;grid-template-columns:2fr repeat(4,1fr) auto;gap:12px;align-items:end}.nts-filter-grid .nts-button{height:43px}.nts-student-avatar{width:38px;height:38px;border-radius:50%;object-fit:cover;border:2px solid #e3f0fa}.nts-house-name{display:inline-flex;align-items:center;gap:6px}.nts-pagination{display:flex;gap:6px;margin-top:18px}.nts-pagination a{display:grid;place-items:center;min-width:32px;height:32px;border:1px solid var(--line);border-radius:7px;background:#fff;color:#56738b;font-weight:650}.nts-pagination a.active,.nts-pagination a:hover{background:var(--blue);border-color:var(--blue);color:#fff}.nts-student-form-photo{display:block;width:88px;height:88px;border-radius:50%;object-fit:cover;border:3px solid #e3f0fa;margin:14px 0}.nts-student-view{display:grid;grid-template-columns:auto 1fr;gap:26px;align-items:start;max-width:850px}.nts-student-view-photo{width:150px;height:150px;border-radius:16px;object-fit:cover;border:4px solid #e4f1fa}.nts-student-view h2{margin:5px 0 10px}.nts-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:24px 0 0}.nts-detail-grid dt{color:#7b93a6;font-size:12px;font-weight:700}.nts-detail-grid dd{margin:3px 0 0;font-weight:650}.nts-import-counts{display:flex;gap:8px}.nts-invalid-row{background:#fff7f7}.nts-commit-form{margin-top:18px}.nts-stat-grid-four{grid-template-columns:repeat(4,1fr)}.nts-stat-grid-four .nts-card strong{font-size:27px;line-height:1}.nts-dashboard-grid{grid-template-columns:minmax(0,1.4fr) minmax(280px,.75fr)}.nts-class-summary{display:grid;gap:12px}.nts-class-summary-row{padding:13px;border:1px solid #e2edf5;border-radius:10px;background:#fbfdff}.nts-class-summary-row>div:first-child{display:flex;justify-content:space-between;gap:12px}.nts-class-summary-row>div:first-child span{color:#6b8294;font-size:13px}.nts-house-summary{display:flex;gap:9px;flex-wrap:wrap;margin-top:10px}.nts-house-summary span{padding:5px 8px;border-radius:7px;background:#fff;color:#55738a;font-size:12px;font-weight:650}.nts-house-summary i{margin-right:4px}.nts-dashboard-actions{margin:15px 0 0}@media(max-width:1100px){.nts-filter-grid{grid-template-columns:repeat(3,1fr)}.nts-filter-grid .nts-button{width:max-content}.nts-stat-grid-four{grid-template-columns:repeat(2,1fr)}}@media(max-width:860px){.nts-master-grid,.nts-dashboard-grid{grid-template-columns:1fr}.nts-detail-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:600px){.nts-filter-grid{grid-template-columns:1fr}.nts-filter-grid .nts-button{width:100%}.nts-student-view{grid-template-columns:1fr}.nts-detail-grid{grid-template-columns:1fr}.nts-student-view-photo{width:110px;height:110px}.nts-stat-grid-four{grid-template-columns:1fr}.nts-page-actions .nts-button{flex:1}.nts-import-counts{margin-top:9px}}
.nts-nav a:hover{transform:translateY(-1px) scale(1.01)}.nts-profile-trigger img{box-shadow:0 4px 10px rgba(24,70,105,.14)}
.nts-import-modal{max-width:1240px;margin:0 auto}.nts-import-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(115px,1fr));gap:10px;margin:0 0 20px}.nts-import-summary span{display:grid;gap:2px;padding:11px;border:1px solid var(--line);border-radius:10px;background:#f8fcff;color:#638097;font-size:12px}.nts-import-summary strong{color:var(--blue);font-size:20px;line-height:1}.nts-import-table{min-width:1120px}.nts-import-table td:last-child{min-width:210px}.nts-import-drop{min-height:150px}@media(max-width:600px){.nts-import-summary{grid-template-columns:repeat(2,1fr)}.nts-import-summary span{padding:9px}.nts-import-summary strong{font-size:18px}}
.nts-workflow-dialog{width:min(100% - 32px,680px);border:1px solid var(--line);border-radius:16px;padding:24px;box-shadow:0 20px 50px rgba(21,59,92,.26)}.nts-workflow-dialog::backdrop{background:rgba(17,47,74,.4)}.nts-workflow-dialog-head{display:flex;justify-content:space-between;gap:18px;align-items:start}.nts-workflow-dialog h2{margin:4px 0 0;font-size:21px}@media(max-width:600px){.nts-workflow-dialog{padding:18px}.nts-workflow-dialog-head{align-items:center}.nts-workflow-dialog-head .nts-button span{display:none}}

/* Student Management modal workflow */
.nts-student-modal{width:min(100% - 32px,1180px);max-height:calc(100vh - 32px);overflow:hidden}.nts-student-modal>div{max-height:calc(100vh - 80px);overflow:auto;padding-right:2px}.nts-student-modal .nts-form{padding-top:8px}.nts-student-modal .nts-card{box-shadow:none;margin:0 0 16px}.nts-student-modal .nts-card:hover{transform:none}.nts-modal-table-wrap{max-height:46vh;overflow:auto;border:1px solid var(--line);border-radius:11px}.nts-modal-table-wrap .nts-table-wrap{overflow:visible}.nts-dialog-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:18px}.nts-inline-progress,.nts-import-progress{display:grid;justify-items:center;gap:10px;text-align:center;color:var(--muted);padding:26px 10px}.nts-inline-progress{grid-template-columns:auto auto minmax(130px,1fr);align-items:center;justify-content:stretch;text-align:left;padding:14px 0}.nts-spinner{display:inline-block;width:30px;height:30px;border:3px solid #d7e7f4;border-top-color:var(--blue);border-radius:50%;animation:nts-spin .75s linear infinite}.nts-inline-progress .nts-spinner{width:22px;height:22px}.nts-progress-track{height:8px;width:min(100%,420px);overflow:hidden;border-radius:99px;background:#e7f0f7}.nts-progress-track i{display:block;width:45%;height:100%;border-radius:inherit;background:linear-gradient(90deg,#1d72c2,#78b9ee);animation:nts-progress 1.1s ease-in-out infinite}.nts-import-progress h2,.nts-import-success h2{margin:0;color:var(--ink)}.nts-import-progress p,.nts-import-success p{margin:0}.nts-import-success{text-align:center;padding:24px 8px}.nts-import-success>span{display:grid;place-items:center;width:62px;height:62px;margin:0 auto 13px;border-radius:50%;background:#e9f8ee;color:#27854d;font-size:34px;font-weight:800}.nts-import-success-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin:20px 0}.nts-import-success-grid b{padding:11px 8px;border:1px solid var(--line);border-radius:10px;background:#f8fcff;color:#668097;font-size:12px}.nts-import-success-grid strong{display:block;color:var(--blue);font-size:20px}.nts-confirm-dialog{width:min(100% - 32px,440px);border:0;border-radius:16px;padding:0;box-shadow:0 20px 50px rgba(21,59,92,.3)}.nts-confirm-dialog::backdrop{background:rgba(17,47,74,.4)}.nts-confirm-body{text-align:center;padding:28px}.nts-confirm-body h2{margin:9px 0 7px;font-size:21px}.nts-confirm-body p{margin:0;color:var(--muted)}.nts-confirm-icon{display:grid;place-items:center;width:48px;height:48px;margin:auto;border-radius:50%;background:#fff5dd;color:#b9821e;font-size:24px;font-weight:800}.nts-confirm-body .nts-dialog-actions{justify-content:center}.nts-toast-region{position:fixed;top:18px;right:18px;z-index:100;display:grid;gap:9px;max-width:min(360px,calc(100vw - 36px))}.nts-toast{display:flex;align-items:center;gap:10px;padding:11px 14px;border:1px solid #cde9d7;border-radius:10px;background:#fff;box-shadow:0 12px 28px rgba(25,68,101,.16);color:#276a46;animation:nts-toast-in .22s ease-out}.nts-toast.error{border-color:#f2caca;color:#a34242}.nts-toast b{display:grid;place-items:center;width:21px;height:21px;flex:0 0 auto;border-radius:50%;background:#2e9a58;color:#fff}.nts-toast.error b{background:#c65353}.nts-toast.leaving{opacity:0;transform:translateX(18px);transition:.22s}.nts-table-actions .nts-button{transition:transform .18s,box-shadow .18s}.nts-table-actions .nts-button:hover{transform:translateY(-2px);box-shadow:0 6px 12px rgba(23,103,181,.16)}.nts-crop-handle.n{left:50%;top:-7px;transform:translateX(-50%)}.nts-crop-handle.e{right:-7px;top:50%;transform:translateY(-50%)}.nts-crop-handle.s{left:50%;bottom:-7px;transform:translateX(-50%)}.nts-crop-handle.w{left:-7px;top:50%;transform:translateY(-50%)}.nts-image-upload{min-height:190px}.nts-crop-image{position:absolute;left:50%;top:50%;cursor:grab}.nts-crop-image:active{cursor:grabbing}.nts-crop-actions{flex-wrap:wrap}.nts-crop-actions [data-reset-crop]{display:inline-flex}@keyframes nts-spin{to{transform:rotate(360deg)}}@keyframes nts-progress{0%{transform:translateX(-120%)}100%{transform:translateX(260%)}}@keyframes nts-toast-in{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:none}}@media(max-width:700px){.nts-student-modal{width:calc(100% - 16px);max-height:calc(100vh - 16px);padding:16px}.nts-student-modal>div{max-height:calc(100vh - 48px)}.nts-workflow-dialog-head{gap:10px}.nts-dialog-actions>.nts-button{flex:1}.nts-inline-progress{grid-template-columns:auto 1fr}.nts-inline-progress .nts-progress-track{grid-column:1/-1;width:100%}.nts-import-success-grid{grid-template-columns:repeat(2,1fr)}.nts-student-modal .nts-form-grid{grid-template-columns:1fr}.nts-student-modal .nts-image-upload{min-height:220px}.nts-toast-region{top:12px;right:12px}.nts-modal-table-wrap{max-height:40vh}.nts-student-modal .nts-page-actions .nts-button{flex:1}}

/* Balanced, scroll-contained Student Import dialog. */
#studentImportDialog.nts-student-modal{width:min(92vw,1020px);min-height:580px;max-height:85vh;padding:0;border-radius:18px;background:#fff}#studentImportDialog.nts-student-modal>div{max-height:85vh;padding:0;overflow:auto}#studentImportDialog .nts-workflow-dialog-head{position:sticky;top:0;z-index:2;padding:22px 24px 16px;background:#fff;border-bottom:1px solid var(--line)}#studentImportDialog .nts-workflow-dialog-head+ p{padding:0 24px}#studentImportDialog .nts-import-summary,#studentImportDialog .nts-modal-table-wrap{margin-left:24px;margin-right:24px}#studentImportDialog .nts-modal-table-wrap{max-height:41vh;margin-bottom:0}#studentImportDialog .nts-dialog-actions{position:sticky;bottom:0;z-index:2;margin:0;padding:16px 24px;background:#fff;border-top:1px solid var(--line)}#studentImportDialog .nts-import-progress,#studentImportDialog .nts-import-success{min-height:480px;padding:70px 28px;align-content:center}@media(max-width:800px){#studentImportDialog.nts-student-modal{width:94vw;min-height:0;max-height:88vh}#studentImportDialog.nts-student-modal>div{max-height:88vh}#studentImportDialog .nts-modal-table-wrap{max-height:38vh}}@media(max-width:560px){#studentImportDialog.nts-student-modal{width:96vw;max-height:92vh}#studentImportDialog.nts-student-modal>div{max-height:92vh}#studentImportDialog .nts-workflow-dialog-head{padding:16px 17px 12px}#studentImportDialog .nts-workflow-dialog-head+ p{padding:0 17px}#studentImportDialog .nts-import-summary,#studentImportDialog .nts-modal-table-wrap{margin-left:17px;margin-right:17px}#studentImportDialog .nts-dialog-actions{padding:13px 17px;display:grid;grid-template-columns:1fr}#studentImportDialog .nts-dialog-actions .nts-button{width:100%}#studentImportDialog .nts-import-progress,#studentImportDialog .nts-import-success{min-height:360px;padding:40px 18px}}

/* Keep every select-file control inside the Student Import dialog card. */
#studentImportDialog [data-student-import-form]{padding:0 24px 24px}#studentImportDialog [data-student-import-form] .nts-alert{margin:16px 0}#studentImportDialog [data-student-import-form] .nts-file-drop{margin:16px 0}#studentImportDialog [data-student-import-form] .nts-page-actions{margin:0;padding:0;justify-content:flex-start}#studentImportDialog [data-student-import-form] .nts-page-actions .nts-button{flex:0 0 auto}@media(max-width:560px){#studentImportDialog [data-student-import-form]{padding:0 17px 18px}#studentImportDialog [data-student-import-form] .nts-page-actions{display:grid;grid-template-columns:1fr}#studentImportDialog [data-student-import-form] .nts-page-actions .nts-button{width:100%}}
#studentImportDialog .nts-import-inline-error{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}#studentImportDialog .nts-import-inline-error>span{min-width:220px;flex:1}#studentImportDialog .nts-import-error-actions{display:flex;gap:8px;flex-wrap:wrap}#studentImportDialog .nts-import-error-actions .nts-button{box-shadow:none;padding:8px 11px;font-size:12px}@media(max-width:560px){#studentImportDialog .nts-import-inline-error{display:grid}#studentImportDialog .nts-import-error-actions{display:grid;grid-template-columns:1fr}#studentImportDialog .nts-import-error-actions .nts-button{width:100%}}

/* Employee / Faculty management */
.nts-employee-modal{width:min(100% - 32px,980px);max-height:calc(100vh - 32px);overflow:hidden}.nts-employee-modal>div{max-height:calc(100vh - 80px);overflow:auto;padding-right:2px}.nts-employee-modal .nts-form{padding-top:12px}.nts-employee-modal .nts-card{box-shadow:none;margin:18px 0 0}.nts-employee-modal .nts-card:hover{transform:none}.nts-employee-view{display:grid;grid-template-columns:auto minmax(0,1fr);gap:26px;align-items:start;padding:4px}.nts-employee-filter{grid-template-columns:2fr 1fr 1fr auto}.nts-password-reset{margin:18px 0;padding:13px 15px;border:1px solid var(--line);border-radius:10px;background:#fbfdff}.nts-password-reset summary{display:flex;align-items:center;gap:8px;cursor:pointer;color:#315c7f;font-weight:700}.nts-password-reset p{margin:11px 0}.nts-employee-photo-card{padding:18px}.nts-employee-photo-card h2{margin-top:0}@media(max-width:860px){.nts-employee-filter{grid-template-columns:repeat(2,1fr)}.nts-employee-filter .nts-button{width:max-content}.nts-employee-view{grid-template-columns:1fr}}@media(max-width:600px){.nts-employee-modal{width:calc(100% - 16px);max-height:calc(100vh - 16px);padding:16px}.nts-employee-modal>div{max-height:calc(100vh - 48px)}.nts-employee-filter{grid-template-columns:1fr}.nts-employee-filter .nts-button{width:100%}.nts-employee-modal .nts-form-grid{grid-template-columns:1fr}.nts-employee-modal .nts-image-upload{min-height:220px}}
/* Sports configuration */
.nts-sport-modal{width:min(100% - 32px,680px);max-height:calc(100vh - 32px);overflow:auto}.nts-event-modal{width:min(100% - 32px,1080px);max-height:calc(100vh - 32px);overflow:hidden}.nts-event-modal>div,.nts-participants-modal>div{max-height:calc(100vh - 80px);overflow:auto;padding-right:2px}.nts-participants-modal{width:min(100% - 32px,1180px);max-height:calc(100vh - 32px);overflow:hidden}.nts-event-modal .nts-form{padding-top:10px}.nts-event-modal .nts-card,.nts-participants-modal .nts-card{box-shadow:none}.nts-event-modal .nts-card:hover,.nts-participants-modal .nts-card:hover{transform:none}.nts-event-filter{grid-template-columns:repeat(2,minmax(180px,1fr)) auto}.nts-stage-builder-card{margin-top:20px}.nts-stage-card{margin:13px 0;padding:16px;border:1px solid #dcebf5;border-radius:12px;background:#fbfdff}.nts-stage-card-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;color:#315c7f}.nts-stage-card-head>div{display:flex;gap:6px;flex-wrap:wrap}.nts-stage-card-head .nts-button{padding:7px 9px;font-size:12px}.nts-stage-qualification,.nts-stage-final{margin-top:12px;padding:13px;border-radius:9px;background:#f3f9fe}.nts-event-view{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,.8fr);gap:24px}.nts-event-stage-summary{display:grid;gap:9px}.nts-event-stage-summary h3{margin:0 0 3px}.nts-event-stage-summary article{display:grid;gap:4px;padding:12px;border:1px solid var(--line);border-radius:10px;background:#fbfdff}.nts-event-stage-summary span,.nts-event-stage-summary small{color:var(--muted);font-size:12px}.nts-participant-heading{display:flex;align-items:start;justify-content:space-between;gap:16px;margin-bottom:17px}.nts-participant-heading h2{margin:4px 0}.nts-participant-allocation,.nts-participant-current{margin-top:18px;padding:16px;border:1px solid var(--line);border-radius:12px;background:#fff}.nts-participant-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.nts-participant-tools input{min-width:210px;padding:9px 11px;border:1px solid var(--line);border-radius:8px}.nts-participant-tools .nts-button{padding:7px 9px;font-size:12px}@media(max-width:860px){.nts-event-filter{grid-template-columns:repeat(2,1fr)}.nts-event-filter .nts-button{width:max-content}.nts-event-view{grid-template-columns:1fr}}@media(max-width:600px){.nts-sport-modal,.nts-event-modal,.nts-participants-modal{width:calc(100% - 16px);max-height:calc(100vh - 16px);padding:16px}.nts-event-modal>div,.nts-participants-modal>div{max-height:calc(100vh - 48px)}.nts-event-modal .nts-form-grid{grid-template-columns:1fr}.nts-stage-card-head,.nts-participant-heading{align-items:stretch;flex-direction:column}.nts-stage-card-head>div,.nts-participant-tools{display:grid;grid-template-columns:1fr}.nts-participant-tools input{min-width:0}.nts-event-filter{grid-template-columns:1fr}.nts-event-filter .nts-button{width:100%}}
/* Focused Event eligibility form polish. */
.nts-event-modal>div{box-sizing:border-box;padding-right:16px;scrollbar-gutter:stable}.nts-event-modal .nts-event-form{padding:10px 2px 24px}.nts-event-form>.nts-form-grid{align-items:start;gap:16px 20px}.nts-event-form #class_id:not([multiple]){height:44px;min-height:44px;padding:10px 38px 10px 12px;line-height:1.25;vertical-align:middle}.nts-event-form select[multiple]{height:122px;min-height:122px;padding:6px 7px;border-radius:9px;line-height:1.35}.nts-event-form select[multiple] option{padding:6px 8px;border-radius:5px}.nts-event-form select[multiple] option:checked{background:#dceefe linear-gradient(0deg,#dceefe,#dceefe);color:#174e82}.nts-event-form select[multiple]+small{margin-top:-1px}@media(max-width:600px){.nts-event-modal>div{padding-right:8px}.nts-event-modal .nts-event-form{padding-right:0}.nts-event-form select[multiple]{height:132px;min-height:132px}}
/* Teacher Panel foundation */
.nts-teacher-shell{min-height:100vh;background:#f3f9fe}.nts-teacher-topbar{min-height:76px;padding:10px clamp(16px,4vw,48px);display:flex;align-items:center;gap:20px;background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20}.nts-teacher-brand{display:flex;align-items:center;gap:10px;font-weight:750;white-space:nowrap}.nts-teacher-brand img{width:76px;height:54px;object-fit:contain}.nts-teacher-nav{display:flex;align-items:center;gap:6px;flex:1}.nts-teacher-nav a{display:inline-flex;align-items:center;gap:8px;padding:10px 12px;border-radius:9px;color:#587189;font-size:14px;font-weight:700}.nts-teacher-nav a:hover,.nts-teacher-nav a.active{background:#eaf6ff;color:var(--blue)}.nts-teacher-topbar .nts-profile-menu{margin-left:auto}.nts-teacher-main{width:min(100% - 32px,1240px);margin:0 auto;padding:30px 0 48px}.nts-teacher-page-head{margin-bottom:18px}.nts-teacher-page-head h1{margin:3px 0 0;font-size:25px}.nts-teacher-welcome{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:27px;border:1px solid #cde5fa;border-radius:16px;background:linear-gradient(120deg,#e5f5ff,#fff);margin-bottom:20px}.nts-teacher-welcome h2{margin:4px 0;font-size:25px}.nts-teacher-welcome p{margin:0;color:#5b7591}.nts-teacher-welcome>.nts-icon{width:58px;height:58px;color:#1e76bf}.nts-teacher-stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:20px}.nts-teacher-stat-grid article{min-height:120px;padding:19px;display:grid;grid-template-columns:auto 1fr;column-gap:12px;align-content:center;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow)}.nts-teacher-stat-grid span{grid-row:span 2;display:grid;place-items:center;width:44px;height:44px;border-radius:11px;background:#e9f6ff;color:var(--blue)}.nts-teacher-stat-grid strong{font-size:25px;line-height:1}.nts-teacher-stat-grid small{color:var(--muted);font-weight:650}.nts-teacher-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:20px}.nts-teacher-activity{display:grid;gap:10px}.nts-teacher-activity>div{display:flex;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid #edf2f6}.nts-teacher-activity small{color:var(--muted);white-space:nowrap}.nts-teacher-event-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.nts-teacher-event-card{padding:18px;border:1px solid var(--line);border-radius:13px;background:#fbfdff;display:grid;gap:16px}.nts-teacher-event-card h3{margin:3px 0 9px;font-size:18px}.nts-teacher-event-card dl{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0}.nts-teacher-event-card dt{font-size:11px;font-weight:750;color:#7790a5;text-transform:uppercase}.nts-teacher-event-card dd{margin:3px 0 0;font-weight:650;font-size:13px;overflow-wrap:anywhere}.nts-teacher-stage-list{display:grid;gap:14px}.nts-teacher-stage{display:flex;justify-content:space-between;align-items:center;gap:22px;margin-bottom:0}.nts-teacher-stage h2{margin:3px 0 6px}.nts-teacher-stage p{margin:0;color:var(--muted)}.nts-teacher-stage small{display:block;margin-top:8px;color:#638099}.nts-teacher-stage-actions{display:grid;justify-items:end;gap:10px;color:#668097;font-size:13px;font-weight:700;text-align:right}.nts-timing-session-dialog{width:min(100% - 32px,560px)}.nts-teacher-filter{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:12px;align-items:end}.nts-teacher-filter .nts-button{height:43px}.nts-timing-session-table{min-width:1120px}.nts-timing-session-table .nts-button{padding:8px 10px;font-size:12px}.nts-teacher-session-detail{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr);gap:20px}.nts-timing-next{align-self:start;text-align:center;padding:32px 24px}.nts-timing-next>span{display:grid;place-items:center;width:58px;height:58px;margin:0 auto 14px;border-radius:50%;background:#eaf6ff;color:var(--blue)}.nts-timing-next>span .nts-icon{width:29px;height:29px}.nts-timing-next p{margin-bottom:0}@media(max-width:900px){.nts-teacher-topbar{flex-wrap:wrap}.nts-teacher-nav{order:3;flex-basis:100%;overflow:auto;padding-bottom:2px}.nts-teacher-main{width:min(100% - 28px,1240px);padding-top:22px}.nts-teacher-grid,.nts-teacher-session-detail{grid-template-columns:1fr}.nts-teacher-event-grid{grid-template-columns:1fr}.nts-teacher-filter{grid-template-columns:repeat(2,1fr)}}@media(max-width:600px){.nts-teacher-topbar{padding:9px 14px;gap:10px}.nts-teacher-brand img{width:57px;height:44px}.nts-teacher-brand span{font-size:14px}.nts-teacher-topbar .nts-profile-trigger img{width:36px;height:36px}.nts-teacher-nav a{padding:10px 11px;min-height:44px;white-space:nowrap}.nts-teacher-main{width:calc(100% - 24px);padding:18px 0 34px}.nts-teacher-page-head h1{font-size:21px}.nts-teacher-welcome{padding:20px}.nts-teacher-welcome>.nts-icon{display:none}.nts-teacher-stat-grid{grid-template-columns:1fr;gap:10px}.nts-teacher-stat-grid article{min-height:94px}.nts-teacher-stage{display:grid;gap:15px}.nts-teacher-stage-actions{justify-items:stretch;text-align:left}.nts-teacher-stage-actions .nts-button{width:100%;min-height:46px}.nts-teacher-event-card dl{grid-template-columns:1fr}.nts-teacher-filter{grid-template-columns:1fr}.nts-teacher-filter .nts-button{width:100%;min-height:46px}.nts-timing-session-dialog{width:calc(100% - 16px);max-height:calc(100vh - 16px);padding:17px}.nts-timing-session-dialog .nts-dialog-actions{display:grid;grid-template-columns:1fr}.nts-timing-session-dialog .nts-button{width:100%;min-height:46px}.nts-teacher-activity>div{display:grid}.nts-teacher-activity small{white-space:normal}}

/* Teacher Panel live stopwatch and lap capture. */
.nts-live-timing{display:grid;justify-items:center;align-content:start;gap:16px;padding:25px;overflow:hidden}.nts-live-timing-head{width:100%;display:flex;align-items:start;justify-content:space-between;gap:12px}.nts-live-timing-head h2{margin:3px 0 0}.nts-sound-toggle{min-height:40px;white-space:nowrap}.nts-analog-clock{position:relative;width:min(50vw,210px);aspect-ratio:1;border:9px solid #e6f5ff;border-radius:50%;background:radial-gradient(circle at 50% 50%,#fff 0 7px,transparent 8px),linear-gradient(145deg,#fff,#f2faff);box-shadow:inset 0 0 0 1px #b9ddef,0 14px 30px rgba(23,103,181,.13)}.nts-clock-tick{position:absolute;left:50%;top:10px;width:3px;height:15px;border-radius:4px;background:#266da7;transform-origin:50% calc((min(50vw,210px) / 2) - 10px)}.nts-clock-tick.tick-12{transform:translateX(-50%)}.nts-clock-tick.tick-3{transform:translateX(-50%) rotate(90deg)}.nts-clock-tick.tick-6{transform:translateX(-50%) rotate(180deg)}.nts-clock-tick.tick-9{transform:translateX(-50%) rotate(270deg)}.nts-clock-dot{position:absolute;z-index:2;left:50%;top:50%;width:12px;height:12px;border:3px solid #fff;border-radius:50%;background:#116fbd;transform:translate(-50%,-50%);box-shadow:0 1px 4px rgba(23,103,181,.35)}.nts-clock-hand{position:absolute;left:50%;bottom:50%;width:3px;height:39%;border-radius:6px;background:linear-gradient(#db4e4e,#be2e2e);transform:translateX(-50%) rotate(0deg);transform-origin:50% 100%;will-change:transform}.nts-digital-timer{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:clamp(36px,6vw,62px);font-weight:800;letter-spacing:-.075em;color:#153b5c;line-height:1}.nts-timing-feedback{min-height:20px;margin:0;text-align:center;color:#55728d;font-size:13px;font-weight:650}.nts-timing-feedback.error{color:#b14141}.nts-timing-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;width:100%}.nts-timing-controls .nts-button{min-height:52px;justify-content:center}.nts-button.danger{background:#bf4444;box-shadow:0 6px 14px rgba(171,54,54,.2)}.nts-button.danger:hover{background:#aa3737}.nts-timing-laps-card{margin-top:20px}.nts-timing-lap-table{min-width:920px}.nts-lap-saving{color:#59738c;font-weight:700}.nts-lap-save-failed{color:#b14141;font-weight:700}.nts-lap-save-failed .nts-button{margin-left:8px;padding:7px 10px;font-size:12px;box-shadow:none}.nts-confirm-dialog .nts-button.danger{color:#fff}@media(max-width:600px){.nts-live-timing{padding:20px 15px}.nts-live-timing-head{align-items:center}.nts-live-timing-head .nts-eyebrow{font-size:10px}.nts-live-timing-head h2{font-size:20px}.nts-analog-clock{width:min(70vw,220px)}.nts-clock-tick{transform-origin:50% calc((min(70vw,220px) / 2) - 10px)}.nts-digital-timer{font-size:clamp(34px,12vw,52px)}.nts-timing-controls{gap:7px}.nts-timing-controls .nts-button{min-height:54px;padding:9px 6px;font-size:12px}.nts-sound-toggle{padding:8px 10px;font-size:12px}.nts-timing-laps-card{padding:15px}.nts-lap-save-failed .nts-button{display:block;margin:8px 0 0}}

/* Pause / resume timing controls. */
.nts-timing-controls{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.nts-timing-controls .nts-button{width:100%;min-width:0;min-height:56px;border:0;font-weight:800;white-space:nowrap;box-shadow:0 6px 14px rgba(25,68,101,.16)}.nts-timing-controls .nts-button:disabled{opacity:.5;box-shadow:none}.nts-timing-start{background:#176fb8;color:#fff}.nts-timing-start:hover:not(:disabled){background:#105f9f}.nts-timing-lap{background:#288650;color:#fff}.nts-timing-lap:hover:not(:disabled){background:#1f7041}.nts-timing-pause{background:#d99a23;color:#1d2730}.nts-timing-pause:hover:not(:disabled){background:#c58719}.nts-timing-stop{background:#bf4444;color:#fff}.nts-timing-stop:hover:not(:disabled){background:#aa3737}@media(max-width:600px){.nts-timing-controls{gap:6px}.nts-timing-controls .nts-button{min-height:56px;padding:8px 4px;font-size:11px;line-height:1.1}}

/* Timing lap student mapping. */
.nts-timing-lap-table{min-width:1440px}.nts-timing-lap-table input,.nts-timing-lap-table select{display:block;width:100%;min-width:180px;height:44px;border:1px solid #cbddea;border-radius:8px;padding:11px 10px;background:#fff;color:var(--ink);font:inherit;line-height:20px;outline:none;vertical-align:middle}.nts-timing-lap-table select{padding-right:34px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nts-timing-lap-table input:focus,.nts-timing-lap-table select:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(23,103,181,.12)}.nts-timing-lap-table [data-lap-message]{min-height:17px;line-height:1.3;color:#638099}.nts-timing-lap-table [data-lap-message].error{color:#ad4040}.nts-lap-mapping-status{display:inline-flex;padding:4px 8px;border-radius:99px;font-size:12px;font-weight:750}.nts-lap-mapping-status.mapped{background:#ebf8ef;color:#25804d}.nts-lap-mapping-status.unmapped{background:#f2f6f9;color:#61788c}.nts-timing-lap-table [data-lap-student-name]{display:block;max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nts-clear-lap-mapping{padding:8px 10px;font-size:12px;white-space:nowrap}@media(max-width:600px){.nts-timing-lap-table,.nts-timing-lap-table tbody,.nts-timing-lap-table tr,.nts-timing-lap-table td{display:block;min-width:0;width:100%}.nts-timing-lap-table thead{display:none}.nts-timing-lap-table tr[data-saved-lap]{margin:0 0 14px;padding:13px;border:1px solid var(--line);border-radius:11px;background:#fbfdff}.nts-timing-lap-table td{display:grid;grid-template-columns:112px minmax(0,1fr);gap:10px;padding:8px 0;border:0;align-items:start}.nts-timing-lap-table td::before{content:attr(data-label);color:#70899d;font-size:11px;font-weight:750;text-transform:uppercase;letter-spacing:.25px}.nts-timing-lap-table td[data-label="RFID Card Number"],.nts-timing-lap-table td[data-label="Student"],.nts-timing-lap-table td[data-label="Action"]{grid-template-columns:1fr}.nts-timing-lap-table td[data-label="RFID Card Number"]::before,.nts-timing-lap-table td[data-label="Student"]::before,.nts-timing-lap-table td[data-label="Action"]::before{margin-bottom:-3px}.nts-timing-lap-table input,.nts-timing-lap-table select{min-width:0;height:46px;min-height:46px;padding-top:12px;padding-bottom:12px}.nts-timing-lap-table select{padding-right:40px}.nts-timing-lap-table [data-timing-empty]{display:table-row}.nts-timing-lap-table [data-timing-empty] td{display:table-cell}.nts-clear-lap-mapping{min-height:44px;width:100%}}

/* Compact timing-lap mapping layout. */
.nts-timing-lap-table{min-width:960px}.nts-timing-lap-table th:nth-child(1){width:72px}.nts-timing-lap-table th:nth-child(2){width:150px}.nts-timing-lap-table th:nth-child(3){width:290px}.nts-timing-lap-table th:nth-child(4){width:360px}.nts-timing-lap-table th:nth-child(5){width:116px}.nts-lap-captured-time{display:block;margin-bottom:6px;font:750 15px/20px ui-monospace,SFMono-Regular,Consolas,monospace;color:#23435e}.nts-timing-lap-table td:nth-child(3),.nts-timing-lap-table td:nth-child(4){min-width:0}.nts-timing-lap-table td:nth-child(3) input,.nts-timing-lap-table td:nth-child(4) select{min-width:0}@media(max-width:600px){.nts-timing-lap-table{min-width:0}.nts-lap-captured-time{display:inline-block;margin:0 7px 0 0}.nts-timing-lap-table td[data-label="Captured Time"]{align-items:center}.nts-timing-lap-table td[data-label="Captured Time"] .nts-lap-mapping-status{vertical-align:middle}}

/* Qualification review and controlled Stage progression. */
.nts-pro-modal [data-font-install]{display:grid;gap:13px;max-width:440px}.nts-pro-modal [data-font-install] label{display:grid;gap:6px;color:#4e6b82;font-size:13px;font-weight:700}.nts-pro-modal [data-font-install] input{padding:10px;border:1px solid #cbddea;border-radius:8px;font:inherit}
nav.nts-certificate-tabs a{display:inline-flex;align-items:center;gap:8px}
.nts-pro-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:11px 14px;background:#fff;border-bottom:1px solid var(--line)}.nts-pro-brand,.nts-pro-toolbar-group{display:flex;align-items:center;gap:6px}.nts-pro-brand{margin-right:8px}.nts-pro-brand strong{display:block;font-size:15px}.nts-pro-brand small{display:block;color:var(--muted);font-size:11px}.nts-pro-toolbar-group{padding-left:9px;border-left:1px solid var(--line)}.nts-pro-toolbar-end{margin-left:auto}.nts-pro-toolbar button,.nts-pro-tool,.nts-pro-tool-upload{border:1px solid #c9ddeb;border-radius:8px;background:#f9fcff;color:#45647d;padding:8px 10px;font:700 12px inherit;cursor:pointer}.nts-pro-toolbar button:hover,.nts-pro-tool:hover,.nts-pro-tool-upload:hover{border-color:#9fc8e9;background:#edf7ff;color:var(--blue)}.nts-pro-toolbar .save,.nts-pro-modal .save{background:var(--blue);border-color:var(--blue);color:#fff}.nts-pro-tool{font-size:18px;line-height:1}.nts-pro-tool-upload{position:relative;display:inline-block}.nts-pro-tool-upload input{position:absolute;width:1px;height:1px;opacity:0}.nts-pro-editor{display:grid;grid-template-columns:205px minmax(0,1fr) 286px;min-height:700px}.nts-pro-left,.nts-pro-properties{display:grid;align-content:start;gap:11px;padding:16px;background:#fff;border-right:1px solid var(--line);overflow:auto}.nts-pro-properties{border-right:0;border-left:1px solid var(--line)}.nts-pro-page-card{display:grid;gap:3px;padding:11px;border:1px solid #cce1f1;border-radius:10px;background:#f7fbff}.nts-pro-page-card b{display:grid;place-items:center;width:26px;height:26px;border-radius:7px;background:#dbeefd;color:var(--blue)}.nts-pro-left button{padding:9px;border:1px solid #c9ddeb;border-radius:8px;background:#f9fcff;color:#45647d;font:700 12px inherit;cursor:pointer}.nts-pro-left label,.nts-pro-properties label{display:grid;gap:4px;color:#547089;font-size:12px;font-weight:700}.nts-pro-left input,.nts-pro-properties input,.nts-pro-properties select,.nts-pro-properties textarea{width:100%;padding:8px;border:1px solid #cbddea;border-radius:7px;background:#fff;font:inherit}.nts-pro-left small,.nts-pro-page-card small{color:var(--muted);font-size:11px}.nts-pro-workspace{position:relative;min-width:0;overflow:auto;padding:52px;background:repeating-linear-gradient(45deg,#edf5fb,#edf5fb 14px,#e8f1f8 14px,#e8f1f8 28px);display:grid;place-items:center}.nts-pro-sheet-wrap{min-width:max-content;padding:18px}.nts-pro-canvas{--certificate-zoom:1;position:relative;width:920px;aspect-ratio:1.414/1;overflow:hidden;background:#fff;box-shadow:0 16px 34px rgba(24,60,91,.22);transform:scale(var(--certificate-zoom));transform-origin:center}.nts-pro-canvas.portrait{width:650px;aspect-ratio:1/1.414}.nts-pro-background,.nts-pro-elements{position:absolute;inset:0}.nts-pro-background{background-repeat:no-repeat;background-position:50% 50%;background-size:100%;cursor:grab}.nts-pro-element{position:absolute;display:flex;overflow:visible;cursor:move;user-select:none;outline:1px dashed transparent;box-sizing:border-box}.nts-pro-element:hover,.nts-pro-element.selected{outline:1px solid #1f78bd;box-shadow:0 0 0 2px rgba(31,120,189,.15)}.nts-pro-element img{width:100%;height:100%;object-fit:contain;pointer-events:none}.nts-pro-element.variable_image>span{display:grid;place-items:center;width:100%;height:100%;border:1px dashed #7daacb;border-radius:50%;background:#eff8ff;color:#426a88;text-align:center;font:700 12px system-ui}.nts-pro-element.variable_image small{font-weight:500}.nts-pro-resize{position:absolute;right:-6px;bottom:-6px;width:12px;height:12px;border:2px solid #fff;border-radius:3px;background:var(--blue);cursor:nwse-resize}.nts-pro-empty{position:absolute;inset:0;display:grid;place-items:center;color:#93aabb;font:700 16px system-ui;pointer-events:none}.nts-pro-ruler{position:absolute;background:#fff;border-color:#c8d9e6;z-index:2;box-shadow:0 2px 7px rgba(23,63,96,.08)}.nts-pro-ruler-top{top:0;left:27px;right:0;height:27px;border-bottom:1px solid #c8d9e6}.nts-pro-ruler-left{top:27px;bottom:0;left:0;width:27px;border-right:1px solid #c8d9e6}.nts-pro-ruler-corner{position:absolute;top:0;left:0;width:27px;height:27px;background:#e2eef7;border-right:1px solid #c8d9e6;border-bottom:1px solid #c8d9e6;z-index:3}.nts-pro-ruler i{position:absolute;display:block;width:1px;height:8px;background:#8ca4b7;bottom:0}.nts-pro-ruler i b{position:absolute;top:-15px;left:2px;color:#678197;font:700 9px system-ui}.nts-pro-ruler-left i{width:8px;height:1px;right:0;left:auto}.nts-pro-ruler-left i b{top:-5px;left:2px}.nts-pro-two{display:grid;grid-template-columns:1fr 1fr;gap:8px}.nts-pro-checks{display:grid;grid-template-columns:1fr 1fr;gap:7px}.nts-pro-checks label{display:flex;align-items:center;gap:5px}.nts-pro-checks input{width:auto}.nts-pro-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}.nts-pro-actions button{padding:9px;border:1px solid #c9ddeb;border-radius:8px;background:#f8fcff;color:#496880;font:700 12px inherit;cursor:pointer}.nts-pro-actions button:last-child{color:#a34242;background:#fff5f5;border-color:#efc9c9}.nts-pro-modal[hidden]{display:none}.nts-pro-modal{position:fixed;inset:0;z-index:200;background:rgba(15,45,70,.38);display:grid;place-items:center;padding:18px}.nts-pro-modal-box{width:min(760px,100%);max-height:calc(100vh - 36px);overflow:auto;border:1px solid #bcd7e9;border-radius:14px;background:#fff;box-shadow:0 22px 60px rgba(12,44,70,.32)}.nts-pro-modal-box>header{display:flex;justify-content:space-between;align-items:center;padding:15px 18px;border-bottom:1px solid var(--line);cursor:move}.nts-pro-modal-box>header button{border:0;background:transparent;font-size:24px;color:#668099;cursor:pointer}.nts-pro-modal-box nav{display:flex;gap:7px;padding:12px 18px;border-bottom:1px solid var(--line)}.nts-pro-modal-box nav button{padding:8px 12px;border:1px solid #c9ddeb;border-radius:8px;background:#f8fcff;color:#54728a;font:700 12px inherit;cursor:pointer}.nts-pro-modal-box nav button.active{border-color:#9ec9eb;background:#edf7ff;color:var(--blue)}.nts-pro-modal-box section{padding:18px}.nts-pro-font-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px}.nts-pro-font-list article{padding:13px;border:1px solid var(--line);border-radius:10px;background:#fbfdff}.nts-pro-font-list b{font-size:19px}.nts-pro-font-list span,.nts-pro-font-list p{display:block;margin:6px 0;color:#6c8497;font-size:12px}.nts-pro-font-list p{min-height:35px;font-size:18px;color:#284b65}.nts-pro-font-list button{padding:7px 9px;border:1px solid #bcd8eb;border-radius:7px;background:#edf7ff;color:var(--blue);font:700 12px inherit;cursor:pointer}.nts-pro-modal form{display:grid;gap:13px;max-width:440px}.nts-pro-modal form label{display:grid;gap:6px;color:#4e6b82;font-size:13px;font-weight:700}.nts-pro-modal form input{padding:10px;border:1px solid #cbddea;border-radius:8px;font:inherit}.nts-pro-font-drop{min-height:120px;place-items:center;text-align:center;border:1.5px dashed #9fc6e4!important;border-radius:10px;background:#f7fbff;cursor:pointer}.nts-pro-font-drop input{position:absolute;width:1px;height:1px;opacity:0}.nts-pro-font-drop.drag-over{border-color:var(--blue)!important;background:#edf7ff}.nts-pro-toast{position:fixed;right:20px;top:20px;z-index:250;padding:12px 15px;border:1px solid #b9dfc8;border-radius:9px;background:#fff;color:#267046;box-shadow:var(--shadow);font-weight:700}.nts-pro-toast.error{border-color:#efc7c7;color:#a34242}.nts-pro-preview .nts-pro-left,.nts-pro-preview .nts-pro-properties{display:none}.nts-pro-preview .nts-pro-editor{grid-template-columns:minmax(0,1fr)}body.nts-certificate-app-fullscreen .nts-sidebar,body.nts-certificate-app-fullscreen .nts-topbar{display:none}body.nts-certificate-app-fullscreen .nts-main{width:100%;margin:0}body.nts-certificate-app-fullscreen .nts-content{max-width:none;padding:0}body.nts-certificate-app-fullscreen .nts-certificate-designer{position:fixed;inset:0;z-index:150;background:#edf5fb;border:0;border-radius:0}body.nts-certificate-app-fullscreen .nts-pro-editor{min-height:calc(100vh - 61px)}
@media(max-width:1100px){.nts-pro-editor{grid-template-columns:185px minmax(0,1fr)}.nts-pro-properties{grid-column:1/-1;border-left:0;border-top:1px solid var(--line);grid-template-columns:repeat(3,minmax(0,1fr))}.nts-pro-properties>.nts-eyebrow,.nts-pro-properties>[data-no-selection]{grid-column:1/-1}.nts-pro-properties>[data-properties]{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.nts-pro-properties .nts-pro-actions{grid-column:1/-1}.nts-pro-canvas{width:760px}}@media(max-width:700px){.nts-pro-toolbar-end{margin-left:0}.nts-pro-editor{grid-template-columns:1fr}.nts-pro-left{grid-template-columns:1fr 1fr;border-right:0;border-bottom:1px solid var(--line)}.nts-pro-left>.nts-eyebrow,.nts-pro-left>small{grid-column:1/-1}.nts-pro-workspace{min-height:430px;place-items:start;padding:45px 15px 15px}.nts-pro-canvas{width:540px}.nts-pro-canvas.portrait{width:380px}.nts-pro-properties{grid-template-columns:1fr}.nts-pro-properties>[data-properties]{grid-template-columns:1fr 1fr}.nts-pro-toolbar-group{border-left:0;padding-left:0}.nts-pro-ruler-left{display:none}.nts-pro-ruler-top{left:0}.nts-pro-ruler-corner{display:none}}
.nts-certificate-tabs{display:flex;gap:8px;margin:0 0 20px}.nts-certificate-tabs a{padding:10px 15px;border:1px solid var(--line);border-radius:9px;background:#fff;color:#59748b;font-weight:750}.nts-certificate-tabs a.active{border-color:#a9cce9;background:#edf7ff;color:var(--blue)}.nts-certificate-manager-grid{display:grid;grid-template-columns:minmax(320px,1fr) minmax(260px,.7fr);gap:20px}.nts-font-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(255px,1fr));gap:18px}.nts-font-card{margin:0}.nts-font-preview{min-height:105px;margin:12px 0!important;padding:16px;border:1px solid var(--line);border-radius:10px;background:#f9fcff;font-size:26px;line-height:1.3}.nts-font-preview small{font-size:14px}.nts-font-edit{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;align-items:center;margin-top:13px}.nts-font-edit input[type=text],.nts-font-edit input:not([type]){min-width:0;border:1px solid var(--line);border-radius:8px;padding:9px}.nts-font-edit label{white-space:nowrap;color:#59748b;font-size:13px}.nts-table-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.nts-table-actions form{margin:0}
.nts-certificate-designer{display:grid;gap:0;min-height:calc(100vh - 180px);border:1px solid #c9dceb;border-radius:15px;overflow:hidden;background:#edf5fb;box-shadow:var(--shadow)}.nts-designer-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 16px;background:#fff;border-bottom:1px solid var(--line)}.nts-designer-toolbar>div{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.nts-designer-toolbar strong{font-size:16px}.nts-designer-toolbar small{color:var(--muted)}.nts-designer-toolbar .nts-button{padding:9px 11px;font-size:12px}.nts-designer-body{display:grid;grid-template-columns:230px minmax(0,1fr) 270px;min-height:0}.nts-designer-panel{display:grid;align-content:start;gap:10px;padding:16px;background:#fff;border-right:1px solid var(--line);overflow:auto}.nts-designer-properties{border-right:0;border-left:1px solid var(--line)}.nts-designer-panel button,.nts-designer-upload{width:100%;padding:10px;border:1px solid #c9dceb;border-radius:8px;background:#f9fcff;color:#48677f;text-align:left;font:650 13px inherit;cursor:pointer}.nts-designer-panel button:hover,.nts-designer-upload:hover{background:#edf7ff;border-color:#9dc6e7;color:var(--blue)}.nts-designer-upload{display:block}.nts-designer-upload input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.nts-designer-panel hr{width:100%;border:0;border-top:1px solid var(--line);margin:7px 0}.nts-designer-panel small{color:var(--muted);font-size:12px}.nts-designer-panel>label{display:grid;gap:5px;color:#4c687e;font-size:12px;font-weight:700}.nts-designer-panel input,.nts-designer-panel select,.nts-designer-panel textarea{width:100%;padding:8px;border:1px solid #cbddea;border-radius:7px;background:#fff;font:inherit}.nts-designer-panel input[type=color]{height:37px;padding:3px}.nts-designer-panel input[type=range]{padding:0}.nts-designer-workspace{min-width:0;min-height:600px;padding:34px;overflow:auto;background:repeating-linear-gradient(45deg,#e8f1f8,#e8f1f8 12px,#e4edf5 12px,#e4edf5 24px);display:grid;place-items:center}.nts-designer-canvas-wrap{display:grid;place-items:center;min-width:max-content;padding:20px}.nts-certificate-canvas{--canvas-zoom:1;position:relative;width:920px;aspect-ratio:1.414/1;overflow:hidden;background:#fff;box-shadow:0 17px 36px rgba(19,54,82,.24);transform:scale(var(--canvas-zoom));transform-origin:center;transition:transform .15s}.nts-certificate-canvas.portrait{width:650px;aspect-ratio:1/1.414}.nts-certificate-background{position:absolute;inset:0;background-repeat:no-repeat;background-position:50% 50%;background-size:100%;cursor:grab}.nts-certificate-elements{position:absolute;inset:0}.nts-certificate-element{position:absolute;display:grid;align-content:center;overflow:visible;cursor:move;user-select:none;outline:1px dashed transparent;min-width:8px}.nts-certificate-element:hover,.nts-certificate-element.selected{outline-color:#1b78c4;background:rgba(229,244,255,.22)}.nts-certificate-element.selected:after{content:"";position:absolute;right:-5px;bottom:-5px;width:9px;height:9px;border:2px solid #fff;border-radius:50%;background:var(--blue);box-shadow:0 0 0 1px var(--blue)}.nts-certificate-element img{width:100%;height:100%;object-fit:contain;pointer-events:none}.nts-certificate-photo-placeholder{display:grid;place-items:center;width:100%;height:100%;border:1px dashed #7fa8c8;border-radius:50%;background:#edf7ff;color:#487091;font:700 13px system-ui;text-align:center}.nts-certificate-photo-placeholder small{font-weight:500}.nts-canvas-empty{position:absolute;inset:0;display:grid;place-items:center;color:#9ab0c0;font:700 16px system-ui;pointer-events:none}.nts-designer-two{display:grid;grid-template-columns:1fr 1fr;gap:8px}.nts-designer-toggles{display:grid;grid-template-columns:1fr 1fr;gap:7px}.nts-designer-toggles label{display:flex;align-items:center;gap:5px;font-weight:600}.nts-designer-toggles input{width:auto}.nts-designer-actions{display:grid;gap:7px;margin-top:6px}.nts-designer-actions .danger{color:#a34242;background:#fff5f5;border-color:#f0c7c7}.nts-certificate-designer:fullscreen{width:100vw;height:100vh;border:0;border-radius:0}.nts-certificate-designer:fullscreen .nts-designer-body{height:calc(100vh - 64px)}.nts-certificate-designer:fullscreen .nts-designer-workspace{min-height:0}.nts-certificate-designer:fullscreen .nts-certificate-canvas{max-width:calc(100vw - 560px);max-height:calc(100vh - 140px)}
  @media(max-width:1050px){.nts-designer-body{grid-template-columns:205px minmax(0,1fr)}.nts-designer-properties{grid-column:1/-1;border-left:0;border-top:1px solid var(--line);grid-template-columns:repeat(2,minmax(0,1fr))}.nts-designer-properties>.nts-eyebrow,.nts-designer-properties>[data-no-selection]{grid-column:1/-1}.nts-designer-properties>[data-element-settings]{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.nts-designer-properties .nts-designer-actions{grid-column:1/-1;grid-template-columns:repeat(3,1fr)}.nts-certificate-canvas{width:760px}}
@media(max-width:700px){.nts-certificate-manager-grid{grid-template-columns:1fr}.nts-font-edit{grid-template-columns:1fr}.nts-designer-toolbar{align-items:flex-start;display:grid}.nts-designer-body{grid-template-columns:1fr}.nts-designer-panel{border-right:0;border-bottom:1px solid var(--line);grid-template-columns:1fr 1fr}.nts-designer-panel>.nts-eyebrow,.nts-designer-panel>hr,.nts-designer-panel>small{grid-column:1/-1}.nts-designer-workspace{min-height:420px;padding:14px;place-items:start}.nts-designer-canvas-wrap{padding:10px}.nts-certificate-canvas{width:540px}.nts-certificate-canvas.portrait{width:380px}.nts-designer-properties>[data-element-settings]{grid-template-columns:1fr 1fr}.nts-designer-two{grid-template-columns:1fr}.nts-table-actions{min-width:230px}}
article .nts-stage-chain>div span{display:inline-flex;width:max-content;padding:3px 6px;border-radius:999px;background:rgba(255,255,255,.68)}
.nts-stat-grid-wide{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}.nts-stat-grid-wide .nts-card strong{font-size:25px;line-height:1.1}.nts-dashboard-progress{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:0}.nts-dashboard-progress div{padding:11px;border:1px solid var(--line);border-radius:10px;background:#f8fcff}.nts-dashboard-progress dt{color:#6e879a;font-size:12px;font-weight:700}.nts-dashboard-progress dd{margin:3px 0 0;color:var(--blue);font-size:20px;font-weight:800}
.nts-progress-filter-card{margin-bottom:20px}.nts-progress-attention{border-color:#efdcae;background:#fffdf8}.nts-progress-attention-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:10px}.nts-progress-attention-list a{display:grid;gap:3px;padding:11px;border:1px solid #eddcb3;border-radius:10px;background:#fff;color:#6f5930;transition:.18s}.nts-progress-attention-list a:hover{transform:translateY(-2px);box-shadow:var(--shadow)}.nts-progress-attention-list span{font-size:12px;color:#806c45}
.nts-event-progress-table{min-width:1080px}.nts-event-progress-table td>strong{display:block}.nts-stage-chain{display:grid;gap:7px;min-width:250px}.nts-stage-chain>div{display:grid;gap:3px;padding:8px 9px;border-left:3px solid #b7c8d6;border-radius:7px;background:#f8fcff}.nts-stage-chain>div.ready{border-color:#d39a25;background:#fffaf0}.nts-stage-chain>div.in_progress{border-color:#3f8bc9;background:#f1f8ff}.nts-stage-chain>div.finalized{border-color:#339760;background:#f1fbf4}.nts-stage-chain>div span{font-size:12px;font-weight:750;color:#5f768a}.nts-progress-unmapped{display:inline-flex;width:max-content;padding:3px 6px;border-radius:99px;background:#fff1e2;color:#a76320;font-weight:750}
.nts-status.not_started{background:#eef2f5;color:#607888}.nts-status.in_progress{background:#edf7ff;color:#1b6faa}.nts-status.ready{background:#fff7df;color:#a26d16}.nts-status.finalized{background:#ebf8ef;color:#25804d}.nts-event-progress-table td[data-label="Current Action"]{min-width:170px}.nts-event-progress-table td[data-label="Current Action"] .nts-button{margin-top:8px;padding:8px 10px;font-size:12px}
@media(max-width:700px){.nts-stat-grid-wide{grid-template-columns:repeat(2,1fr)}.nts-event-progress-table,.nts-event-progress-table tbody,.nts-event-progress-table tr,.nts-event-progress-table td{display:block;min-width:0;width:100%}.nts-event-progress-table thead{display:none}.nts-event-progress-table tr{margin:0 0 14px;padding:13px;border:1px solid var(--line);border-radius:12px;background:#fff}.nts-event-progress-table td{display:grid;grid-template-columns:125px minmax(0,1fr);gap:9px;padding:7px 0;border:0}.nts-event-progress-table td:before{content:attr(data-label);color:#70899d;font-size:11px;font-weight:750;text-transform:uppercase}.nts-event-progress-table td[data-label="Event"] strong,.nts-event-progress-table td[data-label="Event"] small{grid-column:2}.nts-event-progress-table td[data-label="Stages"] .nts-stage-chain{min-width:0}.nts-progress-attention-list{grid-template-columns:1fr}.nts-dashboard-progress{grid-template-columns:1fr}}@media(max-width:420px){.nts-stat-grid-wide{grid-template-columns:1fr}}
.nts-qualification-meta{display:flex;flex-wrap:wrap;gap:9px;margin:15px 0}.nts-qualification-meta span{padding:7px 10px;background:#f3f8fc;border:1px solid var(--line);border-radius:8px;color:#55718a;font-size:13px}.nts-qualification-meta strong{color:var(--ink)}.nts-final-result-meta{gap:0;align-items:center;margin:16px 0 18px}.nts-final-result-meta span{position:relative;display:inline-flex;align-items:center;gap:4px;margin-right:18px;padding:7px 18px 7px 0;background:transparent;border:0;border-radius:0}.nts-final-result-meta span:not(:last-child):after{content:"";position:absolute;right:0;top:50%;width:1px;height:18px;transform:translateY(-50%);background:#c8ddeb}.nts-final-result-meta span:last-child{margin-right:0;padding-right:0}.nts-finalized{border-color:#a8d8b8;background:#f5fcf7}.nts-qualification-table{min-width:720px}.nts-qualification-check{width:22px;height:22px;accent-color:var(--blue);cursor:pointer}.nts-finalize-bar{position:sticky;bottom:12px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:17px 20px;background:#163b5d;color:#fff;border-radius:13px;box-shadow:0 12px 26px rgba(20,53,81,.22)}.nts-finalize-bar p{margin:3px 0 0;color:#d7e9f7;font-size:13px}.nts-finalize-bar .nts-button{background:#fff;color:var(--blue);white-space:nowrap}@media(max-width:600px){.nts-qualification-meta{display:grid;grid-template-columns:1fr 1fr;gap:7px}.nts-qualification-meta span{font-size:12px}.nts-final-result-meta{grid-template-columns:1fr;gap:7px}.nts-final-result-meta span{margin-right:0;padding:7px 10px;background:#f3f8fc;border:1px solid var(--line);border-radius:8px}.nts-final-result-meta span:after{display:none}.nts-qualification-table,.nts-qualification-table tbody,.nts-qualification-table tr,.nts-qualification-table td{display:block;min-width:0;width:100%}.nts-qualification-table thead{display:none}.nts-qualification-table tr{margin:0 0 12px;padding:12px;border:1px solid var(--line);border-radius:10px;background:#fbfdff}.nts-qualification-table td{display:grid;grid-template-columns:112px minmax(0,1fr);gap:9px;padding:6px 0;border:0;align-items:center}.nts-qualification-table td:before{content:attr(data-label);color:#70899d;font-size:11px;font-weight:750;text-transform:uppercase}.nts-finalize-bar{bottom:7px;display:grid;grid-template-columns:1fr;padding:15px}.nts-finalize-bar .nts-button{width:100%;min-height:48px}.nts-qualification-check{width:25px;height:25px}}

/* Admin-only Student bulk photo workflow. */
  .nts-student-photo-bulk-modal{width:min(1120px,calc(100vw - 30px))}.nts-photo-bulk-picker{min-height:180px;padding:24px;border:1.5px dashed #a6c5dd;border-radius:12px;background:#f8fcff;display:grid;justify-items:center;align-content:center;gap:8px;text-align:center;color:#55718a;cursor:pointer}.nts-photo-bulk-picker.drag-over{border-color:var(--blue);background:#edf7ff;box-shadow:0 6px 18px rgba(23,103,181,.12)}.nts-photo-bulk-picker strong{color:var(--ink);font-size:16px}.nts-photo-bulk-picker span{font-size:13px}.nts-photo-bulk-hidden-input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.nts-photo-bulk-file-count{margin:11px 0 0;color:#59748b;font-weight:650}.nts-photo-bulk-summary{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin:14px 0}.nts-photo-bulk-summary span{padding:10px;border:1px solid var(--line);border-radius:9px;background:#f8fcff;color:#668095;font-size:11px;font-weight:700}.nts-photo-bulk-summary strong{display:block;color:var(--blue);font-size:20px;line-height:1.1}.nts-photo-bulk-progress{display:grid;gap:7px;margin:15px 0;padding:14px;border:1px solid #bfdceb;border-radius:10px;background:#f4faff}.nts-photo-bulk-progress strong{color:var(--blue)}.nts-photo-bulk-progress small{color:#59748b;font-weight:650}.nts-photo-bulk-attention,.nts-photo-bulk-matched,.nts-photo-bulk-missing{margin:15px 0;padding:15px;border:1px solid var(--line);border-radius:11px;background:#fff}.nts-photo-bulk-attention{border-color:#efdcae;background:#fffdf7}.nts-photo-bulk-attention h3,.nts-photo-bulk-matched h3,.nts-photo-bulk-missing h3{margin:0}.nts-photo-bulk-attention p,.nts-photo-bulk-missing p{margin:5px 0 10px;color:#697f90;font-size:13px}.nts-photo-bulk-attention ul,.nts-photo-bulk-matched ul,.nts-photo-bulk-missing ul{display:grid;gap:7px;margin:0;padding:0;list-style:none;max-height:310px;overflow:auto}.nts-photo-bulk-attention li,.nts-photo-bulk-missing li{display:grid;gap:2px;padding:9px 10px;border:1px solid #eeddb5;border-radius:8px;background:#fff}.nts-photo-bulk-attention li span,.nts-photo-bulk-missing li span{color:#6b7f90;font-size:12px}.nts-photo-bulk-matched>div{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.nts-photo-bulk-matched .nts-page-actions{gap:6px}.nts-photo-bulk-matched .nts-button{padding:8px 10px;font-size:12px}.nts-photo-bulk-match{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px;border:1px solid var(--line);border-radius:9px;background:#fbfdff}.nts-photo-bulk-match label{display:flex;align-items:flex-start;gap:10px;min-width:0;cursor:pointer}.nts-photo-bulk-match input{width:18px;height:18px;margin:2px 0;accent-color:var(--blue)}.nts-photo-bulk-match label span{display:grid;gap:2px;min-width:0}.nts-photo-bulk-match strong{overflow-wrap:anywhere}.nts-photo-bulk-match small{color:#6b8294;font-size:12px}.nts-photo-bulk-status{max-width:260px;color:#54748c;font-size:12px;text-align:right}.nts-photo-bulk-match.uploaded{border-color:#b7dfc5;background:#f4fcf7}.nts-photo-bulk-match.uploaded .nts-photo-bulk-status,.nts-photo-bulk-match.replaced .nts-photo-bulk-status{color:#23814b}.nts-photo-bulk-match.replaced{border-color:#c7e1d0;background:#f7fcf8}.nts-photo-bulk-match.failed{border-color:#efc7c7;background:#fff7f7}.nts-photo-bulk-match.failed .nts-photo-bulk-status{color:#a34242}.nts-photo-bulk-match.uploading{opacity:.72}.nts-student-photo-bulk-modal .nts-dialog-actions{position:sticky;bottom:-1px;margin:15px -1px -1px;padding:12px 0 0;background:#fff;border-top:1px solid var(--line)}
@media(max-width:850px){.nts-photo-bulk-summary{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:600px){.nts-student-photo-bulk-modal{width:calc(100vw - 16px);max-height:96vh}.nts-photo-bulk-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.nts-photo-bulk-matched>div{align-items:flex-start;display:grid}.nts-photo-bulk-match{align-items:flex-start;display:grid}.nts-photo-bulk-status{max-width:none;text-align:left}}
.nts-performance-list{display:grid;gap:14px;margin-top:20px}.nts-performance-card{margin:0}.nts-performance-card header{display:flex;justify-content:space-between;gap:16px;align-items:start;margin-bottom:14px}.nts-performance-card h2{margin:3px 0 0;font-size:18px}.nts-performance-best{min-width:130px;padding:9px 11px;border:1px solid #cfe3f2;border-radius:10px;background:#f4faff;text-align:right}.nts-performance-best small{display:block;color:#68839a;font-size:11px;font-weight:750;text-transform:uppercase}.nts-performance-best strong{display:block;margin-top:3px;color:#174e82;font-size:18px}.nts-performance-attempts{display:grid;gap:9px}.nts-performance-attempt{display:grid;grid-template-columns:100px minmax(130px,1fr) auto auto;gap:10px;align-items:center;padding:10px;border:1px solid #e0ebf3;border-radius:10px;background:#fbfdff}.nts-performance-attempt>strong{font-size:13px;color:#516e85}.nts-performance-attempt input[type="number"],.nts-performance-attempt input[type="text"]{min-width:0;height:42px;padding:9px 11px;border:1px solid var(--line);border-radius:8px;background:#fff}.nts-performance-valid{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;color:#55718a;font-size:13px;font-weight:700}.nts-performance-valid input{width:20px;height:20px;accent-color:#27854d}.nts-performance-attempt .nts-button{min-height:40px}.nts-performance-card footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}.nts-performance-card footer small{color:#70899d}.nts-performance-error{margin:10px 0 0;padding:9px 11px;border-radius:8px;background:#fff1f1;color:#a34242;font-size:13px;font-weight:650}.nts-performance-card[data-student-id] .nts-eyebrow{margin:0}@media(max-width:600px){.nts-performance-card header{display:grid;grid-template-columns:1fr}.nts-performance-best{text-align:left}.nts-performance-attempt{grid-template-columns:1fr 1fr}.nts-performance-attempt>strong{grid-column:1/-1}.nts-performance-attempt input[type="number"],.nts-performance-attempt input[type="text"]{min-height:48px;font-size:17px}.nts-performance-valid{min-height:44px}.nts-performance-attempt .nts-button{min-height:46px}.nts-performance-card footer{display:grid;grid-template-columns:1fr}.nts-performance-card footer .nts-button{width:100%;min-height:46px}}
.nts-report-filters{margin-bottom:20px}.nts-report-document{padding:28px}.nts-report-brand{display:flex;align-items:center;gap:16px;padding-bottom:17px;border-bottom:2px solid #d9eaf5}.nts-report-brand img{width:92px;height:65px;object-fit:contain}.nts-report-brand h2{margin:3px 0 4px;font-size:24px}.nts-report-brand small{color:#6d8598}.nts-report-details{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px;margin:18px 0}.nts-report-details div{padding:10px 11px;border:1px solid var(--line);border-radius:9px;background:#f8fcff}.nts-report-details dt{color:#6e879a;font-size:11px;font-weight:750;text-transform:uppercase}.nts-report-details dd{margin:4px 0 0;color:var(--ink);font-size:13px;font-weight:700}.nts-report-tools{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 16px}.nts-report-action-group{display:inline-flex;gap:8px;align-items:center;flex-wrap:wrap}.nts-report-tools .nts-button{min-height:40px;padding:9px 12px}.nts-report-table{min-width:760px}.nts-report-notice{border:1px dashed #cbdde9;border-radius:10px;background:#fbfdff}.nts-championship-table{min-width:780px}.nts-championship-table td:first-child strong,.nts-championship-table td:nth-child(3) strong{font-size:16px;color:#174e82}@media(max-width:600px){.nts-report-tools .nts-button{width:100%;min-height:46px}.nts-report-tools{display:grid;grid-template-columns:1fr}.nts-report-action-group{display:grid;grid-template-columns:1fr}.nts-report-document{padding:17px}.nts-report-brand img{width:68px;height:52px}.nts-report-brand h2{font-size:20px}.nts-report-details{grid-template-columns:1fr 1fr}.nts-report-table{min-width:640px}.nts-championship-table,.nts-championship-table tbody,.nts-championship-table tr,.nts-championship-table td{display:block;min-width:0;width:100%}.nts-championship-table thead{display:none}.nts-championship-table tr{margin:0 0 12px;padding:12px;border:1px solid var(--line);border-radius:10px;background:#fbfdff}.nts-championship-table td{display:grid;grid-template-columns:126px minmax(0,1fr);gap:9px;padding:6px 0;border:0;align-items:center}.nts-championship-table td:before{content:attr(data-label);color:#70899d;font-size:11px;font-weight:750;text-transform:uppercase}.nts-championship-table td:last-child{display:block;margin-top:7px}.nts-championship-table td:last-child:before{display:none}}@media print{.nts-teacher-topbar,.nts-teacher-page-head,.nts-report-filters,.nts-report-tools,.nts-alert{display:none!important}.nts-teacher-main{width:100%;max-width:none;margin:0;padding:0}.nts-teacher-shell{background:#fff}.nts-report-document{border:0!important;box-shadow:none!important;padding:0!important}.nts-card:hover{transform:none!important;box-shadow:none!important}.nts-table-wrap{overflow:visible}.nts-report-table{min-width:0;font-size:11px}.nts-report-table th,.nts-report-table td{padding:7px 6px}.nts-report-brand{margin-bottom:12px}}
.nts-application-setup-table .nts-table-note{display:block;margin-top:4px;color:#72899b;font-size:12px}.nts-application-form-card{max-width:980px}.nts-application-wide{grid-column:1/-1}.nts-application-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.nts-application-header h2{margin:4px 0 10px}.nts-application-header>.nts-muted{max-width:340px;margin:4px 0 0}.nts-application-meta{display:flex;flex-wrap:wrap;align-items:center;gap:9px}.nts-application-meta>span:not(.nts-status){padding:7px 10px;border:1px solid var(--line);border-radius:8px;background:#f8fcff;color:#58728a;font-size:13px}.nts-application-meta strong{color:var(--ink)}.nts-application-rule-list{display:grid;gap:12px}.nts-application-rule{display:flex;align-items:flex-start;justify-content:space-between;gap:22px;padding:16px;border:1px solid #dbe9f3;border-radius:11px;background:#fbfdff}.nts-application-rule h3{display:flex;align-items:center;gap:9px;margin:0 0 8px}.nts-application-rule p{margin:5px 0;font-size:13px}.nts-application-eligibility{color:#54718a!important}.nts-application-rule .nts-table-actions{justify-content:flex-end}.nts-application-rule-form select[multiple]{min-height:110px;padding:7px}.nts-application-rule-form select[multiple] option{padding:5px}.nts-application-rule-form .nts-check{align-self:end}.nts-application-rule-form .nts-dialog-actions{margin-top:18px}@media(max-width:760px){.nts-application-header,.nts-application-rule{display:grid;grid-template-columns:1fr}.nts-application-header>.nts-muted{max-width:none}.nts-application-rule .nts-table-actions{justify-content:flex-start}.nts-application-wide{grid-column:auto}}
.nts-review-dialog{width:min(94vw,560px);border:0;border-radius:16px;padding:0;background:#fff;color:var(--ink);box-shadow:0 24px 64px rgba(16,54,86,.28)}.nts-review-dialog::backdrop{background:rgba(17,47,74,.45)}.nts-review-dialog h2{margin:0;padding:22px 24px 9px;color:#173c5d}.nts-review-dialog>p,.nts-review-dialog>.nts-field{margin:0 24px 16px}.nts-review-dialog>.nts-field{display:grid;gap:7px}.nts-review-dialog>.nts-field select{min-height:42px;border:1px solid #c7d9e7;border-radius:8px;padding:8px 10px;background:#fff}.nts-review-dialog .nts-dialog-actions{margin:20px 0 0;padding:15px 24px;border-top:1px solid var(--line);background:#f8fcff}.nts-review-dialog-close{position:absolute;top:13px;right:14px;width:34px;height:34px;border:0;border-radius:50%;background:#edf6fc;color:#173c5d;font-size:25px;line-height:1;cursor:pointer}@media(max-width:600px){.nts-review-dialog{width:calc(100vw - 20px)}.nts-review-dialog h2{padding:19px 18px 8px}.nts-review-dialog>p,.nts-review-dialog>.nts-field{margin-left:18px;margin-right:18px}.nts-review-dialog .nts-dialog-actions{padding:13px 18px}.nts-review-dialog .nts-button{width:100%}}
.nts-workflow-dialog.nts-review-dialog{border:0!important;outline:0!important;padding:0!important;background:transparent!important;box-shadow:none!important}.nts-review-dialog{width:min(94vw,560px);border:0;outline:0;padding:0;background:transparent}.nts-review-dialog::backdrop{background:rgba(17,47,74,.45)}.nts-conversion-modal-card{overflow:hidden;border:1px solid #c8ddeb;border-radius:17px;background:#fff;color:var(--ink);box-shadow:0 24px 64px rgba(16,54,86,.3)}.nts-conversion-modal-card>header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 22px;background:#0c4e92;color:#fff}.nts-conversion-modal-card .nts-eyebrow{margin:0;color:#cfe8ff}.nts-conversion-modal-card h2{margin:3px 0 0;padding:0;color:#fff;font-size:21px}.nts-conversion-modal-card>p,.nts-conversion-modal-card>.nts-field{margin:20px 22px}.nts-conversion-modal-card>.nts-field{display:grid;gap:7px}.nts-conversion-modal-card>.nts-field select{min-height:42px;border:1px solid #c7d9e7;border-radius:8px;padding:8px 10px;background:#fff}.nts-conversion-modal-card .nts-dialog-actions{margin:0;padding:15px 22px;border-top:1px solid var(--line);background:#f8fcff}.nts-conversion-modal-close{width:34px;height:34px;border:1px solid rgba(255,255,255,.35);border-radius:50%;background:rgba(255,255,255,.16);color:#fff;font-size:25px;line-height:1;cursor:pointer}@media(max-width:600px){.nts-review-dialog{width:calc(100vw - 20px)}.nts-conversion-modal-card>header{padding:15px 17px}.nts-conversion-modal-card>p,.nts-conversion-modal-card>.nts-field{margin:17px}.nts-conversion-modal-card .nts-dialog-actions{padding:13px 17px}.nts-conversion-modal-card .nts-button{width:100%}}
.nts-conversion-modal-card>header{align-items:center}.nts-conversion-modal-title{display:flex;align-items:center;gap:10px;min-width:0}.nts-conversion-modal-title h2{min-width:0}.nts-conversion-modal-icon{width:23px;height:23px;flex:0 0 auto;color:#fff}.nts-conversion-modal-close{margin-left:auto;flex:0 0 auto}
.nts-conversion-modal-card>.nts-workflow-dialog-head{padding:20px 22px 16px;background:#fff;color:var(--ink);border-bottom:1px solid var(--line)}.nts-conversion-modal-card>.nts-workflow-dialog-head .nts-eyebrow{margin:0;color:var(--muted)}.nts-conversion-modal-card>.nts-workflow-dialog-head h2{margin:4px 0 0;padding:0;color:var(--ink)}.nts-conversion-modal-card>.nts-workflow-dialog-head .nts-button{flex:0 0 auto}.nts-conversion-modal-card>.nts-workflow-dialog-head+.nts-field,.nts-conversion-modal-card>.nts-workflow-dialog-head+ p{margin-top:20px}

/* Student Application Reports acceptance grid. */
.nts-student-application-report-filter-form>.nts-form-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.nts-student-application-report-filter-form>.nts-form-grid>.nts-field{min-width:0}@media(max-width:1100px){.nts-student-application-report-filter-form>.nts-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.nts-student-application-report-filter-form>.nts-form-grid{grid-template-columns:1fr}}

/* Shared Admin Sports Meet context selector. Supports both existing and dedicated selector classes. */
.nts-meet-context,.nts-topbar-meet{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-left:auto;min-width:0}.nts-meet-context label,.nts-topbar-meet label{color:#5d758a;font-size:12px;font-weight:700;letter-spacing:.15px;white-space:nowrap}.nts-meet-select-wrap{position:relative;display:inline-flex;min-width:178px;max-width:260px;flex:0 1 220px}.nts-meet-select,.nts-topbar-meet select{appearance:none;-webkit-appearance:none;-moz-appearance:none;width:100%;height:38px;min-width:178px;max-width:260px;border:1px solid #c6d9e7;border-radius:9px;background-color:#fff;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%2358758e' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 13px center;background-size:12px 8px;color:#24455f;padding:0 38px 0 13px;font:650 14px/1.2 "Segoe UI",Arial,sans-serif;box-shadow:0 1px 2px rgba(23,72,111,.03);cursor:pointer;outline:0;transition:border-color .18s ease,box-shadow .18s ease,background-color .18s ease}.nts-meet-select:hover,.nts-topbar-meet select:hover{border-color:#8eb5d2;background-color:#fbfdff;box-shadow:0 3px 9px rgba(32,86,125,.08)}.nts-meet-select:focus,.nts-topbar-meet select:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(23,103,181,.16)}.nts-meet-context .nts-status,.nts-topbar-meet .nts-status{display:inline-flex;align-items:center;justify-content:center;min-height:30px;white-space:nowrap}.nts-meet-select::-ms-expand,.nts-topbar-meet select::-ms-expand{display:none}@media(max-width:760px){.nts-meet-context,.nts-topbar-meet{gap:6px}.nts-meet-context label,.nts-topbar-meet label{font-size:11px}.nts-meet-select-wrap{min-width:132px;max-width:190px;flex-basis:160px}.nts-meet-select,.nts-topbar-meet select{height:36px;min-width:132px;max-width:190px;font-size:13px;padding-left:11px;background-position:right 11px center}}@media(max-width:560px){.nts-topbar{height:auto;min-height:86px;flex-wrap:wrap;gap:8px;padding-top:10px;padding-bottom:10px}.nts-meet-context,.nts-topbar-meet{order:4;width:100%;margin-left:40px;justify-content:flex-start}.nts-meet-select-wrap{min-width:0;max-width:none;flex:1 1 150px}.nts-meet-select,.nts-topbar-meet select{min-width:0;max-width:none;flex:1 1 150px}.nts-meet-context .nts-status,.nts-topbar-meet .nts-status{min-height:28px}}

/* Non-time Performance Entry: compact, keyboard-first roster table. */
.nts-performance-entry-card{overflow:hidden}.nts-performance-entry-title{align-items:end;margin-bottom:14px}.nts-performance-entry-title small{color:#647e93;font-weight:650}.nts-performance-entry-wrap{margin:0 -24px -24px;overflow:auto}.nts-performance-entry-table{width:100%;min-width:1080px;margin:0;border-collapse:separate;border-spacing:0}.nts-performance-entry-table thead th{position:sticky;top:0;z-index:2;background:#f2f8fd;box-shadow:0 1px 0 #dceaf4;white-space:nowrap}.nts-performance-entry-table th,.nts-performance-entry-table td{padding:11px 12px;vertical-align:middle}.nts-performance-entry-table td{border-bottom:1px solid #e3edf4;background:#fff}.nts-performance-entry-table tbody tr[data-performance-row]:focus-within td{background:#f7fbff}.nts-performance-entry-table tbody tr[data-performance-row]:hover td{background:#fbfdff}.nts-performance-primary-cell{min-width:160px}.nts-performance-primary-cell input{width:100%;min-width:0;height:40px;padding:8px 10px;border:1px solid #bfd6e6;border-radius:8px;background:#fff;color:var(--ink);font:inherit;outline:none}.nts-performance-primary-cell input:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(23,103,181,.13)}.nts-performance-valid-cell{white-space:nowrap}.nts-performance-valid{display:inline-flex;align-items:center;gap:6px;color:#55718a;font-size:12px;font-weight:750}.nts-performance-valid input{width:18px;height:18px;margin:0;accent-color:#27854d}.nts-performance-valid-static{display:inline-flex;padding:4px 7px;border-radius:99px;font-size:11px;font-weight:750}.nts-performance-valid-static.yes{background:#eaf8ef;color:#25804d}.nts-performance-valid-static.no{background:#fff0f0;color:#a34242}.nts-performance-row-status{display:block;max-width:190px;color:#647e93;font-weight:700}.nts-performance-row-status[data-state="saved"]{color:#25804d}.nts-performance-row-status[data-state="unsaved"]{color:#a26d16}.nts-performance-row-status[data-state="saving"]{color:#1b6faa}.nts-performance-row-status[data-state="error"]{color:#a34242}.nts-performance-attempt-summary{display:block;max-width:230px;margin-top:4px;color:#70899d;font-size:11px;line-height:1.35}.nts-performance-actions{display:flex;align-items:center;gap:6px;white-space:nowrap}.nts-performance-actions .nts-button,.nts-performance-extra-attempt .nts-button{min-height:34px;padding:7px 9px;font-size:12px}.nts-performance-extra-row td{padding:0 12px 12px;background:#f8fcff!important}.nts-performance-extra-row[hidden]{display:none}.nts-performance-extra-attempt{display:grid;grid-template-columns:88px minmax(170px,260px) auto auto;gap:9px;align-items:center;padding:9px 0 0}.nts-performance-extra-attempt>strong{color:#58728a;font-size:12px}.nts-performance-extra-attempt input[type="number"],.nts-performance-extra-attempt input[type="text"]{min-width:0;height:36px;padding:7px 9px;border:1px solid #c8ddeb;border-radius:7px;background:#fff;font:inherit}.nts-performance-extra-attempt input:focus{outline:0;border-color:var(--blue);box-shadow:0 0 0 3px rgba(23,103,181,.11)}@media(max-width:700px){.nts-performance-entry-card{padding:17px}.nts-performance-entry-title{display:grid;gap:4px;align-items:start}.nts-performance-entry-wrap{margin:0 -17px -17px}.nts-performance-entry-table{min-width:940px}.nts-performance-entry-table th,.nts-performance-entry-table td{padding:10px}.nts-performance-primary-cell input{height:42px}.nts-performance-extra-attempt{grid-template-columns:80px minmax(160px,1fr) auto auto}.nts-performance-entry-wrap::-webkit-scrollbar{height:10px}.nts-performance-entry-wrap::-webkit-scrollbar-thumb{background:#c0d7e7;border-radius:99px}}
/* Polished primary value field for fast non-time performance entry. */
.nts-performance-entry-table .nts-performance-primary-cell input{appearance:textfield;-moz-appearance:textfield;width:100%;min-width:150px;height:42px;padding:10px 12px;border:1px solid #cbddea;border-radius:9px;background:linear-gradient(180deg,#fff,#fbfdff);color:#18324b;font:650 14px/1.2 "Segoe UI",Arial,sans-serif;font-variant-numeric:tabular-nums;box-shadow:inset 0 1px 2px rgba(27,76,111,.035);transition:border-color .18s ease,box-shadow .18s ease,background .18s ease}.nts-performance-entry-table .nts-performance-primary-cell input::placeholder{color:#8aa0b1;font-weight:500}.nts-performance-entry-table .nts-performance-primary-cell input:hover{border-color:#9fc0d9;background:#fff}.nts-performance-entry-table .nts-performance-primary-cell input:focus{border-color:var(--blue);background:#fff;box-shadow:0 0 0 3px rgba(23,103,181,.14),inset 0 1px 2px rgba(27,76,111,.035)}.nts-performance-entry-table .nts-performance-primary-cell input::-webkit-outer-spin-button,.nts-performance-entry-table .nts-performance-primary-cell input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}/* Compact numeric value field for non-time fast entry. */
.nts-performance-entry-table{table-layout:fixed}.nts-performance-col-student{width:18%}.nts-performance-col-enrollment{width:9%}.nts-performance-col-class{width:10%}.nts-performance-col-house{width:8%}.nts-performance-col-value{width:132px}.nts-performance-col-valid{width:70px}.nts-performance-col-best{width:64px}.nts-performance-col-status{width:88px}.nts-performance-col-actions{width:250px}.nts-performance-entry-table .nts-performance-primary-cell{width:132px;min-width:132px;max-width:132px}.nts-performance-entry-table .nts-performance-primary-cell input[data-primary-value][type="number"]{appearance:textfield;-webkit-appearance:none;-moz-appearance:textfield;width:118px;min-width:0;max-width:118px;height:34px;padding:6px 9px;border:1px solid #c5d9e8;border-radius:7px;background:#fff;color:#17314a;font:650 13px/1.2 "Segoe UI",Arial,sans-serif;font-variant-numeric:tabular-nums;box-shadow:0 1px 2px rgba(24,75,116,.04),inset 0 1px 1px rgba(24,75,116,.025);outline:0;transition:border-color .16s ease,box-shadow .16s ease,background .16s ease}.nts-performance-entry-table .nts-performance-primary-cell input[data-primary-value][type="number"]::placeholder{color:#879bad;font-weight:500}.nts-performance-entry-table .nts-performance-primary-cell input[data-primary-value][type="number"]:hover{border-color:#9cbdd6;background:#fbfdff}.nts-performance-entry-table .nts-performance-primary-cell input[data-primary-value][type="number"]:focus{border-color:var(--blue);background:#fff;box-shadow:0 0 0 3px rgba(23,103,181,.12),0 1px 2px rgba(24,75,116,.05)}.nts-performance-entry-table .nts-performance-primary-cell input[data-primary-value][type="number"]::-webkit-outer-spin-button,.nts-performance-entry-table .nts-performance-primary-cell input[data-primary-value][type="number"]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}@media(max-width:700px){.nts-performance-col-value{width:126px}.nts-performance-entry-table .nts-performance-primary-cell{width:126px;min-width:126px;max-width:126px}.nts-performance-entry-table .nts-performance-primary-cell input[data-primary-value][type="number"]{width:112px;max-width:112px;height:36px}}
/* Inline, keyboard-first non-time performance attempts. */
.nts-performance-entry-table{min-width:1160px;table-layout:fixed}.nts-performance-col-student{width:17%}.nts-performance-col-enrollment{width:9%}.nts-performance-col-class{width:11%}.nts-performance-col-house{width:8%}.nts-performance-col-value{width:440px}.nts-performance-col-best{width:70px}.nts-performance-col-status{width:90px}.nts-performance-entry-table .nts-performance-primary-cell{width:440px;min-width:440px;max-width:440px}.nts-performance-attempts{display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-width:0}.nts-performance-attempt{display:inline-flex;align-items:center;gap:5px;min-width:0;padding:3px 4px;border:1px solid #e4eef5;border-radius:9px;background:#fbfdff}.nts-performance-attempt>b{color:#55758d;font-size:11px;letter-spacing:.15px}.nts-performance-attempts .nts-performance-value-input{appearance:textfield;-webkit-appearance:none;-moz-appearance:textfield;width:86px;min-width:0;max-width:86px;height:35px;padding:6px 8px;border:1px solid #c5d9e8;border-radius:8px;background:#fff;color:#17314a;font:650 13px/1.2 "Segoe UI",Arial,sans-serif;font-variant-numeric:tabular-nums;text-align:right;box-shadow:inset 0 1px 1px rgba(24,75,116,.025),0 1px 2px rgba(24,75,116,.035);outline:0;transition:border-color .16s ease,box-shadow .16s ease,background .16s ease}.nts-performance-attempts .nts-performance-manual-input{text-align:left}.nts-performance-attempts .nts-performance-value-input::placeholder{color:#98aabd;font-weight:500}.nts-performance-attempts .nts-performance-value-input:hover{border-color:#9cbdd6;background:#fbfdff}.nts-performance-attempts .nts-performance-value-input:focus{border-color:var(--blue);background:#fff;box-shadow:0 0 0 3px rgba(23,103,181,.12),0 1px 2px rgba(24,75,116,.05)}.nts-performance-attempts .nts-performance-value-input::-webkit-outer-spin-button,.nts-performance-attempts .nts-performance-value-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.nts-performance-attempts .nts-performance-valid{gap:0;cursor:pointer}.nts-performance-attempts .nts-performance-valid input{width:15px;height:15px}.nts-performance-attempts .nts-performance-valid span{display:none}.nts-performance-save-fallback,.nts-performance-add-attempt{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:30px;padding:0 7px;border:0;border-radius:8px;background:#edf6fd;color:#1264ae;font:700 11px/1 "Segoe UI",Arial,sans-serif;cursor:pointer}.nts-performance-save-fallback:hover,.nts-performance-add-attempt:hover{background:#dceefd}.nts-performance-add-attempt{width:30px;min-width:30px;padding:0;font-size:19px;line-height:1}.nts-performance-entry-table tbody tr[data-performance-row]:focus-within td{background:#f4faff}.nts-performance-attempts-readonly .nts-performance-attempt{background:#f6fafc}.nts-performance-attempts-readonly .nts-performance-attempt>strong{color:#183b57}.nts-performance-attempts-readonly .nts-performance-attempt>small{font-weight:800;color:#25804d}.nts-performance-attempts-readonly .nts-performance-attempt>small[title="Invalid"]{color:#a34242}@media(max-width:700px){.nts-performance-entry-table{min-width:1080px}.nts-performance-col-value,.nts-performance-entry-table .nts-performance-primary-cell{width:400px;min-width:400px;max-width:400px}.nts-performance-attempts .nts-performance-value-input{width:84px;max-width:84px;height:36px}}
/* This selector intentionally outranks the earlier generic primary-cell input rule. */
.nts-performance-entry-table .nts-performance-attempts .nts-performance-value-input{width:78px;min-width:0;max-width:78px;height:34px;padding:4px 7px;border:1px solid #c5d9e8;border-radius:8px}@media(max-width:700px){.nts-performance-entry-table .nts-performance-attempts .nts-performance-value-input{width:78px;min-width:0;max-width:78px;height:34px;padding:4px 7px}}

/* Final DOM-specific performance-entry control sizing: outranks the generic primary-cell input rule. */
.nts-performance-entry-table .nts-performance-attempt>input.nts-performance-value-input{box-sizing:border-box;display:block;flex:0 0 76px;width:76px!important;min-width:76px!important;max-width:76px!important;height:34px;padding:4px 7px;border:1px solid #c5d9e8;border-radius:8px;background:#fff;color:#17314a;font:650 13px/1.2 "Segoe UI",Arial,sans-serif;font-variant-numeric:tabular-nums;text-align:right;box-shadow:inset 0 1px 1px rgba(24,75,116,.025),0 1px 2px rgba(24,75,116,.035);outline:0;transition:border-color .16s ease,box-shadow .16s ease,background .16s ease;appearance:textfield;-webkit-appearance:none;-moz-appearance:textfield}.nts-performance-entry-table .nts-performance-attempt>input.nts-performance-value-input::placeholder{color:#98aabd;font-weight:500}.nts-performance-entry-table .nts-performance-attempt>input.nts-performance-value-input:hover{border-color:#9cbdd6;background:#fbfdff}.nts-performance-entry-table .nts-performance-attempt>input.nts-performance-value-input:focus{border-color:var(--blue);background:#fff;box-shadow:0 0 0 3px rgba(23,103,181,.12),0 1px 2px rgba(24,75,116,.05)}.nts-performance-entry-table .nts-performance-attempt>input.nts-performance-value-input::-webkit-inner-spin-button,.nts-performance-entry-table .nts-performance-attempt>input.nts-performance-value-input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.nts-performance-entry-table .nts-performance-attempt>.nts-performance-valid{display:inline-flex;align-items:center;justify-content:center;flex:0 0 15px;gap:0}.nts-performance-entry-table .nts-performance-attempt>.nts-performance-valid>input{width:15px;height:15px;margin:0;accent-color:#27854d}.nts-performance-entry-table .nts-performance-attempt>.nts-performance-valid>span{display:none}.nts-performance-entry-table .nts-performance-attempt>.nts-performance-save,.nts-performance-entry-table .nts-performance-add-attempt{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;height:30px;min-width:34px;padding:0 7px;border:1px solid #c5ddec;border-radius:8px;background:#edf6fd;color:#1264ae;font:700 11px/1 "Segoe UI",Arial,sans-serif;cursor:pointer;transition:border-color .16s ease,background-color .16s ease,box-shadow .16s ease}.nts-performance-entry-table .nts-performance-attempt>.nts-performance-save:hover,.nts-performance-entry-table .nts-performance-add-attempt:hover{border-color:#9ec4e0;background:#dceefd;box-shadow:0 1px 2px rgba(24,75,116,.07)}.nts-performance-entry-table .nts-performance-add-attempt{width:30px;min-width:30px;padding:0;font-size:19px;line-height:1}

/* Final visible performance-entry controls: direct children of each inline attempt. */
.nts-performance-entry-table .nts-performance-attempt{display:flex;align-items:center;gap:6px}.nts-performance-entry-table .nts-performance-attempt>b{flex:0 0 auto;margin:0}.nts-performance-entry-table .nts-performance-attempt>input.nts-performance-value-input{box-sizing:border-box;display:block;flex:0 0 64px;width:64px!important;min-width:64px!important;max-width:64px!important;height:32px!important;padding:4px 6px;border:1px solid #cbd9e8!important;border-radius:8px!important;background:#fff;color:#17314a;font:650 13px/normal "Segoe UI",Arial,sans-serif;font-variant-numeric:tabular-nums;text-align:right;box-shadow:none!important;outline:none;transition:border-color .18s ease,box-shadow .18s ease;appearance:textfield;-webkit-appearance:none;-moz-appearance:textfield}.nts-performance-entry-table .nts-performance-attempt>input.nts-performance-value-input::placeholder{color:#98aabd;font-weight:500}.nts-performance-entry-table .nts-performance-attempt>input.nts-performance-value-input:hover{border-color:#9fc0d9!important}.nts-performance-entry-table .nts-performance-attempt>input.nts-performance-value-input:focus{border-color:var(--blue)!important;box-shadow:0 0 0 3px rgba(23,103,181,.12)!important}.nts-performance-entry-table .nts-performance-attempt>input.nts-performance-value-input::-webkit-inner-spin-button,.nts-performance-entry-table .nts-performance-attempt>input.nts-performance-value-input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.nts-performance-entry-table .nts-performance-attempt>.nts-performance-valid{display:inline-flex;align-items:center;justify-content:center;flex:0 0 15px;gap:0;margin:0}.nts-performance-entry-table .nts-performance-attempt>.nts-performance-valid>input{width:15px;height:15px;margin:0;accent-color:#27854d}.nts-performance-entry-table .nts-performance-attempt>.nts-performance-valid>span{display:none}.nts-performance-entry-table .nts-performance-attempt>.nts-performance-save{display:inline-flex;align-items:center;justify-content:center;height:30px;padding:0 10px;border:0;border-radius:7px;background:var(--blue);color:#fff;font:700 12px/1 "Segoe UI",Arial,sans-serif;cursor:pointer;box-shadow:0 3px 8px rgba(23,103,181,.18);transition:transform .18s ease,box-shadow .18s ease,background .18s ease}.nts-performance-entry-table .nts-performance-attempt>.nts-performance-save:hover{background:var(--blue-dark);transform:translateY(-1px);box-shadow:0 5px 11px rgba(23,103,181,.23)}.nts-performance-entry-table .nts-performance-add-attempt{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:28px;height:28px;min-width:28px;padding:0;border:1px solid #c5ddec;border-radius:7px;background:#edf6fd;color:#1264ae;font:700 18px/1 "Segoe UI",Arial,sans-serif;cursor:pointer;transition:border-color .18s ease,background .18s ease,box-shadow .18s ease}.nts-performance-entry-table .nts-performance-add-attempt:hover{border-color:#9ec4e0;background:#dceefd;box-shadow:0 1px 2px rgba(24,75,116,.07)}

/* Session 3 inline attempt actions. */
.nts-performance-entry-table .nts-performance-attempt>.nts-performance-save{gap:5px}.nts-performance-entry-table .nts-performance-attempt>.nts-performance-save>.nts-icon{width:14px;height:14px}.nts-performance-entry-table .nts-performance-attempt>.nts-performance-save:hover{background:var(--blue-dark)!important;transform:translateY(-1px) scale(1.04);box-shadow:0 5px 11px rgba(23,103,181,.23)}.nts-performance-entry-table .nts-performance-attempt>.nts-performance-save:active{transform:translateY(0) scale(1)}.nts-performance-entry-table .nts-performance-attempt>.nts-performance-save:focus-visible,.nts-performance-entry-table .nts-performance-add-attempt:focus-visible,.nts-performance-entry-table .nts-performance-remove-attempt:focus-visible{outline:0;box-shadow:0 0 0 3px rgba(23,103,181,.22)}.nts-performance-entry-table .nts-performance-add-attempt:hover{border-color:#9ec4e0!important;background:#dceefd!important;transform:translateY(-1px) scale(1.04);box-shadow:0 3px 7px rgba(24,75,116,.1)}.nts-performance-entry-table .nts-performance-add-attempt:active{transform:translateY(0) scale(1)}.nts-performance-entry-table .nts-performance-remove-attempt{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:28px;height:28px;min-width:28px;padding:0;border:1px solid #efcaca;border-radius:7px;background:#fff4f4;color:#ad4141;font:700 20px/1 "Segoe UI",Arial,sans-serif;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,background .18s ease}.nts-performance-entry-table .nts-performance-remove-attempt:hover{border-color:#d97676;background:#ffe8e8;transform:translateY(-1px) scale(1.04);box-shadow:0 3px 7px rgba(163,66,66,.12)}.nts-performance-entry-table .nts-performance-remove-attempt:active{transform:translateY(0) scale(1)}
/* Mobile homepage header login layout. */
@media (max-width: 600px) {
  .nts-home-header {
    height: auto;
    min-height: 99px;
    padding: 8px 15px;
    gap: 12px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }
  .nts-home-header .nts-home-actions {
    width: 100%;
    max-width: 240px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    justify-self: center;
    align-items: stretch;
  }
  .nts-home-header .nts-home-actions .nts-button {
    width: 100%;
    height: 38px;
    min-height: 38px;
    padding: 8px 6px;
    gap: 6px;
    font-size: 12px;
    white-space: nowrap;
  }
  .nts-home-header .nts-home-actions .nts-button:nth-child(3) {
    grid-column: 1 / -1;
  }
  .nts-home-header .nts-home-actions .nts-button .nts-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
  }
}

.nts-profile-modal{width:min(100% - 32px,920px);max-height:calc(100vh - 32px);overflow:hidden}.nts-profile-modal>div{max-height:calc(100vh - 80px);overflow:auto;padding-right:2px}.nts-profile-modal .nts-form{padding-top:12px}.nts-profile-modal .nts-card{box-shadow:none;margin:0 0 16px}.nts-profile-modal .nts-card:hover{transform:none}.nts-password-modal{width:min(100% - 32px,560px);max-height:calc(100vh - 32px);overflow:hidden}.nts-password-modal>div{max-height:calc(100vh - 80px);overflow:auto;padding-right:2px}.nts-password-modal .nts-form{padding-top:12px}.nts-password-modal .nts-form-grid{grid-template-columns:1fr}.nts-password-modal .nts-card{box-shadow:none;margin:0}.nts-password-modal .nts-card:hover{transform:none}@media(max-width:600px){.nts-profile-modal{width:calc(100% - 16px);max-height:calc(100vh - 16px);padding:16px}.nts-profile-modal>div{max-height:calc(100vh - 48px)}.nts-profile-modal .nts-image-upload{min-height:220px}.nts-password-modal{width:calc(100% - 16px);max-height:calc(100vh - 16px);padding:16px}.nts-password-modal>div{max-height:calc(100vh - 48px)}}

/* Homepage photo and admin sidebar safety. */
.nts-home-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nts-homepage-photo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 1fr);
  gap: 20px;
  align-items: start;
  margin: 18px 0;
}
.nts-homepage-photo-preview-frame {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f6fbff;
}
.nts-homepage-photo-preview {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nts-homepage-photo-empty {
  display: grid;
  width: 100%;
  height: 100%;
  place-content: center;
  gap: 4px;
  color: #7790a3;
  text-align: center;
  font-weight: 700;
}
.nts-homepage-photo-empty small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.nts-homepage-photo-uploader {
  width: 100%;
  max-width: 520px;
  min-height: 0;
  aspect-ratio: 16 / 10;
}
.nts-homepage-photo-uploader .nts-upload-prompt {
  width: 100%;
  min-height: 0;
  height: 100%;
}
.nts-modal-image-upload {
  cursor: pointer;
}
.nts-modal-image-upload .nts-upload-prompt {
  min-height: inherit;
}
/* Sidebar layout contract: the nav is the only constrained scrolling child. */
html { height: 100%; }
body.nts-shell {
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
}
.nts-app {
  height: 100vh;
  min-height: 0;
  overflow: hidden;
  display: flex;
}
.nts-sidebar,
#ntsSidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 254px;
  height: 100vh;
  max-height: 100vh;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.nts-brand,
.nts-sidebar-caption,
.nts-logout {
  flex: 0 0 auto;
}
.nts-nav {
  position: static;
  display: grid;
  flex: 1 1 0;
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: 0;
  max-height: none;
  overflow-y: scroll !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: auto;
  scrollbar-color: #6689a4 #edf5fa;
  padding-right: 2px;
}
.nts-logout { margin-top: 0; }
.nts-nav::-webkit-scrollbar { width: 12px; }
.nts-nav::-webkit-scrollbar-thumb { background: #6689a4; border: 3px solid #edf5fa; border-radius: 99px; }
.nts-nav::-webkit-scrollbar-track { background: #edf5fa; border-radius: 99px; }
.nts-main {
  height: 100vh;
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  overscroll-behavior: contain;
}
@supports (height: 100dvh) {
  body.nts-shell,
  .nts-app,
  .nts-sidebar,
  #ntsSidebar,
  .nts-main { height: 100dvh; }
  .nts-sidebar,
  #ntsSidebar { max-height: 100dvh; }
}
.nts-image-cropper {
  width: min(900px, calc(100vw - 40px));
  max-width: 900px;
  max-height: calc(100vh - 32px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  outline: 0;
  box-shadow: 0 20px 50px rgba(21, 59, 92, .26);
}
.nts-image-cropper[open] { display: block; }
.nts-image-cropper:focus { outline: 0; }
.nts-image-cropper::backdrop { background: rgba(17, 47, 74, .4); }
.nts-image-cropper-inner {
  max-height: calc(100vh - 32px);
  overflow: auto;
}
.nts-image-cropper-header {
  align-items: center;
  padding: 22px 24px 16px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.nts-image-cropper-header h2 { margin: 4px 0 0; color: var(--ink); font-size: 21px; }
.nts-image-cropper-close {
  flex: 0 0 auto;
}
.nts-image-cropper-body {
  display: grid;
  gap: 0;
  padding: 22px 24px 0;
  background: #fff;
}
.nts-image-cropper-wrap {
  position: relative;
  display: block;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #d2dce4;
  border-radius: 8px;
  background: #111;
  touch-action: none;
  cursor: grab;
}
.nts-image-cropper-wrap:active { cursor: grabbing; }
.nts-image-cropper-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  user-select: none;
  touch-action: none;
}
.nts-image-cropper-canvas:active { cursor: grabbing; }
.nts-image-cropper-zoom-block {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}
.nts-image-cropper-zoom-block label {
  color: #18324b;
  font-size: 13px;
  font-weight: 600;
}
.nts-image-cropper-range {
  display: block;
  width: 100%;
  margin: 0;
  accent-color: var(--blue);
}
.nts-image-cropper-file {
  min-height: 18px;
  margin-top: 9px;
  overflow: hidden;
  color: #71859a;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nts-image-cropper-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
  padding: 16px 24px 22px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.nts-image-cropper-footer .nts-button { min-width: 112px; min-height: 40px; }
@media (max-width: 860px) {
  .nts-homepage-photo-layout { grid-template-columns: 1fr; }
  .nts-homepage-photo-preview-frame,
  .nts-homepage-photo-uploader { max-width: none; }
}
@media (max-width: 560px) {
  .nts-image-cropper { width: calc(100vw - 16px); max-width: none; max-height: calc(100vh - 16px); }
  .nts-image-cropper-inner { max-height: calc(100vh - 16px); }
  .nts-image-cropper-body { padding: 18px 17px 0; }
  .nts-image-cropper-header { padding: 16px 17px 12px; }
  .nts-image-cropper-header .nts-image-cropper-close span { display: inline; }
  .nts-image-cropper-footer { padding: 13px 17px 17px; }
  .nts-image-cropper-footer .nts-button { flex: 1 1 0; min-width: 0; }
}
.nts-sports-import-card { overflow: hidden; }
.nts-sports-import-modal {
  width: min(1180px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: hidden;
}
.nts-sports-import-modal-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  max-height: calc(100vh - 32px);
}
.nts-sports-import-modal .nts-workflow-dialog-head {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: 0;
  padding: 22px 24px 16px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.nts-sports-import-modal [data-close-sports-import] {
  min-width: 44px;
  width: 44px;
  height: 44px;
  justify-content: center;
  padding: 0;
  font-size: 22px;
  line-height: 1;
}
.nts-sports-import-modal-body {
  min-height: 0;
  max-height: calc(100vh - 108px);
  overflow: auto;
  padding: 20px 24px 24px;
}
.nts-sports-import-modal-body .nts-card {
  box-shadow: none;
  margin-bottom: 16px;
}
.nts-sports-import-modal-body .nts-card:hover { transform: none; }
.nts-import-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 10px;
}
.nts-import-steps span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #d7e8f7;
  border-radius: 999px;
  background: #f5fbff;
  color: #2c5273;
  font-size: 13px;
  font-weight: 650;
}
.nts-import-steps strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #e3f2ff;
  color: var(--blue);
  font-size: 12px;
}
.nts-sports-import-form { margin-top: 16px; }
.nts-sports-import-top-actions { margin: 12px 0; }
.nts-sports-import-drop {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 156px;
  padding: 26px;
  border: 1px dashed #8ec4ef;
  border-radius: 12px;
  background: #f8fcff;
  color: #174b73;
  text-align: center;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease, background .16s ease;
}
.nts-sports-import-drop:hover,
.nts-sports-import-drop.dragging {
  border-color: var(--blue);
  background: #eef8ff;
  box-shadow: 0 10px 22px rgba(24, 104, 173, .12);
  transform: translateY(-1px);
}
.nts-sports-import-drop .nts-icon {
  width: 30px;
  height: 30px;
  color: var(--blue);
}
.nts-sports-import-drop input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.nts-sports-import-summary { margin-top: 12px; }
.nts-sports-import-commit-form { display: flex; justify-content: flex-end; margin: 16px 0 10px; }
.nts-sports-import-preview .nts-modal-table-wrap { max-height: 520px; overflow: auto; }
.nts-sports-import-preview details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  color: var(--ink);
}
.nts-sports-import-preview details > summary small {
  color: var(--muted);
  font-weight: 650;
}
.nts-sports-import-preview details .nts-modal-table-wrap { margin-top: 14px; }
.nts-sports-import-table { min-width: 980px; }
.nts-sports-import-table td { vertical-align: top; }
.nts-sports-import-table td:nth-child(4) {
  min-width: 260px;
  color: #46627d;
  font-size: 12px;
}
.nts-status.nts-import-status-valid { background: #e9f8ef; color: #17733a; }
.nts-status.nts-import-status-warning { background: #fff7df; color: #8a6100; }
.nts-status.nts-import-status-review { background: #eef5ff; color: #145b98; }
.nts-status.nts-import-status-error { background: #fff0f0; color: #ab3131; }
.nts-status.nts-import-status-skip { background: #eef2f6; color: #5e7184; }
.nts-status.nts-import-status-info { background: #eef5ff; color: #486b88; }
@media (max-width: 640px) {
  .nts-sports-import-modal { width: calc(100vw - 16px); max-height: calc(100vh - 16px); }
  .nts-sports-import-modal-shell { max-height: calc(100vh - 16px); }
  .nts-sports-import-modal .nts-workflow-dialog-head { padding: 16px 17px 12px; }
  .nts-sports-import-modal-body { max-height: calc(100vh - 86px); padding: 16px 17px 18px; }
  .nts-import-steps { display: grid; }
  .nts-sports-import-commit-form { display: grid; }
  .nts-sports-import-drop { min-height: 132px; padding: 20px; }
  .nts-sports-import-preview details > summary { display: grid; }
}

/* Workflow Trial Parts: keep filters and formation controls aligned with the
   standard NTS teacher form language without changing their behavior. */
body.nts-teacher-shell .nts-filter-grid {
  grid-template-columns: repeat(4, minmax(145px, 1fr)) minmax(220px, 1.45fr) auto;
  align-items: end;
  gap: 12px;
  padding: 18px;
  background: #f8fcff;
  border-color: #d3e4ef;
}
body.nts-teacher-shell .nts-filter-grid .nts-filter-field {
  display: grid;
  min-width: 0;
  gap: 7px;
  color: #405a71;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .01em;
}
body.nts-teacher-shell .nts-filter-grid .nts-filter-field > span {
  line-height: 1.2;
}
body.nts-teacher-shell .nts-filter-grid select,
body.nts-teacher-shell .nts-filter-grid input[type="search"],
body.nts-teacher-shell .nts-filter-grid input[name="search"] {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 43px;
  padding: 10px 12px;
  border: 1px solid #c5d9e8;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font: 500 14px/1.2 "Segoe UI", Arial, sans-serif;
  outline: 0;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
body.nts-teacher-shell .nts-filter-grid select {
  cursor: pointer;
  appearance: auto;
}
body.nts-teacher-shell .nts-filter-grid select:hover,
body.nts-teacher-shell .nts-filter-grid input[name="search"]:hover {
  border-color: #9fbfd7;
  background: #fbfdff;
}
body.nts-teacher-shell .nts-filter-grid select:focus,
body.nts-teacher-shell .nts-filter-grid input[name="search"]:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(23, 103, 181, .12);
  background: #fff;
}
body.nts-teacher-shell .nts-filter-grid .nts-button {
  min-height: 43px;
  padding: 10px 17px;
  white-space: nowrap;
}
body.nts-teacher-shell .nts-card .nts-form > label {
  display: grid;
  gap: 7px;
  color: #405a71;
  font-size: 14px;
  font-weight: 650;
}
body.nts-teacher-shell .nts-card .nts-form > label > input[name="part_name"] {
  box-sizing: border-box;
  width: min(100%, 560px);
  min-height: 43px;
  padding: 10px 12px;
  border: 1px solid #c5d9e8;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font: 500 14px/1.2 "Segoe UI", Arial, sans-serif;
  outline: 0;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
body.nts-teacher-shell .nts-card .nts-form > label > input[name="part_name"]:hover {
  border-color: #9fbfd7;
  background: #fbfdff;
}
body.nts-teacher-shell .nts-card .nts-form > label > input[name="part_name"]:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(23, 103, 181, .12);
}
body.nts-teacher-shell .nts-card .nts-form .nts-page-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 12px 0 14px;
  border-bottom: 1px solid #e3edf4;
}
body.nts-teacher-shell .nts-card .nts-form .nts-page-actions .nts-button {
  min-height: 40px;
  padding: 9px 13px;
}
body.nts-teacher-shell .nts-card .nts-form .nts-table-wrap {
  margin-top: 2px;
  border: 1px solid #dbe7f2;
  border-radius: 10px;
  background: #fff;
}
body.nts-teacher-shell .nts-card .nts-form .nts-table td:first-child,
body.nts-teacher-shell .nts-card .nts-form .nts-table th:first-child {
  width: 70px;
  text-align: center;
}
body.nts-teacher-shell .nts-card .nts-form .nts-table input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--blue);
  vertical-align: middle;
}
body.nts-teacher-shell .nts-custom-race-review-table {
  min-width: 1180px;
}
body.nts-teacher-shell .nts-custom-race-review-table select.nts-form-control,
body.nts-teacher-shell .nts-custom-race-review-table input.nts-form-control {
  box-sizing: border-box;
  width: 100%;
  min-width: 180px;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #c5d9e8;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font: 500 13px/1.25 "Segoe UI", Arial, sans-serif;
  outline: 0;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
body.nts-teacher-shell .nts-custom-race-review-table select.nts-form-control:hover,
body.nts-teacher-shell .nts-custom-race-review-table input.nts-form-control:hover {
  border-color: #9fbfd7;
  background: #fbfdff;
}
body.nts-teacher-shell .nts-custom-race-review-table select.nts-form-control:focus,
body.nts-teacher-shell .nts-custom-race-review-table input.nts-form-control:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(23, 103, 181, .12);
  background: #fff;
}
body.nts-teacher-shell .nts-custom-race-review-table .nts-custom-race-destination {
  min-width: 205px;
  cursor: pointer;
}
body.nts-teacher-shell .nts-custom-race-review-table .nts-custom-race-reason {
  min-width: 230px;
}
body.nts-teacher-shell .nts-custom-race-suggestion {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid #b9dec6;
  border-radius: 999px;
  background: #effaf2;
  color: #237746;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}
body.nts-teacher-shell .nts-custom-race-suggestion.is-empty {
  border-color: #dbe5eb;
  background: #f5f8fa;
  color: #708596;
}
@media (max-width: 1100px) {
  body.nts-teacher-shell .nts-filter-grid {
    grid-template-columns: repeat(3, minmax(145px, 1fr));
  }
  body.nts-teacher-shell .nts-filter-grid .nts-button {
    width: max-content;
  }
}
@media (max-width: 700px) {
  body.nts-teacher-shell .nts-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 14px;
  }
  body.nts-teacher-shell .nts-filter-grid input[name="search"],
  body.nts-teacher-shell .nts-filter-grid .nts-button {
    grid-column: 1 / -1;
    width: 100%;
  }
  body.nts-teacher-shell .nts-card .nts-form .nts-page-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.nts-teacher-shell .nts-card .nts-form .nts-page-actions .nts-button:last-child {
    grid-column: 1 / -1;
  }
  body.nts-teacher-shell .nts-card .nts-form > label > input[name="part_name"] {
    width: 100%;
  }
}
@media (max-width: 460px) {
  body.nts-teacher-shell .nts-filter-grid {
    grid-template-columns: 1fr;
  }
  body.nts-teacher-shell .nts-filter-grid input[name="search"],
  body.nts-teacher-shell .nts-filter-grid .nts-button {
    grid-column: auto;
  }
  body.nts-teacher-shell .nts-card .nts-form .nts-page-actions {
    grid-template-columns: 1fr;
  }
  body.nts-teacher-shell .nts-card .nts-form .nts-page-actions .nts-button:last-child {
    grid-column: auto;
  }
}

/* Sports + Events bulk import — Session 3 modal polish. */
.nts-sports-import-modal-body { overflow-x: hidden; }
.nts-sports-import-card .nts-card-title > div { min-width: 0; }
.nts-sports-import-card .nts-card-title .nts-muted { margin: 5px 0 0; max-width: 720px; }
.nts-sports-import-drop small { color: #56728b; font-size: 12px; }
.nts-sports-import-drop[data-state="selected"],\n.nts-sports-import-drop[data-state="complete"] { border-style: solid; border-color: #55a973; background: #f3fbf6; }
.nts-sports-import-drop[data-state="selected"] [data-sports-import-file-name],\n.nts-sports-import-drop[data-state="complete"] [data-sports-import-file-name] { color: #176b39; font-weight: 700; }
.nts-sports-import-drop[data-state="validating"],\n.nts-sports-import-drop[data-state="committing"] { cursor: progress; border-style: solid; border-color: var(--blue); background: #eef8ff; }
.nts-sports-import-drop[data-state="error"] { border-style: solid; border-color: #dc7070; background: #fff8f8; }
.nts-sports-import-drop[data-state="invalid"] { border-style: solid; border-color: #dc7070; background: #fff8f8; }
.nts-import-last-summary,
.nts-import-commit-note {
  display: grid;
  gap: 5px;
  margin-top: 16px;
  padding: 13px 15px;
  border: 1px solid #dce8f2;
  border-radius: 10px;
  background: #f8fbfd;
  color: #486178;
  font-size: 13px;
}
.nts-import-last-summary > strong,
.nts-import-commit-note > strong { color: var(--ink); }
.nts-import-last-summary b { color: var(--ink); margin-left: 8px; }
.nts-import-entity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.nts-import-entity-summary {
  min-width: 0;
  padding: 12px;
  border: 1px solid #dce8f2;
  border-radius: 10px;
  background: #fff;
}
.nts-import-entity-summary > strong { display: block; color: var(--ink); font-size: 13px; }
.nts-import-entity-summary > div { display: flex; flex-wrap: wrap; gap: 8px 11px; margin-top: 8px; }
.nts-import-entity-summary span { color: var(--muted); font-size: 11px; line-height: 1.25; }
.nts-import-entity-summary b { display: block; color: var(--ink); font-size: 17px; line-height: 1.1; }
.nts-import-error-total { background: #fffafa; border-color: #f0d2d2; }
.nts-import-error-total b { color: #a93434; }
.nts-import-filter-bar { display: flex; flex-wrap: wrap; gap: 7px; margin: 16px 0 2px; }
.nts-import-filter-bar .nts-button { min-height: 34px; padding: 6px 10px; font-size: 12px; }
.nts-import-filter-bar .nts-button.active { border-color: var(--blue); background: #eaf6ff; color: #145b98; }
.nts-import-issue-panel { margin-top: 16px; padding: 15px; border: 1px solid #dbe7f1; border-radius: 11px; background: #fbfdff; }
.nts-import-issue-panel h3 { margin: 2px 0 0; font-size: 16px; }
.nts-import-issue-panel .nts-modal-table-wrap { max-height: 300px; margin-top: 12px; }
.nts-import-errors { border-color: #efc6c6; background: #fffafa; }
.nts-import-reviews { border-color: #cfe0f3; background: #f8fbff; }
.nts-sports-import-preview .nts-modal-table-wrap { max-width: 100%; }
.nts-sports-import-table thead th { position: sticky; top: 0; z-index: 1; background: #f7fafc; }
.nts-sports-import-table tr[hidden] { display: none; }
.nts-sports-import-commit-form { align-items: center; gap: 10px; }
@media (max-width: 880px) {
  .nts-import-entity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .nts-sports-import-modal [data-close-sports-import] { min-width: 38px; width: 38px; height: 38px; }
  .nts-sports-import-modal .nts-workflow-dialog-head h2 { font-size: 19px; }
  .nts-import-entity-grid { grid-template-columns: 1fr; }
  .nts-import-filter-bar { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px; }
  .nts-import-filter-bar .nts-button { flex: 0 0 auto; }
  .nts-import-issue-panel { padding: 13px; }
  .nts-import-last-summary,
  .nts-import-commit-note { padding: 12px; }
}
/* Sports + Events import commit progress and completion states. */
.nts-sports-import-modal.is-processing [data-close-sports-import] { opacity: .45; cursor: not-allowed; pointer-events: none; }
.nts-import-processing-panel,
.nts-import-failure-panel,
.nts-sports-import-complete {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 13px;
  min-height: min(560px, calc(100vh - 190px));
  padding: 44px 22px;
  text-align: center;
}
.nts-import-processing-panel h2,
.nts-import-failure-panel h2,
.nts-sports-import-complete h2 { margin: 0; color: var(--ink); font-size: 25px; }
.nts-import-processing-panel p,
.nts-import-failure-panel p,
.nts-sports-import-complete p { max-width: 560px; margin: 0; color: #526d84; }
.nts-import-processing-panel small { color: #6e8799; font-weight: 650; }
.nts-import-progress-bar,
.nts-import-complete-progress {
  position: relative;
  width: min(100%, 520px);
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6f0f7;
  box-shadow: inset 0 0 0 1px rgba(56, 104, 142, .08);
}
.nts-import-progress-bar i,
.nts-import-complete-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1d72c2, #78b9ee);
}
.nts-import-progress-bar.is-indeterminate i {
  width: 42%;
  animation: nts-progress 1.1s ease-in-out infinite;
}
.nts-import-complete-progress {
  display: grid;
  align-items: center;
  height: 28px;
  margin-top: 4px;
}
.nts-import-complete-progress i {
  position: absolute;
  inset: 0;
  width: 100%;
  background: linear-gradient(90deg, #219653, #54bd7a);
}
.nts-import-complete-progress span {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.nts-import-complete-mark {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #e9f8ef;
  color: #23814b;
}
.nts-import-complete-mark .nts-icon { width: 38px; height: 38px; }
.nts-import-complete-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  width: min(100%, 680px);
  margin-top: 4px;
}
.nts-import-complete-summary span {
  padding: 12px 10px;
  border: 1px solid #dce8f2;
  border-radius: 10px;
  background: #f8fcff;
  color: #60798e;
  font-size: 12px;
  font-weight: 700;
}
.nts-import-complete-summary strong {
  display: block;
  color: var(--blue);
  font-size: 22px;
  line-height: 1.1;
}
.nts-import-complete-actions { justify-content: center; margin-top: 4px; }
.nts-import-failure-panel {
  border: 1px solid #efc6c6;
  border-radius: 14px;
  background: #fffafa;
}
.nts-import-failure-panel h2 { color: #9d2f2f; }
@media (max-width: 640px) {
  .nts-import-processing-panel,
  .nts-import-failure-panel,
  .nts-sports-import-complete { min-height: 360px; padding: 34px 14px; }
  .nts-import-complete-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Student Application Setup modal and local date-time picker. */
.nts-application-setup-modal {
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: hidden;
}
.nts-application-setup-modal-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  max-height: calc(100vh - 32px);
}
.nts-application-setup-modal .nts-workflow-dialog-head {
  position: sticky;
  top: 0;
  z-index: 3;
  margin: 0;
  padding: 20px 22px 15px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.nts-application-setup-modal [data-close-application-setup-modal] {
  min-width: 42px;
  width: 42px;
  height: 42px;
  justify-content: center;
  padding: 0;
  font-size: 22px;
  line-height: 1;
}
.nts-application-setup-modal-body {
  min-height: 0;
  max-height: calc(100vh - 104px);
  overflow: auto;
  padding: 20px 22px 22px;
}
.nts-application-setup-modal-body .nts-card {
  margin-bottom: 0;
  box-shadow: none;
}
.nts-application-setup-modal-body .nts-card:hover { transform: none; }
.nts-application-wide { grid-column: 1 / -1; }
.nts-datetime-field { position: relative; }
.nts-datetime-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
.nts-datetime-control [data-nts-datetime-display] {
  cursor: pointer;
  background: #fff;
}
.nts-datetime-control .nts-button {
  min-height: 43px;
  padding: 10px 13px;
}
.nts-datetime-popover {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  left: 0;
  width: min(360px, calc(100vw - 44px));
  padding: 12px;
  border: 1px solid #cfe0ec;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(22, 62, 95, .18);
}
.nts-datetime-head {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.nts-datetime-head strong {
  text-align: center;
  color: var(--ink);
  font-size: 15px;
}
.nts-datetime-head button {
  width: 38px;
  height: 34px;
  border: 1px solid #d4e3ee;
  border-radius: 9px;
  background: #f3f9fe;
  color: var(--blue);
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
}
.nts-datetime-weekdays,
.nts-datetime-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}
.nts-datetime-weekdays {
  margin-bottom: 5px;
  color: #68839a;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}
.nts-datetime-grid button {
  min-width: 0;
  min-height: 36px;
  border: 1px solid #e0ebf3;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font: 700 13px/1 "Segoe UI", Arial, sans-serif;
  cursor: pointer;
}
.nts-datetime-grid button:hover { border-color: var(--blue); background: #eef8ff; color: var(--blue); }
.nts-datetime-grid button.muted { color: #9aabba; background: #fbfdff; }
.nts-datetime-grid button.today { border-color: #9cc7e8; }
.nts-datetime-grid button.selected { background: var(--blue); border-color: var(--blue); color: #fff; }
.nts-datetime-time {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr 1fr;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
}
.nts-datetime-time label { color: #405a71; font-weight: 700; }
.nts-datetime-time select {
  width: 100%;
  min-height: 38px;
  border: 1px solid #cbddea;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 7px 9px;
}
.nts-datetime-actions {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 8px;
  margin-top: 12px;
}
.nts-datetime-actions .nts-button { min-height: 36px; padding: 8px 10px; font-size: 12px; }
@media (max-width: 640px) {
  .nts-application-setup-modal { width: calc(100vw - 16px); max-height: calc(100vh - 16px); }
  .nts-application-setup-modal-shell { max-height: calc(100vh - 16px); }
  .nts-application-setup-modal .nts-workflow-dialog-head { padding: 16px 17px 12px; }
  .nts-application-setup-modal-body { max-height: calc(100vh - 86px); padding: 16px 17px 18px; }
  .nts-datetime-popover { position: fixed; left: 8px; right: 8px; top: auto; bottom: 10px; width: auto; max-height: calc(100vh - 36px); overflow: auto; }
  .nts-datetime-grid button { min-height: 40px; }
  .nts-datetime-time { grid-template-columns: 1fr auto 1fr; }
  .nts-datetime-time label,
  .nts-datetime-time select:last-child { grid-column: 1 / -1; }
  .nts-datetime-actions { grid-template-columns: 1fr 1fr; }
  .nts-datetime-actions span { display: none; }
}
/* Student Application Setup picker usability fix. */
.nts-application-setup-modal {
  width: min(720px, calc(100vw - 32px));
}
.nts-application-setup-modal-body {
  padding: 16px 18px 18px;
}
.nts-application-setup-modal-body .nts-card {
  padding: 18px;
}
.nts-application-setup-modal-body .nts-form-grid {
  gap: 14px 12px;
}
.nts-application-setup-modal .nts-field label {
  font-size: 13px;
}
.nts-datetime-control {
  gap: 6px;
}
.nts-datetime-control [data-nts-datetime-display] {
  min-width: 0;
  padding: 9px 10px;
  font-size: 14px;
}
.nts-datetime-control .nts-button {
  min-height: 40px;
  padding: 8px 10px;
}
.nts-datetime-popover {
  width: 312px;
  max-height: min(390px, calc(100vh - 190px));
  overflow: auto;
  padding: 10px;
}
.nts-form-grid > .nts-datetime-field:nth-child(3) .nts-datetime-popover {
  left: auto;
  right: 0;
}
.nts-datetime-head {
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  gap: 6px;
  margin-bottom: 8px;
}
.nts-datetime-head button {
  width: 34px;
  height: 30px;
}
.nts-datetime-weekdays,
.nts-datetime-grid {
  gap: 4px;
}
.nts-datetime-grid button {
  min-height: 30px;
  border-radius: 7px;
  font-size: 12px;
}
.nts-datetime-time {
  gap: 6px;
  margin-top: 10px;
}
.nts-datetime-time select {
  min-height: 34px;
  padding: 5px 7px;
  font-size: 13px;
}
.nts-datetime-actions {
  gap: 6px;
  margin-top: 10px;
}
.nts-datetime-actions .nts-button {
  min-height: 32px;
  padding: 7px 9px;
}
@media (max-width: 640px) {
  .nts-application-setup-modal-body .nts-card {
    padding: 16px;
  }
  .nts-datetime-popover {
    width: auto;
    max-height: calc(100vh - 54px);
  }
}

/* V2 setup viewer and resilient setup editor modal. */
.nts-application-setup-modal {
  height: min(700px, calc(100dvh - 32px));
  max-height: calc(100dvh - 32px);
}
.nts-application-setup-modal-shell {
  height: 100%;
  max-height: none;
}
.nts-application-setup-modal-body {
  max-height: none;
  overscroll-behavior: contain;
}
.nts-application-setup-modal .nts-dialog-actions {
  position: sticky;
  bottom: -18px;
  z-index: 4;
  margin: 22px -18px -18px;
  padding: 16px 18px 18px;
  background: #fff;
}
.nts-datetime-popover {
  position: fixed;
  z-index: 120;
  max-width: calc(100vw - 16px);
}
.nts-application-setup-modal .nts-datetime-field.nts-datetime-open-upward .nts-datetime-popover {
  bottom: auto;
}
.nts-v2-application-filter-card { margin-bottom: 14px; }
.nts-v2-application-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nts-v2-application-rule small { display: block; margin-top: 7px; color: #5b778d; font-weight: 650; }
@media (max-width: 640px) {
  .nts-application-setup-modal {
    height: calc(100dvh - 16px);
    max-height: calc(100dvh - 16px);
  }
  .nts-application-setup-modal .nts-dialog-actions {
    bottom: -18px;
    margin: 18px -16px -16px;
    padding: 14px 16px 16px;
  }
  .nts-v2-application-filters { grid-template-columns: 1fr; }
}
/* Session 3: Student Application administration workspace. */
.nts-application-config-modal{width:min(1180px,calc(100vw - 28px));max-height:calc(100vh - 28px);padding:0;overflow:hidden}.nts-application-config-modal-shell{display:grid;grid-template-rows:auto minmax(0,1fr);max-height:calc(100vh - 28px)}.nts-application-config-modal .nts-workflow-dialog-head{position:sticky;top:0;z-index:5;margin:0;padding:18px 22px 14px;background:#fff;border-bottom:1px solid var(--line)}.nts-application-config-modal [data-close-application-config-modal]{min-width:42px;width:42px;height:42px;padding:0;justify-content:center;font-size:22px;line-height:1}.nts-application-config-modal-body{min-height:0;overflow:auto;padding:18px 22px 24px;background:#f4faff}.nts-application-config-modal-body .nts-card{box-shadow:none}.nts-application-config-summary{margin-bottom:14px}.nts-application-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-top:16px}.nts-application-stat-grid span{padding:10px 11px;border:1px solid #d7e7f2;border-radius:10px;background:#f8fcff;color:#5d788e;font-size:12px;font-weight:700}.nts-application-stat-grid b{display:block;margin-bottom:2px;color:#174e82;font-size:20px}.nts-application-tabs{display:flex;gap:8px;overflow:auto;margin:0 0 14px;padding-bottom:2px}.nts-application-tabs button{flex:0 0 auto;min-height:39px;padding:9px 13px;border:1px solid #cfe1ee;border-radius:9px;background:#fff;color:#49677f;font:700 13px/1 inherit;cursor:pointer}.nts-application-tabs button.active{border-color:#176fb8;background:#176fb8;color:#fff}.nts-application-config-fragment [data-application-config-panel]{display:grid;gap:14px}.nts-application-help-card{border-color:#cfe4f3;background:#f8fcff}.nts-application-help-card h3{margin:4px 0 6px;color:#174e82;font-size:16px}.nts-application-help-card p:last-child{margin-bottom:0;color:#53718a;font-size:13px}.nts-form-note{margin:12px 0 0;padding:10px 12px;border:1px solid #cfe1ee;border-radius:9px;background:#f6fbff;color:#496a82;font-size:13px;font-weight:650}.nts-application-config-modal .nts-application-rule{background:#fff}.nts-application-config-modal .nts-application-rule h3 .nts-status{margin-left:4px;vertical-align:middle}.nts-application-config-modal [hidden]{display:none!important}@media(max-width:800px){.nts-application-config-modal{width:calc(100vw - 16px);max-height:calc(100vh - 16px)}.nts-application-config-modal-shell{max-height:calc(100vh - 16px)}.nts-application-config-modal .nts-workflow-dialog-head{padding:15px 16px 12px}.nts-application-config-modal-body{padding:14px 16px 20px}.nts-application-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.nts-application-config-modal .nts-table-actions{justify-content:flex-start}.nts-application-config-modal .nts-table-actions .nts-button{min-height:39px}}@media(max-width:520px){.nts-application-stat-grid{grid-template-columns:1fr 1fr}.nts-application-tabs{margin-left:-2px;margin-right:-2px}.nts-application-config-modal .nts-dialog-actions{display:grid;grid-template-columns:1fr}.nts-application-config-modal .nts-dialog-actions .nts-button{width:100%}.nts-application-config-modal .nts-application-rule{padding:13px}.nts-application-config-modal .nts-application-meta{display:grid;grid-template-columns:1fr}.nts-application-config-modal .nts-application-meta>span{min-width:0}}
.nts-student-policy-card{margin:0 0 14px;padding:13px 15px;border:1px solid #cfe4f3;border-radius:12px;background:#f8fcff}.nts-student-policy-card .nts-eyebrow{margin:0 0 5px}.nts-student-policy-card p{margin:5px 0;color:#46677e;font-size:13px}.nts-student-policy-badge{display:inline-block;margin-left:7px;padding:3px 7px;border-radius:999px;background:#e7f7eb;color:#18713b;font-size:10px;font-style:normal;font-weight:800;text-transform:uppercase;vertical-align:middle}

/* Teacher event filters. */
.nts-teacher-event-filter{display:grid;grid-template-columns:repeat(4,minmax(130px,1fr)) auto minmax(155px,max-content);align-items:end;gap:10px;margin:16px 0 18px;padding:12px;border:1px solid #dce8f2;border-radius:11px;background:#f8fcff}.nts-teacher-event-filter .nts-field{min-width:0}.nts-teacher-event-filter .nts-field label{font-size:12px}.nts-teacher-event-filter .nts-field select{min-height:40px;padding:9px 10px}.nts-teacher-event-filter .nts-button{min-height:40px;padding:9px 12px;white-space:nowrap}.nts-teacher-event-filter-count{align-self:center;margin:0;color:#58728a;font-size:12px;font-weight:700;white-space:nowrap}@media(max-width:1000px){.nts-teacher-event-filter{grid-template-columns:repeat(2,minmax(0,1fr)) auto minmax(155px,max-content)}}@media(max-width:600px){.nts-teacher-event-filter{grid-template-columns:1fr;gap:9px;padding:11px}.nts-teacher-event-filter .nts-button{width:100%}.nts-teacher-event-filter-count{padding:2px 0;text-align:center}}

/* Session 3.1: Student Application modal footer and viewport containment. */
.nts-application-setup-modal .nts-application-setup-modal-body {
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.nts-application-setup-modal .nts-dialog-actions {
  clear: both;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #e5eef5;
}
.nts-application-setup-modal .nts-dialog-actions .nts-button {
  flex: 0 1 auto;
}
.nts-application-setup-modal .nts-datetime-field.nts-datetime-open-upward .nts-datetime-popover {
  top: auto;
  bottom: calc(100% + 8px);
}
body:has(.nts-application-setup-modal[open]),
body:has(.nts-application-config-modal[open]) {
  overflow: hidden;
}
@media (max-width: 640px) {
  .nts-application-setup-modal .nts-dialog-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 18px;
    padding-top: 14px;
  }
  .nts-application-setup-modal .nts-dialog-actions .nts-button {
    width: 100%;
  }
  .nts-application-setup-modal .nts-datetime-field.nts-datetime-open-upward .nts-datetime-popover {
    position: fixed;
    top: auto;
    right: 8px;
    bottom: 10px;
    left: 8px;
    width: auto;
  }
}

/* Keep JS-positioned pickers out of the modal clipping context. */
.nts-application-setup-modal .nts-datetime-popover {
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  width: 312px;
}
@media (max-width: 640px) {
  .nts-application-setup-modal .nts-datetime-popover {
    right: auto;
    bottom: auto;
    left: auto;
    width: min(312px, calc(100vw - 16px));
  }
}

/* Deliberate secondary action styling for the setup modal footer. */
.nts-application-setup-modal .nts-dialog-actions .nts-application-setup-cancel {
  flex: 0 0 128px;
  min-width: 128px;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid #bfd5e6;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f2f8fc 100%);
  color: #245f91;
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(30, 76, 109, .08);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.nts-application-setup-modal .nts-dialog-actions .nts-application-setup-cancel:hover {
  transform: translateY(-2px);
  border-color: #78a9cc;
  background: #e5f3fc;
  color: #0c4e92;
  box-shadow: 0 8px 16px rgba(23, 103, 181, .16);
}
.nts-application-setup-modal .nts-dialog-actions .nts-application-setup-cancel:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(30, 76, 109, .12);
}
.nts-application-setup-modal .nts-dialog-actions .nts-application-setup-cancel:focus-visible {
  outline: 0;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(23, 103, 181, .18);
}

/* Event participant display and controlled reopen form polish. */
body.nts-teacher-shell .nts-event-participants-card { margin-top: 20px; }
body.nts-teacher-shell .nts-event-participant-table { min-width: 900px; }
body.nts-teacher-shell .nts-event-participant-table td:first-child,
body.nts-teacher-shell .nts-event-participant-table td:nth-child(3),
body.nts-teacher-shell .nts-event-participant-table td:nth-child(4),
body.nts-teacher-shell .nts-event-participant-table td:nth-child(5),
body.nts-teacher-shell .nts-event-participant-table td:nth-child(6) { white-space: nowrap; }
body.nts-teacher-shell .nts-event-participant-table td:last-child { min-width: 230px; }
body.nts-teacher-shell .nts-reopen-field { width: min(100%, 760px); gap: 8px; }
body.nts-teacher-shell .nts-reopen-field label { display: flex; align-items: baseline; gap: 7px; }
body.nts-teacher-shell .nts-reopen-field label small { color: #a34242; font-size: 12px; font-weight: 700; }
body.nts-teacher-shell .nts-reopen-field textarea.nts-form-control { width: 100%; min-height: 128px; padding: 12px 13px; border: 1px solid #cbddea; border-radius: 9px; background: #fff; color: var(--ink); font: inherit; line-height: 1.45; resize: vertical; outline: 0; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
body.nts-teacher-shell .nts-reopen-field textarea.nts-form-control:hover { border-color: #9fbfd7; background: #fbfdff; }
body.nts-teacher-shell .nts-reopen-field textarea.nts-form-control:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(23, 103, 181, .12); }
body.nts-teacher-shell .nts-reopen-actions { justify-content: flex-end; margin-top: 2px; }
@media (max-width: 600px) {
  body.nts-teacher-shell .nts-reopen-actions { justify-content: stretch; }
  body.nts-teacher-shell .nts-reopen-actions .nts-button { width: 100%; min-height: 46px; }
}
/* Event Trial candidate pool */
body.nts-teacher-shell .nts-trial-candidate-table { min-width: 1080px; }
body.nts-teacher-shell .nts-trial-candidate-table th,
body.nts-teacher-shell .nts-trial-candidate-table td { vertical-align: middle; }
body.nts-teacher-shell .nts-trial-candidate-table td[data-label="Participant Source"] { min-width: 250px; }
body.nts-teacher-shell .nts-trial-candidate-table td[data-label="Trial Status"] { min-width: 150px; white-space: nowrap; }
body.nts-teacher-shell .nts-trial-candidate-table .nts-status { display: inline-flex; align-items: center; min-height: 27px; padding: 5px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
body.nts-teacher-shell .nts-trial-candidate-table .nts-status.active { background: #ebf8ef; color: #25804d; }
body.nts-teacher-shell .nts-trial-candidate-table .nts-status.ready { background: #fff7df; color: #a26d16; }
body.nts-teacher-shell .nts-trial-candidate-table .nts-status.inactive { background: #eef2f5; color: #607888; }
@media(max-width:760px) {
  body.nts-teacher-shell .nts-trial-candidate-table { min-width: 980px; }
}

/* V2 field attempts and ranking controls use the standard teacher form language. */
body.nts-teacher-shell .nts-attempt-state { display: grid; gap: 2px; min-width: 120px; margin-bottom: 10px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; background: #f8fcff; }
body.nts-teacher-shell .nts-attempt-state span { color: var(--muted); font-size: 11px; font-weight: 700; }
body.nts-teacher-shell .nts-attempt-state strong { color: var(--ink); font-size: 15px; font-variant-numeric: tabular-nums; }
body.nts-teacher-shell .nts-attempt-state small { color: #476c8d; font-size: 11px; font-weight: 700; letter-spacing: .03em; }
body.nts-teacher-shell .nts-field-attempt-form { display: grid; grid-template-columns: minmax(105px, 1fr) minmax(105px, auto) auto; align-items: center; gap: 8px; max-width: none; min-width: 320px; }
body.nts-teacher-shell .nts-field-attempt-form input[name="numeric_value"],
body.nts-teacher-shell .nts-field-attempt-form select.nts-form-control { box-sizing: border-box; width: 100%; min-width: 0; min-height: 42px; padding: 9px 11px; border: 1px solid #c5d9e8; border-radius: 9px; background: #fff; color: var(--ink); font: 500 13px/1.25 "Segoe UI", Arial, sans-serif; outline: 0; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
body.nts-teacher-shell .nts-field-attempt-form select.nts-form-control { cursor: pointer; }
body.nts-teacher-shell .nts-field-attempt-form select.nts-form-control:hover { border-color: #9fbfd7; background: #fbfdff; }
body.nts-teacher-shell .nts-field-attempt-form input[name="numeric_value"]:focus,
body.nts-teacher-shell .nts-field-attempt-form select.nts-form-control:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23,103,181,.12); }
body.nts-teacher-shell .nts-field-attempt-form .nts-button { min-height: 42px; white-space: nowrap; }
body.nts-teacher-shell .nts-v2-ranking-controls { display: grid; grid-template-columns: minmax(165px, 1fr) minmax(165px, 1fr) minmax(260px, 2fr) auto; align-items: end; gap: 12px; }
body.nts-teacher-shell .nts-v2-ranking-controls .nts-field { min-width: 0; }
body.nts-teacher-shell .nts-v2-ranking-controls .nts-field span { color: #405a71; font-size: 13px; font-weight: 650; }
body.nts-teacher-shell .nts-v2-ranking-controls input,
body.nts-teacher-shell .nts-v2-ranking-controls select { min-width: 0; min-height: 43px; }
body.nts-teacher-shell .nts-v2-ranking-controls .nts-button { min-height: 43px; white-space: nowrap; }
body.nts-teacher-shell .nts-v2-rank-form { display: grid; grid-template-columns: 78px minmax(190px, 1fr) auto; align-items: center; gap: 8px; min-width: 345px; }
body.nts-teacher-shell .nts-v2-rank-form input { box-sizing: border-box; width: 100%; min-width: 0; min-height: 42px; padding: 9px 11px; border: 1px solid #c5d9e8; border-radius: 9px; background: #fff; color: var(--ink); font: 500 13px/1.25 "Segoe UI", Arial, sans-serif; outline: 0; }
body.nts-teacher-shell .nts-v2-rank-form input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23,103,181,.12); }
body.nts-teacher-shell .nts-v2-rank-form .nts-button { min-height: 42px; }
body.nts-teacher-shell .nts-v2-rank-form .nts-button:disabled { opacity: .55; cursor: default; transform: none; box-shadow: none; }
@media(max-width:800px) {
  body.nts-teacher-shell .nts-v2-ranking-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.nts-teacher-shell .nts-v2-ranking-controls .nts-field:nth-of-type(3) { grid-column: 1 / -1; }
}
@media(max-width:520px) {
  body.nts-teacher-shell .nts-v2-ranking-controls { grid-template-columns: 1fr; }
  body.nts-teacher-shell .nts-v2-ranking-controls .nts-field:nth-of-type(3) { grid-column: auto; }
  body.nts-teacher-shell .nts-v2-ranking-controls .nts-button { width: 100%; }
}

/* Field Qualification notices and reasons */
body.nts-teacher-shell .nts-field-qualification-card .nts-qualification-note,
body.nts-teacher-shell .nts-field-qualification-card .nts-qualification-readonly,
body.nts-teacher-shell .nts-field-qualification-card .nts-empty { width: 100%; margin: 14px 0 0; padding: 12px 14px; border: 1px solid #d3e6f3; border-radius: 10px; background: #f6fbff; color: #496a82; font-size: 13px; line-height: 1.5; }
body.nts-teacher-shell .nts-field-qualification-card .nts-qualification-readonly { border-color: #c9deee; background: #edf7ff; color: #315f83; font-weight: 650; }
body.nts-teacher-shell .nts-qualification-reopen { width: 100%; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); gap: 14px; }
body.nts-teacher-shell .nts-qualification-reopen .nts-reopen-field { width: 100%; max-width: none; gap: 8px; }
body.nts-teacher-shell .nts-qualification-reopen .nts-reopen-field label { color: #405a71; font-size: 14px; font-weight: 650; }
body.nts-teacher-shell .nts-qualification-reopen textarea.nts-form-control { box-sizing: border-box; display: block; width: 100%; min-height: 112px; padding: 12px 13px; border: 1px solid #cbddea; border-radius: 9px; background: #fff; color: var(--ink); font: 500 14px/1.45 "Segoe UI", Arial, sans-serif; resize: vertical; outline: 0; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
body.nts-teacher-shell .nts-qualification-reopen textarea.nts-form-control:hover { border-color: #9fbfd7; background: #fbfdff; }
body.nts-teacher-shell .nts-qualification-reopen textarea.nts-form-control:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(23,103,181,.12); }
body.nts-teacher-shell .nts-qualification-reopen .nts-reopen-actions { width: 100%; margin-top: 0; }
body.nts-teacher-shell .nts-qualification-reason-form { align-items: center; flex-wrap: wrap; min-width: 235px; max-width: none; }
body.nts-teacher-shell .nts-qualification-reason-form input.nts-form-control,
body.nts-teacher-shell .nts-qualification-override-input.nts-form-control { box-sizing: border-box; min-width: 190px; min-height: 42px; padding: 9px 11px; border: 1px solid #c5d9e8; border-radius: 9px; background: #fff; color: var(--ink); font: 500 13px/1.25 "Segoe UI", Arial, sans-serif; outline: 0; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
body.nts-teacher-shell .nts-qualification-reason-form input.nts-form-control { flex: 1 1 210px; width: auto; }
body.nts-teacher-shell .nts-qualification-override-input.nts-form-control { width: 100%; }
body.nts-teacher-shell .nts-qualification-reason-form input.nts-form-control:focus,
body.nts-teacher-shell .nts-qualification-override-input.nts-form-control:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23,103,181,.12); }
body.nts-teacher-shell .nts-qualification-override-input.nts-form-control:disabled { background: #f3f7fa; color: #71879a; }
@media(max-width:600px) {
  body.nts-teacher-shell .nts-qualification-reopen .nts-reopen-actions { justify-content: stretch; }
  body.nts-teacher-shell .nts-qualification-reopen .nts-reopen-actions .nts-button { width: 100%; }
  body.nts-teacher-shell .nts-qualification-reason-form .nts-button { width: 100%; }
}

/* Final Result reopen dialog reuses the standard reopen textarea control. */
body.nts-teacher-shell #finalResultReopenDialog .nts-reopen-field { width: 100%; margin-top: 18px; text-align: left; }
body.nts-teacher-shell #finalResultReopenDialog .nts-reopen-field textarea.nts-form-control { box-sizing: border-box; min-height: 112px; font: 500 14px/1.45 "Segoe UI", Arial, sans-serif; }
@media(max-width:520px) {
  body.nts-teacher-shell #finalResultReopenDialog .nts-confirm-body { padding: 24px 18px; }
}

/* Team and group composition notes use the established teacher textarea style. */
body.nts-teacher-shell .nts-tunnel-team-note,
body.nts-teacher-shell .nts-early-years-group-note { width: 100%; max-width: none; margin: 4px 0 22px; }
body.nts-teacher-shell .nts-tunnel-team-note textarea.nts-form-control,
body.nts-teacher-shell .nts-early-years-group-note textarea.nts-form-control { box-sizing: border-box; min-height: 112px; font: 500 14px/1.45 "Segoe UI", Arial, sans-serif; }
