/* Corporate visual language shared with the «Современное образование» site. */
@font-face{font-family:Inter;src:url('./brand/inter-regular.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:Inter;src:url('./brand/inter-semibold.woff2') format('woff2');font-weight:600;font-display:swap}
@font-face{font-family:Inter;src:url('./brand/inter-bold.woff2') format('woff2');font-weight:700;font-display:swap}
:root{--green:#4268ee;--green2:#3154ce;--lime:#edf2ff;--ink:#19283d;--muted:#667286;--line:#dde4f0;--bg:#f5f7fc;--shadow:0 8px 28px #29406a06}
body{-webkit-font-smoothing:antialiased}.sidebar{width:264px;padding:28px 20px;border-right-color:#e4e9f4}.shell{margin-left:264px}.brand{display:block;margin:0 2px;letter-spacing:-.45px}.brand img{display:block;width:220px;max-width:100%;height:auto}.app-brand{display:block;font-size:17px;line-height:1.4;border-top:1px solid var(--line);margin-top:22px;padding-top:20px;font-weight:600}.app-brand small{color:var(--muted);font-size:12px;font-weight:400;margin-top:3px}.navlabel{margin:34px 13px 12px;color:#8b95a5}.navitem{color:#637189;padding:14px 13px;border-radius:10px;font-size:12px;gap:10px}.navitem.active{background:#edf2ff;color:#3154ce}.navitem:hover{background:#f2f5fc}.sidebar-note{color:#3154ce}.version,.avatar{background:#edf2ff;color:#3154ce}.live-dot{background:#4268ee}.topbar{background:#fff;border-bottom-color:#e8edf5}.breadcrumb,.private-label{color:#667286}.breadcrumb b{color:#19283d}.breadcrumb span{color:#b8c3d5}.view{padding-top:34px}.page-heading{gap:24px}.page-heading h1{font-size:32px;letter-spacing:-1.3px;line-height:1.2;max-width:720px}.heading-sub{display:block;font-size:22px;font-weight:400;color:#667286;letter-spacing:-.55px;margin-top:7px}.eyebrow{color:#4268ee;letter-spacing:.12em}.page-heading p{line-height:1.65;max-width:620px}.button{border-radius:9px;font-weight:600;min-height:42px}.button.primary{background:#4268ee}.button.primary:hover{background:#3154ce}.button.secondary{color:#304463;border-color:#ccd7f3}.button.secondary:hover{background:#edf2ff;border-color:#9eb4fa}.text-btn{color:#3154ce}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #eead54}input:focus,select:focus,textarea:focus{outline:2px solid #4268ee;outline-offset:2px}
.workspace-savebar{background:white;border:1px solid #dde4f0;border-radius:14px;gap:20px;padding:20px 22px}.workspace-savebar>div:first-child{flex:1}.workspace-savebar b{color:#354b70}.workspace-savebar small{color:#667286}.calculation-actions{display:flex;gap:10px;align-items:stretch;flex-wrap:wrap;flex-shrink:0;max-width:100%}.button.clear-calculation{background:#fff;color:#49566c;border-color:#cbd5e5;padding:14px 18px;min-height:52px}.button.clear-calculation:hover{background:#f2f5fc;border-color:#8ea4c8}.button.replace-calculation{background:#edf2ff;border-color:#c7d4fc;color:#3154ce;min-height:52px;padding:14px 18px;font-size:12px;white-space:normal;max-width:270px}.button.replace-calculation:hover{background:#dfe8ff}
.datebar,.table-card,.empty-section{border-radius:14px}.icon-tile{color:#4268ee;background:#edf2ff;border-color:#dde6ff}.segmented{background:#f2f5fc;border-color:#e4e9f4}.segmented button{color:#667286}.date-field input{color:#354b70}.upload-card{background:#fff;border-color:#bbcafa;border-radius:18px;min-height:310px}.upload-card.dragging{background:#edf2ff;border-color:#4268ee}.upload-illustration{color:#4268ee}.upload-illustration .icon{background:#edf2ff}.upload-illustration .plus{border-color:white}.upload-card p{color:#667286}.upload-card small{color:#7a879c}.workflow-card{background:#edf2ff;border-color:#e0e8fc;border-radius:18px}.workflow-card h2{color:#243b66}.workflow-card .eyebrow,.workflow-card li>span{color:#4268ee}.workflow-card li b{color:#354b70}.workflow-card li p{color:#667286}.workflow-foot{border-color:#d4def5;color:#667286}.notice.info{background:#edf2ff;color:#354b70;border-color:#d9e3ff}.memory-status{background:#f0f4ff;color:#354b70;border-color:#d9e3ff}.memory-count{background:#dde7ff;color:#3154ce}.memory-steps>div,.memory-record,.official-panel,.guide-content section,.calendar-item{border-color:#dde4f0}.memory-steps>div{background:#fff}.memory-steps b{color:#3154ce}.filter-tabs button.selected{color:#3154ce;background:#edf2ff}.table-toolbar{border-color:#e4e9f4}.table-search input{color:#19283d}.table-footer{color:#667286}.table-card th{background:#f8faff;color:#667286}.table-card tbody tr:hover{background:#f8faff}.small-tag{background:#edf2ff;color:#3154ce}.export-help{color:#667286}.admin-overview article,.admin-roles article,.admin-audit{border-color:#dde4f0;border-radius:14px}.admin-overview b{color:#4268ee}.admin-overview span,.admin-roles p,.admin-footnote,.staff-table small,.staff-dialog small{color:#667286}.staff-dialog label{color:#354b70}.staff-dialog input:not([type=checkbox]),.staff-dialog select,#staffFilter{border-color:#ccd7f3;border-radius:8px}.staff-checkbox input{accent-color:#4268ee}.staff-dialog input:disabled{color:#667286;background:#f2f5fc}.admin-audit p{border-color:#e8edf5}.account-gate{border-color:#dde4f0}.toast{background:#19283d}footer{color:#54647e;line-height:1.6}footer span{color:#7a879c}
@media(max-width:1400px){.workspace-savebar{align-items:stretch;flex-direction:column;gap:14px}.calculation-actions{justify-content:flex-end}.button.replace-calculation{max-width:none}.page-heading h1{font-size:29px}}
@media(max-width:1000px){.sidebar{width:230px;padding:26px 16px}.shell{margin-left:230px}.brand img{width:198px}.app-brand{font-size:16px}.calculation-actions .button.replace-calculation{width:auto;flex:1}.page-heading{align-items:flex-start}.heading-sub{font-size:20px}}
@media(max-width:760px){.sidebar{width:68px;padding:20px 10px}.shell{margin-left:68px}.brand{width:44px;height:44px;overflow:hidden;margin:0}.brand img{width:183px;max-width:none;height:44px;object-fit:contain}.app-brand,.sidebar-note,.profile,.navlabel{display:none}.navitem{font-size:0;padding:13px;gap:0}.sidebar nav{margin-top:28px}.heading-sub{font-size:18px}.page-heading h1{font-size:26px}.workspace-savebar{padding:17px}.calculation-actions{gap:8px}.calculation-actions .button{font-size:11px;min-height:48px}.calculation-actions .button.replace-calculation{max-width:none;flex:1 1 190px}.calculation-actions .clear-calculation{flex:1 1 82px}.private-label{font-size:0}.view{padding-top:25px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
/* Larger Excel area and stronger contrast for long estimates. */
:root{--muted:#42516a;--ink:#142338}body{font-size:15px}.page-heading p{font-size:15px;color:#34435a}.upload-layout{grid-template-columns:minmax(0,2.3fr) minmax(260px,1fr)}.upload-card{min-height:410px;padding:40px 28px;background:#fff;border:2px dashed #9cb1ec}.upload-card h2{font-size:25px;color:#142338}.upload-card p{font-size:15px;color:#34435a;line-height:1.75;max-width:570px}.upload-card small{font-size:12px;color:#45546b}.upload-illustration{height:75px;margin-bottom:20px}.upload-illustration .icon{width:58px;height:68px}.upload-card .button{min-height:54px;padding:15px 25px;font-size:14px}.result-mode .upload-card{min-height:150px;padding:26px;gap:20px}.result-mode .upload-card h2{font-size:20px}.result-mode .upload-card .button{font-size:14px}.result-mode .upload-card small{color:#42516a}.workspace-savebar b{font-size:14px;color:#1f344e}.workspace-savebar small{font-size:12px;color:#34435a}.navitem{font-size:13px;color:#34435a}.navlabel,.sidebar-note p,.profile small,.breadcrumb,.private-label,.eyebrow{color:#42516a}.text-btn{font-size:12px}.button{font-size:13px}.date-title b{font-size:14px;color:#1f344e}.date-title small,.date-field{font-size:12px;color:#42516a}.segmented button,.date-field input{font-size:12px;color:#34435a}.workflow-card li b{font-size:13px;color:#23354f}.workflow-card li p{font-size:12px;color:#42516a}.workflow-foot{font-size:11px;color:#42516a}.table-card td{font-size:14px;color:#1c2c43}.table-card td small,.description-preview{font-size:12px;color:#3e4d65;line-height:1.65}.table-card th{font-size:12px;color:#34435a}.memory-badge{color:#294cbb;background:#edf2ff}.memory-code{font-size:14px;color:#1f344e;line-height:1.7;margin:12px 0}.memory-record small,.memory-record pre,.memory-muted,.memory-steps p,.detail-panel .muted,.detail-panel small,.detail-panel p,.official-panel p{color:#42516a}.detail-panel p,.detail-panel label,.detail-panel input,.detail-panel select{font-size:14px;line-height:1.65}.memory-record pre{font-size:13px;line-height:1.7}.notice{font-size:13px;line-height:1.7}.export-help{font-size:12px;color:#34435a}.empty-section p{color:#42516a;font-size:12px}.empty-section b{font-size:14px}.filter-tabs button{font-size:12px;color:#34435a}.table-search input{font-size:13px}.page-heading .eyebrow{color:#3154ce}.admin-overview span,.admin-roles p,.admin-footnote,.staff-table small,.staff-dialog small{color:#42516a;font-size:12px}
@media(max-width:1100px){.upload-layout{grid-template-columns:minmax(0,1.7fr) minmax(230px,1fr)}.datebar{flex-wrap:wrap}.result-mode .upload-card{flex-wrap:wrap}.date-title{flex:1 1 230px}}
@media(max-width:760px){.upload-layout{grid-template-columns:1fr}.upload-card{min-height:360px;padding:30px 18px}.upload-card h2{font-size:22px}.navitem{font-size:0}.result-mode .upload-card{min-height:180px}.result-mode .upload-card h2{font-size:18px}.date-title{flex:1 1 100%}.date-field,.date-title small{font-size:11px}}

/* Five result groups, with readable labels on narrow workstations. */
.stats{grid-template-columns:repeat(6,minmax(0,1fr));align-items:stretch}.stat{padding:18px 14px}.stat span{font-size:13px;line-height:1.45;color:#26384f;padding-right:18px;min-height:38px}.stat small{font-size:11px;line-height:1.5;color:#42516a}.stat .icon{right:12px;top:20px}.stat.upcoming strong{color:#3154ce}.tag.official-upcoming{color:#2446b2;background:#e9efff}.table-card .tag{font-size:12px;white-space:normal;line-height:1.5}.table-card td .status-scope{color:#5b4828}.table-card td .marking-stage{color:#273d62;border-left:3px solid #adc1ff;padding-left:8px}.official-upcoming{color:#3154ce}
@media(max-width:1250px){.stats{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:850px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.stats{grid-template-columns:1fr}.stat span{min-height:0}}

#okpdBatchNotice{align-items:flex-start}#okpdBatchNotice>div{width:100%}#okpdBatchNotice details{margin-top:9px}#okpdBatchNotice ul{padding-left:22px;max-height:240px;overflow:auto}#okpdBatchNotice button{margin-top:10px}

/* Direct classification controls stay usable while other rows are checked. */
.tnved-inline{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;margin:10px 0;padding:10px 12px;border:1px solid #c9d8c0;border-radius:8px;background:#edf5e7;color:#20351b;text-align:left;font:inherit;font-size:13px;line-height:1.5;cursor:pointer}
.tnved-inline span:first-child{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tnved-inline.needs-code{background:#fff6e4;border-color:#e9d4a7;color:#654311}
.tnved-inline:hover,.tnved-inline:focus-visible{border-color:#3e61ec;outline:2px solid #3e61ec33;outline-offset:2px}
.tnved-picker{width:min(760px,calc(100vw - 32px));max-height:90dvh;padding:28px;border:1px solid #d8e0d0;border-radius:16px;color:#172519;background:#fff;overflow:auto}
.tnved-picker::backdrop{background:#17251a77;backdrop-filter:blur(3px)}
.tnved-picker h2{margin:4px 0;font-size:24px}.tnved-product{font-size:18px;margin:14px 0 8px}.tnved-description{margin-bottom:18px;color:#354638}.tnved-description p{white-space:pre-wrap;font-size:14px;max-height:160px;overflow:auto}
.tnved-search-label{display:grid;gap:8px;font-weight:600;color:#1f2e21}.tnved-search-label input{width:100%;min-height:46px;font-size:16px;background:#fff;color:#172519;border:1px solid #aabbad;border-radius:8px;padding:10px 12px}.tnved-search-label input:focus{outline:2px solid #4969ec;border-color:#4969ec}
.tnved-picker-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:14px 0;font-size:12px;color:#354638}.tnved-picker-toolbar .text-btn{flex-shrink:0;color:#335b29}
.tnved-options{display:grid;gap:8px;max-height:40dvh;overflow-y:auto;padding:2px}.tnved-option{display:grid;gap:5px;width:100%;padding:12px 14px;border:1px solid #d1dccc;border-radius:9px;text-align:left;background:#fff;color:#172519;font:inherit;font-size:14px;line-height:1.5;cursor:pointer}.tnved-option b{font-size:14px;color:#23451a}.tnved-option small{font-size:12px;color:#465348}.tnved-option:hover,.tnved-option:focus-visible,.tnved-option.selected{border-color:#4464eb;background:#f1f4ff;outline:none}.tnved-option:disabled{opacity:.6;cursor:default}
.tnved-picker-footer{margin-top:16px;border-top:1px solid #dae2d5;padding-top:12px}.tnved-picker-footer p{font-size:12px;line-height:1.5;color:#3d4b3f;margin:0 0 12px}.tnved-picker-footer .button{width:100%;min-height:42px}.tnved-no-results{padding:20px;background:#f3f6ef;border-radius:8px;color:#263328}
@media(max-width:600px){.tnved-picker{padding:18px}.tnved-picker-toolbar{align-items:flex-start;flex-direction:column}.tnved-inline{font-size:12px}}
.tnved-picker{overflow:hidden}
#tnvedPickerContent,#okpdPickerContent{display:flex;flex-direction:column;max-height:calc(90dvh - 56px)}
#tnvedPickerContent>.modal-heading,.tnved-product,.tnved-search-label,.tnved-picker-toolbar,.tnved-picker-footer{flex-shrink:0}
.tnved-product{max-height:70px;overflow:auto}.tnved-description{flex-shrink:0;max-height:18dvh;overflow:auto}.tnved-description p{max-height:none}
.tnved-options{flex:1 1 auto;min-height:64px}
@media(max-width:600px){#tnvedPickerContent,#okpdPickerContent{max-height:calc(90dvh - 36px)}}

.stat.failed strong{color:#ad342b}.stat.selected{outline:2px solid #4b6941;outline-offset:2px}#failureSummary p{margin:8px 0}#failureSummary .button{margin-top:12px}.tnved-picker-footer .text-btn{margin-top:10px}
