/* Training content follows the observed PROФТЕХ layouts, scoped to these views. */
/* Category picker and ticket list match the reference at desktop and mobile sizes. */
/* Exam creation layout is scoped separately from lesson and APK forms. */
/* Keep the shared sidebar theme when opening training sections. */
body.training-active main>header{display:none}body.training-active main{padding:0}
.tr-view{--tr-primary:#0099b1;--tr-link:#188c9e;color:#353b40;background:#f8f9fa;min-height:calc(100vh - 0px);font:15px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif}.tr-view[hidden]{display:none!important}.tr-view *,.tr-dialog *{box-sizing:border-box}.tr-view button,.tr-dialog button{font:inherit;font-size:14px;border:0;border-radius:4px;background:transparent;color:var(--tr-link,#188c9e);padding:9px 15px;cursor:pointer;box-shadow:none;min-height:38px}.tr-view button:hover,.tr-dialog button:hover{background:#e8f3f5}.tr-view button:disabled,.tr-dialog button:disabled{opacity:.5;cursor:default}.tr-view a,.tr-dialog a{color:#188c9e}.tr-view h2,.tr-view h3,.tr-dialog h2{font-weight:500;line-height:1.35;letter-spacing:0}.tr-view h2{font-size:18px}.tr-view h3{font-size:16px}.tr-top,.tr-subnav,.tr-pagination{display:flex;gap:3px;align-items:center;flex-wrap:wrap;background:white;border-bottom:1px solid #ddd;padding:16px 24px}.tr-top{min-height:87px;justify-content:space-between}.tr-tabs,.tr-categories{display:flex;align-items:center;gap:2px;flex-wrap:wrap}.tr-view .tr-active,.tr-dialog .tr-primary{color:white;background:#0099b1}.tr-view .tr-active:hover,.tr-dialog .tr-primary:hover{background:#00849c}.tr-categories button:not(.tr-active){text-decoration:underline}.tr-menu{position:relative}.tr-menu summary{padding:9px 15px;cursor:pointer;color:#188c9e}.tr-menu>div{position:absolute;right:0;z-index:5;min-width:230px;max-height:400px;overflow:auto;background:white;border:1px solid #ddd;box-shadow:0 3px 12px #0002;padding:6px}.tr-menu>div button{display:block;text-align:left;width:100%}.tr-lesson-title{font-size:18px;font-weight:700;text-transform:uppercase;margin:0;display:flex;align-items:center;gap:12px}.tr-pagination{gap:8px;padding-top:12px;padding-bottom:12px}.tr-pagination button{min-width:34px;padding:5px 10px;min-height:32px}.tr-addbar{padding:16px 24px;background:#eafbff;border-bottom:1px solid #ddd}.tr-addbar>div:first-child{display:flex;justify-content:space-between;color:#647078;font-size:13px}.tr-add-actions{display:flex;gap:4px;flex-wrap:wrap}.tr-add-actions button{color:#56646b;padding:8px 10px}.tr-icon{width:24px;height:24px;display:inline-block;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.tr-small-icon{width:17px;height:17px}.tr-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;padding:24px}.tr-card{background:white;border:1px solid #ddd;border-radius:10px;box-shadow:0 2px 4px #0002;padding:16px;min-height:172px;display:flex;flex-direction:column;position:relative}.tr-card h3{font-size:14px;margin:0 20px 22px 0;font-weight:400}.tr-card .tr-remove{position:absolute;right:3px;top:2px;padding:4px 8px;min-height:24px;font-size:20px}.tr-card-tools{margin-top:auto;display:flex;align-items:center;gap:6px;justify-content:flex-end}.tr-card-tools button{padding:2px 7px;min-height:24px;color:#8d9aa0}.tr-resource-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin:auto 0 18px}.tr-resource-actions button{padding:0 2px;font-size:12px;display:flex;align-items:center;flex-direction:column;gap:5px}.tr-resource-actions svg{width:29px;height:29px}.tr-card-status{font-size:12px;color:#777;margin-top:auto}.tr-dot{display:inline-block;width:11px;height:11px;border-radius:50%;background:#ffdf00;margin-right:4px}.tr-dot.good{background:#4caf50}.tr-dot.bad{background:#ff7043}.tr-muted{font-size:13px;color:#7e858a}.tr-main{padding:20px 24px}.tr-main h3{margin:0 0 5px}.tr-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin:16px 0 32px}.tr-overview-col{display:flex;flex-direction:column;gap:16px}.tr-view .tr-tile{display:flex;align-items:center;gap:18px;text-align:left;border:1px solid #ddd;border-radius:11px;background:white;box-shadow:0 2px 4px #0002;min-height:74px;padding:15px 18px;width:100%;font-size:15px}.tr-tile small{display:block;color:#777;font-size:12px;margin-top:2px}.tr-view .tr-tile:hover{background:#f2fafb}.tr-view .tr-special{color:white;background:linear-gradient(125deg,#155e72,#438da5);border:0}.tr-view .tr-special:hover{background:#1c7285}.tr-view .tr-special.marathon{background:linear-gradient(125deg,#8e0d09,#c82924)}.tr-special small{color:#eee}.tr-sort{padding:16px 24px;background:white;border-bottom:1px solid #ddd;display:flex;gap:4px}.tr-lists{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px;padding:18px 24px}.tr-view .tr-test-row{display:flex;gap:12px;align-items:center;text-align:left;font-size:15px;min-height:74px;padding:8px 2px;text-decoration:underline}.tr-progress-ring{border:3px solid #e9ebec;border-radius:50%;width:47px;height:47px;flex:0 0 47px;color:#c9ced0;font-size:12px;text-align:center;line-height:12px;padding:9px 0}.tr-progress-ring.played{border-color:#fa6636}.tr-progress-ring.passed{border-color:#55ad59;color:#55ad59}.tr-empty{text-align:center;padding:32px 24px;color:#343a40}.tr-empty img{display:block;width:215px;height:155px;object-fit:contain;margin:auto auto 12px}.tr-empty h2{font-size:20px;font-weight:400;margin:5px 0}.tr-empty p{color:#777;font-size:13px;margin-top:6px}.tr-view .tr-green,.tr-dialog .tr-green{background:#4caf50;color:white}.tr-view .tr-danger,.tr-dialog .tr-danger{color:#e66b42}.tr-exam-form{max-width:520px}.tr-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px 24px}.tr-field{display:flex;flex-direction:column;gap:6px}.tr-field>span,.tr-field>label{font-size:12px;font-weight:600;text-transform:uppercase;color:#92979b}.tr-view input,.tr-view select,.tr-view textarea,.tr-dialog input,.tr-dialog select,.tr-dialog textarea{font:inherit;font-size:14px;min-height:38px;width:100%;border:1px solid #ccc;border-radius:3px;background:white;color:#444;padding:7px 12px;box-shadow:none}.tr-view input[type=checkbox],.tr-dialog input[type=checkbox]{width:15px;min-height:15px;height:15px;padding:0;vertical-align:middle}.tr-full{grid-column:1/-1}.tr-view .tr-input-button{display:flex;align-items:center;border:1px solid #ccc;background:#fff;border-radius:3px;color:#333;min-height:38px}.tr-input-button input{border:0;min-width:0}.tr-input-button button{border-left:1px solid #ddd;border-radius:0;min-height:36px;color:#333}.tr-selected-people{margin:10px 0;display:flex;flex-wrap:wrap;gap:6px}.tr-chip{background:#e7f3f5;border-radius:4px;font-size:13px;padding:3px 7px;display:flex;align-items:center;gap:4px}.tr-chip button{padding:0 5px;min-height:22px}.tr-form-error,.tr-error{color:#bc3c28!important;white-space:pre-wrap}.tr-notice{padding:12px 24px;background:#eafbff;border-bottom:1px solid #b6e2eb;font-size:13px}.tr-exam-row{display:flex;align-items:center;gap:16px;padding:18px 20px;background:white;border:1px solid #ddd;border-radius:6px;margin-bottom:12px}.tr-exam-row>div:first-child{flex:1}.tr-exam-row h3{margin:0 0 4px}.tr-dialog{--tr-link:#188c9e;width:min(800px,calc(100vw - 32px));max-width:800px;border:1px solid #ddd;border-radius:4px;padding:0;color:#343a40;font:15px/1.5 system-ui,sans-serif;max-height:92vh;box-shadow:0 8px 40px #0002}.tr-dialog::backdrop{background:#0008}.tr-dialog .tr-dialog-head{display:flex;align-items:center;justify-content:space-between;padding:15px;border-bottom:1px solid #ddd}.tr-dialog-head h2{font-size:16px;margin:0}.tr-dialog-head button{font-size:26px;color:#888;min-height:30px;line-height:1;padding:0 7px}.tr-dialog-body{padding:16px;max-height:70vh;overflow:auto}.tr-dialog-footer{padding:12px 16px;border-top:1px solid #ddd;display:flex;justify-content:flex-end;gap:8px}.tr-dialog .tr-pick-list{margin-top:12px;max-height:48vh;overflow:auto}.tr-pick-list button{display:block;width:100%;text-align:left;padding:10px 12px;border-bottom:1px solid #eee;color:#333;border-radius:0}.tr-pick-list button.selected{background:#0099b1;color:white}.tr-pick-list label{display:block;padding:9px;border-bottom:1px solid #eee;cursor:pointer}.tr-pick-list small{float:right;color:#888}.tr-preview-frame{width:100%;height:65vh;border:0;background:white}.tr-player-top{display:flex;align-items:center;gap:16px;border-bottom:1px solid #ddd;padding:16px 24px;position:sticky;top:0;background:#f8f9fa;z-index:2}.tr-player-stats{display:flex;gap:16px;white-space:nowrap}.tr-player-stats small{display:block;color:#777;font-size:12px}.tr-player-numbers{display:flex;gap:4px;overflow:auto;flex:1}.tr-view .tr-player-numbers button{border:1px solid #ccc;border-radius:3px;min-width:40px;padding:5px 9px}.tr-player-numbers button.correct{background:#4caf50;color:white}.tr-player-numbers button.wrong{background:#e46a49;color:white}.tr-player-numbers button.current{outline:2px solid #2dbdc8;outline-offset:-2px}.tr-question{max-width:680px;margin:20px auto;padding:0 20px 24px}.tr-question h2{font-size:19px;font-weight:500;margin:10px 0 16px}.tr-question-images{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}.tr-question-images img{max-width:100%;max-height:350px;object-fit:contain}.tr-answers{background:white;border:1px solid #ddd;box-shadow:0 2px 4px #0002;border-radius:3px;overflow:hidden;margin:16px 0}.tr-view .tr-answer{width:100%;text-align:left;padding:14px 16px;border-bottom:1px solid #ddd;color:#343a40;display:flex;align-items:flex-start;gap:8px;border-radius:0}.tr-answer:last-child{border-bottom:0}.tr-answer>span:first-child{flex:0 0 36px;text-align:center;border:1px solid #ccc;border-radius:3px;background:linear-gradient(#fff,#e7e7e7);font-size:13px}.tr-view .tr-answer.correct{background:#dff1e0}.tr-view .tr-answer.wrong{background:#f9d9d2}.tr-view .tr-answer.selected{outline:2px solid #0099b1;outline-offset:-2px}.tr-answer img{max-width:150px;max-height:120px}.tr-explanation{background:#dff5fc;border:1px solid #bfe6ee;padding:16px;font-size:14px;white-space:pre-wrap}.tr-view .tr-next{width:100%;border:1px solid #ddd;color:#333;margin-bottom:16px}.tr-player-settings{font-size:13px;line-height:1.9}.tr-player-settings button{padding:0 4px;min-height:22px}.tr-history{width:100%;border-collapse:collapse;background:white}.tr-history th,.tr-history td{padding:12px;border-bottom:1px solid #ddd;text-align:left}.tr-finished{text-align:center;padding:36px 20px}.tr-finished h2{font-size:24px}.tr-plain-content{white-space:pre-wrap}.tr-link-card{overflow-wrap:anywhere}
@media(min-width:1450px){.tr-cards{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:1050px){.tr-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.tr-top{gap:12px}.tr-overview{gap:16px}.tr-player-top{flex-wrap:wrap}.tr-player-numbers{order:3;flex-basis:100%}}@media(max-width:650px){.tr-cards,.tr-lists,.tr-overview,.tr-form-grid{grid-template-columns:1fr}.tr-top,.tr-subnav,.tr-main,.tr-pagination,.tr-addbar,.tr-sort{padding-left:16px;padding-right:16px}.tr-cards{padding:16px;gap:16px}.tr-full{grid-column:auto}.tr-exam-row{flex-wrap:wrap}.tr-player-top{padding:12px}.tr-view .tr-tile{min-height:70px}.tr-dialog{width:calc(100vw - 16px)}}

body.training-active aside .nav{padding:8px 12px;min-height:38px;font-size:14px;line-height:1.3}body.training-active aside .nav-label{margin:16px 12px 8px}body.training-active aside .brand{padding-bottom:16px;margin-bottom:8px}.tr-view button{font-weight:400}.tr-card-tools{margin-top:5px}.tr-view .tr-card-status button{font-size:12px;padding:0;min-height:22px}.tr-view .tr-card{min-height:170px}.tr-card .tr-resource-actions{margin-top:0}.tr-card .tr-muted{margin:0 0 12px}

.tr-view .tr-field,.tr-dialog .tr-field{margin:0;font-weight:400}.tr-field>label{margin:0;font-size:14px;font-weight:400;text-transform:none;color:#444}.tr-view .tr-answer:disabled{opacity:1}.tr-exam-form{max-width:464px}.tr-form-grid{gap:24px}.tr-exam-form .tr-input-button input{font-weight:400}

.tr-inline-menu{display:inline-block;position:relative;color:#188c9e;cursor:pointer}.tr-inline-menu summary{list-style:none}.tr-inline-menu>div{position:absolute;top:100%;left:0;z-index:5;min-width:220px;border:1px solid #ddd;background:#fff;box-shadow:0 3px 10px #0002;padding:6px}.tr-inline-menu>div button{display:block;width:100%;text-align:left;padding:7px 12px;min-height:32px}

.tr-archive-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px;padding:8px 24px 24px}.tr-archive-filters{display:flex;gap:12px;margin-bottom:16px}.tr-archive-filters>*{min-width:0}.tr-calendar{background:white;border:1px solid #ddd;border-radius:10px;box-shadow:0 2px 4px #0001}.tr-calendar-head{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ddd}.tr-calendar-head span{text-transform:capitalize}.tr-calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:8px;padding:24px 16px}.tr-calendar-grid button{padding:7px;min-width:0}.tr-print-sheet article{border-top:1px solid #ddd;padding:12px 0;break-inside:avoid}.tr-print-sheet h3{font-size:15px;font-weight:500}@media(max-width:800px){.tr-archive-layout{grid-template-columns:1fr}.tr-archive-panel{order:-1;max-width:360px}}@media print{body.training-print>#workspace,body.training-print>.login,body.training-print>dialog:not(.tr-dialog){display:none!important}body.training-print .tr-dialog{position:static!important;width:100%;max-width:none;max-height:none;overflow:visible;border:0;box-shadow:none;margin:0}body.training-print .tr-dialog-head,body.training-print .tr-dialog-footer{display:none}body.training-print .tr-dialog-body{max-height:none;overflow:visible;padding:0}body.training-print .tr-dialog::backdrop{display:none}}

.tr-mobilebar,.tr-mobile-close{display:none}@media(max-width:900px){body.training-active #workspace{display:block}body.training-active aside{display:none;position:fixed;top:0;bottom:0;left:0;width:240px;z-index:30;overflow:auto;padding:16px;box-shadow:0 4px 24px #0005}body.training-active.tr-menu-open aside{display:block}body.training-active aside .nav{display:block;width:100%;text-align:left}body.training-active aside .nav-label{display:block}body.training-active main{margin:0;width:100%}.tr-mobilebar{display:flex;background:#0099b1;min-height:52px;align-items:center;padding:0 16px}.tr-view .tr-mobilebar button{color:#fff;font-size:13px;font-weight:600;padding:9px 16px}body.training-active .tr-mobile-close{display:block;color:white;border:0;background:transparent;margin-bottom:12px;padding:8px}}@media(min-width:481px) and (max-width:650px){.tr-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}

@font-face{font-family:Montserrat;src:url('/training-assets/montserrat-cyrillic.woff2') format('woff2');font-style:normal;font-weight:100 900;font-display:swap;unicode-range:U+0400-052F,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}
@font-face{font-family:Montserrat;src:url('/training-assets/montserrat-latin.woff2') format('woff2');font-style:normal;font-weight:100 900;font-display:swap;unicode-range:U+0000-024F,U+1E00-1EFF,U+2000-206F,U+20A0-20CF,U+2100-214F}
.tr-view h2,.tr-view h3,.tr-lesson-title,.tr-dialog h2{font-family:Montserrat,system-ui,sans-serif}
.tr-stop-dialog{width:500px;max-width:calc(100vw - 24px);margin:15px auto 0;align-self:start}.tr-stop-dialog .tr-dialog-head{display:none}.tr-stop-dialog .tr-dialog-body{padding:16px;line-height:1.5}.tr-stop-dialog .tr-dialog-body strong{font-weight:700}.tr-stop-dialog #tr-dialog-error:empty{display:none}.tr-stop-dialog .tr-dialog-footer{justify-content:space-between;background:#f8f9fa;padding:12px;border-top:1px solid #ddd}.tr-stop-dialog .tr-dialog-footer button{border:1px solid #ddd;color:#343a40;background:#f8f9fa;padding:8px 12px}.tr-stop-dialog .tr-dialog-footer .tr-stop-confirm{background:#ff6522;border-color:#ff6522;color:white}.tr-player-complete .tr-player-numbers{flex-wrap:wrap;overflow:visible}.tr-player-complete{align-items:flex-start}.tr-result-button{border:1px solid #ccc!important;white-space:nowrap}.tr-result-art{width:260px;height:230px;max-width:100%;object-fit:contain;display:block;margin:auto}.tr-finished{padding:16px 24px}.tr-finished h2{font-size:24px;margin:16px 0 8px;font-weight:500}.tr-finished h3{font-size:18px;font-weight:500;margin:20px 0 16px}.tr-success-text{color:#5ca46d}.tr-result-actions{display:flex;justify-content:center;gap:16px;flex-wrap:wrap}.tr-view .tr-result-actions button{border:1px solid #ddd;color:#222;background:#f8f9fa}.tr-view .tr-result-actions button:hover{background:#edf4f5}.tr-view .tr-danger{color:#ff6b35}

.tr-apk-devices{margin:24px 0 12px;max-width:810px}.tr-apk-device{display:grid;grid-template-columns:1fr 1fr 1fr;background:white;border:1px solid #ddd;border-radius:10px;box-shadow:0 2px 4px #0002;padding:16px;margin-bottom:16px;gap:12px}.tr-apk-device>div{padding:0 12px;border-right:1px solid #ddd}.tr-apk-device>div:first-child{padding-left:0}.tr-apk-device>div:last-child{border:0}.tr-apk-device small{display:block;color:#777;font-size:12px;margin-top:4px}.tr-apk-device .tr-menu summary{padding:0;display:flex;gap:12px;font-size:14px}.tr-apk-device .tr-menu>div{left:0;right:auto;min-width:180px}.tr-apk-settings{width:500px;max-width:calc(100vw - 24px);margin:28px auto 0}.tr-apk-settings .tr-dialog-head,.tr-apk-settings .tr-dialog-footer{background:#f8f9fa}.tr-apk-settings .tr-dialog-body{padding:24px;min-height:200px}.tr-apk-settings .tr-dialog-footer{justify-content:space-between;padding:16px}@media(max-width:650px){.tr-apk-device{grid-template-columns:1fr}.tr-apk-device>div{border-right:0;border-bottom:1px solid #ddd;padding:8px 0}.tr-apk-device>div:last-child{border:0}}

/* Lesson cards follow the source's fixed card width and compact controls. */
#study-view{container-type:inline-size}.tr-study-right{display:flex;align-items:center;gap:24px}.tr-study-right>button{color:#56646b}.tr-lesson-title>button{font-size:22px;padding:0;min-height:30px;font-weight:400}#study-view .tr-top{min-height:76px;padding:16px 13px}#study-view .tr-pagination{min-height:64px;padding:12px 13px;gap:8px}#study-view .tr-addbar{min-height:102px;padding:12px 13px}#study-view .tr-addbar>div:first-child{max-width:1392px}#study-view .tr-add-actions{gap:4px}#study-view .tr-add-actions button{padding:7px 2px;margin-right:10px}#study-view .tr-add-actions svg{width:18px;height:18px}#study-view .tr-cards{grid-template-columns:repeat(auto-fill,minmax(290px,330px));gap:24px;padding:24px 13px}#study-view .tr-card{height:170px;min-height:170px;padding:16px 16px 8px;border-radius:10px}#study-view .tr-card h3{min-height:34px;margin:0 18px 16px 0;font-size:14px;line-height:17px}#study-view .tr-resource-actions{justify-content:space-around;gap:6px;margin:0 0 14px}#study-view .tr-resource-actions button{font-size:13px;min-width:40px}#study-view .tr-card-status{font-size:12px;line-height:18px;margin-top:auto;white-space:nowrap}#study-view .tr-card .tr-remove{top:10px;right:10px;font-size:18px;line-height:20px;min-height:20px;padding:0 3px}#study-view .tr-edit{position:absolute;right:33px;top:10px;min-height:20px;padding:0 3px;line-height:20px;font-size:20px}#study-view .tr-credit-title{padding:0;min-height:0;font-size:14px;text-decoration:underline;line-height:17px}#study-view .tr-card-credit h3{min-height:0;margin-bottom:0;margin-right:45px}#study-view .tr-card-credit .tr-muted{font-size:11px;line-height:17px;margin:0 0 24px}#study-view .tr-card-credit .tr-resource-actions{margin-bottom:12px}#study-view .tr-card-tools{position:absolute;bottom:4px;right:8px;opacity:0;pointer-events:none;background:white}#study-view .tr-card:hover .tr-card-tools,#study-view .tr-card:focus-within .tr-card-tools{opacity:1;pointer-events:auto}#study-view .tr-card-text,#study-view .tr-card-link,#study-view .tr-card-presentation,#study-view .tr-card-youtube,#study-view .tr-card-kinescope,#study-view .tr-card-rutube{height:auto}.tr-credit-dialog{width:500px;margin:28px auto 0}.tr-credit-dialog .tr-field+.tr-field{margin-top:20px}.tr-credit-dialog .tr-dialog-footer{background:#f8f9fa;justify-content:space-between}@container(max-width:1050px){#study-view .tr-cards{grid-template-columns:repeat(2,minmax(0,1fr))}#study-view .tr-study-right{gap:8px}}@container(max-width:650px){#study-view .tr-top{gap:10px}#study-view .tr-study-right{flex-wrap:wrap}#study-view .tr-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}#study-view .tr-card{padding:12px 10px 8px}#study-view .tr-card h3{font-size:12px}#study-view .tr-card-status{font-size:10px;white-space:normal}#study-view .tr-resource-actions button{font-size:11px;min-width:28px}#study-view .tr-resource-actions svg{width:25px;height:25px}#study-view .tr-card-tools{opacity:1;pointer-events:auto}#study-view .tr-addbar>div:first-child{flex-wrap:wrap}}@container(max-width:480px){#study-view .tr-cards{grid-template-columns:1fr}#study-view .tr-card h3{font-size:14px}#study-view .tr-card-status{font-size:12px}}

.tr-ticket-row{display:flex;align-items:center;gap:8px;min-width:0}.tr-ticket-row .tr-test-row{flex:1;min-width:0}.tr-view .tr-manage-ticket{font-size:12px;white-space:nowrap;border:1px solid #ddd;background:white;padding:6px 10px}.tr-view .tr-question-edit{float:right;font-size:12px;padding:3px 8px;min-height:28px}@media(max-width:650px){.tr-ticket-row{flex-wrap:wrap;padding-bottom:12px}.tr-ticket-row .tr-test-row{flex-basis:100%}.tr-ticket-row .tr-manage-ticket{margin-left:60px}}


.tr-video-dialog{width:1000px;max-width:calc(100vw - 24px)}.tr-video-dialog .tr-dialog-body{padding:0}.tr-video-frame{display:block;width:100%;aspect-ratio:16/9;border:0}.tr-video-link{padding:0 16px;font-size:13px}
#study-view .tr-cards{max-width:1416px;grid-template-columns:repeat(2,minmax(0,1fr))}@media(min-width:1200px){#study-view .tr-cards{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(min-width:1400px){#study-view .tr-cards{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:575px){#study-view .tr-cards{grid-template-columns:1fr}}

/* Player reference: seven columns for the illustration, five for the answers. */
body.training-player-open #workspace{display:grid;grid-template-columns:minmax(0,1fr);border-left:4px solid #0099b1}body.training-player-open main{grid-column:1;min-width:0}body.training-player-open aside{display:none}body.training-active.tr-menu-open aside{display:block}body.training-player-open .tr-view{background:#f8f9fa}.tr-player-top{position:relative;top:auto;padding:16px 24px;max-width:1440px;min-height:80px;margin:0;gap:20px;background:#f8f9fa}.tr-player-stats{font-family:Montserrat,system-ui,sans-serif;gap:14px;font-size:16px;line-height:20px}.tr-player-stats>span{display:block;min-width:52px}.tr-player-stats>span:last-child{min-width:102px}.tr-player-stats small{font-size:13px;color:#6f777d;letter-spacing:0;line-height:20px}.tr-process-dot{display:inline-block;width:8px;height:8px;background:#0099b1;border-radius:50%;margin-right:4px}.tr-player-numbers{min-width:0;gap:4px;align-items:center;scrollbar-width:none}.tr-player-numbers::-webkit-scrollbar{display:none}.tr-view .tr-player-numbers button{flex:0 0 42px;min-width:42px;min-height:36px;height:36px;padding:4px 8px;border-radius:3px;background:transparent;border-color:#c5c9cc;font-size:14px}.tr-view .tr-player-numbers button.current{outline:2px solid #19b4c7;outline-offset:-2px;border-color:#19b4c7}.tr-view .tr-player-numbers button.correct{background:#4caf50;color:#fff}.tr-view .tr-player-numbers button.wrong{background:#e46a49;color:#fff}.tr-view .tr-player-top>[data-tr="stop-player"]{flex:none;white-space:nowrap;border:1px solid #ccc;background:transparent;min-height:36px;padding:5px 12px;border-radius:3px}.tr-question{max-width:1440px;display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:24px;align-items:start;margin:0;padding:16px 24px 32px}.tr-illustration{min-width:0;text-align:center}.tr-illustration>img{display:block;width:100%;height:auto;border-radius:10px;box-shadow:0 16px 32px #0003;margin-bottom:8px}.tr-illustration>img+img{margin-top:12px}.tr-image-switch{display:flex;align-items:center;justify-content:center;gap:8px;font-size:13px;line-height:22px}.tr-image-switch>span{margin-right:0}.tr-view .tr-image-switch button{padding:0;min-height:22px;font-size:14px}.tr-question-content{min-width:0}.tr-question-meta{display:flex;align-items:center;gap:4px;color:#737b80;font-size:12px;line-height:20px;position:relative}.tr-question-meta>span{min-width:0}.tr-question-meta>[data-tr="bookmark"]{padding:0;min-height:22px;font-size:13px;white-space:nowrap;margin-right:4px}.tr-question-tools{margin-left:auto;position:relative;align-self:flex-start}.tr-question-tools>summary{list-style:none;cursor:pointer;color:#899399;line-height:18px;padding:0 4px}.tr-question-tools>button{position:absolute;right:0;top:100%;z-index:4;white-space:nowrap;background:white;border:1px solid #ddd;box-shadow:0 3px 10px #0002}.tr-question-content h2{font:500 18px/1.4 Montserrat,system-ui,sans-serif;margin:6px 0 16px}.tr-question-content .tr-answers{margin:0 0 16px;border-radius:3px;box-shadow:0 2px 4px #0002}.tr-view .tr-question-content .tr-answer{padding:12px 16px;min-height:50px;font-size:14px;line-height:25px;gap:8px;align-items:flex-start}.tr-answer>span:first-child{flex:0 0 38px;height:25px;line-height:23px;box-shadow:0 2px 4px #0002;font-size:13px;border-radius:2px}.tr-answer>span+span{min-width:0}.tr-view .tr-question-content .tr-next{margin:0 0 16px;min-height:42px;padding:8px 12px;border-radius:4px;color:#222;line-height:24px}.tr-next .tr-muted{font-size:12px}.tr-player-settings{font-size:13px;line-height:21px}.tr-player-settings .tr-inline-menu summary{display:inline}.tr-question-content .tr-explanation{margin-bottom:16px}.tr-question-text{display:block;max-width:880px}.tr-player-complete{max-width:1440px}.tr-view .tr-player-complete .tr-player-numbers button{flex-basis:auto;min-width:36px}.tr-player-complete .tr-player-numbers{flex-wrap:wrap}.tr-player-active .tr-player-numbers{order:initial;flex-basis:auto;flex-wrap:nowrap}
@media(max-width:1199px){.tr-question{grid-template-columns:minmax(0,1fr);gap:20px;max-width:900px}.tr-question-text{max-width:880px}.tr-player-top{flex-wrap:wrap;gap:12px}.tr-player-active .tr-player-numbers{order:3;flex-basis:100%}.tr-player-top>[data-tr="stop-player"]{margin-left:auto}.tr-question-content h2{font-size:18px}.tr-illustration{max-width:100%}.tr-player-complete .tr-player-numbers{order:3;flex-basis:100%}}
@media(max-width:575px){.tr-question{padding:16px}.tr-player-top{padding:12px 16px}.tr-player-stats{font-size:14px;gap:12px}.tr-player-stats>span:last-child{min-width:95px}.tr-question-meta{flex-wrap:wrap}.tr-question-tools{margin-left:0}.tr-illustration>img{box-shadow:0 8px 20px #0002}.tr-view .tr-question-content .tr-answer{padding:12px;line-height:22px}.tr-image-switch{margin-top:4px}}

@media(min-width:1200px){.tr-question-illustrated{grid-template-columns:minmax(0,58.333333%) minmax(0,1fr)}}

.tr-question-meta>[data-tr="bookmark"] .tr-icon{width:15px;height:15px;stroke-width:1.6;margin-right:3px}.tr-player-stats .tr-icon{width:16px;height:16px;vertical-align:-2px;stroke-width:1.8}

.tr-category-dialog {
  width:500px;
  max-width:calc(100vw - 24px);
  max-height:calc(100dvh - 56px);
  margin:28px auto 0;
  background:#fff;
}
.tr-category-dialog .tr-dialog-body {
  padding:16px 16px 32px;
  max-height:calc(100dvh - 114px);
  overflow:auto;
}
.tr-category-dialog .tr-dialog-head {height:56px}
.tr-category-dialog .tr-dialog-head button {min-height:24px;line-height:24px}
.tr-category-dialog button {transition:none}
.tr-category-dialog #tr-dialog-error:empty {display:none}
.tr-category-section {padding:16px 0;border-bottom:1px solid #ccc}
.tr-category-main {padding:0 0 16px}
.tr-category-dialog .tr-category-group {
  margin:0 16px 8px;
  color:#343a40;
  font:400 16px/24px system-ui,"Segoe UI",sans-serif;
}
.tr-category-options {display:flex;flex-wrap:wrap;gap:8px 10px;min-width:0}
.tr-category-options + .tr-category-options {margin-top:8px}
.tr-category-dialog .tr-category-options button {
  max-width:100%;
  padding:9px 15px;
  border:0;
  background:transparent;
  color:#188c9e;
  text-align:left;
  text-decoration:underline;
  white-space:normal;
  overflow-wrap:anywhere;
  font-size:15px;
  font-weight:400;
}
.tr-category-dialog .tr-category-options button:hover {background:#e8f3f5}
.tr-category-dialog .tr-category-options button.tr-active {
  color:white;
  background:#0099b1;
  text-decoration:none;
  border-radius:10px;
}
.tr-category-gost .tr-category-options {display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:0}
.tr-category-gost .tr-category-options button {padding-left:15px;padding-right:6px}
@media(min-width:1200px) {.tr-lists {grid-template-columns:repeat(3,minmax(0,1fr))}}
.tr-ticket-row {position:relative;padding-bottom:0}
.tr-ticket-row .tr-test-row {padding-right:40px}
.tr-view .tr-manage-ticket {position:absolute;right:0;top:22px;margin:0;padding:4px 8px;min-height:30px;opacity:0}
.tr-ticket-row:hover .tr-manage-ticket,.tr-ticket-row:focus-within .tr-manage-ticket {opacity:1}
#testings-view .tr-tabs .tr-icon {width:18px;height:18px}
#testings-view .tr-tabs button:not(.tr-active),#testings-view .tr-sort button:not(.tr-active) {color:#343a40}
@media(hover:none) {.tr-view .tr-manage-ticket {opacity:1}}
@media(max-width:500px) {
  .tr-category-dialog {margin-top:12px;max-height:calc(100dvh - 24px)}
  .tr-category-dialog .tr-dialog-body {max-height:calc(100dvh - 82px);padding:16px}
  .tr-category-gost .tr-category-options {grid-template-columns:repeat(4,minmax(0,1fr))}
  .tr-category-options {gap:8px 0}
}
body.training-player-open #workspace>main{margin:0!important;width:100%;min-width:0}

/* Keep lesson and overview cards at the reference width inside the workspace. */
body.training-active #workspace > main { min-width:0; max-width:none; }
#study-view .tr-cards {
  grid-template-columns:repeat(4,minmax(0,330px));
}
@container(max-width:1257px) { #study-view .tr-cards { grid-template-columns:repeat(3,minmax(0,330px)); } }
@container(max-width:943px) { #study-view .tr-cards { grid-template-columns:repeat(2,minmax(0,330px)); } }
@container(max-width:629px) { #study-view .tr-cards { grid-template-columns:minmax(0,330px); } }
body .tr-view button, body .tr-dialog button { font-family:inherit; }
#study-view .tr-card h3 { color:#353b40; }
#study-view .tr-pagination button { color:#353b40; }
#study-view .tr-pagination button.tr-active { color:#fff; }
#study-view .tr-addbar > div:first-child { align-items:center; }
#study-view .tr-addbar, #study-view .tr-add-actions button { color:#647078; }
#study-view .tr-addbar [data-tr="plan"] { color:#188c9e; text-decoration:underline; }
#testings-view .tr-overview {
  max-width:1038px;
  grid-template-columns:repeat(3,minmax(0,330px));
  gap:24px;
}
#testings-view .tr-overview-col { min-width:0; }
#testings-view .tr-tile > .tr-icon { flex-shrink:0; }
#testings-view .tr-tile > span { min-width:0; }
#testings-view .tr-special small {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
#testings-view .tr-special {
  background-image:linear-gradient(110deg,#15566ee8,#25869dcc),url('/training-assets/training-pattern.svg');
  background-size:auto,330px 120px;
  font-weight:600;
}
#testings-view .tr-special.marathon {
  background-image:linear-gradient(110deg,#980f0de8,#c52121cc),url('/training-assets/training-pattern.svg');
}
#testings-view .tr-special small { font-weight:400; }
#inner-exams-view .tr-top { min-height:72px; padding:16px 20px; }
#inner-exams-view .tr-subnav { min-height:72px; }
#inner-exams-view .tr-exam-form { width:100%; max-width:684px; }
#inner-exams-view .tr-form-grid { grid-template-columns:repeat(12,minmax(0,1fr)); gap:24px; }
#inner-exams-view .tr-form-grid > .tr-field { grid-column:span 6; min-width:0; }
#inner-exams-view .tr-form-grid > .tr-full { grid-column:1 / -1; }
#inner-exams-view .tr-field:has(> input[name="title"]) { grid-column:span 8; }
#inner-exams-view .tr-field:has(> select[name="category"]) { grid-column:span 4; }
#inner-exams-view .tr-field > span:first-child:not(.tr-input-button) { color:#92979b; }
#inner-exams-view .tr-exam-form :is(input:not([type="checkbox"]),select) {
  min-width:0;
  min-height:38px;
  height:38px;
  border-radius:3px;
  padding:8px 12px;
  margin:0;
  font:400 14px/20px system-ui,"Segoe UI",sans-serif;
}
#inner-exams-view .tr-input-button > input { height:36px; min-height:36px; }
#inner-exams-view .tr-input-button > button { height:36px; min-height:36px; padding:6px 12px; }
#inner-exams-view .tr-input-button > button .tr-icon { width:20px; height:20px; }
#inner-exams-view .tr-field > .tr-input-button { font-size:14px; font-weight:400; text-transform:none; }
#inner-exams-view .tr-field > .tr-input-button, #inner-exams-view .tr-field > div > .tr-input-button { min-height:38px; padding-top:7px; padding-bottom:7px; }
#inner-exams-view .tr-field > span.tr-input-button { height:38px; padding:0; }
#inner-exams-view .tr-field > select[name="count"] { max-width:212px; }
#inner-exams-view .tr-field > div:has(> [data-kind="students"]) { display:flex; gap:8px; flex-wrap:wrap; }
#inner-exams-view .tr-field > label:has(> input[type="checkbox"]) { display:flex; align-items:center; gap:4px; }
#inner-exams-view input[type="checkbox"] { width:auto; margin:0; }
#inner-exams-view .tr-selected-people:empty, #inner-exams-view #tr-form-error:empty { display:none; }
#inner-exams-view > .tr-main {padding:24px}
#inner-exams-view .tr-tabs .tr-icon, #inner-exams-view .tr-subnav .tr-icon {width:18px;height:18px;margin-right:6px}
#inner-exams-view .tr-tabs button:not(.tr-active), #inner-exams-view .tr-subnav button:not(.tr-active) {color:#555}
#inner-exams-view .tr-subnav .tr-exam-help {color:#999}
#inner-exams-view .tr-exam-help .tr-icon {color:#55bbce;width:16px;height:16px}
#tr-exam-form .tr-form-grid {margin-top:20px}
#inner-exams-view .tr-tabs button, #inner-exams-view .tr-subnav button, #tr-exam-form button {font-size:15px}
#tr-exam-form input:not([type="checkbox"]), #tr-exam-form select {font-size:15px}
#tr-exam-form .tr-field-heading {display:flex;align-items:center;justify-content:space-between;min-height:18px;gap:8px}
#tr-exam-form .tr-field-heading label {margin:0;color:#92979b;font-size:12px;line-height:18px;font-weight:600;text-transform:uppercase}
#tr-exam-form .tr-field-heading .tr-field-help {display:inline-flex;align-items:center;justify-content:center;flex:none;width:12px;height:12px;min-height:12px;padding:0;border-radius:50%;background:#0099b1;color:white;font:700 9px/1 system-ui,sans-serif}
#tr-exam-form .tr-exam-count .tr-field-heading {max-width:212px}
#tr-exam-form .tr-exam-topics {justify-content:space-between;text-align:left;width:100%;gap:8px}
#tr-exam-form .tr-exam-topics .tr-icon {width:18px;height:18px}
#tr-exam-form .tr-exam-student-actions .tr-input-button {display:inline-flex;gap:8px;color:#222}
#tr-exam-form .tr-exam-student-actions .tr-icon {width:18px;height:18px}
#tr-exam-form .tr-exam-repeat label {font-size:15px;line-height:24px}
#tr-exam-form .tr-exam-actions {display:flex;flex-wrap:wrap;gap:8px;margin-top:48px}
#tr-exam-form .tr-exam-actions .tr-green {background:#4caf50;color:white}
#tr-exam-form .tr-exam-actions .tr-green:hover {background:#449d48}
@media(max-width:1150px) {
  #testings-view .tr-overview { grid-template-columns:repeat(2,minmax(0,330px)); gap:16px; }
}
@media(max-width:650px) {
  #testings-view .tr-overview { grid-template-columns:minmax(0,330px); }
  #inner-exams-view .tr-form-grid { grid-template-columns:minmax(0,1fr); }
  #inner-exams-view #tr-exam-form .tr-form-grid > .tr-field { grid-column:1 / -1; }
  #inner-exams-view > .tr-main {padding:20px 16px}
  #tr-exam-form .tr-exam-actions {margin-top:32px}
}
