.account-heading{margin-bottom:28px}.account-panel{background:var(--panel,#101722);border:1px solid var(--border,#263444);border-radius:9px;padding:25px;margin-bottom:22px;min-width:0}.account-panel h2{font-size:21px;margin-bottom:9px}.account-panel>p,.account-section-title p{font-size:14px;line-height:1.85;color:#91a6b9}.account-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;align-items:start}.account-grid>.account-panel{margin-bottom:0}.account-grid{margin-bottom:22px}.account-section-title{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:21px}.account-section-title h2,.account-section-title h3{margin-bottom:6px}.account-section-title .button{flex-shrink:0}.account-form{display:grid;gap:17px;margin-top:23px}.account-field{display:grid;gap:7px;min-width:0;font-size:14px;color:#bccbda}.account-field>span{font-weight:550}.account-field input,.account-field textarea,.account-field select,.account-table select,.staff-json>textarea{display:block;width:100%;border:1px solid #324455;border-radius:6px;background:#0c1520;color:#e4edf3;padding:11px 13px;min-height:43px;font:14px/1.6 var(--body,'DM Sans',sans-serif);transition:border-color .15s}.account-field textarea,.staff-json>textarea{resize:vertical;min-height:90px}.account-field textarea[name$=Code],.account-field textarea[name^=step-code],.staff-json>textarea{font-family:var(--mono,monospace);font-size:13px;tab-size:2;line-height:1.8}.account-field input[readonly]{background:#18212c;color:#8299ad;cursor:default}.account-field input:focus,.account-field textarea:focus,.account-field select:focus,.account-table select:focus,.staff-json>textarea:focus{outline:2px solid #00ed9b33;outline-offset:1px;border-color:#63a28a}.account-field small{font-size:12px;line-height:1.7;color:#7e97ab}.account-field input::placeholder{color:#667e94}.account-field select,.account-table select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%2392a6ba' stroke-width='1.8'/%3E%3C/svg%3E");background-position:right 12px center;background-repeat:no-repeat;padding-right:35px}.account-checkbox{display:flex;gap:11px;align-items:flex-start;background:#15271f;border:1px solid #315343;border-radius:6px;padding:13px 15px;font-size:14px;cursor:pointer}.account-checkbox input{accent-color:var(--green,#00ed9b);width:16px;height:16px;margin:4px 0 0;flex-shrink:0}.account-actions{display:flex;gap:11px;flex-wrap:wrap;align-items:center}.account-form>.button{justify-self:start;min-width:145px}.form-message{font-size:14px;line-height:1.85;padding:12px 15px;border-radius:6px;border:1px solid #695135;background:#3e302130;color:#e5c9a2;overflow-wrap:anywhere}.form-message[hidden]{display:none}.form-message.success{border-color:#39644d;background:#143b2a4f;color:#b0e4c8}.form-message:empty{display:none}.account-callout{font-size:14px;line-height:1.9;border:1px solid #2e5147;border-radius:6px;padding:14px 17px;background:#102c2250;color:#a4c6b6;margin:17px 0}.account-callout.error{border-color:#6a4f37;background:#34281f66;color:#e2bc96}.account-hint{font-size:12px!important;line-height:1.9!important;color:#718b9f!important;margin-top:18px!important;max-width:850px}.account-status{display:inline-flex;align-items:center;padding:3px 9px;min-height:25px;border:1px solid #354554;border-radius:4px;font-size:12px;line-height:1.5;text-transform:capitalize;white-space:nowrap}.account-status.positive{color:#9de5c0;background:#153b2b44;border-color:#32634d}.account-status.neutral{color:#a3b3c4;background:#24314055;border-color:#354554}.account-details{margin:20px 0 25px}.account-details>div{padding:12px 0;border-bottom:1px solid #223241}.account-details dt{font-size:12px;color:#768fa5;margin-bottom:4px}.account-details dd{font-size:15px;margin:0;overflow-wrap:anywhere}.account-loading{display:flex;align-items:center;gap:10px;padding:27px 4px;font-size:14px;color:#8ea8bb}.account-loading svg{color:#74c6a3;width:18px;height:18px}.auth-layout{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:start;max-width:1060px;margin:40px auto 20px}.auth-intro{padding:25px 0}.auth-intro h1{font-size:39px;line-height:1.32;letter-spacing:-1.3px;max-width:430px;margin:20px 0}.auth-intro p{font-size:16px;line-height:1.95;max-width:440px}.auth-benefits{display:grid;gap:17px;margin:30px 0 29px}.auth-benefits span{display:flex;gap:11px;align-items:center;font-size:14px;color:#a3bdc5}.auth-benefits svg{color:var(--green,#00ed9b);width:17px;height:17px}.auth-intro .text-button{font-size:14px}.auth-panel{padding:29px;max-width:480px;width:100%;background:radial-gradient(ellipse at 100% 0,#0d453125,transparent 60%),var(--panel,#101722)}.auth-panel .topic-icon{margin-bottom:22px}.auth-panel h2{font-size:23px;letter-spacing:-.5px}.auth-panel>p{font-size:14px}.auth-panel .account-form>.button{justify-self:stretch;margin-top:3px}.auth-switch{font-size:14px;color:#8ca2b7;text-align:center;border-top:1px solid #263646;margin-top:25px;padding-top:20px}.auth-switch a{color:#91d7b9;margin-left:6px;text-decoration:underline;text-underline-offset:4px}.staff-setup>summary{cursor:pointer;font-size:15px;font-family:var(--heading,sans-serif);font-weight:650;color:#a7b9c9;list-style-position:inside}.staff-setup>p{margin-top:15px;max-width:750px}.staff-setup .account-form{max-width:510px}.staff-setup[open]>summary{color:#9ce2bd}.account-table-wrap{width:100%;overflow:auto;margin-top:15px;border:1px solid #263748;border-radius:7px}.account-table{width:100%;border-collapse:collapse;text-align:left;min-width:650px;font-size:13px;line-height:1.7}.account-table th{color:#829aaf;font-weight:500;font-size:12px;background:#111f2c;padding:12px 15px;border-bottom:1px solid #2a3c4c;white-space:nowrap}.account-table td{padding:14px 15px;vertical-align:top;border-bottom:1px solid #243442;color:#a8bdcd}.account-table tr:last-child td{border-bottom:0}.account-table td strong{font-weight:550;color:#d4e0eb;display:block;font-size:13px}.account-table td small{font-size:12px;display:block;color:#6f8aa0;margin-top:4px;overflow-wrap:anywhere}.account-table .device-cell{max-width:290px;min-width:200px}.account-table .device-cell strong{font-weight:400;font-size:12px;max-width:290px;overflow-wrap:anywhere}.account-table .compact{font-size:12px;padding:5px 10px;min-height:31px}.account-table select{min-height:34px;font-size:12px;padding-top:6px;padding-bottom:6px;min-width:115px}.account-table .table-actions{min-width:220px}.table-actions>.text-button{display:inline-block;margin:5px 8px 0 0;font-size:12px}.self-label{color:#6ac59e!important}.text-button.danger{color:#d0a084}.text-button.danger:hover{color:#f2b28d}.admin-topline{display:flex;align-items:center;justify-content:space-between;margin-top:-10px;margin-bottom:24px}.admin-tabs{display:flex;gap:6px;border-bottom:1px solid #28394a;margin-bottom:24px;overflow:auto;scrollbar-width:thin}.admin-tabs button,.admin-tabs a{font-size:14px;color:#91a6b9;padding:10px 17px 14px;white-space:nowrap;border-bottom:2px solid transparent;display:inline-block}.admin-tabs button.active,.admin-tabs a.active{border-bottom-color:var(--green,#00ed9b);color:#9ce0c3}.admin-tabs button:hover,.admin-tabs a:hover{color:#c9e8dc}.account-single-panel{max-width:680px}.admin-filter{margin-bottom:20px;max-width:590px}.admin-filter input{font-size:14px}.staff-editor{scroll-margin-top:24px;border-color:#325549}.staff-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.staff-form-grid>.full-width{grid-column:1/-1}.staff-fieldset{min-width:0;margin:0;border:1px solid #2b3f4f;border-radius:7px;padding:20px;display:grid;gap:15px}.staff-fieldset legend{font-size:15px;font-weight:550;color:#acd1c0;padding:0 7px}.staff-step{padding:17px;border:1px solid #283f4d;border-radius:6px;background:#101c27;display:grid;gap:13px;margin-bottom:14px;min-width:0}.staff-step:last-child{margin-bottom:0}.staff-step-title{display:flex;align-items:center;justify-content:space-between;gap:15px}.staff-step-title strong{font-size:13px;color:#8cc7ae}.staff-step-title .text-button{font-size:12px}.staff-fieldset>.button{justify-self:start;font-size:12px}.staff-fieldset [data-step-list]{min-width:0}.staff-json{background:#0d1822;border:1px dashed #344c5b;border-radius:6px;padding:16px}.staff-json>summary{font-size:14px;color:#8dabbd;cursor:pointer}.staff-json>p{font-size:13px;margin:13px 0;line-height:1.8}.staff-json>.button{margin-top:12px;font-size:12px}.staff-json .form-message{margin-top:12px}.account-empty{padding:35px 20px;text-align:center;border:1px dashed #304858;border-radius:7px;margin-top:18px}.account-empty h3{font-size:17px;margin-bottom:10px}.account-empty p{font-size:14px;max-width:540px;margin:auto;line-height:1.9}.account-empty .button{margin-top:20px}.testcase-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:23px}.testcase-card{border:1px solid #2b414d;border-radius:7px;background:#101e28;padding:21px;min-width:0}.testcase-card h3{font-size:17px}.testcase-card p{font-size:14px;line-height:1.9;color:#8ea7b8}.testcase-card .account-section-title{gap:12px;margin-bottom:11px}.testcase-card .account-section-title .account-status{font-size:11px}.testcase-meta{font-size:12px;line-height:1.7;color:#6f8c9e;margin:16px 0}.testcase-card .compact{font-size:12px;min-height:33px;padding:6px 12px}.testcase-card .text-button{font-size:12px}.revision-item{border:1px solid #2b414e;border-radius:6px;padding:13px 17px;margin-top:12px;min-width:0}.revision-item>summary{cursor:pointer;font-size:14px;color:#a0bdc5;list-style-position:inside}.revision-item .request-code{max-height:480px;font-size:12px;max-width:100%;white-space:pre-wrap;overflow-wrap:anywhere}.audit-details>summary{cursor:pointer;font-size:12px;color:#8bbba9}.audit-details pre{font:11px/1.8 var(--mono,monospace);color:#97b8c0;max-width:380px;white-space:pre-wrap;overflow-wrap:anywhere;margin-bottom:0}.account-table td .text-button{font-size:12px}.account-table button:disabled,.account-table select:disabled{opacity:.55;cursor:default}.auth-intro h1 br{display:block}.auth-panel .account-callout{font-size:13px}.account-panel .text-button{padding:0}.account-panel .account-actions{margin-top:17px}.account-panel .staff-editor{margin-bottom:0}
.staff-search-form{display:flex;gap:10px;margin-bottom:20px;align-items:center;max-width:690px}.staff-search-form>.account-field{flex:1}.staff-search-form>.button{flex-shrink:0}.admin-password-confirm{max-width:440px;margin-bottom:17px}.account-pagination{display:flex;gap:15px;justify-content:space-between;align-items:center;margin-top:19px;font-size:12px;color:#8099ad}.account-pagination>div{display:flex;gap:8px}.account-pagination .button{font-size:12px;min-height:33px;padding:5px 12px}.account-panel>.form-message{margin:15px 0}
@media(max-width:1100px){.auth-layout{gap:32px}.auth-intro h1{font-size:33px}.auth-panel{padding:24px}.account-panel{padding:22px}.account-section-title{gap:14px}.testcase-cards{grid-template-columns:1fr}.account-grid{grid-template-columns:1fr}.account-grid>.account-panel{margin-bottom:0}}
@media(max-width:850px){.auth-layout{grid-template-columns:1fr;max-width:530px;margin-top:5px;gap:24px}.auth-intro{padding:0}.auth-intro h1{font-size:32px;max-width:none;margin:15px 0}.auth-intro p{font-size:15px}.auth-benefits{display:none}.auth-intro .text-button{display:inline-block;margin-top:17px}.auth-panel{max-width:none}.staff-form-grid{grid-template-columns:1fr}.staff-form-grid>.full-width{grid-column:auto}.admin-tabs button,.admin-tabs a{padding-left:13px;padding-right:13px}.account-section-title{flex-wrap:wrap}.account-section-title .button{min-height:35px;font-size:12px}.account-table{font-size:12px}.staff-fieldset{padding:15px}.staff-step{padding:15px}}
@media(max-width:470px){.account-panel{padding:20px 17px}.auth-panel{padding:23px 19px}.auth-intro h1{font-size:29px;letter-spacing:-.8px}.auth-layout{gap:26px}.auth-intro .eyebrow{font-size:10px;letter-spacing:1px}.account-field input,.account-field textarea,.account-field select{font-size:16px}.account-field small{font-size:12px}.account-heading h1{font-size:27px}.account-panel h2{font-size:19px}.account-heading p{font-size:14px}.admin-tabs button,.admin-tabs a{font-size:13px;padding:9px 12px 13px}.account-actions .button{font-size:12px}.account-section-title{gap:12px}.account-grid{gap:18px}.staff-fieldset{padding:13px}.staff-step{padding:13px}.staff-step .account-field textarea[name^=step-code],.account-field textarea[name$=Code]{font-size:12px}.staff-editor{padding:19px 13px}.testcase-card{padding:18px}.account-form{gap:15px}.account-details dd{font-size:14px}.staff-json>summary{font-size:13px}.auth-switch{font-size:13px}.account-panel .account-hint{font-size:12px!important}.staff-form-grid{gap:15px}}
.admin-stats .stats-grid{margin-bottom:22px}.quiz-option-row{display:flex;gap:10px;align-items:flex-end}.quiz-option-row .account-field{flex:1}.quiz-option-row .text-button{margin-bottom:12px;font-size:12px}.revision-summary{display:flex;align-items:center;justify-content:space-between;gap:12px}.revision-actions{margin-top:12px}.maintenance-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:16px}.maintenance-grid .account-callout{margin:0}.maintenance-grid .account-callout p{margin-top:6px;font-size:13px;color:#9bb5aa}@media(max-width:850px){.maintenance-grid{grid-template-columns:1fr}}

:root[data-theme="light"] .account-panel{background:var(--panel);border-color:var(--border)}
:root[data-theme="light"] .account-panel>p,:root[data-theme="light"] .account-section-title p{color:#455666}
:root[data-theme="light"] .account-field{color:#2f3e4d}
:root[data-theme="light"] .account-field input,:root[data-theme="light"] .account-field textarea,:root[data-theme="light"] .account-field select,:root[data-theme="light"] .account-table select,:root[data-theme="light"] .staff-json>textarea{background:#f2f5f8;border-color:#c6d1dd;color:#1b2530}
:root[data-theme="light"] .account-field input[readonly]{background:#e7ecf2;color:#4b5c6e}
:root[data-theme="light"] .account-field input:focus,:root[data-theme="light"] .account-field textarea:focus,:root[data-theme="light"] .account-field select:focus,:root[data-theme="light"] .account-table select:focus,:root[data-theme="light"] .staff-json>textarea:focus{outline-color:#12795633;border-color:#127956}
:root[data-theme="light"] .account-field small,:root[data-theme="light"] .account-field input::placeholder{color:#526476}
:root[data-theme="light"] .account-checkbox{background:#dcf0e7;border-color:#98cbb4;color:#0f5c41}
:root[data-theme="light"] .form-message{background:#f7ebe2;border-color:#dfb79b;color:#8a4016}
:root[data-theme="light"] .form-message.success{background:#dcf0e7;border-color:#98cbb4;color:#0f5c41}
:root[data-theme="light"] .account-callout{background:#dcf0e7;border-color:#98cbb4;color:#0f5c41}
:root[data-theme="light"] .account-callout.error{background:#f7e2de;border-color:#da9f94;color:#8f2626}
:root[data-theme="light"] .account-hint{color:#526476!important}
:root[data-theme="light"] .account-status{border-color:#c6d1dd}
:root[data-theme="light"] .account-status.positive{color:#0f5c41;background:#d8ede2;border-color:#98cbb4}
:root[data-theme="light"] .account-status.neutral{color:#334353;background:#eef2f6;border-color:#c6d1dd}
:root[data-theme="light"] .account-details>div{border-bottom-color:#dde4ec}
:root[data-theme="light"] .account-details dt{color:#526476}
:root[data-theme="light"] .account-loading{color:#455666}
:root[data-theme="light"] .account-loading svg{color:#127956}
:root[data-theme="light"] .auth-benefits span{color:#2f3e4d}
:root[data-theme="light"] .auth-benefits svg{color:#127956}
:root[data-theme="light"] .auth-panel{background:radial-gradient(ellipse at 100% 0,#12795610,transparent 60%),var(--panel)}
:root[data-theme="light"] .auth-switch{color:#455666;border-top-color:#dde4ec}
:root[data-theme="light"] .auth-switch a{color:#0f6849}
:root[data-theme="light"] .staff-setup>summary{color:#2f3e4d}
:root[data-theme="light"] .staff-setup[open]>summary{color:#0f6849}
:root[data-theme="light"] .account-table-wrap{border-color:var(--border)}
:root[data-theme="light"] .account-table th{background:#e7edf3;color:#3d4e5e;border-bottom-color:var(--border)}
:root[data-theme="light"] .account-table td{border-bottom-color:#dde4ec;color:#2f3e4d}
:root[data-theme="light"] .account-table td strong{color:#1b2530}
:root[data-theme="light"] .account-table td small{color:#526476}
:root[data-theme="light"] .self-label{color:#0f6849!important}
:root[data-theme="light"] .text-button.danger{color:#a13022}
:root[data-theme="light"] .text-button.danger:hover{color:#7d2116}
:root[data-theme="light"] .admin-tabs{border-bottom-color:var(--border)}
:root[data-theme="light"] .admin-tabs button,:root[data-theme="light"] .admin-tabs a{color:#455666}
:root[data-theme="light"] .admin-tabs button.active,:root[data-theme="light"] .admin-tabs a.active{color:#0f6849;border-bottom-color:#127956}
:root[data-theme="light"] .admin-tabs button:hover,:root[data-theme="light"] .admin-tabs a:hover{color:#1b2530}
:root[data-theme="light"] .staff-editor{border-color:#98cbb4}
:root[data-theme="light"] .staff-fieldset{border-color:var(--border)}
:root[data-theme="light"] .staff-fieldset legend{color:#0f5c41}
:root[data-theme="light"] .staff-step{background:#eff3f7;border-color:#cfd8e3}
:root[data-theme="light"] .staff-step-title strong{color:#0f6849}
:root[data-theme="light"] .staff-json{background:#eff3f7;border-color:#c6d1dd}
:root[data-theme="light"] .staff-json>summary{color:#455666}
:root[data-theme="light"] .account-empty{border-color:#c6d1dd}
:root[data-theme="light"] .testcase-card{background:#eff3f7;border-color:var(--border)}
:root[data-theme="light"] .testcase-meta{color:#526476}
:root[data-theme="light"] .revision-item{border-color:var(--border);background:var(--panel)}
:root[data-theme="light"] .revision-item>summary{color:#24313e}
:root[data-theme="light"] .audit-details>summary{color:#0f6849}
:root[data-theme="light"] .audit-details pre{color:#2f3e4d}
:root[data-theme="light"] .account-pagination{color:#455666}
:root[data-theme="light"] .maintenance-grid .account-callout p{color:#2f3e4d}
.auth-layout.register-layout{max-width:1120px;grid-template-columns:.85fr 1.15fr;gap:44px}
.auth-panel.register-panel{max-width:600px}
.staff-form-grid{align-items:start}
.account-field{align-content:start}
.required-mark{color:#f87171;margin-left:3px;font-weight:700}
:root[data-theme="light"] .required-mark{color:#dc2626}
.profile-edit-box{margin-top:20px;padding-top:16px;border-top:1px solid var(--border)}
.role-guide{margin-bottom:14px}
.role-matrix{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}
.role-chip-card{border:1px solid #283a49;background:#0e1722;border-radius:6px;padding:11px 13px}
.role-chip-card strong{display:flex;align-items:center;justify-content:space-between;font-size:13px;color:#d6e3ef;margin-bottom:4px}
.role-chip-card code{font:11px var(--mono);color:var(--green);background:#00ed9b14;padding:1px 6px;border-radius:4px}
.role-chip-card p{font-size:12px;line-height:1.6;color:#8aa2b6;margin:0}
@media(max-width:760px){.role-matrix{grid-template-columns:1fr}}
:root[data-theme="light"] .role-chip-card{background:#eff3f7;border-color:var(--border)}
:root[data-theme="light"] .role-chip-card strong{color:#1b2530}
:root[data-theme="light"] .role-chip-card code{color:#0f6849;background:#d8ede2}
:root[data-theme="light"] .role-chip-card p{color:#455666}
.admin-topline-actions,.users-header-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.role-preview-note{font-size:13px;line-height:1.6;color:#9ed4bc;background:#102c2250;border:1px solid #2b4c3f;border-radius:6px;padding:10px 13px}
.password-row{display:flex;gap:8px;align-items:center}
.password-row input{flex:1;min-width:0}
.password-row .button{flex-shrink:0;min-height:43px}
#user-creator-panel .staff-setup .account-form{max-width:none}
#create-user-form .staff-setup{border:1px solid #263748;border-radius:7px;padding:12px 15px;background:#0c1520}
:root[data-theme="light"] .role-preview-note{color:#0f5c41;background:#dcf0e7;border-color:#98cbb4}
:root[data-theme="light"] #create-user-form .staff-setup{background:#eff3f7;border-color:var(--border)}
.row-actions-cell{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.reset-mode-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.reset-mode-card{display:flex;gap:10px;align-items:flex-start;border:1px solid #2b3f4f;background:#0e1722;border-radius:7px;padding:13px 14px;cursor:pointer;transition:border-color .15s,background .15s}
.reset-mode-card:has(input:checked){border-color:#4ba883;background:#102c2250}
.reset-mode-card input{margin-top:3px;accent-color:var(--green,#00ed9b);flex-shrink:0}
.reset-mode-card span{display:grid;gap:4px}
.reset-mode-card strong{font-size:13px;color:#d6e3ef}
.reset-mode-card small{font-size:12px;line-height:1.55;color:#8aa2b6}
@media(max-width:900px){.reset-mode-grid{grid-template-columns:1fr}}
:root[data-theme="light"] .reset-mode-card{background:#eff3f7;border-color:var(--border)}
:root[data-theme="light"] .reset-mode-card:has(input:checked){background:#dcf0e7;border-color:#127956}
:root[data-theme="light"] .reset-mode-card strong{color:#1b2530}
:root[data-theme="light"] .reset-mode-card small{color:#455666}
.contact-page{max-width:1120px;margin:0 auto}
.contact-hero{margin-bottom:24px}
.contact-back-link{display:inline-flex;align-items:center;gap:6px;margin-bottom:14px;font-size:13px}
.contact-back-link svg{width:15px;height:15px}
.contact-hero h1{margin:12px 0 10px;font-size:32px;letter-spacing:-1px}
.contact-hero p{font-size:15px;line-height:1.8;max-width:680px;color:#9cb0c2}
.contact-mode-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-bottom:20px}
.contact-mode-card{display:flex;align-items:flex-start;gap:10px;text-align:left;padding:13px 14px;border:1px solid #263748;border-radius:8px;background:#0e1722;transition:border-color .16s,background .16s,transform .16s}
.contact-mode-card:hover{border-color:#45685a;background:#121e2b;transform:translateY(-1px)}
.contact-mode-card.active{border-color:var(--green,#00ed9b);background:#0f2a21;box-shadow:0 0 0 1px #00ed9b33}
.contact-mode-card svg{width:18px;height:18px;color:#78c9a8;margin-top:2px;flex-shrink:0}
.contact-mode-card span{display:grid;gap:3px;min-width:0}
.contact-mode-card strong{font-size:13px;font-weight:650;color:#e5eef6;line-height:1.35}
.contact-mode-card small{font-size:11.5px;line-height:1.45;color:#8aa2b6}
.contact-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);gap:22px;align-items:start}
.contact-form-panel{margin-bottom:0}
.contact-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap;padding-bottom:18px;border-bottom:1px solid #223241}
.contact-panel-head h2{margin-bottom:5px}
.contact-panel-head p{font-size:13.5px;color:#91a6b9}
.contact-form-structured{margin-top:20px;gap:20px}
.contact-step-block{display:grid;gap:14px;padding:16px 18px;border:1px solid #223241;border-radius:8px;background:#0c141e}
.contact-step-label{font:650 11.5px var(--mono,monospace);letter-spacing:.7px;text-transform:uppercase;color:#74cca8}
.contact-meta-grid,.contact-identity{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.contact-rating-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding-top:4px}
.contact-rating-label{font-size:13px;color:#a5b8ca;font-weight:500}
.contact-rating-pills{display:flex;gap:8px;flex-wrap:wrap}
.contact-rate-pill{display:inline-flex;align-items:center;gap:6px;padding:6px 11px;border:1px solid #2d4051;border-radius:999px;background:#101c28;font-size:12.5px;color:#c2d2e0;cursor:pointer;transition:border-color .15s,background .15s}
.contact-rate-pill:hover{border-color:#4f856e}
.contact-rate-pill:has(input:checked){border-color:var(--green,#00ed9b);background:#123428;color:#9df0cb}
.contact-rate-pill input{accent-color:var(--green,#00ed9b);margin:0}
.contact-message-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.contact-message-head small{font:11.5px var(--mono,monospace);color:#7e97ab}
.contact-page #contact-status{margin:0}
.contact-submit-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.contact-sidebar{display:grid;gap:16px}
.contact-sidebar .account-panel{margin-bottom:0;padding:21px}
.contact-side-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:8px;background:#102c22;border:1px solid #2a5544;color:var(--green,#00ed9b);margin-bottom:12px}
.contact-side-icon svg{width:18px;height:18px}
.contact-sidebar h2,.contact-sidebar h3{font-size:17px;margin-bottom:7px}
.contact-sidebar p{font-size:13.5px;line-height:1.75;color:#93a8bc}
.contact-email-box{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:14px 0 12px;padding:10px 12px;border:1px solid #243647;border-radius:7px;background:#0b131d}
.contact-email-box .text-button{font-size:14px;font-weight:600;overflow-wrap:anywhere}
.contact-response-note{display:flex;align-items:center;gap:7px;font-size:12.5px!important;color:#7ca499!important}
.contact-response-note svg{width:15px;height:15px;flex-shrink:0}
.contact-tips-list{margin:10px 0 0;padding-left:18px;display:grid;gap:9px;font-size:13px;line-height:1.65;color:#9ab0c3}
.contact-tips-list strong{color:#dbe6f0}
.contact-privacy .button{margin-top:14px}
.site-footer{flex-wrap:wrap}
.course-resume{flex-wrap:wrap;gap:12px 20px}
.course-resume h2{font-size:16px;overflow-wrap:anywhere}
.course-resume p{font-size:13px}
@media(max-width:1020px){.contact-mode-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:860px){.contact-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){.contact-mode-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.contact-meta-grid,.contact-identity{grid-template-columns:minmax(0,1fr)}.contact-step-block{padding:14px}}
@media(max-width:420px){.contact-mode-grid{grid-template-columns:minmax(0,1fr)}}
:root[data-theme="light"] .contact-hero p,:root[data-theme="light"] .contact-panel-head p,:root[data-theme="light"] .contact-sidebar p{color:#455666}
:root[data-theme="light"] .contact-mode-card{background:#eef3f7;border-color:#c6d1dd}
:root[data-theme="light"] .contact-mode-card:hover{background:#e4ebf2;border-color:#9bb6ac}
:root[data-theme="light"] .contact-mode-card.active{background:#dcf0e7;border-color:#127956;box-shadow:0 0 0 1px #12795633}
:root[data-theme="light"] .contact-mode-card svg{color:#0f6849}
:root[data-theme="light"] .contact-mode-card strong{color:#1b2530}
:root[data-theme="light"] .contact-mode-card small{color:#4b5c6e}
:root[data-theme="light"] .contact-panel-head,:root[data-theme="light"] .contact-step-block{border-color:#cfd9e4}
:root[data-theme="light"] .contact-step-block{background:#eff3f7}
:root[data-theme="light"] .contact-step-label{color:#0f6849}
:root[data-theme="light"] .contact-rating-label{color:#2f3e4d}
:root[data-theme="light"] .contact-rate-pill{background:#f7f9fb;border-color:#c6d1dd;color:#243240}
:root[data-theme="light"] .contact-rate-pill:has(input:checked){background:#dcf0e7;border-color:#127956;color:#0f5c41}
:root[data-theme="light"] .contact-side-icon{background:#dcf0e7;border-color:#98cbb4;color:#0f6849}
:root[data-theme="light"] .contact-email-box{background:#eff3f7;border-color:#c6d1dd}
:root[data-theme="light"] .contact-response-note{color:#0f6849!important}
:root[data-theme="light"] .contact-tips-list{color:#3c4c5d}
:root[data-theme="light"] .contact-tips-list strong{color:#1b2530}
.session-conflict-box{margin:4px 0!important;display:grid;gap:10px;border-color:#8a6a3c;background:#2f241488;color:#f3d7a8}
.session-conflict-box[hidden]{display:none!important}
.session-conflict-title{display:flex;align-items:center;gap:8px;color:#ffdca8}
.session-conflict-title svg{width:17px;height:17px;flex-shrink:0;color:#f5b95d}
.session-conflict-box p{margin:0;font-size:13px;line-height:1.65;color:#ead2ad}
.session-conflict-meta{font-size:12px!important;color:#cbb28c!important;overflow-wrap:anywhere}
.session-conflict-box .account-actions{margin-top:4px}
:root[data-theme="light"] .session-conflict-box{background:#fbf2e4;border-color:#d5b07c;color:#6c4212}
:root[data-theme="light"] .session-conflict-title{color:#6a3d0a}
:root[data-theme="light"] .session-conflict-title svg{color:#b96e14}
:root[data-theme="light"] .session-conflict-box p{color:#5e3c14}
:root[data-theme="light"] .session-conflict-meta{color:#7a562c!important}
.auth-benefits.recovery-steps{display:grid;padding:0;list-style:none}
.recovery-steps li{display:flex;align-items:flex-start;gap:11px}
.recovery-steps li svg{flex-shrink:0;margin-top:3px}
@media(max-width:760px){.auth-benefits.recovery-steps{gap:9px;margin:15px 0 0}}

/* ============================================================================
   SmartPwn Original Account, Auth & Contact Theme + Motion Layer
   ============================================================================ */

.account-panel,
.testcase-card,
.role-chip-card,
.reset-mode-card,
.contact-mode-card {
  border-color: var(--border, #1E2C4A);
  box-shadow: var(--card-shadow, 0 14px 34px -14px rgba(2, 6, 20, 0.75));
  transition: transform 0.22s var(--ease-out-expo, cubic-bezier(0.22, 1, 0.36, 1)), border-color 0.2s ease, box-shadow 0.24s ease, background 0.2s ease;
}

.account-panel {
  background:
    radial-gradient(420px 200px at 100% 0%, rgba(6, 214, 232, 0.08), transparent 65%),
    linear-gradient(155deg, rgba(15, 24, 45, 0.94) 0%, rgba(10, 16, 32, 0.97) 100%);
  border-radius: 12px;
}

:root[data-theme="light"] .account-panel {
  background: #FFFFFF;
  border-color: #DCE4EF;
}

.auth-layout {
  position: relative;
}

.auth-intro h1,
.contact-hero h1 {
  font-family: var(--heading, 'Plus Jakarta Sans', sans-serif);
  font-weight: 700;
  letter-spacing: -0.025em;
  background: linear-gradient(125deg, #FFFFFF 0%, #E2E8F0 60%, #7CF7DF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

:root[data-theme="light"] .auth-intro h1,
:root[data-theme="light"] .contact-hero h1 {
  background: linear-gradient(125deg, #0F172A 0%, #1E293B 62%, #0E7490 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth-benefits span {
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(15, 24, 45, 0.72);
  border: 1px solid #1E2C4A;
  color: #CBD5E1;
  transition: transform 0.2s var(--ease-out-expo, cubic-bezier(0.22, 1, 0.36, 1)), border-color 0.2s ease;
}

.auth-benefits span:hover {
  transform: translateX(4px);
  border-color: #06D6E8;
}

:root[data-theme="light"] .auth-benefits span {
  background: #FFFFFF;
  border-color: #DCE4EF;
  color: #0F172A;
}

.auth-panel {
  position: relative;
  overflow: hidden;
  border-color: #253860;
  background:
    radial-gradient(380px 220px at 95% 0%, rgba(6, 214, 232, 0.16), transparent 62%),
    radial-gradient(320px 220px at 0% 100%, rgba(16, 240, 164, 0.1), transparent 64%),
    linear-gradient(155deg, #0E172E 0%, #091022 100%);
  box-shadow: 0 24px 60px -20px rgba(2, 6, 20, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

:root[data-theme="light"] .auth-panel {
  border-color: #DCE4EF;
  background:
    radial-gradient(380px 220px at 95% 0%, rgba(8, 145, 178, 0.06), transparent 62%),
    #FFFFFF;
  box-shadow: 0 20px 46px -20px rgba(15, 23, 42, 0.14);
}

.account-field input,
.account-field textarea,
.account-field select,
.account-table select,
.staff-json > textarea {
  border-radius: 8px;
  background: #0A1124;
  border-color: #243558;
  color: #F1F5F9;
  transition: border-color 0.18s ease, box-shadow 0.2s ease, background 0.18s ease;
}

:root[data-theme="light"] .account-field input,
:root[data-theme="light"] .account-field textarea,
:root[data-theme="light"] .account-field select,
:root[data-theme="light"] .account-table select,
:root[data-theme="light"] .staff-json > textarea {
  background: #FFFFFF;
  border-color: #CBD5E1;
  color: #0F172A;
}

.account-field input:focus,
.account-field textarea:focus,
.account-field select:focus {
  border-color: #06D6E8;
  box-shadow: 0 0 0 3px rgba(6, 214, 232, 0.18);
}

:root[data-theme="light"] .account-field input:focus,
:root[data-theme="light"] .account-field textarea:focus,
:root[data-theme="light"] .account-field select:focus {
  border-color: #0891B2;
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.14);
}

.contact-mode-card {
  background:
    radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), rgba(6, 214, 232, 0.12), transparent 62%),
    linear-gradient(155deg, rgba(15, 24, 45, 0.94) 0%, rgba(10, 16, 32, 0.97) 100%);
}

:root[data-theme="light"] .contact-mode-card {
  background: #FFFFFF;
  border-color: #DCE4EF;
}

.contact-mode-card:hover {
  transform: translateY(-2px);
  border-color: #06D6E8;
}

.contact-mode-card.active {
  background: linear-gradient(145deg, rgba(6, 214, 232, 0.18) 0%, rgba(16, 240, 164, 0.12) 100%);
  border-color: #06D6E8;
  box-shadow: 0 10px 26px -10px rgba(6, 214, 232, 0.3);
}

:root[data-theme="light"] .contact-mode-card:hover {
  border-color: #0891B2;
}

:root[data-theme="light"] .contact-mode-card.active {
  background: #ECFEFF;
  border-color: #0891B2;
  box-shadow: 0 8px 22px -10px rgba(8, 145, 178, 0.22);
}

.testcase-card:hover {
  transform: translateY(-2px);
  border-color: #06D6E8;
}
:root[data-theme="light"] .testcase-card:hover {
  border-color: #0891B2;
}

.account-table tbody tr {
  transition: background 0.15s ease;
}
.account-table tbody tr:hover td {
  background: rgba(6, 214, 232, 0.06);
}
:root[data-theme="light"] .account-table tbody tr:hover td {
  background: #F4F7FB;
}
.button.danger{background:linear-gradient(135deg,#e04856 0%,#b91c2e 100%);color:#fff;border:1px solid #f06a76;font-weight:600}
.button.danger:hover{background:linear-gradient(135deg,#ec5967 0%,#cb2438 100%);border-color:#ff8994}
.button.danger:disabled{opacity:.55;cursor:not-allowed}
.button.danger-ghost{color:#f0949d;border-color:#5a2c35;background:rgba(224,72,86,.08)}
.button.danger-ghost:hover:not(:disabled){color:#ffd0d4;border-color:#d8515e;background:rgba(224,72,86,.18)}
.delete-panel{border-color:#74343c}
.delete-confirm-check{background:rgba(224,72,86,.1);border-color:#69343c;color:#f3cfd4}
.delete-confirm-check input{accent-color:#e04856}
:root[data-theme="light"] .button.danger{background:linear-gradient(135deg,#dc2626 0%,#b91c1c 100%);border-color:#b91c1c;color:#fff}
:root[data-theme="light"] .button.danger:hover{background:linear-gradient(135deg,#b91c1c 0%,#991b1b 100%)}
:root[data-theme="light"] .button.danger-ghost{color:#b91c1c;border-color:#e4b3b7;background:#fef2f2}
:root[data-theme="light"] .button.danger-ghost:hover:not(:disabled){color:#7f1d1d;border-color:#dc2626;background:#fee2e2}
:root[data-theme="light"] .delete-panel{border-color:#e4a8ae}
:root[data-theme="light"] .delete-confirm-check{background:#fef2f2;border-color:#eab5b9;color:#7f1d1d}

.account-field input:-webkit-autofill,
.account-field input:-webkit-autofill:hover,
.account-field input:-webkit-autofill:active,
.account-field textarea:-webkit-autofill,
.account-field select:-webkit-autofill,
.account-field input:autofill {
  color-scheme: dark;
  -webkit-box-shadow: 0 0 0 1000px #0A1124 inset !important;
  box-shadow: 0 0 0 1000px #0A1124 inset !important;
  -webkit-text-fill-color: #F1F5F9 !important;
  caret-color: #F1F5F9;
  border-color: #243558;
  transition: background-color 99999s ease-in-out 0s;
}

.account-field input:-webkit-autofill:focus,
.account-field textarea:-webkit-autofill:focus,
.account-field select:-webkit-autofill:focus,
.account-field input:autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #0A1124 inset, 0 0 0 3px rgba(6, 214, 232, 0.18) !important;
  box-shadow: 0 0 0 1000px #0A1124 inset, 0 0 0 3px rgba(6, 214, 232, 0.18) !important;
  -webkit-text-fill-color: #F1F5F9 !important;
  border-color: #06D6E8;
}

:root[data-theme="light"] .account-field input:-webkit-autofill,
:root[data-theme="light"] .account-field input:-webkit-autofill:hover,
:root[data-theme="light"] .account-field input:-webkit-autofill:active,
:root[data-theme="light"] .account-field textarea:-webkit-autofill,
:root[data-theme="light"] .account-field select:-webkit-autofill,
:root[data-theme="light"] .account-field input:autofill {
  color-scheme: light;
  -webkit-box-shadow: 0 0 0 1000px #FFFFFF inset !important;
  box-shadow: 0 0 0 1000px #FFFFFF inset !important;
  -webkit-text-fill-color: #0F172A !important;
  caret-color: #0F172A;
  border-color: #CBD5E1;
}

:root[data-theme="light"] .account-field input:-webkit-autofill:focus,
:root[data-theme="light"] .account-field textarea:-webkit-autofill:focus,
:root[data-theme="light"] .account-field select:-webkit-autofill:focus,
:root[data-theme="light"] .account-field input:autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #FFFFFF inset, 0 0 0 3px rgba(8, 145, 178, 0.14) !important;
  box-shadow: 0 0 0 1000px #FFFFFF inset, 0 0 0 3px rgba(8, 145, 178, 0.14) !important;
  -webkit-text-fill-color: #0F172A !important;
  border-color: #0891B2;
}

.auth-legal-disclaimer {
  margin-top: 16px;
  padding: 11px 14px;
  border-radius: 7px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.08);
  font-size: 12px;
  line-height: 1.65;
  color: #cbd5e1;
}

.auth-legal-disclaimer strong {
  color: #fde68a;
}

.auth-legal-disclaimer a {
  color: #38bdf8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

:root[data-theme="light"] .auth-legal-disclaimer {
  background: #fffbeb;
  border-color: #fde68a;
  color: #475569;
}

:root[data-theme="light"] .auth-legal-disclaimer strong {
  color: #92400e;
}

:root[data-theme="light"] .auth-legal-disclaimer a {
  color: #0e7490;
}

.legal-disclaimer-panel {
  display: grid;
  gap: 14px;
}

.auth-submit-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.auth-signing-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(6, 201, 227, 0.32);
  background: rgba(6, 201, 227, 0.09);
  color: #bae6fd;
  font-size: 12.5px;
  font-weight: 500;
}

.auth-signing-status[hidden] {
  display: none;
}

.auth-mini-logo {
  width: 20px;
  height: auto;
  animation: spLogoPulse 1.4s ease-in-out infinite;
}

:root[data-theme="light"] .auth-signing-status {
  background: #ecfeff;
  border-color: #a5f3fc;
  color: #0e7490;
}

/* =========================================================
   Student Skill Ranks & Progression Card
   ========================================================= */
.student-rank-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(148, 163, 184, 0.14);
  color: #e2e8f0;
  white-space: nowrap;
}

.student-rank-pill.compact {
  padding: 2px 8px;
  font-size: 10.5px;
}

.student-rank-pill.rank-noobie {
  border-color: rgba(148, 163, 184, 0.35);
  background: rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
}

.student-rank-pill.rank-script-kiddie {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.15);
  color: #7dd3fc;
}

.student-rank-pill.rank-apprentice {
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(34, 211, 238, 0.14);
  color: #67e8f9;
}

.student-rank-pill.rank-hacker {
  border-color: rgba(0, 237, 155, 0.48);
  background: rgba(0, 237, 155, 0.15);
  color: #5eead4;
}

.student-rank-pill.rank-researcher {
  border-color: rgba(167, 139, 250, 0.48);
  background: rgba(167, 139, 250, 0.16);
  color: #c4b5fd;
}

.student-rank-pill.rank-operator {
  border-color: rgba(251, 146, 60, 0.5);
  background: rgba(251, 146, 60, 0.16);
  color: #fdba74;
}

.student-rank-pill.rank-architect {
  border-color: rgba(244, 114, 182, 0.5);
  background: rgba(244, 114, 182, 0.16);
  color: #f9a8d4;
}

.student-rank-pill.rank-elite {
  border-color: rgba(250, 204, 21, 0.58);
  background: rgba(250, 204, 21, 0.18);
  color: #fde047;
}

.topbar-rank-pill {
  flex-shrink: 0;
}

.topbar-rank-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  margin: 0 6px 8px;
  border-radius: 7px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.16);
  font-size: 11px;
  color: #94a3b8;
}

@media (max-width: 900px) {
  .topbar-rank-pill {
    display: none;
  }
}

.account-rank-meta {
  font-size: 12px;
  color: var(--muted);
  margin-left: 8px;
}

.rank-progression-card {
  margin: 22px 0 26px;
  padding: 22px;
  border-radius: 10px;
  border: 1px solid rgba(0, 237, 155, 0.28);
  background: linear-gradient(135deg, rgba(16, 26, 40, 0.96), rgba(11, 22, 34, 0.96));
  display: grid;
  gap: 18px;
}

.rank-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.rank-card-identity {
  display: grid;
  gap: 8px;
}

.rank-eyebrow {
  font: 700 10.5px var(--mono);
  letter-spacing: 0.12em;
  color: var(--green);
}

.rank-headline-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.rank-score-total {
  font: 700 20px var(--heading);
  color: var(--text);
}

.rank-labs-total {
  font-size: 13px;
  color: var(--muted);
}

.rank-tagline {
  font-size: 13.5px;
  color: var(--muted);
}

.rank-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.rank-meter-block {
  display: grid;
  gap: 8px;
}

.rank-meter-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.rank-meter-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.rank-meter-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #06c9e3, #00ed9b);
  transition: width 0.35s ease;
}

.rank-next-goal {
  font-size: 12.5px;
  color: var(--muted);
}

.rank-next-goal strong {
  color: var(--text);
}

.rank-ladder {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.rank-step {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 2px 8px;
  align-items: center;
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.45);
  min-width: 0;
}

.rank-step.unlocked {
  border-color: rgba(0, 237, 155, 0.28);
  background: rgba(0, 237, 155, 0.06);
}

.rank-step.current {
  border-color: var(--green);
  background: rgba(0, 237, 155, 0.13);
  box-shadow: 0 0 0 1px rgba(0, 237, 155, 0.2);
}

.rank-step.locked {
  opacity: 0.68;
}

.rank-step-dot {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.2);
  color: var(--text);
  font: 700 10.5px var(--mono);
}

.rank-step.unlocked .rank-step-dot,
.rank-step.current .rank-step-dot {
  background: var(--green);
  color: #04291c;
}

.rank-step-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-step-pts {
  font: 10.5px var(--mono);
  color: var(--muted);
}

@media (max-width: 960px) {
  .rank-ladder {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .rank-ladder {
    grid-template-columns: 1fr;
  }
}

:root[data-theme="light"] .rank-progression-card {
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border-color: #cbd5e1;
}

:root[data-theme="light"] .rank-step {
  background: #f8fafc;
}

:root[data-theme="light"] .rank-step.unlocked {
  background: #ecfdf5;
  border-color: #a7f3d0;
}

:root[data-theme="light"] .rank-step.current {
  background: #d1fae5;
  border-color: #127956;
}

:root[data-theme="light"] .rank-step.unlocked .rank-step-dot,
:root[data-theme="light"] .rank-step.current .rank-step-dot {
  background: #127956;
  color: #ffffff;
}

:root[data-theme="light"] .topbar-rank-summary {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #475569;
}

:root[data-theme="light"] .student-rank-pill.rank-noobie {
  background: #f1f5f9;
  color: #475569;
  border-color: #cbd5e1;
}

:root[data-theme="light"] .student-rank-pill.rank-script-kiddie {
  background: #e0f2fe;
  color: #0369a1;
  border-color: #7dd3fc;
}

:root[data-theme="light"] .student-rank-pill.rank-apprentice {
  background: #cffafe;
  color: #0e7490;
  border-color: #67e8f9;
}

:root[data-theme="light"] .student-rank-pill.rank-hacker {
  background: #d1fae5;
  color: #047857;
  border-color: #6ee7b7;
}

:root[data-theme="light"] .student-rank-pill.rank-researcher {
  background: #ede9fe;
  color: #6d28d9;
  border-color: #c4b5fd;
}

:root[data-theme="light"] .student-rank-pill.rank-operator {
  background: #ffedd5;
  color: #c2410c;
  border-color: #fdba74;
}

:root[data-theme="light"] .student-rank-pill.rank-architect {
  background: #fce7f3;
  color: #be185d;
  border-color: #f9a8d4;
}

:root[data-theme="light"] .student-rank-pill.rank-elite {
  background: #fef9c3;
  color: #a16207;
  border-color: #fde047;
}

/* =========================================================
   Admin User Growth Charts & Recent Signups Overview
   ========================================================= */
.admin-insights-panel {
  display: grid;
  gap: 18px;
  margin-bottom: 22px;
}

.insights-range-switch {
  display: inline-flex;
  gap: 6px;
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-kpi-card {
  padding: 15px 16px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.5);
  display: grid;
  gap: 4px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease, background-color 0.14s ease, box-shadow 0.14s ease;
}

.admin-kpi-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(18, 30, 52, 0.72);
}

.admin-kpi-card.is-active {
  border-color: var(--green);
  background: rgba(0, 237, 155, 0.08);
  box-shadow: 0 0 0 1px rgba(0, 237, 155, 0.25);
}

.admin-kpi-card span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.admin-kpi-card strong {
  font: 700 24px/1.15 var(--heading);
  color: var(--text);
}

.admin-kpi-card small {
  font-size: 11.5px;
  color: var(--muted);
}

.admin-kpi-card.accent-cyan strong { color: #38bdf8; }
.admin-kpi-card.accent-green strong { color: #00ed9b; }
.admin-kpi-card.accent-amber strong { color: #fbbf24; }

.insights-highlights-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.insight-highlight-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 8px;
  font-size: 12.5px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.45);
  color: var(--muted);
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.insight-highlight-pill:not(:disabled):hover {
  transform: translateY(-1px);
  border-color: rgba(56, 189, 248, 0.55);
}

.insight-highlight-pill.is-active {
  box-shadow: 0 0 0 1px var(--green);
  border-color: var(--green);
}

.insight-highlight-pill:disabled {
  cursor: default;
  opacity: 0.75;
}

.admin-tile-detail {
  border: 1px solid rgba(0, 237, 155, 0.32);
  border-radius: 9px;
  padding: 14px 16px;
  background: rgba(11, 22, 36, 0.82);
  display: grid;
  gap: 12px;
}

.admin-tile-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-tile-detail-head > div {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.chip-clear-btn {
  margin-left: 6px;
  font-weight: 700;
  color: inherit;
  cursor: pointer;
  padding: 0 3px;
}

.row-flash td {
  background: rgba(0, 237, 155, 0.14) !important;
  transition: background-color 0.3s ease;
}

:root[data-theme="light"] .admin-kpi-card:hover {
  background: #f1f5f9;
  border-color: #0284c7;
}

:root[data-theme="light"] .admin-kpi-card.is-active {
  background: #ecfdf5;
  border-color: #127956;
}

:root[data-theme="light"] .admin-tile-detail {
  background: #f8fafc;
  border-color: #6ee7b7;
}

.insight-highlight-pill strong {
  color: var(--text);
}

.insight-highlight-pill.peak {
  border-color: rgba(0, 237, 155, 0.32);
  background: rgba(0, 237, 155, 0.07);
}

.insight-highlight-pill.peak svg {
  color: var(--green);
}

.insight-highlight-pill.warn {
  border-color: rgba(245, 158, 11, 0.34);
  background: rgba(245, 158, 11, 0.08);
}

.insight-highlight-pill.warn svg {
  color: #fbbf24;
}

.admin-charts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-chart-card {
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 15px 16px;
  background: rgba(10, 17, 30, 0.72);
  display: grid;
  gap: 10px;
  min-width: 0;
}

.admin-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-chart-head h3 {
  font-size: 14.5px;
  margin: 0;
}

.chart-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--muted);
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  display: inline-block;
}

.legend-dot.reg { background: #10b981; }
.legend-dot.total { background: #38bdf8; border-radius: 50%; }
.legend-dot.renewed { background: #10b981; }
.legend-dot.notrenewed { background: #f59e0b; }

.admin-growth-svg {
  width: 100%;
  height: auto;
  display: block;
}

.chart-grid-line {
  stroke: rgba(148, 163, 184, 0.16);
  stroke-dasharray: 3 3;
}

.chart-axis-text {
  fill: #94a3b8;
  font: 10.5px var(--mono);
}

.chart-val-text {
  fill: #e2e8f0;
  font: 700 10px var(--mono);
}

.chart-val-warn {
  fill: #fbbf24;
  font: 700 10px var(--mono);
}

.chart-bar-reg {
  fill: rgba(16, 185, 129, 0.78);
  transition: fill 0.15s ease;
}

.chart-bar-reg.is-peak {
  fill: #00ed9b;
}

.chart-trend-line {
  stroke: #38bdf8;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-line-dot {
  fill: #38bdf8;
  stroke: #0a111e;
  stroke-width: 1.5;
}

.chart-bar-renewed {
  fill: #10b981;
}

.chart-bar-not-renewed {
  fill: #f59e0b;
}

.recent-registrations-block {
  display: grid;
  gap: 10px;
}

.recent-registrations-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.recent-registrations-head h3 {
  font-size: 15px;
  margin: 0;
}

.new-user-tag {
  color: #00ed9b !important;
  font-weight: 600;
}

.user-row-course-badge {
  margin-top: 5px;
}

.account-status.warning {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.42);
  color: #fde68a;
}

@media (max-width: 1020px) {
  .admin-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-charts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .admin-kpi-grid {
    grid-template-columns: 1fr;
  }
}

:root[data-theme="light"] .admin-kpi-card {
  background: #f8fafc;
}

:root[data-theme="light"] .admin-kpi-card.accent-cyan strong { color: #0284c7; }
:root[data-theme="light"] .admin-kpi-card.accent-green strong { color: #059669; }
:root[data-theme="light"] .admin-kpi-card.accent-amber strong { color: #d97706; }

:root[data-theme="light"] .admin-chart-card {
  background: #ffffff;
}

:root[data-theme="light"] .chart-grid-line {
  stroke: rgba(15, 23, 42, 0.12);
}

:root[data-theme="light"] .chart-axis-text {
  fill: #475569;
}

:root[data-theme="light"] .chart-val-text {
  fill: #0f172a;
}

:root[data-theme="light"] .chart-val-warn {
  fill: #b45309;
}

:root[data-theme="light"] .chart-line-dot {
  stroke: #ffffff;
}

:root[data-theme="light"] .new-user-tag {
  color: #047857 !important;
}

:root[data-theme="light"] .account-status.warning {
  background: #fef3c7;
  border-color: #fcd34d;
  color: #92400e;
}

.otp-phone-box {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 9px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  background: rgba(15, 23, 42, 0.45);
}

.otp-phone-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.otp-send-btn {
  margin-top: 25px;
  min-height: 41px;
  white-space: nowrap;
}

.otp-status-ok {
  color: #5eead4 !important;
  font-weight: 500;
}

.otp-status-err {
  color: #fda4af !important;
  font-weight: 600;
}

.otp-preview-code {
  font-family: var(--mono);
  letter-spacing: 0.08em;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(0, 237, 155, 0.16);
  color: #a7f3d0;
}

@media (max-width: 540px) {
  .otp-phone-row {
    grid-template-columns: 1fr;
  }
  .otp-send-btn {
    margin-top: 0;
  }
}

:root[data-theme="light"] .otp-phone-box {
  background: #f8fafc;
  border-color: #bae6fd;
}

:root[data-theme="light"] .otp-status-ok {
  color: #047857 !important;
}

:root[data-theme="light"] .otp-status-err {
  color: #be123c !important;
}

:root[data-theme="light"] .otp-preview-code {
  background: #d1fae5;
  color: #065f46;
}
