:root{--bg:#f5f7fc;--surface:#fff;--ink:#17213b;--muted:#77819a;--line:#e7ebf4;--primary:#635bff;--primary2:#8b5cf6;--green:#15966b;--red:#d84c68;--shadow:0 16px 48px rgba(36,48,92,.07)}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:28px}body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.6 Manrope,Inter,system-ui,-apple-system,sans-serif}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}.app-shell{min-height:100vh}.sidebar{width:258px;position:fixed;inset:0 auto 0 0;background:#11182d;color:#dfe5f9;padding:28px 18px;display:flex;flex-direction:column;z-index:5}.brand{display:flex;align-items:center;gap:11px;font-size:14px;font-weight:800;letter-spacing:.04em;padding:0 8px 32px}.brand b{color:#fff}.brand small{display:block;font-size:8px;letter-spacing:.16em;color:#8590b2;margin-top:3px}.brand-mark{width:42px;height:42px;display:grid;place-items:center;border-radius:14px;background:linear-gradient(135deg,#786dff,#9b5bfa);font-size:23px;color:#fff;box-shadow:0 8px 24px #655bff55}.sidebar nav{display:grid;gap:6px}.sidebar nav a{padding:12px 13px;border-radius:12px;color:#aab4d0;display:flex;align-items:center;gap:13px;font-size:13px;font-weight:700;transition:.2s}.sidebar nav a span{font-size:20px;width:20px;text-align:center}.sidebar nav a:hover,.sidebar nav a.active{background:linear-gradient(90deg,#635bff35,#635bff12);color:#fff}.sidebar nav a.active{box-shadow:inset 3px 0 #8d7dff}.nav-caption{font-size:9px;letter-spacing:.16em;color:#677394;font-weight:800;margin:24px 13px 5px}.sidebar-bottom{margin-top:auto}.secure-badge{display:flex;gap:10px;padding:13px;background:#ffffff0b;border:1px solid #ffffff12;border-radius:13px;align-items:center}.secure-badge>span{color:#9c90ff;font-size:22px}.secure-badge b,.secure-badge small{display:block}.secure-badge b{font-size:10px}.secure-badge small{font-size:10px;color:#8792b1;margin-top:3px}.sidebar-logout{display:block;font-size:12px;color:#9da8c5;padding:17px 10px 0}.main-area{margin-left:258px;min-height:100vh;display:flex;flex-direction:column}.topbar{height:78px;background:#ffffffdb;backdrop-filter:blur(14px);border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 clamp(22px,4vw,56px);gap:20px;position:sticky;top:0;z-index:4}.topbar-spacer{flex:1}.top-user{display:flex;align-items:center;gap:10px}.top-user b,.top-user small{display:block}.top-user b{font-size:12px}.top-user small{font-size:10px;color:var(--muted)}.mobile-brand{display:none}.avatar{width:38px;height:38px;border-radius:50%;object-fit:cover;display:inline-grid;place-items:center;flex-shrink:0;border:2px solid white;box-shadow:0 0 0 1px #e5e7f3}.avatar-large{width:78px;height:78px}.avatar-fallback{background:linear-gradient(135deg,#e0ddff,#c3e8ff);color:#5147c8;font-weight:800;font-size:17px}.page-content{width:100%;max-width:1480px;margin:0 auto;padding:30px clamp(22px,4vw,56px) 50px}.welcome-hero,.admin-welcome{position:relative;overflow:hidden;min-height:270px;border-radius:24px;background:linear-gradient(115deg,#171e3b 0%,#252b59 52%,#584cbb 100%);color:white;padding:40px 42px;display:flex;align-items:center;justify-content:space-between;box-shadow:0 20px 50px #272b6226}.welcome-hero:after,.admin-welcome:after{content:"";position:absolute;width:340px;height:340px;border-radius:50%;border:1px solid #ffffff16;right:10%;top:-200px;box-shadow:0 0 0 35px #ffffff05,0 0 0 70px #ffffff04}.hero-copy{position:relative;z-index:1;max-width:620px}.eyebrow{font-size:10px;font-weight:800;letter-spacing:.14em;color:#8780ff;display:flex;align-items:center;gap:8px}.welcome-hero .eyebrow,.admin-welcome .eyebrow{color:#b8b4ff}.pulse-dot{display:inline-block;width:7px;height:7px;background:#58e4b5;border-radius:50%;box-shadow:0 0 0 4px #58e4b51b}.welcome-hero h1,.admin-welcome h1{font-size:clamp(30px,3vw,43px);line-height:1.15;letter-spacing:-.04em;margin:15px 0 12px}.welcome-hero p,.admin-welcome p{color:#c3c8e4;font-size:13px;max-width:500px;margin:0}.hero-actions{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-top:27px}.button{border:0;border-radius:11px;padding:13px 18px;display:inline-flex;align-items:center;justify-content:center;gap:15px;background:linear-gradient(120deg,#6c63ff,#8b5cf6);color:white;font-weight:800;font-size:12px;cursor:pointer;box-shadow:0 8px 18px #655bff30;transition:transform .18s,box-shadow .18s}.button:hover{transform:translateY(-1px);box-shadow:0 12px 24px #655bff40}.button span{font-size:17px}.button-small{padding:10px 14px;font-size:11px}.button-light{background:#f0efff;color:#5c52dd;box-shadow:none}.button-danger{background:#fff0f2;color:#ca4059;box-shadow:none}.button-success{background:#e4f8ef;color:#0b875c;box-shadow:none}.button-disabled{background:#727991;box-shadow:none;cursor:not-allowed}.hero-note{font-size:10px;color:#c0c5df;display:flex;gap:7px;align-items:center}.shield-icon{color:#80e6c2}.hero-art{width:300px;height:220px;position:relative;flex-shrink:0;margin-right:3%;z-index:1}.art-orbit{position:absolute;border:1px solid #ffffff29;border-radius:50%;width:230px;height:230px;left:28px;top:-4px}.orbit-two{width:175px;height:175px;left:56px;top:24px;border-style:dashed}.art-card{position:absolute;border-radius:16px;box-shadow:0 20px 45px #080b243d}.art-card-back{width:175px;height:120px;right:5px;top:22px;background:#ffffff16;border:1px solid #ffffff30;transform:rotate(10deg);padding:18px;color:#c7c2ff;font-size:24px}.art-card-back span{display:block;font-size:8px;letter-spacing:.2em}.art-card-main{width:190px;height:154px;left:30px;top:38px;background:linear-gradient(145deg,#fff,#e8eaff);padding:18px;color:#222b52;transform:rotate(-5deg)}.art-check{width:39px;height:39px;border-radius:12px;background:linear-gradient(135deg,#766bff,#aa6df8);display:grid;place-items:center;color:white;font-size:24px}.art-lines{display:grid;gap:6px;margin-top:13px}.art-lines i{height:5px;background:#dce0f4;border-radius:8px;width:90%}.art-lines i:nth-child(2){width:65%}.art-lines i:nth-child(3){width:78%}.art-score{position:absolute;right:17px;bottom:16px;font-weight:800;color:#635bff;font-size:15px}.art-score small{display:block;font-size:6px;letter-spacing:.1em;color:#8d95b0}.art-spark{position:absolute;color:#e6d7ff;font-size:27px}.spark-one{right:1px;bottom:17px}.spark-two{left:4px;top:0}.profile-card,.panel,.test-card,.login-card,.settings-card,.editor-panel,.admin-control-card,.detail-summary{background:var(--surface);border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow)}.profile-card{margin-top:22px;padding:24px 28px;display:flex;align-items:center;justify-content:space-between;gap:24px}.profile-main{display:flex;align-items:center;gap:17px}.profile-main h2{font-size:19px;margin:4px 0 1px;letter-spacing:-.03em}.profile-main p{font-size:11px;color:var(--muted);margin:0}.readonly-note{display:block;margin-top:7px;font-size:10px;color:#8982d9}.profile-stats{display:flex;gap:30px}.profile-stats div{display:grid;gap:1px;min-width:70px}.profile-stats strong{font-size:22px;letter-spacing:-.04em}.profile-stats span{font-size:10px;color:var(--muted)}.section-block{margin-top:38px}.section-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:18px}.section-heading h2{font-size:24px;letter-spacing:-.04em;margin:5px 0 3px}.section-heading p{font-size:12px;color:var(--muted);margin:0}.status-pill,.question-count,.role-pill{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border-radius:9px;font-size:10px;font-weight:800;white-space:nowrap}.status-open{background:#e8f8f0;color:#12845d}.status-open i{width:6px;height:6px;border-radius:50%;background:#20b67b}.status-closed{background:#fff0f2;color:#c9435d}.question-count{background:#f0efff;color:#6258d9}.test-card{padding:27px 30px}.test-card-head{display:flex;align-items:center;justify-content:space-between;gap:20px}.test-card-head h3{font-size:19px;margin:5px 0}.test-progress{height:5px;background:#edf0f8;border-radius:8px;overflow:hidden;margin-top:22px}.test-progress span{height:100%;width:0;display:block;background:linear-gradient(90deg,#655bff,#a16bff);transition:width .2s}.progress-label{display:flex;justify-content:space-between;color:var(--muted);font-size:10px;margin:8px 0 20px}.question-card{border:0;border-top:1px solid var(--line);padding:23px 0 20px;margin:0;min-width:0}.question-card legend{padding:0;width:100%;display:flex;align-items:flex-start;gap:13px;font-weight:800;font-size:14px;line-height:1.6}.question-index{width:34px;height:34px;flex-shrink:0;display:inline-grid;place-items:center;border-radius:10px;background:#f0efff;color:#6459e7;font-size:11px;font-weight:800}.answer-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:17px 0 0 47px}.answer-option{display:flex;align-items:center;gap:10px;min-height:49px;border:1px solid #e7eaf4;border-radius:11px;padding:10px 12px;cursor:pointer;transition:.15s}.answer-option:hover{border-color:#b4adff;background:#fbfaff}.answer-option input{position:absolute;opacity:0;pointer-events:none}.radio-custom{width:16px;height:16px;border:1.5px solid #c9cfe0;border-radius:50%;flex-shrink:0;position:relative}.answer-option input:checked~.radio-custom{border-color:#675bff;background:#675bff;box-shadow:inset 0 0 0 4px white}.answer-option:has(input:checked){border-color:#8d83ff;background:#f7f6ff}.answer-text{font-size:11px;font-weight:600;flex:1}.answer-check{opacity:0;color:#665cff}.answer-option input:checked~.answer-check{opacity:1}.submit-row{display:flex;justify-content:space-between;align-items:center;gap:20px;border-top:1px solid var(--line);padding-top:22px;margin-top:6px}.submit-row b,.submit-row small{display:block}.submit-row b{font-size:12px}.submit-row small{font-size:10px;color:var(--muted);margin-top:3px}.results-list{display:grid;gap:9px}.result-row{display:flex;align-items:center;gap:14px;padding:16px 18px;background:#fff;border:1px solid var(--line);border-radius:14px}.result-row-icon{width:39px;height:39px;border-radius:12px;background:#f0efff;color:#665bff;display:grid;place-items:center;font-size:20px}.result-row-main{display:grid;gap:3px;flex:1}.result-row-main b{font-size:12px}.result-row-main span,.result-score span{font-size:10px;color:var(--muted)}.result-score{text-align:right;display:grid;gap:2px;margin-right:8px}.result-score b{font-size:15px}.icon-link{width:33px;height:33px;border-radius:10px;background:#f6f7fb;display:grid;place-items:center;color:#655bff;font-size:18px}.empty-state{padding:38px 24px;text-align:center;background:#fff;border:1px dashed #dfe3ef;border-radius:18px}.empty-state h3{font-size:17px;margin:8px 0}.empty-state p{max-width:500px;margin:0 auto;color:var(--muted);font-size:12px}.empty-state.compact{padding:28px}.empty-illustration{font-size:36px;color:#8e85ff}.login-card{margin-top:24px;padding:32px;display:grid;grid-template-columns:220px 1fr;gap:30px;align-items:center}.login-card h2{font-size:25px;letter-spacing:-.04em;margin:8px 0}.login-card p{color:var(--muted);font-size:12px;max-width:600px;margin:0 0 19px}.login-illustration{height:175px;border-radius:17px;background:linear-gradient(135deg,#e9e7ff,#e0f2ff);display:grid;place-items:center;position:relative;overflow:hidden}.login-illustration-icon{width:72px;height:72px;border-radius:22px;background:linear-gradient(135deg,#7065ff,#9b68fa);display:grid;place-items:center;color:#fff;font-size:39px;box-shadow:0 15px 25px #6b61ff45}.login-illustration-lines{position:absolute;bottom:20px;display:flex;gap:5px}.login-illustration-lines i{height:4px;width:25px;border-radius:6px;background:#b9b3ff}.login-illustration-lines i:nth-child(2){width:43px;background:#b4dfff}.block-note{display:block;margin-top:12px}.muted{color:var(--muted)}.alert{border-radius:12px;padding:13px 16px;font-size:12px;margin-top:18px}.alert-error{background:#fff0f2;color:#b8324c;border:1px solid #ffdce2}.alert-success{background:#eaf9f1;color:#107c56;border:1px solid #c9f0dd}.result-banner{display:flex;align-items:center;gap:18px;padding:20px 24px;margin-top:20px;background:#eaf9f1;border:1px solid #c9f0dd;border-radius:16px}.result-icon{width:44px;height:44px;border-radius:14px;background:#c9f3df;color:#12845d;display:grid;place-items:center;font-size:25px}.result-banner h2{margin:3px 0;font-size:18px}.result-banner p{margin:0;color:#5a8a77;font-size:11px}.result-banner .button{margin-left:auto}.footer{padding:20px clamp(22px,4vw,56px) 24px;color:#9ba3b7;font-size:10px}.footer span{padding:0 7px;color:#c0c5d2}.admin-welcome{min-height:220px;padding:32px 38px}.admin-welcome h1{font-size:34px}.admin-welcome-art{width:180px;height:150px;position:relative;display:grid;place-items:center;color:#d2cbff;font-size:55px}.admin-art-ring{position:absolute;width:140px;height:140px;border:1px solid #ffffff35;border-radius:45px;transform:rotate(25deg)}.ring-two{width:110px;height:110px;border-style:dashed;transform:rotate(-20deg)}.admin-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:20px}.stat-card{padding:18px;background:white;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow)}.stat-icon{width:36px;height:36px;border-radius:11px;display:grid;place-items:center;font-size:19px;margin-bottom:14px}.stat-icon.purple{background:#efedff;color:#665bff}.stat-icon.green{background:#e5f8ef;color:#15966b}.stat-icon.blue{background:#e6f3ff;color:#368bd2}.stat-icon.amber{background:#fff3df;color:#d18b23}.stat-card>span,.stat-card>small{display:block;color:var(--muted);font-size:10px}.stat-card strong{display:block;font-size:27px;letter-spacing:-.05em;margin:2px 0}.stat-card small{font-size:9px}.admin-control-card{margin-top:18px;padding:20px 23px;display:flex;align-items:center;justify-content:space-between;gap:20px}.control-copy{display:flex;align-items:center;gap:14px}.control-icon{width:45px;height:45px;display:grid;place-items:center;background:#f1efff;color:#665bff;border-radius:14px;font-size:23px}.control-copy h2{font-size:17px;margin:4px 0}.control-copy p{font-size:11px;color:var(--muted);margin:0}.admin-tabs{display:flex;gap:7px;overflow-x:auto;padding:8px;background:#eceff7;border-radius:12px;margin-top:30px}.admin-tabs a{white-space:nowrap;padding:10px 14px;border-radius:9px;font-size:11px;font-weight:800;color:#6e7890}.admin-tabs a:hover{background:#fff;color:#5f56e6}.filter-bar{display:flex;gap:9px;margin:0 0 14px}.search-field{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:0 12px;flex:1;color:#8b93a9}.search-field input{border:0;outline:0;min-width:0;width:100%;padding:11px 0;font-size:11px;background:transparent}.filter-bar select,.settings-card input,.settings-card textarea,.add-admin-form input,.edit-question input,.edit-question textarea,.edit-question select{border:1px solid #e3e7f1;border-radius:10px;padding:11px 12px;background:#fff;color:var(--ink);outline:none;width:100%;font-size:11px}.filter-bar select{width:auto;min-width:135px}.search-field:focus-within,.settings-card input:focus,.settings-card textarea:focus,.add-admin-form input:focus,.edit-question input:focus,.edit-question textarea:focus,.edit-question select:focus{border-color:#9e96ff;box-shadow:0 0 0 3px #6c63ff12}.table-wrap{overflow-x:auto;background:#fff;border:1px solid var(--line);border-radius:15px}.data-table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}.data-table th{background:#fafbfe;color:#929bb0;font-size:9px;letter-spacing:.08em;text-transform:uppercase;padding:13px 15px;font-weight:800}.data-table td{border-top:1px solid #eff1f7;padding:13px 15px;font-size:10px}.candidate-cell{display:flex;align-items:center;gap:10px}.candidate-cell .avatar{width:34px;height:34px}.candidate-cell b,.candidate-cell small{display:block}.candidate-cell b{font-size:11px}.candidate-cell small{font-size:9px;color:var(--muted);margin-top:2px}.mini-progress{height:4px;width:80px;background:#edf0f8;border-radius:8px;overflow:hidden;margin-top:5px}.mini-progress span{height:100%;display:block;background:linear-gradient(90deg,#665bff,#a06aff)}.table-empty{text-align:center;color:var(--muted);padding:35px!important}.editor-panel{padding:22px}.edit-question{border:1px solid var(--line);border-radius:14px;padding:18px;margin-bottom:13px;background:#fcfcff}.edit-q-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.remove-question{border:0;background:#fff0f2;color:#c7475e;border-radius:8px;padding:7px 10px;font-size:10px;font-weight:800;cursor:pointer}.edit-question label,.settings-card label,.add-admin-form label{display:grid;gap:7px;font-size:11px;font-weight:800;margin-bottom:14px}.edit-question label small,.settings-card label small,.add-admin-form label small{font-size:9px;font-weight:500;color:var(--muted)}.edit-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:15px}.edit-question textarea{resize:vertical;line-height:1.6}.editor-actions{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:17px}.editor-note{font-size:10px;color:var(--muted);margin:14px 0 0}.settings-card{padding:23px;max-width:760px}.settings-card label{max-width:100%}.settings-card input[type=number]{max-width:200px}.settings-card textarea{resize:vertical}.add-admin-form{padding:20px;background:#fff;border:1px solid var(--line);border-radius:15px;display:grid;grid-template-columns:1fr 1fr auto;align-items:end;gap:13px}.add-admin-form label{margin:0}.add-admin-form .button{height:40px;white-space:nowrap}.admin-team{margin-top:12px;background:#fff;border:1px solid var(--line);border-radius:15px;overflow:hidden}.team-row{display:flex;align-items:center;gap:12px;padding:13px 16px;border-bottom:1px solid #f0f2f7}.team-row:last-child{border-bottom:0}.team-row-name{display:grid;flex:1;gap:2px}.team-row-name b{font-size:11px}.team-row-name small{font-size:9px;color:var(--muted)}.role-pill{background:#f0efff;color:#6459db;font-size:9px}.detail-hero{background:linear-gradient(115deg,#171e3b,#33366f,#6356c4);color:#fff;border-radius:21px;padding:27px 32px}.back-link{font-size:11px;color:#cbc9ff}.detail-title-row{display:flex;align-items:center;justify-content:space-between;gap:25px;margin-top:18px}.detail-title-row h1{font-size:29px;letter-spacing:-.04em;margin:7px 0}.detail-title-row p{font-size:11px;color:#c6c9e5;margin:0}.score-circle{width:104px;height:104px;border-radius:50%;background:conic-gradient(#81e7bf var(--score),#ffffff25 0);display:grid;place-items:center;flex-shrink:0}.score-circle>div{width:84px;height:84px;border-radius:50%;background:#292f61;display:grid;align-content:center;justify-items:center}.score-circle b{font-size:22px}.score-circle small{font-size:7px;letter-spacing:.1em;color:#c2c8e7}.detail-summary{display:grid;grid-template-columns:repeat(3,1fr);padding:19px 24px;margin-top:14px}.detail-summary>div{padding:0 18px;border-right:1px solid var(--line);display:grid;gap:4px}.detail-summary>div:first-child{padding-left:0}.detail-summary>div:last-child{border:0}.detail-summary span{font-size:10px;color:var(--muted)}.detail-summary strong{font-size:20px}.detail-summary strong small{font-size:12px;color:var(--muted)}.summary-status{color:#15966b;font-size:14px!important}.review-card{background:#fff;border:1px solid var(--line);border-radius:15px;padding:20px 22px;margin-bottom:12px}.review-head{display:flex;justify-content:space-between;align-items:center}.review-card h3{font-size:14px;margin:13px 0 17px}.review-answer{display:grid;gap:5px;padding:12px 14px;border-radius:10px;margin-top:8px}.review-answer small{font-size:8px;letter-spacing:.1em;font-weight:800}.review-answer b{font-size:11px}.answer-good{background:#eaf9f1;color:#147d59}.answer-bad{background:#fff0f2;color:#bd3e55}.answer-correct{background:#f0efff;color:#5e55d7}.footer{margin-top:auto}.admin-footer{display:none}@media(max-width:1150px){.sidebar{width:220px}.main-area{margin-left:220px}.hero-art{transform:scale(.85);margin-right:-2%}.admin-stats{grid-template-columns:repeat(2,1fr)}.profile-card{align-items:flex-start;flex-direction:column}.profile-stats{width:100%;justify-content:space-between;border-top:1px solid var(--line);padding-top:17px}}@media(max-width:800px){.sidebar{width:70px;padding:20px 10px}.brand{padding:0 4px 27px}.brand>span:last-child,.sidebar nav a:not(.active){} .brand-mark{width:43px;min-width:43px}.brand>span:last-child{display:none}.sidebar nav a{justify-content:center;padding:12px 4px;font-size:0}.sidebar nav a span{font-size:21px}.nav-caption,.secure-badge,.sidebar-logout{display:none}.main-area{margin-left:70px}.page-content{padding:20px 17px 35px}.topbar{height:64px;padding:0 18px}.mobile-brand{display:block;font-size:12px;font-weight:800}.top-user span:not(.avatar){display:none}.welcome-hero{padding:28px 24px;min-height:250px}.hero-art{position:absolute;right:-60px;bottom:-60px;opacity:.25;transform:scale(.8)}.hero-copy{max-width:100%}.welcome-hero h1{font-size:31px}.hero-note{width:100%}.answer-options{grid-template-columns:1fr;margin-left:0}.test-card{padding:20px 17px}.question-card legend{font-size:13px}.profile-card{padding:20px}.profile-main{align-items:flex-start}.profile-stats{gap:10px}.profile-stats strong{font-size:18px}.login-card{grid-template-columns:1fr;padding:22px}.login-illustration{height:120px}.admin-welcome{padding:25px 22px;min-height:190px}.admin-welcome h1{font-size:27px}.admin-welcome-art{position:absolute;right:-40px;opacity:.25}.admin-control-card{align-items:flex-start;flex-direction:column}.admin-stats{gap:9px}.stat-card{padding:14px}.stat-card strong{font-size:24px}.filter-bar{flex-wrap:wrap}.search-field{flex-basis:100%}.filter-bar select{flex:1}.edit-grid,.add-admin-form{grid-template-columns:1fr}.add-admin-form .button{width:100%}.result-banner{align-items:flex-start;flex-wrap:wrap}.result-banner .button{margin-left:0}.section-heading{align-items:flex-start;flex-direction:column}.detail-hero{padding:22px}.detail-title-row h1{font-size:23px}.score-circle{width:80px;height:80px}.score-circle>div{width:64px;height:64px}.score-circle b{font-size:17px}.detail-summary{padding:15px 10px}.detail-summary>div{padding:0 10px}.detail-summary strong{font-size:16px}.result-row{gap:9px;padding:12px}.result-row .status-pill{display:none}.result-score{margin-left:auto}.result-row-icon{width:32px;height:32px}.submit-row{align-items:flex-start;flex-direction:column}.submit-row .button{width:100%}}@media(max-width:430px){.hero-actions{align-items:flex-start;flex-direction:column}.profile-main h2{font-size:16px}.avatar-large{width:58px;height:58px}.profile-stats span{font-size:9px}.profile-stats strong{font-size:16px}.admin-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-tabs a{padding:9px;font-size:10px}.question-count{font-size:9px}.progress-label span:last-child{display:none}.detail-summary{grid-template-columns:1fr;gap:12px}.detail-summary>div{border-right:0;border-bottom:1px solid var(--line);padding:0 0 10px}.detail-summary>div:last-child{border-bottom:0;padding-bottom:0}}

/* Переключатель темы */
.theme-toggle{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:11px;padding:9px 12px;font-size:11px;font-weight:800;cursor:pointer;white-space:nowrap;transition:background .2s,border-color .2s}
.theme-toggle-icon{font-size:16px;line-height:1}
/* Тёмная тема: сохраняет акцентные фиолетовые элементы и делает поверхности контрастными */
body[data-theme="dark"]{--bg:#0d1220;--surface:#151c2d;--ink:#e9edfb;--muted:#9ba6c2;--line:#2a344b;--shadow:0 16px 48px rgba(0,0,0,.22);background:var(--bg);color:var(--ink)}
body[data-theme="dark"] .topbar{background:#111827e8;border-color:var(--line)}
body[data-theme="dark"] .profile-card,body[data-theme="dark"] .panel,body[data-theme="dark"] .test-card,body[data-theme="dark"] .login-card,body[data-theme="dark"] .settings-card,body[data-theme="dark"] .editor-panel,body[data-theme="dark"] .admin-control-card,body[data-theme="dark"] .detail-summary,body[data-theme="dark"] .stat-card,body[data-theme="dark"] .table-wrap,body[data-theme="dark"] .admin-team,body[data-theme="dark"] .review-card,body[data-theme="dark"] .add-admin-form{background:var(--surface);border-color:var(--line);color:var(--ink)}
body[data-theme="dark"] .question-card,body[data-theme="dark"] .result-row,body[data-theme="dark"] .empty-state,body[data-theme="dark"] .result-banner{background:#151c2d;border-color:var(--line);color:var(--ink)}
body[data-theme="dark"] .answer-option{background:#1b2438;border-color:#303b55;color:var(--ink)}
body[data-theme="dark"] .answer-option:hover,body[data-theme="dark"] .answer-option:has(input:checked){background:#28264b;border-color:#7770ff}
body[data-theme="dark"] .filter-bar select,body[data-theme="dark"] .settings-card input,body[data-theme="dark"] .settings-card textarea,body[data-theme="dark"] .add-admin-form input,body[data-theme="dark"] .edit-question input,body[data-theme="dark"] .edit-question textarea,body[data-theme="dark"] .edit-question select,body[data-theme="dark"] .search-field,body[data-theme="dark"] .search-field input{background:#101727;color:var(--ink);border-color:var(--line)}
body[data-theme="dark"] .data-table th{background:#101727;color:#aab4d0}body[data-theme="dark"] .data-table td,body[data-theme="dark"] .team-row{border-color:var(--line)}
body[data-theme="dark"] .edit-question,body[data-theme="dark"] .admin-tabs{background:#101727;border-color:var(--line)}
body[data-theme="dark"] .admin-tabs a{color:#aeb8d2}body[data-theme="dark"] .admin-tabs a:hover{background:#252d43;color:#fff}
body[data-theme="dark"] .theme-toggle{background:#222b40;border-color:#39445e;color:#f5f6ff}
body[data-theme="dark"] .status-open{background:#12372f;color:#79e3b8}body[data-theme="dark"] .status-closed{background:#3d202c;color:#ff9caf}body[data-theme="dark"] .question-count,body[data-theme="dark"] .role-pill{background:#29264c;color:#c3bdff}
body[data-theme="dark"] .button-light{background:#29264c;color:#d0cbff}body[data-theme="dark"] .button-success{background:#12372f;color:#79e3b8}body[data-theme="dark"] .button-danger{background:#3d202c;color:#ff9caf}
body[data-theme="dark"] .review-answer.answer-good{background:#12372f;color:#9aeac8}body[data-theme="dark"] .review-answer.answer-bad{background:#3d202c;color:#ff9caf}body[data-theme="dark"] .review-answer.answer-correct{background:#29264c;color:#d0cbff}
body[data-theme="dark"] .mini-progress{background:#2b354b}body[data-theme="dark"] .avatar{border-color:#151c2d;box-shadow:0 0 0 1px #39445e}
@media(max-width:800px){.theme-toggle{padding:8px 9px}.theme-toggle-label{display:none}}

/* SAINT profile setup and VK/forum identity */
.profile-settings-form{max-width:820px;display:grid;gap:14px;background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:22px}
.profile-settings-form label{display:grid;gap:8px;font-size:12px;font-weight:800;color:var(--ink);margin:0}
.profile-settings-form label small{font-size:10px;font-weight:500;color:var(--muted);line-height:1.5}
.profile-settings-form input{width:100%;min-width:0;border:1px solid var(--line);border-radius:11px;padding:13px 14px;background:var(--surface-2,var(--surface));color:var(--ink);outline:none;font:inherit;font-size:13px}
.profile-settings-form input:focus{border-color:#8175ff;box-shadow:0 0 0 3px #8175ff24}
.profile-settings-form input[readonly]{opacity:.75;cursor:not-allowed}
.profile-settings-form .button{justify-self:start}
.profile-required-note{margin:16px 0}
.team-row>.avatar,.team-row>img.avatar{width:42px;height:42px;object-fit:cover;border-radius:50%;flex:0 0 42px}
@media(max-width:600px){.profile-settings-form{padding:16px}.profile-settings-form .button{width:100%;justify-content:center}}

/* SAINT social profile links and role selector */
.profile-social-link{display:inline-flex;align-items:center;gap:6px;color:#93baff;text-decoration:none;transition:color .18s ease}.profile-social-link:hover{color:#b7a3ff;text-decoration:underline}.vk-brand-icon,.forum-brand-icon{display:inline-flex;align-items:center;justify-content:center;width:17px;height:17px;border-radius:5px;font-size:10px;font-weight:800;line-height:1;background:linear-gradient(135deg,#2787f5,#1762b7);color:#fff}.forum-brand-icon{background:linear-gradient(135deg,#7760ff,#4934b8);font-size:11px}.add-admin-form select{width:100%;min-height:42px;padding:11px 36px 11px 13px;border:1px solid var(--border,#2b3650);border-radius:12px;background-color:var(--input-bg,#101728);color:var(--text,#f3f5ff);font:inherit;outline:none;color-scheme:dark;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a99aff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 13px center}.add-admin-form select:focus{border-color:#8064ff;box-shadow:0 0 0 3px #8064ff26}.add-admin-form option{background:#151d30;color:#f3f5ff}

/* Social shortcuts beside staff role badge */
.team-social-icons{display:flex;align-items:center;gap:8px;margin-left:auto;flex-shrink:0}.team-social-icon{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;border-radius:10px;border:1px solid #2b3650;background:#111827;color:#aabfff;transition:transform .18s ease,border-color .18s ease,background .18s ease,color .18s ease}.team-social-icon svg{width:18px;height:18px;fill:currentColor}.team-social-icon:hover{transform:translateY(-2px);border-color:#7768ff;background:#252044;color:#fff}.forum-icon-link svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.team-row .role-pill{margin-left:2px}.team-row form{margin:0}@media(max-width:600px){.team-row{gap:8px;padding:11px 10px}.team-social-icons{gap:5px}.team-social-icon{width:30px;height:30px}.team-social-icon svg{width:16px;height:16px}.team-row .role-pill{white-space:normal;text-align:center;max-width:112px}}


/* SAINT professional single-page navigation */
:root{--bg:#0b1222;--surface:#121c30;--ink:#edf3ff;--muted:#91a2c2;--line:#263550;--primary:#8171ff;--primary2:#5c54e8;--shadow:0 18px 45px rgba(0,0,0,.18)}
html{scroll-behavior:smooth;scroll-padding-top:28px}
body{background:var(--bg);color:var(--ink)}
.sidebar{width:258px;background:#0e1729;border-right:1px solid #22304a;padding:26px 16px 18px}
.brand{padding:0 8px 24px;border-bottom:1px solid #24324b;margin-bottom:18px;letter-spacing:.02em;font-size:13px}
.brand b{display:block;font-weight:800;line-height:1.35}
.brand small{font-size:9px;letter-spacing:.13em;color:#7f9bd0}
.brand .site-logo{width:38px;height:38px}
.sidebar nav{gap:5px}
.sidebar nav a{min-height:44px;padding:11px 13px;border-radius:10px;color:#b3c2df;font-size:14px;font-weight:600;transition:background .18s,color .18s,transform .18s}
.sidebar nav a>span{width:20px;display:inline-flex;justify-content:center;color:#8fa9df;font-size:18px}
.sidebar nav a:hover{background:#172440;color:#fff;transform:translateX(2px)}
.sidebar nav a.active{background:linear-gradient(100deg,#28256a,#1a2347);box-shadow:inset 3px 0 #8c7bff;color:#fff}
.sidebar nav a.active>span{color:#a99cff}
.nav-caption{font-size:10px;letter-spacing:.15em;color:#728bb9;font-weight:800;margin:22px 10px 7px}
.sidebar-bottom{margin-top:auto;padding-top:22px}
.secure-badge{border:1px solid #303d65;border-radius:14px;padding:13px 12px;background:linear-gradient(145deg,#141f38,#10192c);display:flex;align-items:center;gap:11px}
.secure-badge>span{width:34px;height:34px;border-radius:10px;background:#25235a;color:#a79aff;display:grid;place-items:center;font-size:20px;flex-shrink:0}
.secure-badge b{font-size:11px;color:#eef2ff;letter-spacing:.04em}
.secure-badge small{display:block;font-size:10px;line-height:1.45;color:#879cc4;margin-top:3px}
.sidebar-logout{font-size:12px;color:#a5b5d3;margin-top:13px;padding:10px 12px}
.main-area{margin-left:258px}
.topbar{background:rgba(11,18,34,.88);border-bottom:1px solid #1d2a42;backdrop-filter:blur(14px)}
.page-content{max-width:1180px;padding:30px 34px 56px}
.welcome-hero,.section-block,.profile-card,.panel-card,.result-banner,.login-card{background:var(--surface);border:1px solid var(--line);box-shadow:none;border-radius:16px;color:var(--ink)}
.welcome-hero{scroll-margin-top:22px}
.section-block{padding:24px;margin-top:22px;scroll-margin-top:22px}
.section-heading h2,.welcome-hero h1{color:#f4f7ff}
.section-heading p,.welcome-hero p,.muted{color:var(--muted)}
.eyebrow{color:#8e9dff;letter-spacing:.13em}
.button{background:linear-gradient(110deg,#6f63f6,#8b5cf6);border:0;border-radius:10px;box-shadow:0 8px 20px #635bff20;color:white;font-weight:700}
.button:hover{filter:brightness(1.08);transform:translateY(-1px)}
input,textarea,select{background:#0d1628!important;color:#edf3ff!important;border:1px solid #2a3955!important;border-radius:9px!important}
input::placeholder,textarea::placeholder{color:#7385a7}
.result-row,.question-card,.test-card,.admin-card,.panel-card{background:#111c30;border-color:#293853;color:#e9efff}
.status-pill{border-radius:7px}
.profile-card{padding:20px;max-width:760px}
.profile-summary{display:flex;align-items:center;gap:12px;margin-bottom:20px}
.profile-summary b{display:block;color:#f4f7ff}
.profile-summary small{display:block;color:#8299c3;font-size:12px;margin-top:3px}
.profile-form{display:grid;gap:10px;max-width:540px}
.profile-form label{font-size:12px;color:#9eb1d5;font-weight:700;margin-top:4px}
.profile-form .button{justify-self:start;margin-top:8px}
.management-card{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px}
.management-card p{margin:6px 0 0;color:var(--muted)}
@media(max-width:900px){.sidebar{width:220px}.main-area{margin-left:220px}.page-content{padding:22px 18px}.brand{font-size:12px}}
@media(max-width:680px){.sidebar{position:relative;width:100%;height:auto;inset:auto;padding:15px 14px;border-right:0;border-bottom:1px solid #22304a}.brand{padding-bottom:14px;margin-bottom:12px}.sidebar nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.sidebar nav .nav-caption{grid-column:1/-1;margin:12px 8px 2px}.sidebar nav a{font-size:12px;padding:10px;min-width:0}.sidebar-bottom{padding-top:12px}.secure-badge{display:none}.sidebar-logout{margin-top:5px}.main-area{margin-left:0}.topbar{position:relative}.page-content{padding:16px 12px 36px}.welcome-hero{padding:22px 18px}.section-block{padding:17px;margin-top:15px}.management-card{align-items:flex-start;flex-direction:column}}


/* SAINT LEFT MENU — refined navy / violet design */
.sidebar{width:270px!important;padding:24px 15px 18px!important;background:linear-gradient(180deg,#0b1120 0%,#0d1629 55%,#0a1221 100%)!important;border-right:1px solid #26334c!important;box-shadow:8px 0 32px rgba(3,8,20,.08)}
.sidebar .brand{display:flex;align-items:center;gap:12px;padding:0 8px 23px!important;margin:0 0 20px!important;border-bottom:1px solid #25324b!important;color:#f4f7ff!important;text-decoration:none}
.sidebar .brand .site-logo{width:48px!important;height:48px!important;object-fit:contain;filter:drop-shadow(0 4px 10px rgba(95,126,255,.14))}
.sidebar .brand b{font-size:13px!important;letter-spacing:.045em;line-height:1.4!important;color:#f4f7ff}
.sidebar .brand small{display:block;margin-top:4px;font-size:9px!important;letter-spacing:.13em;color:#849ac4!important}
.sidebar nav{display:flex;flex-direction:column;gap:4px!important}
.sidebar .nav-caption{margin:18px 10px 7px!important;font-size:9px!important;letter-spacing:.16em!important;color:#7388b1!important;font-weight:800}
.sidebar nav a{display:flex;align-items:center;gap:11px;min-height:45px!important;padding:11px 13px!important;border-radius:11px!important;color:#c4d1e9!important;font-size:13px!important;font-weight:600!important;text-decoration:none;transition:background .18s,color .18s,transform .18s!important}
.sidebar nav a>span{width:21px!important;min-width:21px;display:inline-flex;align-items:center;justify-content:center;color:#91a8d4!important;font-size:18px!important}
.sidebar nav a:hover{background:#172440!important;color:#fff!important;transform:translateX(2px)}
.sidebar nav a.active{background:linear-gradient(105deg,#292652 0%,#202447 100%)!important;box-shadow:inset 3px 0 #9a87ff,0 5px 18px rgba(3,6,20,.12)!important;color:#fff!important}
.sidebar nav a.active>span{color:#b3a2ff!important}
.sidebar-bottom{margin-top:auto!important;padding-top:20px!important}
.secure-badge{border:1px solid #283755!important;border-radius:12px!important;padding:12px!important;background:linear-gradient(145deg,#121e32,#10192b)!important;gap:10px!important}
.secure-badge>span{width:34px!important;height:34px!important;border-radius:10px!important;background:#20264a!important;color:#a99aff!important;display:grid;place-items:center;font-size:20px!important}
.secure-badge b{font-size:10px!important;letter-spacing:.07em!important;color:#f0f4ff!important}
.secure-badge small{font-size:10px!important;line-height:1.45!important;color:#8198c3!important}
.sidebar-logout{display:flex;align-items:center;gap:9px;margin-top:12px!important;padding:11px 12px!important;border-radius:10px;color:#a9b8d3!important;font-size:12px!important;text-decoration:none}
.sidebar-logout:hover{background:rgba(120,142,190,.1);color:#fff!important}
/* SAINT SIDEBAR — responsive layout fix */
@media (min-width: 901px) {
  .sidebar { position: fixed !important; inset: 0 auto 0 0 !important; width: 270px !important; height: 100vh !important; min-height: 100vh !important; overflow-y: auto; }
  .main-area { margin-left: 270px !important; width: calc(100% - 270px) !important; }
  .sidebar nav { display: flex !important; flex-direction: column !important; }
  .sidebar-bottom { margin-top: auto !important; }
}
@media (max-width: 900px) {
  .sidebar { position: relative !important; inset: auto !important; width: 100% !important; height: auto !important; min-height: 0 !important; padding: 15px 14px !important; box-shadow: none !important; overflow: visible; }
  .main-area { margin-left: 0 !important; width: 100% !important; }
  .sidebar nav { display: flex !important; flex-direction: column !important; }
  .sidebar-bottom { margin-top: 12px !important; }
}
@media (max-width: 600px) {
  .sidebar nav { display: flex !important; flex-direction: column !important; gap: 4px !important; }
  .sidebar nav a { width: 100%; min-height: 42px; }
  .sidebar .brand .site-logo { width: 42px !important; height: 42px !important; }
  .sidebar-bottom { padding-top: 10px !important; }
}

/* =========================================================
   SAINT ADMIN EXAM — MOBILE RESPONSIVE PATCH
   Добавлено поверх текущего стиля. Не меняет JS переключателя тем.
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  width: 100%;
  min-width: 0;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  width: 100%;
  min-width: 0;
  overflow-x: clip;
}

img, svg, video, canvas, iframe {
  max-width: 100%;
}

button, input, select, textarea {
  max-width: 100%;
  font: inherit;
}

button, .button, a {
  touch-action: manipulation;
}

.page-content {
  width: 100%;
  min-width: 0;
}

@media (max-width: 900px) {
  .sidebar {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 14px !important;
  }

  .main-area {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
  }

  .page-content {
    max-width: 100%;
    padding: 20px 16px 36px !important;
  }

  .sidebar nav {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px !important;
  }

  .sidebar nav .nav-caption {
    grid-column: 1 / -1;
  }

  .sidebar nav a {
    min-width: 0;
    width: 100%;
    overflow-wrap: anywhere;
    transform: none !important;
  }

  .sidebar-bottom {
    margin-top: 12px !important;
  }

  .welcome-hero,
  .section-block,
  .profile-card,
  .panel-card,
  .result-banner,
  .login-card {
    min-width: 0;
    max-width: 100%;
  }

  .management-card {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-form {
    width: 100%;
    max-width: 100%;
  }

  .profile-form input,
  .profile-form select,
  .profile-form textarea,
  .profile-form .button {
    width: 100%;
  }

  table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  pre, code {
    overflow-wrap: anywhere;
    white-space: pre-wrap;
  }
}

@media (max-width: 600px) {
  .sidebar {
    padding: 12px !important;
  }

  .sidebar .brand {
    gap: 10px;
    padding: 0 4px 14px !important;
    margin-bottom: 12px !important;
  }

  .sidebar .brand .site-logo {
    width: 38px !important;
    height: 38px !important;
    flex: 0 0 38px;
  }

  .sidebar .brand b {
    font-size: 12px !important;
    overflow-wrap: anywhere;
  }

  .sidebar nav {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar nav a {
    min-height: 44px !important;
    padding: 11px 12px !important;
    font-size: 13px !important;
  }

  .sidebar .nav-caption {
    margin: 12px 8px 4px !important;
  }

  .secure-badge {
    display: flex !important;
  }

  .topbar {
    padding: 10px 12px;
    gap: 8px;
  }

  .topbar > * {
    min-width: 0;
    max-width: 100%;
  }

  .page-content {
    padding: 14px 10px 28px !important;
  }

  .welcome-hero {
    padding: 18px 14px !important;
    border-radius: 13px;
  }

  .welcome-hero h1 {
    font-size: clamp(22px, 6vw, 30px);
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .section-block {
    padding: 14px !important;
    margin-top: 14px !important;
    border-radius: 13px;
  }

  .section-heading {
    flex-wrap: wrap;
    gap: 8px;
  }

  .section-heading h2 {
    font-size: 18px;
    overflow-wrap: anywhere;
  }

  .profile-card {
    padding: 14px !important;
  }

  .profile-summary {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .button,
  button,
  input[type="submit"],
  input[type="button"] {
    min-height: 42px;
  }

  input, select, textarea {
    width: 100%;
    min-width: 0;
    font-size: 16px !important; /* предотвращает авто-зум полей на iPhone */
  }

  .management-card {
    padding: 14px !important;
    gap: 12px;
  }

  .result-row,
  .question-card,
  .test-card,
  .admin-card {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .theme-toggle,
  #theme-toggle {
    min-width: 42px;
    min-height: 42px;
  }
}

@media (max-width: 360px) {
  .page-content {
    padding-right: 8px !important;
    padding-left: 8px !important;
  }

  .sidebar nav a {
    gap: 8px;
    padding-right: 9px !important;
    padding-left: 9px !important;
  }

  .section-block,
  .profile-card {
    padding: 11px !important;
  }
}
/* SAINT sidebar refresh — 2026-10-22 */
@media(min-width:901px){
.saint-sidebar.sidebar{width:280px!important;padding:25px 17px 20px!important;background:radial-gradient(ellipse at 0 0,rgba(95,68,197,.22),transparent 48%),linear-gradient(165deg,#0c1125 0%,#10172e 55%,#0a1223 100%)!important;border-right:1px solid #303154!important;box-shadow:12px 0 44px #060b1b25!important;overflow-y:auto}
.saint-sidebar .brand{margin-bottom:14px!important;padding-bottom:24px!important;border-color:#353459!important}
.saint-sidebar .brand .site-logo{filter:drop-shadow(0 0 14px #a084ff65)!important}
.saint-sidebar nav{gap:5px!important}
.saint-sidebar .nav-caption{color:#9b9cbf!important;font-size:10px!important;margin:20px 10px 7px!important}
.saint-sidebar nav a{border:1px solid transparent!important;min-height:45px!important;border-radius:12px!important;color:#b8c2e3!important}
.saint-sidebar nav a:hover{background:#7c69e21b!important;border-color:#8e7cfd30!important;transform:translateX(3px)!important}
.saint-sidebar nav a.active{background:linear-gradient(100deg,#6753bd80,#3a327b44)!important;border-color:#9684f74d!important;box-shadow:inset 3px 0 #b39aff,0 8px 25px #5940c227!important}
.saint-sidebar .sidebar-bottom{margin-top:auto!important}
.saint-sidebar .secure-badge{background:linear-gradient(125deg,#251f49,#161e38)!important;border:1px solid #7866b947!important;border-radius:15px!important;padding:14px!important}
.main-area{margin-left:280px!important}
}
.saint-side-stat{margin-top:17px;padding:0 4px 16px}
.saint-side-stat .nav-caption{margin:10px 7px 12px!important}
.saint-side-stat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.saint-side-stat-grid>div{padding:13px 10px;background:linear-gradient(135deg,#20234a,#161d38);border:1px solid #3d3d6a;border-radius:13px;min-width:0}
.saint-side-stat-grid strong{display:block;color:#e8e2ff;font-size:23px;line-height:1.3;font-weight:800}
.saint-side-stat-grid small{display:block;color:#a4add0;font-size:10px;line-height:1.45;margin-top:5px}
.saint-side-activity{display:flex;align-items:center;gap:9px;margin-top:12px;padding:11px 12px;border:1px solid #343e60;border-radius:12px;background:#151d35;color:#aab6d4;font-size:11px}
.saint-side-activity b{color:#e8e2ff}
.saint-live-dot{height:8px;width:8px;flex:0 0 8px;background:#53d8a9;border-radius:50%;box-shadow:0 0 0 4px #53d8a91b,0 0 12px #53d8a970}
.saint-sidebar .sidebar-logout:hover{background:#ed668519!important;color:#ffb2c4!important}
@media(max-width:900px){.saint-side-stat{display:none!important}}

/* Hide sidebar scrollbar while keeping wheel/touch scrolling */
.saint-sidebar.sidebar { scrollbar-width: none !important; -ms-overflow-style: none !important; }
.saint-sidebar.sidebar::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; }

/* Light-mode sidebar palette: keep the dark design intact when dark mode is selected. */
@media (min-width:901px) {
body[data-theme="light"] .saint-sidebar.sidebar {
  background:radial-gradient(ellipse at 0 0,rgba(145,120,255,.13),transparent 49%),linear-gradient(165deg,#fafbff 0%,#f3f5ff 55%,#edf1fb 100%)!important;
  border-right-color:#dfe4f4!important;box-shadow:10px 0 32px rgba(44,47,100,.07)!important;color:#303956!important;
}
}
body[data-theme="light"] .saint-sidebar .brand{border-color:#dfe3f1!important;color:#222b49!important}
body[data-theme="light"] .saint-sidebar .brand b{color:#222b49!important}
body[data-theme="light"] .saint-sidebar .brand small{color:#737fa5!important}
body[data-theme="light"] .saint-sidebar .nav-caption{color:#7782a5!important}
body[data-theme="light"] .saint-sidebar nav a{color:#485675!important}
body[data-theme="light"] .saint-sidebar nav a>span{color:#777fb5!important}
body[data-theme="light"] .saint-sidebar nav a:hover{background:#eae6ff!important;color:#4a388d!important;border-color:#d8cffb!important}
body[data-theme="light"] .saint-sidebar nav a.active{background:linear-gradient(105deg,#e7ddff,#f1edff)!important;color:#453383!important;border-color:#cbbaf9!important;box-shadow:inset 3px 0 #9070ee,0 5px 18px #6555ab16!important}
body[data-theme="light"] .saint-sidebar nav a.active>span{color:#7858ce!important}
body[data-theme="light"] .saint-side-stat-grid>div{background:linear-gradient(135deg,#fff,#f0efff);border-color:#dfe0f2}
body[data-theme="light"] .saint-side-stat-grid strong{color:#45347f}
body[data-theme="light"] .saint-side-stat-grid small{color:#737d9b}
body[data-theme="light"] .saint-side-activity{background:#fff;border-color:#dfe4f2;color:#697795}
body[data-theme="light"] .saint-side-activity b{color:#354466}
body[data-theme="light"] .saint-sidebar .secure-badge{background:linear-gradient(125deg,#f2edff,#e9efff)!important;border-color:#d8d0f6!important;color:#3e4265!important}
body[data-theme="light"] .saint-sidebar .secure-badge b{color:#33385d!important}
body[data-theme="light"] .saint-sidebar .secure-badge small{color:#7783a2!important}
body[data-theme="light"] .saint-sidebar .sidebar-logout{color:#657292!important}
body[data-theme="light"] .saint-sidebar .sidebar-logout:hover{background:#fce8ed!important;color:#b13e60!important}


/* SAINT: restore complete light palette after dark-first site overrides */
body[data-theme="light"]{--bg:#f5f7fc;--surface:#ffffff;--ink:#17213b;--muted:#77819a;--line:#e2e7f2;--shadow:0 14px 36px rgba(36,48,92,.07);background:var(--bg);color:var(--ink)}
body[data-theme="light"] .main-area{background:var(--bg);color:var(--ink)}
body[data-theme="light"] .topbar{background:rgba(255,255,255,.93);border-bottom-color:var(--line);color:var(--ink)}
body[data-theme="light"] .welcome-hero,body[data-theme="light"] .admin-welcome{background:linear-gradient(115deg,#f9f9ff,#eeedff);border:1px solid #deddf8;color:#20294a}
body[data-theme="light"] .welcome-hero h1,body[data-theme="light"] .admin-welcome h1,body[data-theme="light"] .section-heading h2,body[data-theme="light"] .profile-summary b{color:#20294a}
body[data-theme="light"] .welcome-hero p,body[data-theme="light"] .admin-welcome p{color:#63708d}
body[data-theme="light"] .welcome-hero .eyebrow,body[data-theme="light"] .admin-welcome .eyebrow{color:#6853c9}
body[data-theme="light"] .hero-note{color:#687494}
body[data-theme="light"] .section-block,body[data-theme="light"] .profile-card,body[data-theme="light"] .panel,body[data-theme="light"] .panel-card,body[data-theme="light"] .test-card,body[data-theme="light"] .login-card,body[data-theme="light"] .settings-card,body[data-theme="light"] .editor-panel,body[data-theme="light"] .admin-control-card,body[data-theme="light"] .detail-summary,body[data-theme="light"] .stat-card,body[data-theme="light"] .table-wrap,body[data-theme="light"] .admin-team,body[data-theme="light"] .review-card,body[data-theme="light"] .add-admin-form,body[data-theme="light"] .result-banner,body[data-theme="light"] .question-card,body[data-theme="light"] .result-row,body[data-theme="light"] .admin-card{background:#fff;border-color:var(--line);color:var(--ink)}
body[data-theme="light"] input:not([type="checkbox"]):not([type="radio"]),body[data-theme="light"] textarea,body[data-theme="light"] select{background:#fff!important;color:#17213b!important;border-color:#dce3f0!important}
body[data-theme="light"] input::placeholder,body[data-theme="light"] textarea::placeholder{color:#8792aa}
body[data-theme="light"] .profile-form label,body[data-theme="light"] .profile-summary small{color:#64738e}
body[data-theme="light"] .answer-option{background:#fff;border-color:#e3e7f2;color:#17213b}
body[data-theme="light"] .answer-option:hover,body[data-theme="light"] .answer-option:has(input:checked){background:#f5f2ff;border-color:#a89cf7}
body[data-theme="light"] .filter-bar,body[data-theme="light"] .admin-tabs,body[data-theme="light"] .edit-question{background:#f8f9ff;border-color:var(--line);color:var(--ink)}
body[data-theme="light"] .data-table th{background:#f4f6fd;color:#596985}
body[data-theme="light"] .theme-toggle{background:#f6f4ff;color:#5143a1;border-color:#ded8fb}
body[data-theme="light"] .secure-badge{color:#303956}

/* Animated, theme-aware selected navigation item */
.saint-sidebar nav a {position:relative;transition:background-color .24s ease,border-color .24s ease,box-shadow .24s ease,color .24s ease,transform .24s ease!important;}
.saint-sidebar nav a.active {animation:saintNavEnter .28s ease-out both;}
@keyframes saintNavEnter {from {opacity:.72;transform:translateX(-5px)}to {opacity:1;transform:translateX(0)}}
@media(prefers-reduced-motion:reduce){.saint-sidebar nav a.active{animation:none!important}}

/* Exam countdown and owner controls */
.exam-timer{background:linear-gradient(125deg,rgba(115,87,237,.13),rgba(76,102,176,.07));border:1px solid rgba(145,121,248,.28);border-radius:16px;padding:18px 20px;margin:16px 0 22px;color:var(--text,#e6e8fa)}
.exam-timer-top{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;font-weight:750;letter-spacing:.055em}
.exam-timer-clock{font-size:27px;letter-spacing:.035em;font-variant-numeric:tabular-nums;color:#a48aff}
.exam-timer-track{height:7px;border-radius:99px;background:rgba(138,145,190,.19);overflow:hidden;margin:12px 0 8px}
.exam-timer-track span{display:block;height:100%;width:100%;background:linear-gradient(90deg,#6c66f3,#b17bff);border-radius:inherit;transition:width 1s linear}
.exam-timer small{font-size:12px;opacity:.75}.exam-timer.timer-warning .exam-timer-clock{color:#f87171}.exam-timer.timer-warning .exam-timer-track span{background:#f87171}
[data-theme="light"] .exam-timer,body.light .exam-timer{color:#29304b;background:#f4f0ff}

/* Timer card — explicit layout and both themes */
#exam-timer.exam-timer{display:block;box-sizing:border-box;width:100%;margin:20px 0 24px;padding:22px 24px;border:1px solid #344165;border-radius:18px;background:linear-gradient(125deg,#18223c,#111b30);color:#e8edff;box-shadow:0 12px 32px rgba(3,8,24,.14)}
#exam-timer .exam-timer-top{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin:0 0 6px;font-size:12px;letter-spacing:.055em;font-weight:700}
#exam-timer .exam-timer-label{color:#b6c5e8}
#exam-timer .exam-timer-status{padding:5px 10px;border-radius:99px;background:#2d2855;color:#c2b3ff;font-size:11px;letter-spacing:0}
#exam-timer .exam-timer-clock{display:block;margin:8px 0 14px;text-align:center;font-size:42px;line-height:1.2;font-weight:800;letter-spacing:.04em;color:#fff;font-variant-numeric:tabular-nums}
#exam-timer .exam-timer-track{display:block;height:8px;margin:0 0 10px;overflow:hidden;border-radius:99px;background:#303b59}
#exam-timer .exam-timer-track>span{display:block;width:100%;height:100%;border-radius:99px;background:linear-gradient(90deg,#7164ed,#a782ff);transition:width 1s linear}
#exam-timer .exam-timer-bottom{display:flex;justify-content:space-between;gap:10px;color:#9aaccd;font-size:11px}
#exam-timer .exam-timer-note{margin-top:16px;padding-top:14px;border-top:1px solid #2c3955;color:#c4cee5;font-size:12px;line-height:1.5}
#exam-timer.timer-warning .exam-timer-clock{color:#ff818e}
#exam-timer.timer-warning .exam-timer-track>span{background:linear-gradient(90deg,#ef5669,#ff9b88)}
body[data-theme="light"] #exam-timer.exam-timer,html[data-theme="light"] #exam-timer.exam-timer{background:linear-gradient(125deg,#fff,#f4f1ff);border-color:#dcd9f2;color:#29304b;box-shadow:0 8px 24px rgba(70,61,130,.07)}
body[data-theme="light"] #exam-timer .exam-timer-clock,html[data-theme="light"] #exam-timer .exam-timer-clock{color:#33265d}
body[data-theme="light"] #exam-timer .exam-timer-label,html[data-theme="light"] #exam-timer .exam-timer-label{color:#665d90}
body[data-theme="light"] #exam-timer .exam-timer-bottom,body[data-theme="light"] #exam-timer .exam-timer-note,html[data-theme="light"] #exam-timer .exam-timer-bottom,html[data-theme="light"] #exam-timer .exam-timer-note{color:#6d7190;border-color:#e2e2f0}
body[data-theme="light"] #exam-timer .exam-timer-track,html[data-theme="light"] #exam-timer .exam-timer-track{background:#e2dff1}
@media(max-width:600px){#exam-timer.exam-timer{padding:17px}#exam-timer .exam-timer-clock{font-size:34px}}

/* Owner-only exam duration settings: themed to match SAINT dashboard */
#timer-settings .timer-admin-card{padding:26px;background:var(--surface);border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow);display:grid;gap:23px}
#timer-settings .timer-admin-header{display:flex;align-items:center;gap:14px}
#timer-settings .timer-admin-icon{width:48px;height:48px;display:grid;place-items:center;flex:none;border-radius:14px;background:linear-gradient(135deg,#675bff,#9b69f5);color:#fff;font-size:29px;box-shadow:0 9px 24px #7560ef33}
#timer-settings .timer-admin-header>div{display:grid;gap:3px;min-width:0}
#timer-settings .timer-admin-header strong{font-size:15px;color:var(--ink)}
#timer-settings .timer-admin-header small{font-size:11px;color:var(--muted)}
#timer-settings .timer-admin-owner{margin-left:auto;white-space:nowrap;padding:7px 11px;border-radius:9px;background:rgba(123,100,255,.12);color:#8b74ef;font-size:10px;font-weight:800}
#timer-settings .timer-admin-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(160px,220px);gap:16px;align-items:end}
#timer-settings .timer-admin-controls label{display:grid;gap:9px;font-size:12px;font-weight:750;color:var(--ink)}
#timer-settings select{width:100%;min-height:51px;padding:12px 16px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);font-size:14px;font-weight:750;cursor:pointer;outline:none;transition:border-color .2s,box-shadow .2s}
#timer-settings select:focus{border-color:#8b77ff;box-shadow:0 0 0 4px rgba(139,119,255,.15)}
#timer-settings .timer-admin-preview{display:grid;gap:1px;min-height:75px;padding:12px 18px;border:1px solid rgba(138,113,250,.25);border-radius:13px;background:rgba(125,105,240,.075)}
#timer-settings .timer-admin-preview span{font-size:10px;color:var(--muted)}
#timer-settings .timer-admin-preview strong{font-size:25px;line-height:1.35;letter-spacing:.03em;color:#9278ff;font-variant-numeric:tabular-nums}
#timer-settings .timer-admin-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;padding-top:19px;border-top:1px solid var(--line)}
#timer-settings .timer-admin-footer>span{font-size:11px;color:var(--muted)}
#timer-settings .timer-admin-footer .button{white-space:nowrap}
@media(max-width:650px){#timer-settings .timer-admin-card{padding:18px}#timer-settings .timer-admin-owner{display:none}#timer-settings .timer-admin-controls{grid-template-columns:1fr}#timer-settings .timer-admin-footer{align-items:stretch;flex-direction:column}#timer-settings .timer-admin-footer .button{width:100%}}

/* Exam waiting state */
.exam-start-card{padding:30px;border:1px solid var(--border,#303b59);border-radius:18px;background:var(--card,#131e33);margin-top:18px}
.exam-start-card h3{font-size:24px;margin:10px 0}.exam-start-card p{color:var(--muted,#98a8c5);margin-bottom:22px;line-height:1.6}
body[data-theme="light"] .exam-start-card,html[data-theme="light"] .exam-start-card{background:#fff;border-color:#dedff0;color:#25304a}

/* Smooth in-page navigation and AJAX exam start */
html{scroll-behavior:smooth}
#results,#test,#profile-settings{scroll-margin-top:90px}
.saint-sidebar nav a{transition:background-color .25s ease,border-color .25s ease,color .25s ease,box-shadow .25s ease,transform .25s ease}
.saint-sidebar nav a.active{animation:saint-nav-selected .28s ease both}
@keyframes saint-nav-selected{from{opacity:.72;transform:translateX(-5px)}to{opacity:1;transform:translateX(0)}}
.saint-fade-out{opacity:0;transform:translateY(-8px);transition:opacity .18s ease,transform .18s ease}
.saint-fade-in,.saint-section-reveal{animation:saint-content-enter .35s ease both}
@keyframes saint-content-enter{from{opacity:.15;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}
.exam-start-card button.is-loading{opacity:.65;cursor:wait}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.saint-fade-out,.saint-fade-in,.saint-section-reveal,.saint-sidebar nav a.active{animation:none;transition:none}}


/* SAINT UI polish — scoped fixes for search controls and transitions */
@view-transition { navigation: auto; }
::view-transition-old(root){animation:saint-page-leave .16s ease-in both}
::view-transition-new(root){animation:saint-page-enter .30s cubic-bezier(.2,.8,.2,1) both}
@keyframes saint-page-leave{to{opacity:.65;filter:blur(2px)}}
@keyframes saint-page-enter{from{opacity:.45;filter:blur(3px);transform:translateY(6px)}to{opacity:1;filter:blur(0);transform:none}}
.page-content > section,.page-content > .panel,.page-content > .admin-welcome{animation:saint-page-enter .36s cubic-bezier(.2,.8,.2,1) both}
.admin-tabs a,.sidebar nav a,.button,.result-row,.stat-card{transition:background-color .25s ease,border-color .25s ease,box-shadow .25s ease,color .25s ease,transform .25s cubic-bezier(.2,.8,.2,1)!important}
.admin-tabs a:hover,.sidebar nav a:hover{transform:translateX(2px)}
.admin-tabs a:focus-visible,.sidebar nav a:focus-visible,.button:focus-visible{outline:2px solid #9e8aff;outline-offset:3px}
#attempts,#editor,#settings,#admins,#users,#questionList,#results,#test,#profile-settings{scroll-margin-top:100px}
/* Search input is one unified field: avoid the global input background/border/padding */
.filter-bar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;min-width:0}
.filter-bar .search-field{display:flex!important;align-items:center!important;gap:10px!important;flex:1 1 280px!important;min-width:0!important;min-height:46px!important;padding:0 14px!important;border:1px solid var(--line)!important;border-radius:12px!important;background:var(--surface)!important;box-shadow:none!important;overflow:hidden!important;color:var(--muted)!important}
.filter-bar .search-field>span{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:17px;line-height:1;font-size:19px;pointer-events:none}
.filter-bar .search-field input,.filter-bar .search-field input[type="search"],.filter-bar .search-field input[type="text"]{display:block!important;flex:1 1 auto!important;width:100%!important;min-width:0!important;min-height:42px!important;height:42px!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;color:var(--ink)!important;font-size:13px!important;line-height:1.4!important;appearance:none!important}
.filter-bar .search-field input:focus{box-shadow:none!important;outline:none!important}
.filter-bar .search-field:focus-within{border-color:#9780ff!important;box-shadow:0 0 0 3px rgba(125,96,255,.15)!important}
.filter-bar>select{min-height:46px;max-width:100%;flex:0 1 190px}
.filter-bar>.button{min-height:46px;white-space:nowrap}
body[data-theme="dark"] .filter-bar .search-field{background:#101727!important;border-color:#2a3955!important}
body[data-theme="dark"] .filter-bar .search-field input{background:transparent!important;color:#edf3ff!important;border:0!important}
body[data-theme="light"] .filter-bar .search-field{background:#fff!important;border-color:#dce3f0!important}
body[data-theme="light"] .filter-bar .search-field input{background:transparent!important;color:#17213b!important;border:0!important}
@media(max-width:600px){.filter-bar .search-field{flex-basis:100%!important}.filter-bar>select{flex:1 1 150px}.filter-bar>.button{flex:1 1 auto}}
@media(prefers-reduced-motion:reduce){@view-transition{navigation:none}::view-transition-old(root),::view-transition-new(root),.page-content > section,.page-content > .panel,.page-content > .admin-welcome{animation:none!important}.admin-tabs a,.sidebar nav a,.button,.result-row,.stat-card{transition:none!important}}

/* Smooth same-origin view transitions */
.page-content.saint-view-leaving {opacity:.55;transform:translateY(5px);transition:opacity .12s ease,transform .12s ease}
.page-content.saint-view-entering {animation:saintViewEnter .28s cubic-bezier(.2,.8,.2,1) both}
@keyframes saintViewEnter {from{opacity:.3;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.page-content.saint-view-leaving,.page-content.saint-view-entering{animation:none;transition:none;transform:none}}

/* SAINT RUSSIA / premium sequential examination — scoped to the exam modal */
.sr-modal-backdrop{position:fixed;inset:0;z-index:9999;background:rgba(7,12,25,.82);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);display:grid;place-items:center;padding:14px;isolation:isolate}
#exam-form.sr-exam-modal{width:min(800px,100%);max-height:calc(100dvh - 28px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#53617a transparent;margin:0!important;padding:0!important;background:#101827!important;border:1px solid #37445e!important;border-radius:18px!important;box-shadow:0 32px 90px #0009,0 0 0 1px #b4a0ff0c!important;color:#f2f5fb!important}
.sr-exam-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 19px;background:linear-gradient(110deg,#131e32,#11192b);border-bottom:1px solid #2b3850}
.sr-exam-identity{display:flex;align-items:center;gap:9px;color:#e5c693;font-size:12px;letter-spacing:.055em;font-weight:800}
.sr-exam-identity em{font-style:normal;font-weight:650;color:#bda77f}
.sr-exam-symbol{display:grid;place-items:center;background:linear-gradient(145deg,#5d5683,#303a58);border:1px solid #6e6387;color:#f3d6a5;width:28px;height:28px;border-radius:9px;font-size:15px;box-shadow:0 4px 16px #0003}
.sr-exam-pill{background:#293449;color:#dce2ed;font-size:11px;font-weight:750;border:1px solid #3c4860;border-radius:50px;padding:6px 12px}
.sr-exam-surface{padding:25px 24px 20px;background:linear-gradient(145deg,#1a273d,#1a2539 58%,#1b263b)}
.sr-exam-heading{display:flex;justify-content:space-between;align-items:center;gap:15px}
.sr-exam-eyebrow{font-size:11px;color:#9daec7;font-weight:650;letter-spacing:.07em}
.sr-exam-heading h3{color:#f4f6fc!important;font-size:21px!important;line-height:1.25;margin:8px 0 0!important;font-weight:800!important}
#exam-form.sr-exam-modal .sr-exam-clock{flex-shrink:0;min-width:130px;background:#29344b!important;border:1px solid #38465f!important;border-radius:14px!important;padding:13px 16px!important;margin:0!important;box-shadow:0 7px 22px #0002!important;text-align:center}
#exam-form.sr-exam-modal .sr-exam-clock .exam-timer-top{display:flex!important;flex-direction:column;align-items:center;gap:5px;margin:0!important}
#exam-form.sr-exam-modal .sr-exam-clock .exam-timer-top span{color:#dfbd86!important;font-size:11px!important;letter-spacing:.04em}
#exam-form.sr-exam-modal #exam-timer-clock{color:#f8f8fc!important;font-size:27px!important;font-weight:800!important;line-height:1.2!important;margin:4px 0 0!important;letter-spacing:.02em;font-variant-numeric:tabular-nums}
#exam-form.sr-exam-modal .sr-exam-clock .exam-timer-track{display:none!important}
#exam-form.sr-exam-modal .sr-exam-clock.timer-warning #exam-timer-clock{color:#ff8585!important}
#exam-form.sr-exam-modal .sr-exam-progress-track{height:5px;background:#3b4b62;border-radius:20px;overflow:hidden;margin:20px 0 9px}
#exam-form.sr-exam-modal #progress-fill{display:block;height:100%;width:0;background:linear-gradient(90deg,#a8906b,#e8c68e);border-radius:20px;transition:width .32s ease}
.sr-exam-progress-meta{display:flex;justify-content:space-between;gap:12px;font-size:11px;color:#9daec6;margin-bottom:20px}
#exam-form.sr-exam-modal .sr-exam-question{margin:0!important;padding:0!important;border:0!important;background:transparent!important;min-width:0;animation:sr-question-in .32s cubic-bezier(.22,1,.36,1) both}
#exam-form.sr-exam-modal .sr-exam-question[hidden]{display:none!important}
#exam-form.sr-exam-modal .sr-exam-question legend{display:block;width:100%;padding:0;margin:0 0 15px;color:#f1f3fa!important;font-size:16px!important;line-height:1.55;font-weight:500!important}
#exam-form.sr-exam-modal .answer-options{display:flex!important;flex-direction:column!important;gap:12px!important;margin:0!important}
#exam-form.sr-exam-modal .answer-option{position:relative;display:flex!important;align-items:center;gap:8px;min-height:52px;margin:0!important;padding:13px 15px!important;border:1px solid #40516a!important;border-radius:13px!important;background:#25324a!important;color:#f3f5fb!important;box-shadow:none!important;cursor:pointer;transition:background .23s,border-color .23s,box-shadow .23s,transform .23s}
#exam-form.sr-exam-modal .answer-option:hover{background:#2c3a54!important;border-color:#7c8196!important;transform:translateY(-1px)}
#exam-form.sr-exam-modal .answer-option:has(input:checked){background:#343849!important;border-color:#d9ba83!important;box-shadow:inset 0 0 0 1px #d9ba8344,0 0 20px #d9ba8312!important}
#exam-form.sr-exam-modal .answer-option input{position:absolute;opacity:0;width:1px;height:1px}
#exam-form.sr-exam-modal .answer-option:focus-within{outline:2px solid #e2c58c;outline-offset:2px}
#exam-form.sr-exam-modal .sr-answer-letter{color:#f4f5fa;font-size:13px;font-weight:750;flex-shrink:0}
#exam-form.sr-exam-modal .answer-text{font-size:13px!important;color:#f4f5fa!important;line-height:1.5}
#exam-form.sr-exam-modal .sr-answer-check{margin-left:auto;opacity:0;color:#e7c48a;font-size:17px;font-weight:900;transition:opacity .2s}
#exam-form.sr-exam-modal .answer-option:has(input:checked) .sr-answer-check{opacity:1}
.sr-exam-footer{display:flex;align-items:center;gap:12px;margin-top:19px}
.sr-exam-hint{color:#91a0bb;font-size:11px;margin-right:auto}
.sr-exam-prev{border:1px solid #54647b;background:#27344a;color:#e7ecf7;border-radius:12px;padding:13px 16px;cursor:pointer;font-weight:750;transition:background .2s}
.sr-exam-prev:hover{background:#35435d}
#exam-form.sr-exam-modal .sr-exam-next{background:linear-gradient(135deg,#ebcf9b,#d3b177)!important;color:#252932!important;border:0!important;border-radius:12px!important;padding:13px 19px!important;font-weight:800!important;font-size:13px!important;box-shadow:0 7px 20px #0002!important;transition:transform .2s,box-shadow .2s,filter .2s}
#exam-form.sr-exam-modal .sr-exam-next:hover{transform:translateY(-2px);filter:brightness(1.06);box-shadow:0 10px 26px #0004!important}
.sr-exam-footer [hidden]{display:none!important}
.sr-exam-shake{animation:sr-exam-shake .28s ease!important}
@keyframes sr-question-in{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}
@keyframes sr-exam-shake{0%,100%{transform:translateX(0)}30%{transform:translateX(-5px)}70%{transform:translateX(5px)}}
@media(max-width:600px){.sr-modal-backdrop{padding:7px}#exam-form.sr-exam-modal{max-height:calc(100dvh - 14px);border-radius:14px!important}.sr-exam-top{padding:12px}.sr-exam-identity{font-size:10px}.sr-exam-surface{padding:17px 13px}.sr-exam-heading h3{font-size:17px!important}#exam-form.sr-exam-modal .sr-exam-clock{min-width:105px;padding:11px!important}#exam-form.sr-exam-modal #exam-timer-clock{font-size:23px!important}.sr-exam-hint{display:none}.sr-exam-prev{margin-right:auto}.sr-exam-footer{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){#exam-form.sr-exam-modal .sr-exam-question,.sr-exam-shake{animation:none!important}#exam-form.sr-exam-modal .answer-option,#exam-form.sr-exam-modal .sr-exam-next{transition:none!important}}

/* SAINT RUSSIA — 2026 refined exam: fixed viewport, compact timer, site-native violet */
body.sr-exam-open{overflow:hidden!important}
body .sr-modal-backdrop{position:fixed!important;inset:0!important;z-index:2147483000!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow-y:auto!important;overscroll-behavior:contain!important;padding:22px 16px!important;background:rgba(7,11,25,.96)!important;backdrop-filter:blur(18px)!important;-webkit-backdrop-filter:blur(18px)!important}
body #exam-form.sr-exam-modal{display:flex!important;flex-direction:column!important;flex:0 1 760px!important;width:min(760px,100%)!important;max-width:760px!important;min-width:0!important;max-height:min(780px,calc(100dvh - 44px))!important;overflow-y:auto!important;overflow-x:hidden!important;margin:auto!important;padding:0!important;border:1px solid #3a4361!important;border-radius:20px!important;background:#161e32!important;box-shadow:0 32px 90px rgba(0,0,0,.62),0 0 0 1px #8178e70f!important}
body #exam-form.sr-exam-modal .sr-exam-top{padding:15px 22px!important;min-height:64px!important;background:#141c30!important;border-bottom:1px solid #333e58!important}
body #exam-form.sr-exam-modal .sr-exam-identity{font-size:12px!important;letter-spacing:.035em!important;color:#e5d1ae!important}
body #exam-form.sr-exam-modal .sr-exam-symbol{background:linear-gradient(140deg,#6b5eaf,#40385d)!important;border:1px solid #7269a0!important}
body #exam-form.sr-exam-modal .sr-exam-surface{padding:24px 28px 24px!important;background:linear-gradient(145deg,#1b273d,#19243a)!important}
body #exam-form.sr-exam-modal .sr-exam-heading{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;gap:24px!important;min-height:92px!important}
body #exam-form.sr-exam-modal .sr-exam-heading-copy{flex:1 1 auto!important;min-width:0!important}
body #exam-form.sr-exam-modal .sr-exam-heading h3{font-size:23px!important;white-space:normal!important;line-height:1.25!important;margin-top:9px!important}
body #exam-form.sr-exam-modal #exam-timer.sr-exam-clock{box-sizing:border-box!important;display:flex!important;flex:0 0 122px!important;width:122px!important;min-width:122px!important;max-width:122px!important;min-height:91px!important;align-items:center!important;justify-content:center!important;margin:0!important;padding:12px 10px!important;background:#28334b!important;border:1px solid #46516b!important;border-radius:14px!important;box-shadow:none!important}
body #exam-form.sr-exam-modal #exam-timer .exam-timer-top{display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:center!important;flex-wrap:nowrap!important;gap:4px!important;width:100%!important;margin:0!important;padding:0!important}
body #exam-form.sr-exam-modal #exam-timer .exam-timer-top span{white-space:nowrap!important;font-size:10px!important;color:#d9bb86!important}
body #exam-form.sr-exam-modal #exam-timer #exam-timer-clock{display:block!important;width:auto!important;min-width:0!important;max-width:100%!important;margin:0!important;padding:0!important;white-space:nowrap!important;text-align:center!important;font-size:25px!important;line-height:1.35!important;color:#f7f7fd!important}
body #exam-form.sr-exam-modal #exam-timer.timer-warning #exam-timer-clock{color:#ff9a9a!important}
body #exam-form.sr-exam-modal .sr-exam-progress-track{margin:16px 0 8px!important;background:#3b4960!important}
body #exam-form.sr-exam-modal .sr-exam-progress-meta{margin:0 0 24px!important;color:#98a9c6!important}
body #exam-form.sr-exam-modal .sr-exam-question legend{font-size:16px!important;line-height:1.55!important;margin-bottom:18px!important}
body #exam-form.sr-exam-modal .answer-options{gap:11px!important}
body #exam-form.sr-exam-modal .answer-option{min-height:56px!important;border-radius:12px!important;background:#243149!important;border:1px solid #3c4a64!important;transition:background .2s ease,border-color .2s ease,transform .2s ease,box-shadow .2s ease!important}
body #exam-form.sr-exam-modal .answer-option:hover{transform:translateY(-1px)!important;background:#2b3953!important;border-color:#746bd1!important}
body #exam-form.sr-exam-modal .answer-option:has(input:checked){background:#302e4c!important;border-color:#a497ff!important;box-shadow:inset 0 0 0 1px #a497ff50,0 4px 22px #786dff18!important}
body #exam-form.sr-exam-modal .sr-answer-check{color:#bfb5ff!important}
body #exam-form.sr-exam-modal .sr-exam-footer{margin-top:22px!important;padding-top:18px!important;border-top:1px solid #34415b!important}
body #exam-form.sr-exam-modal .sr-exam-next{background:linear-gradient(120deg,#776af1,#9b79ef)!important;color:#fff!important;box-shadow:0 8px 24px #6c60e64d!important;border-radius:11px!important}
body #exam-form.sr-exam-modal .sr-exam-next:hover{filter:brightness(1.12)!important;box-shadow:0 12px 30px #6c60e675!important}
body #exam-form.sr-exam-modal .sr-exam-prev{border-color:#58647f!important}
@media(max-width:600px){
 body .sr-modal-backdrop{padding:8px!important}
 body #exam-form.sr-exam-modal{max-height:calc(100dvh - 16px)!important;border-radius:16px!important}
 body #exam-form.sr-exam-modal .sr-exam-top{padding:12px 13px!important;min-height:55px!important}
 body #exam-form.sr-exam-modal .sr-exam-surface{padding:16px 13px 18px!important}
 body #exam-form.sr-exam-modal .sr-exam-heading{gap:9px!important;min-height:78px!important}
 body #exam-form.sr-exam-modal .sr-exam-heading h3{font-size:17px!important}
 body #exam-form.sr-exam-modal #exam-timer.sr-exam-clock{flex-basis:100px!important;width:100px!important;min-width:100px!important;max-width:100px!important;min-height:76px!important;padding:8px!important}
 body #exam-form.sr-exam-modal #exam-timer #exam-timer-clock{font-size:21px!important}
 body #exam-form.sr-exam-modal .sr-exam-hint{display:none!important}
 body #exam-form.sr-exam-modal .sr-exam-footer{gap:8px!important}
 body #exam-form.sr-exam-modal .sr-exam-next{padding:12px 13px!important;font-size:12px!important}
}
@media(prefers-reduced-motion:reduce){
 body #exam-form.sr-exam-modal .answer-option,body #exam-form.sr-exam-modal .sr-exam-next{transition:none!important}
}

/* Sequential exam: no backward navigation */
body #exam-form.sr-exam-modal .sr-exam-footer{justify-content:flex-end!important}

/* SAINT RUSSIA: collapsible sidebar only. Original sidebar appearance unchanged. */
@media(min-width:901px){
  .saint-sidebar.sidebar{
    transition:transform .32s cubic-bezier(.22,.75,.28,1),visibility .32s!important;
    will-change:transform;
  }
  .main-area{
    transition:margin-left .32s cubic-bezier(.22,.75,.28,1),width .32s cubic-bezier(.22,.75,.28,1)!important;
  }
  body.saint-sidebar-collapsed .saint-sidebar.sidebar{
    transform:translateX(-105%)!important;
    visibility:hidden!important;
    pointer-events:none!important;
  }
  body.saint-sidebar-collapsed .main-area{
    margin-left:0!important;
    width:100%!important;
  }
  .saint-sidebar-toggle{
    position:fixed;
    z-index:60;
    left:280px;
    top:82px;
    transform:translateX(-50%);
    width:27px;
    height:43px;
    display:grid;
    place-items:center;
    padding:0;
    border:1px solid #4e477e;
    border-radius:0 10px 10px 0;
    background:#201d3d;
    color:#d4c5ff;
    box-shadow:0 5px 20px #080d2480;
    cursor:pointer;
    font-size:24px;
    line-height:1;
    transition:left .32s cubic-bezier(.22,.75,.28,1),background .2s ease,color .2s ease;
  }
  .saint-sidebar-toggle:hover{background:#393069;color:#fff}
  .saint-sidebar-toggle:focus-visible{outline:2px solid #a990ff;outline-offset:3px}
  body.saint-sidebar-collapsed .saint-sidebar-toggle{
    left:0;
    transform:none;
    border-radius:0 10px 10px 0;
  }
}
@media(max-width:900px){.saint-sidebar-toggle{display:none!important}}
@media(prefers-reduced-motion:reduce){
  .saint-sidebar.sidebar,.main-area,.saint-sidebar-toggle{transition:none!important}
}

/* SAINT RUSSIA: compact history cards; examination and administrative screens unchanged */
#results .result-row{display:flex;align-items:center;gap:15px;flex-wrap:wrap;padding:17px 20px;min-height:78px}
#results .result-row-main{flex:1 1 160px;min-width:0}
#results .result-row-main b{font-size:13px;line-height:1.4}
#results .result-row-main span{font-size:11px;line-height:1.4}
#results .result-score{margin-left:auto;margin-right:4px;min-width:70px;gap:3px}
#results .result-score b{font-size:17px}
#results .result-row .status-pill{flex:0 0 auto;white-space:nowrap}
#results .sr-history-decision{display:inline-flex;align-items:center;gap:7px;flex:0 0 auto;max-width:100%;padding:7px 10px;border:1px solid transparent;border-radius:9px;background:transparent;color:#b9b0f7;font-size:11px;font-weight:700;line-height:1.3;white-space:nowrap}
#results .sr-history-decision.approved{color:#79d6ad}
#results .sr-history-decision.rejected{color:#f3a5b1}
#results .sr-history-decision.pending{color:#b9b0f7}
#results .sr-history-decision span{font-size:15px;line-height:1}
@media(max-width:700px){
 #results .result-row{gap:9px 12px;padding:14px}
 #results .result-row-main{flex:1 1 calc(100% - 60px)}
 #results .result-score{margin-left:0;margin-right:auto;min-width:0}
 #results .result-row .status-pill{display:inline-flex!important}
 #results .sr-history-decision{padding:6px 0;white-space:normal}
}

/* SAINT RUSSIA admin section collapsing — no changes to existing section appearance */
section.saint-section-collapsible>.section-heading{position:relative;gap:12px}
section.saint-section-collapsible>.section-heading>.saint-section-toggle{
  flex:0 0 34px;display:inline-flex;align-items:center;justify-content:center;
  width:34px;height:34px;margin-left:auto;padding:0;
  border:1px solid #3e4b67;border-radius:10px;
  background:#202b42;color:#b8a9ff;cursor:pointer;
  transition:background .2s ease,border-color .2s ease;
}
section.saint-section-collapsible>.section-heading>.saint-section-toggle:hover{background:#2a3552;border-color:#8878ec}
section.saint-section-collapsible>.section-heading>.saint-section-toggle:focus-visible{outline:2px solid #a38bff;outline-offset:2px}
.saint-section-chevron{display:block;width:9px;height:9px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(225deg) translate(-2px,-2px);transition:transform .3s ease}
.saint-section-is-collapsed .saint-section-chevron{transform:rotate(45deg) translate(-2px,-2px)}
.saint-section-content{display:grid;grid-template-rows:1fr;opacity:1;transition:grid-template-rows .32s ease,opacity .24s ease;min-height:0}
.saint-section-content>*{min-height:0}
.saint-section-is-collapsed>.saint-section-content{grid-template-rows:0fr;opacity:0;pointer-events:none}
.saint-section-content{overflow:hidden}
.saint-section-is-collapsed>.section-heading{margin-bottom:0!important}
@media(prefers-reduced-motion:reduce){.saint-section-content,.saint-section-chevron{transition:none!important}}

.saint-section-inner{min-height:0;overflow:hidden}

/* SAINT RUSSIA Exam — mobile layout refinements */
@media(max-width:700px){
html,body{max-width:100%;overflow-x:clip}
.app-shell,.main-area,.page-content{min-width:0;max-width:100%}
.page-content{padding:16px 12px 32px}
.sidebar{max-width:100%;box-sizing:border-box}
.sidebar nav a{min-height:44px;overflow-wrap:anywhere}
.topbar{min-height:60px;height:auto;padding:10px 14px;gap:10px}
.welcome-hero,.admin-welcome{min-width:0;padding:24px 18px;border-radius:18px}
.welcome-hero h1,.admin-welcome h1{font-size:clamp(24px,7vw,32px);overflow-wrap:anywhere}
.hero-art,.admin-welcome-art{pointer-events:none}
.profile-card,.profile-main,.profile-stats,.section-heading,.test-card-head,.result-banner,.admin-control-card{min-width:0}
.profile-card{flex-wrap:wrap;align-items:flex-start;gap:16px}
.profile-main{flex:1 1 220px}
.profile-stats{width:100%;justify-content:space-between;flex-wrap:wrap}
.section-heading h2{font-size:clamp(19px,5.6vw,25px)}
.panel,.test-card,.settings-card,.editor-panel,.admin-control-card{max-width:100%}
.answer-options{grid-template-columns:minmax(0,1fr);margin-left:0}
.answer-option{min-height:48px;min-width:0}
.answer-text,.question-card legend{overflow-wrap:anywhere}
.hero-actions .button,.submit-row .button{min-height:44px}
.admin-tabs,.filter-bar{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
.admin-tabs a{flex-shrink:0;min-height:44px}
.filter-bar input,.filter-bar select,.settings-card input,.settings-card select,.editor-panel input,.editor-panel select,.editor-panel textarea{max-width:100%;min-width:0}
.admin-stats,.edit-grid,.result-row,.result-row-main,.detail-summary{min-width:0}
.result-row{flex-wrap:wrap}
.table-wrap,.table-responsive,.table-container{overflow-x:auto;max-width:100%;-webkit-overflow-scrolling:touch}
img,video,iframe,svg{max-width:100%}
#exam-form.sr-exam-modal{width:min(100%,640px);max-width:100%;overscroll-behavior:contain}
.sr-exam-top,.sr-exam-surface,.sr-exam-footer{min-width:0}
.sr-exam-footer .button{min-height:44px}
}
@media(max-width:390px){.page-content{padding-inline:10px}.welcome-hero,.admin-welcome{padding:20px 15px}.test-card,.profile-card{padding:16px 13px}.top-user{min-width:0}.sr-exam-footer{gap:8px}}
@media(hover:none) and (pointer:coarse){button,a,input,select,textarea{touch-action:manipulation}input,select,textarea{font-size:16px}}
