/* Shared contest clock and test-task picker; no brand overrides. */
body #container #content :is(.cw041-page,.cw041-picker){max-width:1200px;margin:24px auto;min-width:0;color:#18314c}
body #container #content :is(.cw041-page,.cw041-picker) h1{color:#18314c;font:750 1.9rem/1.25 system-ui,sans-serif;margin:0 0 16px;padding:0}
body #container #content .cw041-settings{padding:22px;border:1px solid #d4e2f2;border-radius:16px;background:#fff;margin:18px 0;color:#18314c}
body #container #content .cw041-settings h2{color:#18314c;font-size:1.35rem;line-height:1.35;margin:0 0 18px;padding:0}
body #container #content .cw041-settings p{font-size:.95rem;line-height:1.6;color:#4c647e}
body #container #content .cw041-settings label{display:flex;flex-direction:column;gap:7px;font-weight:650;min-width:0}
body #container #content .cw041-settings input:not([type=checkbox]),body #container #content .cw041-settings textarea{max-width:100%;box-sizing:border-box;font:inherit;min-width:0}
body #container #content .cw041-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
body #container #content .cw041-fields small{font-size:.85rem;font-weight:400;line-height:1.5;color:#536b84}
body #container #content .cw041-clock{grid-column:1/-1;margin:14px 0 0;background:#edf5ff;border:1px solid #cbdff6;border-radius:13px;padding:16px;color:#18314c}
body #container #content .cw041-clock p{font-size:.92rem;line-height:1.65;margin:7px 0}
body #container #content .cw041-clock button,body #container #content .cw041-settings button{font:650 .95rem/1.4 system-ui,sans-serif;padding:10px 15px}
body #container #content .cw041-clock .practice-clock-count{display:block;font:750 1.8rem/1.2 system-ui,sans-serif;margin:10px 0;color:#165cc2}
body #container #content .cw041-warning{background:#fff4da;border:1px solid #f1d39a;border-radius:10px;padding:10px;color:#82420b}
body #container #content .cw041-scroll{max-width:100%;overflow-x:auto;margin-bottom:15px}
body #container #content .cw041-scroll table{width:100%;border-collapse:collapse;font-size:.95rem}
body #container #content .cw041-scroll :is(th,td){text-align:left;vertical-align:middle;padding:12px 10px;border-bottom:1px solid #dbe5ef}
body #container #content .cw041-scroll th{background:#f0f5fb}
body #container #content .cw041-scroll input[type=checkbox]{width:20px;height:20px;accent-color:#2563eb}
body #container #content .cw041-scroll input:not([type=checkbox]){width:100px}
body #container #content .cw041-scroll td:nth-child(2){min-width:95px}
body #container #content .cw041-settings fieldset{padding:0;border:0;min-width:0}
body #container #content .cw041-search{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;margin:0 0 20px}
body #container #content .cw041-search input{width:350px;max-width:100%}
body #container #content .cw041-settings details{margin-top:20px}
body #container #content .cw041-settings summary{cursor:pointer;font-weight:650;margin-bottom:12px}
body #container #content .cw041-pages{display:flex;gap:12px}
body #container #content .cw041-pages [aria-current=page]{font-weight:750}
@media(max-width:760px){body #container #content .cw041-fields{grid-template-columns:1fr}body #container #content .cw041-settings{padding:16px}body #container #content .cw041-search label{width:100%}body #container #content .cw041-search input{width:100%}body #container #content :is(.cw041-page,.cw041-picker){max-width:100%}}
body #container #content .contest-details-card.kind-testing{--contest-color:var(--brand,#2563eb);--contest-tint:#eff6ff;--contest-outline:#bfdbfe}
@media(max-width:760px){
body #container #content .cw041-scroll :is(.cw041-selected,.cw041-catalog-table) thead{display:none}
body #container #content .cw041-scroll :is(.cw041-selected,.cw041-catalog-table) tr{display:grid;gap:10px;padding:14px;margin:0 0 12px;border:1px solid #dbe5ef;border-radius:12px;background:#f8fbff}
body #container #content .cw041-scroll :is(.cw041-selected,.cw041-catalog-table) td{border:0;padding:0;min-width:0;max-width:100%;overflow-wrap:anywhere}
body #container #content .cw041-scroll .cw041-selected tr{grid-template-columns:repeat(3,minmax(0,1fr))}
body #container #content .cw041-scroll .cw041-selected td:nth-child(2){grid-column:1/-1;grid-row:1;min-width:0}
body #container #content .cw041-scroll .cw041-selected td:nth-child(5){grid-column:1/-1}
body #container #content .cw041-scroll .cw041-selected input:not([type=checkbox]){width:100%;padding:8px}
body #container #content .cw041-selected td:nth-child(1):before{content:'Позначення'}
body #container #content .cw041-selected td:nth-child(3):before{content:'Бали'}
body #container #content .cw041-selected td:nth-child(4):before{content:'Ліміт спроб'}
body #container #content .cw041-selected td:before{display:block;font-size:.8rem;font-weight:650;margin-bottom:5px}
body #container #content .cw041-scroll .cw041-catalog-table tr{grid-template-columns:64px minmax(0,1fr);gap:5px 12px}
body #container #content .cw041-scroll .cw041-catalog-table td:first-child{grid-row:1/4;grid-column:1;font-size:.75rem}
body #container #content .cw041-scroll .cw041-catalog-table td:nth-child(n+2){grid-column:2;min-width:0}
body #container #content .cw041-catalog-table td:nth-child(2):before{content:'ID: '}
body #container #content .cw041-catalog-table td:nth-child(4){color:#536b84;font-size:.85rem}
}
