
/* === BASE (na podstawie AST_1_NEW.html / style.css) === */

/* Wartość domyślna powiększenia grafiki po najechaniu myszką.
   Nadpisywana z poziomu script.js (CONFIG.IMAGE_ZOOM) – wartości 2.0 / 2.5 / 3.0. */
:root {
    --image-zoom: 2;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; color: #333; line-height: 1.7; }

/* === TOP MENU LAYOUT (lecture) === */
body.lecture-layout { background-color: #f0f2f5; padding: 0; }

.menu-bar {
    background-color: #243342;
    padding: 10px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    position: sticky;
    top: 0;
    /* Wyższy niż powiększona grafika (z-index 1000), aby pasek menu
       pozostał widoczny i klikalny także przy zoomie 2.5 / 3.0. */
    z-index: 1100;
}
.menu-bar a {
    color: #ecf0f1;
    text-decoration: none;
    padding: 6px 14px;
    font-size: 0.9em;
    transition: background-color 0.3s;
}
.menu-bar a:hover, .menu-bar a.active { background-color: #e74c3c; font-weight: bold; }
.menu-bar .ext-btn {
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 6px 16px;
    cursor: pointer;
    font-size: 0.85em;
    margin-left: auto;
    font-family: inherit;
    font-weight: 600;
    transition: background-color 0.3s;
}
.menu-bar .ext-btn:hover { background: #c0392b; }
.menu-bar .img-btn {
    background: #2980b9;
    color: #fff;
    border: none;
    padding: 6px 16px;
    margin-left: 8px;
    cursor: pointer;
    font-size: 0.85em;
    font-family: inherit;
    font-weight: 600;
    transition: background-color 0.3s;
}
.menu-bar .img-btn:hover { background: #1f618d; }

/* === MENU ROZWIJANE GRAFIKA / WIDOK === */
.menu-drop {
    position: relative;
    display: inline-block;
    margin-left: 8px;
}
.menu-drop .img-btn { margin-left: 0; }
.menu-drop-panel {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    min-width: 200px;
    background: #243342;
    border: 1px solid #364d63;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    z-index: 1200;
    padding: 6px;
}
.menu-drop-panel.open { display: block; }
.menu-drop-title {
    color: #9fb3c8;
    font-size: 0.75em;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 7px 8px 3px;
}
.menu-opt {
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    color: #ecf0f1;
    padding: 6px 10px;
    font-size: 0.85em;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.2s;
}
.menu-opt:hover { background: #2980b9; }
.menu-opt.active { background: #2980b9; font-weight: 700; }
.menu-drop-sep { height: 1px; background: #364d63; margin: 5px 2px; }

/* === WIDOK: LISTA / SLAJDY === */
.slide-nav {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    padding: 0;
    flex-shrink: 0;
}
body.view-slides .slide-nav { display: flex; }
.header > .slide-nav { align-self: center; }
.slide-nav-btn {
    width: 7em;
    height: 1.75em;
    font-size: 0.85em;
    font-family: inherit;
    font-weight: 600;
    color: #fff;
    background: #2980b9;
    border: none;
    cursor: pointer;
    line-height: 1.75em;
    padding: 0;
    transition: background-color 0.3s;
}
.slide-nav-btn:hover:not(:disabled) { background: #1f618d; }
.slide-nav-btn:disabled { background: #9aa7b4; cursor: default; }

body.view-slides .slide { display: none; }
body.view-slides .slide.slide-active { display: block; }

/* === SLIDE === */
.slide {
    max-width: 1100px;
    margin: 30px auto;
    background: #f9f9f9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.slide:hover,
.slide-content:hover,
.illustration:hover,
.diagram:hover {
    overflow: visible;
}
.header {
    background-color: #364d63;
    color: white;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.slide-number {
    background-color: #e74c3c;
    padding: 4px 14px;
    font-weight: bold;
    font-size: 0.95em;
    white-space: nowrap;
}
.slide-title {
    font-size: 1.15em;
    font-weight: 600;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 4px;
}
.slide-content {
    display: flex;
    flex-wrap: wrap;
    padding: 24px;
    gap: 24px;
}
.text { flex: 3; min-width: 300px; max-width: 100%; }
.illustration { flex: 2; min-width: 250px; display: flex; align-items: center; justify-content: center; }

/* === TYPOGRAFIA === */
h3, .text h2 { color: #2c3e50; margin-bottom: 12px; font-size: 1.15em; }
p { margin-bottom: 10px; text-align: justify; }
ul, ol { margin: 10px 0 10px 20px; }
li { margin-bottom: 6px; }

/* === BOXY === */
.goal {
    background-color: #f0f4f8;
    border-left: 5px solid #3498db;
    padding: 12px 16px;
    margin: 12px 0;
    font-size: 0.96em;
}
.goal strong { color: #1a2a3a; }

.definition { background-color: #eef5fa; border-left: 5px solid #2c3e50; padding: 15px; margin: 12px 0; font-size: 0.98em; }

/* === UKRYWANIE BLOKÓW CELE (.goal) I DEFINICJE (.definition) ===
   Sterowane z menu (script.js): opcje GOAL i DEFINITION, domyślnie OFF = ukryte. */
body:not(.show-goal) .goal,
body:not(.show-definition) .definition { display: none; }

.lecture-layout .goal,
.lecture-layout .definition { text-align: justify; }

.example { background-color: #fff3cd; border-left: 5px solid #ffc107; padding: 15px; margin: 12px 0; font-size: 0.98em; }
.questions { background-color: #eef5fa; border-left: 5px solid #2c3e50; padding: 15px; margin: 12px 0; }
.questions ol { margin-left: 20px; }
.questions li { margin-bottom: 8px; }
.highlight { background-color: #eef5fa; color: #c7254e; padding: 2px 6px; font-weight: bold; font-size: 0.9em; }
.subtitle { color: #555; font-size: 1.05em; }

/* === DIAGRAM (zastepuje obrazek w .illustration) === */
.diagram {
    text-align: center;
    width: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.95em;
    line-height: 1.6;
    color: #2c3e50;
    overflow-x: auto;
}
.diagram svg {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 0 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    position: relative;
    z-index: 1;
    transform: scale(1);
    transform-origin: center center;
    transition: transform 0.25s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.25s ease;
}
.diagram .slide-svg-link {
    display: block;
    max-width: 100%;
    margin: 0 auto;
    text-decoration: none;
    cursor: zoom-in;
    border: none;
    
    box-shadow: none;
    position: relative;
}
.diagram .slide-svg-link:hover,
.diagram .slide-svg-link:focus,
.diagram svg:hover {
    z-index: 999;
}
.diagram .slide-svg-link:hover svg,
.diagram .slide-svg-link:focus svg,
.diagram svg:hover {
    transform: scale(var(--image-zoom, 2));
    z-index: 1000;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
}
.diagram .slide-img-link {
    display: block;
    max-width: 100%;
    margin: 0 auto;
    text-decoration: none;
    cursor: zoom-in;
    border: none;
    
    box-shadow: none;
    position: relative;
}
.diagram .slide-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border: none;
    
    box-shadow: none;
    position: relative;
    z-index: 1;
    transform: scale(1);
    transform-origin: center center;
    transition: transform 0.25s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.25s ease;
}
.diagram .slide-img-link:hover,
.diagram .slide-img-link:focus {
    z-index: 999;
}
.diagram .slide-img-link:hover .slide-img,
.diagram .slide-img-link:focus .slide-img,
.diagram .img-placeholder:hover img,
.diagram .img-placeholder:focus img,
.diagram a:hover img,
.diagram img:hover {
    transform: scale(var(--image-zoom, 2));
    z-index: 1000;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
}
.diagram .img-placeholder {
    display: block;
    text-decoration: none;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
}
.diagram .img-placeholder img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    transform: scale(1);
    transform-origin: center center;
    transition: transform 0.25s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.25s ease;
}

/* === DYNAMICZNY ZOOM – STAN WYŁĄCZONY (body.zoom-disabled) === */
body.zoom-disabled .diagram .slide-svg-link:hover svg,
body.zoom-disabled .diagram .slide-svg-link:focus svg,
body.zoom-disabled .diagram svg:hover,
body.zoom-disabled .diagram .slide-img-link:hover .slide-img,
body.zoom-disabled .diagram .slide-img-link:focus .slide-img,
body.zoom-disabled .diagram .img-placeholder:hover img,
body.zoom-disabled .diagram .img-placeholder:focus img,
body.zoom-disabled .diagram a:hover img,
body.zoom-disabled .diagram img:hover {
    transform: none !important;
    box-shadow: none !important;
    z-index: 1 !important;
}
body.zoom-disabled .diagram .slide-svg-link,
body.zoom-disabled .diagram .slide-img-link,
body.zoom-disabled .diagram .img-placeholder,
body.zoom-disabled .diagram a {
    cursor: pointer;
}

/* === ROZSZERZENIE SLIDU === */
.slide_ext { background-color: #eef5fa; padding: 24px; padding-right: 20%; border-top: 2px solid #2c3e50; }
.slide_ext p { margin-bottom: 8px; font-size: 0.95em; }
.slide_ext h3 { color: #2c3e50; font-size: 1.05em; }
.slide_ext.hidden { display: none; }

/* === DODATKOWE ELEMENTY === */
.timeline { display: flex; justify-content: space-around; flex-wrap: wrap; margin: 16px 0; }
.timeline-item { background-color: #eef5fa; border: 1px solid #ddd; padding: 12px; margin: 8px; min-width: 110px; text-align: center; font-size: 0.9em; color: #555; }
.timeline-item strong { color: #364d63; display: block; margin-bottom: 4px; }
.dictionary { margin: 8px 0; }
.dictionary dt { color: #364d63; font-weight: bold; margin-top: 8px; }
.dictionary dd { margin-left: 20px; margin-bottom: 6px; }

/* === STOPKA === */
.footer { max-width: 1100px; margin: 0 auto 30px; text-align: center; padding: 16px; color: #888; font-size: 0.9em; }

/* === TABELE === */
table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 0.95em; }
th { background-color: #2c3e50; color: #fff; padding: 10px 14px; text-align: left; }
td { padding: 9px 14px; border-bottom: 1px solid #ddd; }
tr:nth-child(even) { background-color: #f2f2f2; }
tr:hover { background-color: #e8edf2; }

/* === BLOKI KODU / KONSOLA === */
pre, code { font-family: 'Consolas', 'Courier New', Courier, monospace; font-size: 0.92em; }
pre {
    background-color: #1e1e1e; color: #d4d4d4; padding: 14px 18px;
    overflow-x: auto; margin: 12px 0; line-height: 1.55;
    border-left: 4px solid #e74c3c;
}
code { background-color: #f0f0f0; padding: 2px 6px;  }
pre code { background: none; padding: 0; }

/* === PARSOWANIE SYNTAX KONSOLI === */
.kw { color: #569cd6; }     /* słowa kluczowe */
.str { color: #ce9178; }    /* stringi */
.num { color: #b5cea8; }    /* liczby */
.cmt { color: #6a9955; }    /* komentarze */
.fn { color: #dcdcaa; }     /* funkcje */
.op { color: #d4d4d4; }     /* operatory */
.var { color: #9cdcfe; }     /* zmienne */
.type { color: #4ec9b0; }   /* typy */
.prompt { color: #6a9955; } /* prompt konsoli */

/* === IMPORTANT BOX (żółte tło, pomarańczowa lewa krawędź) === */
.important-box, .important {
    background-color: #fff3cd; border-left: 5px solid #e67e22;
    padding: 14px 18px; margin: 12px 0; font-size: 0.98em;
}
.important-box strong, .important strong { color: #856404; }

/* === NAVIGACJA PREV / NEXT === */
.nav-buttons {
    max-width: 1100px; margin: 0 auto 30px;
    display: flex; justify-content: space-between; padding: 0 16px;
}
.nav-buttons a {
    display: inline-block; padding: 10px 22px;
    background-color: #364d63; color: #fff; text-decoration: none;
    font-size: 0.95em;  transition: background-color 0.3s;
}
.nav-buttons a:hover { background-color: #e74c3c; }
.nav-buttons a.disabled { background-color: #aaa; pointer-events: none; }

/* === TYTUŁ STRONY (index.html) === */
.page-title {
    text-align: center; padding: 40px 20px 20px;
    font-size: 1.7em; color: #2c3e50; font-weight: 700;
}
.page-subtitle {
    text-align: center; padding: 0 20px 30px;
    font-size: 1.05em; color: #666;
}

/* === LISTY W slajdach === */
ul, ol { margin: 10px 0 10px 22px; }
li { margin-bottom: 6px; }
li strong { color: #2c3e50; }

/* === SEKCJA PYTAŃ KONTROLNYCH === */
.qa-item { margin-bottom: 14px; padding: 10px 14px; background: #f9f9f9; border-left: 4px solid #3498db; }
.qa-item .question { font-weight: 600; color: #2c3e50; }
.qa-item .answer { color: #555; margin-top: 4px; display: none; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .slide-content { flex-direction: column; }
    .illustration { order: -1; }
    .menu-bar { font-size: 0.85em; }
    .slide-number { font-size: 0.85em; padding: 3px 10px; }
}

.illustration img { max-width: 100%; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); }


/* === image manipulation === */
	.hover-link {
		position: relative; /* Ważne: pozwala na pozycjonowanie obrazka względem linku */
		text-decoration: none;
		color: #007BFF;
		/*font-weight: bold;*/
	}

	/* Styl dla małego obrazka - domyślnie ukryty */
	.hover-link .hover-img {
		display: none;        /* Ukrywa obrazek na starcie */
		position: absolute;   /* Pozwala ustawić obrazek w dowolnym miejscu */
		top: 25px;            /* Przesunięcie w dół (poniżej tekstu) */
		left: 0;              /* Wyrównanie do lewej krawędzi linku */
		width: 80px;          /* Szerokość małego obrazka */
		height: auto;         /* Automatyczna wysokość, by zachować proporcje */
		border: 1px solid #ccc;
		box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
		z-index: 10;          /* Gwarantuje, że obrazek pojawi się na wierzchu innych elementów */
	}

	/* Efekt po najechaniu myszką (hover) */
	.hover-link:hover .hover-img {
		display: block;       /* Pokazuje obrazek, gdy najedziesz na link */
	}
	
	/* Skrypt JS do pokazywania obrazka nad wszystkim */
	.maly-div {
		width: 150px;
		height: 50px;
		background-color: #f0f0f0;
		overflow: hidden; /* To tutaj blokowało poprzedni sposób! */
		border: 1px solid #333;
		padding: 10px;
	}

	/* Styl dla globalnego podglądu - ukryty i nad wszystkim */
	#global-preview {
		display: none;
		position: absolute; /* Pozycjonowanie względem całej strony */
		z-index: 99999;     /* Maksymalna wartość, obrazek będzie na samej górze */
		width: 120px;
		height: auto;
		border: 2px solid white;
		box-shadow: 0px 4px 15px rgba(0,0,0,0.5);
		pointer-events: none; /* Sprawia, że myszka "ignoruje" obrazek (brak migania) */
	}
/* === image manipulation END === */


/* ============================================================
   FAMILY 3 — Sidebar Layout (index.html, wyszukiwanie.html, ndx.html)
   (layout analogiczny do serwisu ASK: ask.netstudio.net.pl)
   ============================================================ */

/* --- Sidebar --- */
.sidebar {
    width: 400px;
    background-color: #1a1a2e;
    color: white;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    top: 0;
    left: 0;
}

.sidebar h1 {
    font-size: 20px;
    margin-bottom: 10px;
    text-align: center;
    border-bottom: 1px solid #0f3460;
    padding-bottom: 15px;
    color: #e94560;
}

.sidebar .subtitle {
    font-size: 12px;
    text-align: center;
    color: #888;
    margin-bottom: 25px;
    font-style: italic;
}

.menu {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.menu li {
    margin-bottom: 8px;
}

.menu a {
    display: block;
    padding: 12px 15px;
    color: #ecf0f1;
    text-decoration: none;
    background-color: #0f3460;
    transition: background-color 0.3s;
    font-size: 0.9em;
}

.menu a:hover {
    background-color: #e94560;
}

.menu .num {
    font-weight: bold;
    color: #e94560;
    margin-right: 6px;
}

.menu a:hover .num {
    color: #fff;
}

.menu .active {
    background-color: #e94560;
    font-weight: bold;
}

.labs-dropdown {
    /*margin-top: 18px;*/
	margin-top: 1px;
}

.labs-dropdown > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    color: #e94560;
    background-color: #0f3460;
    cursor: pointer;
    list-style: none;
    font-size: 0.9em;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background-color 0.3s;
}

.labs-dropdown > summary::-webkit-details-marker {
    display: none;
}

.labs-dropdown > summary::after {
    content: "▾";
    transition: transform 0.2s;
}

.labs-dropdown > summary:hover,
.labs-dropdown[open] > summary {
    color: #fff;
    background-color: #e94560;
}

.labs-dropdown > summary:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -2px;
}

.labs-dropdown[open] > summary {
    margin-bottom: 8px;
}

.labs-dropdown[open] > summary::after {
    transform: rotate(180deg);
}

.lab-menu .lab-group > details > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    color: #ecf0f1;
    background-color: #0f3460;
    cursor: pointer;
    list-style: none;
    font-size: 0.9em;
    font-weight: bold;
    transition: background-color 0.3s;
}

.lab-menu .lab-group > details > summary::-webkit-details-marker {
    display: none;
}

.lab-menu .lab-group > details > summary::after {
    content: "▾";
    color: #e94560;
    transition: transform 0.2s;
}

.lab-menu .lab-group > details > summary:hover,
.lab-menu .lab-group > details[open] > summary {
    background-color: #e94560;
}

.lab-menu .lab-group > details > summary:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -2px;
}

.lab-menu .lab-group > details[open] > summary::after {
    color: #fff;
    transform: rotate(180deg);
}

.lab-menu .lab-group ul {
    list-style: none;
    margin: 6px 0 0;
    padding: 0 0 0 14px;
}

.lab-menu .lab-group ul li {
    margin-bottom: 4px;
}

.lab-menu .lab-group ul li:last-child {
    margin-bottom: 0;
}

.lab-menu .lab-group ul a {
    padding: 9px 12px;
    background-color: #162b4d;
    border-left: 3px solid transparent;
    font-size: 0.84em;
}

.lab-menu .lab-group ul a:hover {
    background-color: #243b63;
    border-left-color: #e94560;
}

/* --- Content area (sidebar pages only) --- */
.sidebar + .content {
    flex: 1;
    padding: 40px;
    margin-left: 400px;
    min-height: 100vh;
}

/* --- Footer (sidebar pages) --- */
.sidebar .footer {
    margin-top: auto;
    text-align: center;
    padding-top: 20px;
    font-size: 0.85em;
    color: #7f8c8d;
    border-top: 1px solid #0f3460;
    padding-bottom: 20px;
    margin-bottom: 25px;
    width: 100%;
}

.sidebar .footer a {
    color: #7f8c8d;
    text-decoration: none;
}

/* --- Section Title --- */
.section-title {
    margin-top: 20px;
    color: #e94560;
    font-size: 12px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- index.html: centered content with welcome box --- */
.content:has(.welcome-box) {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.sidebar:has(.welcome-box) .section-title {
    font-size: 13px;
    text-align: left;
    font-weight: bold;
    border-bottom: 1px solid #0f3460;
    padding-bottom: 4px;
    margin-top: 18px;
    margin-bottom: 8px;
}

/* --- welcome box (index.html) --- */
.welcome-box {
    background-color: white;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 100%;
}

.welcome-box h2 {
    color: #1a1a2e;
    margin-bottom: 8px;
}

.welcome-box h3 {
    color: #0f3460;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: normal;
    border-bottom: 2px solid #e94560;
    padding-bottom: 10px;
}

.welcome-box p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 14px;
}

.welcome-box ul { margin: 10px 0 10px 20px; }
.welcome-box li { margin-bottom: 4px; }

/* --- ndx.html: index box --- */
.index-box {
    background-color: white;
    padding: 30px 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
}

.index-box h2 {
    color: #1a1a2e;
    margin-bottom: 8px;
}

.index-box h3 {
    color: #0f3460;
    margin-top: 0;
    margin-bottom: 24px;
    font-weight: normal;
    border-bottom: 2px solid #e94560;
    padding-bottom: 10px;
}

.index-box p.desc {
    color: #555;
    margin-bottom: 24px;
    line-height: 1.6;
}

.toc {
    background: #f0f4f8;
    padding: 16px 20px;
    margin-bottom: 28px;
    border-left: 4px solid #0f3460;
}

.toc h4 {
    color: #0f3460;
    margin-bottom: 10px;
}

.toc a {
    color: #0f3460;
    text-decoration: none;
    font-size: 0.92em;
    line-height: 1.8;
}

.toc a:hover {
    text-decoration: underline;
    color: #e94560;
}

.letter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
    gap: 6px;
    margin-bottom: 24px;
}

.letter-card {
    background: #f0f4f8;
    border-left: 4px solid #0f3460;
    text-align: center;
    padding: 6px 0;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.05em;
    color: #0f3460;
    transition: all 0.2s;
    user-select: none;
}

.letter-card:hover {
    background: #e94560;
    color: #fff;
    border-left-color: #1a1a2e;
}

.letter-card.active {
    background: #e94560;
    color: #fff;
    border-left-color: #1a1a2e;
}

.cat {
    margin-bottom: 36px;
}

.cat h4 {
    color: #1a1a2e;
    font-size: 1.15em;
    background: #f0f4f8;
    padding: 10px 14px;
    border-left: 5px solid #e94560;
    margin-bottom: 14px;
}

.entry {
    padding: 7px 14px;
    border-bottom: 1px solid #eef1f0;
}

.entry:last-child {
    border-bottom: none;
}

.entry .term-link {
    color: #1a1a2e;
    text-decoration: none;
    font-weight: 600;
    display: block;
    padding: 2px 0;
    transition: color 0.15s;
}

.entry .term-link:hover {
    color: #e94560;
    text-decoration: underline;
}

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #e94560;
    color: white;
    border: none;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 1.2em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.scroll-top:hover {
    background: #c73a52;
}

/* --- search page: search box --- */
.search-box {
    background-color: white;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

.search-box h2 {
    color: #1a1a2e;
    margin-bottom: 8px;
}

.search-box h3 {
    color: #0f3460;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: normal;
    border-bottom: 2px solid #e94560;
    padding-bottom: 10px;
}

.search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    align-items: center;
}

.search-form input[type="text"] {
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    border: 2px solid #ddd;
    font-size: 1em;
    outline: none;
    transition: border-color 0.3s;
}

.search-form input[type="text"]:focus {
    border-color: #e94560;
}

.search-form .options {
    display: flex;
    gap: 16px;
    align-items: center;
}

.search-form .options label {
    font-size: 0.9em;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.search-form .options input[type="radio"] {
    accent-color: #e94560;
}

.search-form button {
    padding: 12px 28px;
    background-color: #e94560;
    color: white;
    border: none;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-form button:hover {
    background-color: #c73a52;
}

.stats {
    font-size: 0.9em;
    color: #888;
    margin-bottom: 16px;
}

.result {
    background: #f0f4f8;
    border-left: 4px solid #0f3460;
    padding: 14px 16px;
    margin-bottom: 12px;
}

.result.found {
    border-left-color: #e94560;
}

.result .r-part {
    font-weight: bold;
    color: #0f3460;
    font-size: 0.85em;
}

.result .r-title {
    font-size: 1.05em;
    font-weight: 600;
    color: #1a1a2e;
    margin: 4px 0;
}

.result .r-snippet {
    font-size: 0.92em;
    color: #555;
    line-height: 1.5;
}

.result .r-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.85em;
    color: #e94560;
    text-decoration: none;
}

.result .r-link:hover {
    text-decoration: underline;
}

.result mark {
    background-color: #ffdd57;
    padding: 1px 3px;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #888;
    font-style: italic;
}

/* --- Responsive --- */
@media (max-width: 800px) {
    .sidebar {
        width: 100%;
        position: relative;
        height: auto;
    }
    .sidebar + .content {
        margin-left: 0;
        padding: 20px;
    }
    .index-box {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .search-form {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ============================================================
   LAB1_PROJEKTY_30 – publikacja zadań laboratoryjnych (ocena 3.0)
   Strona wzorowana na AST_projekty_30.html, kolorystyka uczelniana:
   granat, grafit, akcenty wyróżniające.
   ============================================================ */
body.lab1-page {
    background-color: #f4f5f7;
    color: #333;
    line-height: 1.75;
}

/* ---------- belka nawigacyjna (top-menu) ---------- */
.lab1-page .top-menu {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #243342;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 6px 16px;
    gap: 2px;
}
.lab1-page .top-menu a {
    color: #ecf0f1;
    padding: 8px 14px;
    text-decoration: none;
    font-size: 0.92em;
    
    transition: background-color 0.25s, color 0.25s;
}
.lab1-page .top-menu a:hover { background-color: #e74c3c; color: #fff; }
.lab1-page .top-menu a.active {
    background-color: #e74c3c;
    color: #fff;
    font-weight: 700;
}

/* ---------- nagłówek strony (page-header) ---------- */
/* seria ocen 3.0: ciemno-szaro-miedziana winieta */
.lab1-page .page-header {
    background: linear-gradient(135deg, #243342 0%, #3a4d63 55%, #6a3a3a 100%);
    color: #fff;
    text-align: center;
    padding: 64px 24px 44px 24px;
}
/* seria ocen 4.0: niebieski gradient (nadpisanie dla body.projekty40) */
.lab1-page.projekty40 .page-header {
    background: linear-gradient(135deg, #1b4f72 0%, #3498db 100%);
    color: #ffffff;
}
.lab1-page .page-header h1 {
    font-size: 2.0em;
    margin: 0 0 12px 0;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.lab1-page .page-header .podtytul {
    font-size: 1.02em;
    opacity: 0.92;
    max-width: 820px;
    margin: 0 auto 10px auto;
}
.lab1-page .badge-30 {
    display: inline-block;
    background: #fdf3f3;
    color: #662020;
    border: 1px solid #cca0a0;
    font-size: 0.85em;
    padding: 4px 12px;
    font-weight: 700;
    margin-top: 14px;
}
.lab1-page .badge-40 {
    display: inline-block;
    background: #eef5fa;
    color: #243342;
    border: 1px solid #b9cfe0;
    font-size: 0.85em;
    padding: 4px 12px;
    font-weight: 700;
    margin-top: 14px;
}

/* ---------- kontener strony ---------- */
.lab1-page .container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 36px 20px 70px 20px;
}

/* ---------- informator ogólny (wymagania-box) ---------- */
.lab1-page .wymagania-box {
    background: #fffbe6;
    border: 1px solid #d8c0a0;
    border-left: 6px solid #c8a800;
    padding: 18px 24px;
    margin-bottom: 34px;
    font-size: 0.97em;
}
.lab1-page .wymagania-box h2 {
    color: #6b5310;
    font-size: 1.05em;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-bottom: 2px solid #eee0bf;
    padding-bottom: 5px;
}
.lab1-page .wymagania-box p { margin: 0 0 8px 0; text-align: justify; }
.lab1-page .wymagania-box strong { color: #6b5310; }
.lab1-page .wymagania-box ul, .lab1-page .wymagania-box ol { margin: 6px 0 10px 20px; }
.lab1-page .wymagania-box li { margin-bottom: 4px; }

/* ---------- interaktywny spis zadań ---------- */
.lab1-page .spis {
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
    border: 1px solid #d9dde3;
    padding: 22px 30px;
    margin-bottom: 38px;
}
.lab1-page .spis h2 {
    color: #243342;
    margin: 0 0 10px 0;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e3e8ee;
    padding-bottom: 6px;
}
.lab1-page .spis ol {
    margin: 0;
    padding-left: 22px;
    counter-reset: zad;
}
.lab1-page .spis li {
    margin-bottom: 7px;
    font-size: 0.98em;
}
.lab1-page .spis .nr {
    display: inline-block;
    min-width: 30px;
    color: #e74c3c;
    font-weight: 700;
}
.lab1-page .spis a {
    color: #2c3e50;
    text-decoration: none;
    border-bottom: 1px dotted #9aa7b4;
}
.lab1-page .spis a:hover { color: #e74c3c; border-bottom-color: #e74c3c; }
.lab1-page .przyciski-spisu {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}
.lab1-page .przyciski-spisu button {
    font-family: inherit;
    font-size: 0.88em;
    padding: 7px 14px;
    background: #243342;
    color: #fff;
    border: 1px solid #243342;
    cursor: pointer;
    transition: background-color 0.25s;
}
.lab1-page .przyciski-spisu button:hover { background: #e74c3c; border-color: #e74c3c; }

/* ---------- karta zadania ---------- */
.lab1-page .zadanie {
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
    border: 1px solid #d9dde3;
    margin-bottom: 44px;
    overflow: hidden;
}
.lab1-page .zadanie-naglowek {
    background: linear-gradient(135deg, #243342 0%, #364d63 100%);
    color: #fff;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    cursor: pointer;
    user-select: none;
}
.lab1-page .zadanie-numer {
    font-size: 1.65em;
    font-weight: 800;
    color: #e74c3c;
    min-width: 52px;
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    
    padding: 2px 6px;
}
.lab1-page .zadanie-tytul {
    font-size: 1.18em;
    font-weight: 600;
    line-height: 1.4;
}
.lab1-page .zadanie-zwijanie {
    margin-left: auto;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85em;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 4px 10px;
    
}
.lab1-page .zadanie-tresc { padding: 24px 30px 30px 30px; }
.lab1-page .zadanie.zamkniete .zadanie-tresc { display: none; }

/* ---------- sekcje wewnątrz zadania ---------- */
.lab1-page .sekcja {
    border-bottom: 1px solid #eceff3;
    padding: 14px 0 16px 0;
}
.lab1-page .sekcja:last-child { border-bottom: none; padding-bottom: 0; }
.lab1-page .sekcja-naglowek {
    font-size: 0.86em;
    font-weight: 700;
    color: #e74c3c;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border-bottom: 2px solid #f4e3e3;
    padding-bottom: 4px;
    margin-bottom: 10px;
}
.lab1-page .sekcja p { margin: 0 0 8px 0; text-align: justify; }
.lab1-page .sekcja ul, .lab1-page .sekcja ol { margin: 6px 0 10px 20px; }
.lab1-page .sekcja li { margin-bottom: 5px; text-align: justify; }

/* ---------- odznaki efektów kształcenia ---------- */
.lab1-page .wyklad-badge {
    display: inline-block;
    background-color: #fdf3f3;
    color: #662020;
    border: 1px solid #cca8a8;
    
    font-size: 0.82em;
    padding: 1px 7px;
    margin-right: 5px;
    font-weight: 700;
    vertical-align: baseline;
}
.lab1-page .rola {
    display: inline-block;
    background: #eef5fa;
    border: 1px solid #c8d9e6;
    color: #243342;
    
    font-size: 0.82em;
    padding: 1px 7px;
    margin-right: 5px;
    font-weight: 700;
    vertical-align: baseline;
}
.lab1-page .tresc-skrot {
    color: #7a8087;
    font-style: italic;
    font-size: 0.95em;
}

/* ---------- stopka akademicka ---------- */
.lab1-page .lab1-footer {
    background: #243342;
    color: #dfe7ee;
    text-align: center;
    padding: 28px 24px 34px 24px;
    font-size: 0.92em;
    line-height: 1.7;
}
.lab1-page .lab1-footer a { color: #f0b4b4; text-decoration: none; }
.lab1-page .lab1-footer a:hover { text-decoration: underline; }

/* ---------- tabele (ryzyko, niezgodności, CAP) ---------- */
.lab1-page .tabela-objetosc {
    overflow-x: auto;
    margin: 10px 0 4px 0;
}
.lab1-page .tabela-ryzyka,
.lab1-page .tabela-niezgodnosci,
.lab1-page .tabela-cap,
.lab1-page .tabela-rtp {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92em;
    min-width: 640px;
}
.lab1-page .tabela-ryzyka th,
.lab1-page .tabela-niezgodnosci th,
.lab1-page .tabela-cap th,
.lab1-page .tabela-rtp th {
    background: #243342;
    color: #fff;
    text-align: left;
    padding: 8px 10px;
    font-size: 0.88em;
    border: 1px solid #1b2733;
}
.lab1-page .tabela-ryzyka td,
.lab1-page .tabela-niezgodnosci td,
.lab1-page .tabela-cap td,
.lab1-page .tabela-rtp td {
    border: 1px solid #d9dde3;
    padding: 8px 10px;
    vertical-align: top;
}
.lab1-page .tabela-niezgodnosci tr:nth-child(even) td,
.lab1-page .tabela-cap tr:nth-child(even) td,
.lab1-page .tabela-rtp tr:nth-child(even) td,
.lab1-page .tabela-ryzyka tr:nth-child(even) td {
    background: #f6f8fa;
}
.lab1-page .tabela-ryzyka td.p-s,
.lab1-page .tabela-ryzyka td:nth-child(4),
.lab1-page .tabela-ryzyka td:nth-child(6),
.lab1-page .tabela-niezgodnosci td:nth-child(1),
.lab1-page .tabela-niezgodnosci td:nth-child(2),
.lab1-page .tabela-cap td:nth-child(1),
.lab1-page .tabela-cap td:nth-child(2),
.lab1-page .tabela-cap td:nth-child(5),
.lab1-page .tabela-cap td:nth-child(6) {
    text-align: center;
    font-weight: 700;
}
.lab1-page .tabela-ryzyka td.p-s { color: #243342; }
.lab1-page .tabela-ryzyka td:nth-child(4),
.lab1-page .tabela-ryzyka td:nth-child(6) { font-weight: 800; }

/* ---------- tabela Planu Postępowania z Ryzykiem (RTP) ---------- */
.lab1-page .tabela-rtp { min-width: 900px; }
.lab1-page .tabela-rtp td:nth-child(1),
.lab1-page .tabela-rtp td:nth-child(3),
.lab1-page .tabela-rtp td:nth-child(4),
.lab1-page .tabela-rtp td:nth-child(7) {
    text-align: center;
    font-weight: 700;
}
.lab1-page .tabela-rtp td:nth-child(3) { color: #243342; font-weight: 800; }
.lab1-page .tabela-rtp td:nth-child(5) { font-weight: 700; }

/* ---------- poziomy ryzyka (PW = P x S) ---------- */
.lab1-page .rz-krytyczne {
    background: #fdecea !important;
    color: #b71c1c;
}
.lab1-page .rz-wysokie {
    background: #fff3e0 !important;
    color: #b26a00;
}
.lab1-page .rz-srednie {
    background: #fffde7 !important;
    color: #9c8a00;
}
.lab1-page .rz-niskie {
    background: #e8f5e9 !important;
    color: #1b5e20;
}

/* ---------- kwalifikacja ustaleń audytowych ---------- */
.lab1-page .k-nc1 {
    background: #fdecea !important;
    color: #b71c1c;
}
.lab1-page .k-nc2 {
    background: #fff3e0 !important;
    color: #b26a00;
}
.lab1-page .k-ofi {
    background: #e8f5e9 !important;
    color: #1b5e20;
}
.lab1-page .sekcja .przycisk-tabeli {
    font-family: inherit;
    font-size: 0.76em;
    padding: 3px 10px;
    margin-left: 10px;
    background: #eef5fa;
    color: #243342;
    border: 1px solid #b9cfe0;
    cursor: pointer;
    vertical-align: middle;
}
.lab1-page .sekcja .przycisk-tabeli:hover { background: #243342; color: #fff; }
.lab1-page .sekcja.tabela-zwinieta .tabela-objetosc { display: none; }

/* ---------- responsywność projektu ---------- */
@media (max-width: 720px) {
    .lab1-page .page-header h1 { font-size: 1.4em; }
    .lab1-page .zadanie-naglowek { flex-wrap: wrap; }
    .lab1-page .zadanie-zwijanie { margin-left: 0; }
    .lab1-page .container { padding: 24px 12px 50px 12px; }
    .lab1-page .zadanie-tresc { padding: 18px 18px 24px 18px; }
}

/* ============================================================
   LAB1_PROJEKTY_50 – publikacja zadań laboratoryjnych (ocena 5.0)
   Poziom zaawansowany: symulacja audytu w warunkach incydentu
   kryzysowego (formuła 90 minut). Kolorystyka spójna z całością.
   ============================================================ */

/* ---------- odznaka poziomu 5.0 (złoto / platyna) ---------- */
.lab1-page .badge-50 {
    display: inline-block;
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    color: #5c4a00;
    border: 1px solid #d9b54a;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
    font-size: 0.85em;
    padding: 5px 14px;
    font-weight: 700;
    margin-top: 14px;
    
}

/* ---------- karta niezgodności 4C (box-4c) ---------- */
.lab1-page .box-4c {
    background: #fbfcfe;
    border: 1px solid #d9dde3;
    border-left: 6px solid #243342;
    margin: 6px 0 10px 0;
}
.lab1-page .box-4c-naglowek,
.lab1-page .box-5why-naglowek {
    background: #243342;
    color: #fff;
    font-weight: 700;
    font-size: 0.92em;
    padding: 8px 14px;
}
.lab1-page .box-4c-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: #d9dde3;
}
.lab1-page .box-4c-blok {
    background: #fff;
    padding: 12px 16px;
    border-top: 3px solid transparent;
}
.lab1-page .box-4c-blok.condition   { border-top-color: #b71c1c; }
.lab1-page .box-4c-blok.criteria    { border-top-color: #b26a00; }
.lab1-page .box-4c-blok.cause       { border-top-color: #9c8a00; }
.lab1-page .box-4c-blok.consequence { border-top-color: #1b5e20; }
.lab1-page .box-4c-tytul {
    font-weight: 800;
    font-size: 0.88em;
    color: #243342;
    margin-bottom: 6px;
}
.lab1-page .box-4c-blok p { margin: 0; text-align: justify; }
.lab1-page .box-4c .why-lista { margin: 6px 0 6px 20px; padding: 0; }
.lab1-page .box-4c .why-lista li { margin-bottom: 6px; font-size: 0.96em; }
.lab1-page .przyczyna-root {
    background: #fdecea;
    border-left: 4px solid #b71c1c;
    color: #662020;
    padding: 8px 12px;
    margin: 8px 0 0 0;
    font-size: 0.96em;
}

/* ---------- drzewo 5 Why (box-5why) ---------- */
.lab1-page .box-5why {
    background: #fbfcfe;
    border: 1px solid #d9dde3;
    border-left: 6px solid #1b5e20;
    margin: 6px 0 10px 0;
}
.lab1-page .box-5why-naglowek {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.lab1-page .przycisk-5why {
    font-family: inherit;
    font-size: 0.8em;
    padding: 3px 12px;
    background: #eef5fa;
    color: #243342;
    border: 1px solid #b9cfe0;
    cursor: pointer;
    white-space: nowrap;
}
.lab1-page .przycisk-5why:hover { background: #fff; }
.lab1-page .box-5why.zwiniete .box-5why-tresc { display: none; }
.lab1-page .drzewo-5why {
    list-style: none;
    margin: 0;
    padding: 14px 16px;
    border-left: none;
}
.lab1-page .drzewo-5why .why-wezel {
    position: relative;
    padding: 0 0 14px 40px;
    margin: 0;
}
.lab1-page .drzewo-5why .why-wezel::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 22px;
    bottom: -2px;
    width: 2px;
    background: #c9d2dc;
}
.lab1-page .drzewo-5why .why-wezel:last-child::before { display: none; }
.lab1-page .drzewo-5why .why-wezel::after {
    content: '';
    position: absolute;
    left: 14px;
    top: 20px;
    width: 18px;
    height: 2px;
    background: #c9d2dc;
}
.lab1-page .why-etykieta {
    position: absolute;
    left: 0;
    top: 10px;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    background: #243342;
    color: #fff;
    
    font-size: 0.8em;
    font-weight: 700;
    z-index: 1;
}
.lab1-page .drzewo-5why .why-wezel.root .why-etykieta {
    background: #b71c1c;
    font-size: 0.62em;
}
.lab1-page .why-tresc { font-size: 0.96em; text-align: justify; }
.lab1-page .why-wezel.root .why-tresc {
    background: #fdecea;
    border: 1px solid #e9c6c6;
    color: #662020;
    padding: 8px 12px;
}

/* ---------- tabele 5.0: ryzyko, CAP, BCM ---------- */
.lab1-page .tabela-ryzyka-50,
.lab1-page .tabela-cap-50,
.lab1-page .tabela-bcm {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92em;
    min-width: 720px;
}
.lab1-page .tabela-ryzyka-50 th,
.lab1-page .tabela-cap-50 th,
.lab1-page .tabela-bcm th {
    background: #243342;
    color: #fff;
    text-align: left;
    padding: 8px 10px;
    font-size: 0.88em;
    border: 1px solid #1b2733;
}
.lab1-page .tabela-ryzyka-50 td,
.lab1-page .tabela-cap-50 td,
.lab1-page .tabela-bcm td {
    border: 1px solid #d9dde3;
    padding: 8px 10px;
    vertical-align: top;
}
.lab1-page .tabela-ryzyka-50 tr:nth-child(even) td,
.lab1-page .tabela-cap-50 tr:nth-child(even) td,
.lab1-page .tabela-bcm tr:nth-child(even) td { background: #f6f8fa; }
.lab1-page .tabela-ryzyka-50 td.p-s,
.lab1-page .tabela-cap-50 td:nth-child(1),
.lab1-page .tabela-bcm td:nth-child(1) {
    text-align: center;
    font-weight: 700;
}
.lab1-page .tabela-bcm { min-width: 420px; }
.lab1-page .tabela-bcm td:first-child { color: #b71c1c; white-space: nowrap; }

/* ---------- uwaga metodologiczna do tabel (np. wzorzec rejestru ryzyka) ---------- */
.lab1-page .tabela-uwaga {
    background: #fff8e1;
    border: 1px solid #e0b74a;
    border-left: 4px solid #b26a00;
    color: #5a4101;
    padding: 9px 12px;
    margin: 0 0 10px;
    font-size: 0.9em;
    line-height: 1.5;
}

/* ---------- uwaga o podmiotach fikcyjnych i slownik skrotow ---------- */
.lab1-page .uwaga-podmioty {
    background: #eef4fb;
    border: 1px solid #a9c4e4;
    border-left: 4px solid #1f6fb2;
    color: #16324f;
    padding: 9px 12px;
    margin: 0 0 10px;
    font-size: 0.9em;
    line-height: 1.5;
}

/* ---------- moduł interaktywny: harmonogram 90 minut ---------- */
.lab1-page .modul-90,
.lab1-page .kalkulator-5x5,
.lab1-page .formularz-es {
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
    border: 1px solid #d9dde3;
    padding: 24px 30px;
    margin-bottom: 38px;
}
.lab1-page .modul-90 h2,
.lab1-page .kalkulator-5x5 h2,
.lab1-page .formularz-es h2 {
    color: #243342;
    margin: 0 0 8px 0;
    font-size: 1.12em;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-bottom: 2px solid #e3e8ee;
    padding-bottom: 6px;
}
.lab1-page .zegar-90 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 16px 0 18px 0;
    padding: 18px;
    background: #243342;
    
}
.lab1-page .zegar-wyswietlacz {
    font-size: 3.4em;
    font-weight: 800;
    color: #fff;
    font-variant-numeric: tabular-nums;
    letter-spacing: 2px;
    line-height: 1;
}
.lab1-page .zegar-90 .zegar-etykieta {
    color: #b9cfe0;
    font-size: 0.82em;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.lab1-page .zegar-przyciski {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
.lab1-page .zegar-przyciski button {
    font-family: inherit;
    font-size: 0.88em;
    padding: 7px 18px;
    background: #eef5fa;
    color: #243342;
    border: 1px solid #b9cfe0;
    cursor: pointer;
    min-width: 84px;
}
.lab1-page .zegar-przyciski button:hover { background: #fff; }
.lab1-page .zegar-przyciski button.zegar-aktywny {
    background: #e74c3c;
    border-color: #e74c3c;
    color: #fff;
}
.lab1-page .zegar-faza {
    color: #ffd9a0;
    font-weight: 700;
    font-size: 0.95em;
    text-align: center;
}
.lab1-page .tabela-harmonogram {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92em;
    margin: 10px 0 18px 0;
}
.lab1-page .tabela-harmonogram th {
    background: #3a4d63;
    color: #fff;
    padding: 8px 10px;
    text-align: left;
    border: 1px solid #243342;
    font-size: 0.88em;
}
.lab1-page .tabela-harmonogram td {
    border: 1px solid #d9dde3;
    padding: 8px 10px;
    vertical-align: top;
}
.lab1-page .tabela-harmonogram tr[data-faza].aktywna td {
    background: #fdecea;
    box-shadow: inset 4px 0 0 #e74c3c;
    font-weight: 600;
}
.lab1-page .triada { margin-top: 6px; }
.lab1-page .triada-naglowek {
    font-weight: 700;
    color: #243342;
    font-size: 0.95em;
    margin-bottom: 8px;
}
.lab1-page .triada-role {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.lab1-page .rola-karta {
    background: #f4f6f8;
    border: 1px solid #d9dde3;
    border-top: 4px solid #243342;
    padding: 12px 14px;
    font-size: 0.9em;
}
.lab1-page .rola-karta.rola-a { border-top-color: #b71c1c; }
.lab1-page .rola-karta.rola-b { border-top-color: #b26a00; }
.lab1-page .rola-karta.rola-c { border-top-color: #1b5e20; }
.lab1-page .rola-karta h3 {
    margin: 0 0 6px 0;
    font-size: 1em;
    color: #243342;
}
.lab1-page .rola-karta p { margin: 0; text-align: justify; }

/* ---------- moduł interaktywny: kalkulator matrycy 5x5 ---------- */
.lab1-page .kalk-uklad {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 260px;
    gap: 20px;
    align-items: start;
}
.lab1-page .kalk-siatka {
    display: grid;
    grid-template-columns: 56px repeat(5, 1fr);
    gap: 3px;
    background: #d9dde3;
    border: 1px solid #d9dde3;
    padding: 3px;
}
.lab1-page .kalk-siatka .kalk-naglowek,
.lab1-page .kalk-siatka .kalk-cell {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
    text-align: center;
    cursor: default;
}
.lab1-page .kalk-siatka .kalk-naglowek {
    background: #243342;
    color: #fff;
    font-weight: 700;
    font-size: 0.8em;
}
.lab1-page .kalk-siatka .kalk-cell {
    background: #fff;
    font-weight: 800;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.1s, box-shadow 0.1s;
}
.lab1-page .kalk-siatka .kalk-cell.kliknieta {
    outline: 3px solid #e74c3c;
    outline-offset: -1px;
    z-index: 1;
}
.lab1-page .kalk-siatka .kalk-cell:hover { transform: scale(1.06); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18); }
.lab1-page .kalk-cell.zk-czerwona { background: #fdecea; color: #b71c1c; }
.lab1-page .kalk-cell.zk-zolta     { background: #fffde7; color: #9c8a00; }
.lab1-page .kalk-cell.zk-zielona   { background: #e8f5e9; color: #1b5e20; }
.lab1-page .kalk-panel { display: flex; flex-direction: column; gap: 12px; }
.lab1-page .kalk-pole { display: flex; flex-direction: column; gap: 4px; }
.lab1-page .kalk-pole label {
    font-size: 0.85em;
    font-weight: 700;
    color: #243342;
}
.lab1-page .kalk-pole select {
    font-family: inherit;
    font-size: 0.92em;
    padding: 6px 8px;
    border: 1px solid #b9cfe0;
    
    background: #fff;
}
.lab1-page .kalk-wynik {
    background: #fdecea;
    border: 1px solid #e9c6c6;
    color: #b71c1c;
    padding: 14px;
    text-align: center;
}
.lab1-page .kalk-poziom { font-size: 2.2em; font-weight: 800; line-height: 1; }
.lab1-page .kalk-opis { font-size: 0.88em; font-weight: 700; margin-top: 6px; }
.lab1-page .kalk-wynik.wynik-czerwona { background: #fdecea; border-color: #e9c6c6; color: #b71c1c; }
.lab1-page .kalk-wynik.wynik-zolta     { background: #fffde7; border-color: #e6dc9e; color: #9c8a00; }
.lab1-page .kalk-wynik.wynik-zielona   { background: #e8f5e9; border-color: #b3d4b6; color: #1b5e20; }
.lab1-page .kalk-legenda {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}
.lab1-page .legenda-pole {
    padding: 6px 12px;
    font-size: 0.85em;
    font-weight: 700;
    border: 1px solid #d9dde3;
}
.lab1-page .legenda-czerwona { background: #fdecea; color: #b71c1c; }
.lab1-page .legenda-zolta     { background: #fffde7; color: #9c8a00; }
.lab1-page .legenda-zielona   { background: #e8f5e9; color: #1b5e20; }

/* ---------- moduł interaktywny: formularz Executive Summary ---------- */
.lab1-page .formularz-es .es-pola {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 12px 0;
}
.lab1-page .formularz-es label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.85em;
    font-weight: 700;
    color: #243342;
}
.lab1-page .formularz-es select,
.lab1-page .formularz-es input,
.lab1-page .formularz-es textarea {
    font-family: inherit;
    font-size: 0.92em;
    padding: 7px 9px;
    border: 1px solid #b9cfe0;
    
    background: #fff;
    width: 100%;
    box-sizing: border-box;
}
.lab1-page .formularz-es .es-luzy { margin: 6px 0 12px 0; }
.lab1-page .formularz-es .es-luzy label { margin-bottom: 12px; }
.lab1-page .formularz-es .es-przyciski {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.lab1-page .formularz-es .es-przyciski button {
    font-family: inherit;
    font-size: 0.88em;
    padding: 7px 16px;
    background: #243342;
    color: #fff;
    border: 1px solid #243342;
    cursor: pointer;
}
.lab1-page .formularz-es .es-przyciski button:hover { background: #e74c3c; border-color: #e74c3c; }
.lab1-page .formularz-es textarea.es-wynik {
    background: #fbfcfe;
    font-family: inherit;
    white-space: pre-wrap;
}

/* ---------- LAB2 5.0: lista, selektor sektorów, kafelki ---------- */
.lab1-page .badge-50-platyna {
    background: linear-gradient(140deg, #f7f3e9, #fff8e1, #e9dcae);
    color: #5b4400;
    border: 1px solid #e2d5a8;
    border-left: 10px solid #b8860b;
}
.lab1-page .komponent-naglowek {
    margin: 16px 0 8px 0;
    padding: 6px 0 6px 12px;
    border-left: 4px solid #243342;
    background: #f2f5f8;
    color: #243342;
    font-weight: 700;
    font-size: 1.0em;
    letter-spacing: 0.4px;
}
.lab1-page .selektor-sektorow {
    margin: 22px 0 8px 0;
    padding: 16px 18px;
    background: #fbfcfe;
    border: 1px solid #e2e8f0;
}
.lab1-page .selektor-sektorow .chipy-sektorow {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.lab1-page .chip-sektora {
    font-family: inherit;
    font-size: 0.85em;
    padding: 7px 14px;
    background: #fff;
    color: #243342;
    border: 1px solid #cfd8e3;
    cursor: pointer;
    
    transition: all 0.15s ease;
}
.lab1-page .chip-sektora:hover { border-color: #243342; background: #eef2f6; }
.lab1-page .chip-sektora.aktywny { background: #243342; color: #fff; border-color: #243342; }
.lab1-page .spis-kafelki { margin: 22px 0 8px 0; }
.lab1-page .spis-kafelki .kafelki {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    margin-top: 14px;
}
.lab1-page .spis-kafelki .kafelek {
    display: block;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.lab1-page .spis-kafelki .kafelek:hover { border-color: #b8860b; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10); }
.lab1-page .kafelek-numer { font-weight: 800; color: #b8860b; font-size: 1.35em; }
.lab1-page .kafelek-tytul {
    color: #243342;
    font-weight: 600;
    font-size: 0.92em;
    line-height: 1.3;
    margin: 4px 0 8px 0;
}
.lab1-page .kafelek-tagi { display: flex; flex-wrap: wrap; gap: 5px; }
.lab1-page .kafelek-tagi .tag {
    font-size: 0.72em;
    padding: 2px 8px;
    background: #eef2f6;
    color: #243342;
    border: 1px solid #dbe4ee;
    
}

/* ---------- LAB2 5.0: heatmap 5x5 ---------- */
.lab1-page .heatmap-panel { margin: 6px 0 18px 0; overflow-x: auto; }
.lab1-page .heatmap-5x5 { border-collapse: collapse; margin: 8px 0 4px 0; }
.lab1-page .heatmap-5x5 th,
.lab1-page .heatmap-5x5 td { border: 1px solid #dbe4ee; padding: 6px 10px; text-align: center; font-size: 0.85em; min-width: 38px; }
.lab1-page .heatmap-5x5 thead th,
.lab1-page .heatmap-5x5 tbody th { background: #243342; color: #fff; font-weight: 600; }

/* ---------- LAB2 5.0: Executive Summary (KPI) i RACI ---------- */
.lab1-page .es-karty {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin: 8px 0;
}
.lab1-page .karta-kpi {
    background: #fbfcfe;
    border: 1px solid #e2e8f0;
    border-top: 4px solid #b8860b;
    padding: 10px 12px;
}
.lab1-page .kpi-naglowek {
    font-size: 0.74em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #5b6716;
    margin-bottom: 5px;
}
.lab1-page .kpi-wartosc { font-size: 0.9em; color: #1f2937; line-height: 1.35; }
.lab1-page .es-synteza {
    margin: 10px 0 4px 0;
    padding: 10px 14px;
    background: #fdf8ec;
    border-left: 4px solid #b8860b;
    font-size: 0.9em;
    color: #3d3a26;
}
.lab1-page .tabela-raci { border-collapse: collapse; width: 100%; min-width: 760px; margin-bottom: 4px; }
.lab1-page .tabela-raci th,
.lab1-page .tabela-raci td { border: 1px solid #dbe4ee; padding: 8px 10px; font-size: 0.85em; text-align: left; vertical-align: top; }
.lab1-page .tabela-raci th { background: #243342; color: #fff; font-weight: 600; }

/* ---------- LAB2 5.0: legenda 4C i symulator spotkania zamykającego ---------- */
.lab1-page .legenda-4c { margin: 6px 0 18px 0; }
.lab1-page .legenda-4c-naglowek {
    margin: 14px 0 8px 0;
    padding: 6px 0 6px 12px;
    border-left: 4px solid #b8860b;
    background: #fdf8ec;
    color: #5b4400;
    font-weight: 700;
}
.lab1-page .legenda-4c-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px;
}
.lab1-page .symulator-zam {
    margin: 22px 0 8px 0;
    padding: 16px 18px;
    background: #fbfcfe;
    border: 1px solid #e2e8f0;
}
.lab1-page .symulator-zam .zam-uklad {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
    margin-top: 12px;
}
.lab1-page .symulator-zam .zam-pole { display: flex; flex-direction: column; gap: 8px; }
.lab1-page .symulator-zam label { font-size: 0.84em; font-weight: 600; color: #243342; }
.lab1-page .symulator-zam select { font-family: inherit; padding: 8px 10px; border: 1px solid #cfd8e3; }
.lab1-page .symulator-zam button {
    font-family: inherit;
    font-size: 0.85em;
    padding: 8px 14px;
    background: #243342;
    color: #fff;
    border: none;
    cursor: pointer;
}
.lab1-page .symulator-zam button:hover { background: #e74c3c; }
.lab1-page .symulator-zam .zam-box {
    min-height: 80px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #dbe4ee;
    font-size: 0.87em;
    line-height: 1.4;
}

/* ---------- responsywność poziomu 5.0 ---------- */
@media (max-width: 860px) {
    .lab1-page .box-4c-grid { grid-template-columns: 1fr; }
    .lab1-page .triada-role { grid-template-columns: 1fr; }
    .lab1-page .kalk-uklad { grid-template-columns: 1fr; }
    .lab1-page .formularz-es .es-pola { grid-template-columns: 1fr; }
    .lab1-page .symulator-zam .zam-uklad { grid-template-columns: 1fr; }
    .lab1-page .spis-kafelki .kafelki { grid-template-columns: 1fr; }
    .lab1-page .es-karty { grid-template-columns: 1fr; }
}

/* ---------- kontener generycznej ilustracji (Lab3) ---------- */
.lab1-page .zadanie-temat {
    margin: 0 0 6px 0;
    font-size: 0.88em;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-align: justify;
}
.lab1-page .sekcja.ilustracja { background: #fbfcfd; }
.lab1-page .ilustracja-kontener { padding: 6px 0 2px 0; }
.lab1-page .ilustracja-figure { margin: 0 0 8px 0; }
.lab1-page .ilustracja-figure figcaption {
    margin: 8px 0 0 0;
    text-align: center;
    font-size: 0.85em;
    color: #5b6b7b;
    line-height: 1.4;
}
/* ---------- LAB6 5.0: model 4C i Trójfazowy Plan CAP ---------- */
.lab6-50 .box-4c-blok.condition   { border-top-color: #e3b505; }
.lab6-50 .box-4c-blok.criteria    { border-top-color: #1f6fb2; }
.lab6-50 .box-4c-blok.cause       { border-top-color: #7d3c98; }
.lab6-50 .box-4c-blok.consequence { border-top-color: #c62828; }
.lab6-50 .tabela-cap-50 tr.cap-faza-1 td { border-left: 4px solid #b26a00; }
.lab6-50 .tabela-cap-50 tr.cap-faza-2 td { border-left: 4px solid #1f6fb2; }
.lab6-50 .tabela-cap-50 tr.cap-faza-3 td { border-left: 4px solid #1b5e20; }
.lab6-50 .tabela-cap-50 td:nth-child(1)  { white-space: nowrap; font-weight: 700; }
.lab6-50 .tabela-cap-50 tr.cap-faza-1 td:nth-child(1) { background: #fff3e0; color: #b26a00; }
.lab6-50 .tabela-cap-50 tr.cap-faza-2 td:nth-child(1) { background: #e3f2fd; color: #1f6fb2; }
.lab6-50 .tabela-cap-50 tr.cap-faza-3 td:nth-child(1) { background: #e8f5e9; color: #1b5e20; }

/* ---------- LAB7 5.0: model 4C i Trójfazowy Plan CAP ---------- */
.lab7-50 .box-4c-blok.condition   { border-top-color: #e3b505; }
.lab7-50 .box-4c-blok.criteria    { border-top-color: #1f6fb2; }
.lab7-50 .box-4c-blok.cause       { border-top-color: #7d3c98; }
.lab7-50 .box-4c-blok.consequence { border-top-color: #c62828; }
.lab7-50 .tabela-cap-50 tr.cap-faza-1 td { border-left: 4px solid #b26a00; }
.lab7-50 .tabela-cap-50 tr.cap-faza-2 td { border-left: 4px solid #1f6fb2; }
.lab7-50 .tabela-cap-50 tr.cap-faza-3 td { border-left: 4px solid #1b5e20; }
.lab7-50 .tabela-cap-50 td:nth-child(1)  { white-space: nowrap; font-weight: 700; }
.lab7-50 .tabela-cap-50 tr.cap-faza-1 td:nth-child(1) { background: #fff3e0; color: #b26a00; }
.lab7-50 .tabela-cap-50 tr.cap-faza-2 td:nth-child(1) { background: #e3f2fd; color: #1f6fb2; }
.lab7-50 .tabela-cap-50 tr.cap-faza-3 td:nth-child(1) { background: #e8f5e9; color: #1b5e20; }

.lab8-50 .box-4c-blok.condition   { border-top-color: #e3b505; }
.lab8-50 .box-4c-blok.criteria    { border-top-color: #1f6fb2; }
.lab8-50 .box-4c-blok.cause       { border-top-color: #7d3c98; }
.lab8-50 .box-4c-blok.consequence { border-top-color: #c62828; }
.lab8-50 .tabela-cap-50 tr.cap-faza-1 td { border-left: 4px solid #b26a00; }
.lab8-50 .tabela-cap-50 tr.cap-faza-2 td { border-left: 4px solid #1f6fb2; }
.lab8-50 .tabela-cap-50 tr.cap-faza-3 td { border-left: 4px solid #1b5e20; }
.lab8-50 .tabela-cap-50 td:nth-child(1)  { white-space: nowrap; font-weight: 700; }
.lab8-50 .tabela-cap-50 tr.cap-faza-1 td:nth-child(1) { background: #fff3e0; color: #b26a00; }
.lab8-50 .tabela-cap-50 tr.cap-faza-2 td:nth-child(1) { background: #e3f2fd; color: #1f6fb2; }
.lab8-50 .tabela-cap-50 tr.cap-faza-3 td:nth-child(1) { background: #e8f5e9; color: #1b5e20; }

/* ============================================================
   CZĘŚĆ 5: SLAJD 15a – INTERAKTYWNA MACIERZ RYZYKA 5x5
   ============================================================ */
.scenario-box {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-left: 5px solid #e74c3c;
    padding: 12px 14px;
    
    margin: 10px 0 14px 0;
    font-size: 0.9em;
    line-height: 1.5;
    color: #334155;
}
.matrix-controls-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    
    padding: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.control-row {
    margin-bottom: 12px;
}
.control-row label, .control-col label {
    display: block;
    font-size: 0.86em;
    font-weight: 700;
    color: #243342;
    margin-bottom: 4px;
}
.matrix-select {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #cbd5e1;
    
    background: #ffffff;
    font-family: inherit;
    font-size: 0.88em;
    color: #1e293b;
}
.control-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 12px;
}
.number-input-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 0.82em;
    color: #64748b;
}
.matrix-num-input {
    width: 60px;
    padding: 4px 6px;
    border: 1px solid #cbd5e1;
    
    font-size: 0.9em;
    font-weight: 700;
    text-align: center;
    color: #1e293b;
}
.matrix-verdict-card {
    
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    transition: background-color 0.25s, border-color 0.25s;
    margin-top: 10px;
}
.matrix-verdict-card.strefa-czerwona {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #991b1b;
}
.matrix-verdict-card.strefa-zolta {
    background: #fffbeb;
    border-color: #fcd34d;
    color: #92400e;
}
.matrix-verdict-card.strefa-zielona {
    background: #f0fdf4;
    border-color: #86efac;
    color: #166534;
}
.verdict-score-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.verdict-label {
    font-size: 0.85em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.verdict-score {
    font-size: 1.5em;
    font-weight: 800;
    font-family: inherit;
}
.verdict-badge {
    display: inline-block;
    padding: 3px 8px;
    
    font-size: 0.78em;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.badge-czerwona { background: #dc2626; color: #ffffff; }
.badge-zolta    { background: #f59e0b; color: #ffffff; }
.badge-zielona  { background: #16a34a; color: #ffffff; }
.verdict-text {
    font-size: 0.84em;
    line-height: 1.45;
}

/* WIZUALNA MACIERZ 5x5 */
.interactive-matrix-box {
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    
    padding: 14px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    user-select: none;
}
.matrix-title-bar {
    font-size: 0.88em;
    font-weight: 700;
    color: #243342;
    text-align: center;
    margin-bottom: 10px;
}
.matrix-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}
.matrix-y-axis {
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    font-size: 0.75em;
    font-weight: 700;
    color: #475569;
    letter-spacing: 1px;
    text-align: center;
    white-space: nowrap;
}
.matrix-x-axis {
    text-align: center;
    font-size: 0.75em;
    font-weight: 700;
    color: #475569;
    letter-spacing: 1px;
    margin-top: 8px;
    padding-left: 36px;
}
.matrix-grid-container {
    display: grid;
    grid-template-columns: 36px repeat(5, 1fr);
    grid-template-rows: repeat(5, 42px) 24px;
    gap: 4px;
    width: 100%;
}
.m-head-y, .m-head-x {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82em;
    font-weight: 700;
    color: #64748b;
}
.m-head-y { background: #f1f5f9;  }
.m-head-x { padding-top: 4px; }
.m-cell {
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
    font-weight: 800;
    color: #ffffff;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, outline 0.15s ease;
    position: relative;
    border: 1px solid rgba(0,0,0,0.06);
}
.m-cell:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 10px rgba(0,0,0,0.22);
    z-index: 5;
}
.m-cell.active-cell {
    outline: 3px solid #243342;
    outline-offset: 1px;
    transform: scale(1.12);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 6;
}
.m-cell.active-cell::after {
    content: "▲";
    position: absolute;
    bottom: -6px;
    font-size: 8px;
    color: #243342;
}

/* Kolorystyka macierzy 5x5 */
.cell-r25 { background: #7f1d1d; }
.cell-r20 { background: #991b1b; }
.cell-r16 { background: #b91c1c; }
.cell-r15 { background: #dc2626; }
.cell-r12 { background: #ea580c; }
.cell-r10 { background: #ea580c; }
.cell-r9  { background: #f59e0b; }
.cell-r8  { background: #f59e0b; }
.cell-r6  { background: #84cc16; color: #1e293b; }
.cell-r5  { background: #84cc16; color: #1e293b; }
.cell-r4  { background: #22c55e; }
.cell-r3  { background: #16a34a; }
.cell-r2  { background: #16a34a; }
.cell-r1  { background: #15803d; }

.matrix-legend-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
    font-size: 0.75em;
    color: #64748b;
}
.leg-item { display: flex; align-items: center; gap: 4px; }
.leg-dot { width: 10px; height: 10px;  display: inline-block; }
.leg-zielony .leg-dot { background: #16a34a; }
.leg-zolty .leg-dot   { background: #f59e0b; }
.leg-czerwony .leg-dot{ background: #dc2626; }

/* ============================================================
   CZĘŚĆ 5: SLAJD 16a – FORMULARZ OBLICZEŃ ANALIZY RYZYKA
   ============================================================ */
.calc-tabs {
    display: flex;
    gap: 8px;
    margin: 12px 0 16px 0;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 8px;
}
.calc-tab-btn {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    
    background: #f8fafc;
    font-family: inherit;
    font-size: 0.84em;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}
.calc-tab-btn:hover {
    background: #eef5fa;
    border-color: #94a3b8;
}
.calc-tab-btn.active {
    background: #243342;
    border-color: #243342;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(36, 51, 66, 0.25);
}
.calc-tab-content.hidden {
    display: none !important;
}
.form-section-title {
    font-size: 0.88em;
    font-weight: 700;
    color: #243342;
    margin-bottom: 8px;
}
.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.form-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.form-field label {
    font-size: 0.83em;
    font-weight: 700;
    color: #334155;
}
.calc-input {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #cbd5e1;
    
    background: #ffffff;
    font-family: inherit;
    font-size: 0.86em;
    color: #1e293b;
    box-sizing: border-box;
}
.field-hint {
    font-size: 0.74em;
    color: #64748b;
    margin-top: 2px;
}
.slider-container {
    display: flex;
    align-items: center;
    gap: 12px;
}
.calc-slider {
    flex: 1;
    accent-color: #0284c7;
    cursor: pointer;
}
.slider-badge {
    min-width: 95px;
    text-align: center;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    padding: 4px 8px;
    
    font-size: 0.82em;
    font-weight: 700;
}

/* DASHBOARD WYNIKÓW */
.calc-results-dashboard {
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    
    padding: 16px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}
.dashboard-header {
    background: #243342;
    color: #ffffff;
    padding: 7px 12px;
    
    font-size: 0.82em;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-align: center;
    margin-bottom: 12px;
}
.results-box.hidden {
    display: none !important;
}
.metric-pair {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}
.metric-card {
    flex: 1;
    padding: 10px;
    
    border: 1px solid #e2e8f0;
    text-align: center;
    background: #f8fafc;
}
.metric-arrow {
    font-size: 1.4em;
    font-weight: 800;
    color: #64748b;
}
.m-title {
    font-size: 0.72em;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.m-val {
    font-size: 1.45em;
    font-weight: 800;
    margin: 4px 0;
}
.m-sub {
    font-size: 0.74em;
    color: #64748b;
}
.val-danger  { color: #dc2626 !important; }
.val-warning { color: #d97706 !important; }
.val-success { color: #16a34a !important; }
.val-accent  { color: #0284c7 !important; }

.progress-bar-block {
    margin-bottom: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 8px 10px;
    
}
.pb-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.78em;
    color: #475569;
    margin-bottom: 5px;
}
.pb-track {
    height: 10px;
    background: #e2e8f0;
    
    overflow: hidden;
}
.pb-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #16a34a);
    transition: width 0.3s ease;
}

.rec-box {
    
    padding: 10px 12px;
    font-size: 0.82em;
    line-height: 1.45;
    margin-bottom: 12px;
}
.rec-box.box-danger  { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }
.rec-box.box-warning { background: #fffbeb; border: 1px solid #fcd34d; color: #92400e; }
.rec-box.box-success { background: #f0fdf4; border: 1px solid #86efac; color: #166534; }

.metric-grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}
.m-tile {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    
    padding: 8px;
}
.m-tile-lbl {
    font-size: 0.72em;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 3px;
}
.m-tile-num {
    font-size: 1.05em;
    font-weight: 800;
    color: #1e293b;
}

.rosi-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    
    padding: 8px 12px;
    margin-bottom: 12px;
}
.rosi-lbl {
    font-size: 0.78em;
    font-weight: 700;
    color: #1e40af;
}
.rosi-num {
    font-size: 1.3em;
    font-weight: 800;
    color: #1d4ed8;
}

.calc-actions {
    display: flex;
    gap: 8px;
}
.btn-calc-preset {
    flex: 1;
    padding: 6px 8px;
    font-size: 0.76em;
    font-weight: 700;
    border: 1px solid #cbd5e1;
    
    background: #f1f5f9;
    color: #334155;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-calc-preset:hover {
    background: #e2e8f0;
}

/* ============================================================
   LAB1_PROJEKTY_30 (body.bp30) – rozbudowany moduł ćwiczeń:
   szersza kolumna, zwijane sekcje, harmonogram 180 minut,
   triada, kalkulator i matryca ryzyka, formularz raportu,
   checklista, nawigator oraz powiększanie tabel i ilustracji.
   Wszystkie reguły są scopowane do body.bp30, aby nie zmieniać
   wyglądu i działania pozostałych stron laboratoryjnych.
   ============================================================ */

/* ---------- 1. Szersza główna kolumna dokumentu ---------- */
html.bp30-strona {
    overflow-x: hidden;
}
@supports (overflow-x: clip) {
    html.bp30-strona,
    body.bp30 {
        overflow-x: clip;
    }
}
body.bp30 {
    overflow-x: hidden;
}
body.bp30 .container {
    max-width: 1080px;
    padding: 36px 30px 80px 30px;
}

/* ---------- 2. Wspólny, zwijany nagłówek każdej sekcji ---------- */
body.bp30 .sekcja-glowna {
    background: #fff;
    border: 1px solid #d9dde3;
    
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
    margin-bottom: 34px;
    overflow: visible;
}
body.bp30 .naglowek-sekcji {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 20px;
    cursor: pointer;
    user-select: none;
    background: linear-gradient(135deg, #243342 0%, #3a4d63 100%);
    border-left: 0px solid #b8860b;
    border-bottom: 1px solid #cfd8e3;
    
    transition: background 0.2s ease, border-left-color 0.2s ease;
}
body.bp30 .naglowek-sekcji:hover {
    background: linear-gradient(135deg, #2c3e50 0%, #46596f 100%);
    border-left-color: #e74c3c;
}
body.bp30 .naglowek-sekcji:focus-visible {
    outline: 3px solid #e74c3c;
    outline-offset: -3px;
}
body.bp30 .naglowek-znak {
    color: #ffd9a0;
    font-size: 0.9em;
    line-height: 1;
    transition: transform 0.2s ease;
}
body.bp30 .naglowek-tytul {
    flex: 1;
    margin: 0;
    padding: 0;
    border: 0;
    color: #fff;
    font-size: 1.08em;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.3px;
    text-transform: none;
}
body.bp30 .naglowek-przycisk {
    flex: 0 0 auto;
    font-family: inherit;
    font-size: 0.85em;
    font-weight: 700;
    padding: 7px 18px;
    color: #243342;
    background: #ffd9a0;
    border: 1px solid #b8860b;
    
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}
body.bp30 .naglowek-przycisk:hover {
    background: #fff;
    color: #b71c1c;
    border-color: #b71c1c;
}
body.bp30 .sekcja-tresc {
    padding: 20px 30px 26px 30px;
}
body.bp30 .sekcja-glowna > .naglowek-sekcji {
    border-bottom-color: transparent;
}
body.bp30 .sekcja-glowna.zamkniete > .sekcja-tresc {
    display: none;
}
body.bp30 .sekcja-glowna.zamkniete > .naglowek-sekcji .naglowek-znak {
    transform: rotate(-90deg);
}

/* wymagania ogólne: zachowuję żółtą identyfikację informatora */
body.bp30 .wymagania-box {
    padding: 0;
    border-left-width: 1px;
    
    background: #fffdf3;
    font-size: 1em;
}
body.bp30 .wymagania-box > .naglowek-sekcji {
    /*background: linear-gradient(135deg, #6b5310 0%, #8a6c14 100%);*/
	background: linear-gradient(135deg, #124873 0%, #16598C 100%);
    border-left-color: #c8a800;
}
body.bp30 .wymagania-box > .naglowek-sekcji:hover {
    /*background: linear-gradient(135deg, #7a5f0f 0%, #a07d16 100%);*/
	background: linear-gradient(135deg, #1C70B0 0%, #1C70B0 100%);
    border-left-color: #e74c3c;
}
body.bp30 .wymagania-box > .naglowek-sekcji .naglowek-tytul {
    text-transform: none;
    color: #fffbe6;
    border: 0;
    padding: 0;
    letter-spacing: 0.3px;
}

/* podsekcje i tabela kryteriów w wymaganiach */
body.bp30 .wym-podsekcja {
    margin: 0 0 18px 0;
    padding: 0 0 14px 0;
    border-bottom: 1px dashed #e0d3ae;
}
body.bp30 .wym-podsekcja:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}
body.bp30 .wym-podsekcja h3 {
    margin: 0 0 8px 0;
    color: #6b5310;
    font-size: 1.02em;
    text-transform: none;
    border-left: 4px solid #c8a800;
    padding-left: 10px;
	background-color: #DBCFAF;
}
body.bp30 .wym-podsekcja p {
    margin: 0 0 8px 0;
    text-align: justify;
}
body.bp30 .wym-lista {
    margin: 6px 0 10px 22px;
}
body.bp30 .wym-lista li {
    margin-bottom: 5px;
    text-align: justify;
}
body.bp30 .tabela-kryteria {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92em;
    margin: 8px 0 4px 0;
}
body.bp30 .tabela-kryteria th {
    background: #3a4d63;
    color: #fff;
    text-align: left;
    padding: 8px 10px;
    border: 1px solid #243342;
    font-size: 0.9em;
}
body.bp30 .tabela-kryteria td {
    border: 1px solid #d9dde3;
    padding: 8px 10px;
    vertical-align: top;
    text-align: justify;
}
body.bp30 .tabela-kryteria .k-liczba {
    text-align: center;
    font-weight: 700;
    color: #b71c1c;
    white-space: nowrap;
}

/* ---------- 3. Karty modułów interaktywnych ---------- */
body.bp30 .sekcja-tresc > p.tresc-skrot {
    margin: 0 0 16px 0;
    text-align: justify;
    color: #3d4d5c;
}
body.bp30 .sekcja-tresc h3 {
    text-transform: none;
}

/* harmonogram 180 minut */
body.bp30 .zegar-180 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 16px 0 20px 0;
    padding: 20px;
    background: #243342;
    
}
body.bp30 .zegar-180 .zegar-etykieta {
    color: #b9cfe0;
    font-size: 0.82em;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
body.bp30 .zegar-180 .zegar-faza {
    color: #ffd9a0;
    font-weight: 700;
    font-size: 0.95em;
    text-align: center;
}
body.bp30 .zegar-180.zegar-koniec {
    background: #7b241c;
}
body.bp30 .tabela-harmonogram .harm-nr {
    white-space: nowrap;
    font-weight: 700;
    color: #243342;
}
body.bp30 .tabela-harmonogram .harm-rola {
    white-space: nowrap;
    font-weight: 700;
    color: #b26a00;
}
body.bp30 .tabela-harmonogram tr[data-faza180].aktywna td {
    background: #fdecea;
    box-shadow: inset 4px 0 0 #e74c3c;
    font-weight: 600;
}

/* triada autorska */
body.bp30 .triada {
    margin-top: 20px;
    padding: 16px 18px;
    background: #f7f9fb;
    border: 1px solid #dbe4ee;
    
}
body.bp30 .rola-wybor {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 10px;
    font-size: 0.85em;
    font-weight: 700;
    color: #243342;
}
body.bp30 .rola-wybor select {
    font-family: inherit;
    font-size: 0.95em;
    font-weight: 400;
    padding: 6px 8px;
    border: 1px solid #b9cfe0;
    
    background: #fff;
}
body.bp30 .triada-akcje {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0 10px 0;
}
body.bp30 .triada-akcje button {
    font-family: inherit;
    font-size: 0.88em;
    padding: 7px 16px;
    background: #243342;
    color: #fff;
    border: 1px solid #243342;
    cursor: pointer;
}
body.bp30 .triada-akcje button:hover {
    background: #e74c3c;
    border-color: #e74c3c;
}
body.bp30 .triada-wynik {
    padding: 10px 14px;
    font-size: 0.9em;
    font-weight: 700;
    background: #eef2f6;
    border-left: 5px solid #9aa7b4;
}
body.bp30 .triada-wynik.ok {
    background: #e8f5e9;
    border-left-color: #1b5e20;
    color: #1b5e20;
}
body.bp30 .triada-wynik.blad {
    background: #fdecea;
    border-left-color: #b71c1c;
    color: #b71c1c;
}

/* kalkulator ryzyka */
body.bp30 .kr-form {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 16px;
    padding: 14px 16px;
    background: #f7f9fb;
    border: 1px solid #dbe4ee;
    
}
body.bp30 .kr-pole {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.85em;
    font-weight: 700;
    color: #243342;
}
body.bp30 .kr-pole input,
body.bp30 .kr-pole select {
    font-family: inherit;
    font-size: 0.95em;
    font-weight: 400;
    padding: 7px 9px;
    border: 1px solid #b9cfe0;
    
    background: #fff;
    width: 100%;
    box-sizing: border-box;
}
body.bp30 .kr-dodaj button {
    font-family: inherit;
    font-size: 0.88em;
    font-weight: 700;
    white-space: nowrap;
    padding: 8px 18px;
    background: #e74c3c;
    color: #fff;
    border: 1px solid #b71c1c;
    cursor: pointer;
}
body.bp30 .kr-dodaj button:hover {
    background: #b71c1c;
}
/* Wariant 4.0 ma siedem pól (P, S, P', S', gradacja, reżim), więc siatka musi
   pomieścić osiem elementów wraz z przyciskiem dodania. */
body.lab10-bp40 .kr-form {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
body.lab10-bp40 .kr-form .kr-pole:first-child {
    grid-column: 1 / -1;
}
body.lab10-bp40 .kr-form .kr-dodaj {
    align-self: end;
}
body.bp30 .kr-podsumowanie {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
body.bp30 .kr-kafelka {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 12px 10px;
    background: #fbfcfe;
    border: 1px solid #dbe4ee;
    border-left: 5px solid #243342;
    
}
body.bp30 .kr-liczba {
    font-size: 1.7em;
    font-weight: 800;
    color: #243342;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
body.bp30 .kr-etykieta {
    font-size: 0.8em;
    color: #5b6b7b;
    text-align: center;
}
body.bp30 .kr-wynik {
    max-width: 460px;
    margin: 0 0 16px 0;
}
body.bp30 .tabela-kr {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
    margin-bottom: 14px;
}
body.bp30 .tabela-kr th {
    background: #3a4d63;
    color: #fff;
    text-align: left;
    padding: 8px 10px;
    border: 1px solid #243342;
    font-size: 0.88em;
}
body.bp30 .tabela-kr td {
    border: 1px solid #d9dde3;
    padding: 7px 10px;
    vertical-align: top;
    text-align: justify;
}
body.bp30 .tabela-kr td.kr-liczba,
body.bp30 .tabela-kr th.kr-liczba {
    text-align: center;
    font-weight: 700;
    white-space: nowrap;
}
body.bp30 .tabela-kr tr.kr-pusty td {
    text-align: center;
    color: #5b6b7b;
    font-style: italic;
}
body.bp30 .tabela-kr tr.zk-czerwona td {
    background: #fdecea;
}
body.bp30 .tabela-kr tr.zk-zolta td {
    background: #fffde7;
}
body.bp30 .tabela-kr tr.zk-zielona td {
    background: #f4faf5;
}
body.bp30 .tabela-kr .kr-usun {
    font-family: inherit;
    font-size: 0.8em;
    padding: 4px 10px;
    background: #fff;
    color: #b71c1c;
    border: 1px solid #e0b4b0;
    cursor: pointer;
}
body.bp30 .tabela-kr .kr-usun:hover {
    background: #b71c1c;
    color: #fff;
}
body.bp30 .kr-akcje {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}
body.bp30 .kr-akcje button {
    font-family: inherit;
    font-size: 0.88em;
    padding: 7px 16px;
    background: #243342;
    color: #fff;
    border: 1px solid #243342;
    cursor: pointer;
}
body.bp30 .kr-akcje button:hover {
    background: #e74c3c;
    border-color: #e74c3c;
}
body.bp30 .legenda-oznaczenie {
    background: #eef2f6;
    color: #243342;
}

/* matryca ryzyka */
body.bp30 .kalk-uklad {
    max-width: 1000px;
    margin: 0 auto;
}
body.bp30 .mx-skala {
    font-size: 0.85em;
    font-weight: 400;
    color: #5b6b7b;
    line-height: 1.45;
}

/* ---------- matryca ryzyka 5 x 5 (LAB1, ocena 3.0) ----------
   Siatka dostaje krótkie oznaczenia skali (P 1, S 5), a pełne objaśnienie
   przeniesione jest do dwóch kolumn definicji oraz do tabeli stref ryzyka.
   Dzięki temu nagłówki pozostają czytelne, a opisy nie giną w wąskich
   kolumnach siatki. */
body.bp30 #matryca-ryzyka .mx-uklad {
    max-width: 1000px;
    grid-template-columns: minmax(340px, 1fr) 300px;
    gap: 24px;
    align-items: start;
    margin: 18px auto 20px auto;
}
body.bp30 #matryca-ryzyka .mx-siatka-blok { min-width: 0; }
body.bp30 #matryca-ryzyka .mx-siatka-wiersz {
    display: flex;
    align-items: stretch;
    gap: 8px;
}
body.bp30 #matryca-ryzyka .mx-osa {
    font-size: 0.78em;
    font-weight: 700;
    color: #3a4d63;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
body.bp30 #matryca-ryzyka .mx-osa-pozioma {
    text-align: center;
    margin-bottom: 7px;
}
body.bp30 #matryca-ryzyka .mx-osa-pionowa {
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
    background: #e8eef4;
    border: 1px solid #d9dde3;
    padding: 10px 4px;
}
body.bp30 #matryca-ryzyka .kalk-siatka {
    flex: 1 1 auto;
    min-width: 0;
    grid-template-columns: 54px repeat(5, minmax(52px, 1fr));
    gap: 4px;
    padding: 4px;
}
body.bp30 #matryca-ryzyka .kalk-siatka .kalk-naglowek {
    min-height: 38px;
    font-size: 0.82em;
    line-height: 1.2;
    letter-spacing: 0.3px;
    border-radius: 3px;
}
body.bp30 #matryca-ryzyka .kalk-siatka .kalk-naroznik {
    background: #1b2836;
    font-size: 0.76em;
}
body.bp30 #matryca-ryzyka .kalk-siatka .kalk-cell {
    min-height: 56px;
    font-size: 1.15em;
    font-variant-numeric: tabular-nums;
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}
body.bp30 #matryca-ryzyka .kalk-siatka .kalk-cell:hover { transform: none; }
body.bp30 #matryca-ryzyka .mx-panel {
    background: #f7f9fb;
    border: 1px solid #d9dde3;
    padding: 16px;
    gap: 14px;
}
body.bp30 #matryca-ryzyka .mx-panel-podpowiedz {
    margin: 0;
    font-size: 0.83em;
    line-height: 1.5;
    color: #5b6b7b;
    border-top: 1px dashed #cfd8e0;
    padding-top: 10px;
}
body.bp30 #matryca-ryzyka .kalk-wynik { border-radius: 4px; }
body.bp30 #matryca-ryzyka .kalk-opis { line-height: 1.45; }

/* definicje obu skal – dwie czytelne kolumny zamiast ściany tekstu */
body.bp30 #matryca-ryzyka .mx-definicje {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 0 0 20px 0;
}
body.bp30 #matryca-ryzyka .mx-definicje-kolumna {
    background: #f7f9fb;
    border: 1px solid #d9dde3;
    border-top: 4px solid #3a4d63;
    padding: 14px 18px 16px 18px;
}
body.bp30 #matryca-ryzyka .mx-definicje-tytul {
    margin: 0 0 10px 0;
    font-size: 0.95em;
    font-weight: 700;
    color: #243342;
}
body.bp30 #matryca-ryzyka .mx-skala-def { margin: 0; }
body.bp30 #matryca-ryzyka .mx-definicje-pozycja {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 10px;
    align-items: start;
    padding: 7px 0;
    border-top: 1px solid #e3e8ee;
}
body.bp30 #matryca-ryzyka .mx-definicje-pozycja:first-child { border-top: 0; }
body.bp30 #matryca-ryzyka .mx-definicje-pozycja dt {
    margin: 0;
    font-size: 0.95em;
    font-weight: 800;
    text-align: center;
    color: #fff;
    background: #3a4d63;
    border-radius: 3px;
    padding: 3px 0;
    font-variant-numeric: tabular-nums;
}
body.bp30 #matryca-ryzyka .mx-definicje-pozycja dd {
    margin: 0;
    font-size: 0.9em;
    line-height: 1.5;
    text-align: left;
}

/* tabela stref ryzyka z wymaganym postępowaniem */
body.bp30 #matryca-ryzyka .tabela-mx-zone {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
    margin: 0 0 16px 0;
}
body.bp30 #matryca-ryzyka .tabela-mx-zone caption {
    caption-side: top;
    text-align: left;
    font-size: 0.88em;
    font-weight: 700;
    color: #3a4d63;
    padding-bottom: 8px;
}
body.bp30 #matryca-ryzyka .tabela-mx-zone th,
body.bp30 #matryca-ryzyka .tabela-mx-zone td {
    border: 1px solid #d9dde3;
    padding: 9px 11px;
    text-align: left;
    vertical-align: top;
    line-height: 1.5;
}
body.bp30 #matryca-ryzyka .tabela-mx-zone thead th {
    background: #3a4d63;
    color: #fff;
    font-size: 0.92em;
}
body.bp30 #matryca-ryzyka .tabela-mx-zone td:first-child,
body.bp30 #matryca-ryzyka .tabela-mx-zone td:nth-child(2) {
    font-weight: 700;
    white-space: nowrap;
}
body.bp30 #matryca-ryzyka .mx-zone-zielona td:nth-child(1),
body.bp30 #matryca-ryzyka .mx-zone-zielona td:nth-child(2) { color: #1b5e20; }
body.bp30 #matryca-ryzyka .mx-zone-zolta td:nth-child(1),
body.bp30 #matryca-ryzyka .mx-zone-zolta td:nth-child(2) { color: #8a7600; }
body.bp30 #matryca-ryzyka .mx-zone-czerwona td:nth-child(1),
body.bp30 #matryca-ryzyka .mx-zone-czerwona td:nth-child(2) { color: #b71c1c; }
body.bp30 #matryca-ryzyka .mx-zone-zielona { background: #f1f8f2; }
body.bp30 #matryca-ryzyka .mx-zone-zolta { background: #fffdf0; }
body.bp30 #matryca-ryzyka .mx-zone-czerwona { background: #fdf3f2; }
body.bp30 #matryca-ryzyka .kalk-legenda { margin-top: 0; }

body.bp30 .kalk-siatka .kalk-cell.zk-oznaczona {
    position: relative;
    box-shadow: inset 0 0 0 2px #243342;
}
body.bp30 .kalk-siatka .kalk-cell.zk-oznaczona::after {
    content: "*";
    position: absolute;
    top: 2px;
    right: 5px;
    font-size: 0.95em;
    color: #243342;
}
body.bp30 .kalk-siatka .kalk-cell {
    position: relative;
}
body.bp30 .kalk-panel button {
    font-family: inherit;
    font-size: 0.88em;
    padding: 7px 14px;
    background: #243342;
    color: #fff;
    border: 1px solid #243342;
    cursor: pointer;
}
body.bp30 .kalk-panel button:hover {
    background: #e74c3c;
    border-color: #e74c3c;
}

/* formularz raportu */
body.bp30 #formularz-raportu .es-pola {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 12px 0;
}
body.bp30 #formularz-raportu label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.85em;
    font-weight: 700;
    color: #243342;
}
body.bp30 #formularz-raportu select,
body.bp30 #formularz-raportu input,
body.bp30 #formularz-raportu textarea {
    font-family: inherit;
    font-size: 0.92em;
    padding: 7px 9px;
    border: 1px solid #b9cfe0;
    
    background: #fff;
    width: 100%;
    box-sizing: border-box;
}
body.bp30 #formularz-raportu .es-luzy { margin: 6px 0 12px 0; }
body.bp30 #formularz-raportu .es-luzy label { margin-bottom: 12px; }
body.bp30 #formularz-raportu .es-przyciski {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
body.bp30 #formularz-raportu .es-przyciski button {
    font-family: inherit;
    font-size: 0.88em;
    padding: 7px 16px;
    background: #243342;
    color: #fff;
    border: 1px solid #243342;
    cursor: pointer;
}
body.bp30 #formularz-raportu .es-przyciski button:hover {
    background: #e74c3c;
    border-color: #e74c3c;
}
body.bp30 #formularz-raportu textarea.es-wynik {
    background: #fbfcfe;
    font-family: inherit;
    white-space: pre-wrap;
    min-height: 320px;
    line-height: 1.45;
}

/* checklista zgodności */
body.bp30 .ck-pasek-zew {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 14px 0 18px 0;
    flex-wrap: wrap;
}
body.bp30 .ck-pasek {
    flex: 1 1 320px;
    height: 16px;
    background: #e3e8ee;
    border: 1px solid #cfd8e3;
    
    overflow: hidden;
}
body.bp30 .ck-pasek-wypelnienie {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #1b5e20 0%, #7cb342 70%, #b8860b 100%);
    transition: width 0.25s ease;
}
body.bp30 .ck-pasek-opis {
    font-size: 0.88em;
    font-weight: 700;
    color: #243342;
    white-space: nowrap;
}
body.bp30 .ck-grupy {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 14px;
}
body.bp30 .ck-grupa {
    border: 1px solid #dbe4ee;
    border-left: 5px solid #243342;
    
    padding: 12px 16px 14px 16px;
    margin: 0;
    background: #fbfcfe;
}
body.bp30 .ck-grupa:nth-child(1) { border-left-color: #b71c1c; }
body.bp30 .ck-grupa:nth-child(2) { border-left-color: #b26a00; }
body.bp30 .ck-grupa:nth-child(3) { border-left-color: #1f6fb2; }
body.bp30 .ck-grupa:nth-child(4) { border-left-color: #1b5e20; }
body.bp30 .ck-grupa legend {
    font-size: 0.95em;
    font-weight: 700;
    color: #243342;
    padding: 0 6px;
}
body.bp30 .ck-grupa label {
    display: block;
    margin: 6px 0;
    font-size: 0.9em;
    line-height: 1.4;
    cursor: pointer;
}
body.bp30 .ck-grupa input[type="checkbox"] {
    margin-right: 7px;
    width: 15px;
    height: 15px;
    vertical-align: -2px;
    accent-color: #243342;
}
body.bp30 .ck-akcje {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0;
}
body.bp30 .ck-akcje button {
    font-family: inherit;
    font-size: 0.88em;
    padding: 7px 16px;
    background: #243342;
    color: #fff;
    border: 1px solid #243342;
    cursor: pointer;
}
body.bp30 .ck-akcje button:hover {
    background: #e74c3c;
    border-color: #e74c3c;
}
body.bp30 .ck-licznik {
    padding: 14px 16px;
    background: #f7f9fb;
    border: 1px solid #dbe4ee;
    
}
body.bp30 .ck-licznik label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.85em;
    font-weight: 700;
    color: #243342;
}
body.bp30 .ck-licznik textarea {
    font-family: inherit;
    font-size: 0.92em;
    padding: 8px 10px;
    border: 1px solid #b9cfe0;
    
    background: #fff;
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
}
body.bp30 .ck-podsumowanie {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    margin: 14px 0 10px 0;
}
body.bp30 .ck-werdykt {
    padding: 10px 14px;
    font-size: 0.9em;
    font-weight: 700;
    background: #eef2f6;
    border-left: 5px solid #9aa7b4;
}
body.bp30 .ck-werdykt.ok {
    background: #e8f5e9;
    border-left-color: #1b5e20;
    color: #1b5e20;
}
body.bp30 .ck-werdykt.blad {
    background: #fdecea;
    border-left-color: #b71c1c;
    color: #b71c1c;
}
body.bp30 .ck-werdykt.uwaga {
    background: #fffde7;
    border-left-color: #b8860b;
    color: #8a6c14;
}

/* ---------- 3b. Procedura 5 Why (wariant 4.0) ---------- */
body.bp30 .pw-form {
    display: block;
    margin-bottom: 16px;
    padding: 14px 16px;
    background: #f7f9fb;
    border: 1px solid #dbe4ee;
}
body.bp30 .pw-pole {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.85em;
    font-weight: 700;
    color: #243342;
}
body.bp30 .pw-pole input,
body.bp30 .pw-pole textarea {
    font-family: inherit;
    font-size: 0.95em;
    font-weight: 400;
    padding: 7px 9px;
    border: 1px solid #b9cfe0;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
}
body.bp30 .pw-pola-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 12px;
    margin-top: 12px;
}
body.bp30 .pw-pola-grid .pw-pole:last-child {
    grid-column: 1 / -1;
}
body.bp30 .pw-akcje {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}
body.bp30 .pw-akcje button {
    font-family: inherit;
    font-size: 0.88em;
    font-weight: 700;
    padding: 8px 18px;
    background: #243342;
    color: #fff;
    border: 1px solid #16222e;
    cursor: pointer;
}
body.bp30 .pw-akcje button:hover {
    background: #16222e;
}
body.bp30 .pw-wynik {
    margin-top: 12px;
    padding: 10px 14px;
    font-size: 0.9em;
    font-weight: 700;
    background: #eef2f6;
    border-left: 5px solid #9aa7b4;
}
body.bp30 .pw-wynik.ok {
    background: #e8f5e9;
    border-left-color: #1b5e20;
    color: #1b5e20;
}
body.bp30 .pw-wynik.blad {
    background: #fdecea;
    border-left-color: #b71c1c;
    color: #b71c1c;
}
body.bp30 .pw-wynik.uwaga {
    background: #fffde7;
    border-left-color: #b8860b;
    color: #8a6c14;
}
body.bp30 .tabela-kr tr.kr-rr-za-duze td {
    background: #fdecea;
}

/* ---------- 4. Nawigator kotwicowy i kafelki zadań ---------- */
body.bp30 .chip-sektory {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 18px 0;
    padding: 14px 16px;
    background: #f7f9fb;
    border: 1px solid #dbe4ee;
    
}
body.bp30 .kafelki {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 14px;
}
body.bp30 .kafelek {
    display: block;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-top: 4px solid #243342;
    
    text-decoration: none;
    transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
body.bp30 .kafelek:hover {
    border-color: #b8860b;
    border-top-color: #e74c3c;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
    transform: translateY(-2px);
}
body.bp30 .kafelek-opis {
    color: #3d4d5c;
    font-size: 0.88em;
    line-height: 1.45;
    text-align: justify;
    margin: 0 0 10px 0;
}
body.bp30 .kafelek .tag {
    font-size: 0.72em;
    padding: 2px 8px;
    background: #eef2f6;
    color: #243342;
    border: 1px solid #dbe4ee;
    
}

/* ---------- 5. Spis zadań: bez numeracji listy i bez podkreśleń ---------- */
body.bp30 .spis {
    padding: 0;
    
}
body.bp30 .spis ol {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: none;
}
body.bp30 .spis li {
    margin-bottom: 9px;
    padding: 8px 12px;
    background: #fbfcfe;
    border: 1px solid #e6ebf1;
    border-left: 4px solid #d9dde3;
    
    font-size: 0.98em;
    line-height: 1.45;
}
body.bp30 .spis li:hover {
    border-left-color: #b8860b;
    background: #fff;
}
body.bp30 .spis .nr {
    display: inline-block;
    min-width: 34px;
    color: #e74c3c;
    font-weight: 800;
    text-decoration: none;
}
body.bp30 .spis a {
    color: #2c3e50;
    text-decoration: none;
    border-bottom: 0;
}
body.bp30 .spis a:hover {
    color: #e74c3c;
    border-bottom: 0;
}

/* ---------- 6. Zwijanie wewnętrznych sekcji zadań ---------- */
body.bp30 .zadanie .sekcja > .sekcja-naglowek {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 30px;
    transition: background 0.2s ease, color 0.2s ease;
}
body.bp30 .zadanie .sekcja > .sekcja-naglowek:hover {
    background: #e8eef5;
    color: #b71c1c;
}
body.bp30 .zadanie .sekcja > .sekcja-naglowek::after {
    content: "\25BC";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #b8860b;
    font-size: 0.85em;
    transition: transform 0.2s ease;
}
body.bp30 .zadanie .sekcja.zwinieta-sukcja > .sekcja-naglowek::after {
    transform: translateY(-50%) rotate(-90deg);
}
body.bp30 .zadanie .sekcja.zwinieta-sukcja > .sekcja-naglowek ~ * {
    display: none;
}

body.bp30 .rola-wybor-etap4 {
    display: block;
    margin-top: 14px;
    padding: 10px 12px;
    background: #eef2f6;
    border-left: 5px solid #b8860b;
    font-size: 0.9em;
}
body.bp30 .rola-wybor-etap4 select {
    max-width: 420px;
}

/* ---------- 7. Tabele i ilustracje: powiększenie i pełny widok ---------- */
body.bp30 .zadanie,
body.bp30 .zadanie-tresc,
body.bp30 .zadanie .sekcja {
    overflow: visible;
}
body.bp30 table.powiększalne {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}
body.bp30 .powiększalne {
    position: relative;
    max-width: 100%;
    cursor: zoom-in;
    transition: box-shadow 0.2s ease;
}
body.bp30 .powiększalne:not(table)::after {
    content: "Kliknij, aby otworzyć w pełnej szerokości";
    position: absolute;
    top: 6px;
    right: 6px;
    padding: 3px 8px;
    font-size: 0.72em;
    font-weight: 700;
    color: #fff;
    background: rgba(36, 51, 66, 0.85);
    
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 5;
}
body.bp30 .powiększalne:hover:not(table)::after {
    opacity: 1;
}
@media (min-width: 1000px) {
    /* Powiększona tabela ma być czysto NA WIERZCHU: bez ciemnego tła w tle,
       z lekkim cieniem i z-index wyższym niż sticky menu (1000/1200).
       Dotyczy wyłącznie tabel wewnątrz kart zadań. */
    body.bp30 .zadanie .powiększalne:hover,
    body.bp30 .zadanie .powiększalne:focus {
        position: relative;
        z-index: 5000;
        width: 95vw;
        max-width: 95vw;
        margin-left: 50%;
        transform: translateX(-50%);
        background: #fff;
        box-shadow: 0 4px 14px rgba(15, 23, 32, 0.18);
        outline: 2px solid #b8860b;
        outline-offset: 2px;
    }
}
body.bp30 .ilustracja-figure img,
body.bp30 .ilustracja-figure svg,
body.bp30 .powiększalne img,
body.bp30 .powiększalne svg {
    max-width: 100%;
    height: auto;
}

/* ---------- 8. Responsywność modułów ---------- */
@media (max-width: 1200px) {
    body.bp30 .kr-form {
        grid-template-columns: 1fr 1fr;
    }
    body.bp30 .kr-dodaj {
        grid-column: 1 / -1;
    }
}
@media (max-width: 860px) {
    body.bp30 .container {
        padding: 22px 12px 60px 12px;
    }
    body.bp30 .sekcja-tresc {
        padding: 16px 14px 20px 14px;
    }
    body.bp30 .kr-form,
    body.bp30 .ck-grupy,
    body.bp30 .kafelki,
    body.bp30 .kalk-uklad,
    body.bp30 .triada-role {
        grid-template-columns: 1fr;
    }
    /* Matryca ryzyka ma własny, bardziej szczegółowy układ, więc jawnie
       przywracamy układ jednokolumnowy także dla jej kontenera. */
    body.bp30 #matryca-ryzyka .mx-uklad {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    body.bp30 #matryca-ryzyka .tabela-mx-zone { min-width: 560px; }
    body.bp30 .sekcja-tresc {
        overflow-x: auto;
    }
    body.bp30 .tabela-harmonogram { min-width: 620px; }
    body.bp30 .tabela-kr { min-width: 640px; }
    body.bp30 .tabela-kryteria { min-width: 560px; }
    body.bp30 .naglowek-tytul {
        font-size: 1em;
    }
    body.bp30 .naglowek-przycisk {
        padding: 6px 12px;
    }
}

/* ---------- 9. Rozbudowane sekcje zadań: tabele, listy i uwagi ---------- */
body.bp30 .zadanie .lista-zadanie {
    margin: 8px 0 12px 22px;
}
body.bp30 .zadanie .lista-zadanie li {
    margin-bottom: 6px;
    text-align: justify;
}
body.bp30 .zadanie ol.lista-zadanie li::marker {
    font-weight: 600;
}
body.bp30 .zadanie .uwaga-zadanie {
    margin: 12px 0 4px 0;
    padding: 11px 15px;
    text-align: left;
    background: #fdf8ec;
    border: 1px solid #ecdcb4;
    border-left: 5px solid #b8860b;
    
    font-size: 0.95em;
    line-height: 1.5;
    color: #4a3d1b;
}
body.bp30 .zadanie table.tabela-zadanie {
    width: 100%;
    margin: 10px 0 16px 0;
    font-size: 0.9em;
    border: 1px solid #cfd8e3;
    
    background: #fff;
}
body.bp30 .zadanie table.tabela-zadanie thead th {
    background: #2c3e50;
    color: #fff;
    padding: 9px 12px;
    text-align: left;
    font-size: 0.9em;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    vertical-align: middle;
}
body.bp30 .zadanie table.tabela-zadanie td {
    padding: 8px 12px;
    border-bottom: 1px solid #e4e9ef;
    vertical-align: top;
    text-align: left;
    line-height: 1.45;
}
body.bp30 .zadanie table.tabela-zadanie tbody tr:nth-child(even) {
    background: #f6f9fc;
}
body.bp30 .zadanie table.tabela-zadanie tbody tr:hover {
    background: #eaf1f8;
}
body.bp30 .zadanie table.tabela-zadanie td:first-child {
    font-weight: 700;
    color: #243342;
}
body.bp30 .zadanie .sekcja table.tabela-zadanie {
    display: table;
}
body.bp30 .zadanie .sekcja.zwinieta-sukcja table.tabela-zadanie {
    display: none;
}

/* ---------- 10. Bez grubych lewych pasków akcentowych ---------- */
/* Wyłączone: grube, brązowe/złote paski z lewej strony sekcji, kart i uwag. */
body.bp30 .naglowek-sekcji,
body.bp30 .wym-podsekcja h3,
body.bp30 .triada-wynik,
body.bp30 .kr-kafelka,
body.bp30 .ck-grupa,
body.bp30 .ck-werdykt,
body.bp30 .spis-lista > li,
body.bp30 .rola-wybor,
body.bp30 .zadanie .uwaga-zadanie {
    border-left-width: 1;
}
body.bp30 .wymagania-box {
    border-left: 1px solid #d9dde3;
}

@media (max-width: 860px) {
    body.bp30 .zadanie .sekcja-tresc {
        overflow-x: auto;
    }
    body.bp30 .zadanie table.tabela-zadanie {
        min-width: 620px;
    }
}

/* ============================================================
   LAB1_PROJEKTY_40 (ocena 4.0) – moduły właściwe dla projektu 40
   ------------------------------------------------------------
   Wszystkie nowe klasy mają prefiks p40-, a selektory są
   scopowane do body.bp30, dzięki czemu nie zmieniają wyglądu
   ani działania pozostałych stron laboratoryjnych. Moduł
   korzysta z istniejących klas: sekcja-glowna, naglowek-sekcji,
   zegar-180, triada, kr-form, kalk-uklad, kalk-siatka, ck-werdykt,
   kafelki, spis, tabela-kr, tabela-kryteria.
   ============================================================ */

/* ---------- 1. Elementy pomocnicze ---------- */
body.bp30 .p40-szkic {
    font-size: 0.85em;
    color: #5b6b7b;
    line-height: 1.45;
    margin: 8px 0 0 0;
    text-align: justify;
}
body.bp30 .p40-prep { white-space: pre-line; }
body.bp30 .p40-check { margin: 6px 0 0 20px; }
body.bp30 .p40-check li {
    margin-bottom: 4px;
    text-align: justify;
    font-weight: 400;
}
body.bp30 .p40-pusty {
    text-align: center;
    color: #5b6b7b;
    font-style: italic;
    padding: 12px 0 0 0;
}
body.bp30 .p40-pole-blad {
    border-color: #b71c1c;
    background: #fdecea;
}

/* ---------- 2. Siatka formularzy o dowolnej liczbie pól ---------- */
body.bp30 .p40-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 12px;
    align-items: end;
    margin: 0 0 14px 0;
    padding: 14px 16px;
    background: #f7f9fb;
    border: 1px solid #dbe4ee;
}
body.bp30 .p40-form .p40-pole {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.85em;
    font-weight: 700;
    color: #243342;
}
body.bp30 .p40-form .p40-pole input,
body.bp30 .p40-form .p40-pole select,
body.bp30 .p40-form .p40-pole textarea {
    font-family: inherit;
    font-size: 0.92em;
    font-weight: 400;
    padding: 7px 9px;
    border: 1px solid #b9cfe0;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
}
body.bp30 .p40-form .p40-pole textarea {
    min-height: 76px;
    resize: vertical;
}
body.bp30 .p40-form .p40-pole-szerokie { grid-column: 1 / -1; }
body.bp30 .p40-form .p40-pole-nad {
    grid-column: 1 / -1;
    margin: 6px 0 0 0;
    color: #6b5310;
    border-left: 4px solid #c8a800;
    padding-left: 10px;
}

/* ---------- 3. Przyciski modułów 4.0 ---------- */
body.bp30 .p40-akcje {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px 0;
}
body.bp30 .p40-akcje button {
    font-family: inherit;
    font-size: 0.88em;
    font-weight: 700;
    padding: 8px 16px;
    background: #243342;
    color: #fff;
    border: 1px solid #243342;
    cursor: pointer;
}
body.bp30 .p40-akcje button:hover {
    background: #e74c3c;
    border-color: #b71c1c;
}
body.bp30 .p40-akcje button.p40-akcent {
    background: #e74c3c;
    border-color: #b71c1c;
}
body.bp30 .p40-akcje button.p40-akcent:hover { background: #b71c1c; }
body.bp30 .p40-akcje .p40-szkic { margin: 0; }

/* ---------- 4. Kafelki podsumowań (jak kr-podsumowanie) ---------- */
body.bp30 .p40-podsumowanie {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    margin: 0 0 14px 0;
}

/* ---------- 5. Matryca ryzyka 3 x 3 ---------- */
body.bp30 .kalk-siatka.p40-siatka3 {
    grid-template-columns: 118px repeat(3, 1fr);
}
body.bp30 .kalk-siatka.p40-siatka3 .kalk-cell,
body.bp30 .kalk-siatka.p40-siatka3 .kalk-naglowek {
    min-height: 64px;
    font-size: 1.02em;
}

/* ---------- 6. Harmonogram: podświetlenie bieżącego etapu ---------- */
body.bp30 .tabela-harmonogram tr[data-p40-faza].aktywna td {
    background: #fdecea;
    box-shadow: inset 4px 0 0 #e74c3c;
    font-weight: 600;
}

/* ---------- 7. Tabele rejestrów ryzyka i planu działań ---------- */
body.bp30 .tabela-kr.p40-szeroka { min-width: 1040px; }
body.bp30 .tabela-kr.p40-szeroka th,
body.bp30 .tabela-kr.p40-szeroka td { font-size: 0.85em; }

/* ---------- 8. Pytania 5 Why (pięć kolumn na szerokim ekranie) ---------- */
body.bp30 .p40-why {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

/* ---------- 9. Pola tekstowe na pełną szerokość ---------- */
body.bp30 textarea.p40-full {
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 0.92em;
    line-height: 1.45;
    padding: 10px 12px;
    border: 1px solid #b9cfe0;
    background: #fbfcfe;
    min-height: 240px;
    resize: vertical;
}

/* ---------- 10. Legenda skali ryzyka i podsumowanie matrycy ---------- */
body.bp30 .p40-skala-box {
    margin: 14px 0 0;
    padding: 12px 14px;
    background: #f4f8fb;
    border: 1px solid #cfe0ee;
    border-left: 4px solid #1f6fb2;
    border-radius: 6px;
    font-size: 0.9em;
    line-height: 1.5;
}

body.bp30 .p40-skala-box strong { color: #12405f; }

@media (max-width: 860px) {
    body.bp30 .p40-why { grid-template-columns: 1fr; }
    body.bp30 .p40-form { grid-template-columns: 1fr; }
}

/* ---------- 11. Odstępy i rozciągnięcia (bez styli inline w HTML) ---------- */
body.bp30 .p40-odstep { margin-top: 14px; }
body.bp30 .p40-odstep-maly { margin-top: 12px; }
body.bp30 .p40-bez-marginesu { margin: 0; }
body.bp30 .p40-szeroko { grid-column: 1 / -1; }

/* ============================================================
   LAB10_PROJEKTY_50 (ocena 5.0) - strategiczny audyt zgodności
   ------------------------------------------------------------
   Strona dziedziczy komplet modułów z body.bp30 (sekcja-glowna,
   naglowek-sekcji, harmonogram, triada, matryca 5x5, kalkulator
   rejestru ryzyka, kafelki nawigatora, checklista, spis). Blok
   poniżej obejmuje wyłącznie klasy wariantu 5.0: p50-, exec-,
   wzorc-, karta-4c-, zegar-90-, ir-/rr- oraz kartę tytułową.
   ============================================================ */

/* ============================================================
   LAB10_PROJEKTY_50 (ocena 5.0) - strategiczny audyt zgodnosci
   ------------------------------------------------------------
   Powloka, karty zadan, tabele i wszystkie moduly wspolne
   (sekcja-glowna, naglowek-sekcji, harmonogram, triada, matryca,
   kalkulator rejestru ryzyka, kafelki, spis, checklista) dziedzicza
   wyglad i zachowanie z body.lab1-page oraz body.bp30, czyli
   identycznie jak w LAB10_projekty_40.html. Ponizej wylacznie
   komponenty specyficzne dla wariantu 5.0: model 4C, karta
   organizacyjna, kroki i ryzyko 5x5, zegar 90, Ishikawa, ROSI
   oraz Executive Summary. Paleta i typografia zgodne z wariantem 4.0.
   ============================================================ */

/* ---------- 1. Wzorcowy model 4C w bloku wymagan ---------- */
body.lab10-bp50 .wzorc-box {
    margin: 14px 0 18px 0;
    padding: 12px 14px 14px 14px;
    background: #eef2f6;
    border-left: 5px solid #b8860b;
    border-radius: 4px;
}
body.lab10-bp50 .wzorc-etykieta {
    font-weight: 700;
    color: #243342;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.82em;
    margin-bottom: 10px 0 0 0;
}
body.lab10-bp50 .wzorc-siatka {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
body.lab10-bp50 .wzorc-karta {
    background: #fff;
    border: 1px solid #cfd8e3;
    border-top: 3px solid #b8860b;
    border-radius: 4px;
    padding: 10px 11px;
    font-size: 0.85em;
    line-height: 1.45;
}
body.lab10-bp50 .wzorc-karta strong {
    display: block;
    color: #b71c1c;
    margin-bottom: 5px 0 0 0;
    font-size: 1.02em;
}
body.lab10-bp50 .wzorc-c { border-top-color: #2c3e50; }
body.lab10-bp50 .wzorc-k { border-top-color: #b71c1c; }
body.lab10-bp50 .wzorc-p { border-top-color: #1f6f8b; }
body.lab10-bp50 .wzorc-r { border-top-color: #b8860b; }
body.lab10-bp50 .wzorc-s { border-top-color: #1b5e20; }

/* ---------- 2. Karta organizacyjna zadania ---------- */
body.lab10-bp50 .p50-karta-org {
    margin: 10px 0 14px 0;
    background: #fff;
    border: 1px solid #cfd8e3;
    border-radius: 4px;
    overflow: hidden;
}
body.lab10-bp50 .p50-karta-org-naglowek {
    background: #243342;
    color: #fff;
    font-weight: 700;
    padding: 9px 12px;
    font-size: 0.9em;
}
body.lab10-bp50 .p50-karta-org-tresc {
    padding: 11px 12px 6px 12px;
    font-size: 0.9em;
    line-height: 1.5;
}
body.lab10-bp50 .p50-karta-org-tagi {
    padding: 0 12px 10px 12px;
}
body.lab10-bp50 .p50-karta-org-akty {
    background: #eef2f6;
    border-top: 1px solid #dbe4ee;
    padding: 9px 12px;
    font-size: 0.85em;
    color: #243342;
}

/* ---------- 3. Karta 4C zadania ---------- */
body.lab10-bp50 .p50-siatka-4c {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 10px 0 16px 0;
}
body.lab10-bp50 .karta-4c {
    background: #fff;
    border: 1px solid #cfd8e3;
    border-radius: 4px;
    padding: 0 0 10px 0;
    font-size: 0.85em;
}
body.lab10-bp50 .karta-4c-naglowek {
    background: #2c3e50;
    color: #fff;
    font-weight: 700;
    padding: 7px 10px;
    font-size: 0.95em;
}
body.lab10-bp50 .karta-4c-etykieta {
    color: #b8860b;
    font-weight: 700;
    font-size: 0.95em;
    padding: 8px 10px 0 10px;
}
body.lab10-bp50 .karta-4c-tresc {
    padding: 4px 10px 0 10px;
    line-height: 1.45;
    color: #2c3e50;
}

/* ---------- 4. Kroki, ryzyko inherentne i rezydualne ---------- */
body.lab10-bp50 .p50-krok-nr {
    background: #b71c1c;
    color: #fff;
    text-align: center;
    font-weight: 700;
    white-space: nowrap;
}
body.lab10-bp50 .p50-krok-nazwa { font-weight: 700; color: #243342; }
body.lab10-bp50 .p50-krok-czas {
    text-align: center;
    white-space: nowrap;
    color: #5b6b7b;
    font-size: 0.95em;
}
body.lab10-bp50 .ir-wartosc,
body.lab10-bp50 .rr-wartosc {
    font-weight: 800;
    font-size: 1.05em;
}
body.lab10-bp50 .ir-wartosc { color: #b71c1c; }
body.lab10-bp50 .rr-wartosc { color: #1f6f8b; }
body.lab10-bp50 .ir-strefa,
body.lab10-bp50 .rr-strefa {
    display: block;
    font-size: 0.8em;
    line-height: 1.3;
    padding: 2px 4px;
    border-radius: 3px;
    margin-top: 3px 0 0 0;
}
body.lab10-bp50 .strefa-czerwona { background: #fdecea; color: #b71c1c; }
body.lab10-bp50 .strefa-zolta { background: #fffde7; color: #9c8a00; }
body.lab10-bp50 .strefa-zielona { background: #e8f5e9; color: #1b5e20; }

/* ---------- 5. Listy, pytania, SOP i bibliografia ---------- */
body.lab10-bp50 ul.p50-stan-faktyczny,
body.lab10-bp50 ul.p50-wymogi,
body.lab10-bp50 ul.p50-pytania-kontrolne,
body.lab10-bp50 ol.p50-pytania-problemowe,
body.lab10-bp50 ul.p50-bibliografia,
body.lab10-bp50 ul.lista-punktowa {
    margin: 8px 0 12px 20px;
    line-height: 1.5;
}
body.lab10-bp50 ul.p50-stan-faktyczny li,
body.lab10-bp50 ul.p50-wymogi li,
body.lab10-bp50 ul.p50-pytania-kontrolne li,
body.lab10-bp50 ol.p50-pytania-problemowe li,
body.lab10-bp50 ul.p50-bibliografia li,
body.lab10-bp50 ul.lista-punktowa li {
    margin-bottom: 6px 0 0 0;
}
body.lab10-bp50 .pytanie-tresc { font-weight: 600; color: #243342; }
body.lab10-bp50 .p50-why-lista {
    margin: 10px 0 14px 0;
    padding: 12px 14px;
    background: #eef2f6;
    border-left: 5px solid #2c3e50;
    border-radius: 4px;
}
body.lab10-bp50 .p50-why-lista h4 {
    margin: 0 0 8px 0;
    color: #243342;
    font-size: 0.95em;
}
body.lab10-bp50 .p50-why-punkty {
    margin: 6px 0 0 18px;
    font-size: 0.9em;
    line-height: 1.5;
}
body.lab10-bp50 .why-poziom {
    display: inline-block;
    min-width: 22px;
    padding: 1px 6px;
    margin-right: 6px;
    background: #2c3e50;
    color: #fff;
    border-radius: 3px;
    font-weight: 700;
    font-size: 0.85em;
    text-align: center;
}
body.lab10-bp50 .p50-sop {
    margin: 10px 0 14px 20px;
    line-height: 1.5;
}
body.lab10-bp50 .p50-sop li { margin-bottom: 7px 0 0 0; }
body.lab10-bp50 .sop-nr {
    display: inline-block;
    min-width: 34px;
    margin-right: 6px;
    color: #b71c1c;
    font-weight: 700;
}
body.lab10-bp50 .uwaga-box {
    margin: 12px 0 12px 0;
    padding: 10px 13px;
    background: #fffde7;
    border-left: 5px solid #b8860b;
    border-radius: 4px;
    font-size: 0.88em;
    line-height: 1.5;
    color: #4a3d1b;
}
body.lab10-bp50 .p50-rosi-wskazowka {
    margin: 10px 0 0 0;
    padding: 9px 12px;
    background: #eef2f6;
    border-left: 5px solid #1f6f8b;
    border-radius: 4px;
    font-size: 0.85em;
    line-height: 1.5;
}

/* ---------- 6. Nawigator i spis zadań ---------- */
body.lab10-bp50 .kafelek-nr {
    display: block;
    color: #b71c1c;
    font-weight: 800;
    font-size: 0.82em;
    margin-bottom: 4px 0 0 0;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
body.lab10-bp50 .spis-lista {
    margin: 8px 0 0 0;
    padding: 0;
    list-style: none;
}
body.lab10-bp50 .spis-lista > li {
    padding: 6px 0 6px 4px;
    border-bottom: 1px solid #e6ebf1;
    line-height: 1.45;
}
body.lab10-bp50 .spis-lista a { color: #2c3e50; text-decoration: none; }
body.lab10-bp50 .spis-lista a:hover { color: #b71c1c; }
body.lab10-bp50 .spis-sektor {
    display: block;
    color: #5b6b7b;
    font-size: 0.82em;
    font-style: italic;
}

/* ---------- 7. Zegar 90 minut ---------- */
body.lab10-bp50 .zegar-90 {
    margin: 12px 0 16px 0;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #cfd8e3;
    border-left: 5px solid #b71c1c;
    border-radius: 4px;
    text-align: center;
}
body.lab10-bp50 .zegar-90-gora {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
body.lab10-bp50 .zegar-90-wyswietlacz {
    font-family: Consolas, 'Courier New', monospace;
    font-size: 2.6em;
    font-weight: 700;
    color: #b71c1c;
    line-height: 1.1;
}
body.lab10-bp50 .zegar-90-etykieta {
    display: block;
    font-size: 0.82em;
    color: #5b6b7b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
body.lab10-bp50 .zegar-90-etap {
    font-size: 0.9em;
    color: #243342;
    font-weight: 600;
}
body.lab10-bp50 .zegar-90-pasek {
    position: relative;
    height: 16px;
    margin: 12px 0 10px 0;
    background: #e6ebf1;
    border: 1px solid #cfd8e3;
    border-radius: 8px;
    overflow: hidden;
}
body.lab10-bp50 .zegar-90-wypelnienie {
    height: 100%;
    width: 0;
    background: #b8860b;
    transition: width 0.4s ease;
}
body.lab10-bp50 .zegar-90-przyciski {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}
body.lab10-bp50 .zegar-90-przyciski button {
    font-family: inherit;
    font-size: 0.85em;
    padding: 7px 14px;
    background: #2c3e50;
    color: #fff;
    border: 1px solid #1b2733;
    border-radius: 4px;
    cursor: pointer;
}
body.lab10-bp50 .zegar-90-przyciski button:hover { background: #b71c1c; }
body.lab10-bp50 .zegar-90-przyciski button.zegar-aktywny {
    background: #b8860b;
    border-color: #8a6508;
}

/* ---------- 8. Wspólna siatka pól formularzy modułów 5.0 ---------- */
body.lab10-bp50 .kalkulator-5x5,
body.lab10-bp50 .p50-kalk,
body.lab10-bp50 .p50-why,
body.lab10-bp50 .p50-rosi {
    margin: 12px 0 16px 0;
    padding: 14px 16px;
    background: #fbfcfd;
    border: 1px solid #cfd8e3;
    border-radius: 4px;
    min-width: 0;
    overflow-x: auto;
}
body.lab10-bp50 .p50-why-naglowek {
    background: #2c3e50;
    color: #fff;
    font-weight: 700;
    font-size: 0.9em;
    padding: 8px 11px;
    border-radius: 3px;
    margin: 0 0 12px 0;
}
body.lab10-bp50 .p50-kalk-form,
body.lab10-bp50 .p50-ishi-form,
body.lab10-bp50 .p50-rosi-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 14px;
    margin: 10px 0 14px 0;
}
body.lab10-bp50 .p50-kalk-dodaj,
body.lab10-bp50 .p50-ishi-dodaj,
body.lab10-bp50 .p50-kalk-akcje,
body.lab10-bp50 .p50-why-akcje,
body.lab10-bp50 .p50-exec-akcje {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
body.lab10-bp50 .p50-pole {
    display: block;
    font-size: 0.85em;
    color: #243342;
}
body.lab10-bp50 .p50-pole input,
body.lab10-bp50 .p50-pole select,
body.lab10-bp50 .p50-pole textarea {
    width: 100%;
    margin-top: 4px;
    padding: 7px 9px;
    font-family: inherit;
    font-size: 0.95em;
    color: #2c3e50;
    background: #fff;
    border: 1px solid #cfd8e3;
    border-radius: 4px;
}
body.lab10-bp50 .p50-pole textarea { resize: vertical; line-height: 1.45; }
body.lab10-bp50 .p50-pole input:focus,
body.lab10-bp50 .p50-pole select:focus,
body.lab10-bp50 .p50-pole textarea:focus {
    border-color: #b8860b;
    outline: 2px solid rgba(184, 134, 11, 0.35);
    outline-offset: 1px;
}
body.lab10-bp50 .p50-kalk-dodaj button,
body.lab10-bp50 .p50-ishi-dodaj button,
body.lab10-bp50 .p50-kalk-akcje button,
body.lab10-bp50 .p50-why-akcje button,
body.lab10-bp50 .p50-exec-akcje button {
    font-family: inherit;
    font-size: 0.85em;
    padding: 7px 14px;
    background: #2c3e50;
    color: #fff;
    border: 1px solid #1b2733;
    border-radius: 4px;
    cursor: pointer;
}
body.lab10-bp50 .p50-kalk-dodaj button:hover,
body.lab10-bp50 .p50-ishi-dodaj button:hover,
body.lab10-bp50 .p50-kalk-akcje button:hover,
body.lab10-bp50 .p50-why-akcje button:hover,
body.lab10-bp50 .p50-exec-akcje button:hover {
    background: #b71c1c;
    border-color: #8f1616;
}
body.lab10-bp50 .p50-kalk-podsumowanie,
body.lab10-bp50 .p50-rosi-podsumowanie {
    margin: 12px 0 0 0;
    padding: 11px 13px;
    background: #eef2f6;
    border: 1px solid #dbe4ee;
    border-radius: 4px;
    font-size: 0.9em;
    line-height: 1.5;
}
body.lab10-bp50 .p50-kalk-wynik,
body.lab10-bp50 .p50-ishi-wynik,
body.lab10-bp50 .p50-why-wynik,
body.lab10-bp50 .p50-rosi-wynik,
body.lab10-bp50 .p50-exec-wynik {
    margin: 12px 0 0 0;
    padding: 11px 13px;
    background: #fff;
    border: 1px solid #cfd8e3;
    border-left: 5px solid #2c3e50;
    border-radius: 4px;
    font-size: 0.9em;
    line-height: 1.5;
    white-space: pre-line;
}
body.lab10-bp50 .p50-kalk-wynik:empty,
body.lab10-bp50 .p50-ishi-wynik:empty,
body.lab10-bp50 .p50-why-wynik:empty,
body.lab10-bp50 .p50-rosi-wynik:empty,
body.lab10-bp50 .p50-exec-wynik:empty {
    display: none;
}
body.lab10-bp50 .p50-bcm-szczegol {
    margin: 6px 0 12px 0;
    font-size: 0.85em;
    color: #5b6b7b;
    line-height: 1.5;
}

/* ---------- 9. Diagram Ishikawy ---------- */
body.lab10-bp50 .p50-ishi {
    margin: 12px 0 16px 0;
    padding: 14px 16px;
    background: #fbfcfd;
    border: 1px solid #cfd8e3;
    border-radius: 4px;
    min-width: 0;
    overflow-x: auto;
}
body.lab10-bp50 .p50-ishi-siatka {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 10px 0 0 0;
}
body.lab10-bp50 .p50-ishi-siatka .kalk-cell {
    background: #fff;
    border: 1px solid #dbe4ee;
}

/* ---------- 10. Executive Summary Pitch to Board ---------- */
body.lab10-bp50 .executive-summary-box {
    margin: 12px 0 16px 0;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #cfd8e3;
    border-top: 4px solid #b71c1c;
    border-radius: 4px;
}
body.lab10-bp50 .exec-naglowek {
    font-weight: 700;
    color: #243342;
    margin: 0 0 10px 0;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
body.lab10-bp50 .exec-kolumny {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
body.lab10-bp50 .exec-stan { grid-column: 1; grid-row: 1; }
body.lab10-bp50 .exec-ryzyko { grid-column: 2; grid-row: 1; }
body.lab10-bp50 .exec-decyzje { grid-column: 3; grid-row: 1; }
body.lab10-bp50 .exec-sankcje { grid-column: 1 / -1; grid-row: 2; }
body.lab10-bp50 .exec-blok {
    background: #fbfcfd;
    border: 1px solid #dbe4ee;
    border-radius: 4px;
    padding: 11px 13px;
    min-width: 0;
    overflow-x: auto;
}
body.lab10-bp50 .exec-blok h3 {
    margin: 0 0 8px 0;
    font-size: 0.92em;
    color: #243342;
}
body.lab10-bp50 .exec-pole {
    margin: 0 0 9px 0;
    font-size: 0.85em;
    color: #5b6b7b;
}
body.lab10-bp50 .exec-pole:last-child { margin-bottom: 0; }
body.lab10-bp50 .exec-pole textarea {
    width: 100%;
    margin-top: 4px;
    padding: 7px 9px;
    font-family: inherit;
    font-size: 0.95em;
    line-height: 1.45;
    color: #2c3e50;
    background: #fff;
    border: 1px solid #cfd8e3;
    border-radius: 4px;
    resize: vertical;
}
body.lab10-bp50 .exec-pole textarea:focus {
    border-color: #b8860b;
    outline: 2px solid rgba(184, 134, 11, 0.35);
    outline-offset: 1px;
}
body.lab10-bp50 .exec-stan,
body.lab10-bp50 .exec-ryzyko,
body.lab10-bp50 .exec-decyzje,
body.lab10-bp50 .exec-sankcje {
    font-size: 0.85em;
    line-height: 1.5;
}
body.lab10-bp50 .exec-decyzje ol,
body.lab10-bp50 .exec-sankcje ol {
    margin: 6px 0 0 18px;
}
body.lab10-bp50 .exec-decyzje li,
body.lab10-bp50 .exec-sankcje li { margin-bottom: 5px 0 0 0; }

/* ---------- 11. Responsywność wariantu 5.0 ---------- */
@media (max-width: 1200px) {
    body.lab10-bp50 .exec-kolumny { grid-template-columns: 1fr; }
    body.lab10-bp50 .exec-stan,
    body.lab10-bp50 .exec-ryzyko,
    body.lab10-bp50 .exec-decyzje,
    body.lab10-bp50 .exec-sankcje { grid-column: auto; grid-row: auto; }
}
@media (max-width: 860px) {
    body.lab10-bp50 .wzorc-siatka,
    body.lab10-bp50 .p50-siatka-4c,
    body.lab10-bp50 .p50-ishi-siatka,
    body.lab10-bp50 .p50-kalk-form,
    body.lab10-bp50 .p50-ishi-form,
    body.lab10-bp50 .p50-rosi-form {
        grid-template-columns: 1fr;
    }
    body.lab10-bp50 .p50-kalk-dodaj,
    body.lab10-bp50 .p50-ishi-dodaj,
    body.lab10-bp50 .p50-kalk-akcje,
    body.lab10-bp50 .p50-exec-akcje {
        grid-column: 1 / -1;
    }
    body.lab10-bp50 .zegar-90-wyswietlacz { font-size: 2.1em; }
}

/* ---------- 12. Wydruk raportu 12-16 stron A4 ---------- */
@page {
    size: A4;
    margin: 18mm 14mm;
}
@media print {
    body.lab10-bp50 {
        background: #fff;
        font-size: 10.5pt;
        line-height: 1.45;
    }
    body.lab10-bp50 .page-header,
    body.lab10-bp50 .container {
        max-width: none;
        margin: 0;
        padding: 0;
    }
    body.lab10-bp50 .naglowek-przycisk,
    body.lab10-bp50 .przyciski-spisu,
    body.lab10-bp50 .p50-kalk-akcje,
    body.lab10-bp50 .p50-why-akcje,
    body.lab10-bp50 .p50-exec-akcje,
    body.lab10-bp50 .p50-kalk-dodaj,
    body.lab10-bp50 .p50-ishi-dodaj,
    body.lab10-bp50 .zegar-90-przyciski {
        display: none;
    }
    /* raport zawiera pelna tresc niezaleznie od stanu zwiniecia na ekranie */
    body.lab10-bp50 .sekcja-glowna.zamkniete > .sekcja-tresc { display: block; }
    body.lab10-bp50 .zadanie.zamkniete > .zadanie-tresc { display: block; }
    body.lab10-bp50 .naglowek-znak { display: none; }
    body.lab10-bp50 .zadanie .sekcja > .sekcja-naglowek {
        cursor: default;
        background: none;
    }
    body.lab10-bp50 .zadanie,
    body.lab10-bp50 .sekcja-glowna,
    body.lab10-bp50 .wzorc-karta,
    body.lab10-bp50 .karta-4c,
    body.lab10-bp50 .exec-blok,
    body.lab10-bp50 .p50-karta-org {
        break-inside: avoid;
        box-shadow: none;
    }
    body.lab10-bp50 table.tabela-zadanie thead,
    body.lab10-bp50 table.tabela-ryzyka-50 thead,
    body.lab10-bp50 table.tabela-cap-50 thead,
    body.lab10-bp50 table.tabela-bcm thead {
        display: table-header-group;
    }
    body.lab10-bp50 table.tabela-zadanie tr,
    body.lab10-bp50 table.tabela-ryzyka-50 tr,
    body.lab10-bp50 table.tabela-cap-50 tr,
    body.lab10-bp50 table.tabela-bcm tr {
        break-inside: avoid;
    }
    body.lab10-bp50 .exec-blok,
    body.lab10-bp50 .uwaga-box,
    body.lab10-bp50 .p50-why-lista {
        border: 1px solid #999;
        box-shadow: none;
    }
    body.lab10-bp50 textarea {
        border: 1px solid #999;
        min-height: 26mm;
    }
    body.lab10-bp50 * {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* ============================================================
   LAB1_PROJEKTY_50 (ocena 5.0) – moduły właściwe dla projektu 50
   ------------------------------------------------------------
   Strona dziedziczy wspólny zestaw modułów z body.bp30 (sekcja-glowna,
   naglowek-sekcji, harmonogram, triada, kalkulator rejestru ryzyka,
   kafelki nawigatora, checklista, spis). Klasa bp50 oznacza wyłącznie
   moduły i kolorystykę wariantu 5.0: zielony nagłówek strony, pola
   formularzy z prefiksem p50-, suwaki skali 1–5 oraz matryca ryzyka
   5 × 5 zbudowana jako tabela. Wszystkie reguły są scopowane do
   body.bp50 albo .lab1-page.projekty50, więc nie zmieniają wyglądu
   ani działania pozostałych stron laboratoryjnych.
   ============================================================ */

/* ---------- 1. Zielony gradient nagłówka strony (jak w wzorcu 5.0) ---------- */
.lab1-page.projekty50 .page-header {
    background: linear-gradient(135deg, #145a32 0%, #27ae60 100%);
    color: #ffffff;
}
.lab1-page.projekty50 .badge-50 {
    background: #ffffff;
    color: #145a32;
    border: 2px solid #0f4426;
}

/* ---------- 2. Nagłówek sekcji informacyjnej w kolorze strony ---------- */
body.bp50 .wymagania-box > .naglowek-sekcji {
    background: linear-gradient(135deg, #145a32 0%, #27ae60 100%);
    border-left-color: #0f4426;
}
body.bp50 .wymagania-box > .naglowek-sekcji:hover {
    background: linear-gradient(135deg, #0f4426 0%, #1e8b4c 100%);
}

/* ---------- 3. Formularz 5.0: jedna kolumna bloków ---------- */
body.bp50 .kr-form.p50-form {
    display: block;
}
body.bp50 .kr-pola {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}
body.bp50 .p50-pole {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.85em;
    font-weight: 700;
    color: #243342;
}
body.bp50 .p50-pole input[type="text"],
body.bp50 .p50-pole select,
body.bp50 .p50-pole textarea {
    font-family: inherit;
    font-size: 0.92em;
    font-weight: 400;
    padding: 7px 9px;
    border: 1px solid #b9cfe0;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
}
body.bp50 .p50-pole input[type="text"]:focus,
body.bp50 .p50-pole select:focus,
body.bp50 .p50-pole textarea:focus {
    border-color: #27ae60;
    outline: 2px solid rgba(39, 174, 96, 0.25);
}
body.bp50 .p50-pole-nad {
    margin: 6px 0 12px 0;
    color: #145a32;
    border-left: 4px solid #27ae60;
    padding-left: 10px;
}

/* ---------- 4. Suwaki skali 1–5 ---------- */
body.bp50 .kr-dwie-grupy {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}
body.bp50 .kr-grupa-pola {
    background: #fbfcfe;
    border: 1px solid #dbe4ee;
    padding: 12px 14px;
}
body.bp50 .p50-grupa-tytul {
    font-weight: 700;
    font-size: 0.88em;
    color: #145a32;
    margin: 0 0 10px 0;
}
body.bp50 .p50-suwaki {
    display: grid;
    gap: 12px;
    margin-bottom: 12px;
}
body.bp50 .p50-suwak {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.85em;
    font-weight: 700;
    color: #243342;
}
body.bp50 .p50-suwak output {
    color: #145a32;
    font-weight: 800;
}
body.bp50 input[type="range"] {
    width: 100%;
    margin: 0;
    accent-color: #1e8b4c;
    cursor: pointer;
}
body.bp50 input[type="range"]::-webkit-slider-runnable-track {
    height: 8px;
    background: #dbe4ee;
    border: 1px solid #b9cfe0;
}
body.bp50 input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    margin-top: -7px;
    background: #27ae60;
    border: 2px solid #145a32;
    border-radius: 50%;
}
body.bp50 input[type="range"]::-moz-range-track {
    height: 8px;
    background: #dbe4ee;
    border: 1px solid #b9cfe0;
}
body.bp50 input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #27ae60;
    border: 2px solid #145a32;
    border-radius: 50%;
}
body.bp50 input[type="range"]:focus-visible {
    outline: 3px solid #145a32;
    outline-offset: 2px;
}

/* ---------- 5. Przyciski i akcje modułów 5.0 ---------- */
body.bp50 .p50-akcje {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px 0;
}
body.bp50 .p50-akcje button {
    font-family: inherit;
    font-size: 0.88em;
    font-weight: 700;
    padding: 8px 16px;
    background: #145a32;
    color: #fff;
    border: 1px solid #0f4426;
    cursor: pointer;
}
body.bp50 .p50-akcje button:hover {
    background: #27ae60;
    border-color: #145a32;
}
body.bp50 .kr-dodaj {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 16px 0;
}
body.bp50 .kr-dodaj button {
    background: #1e8b4c;
    border-color: #145a32;
}
body.bp50 .kr-dodaj button:hover {
    background: #145a32;
}
body.bp50 .kalk-panel button {
    background: #145a32;
    border-color: #0f4426;
}
body.bp50 .kalk-panel button:hover {
    background: #27ae60;
    border-color: #145a32;
}

/* ---------- 6. Pytania 5 Why w generatorze planu ---------- */
body.bp50 .p50-why {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

/* ---------- 7. Matryca ryzyka 5 × 5 jako tabela ---------- */
body.bp50 #matryca-ryzyka .mx-siatka-blok {
    overflow-x: auto;
}
body.bp50 #matryca-ryzyka .kalk-siatka {
    display: table;
    width: 100%;
    min-width: 460px;
    border-collapse: separate;
    border-spacing: 3px;
    background: #d9dde3;
    border: 1px solid #d9dde3;
    padding: 0;
}
body.bp50 #matryca-ryzyka .kalk-siatka caption.mx-tytul {
    caption-side: top;
    text-align: left;
    padding: 0 0 8px 0;
    font-size: 0.85em;
    font-weight: 700;
    color: #243342;
}
body.bp50 #matryca-ryzyka .kalk-siatka th.kalk-naglowek {
    display: table-cell;
    min-height: 0;
    padding: 8px 4px;
    background: #243342;
    color: #fff;
    font-size: 0.8em;
    font-weight: 700;
}
body.bp50 #matryca-ryzyka .kalk-siatka td.kalk-cell {
    display: table-cell;
    position: relative;
    min-height: 0;
    height: 58px;
    width: 16.6%;
    font-size: 1.05em;
    font-weight: 800;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.1s, box-shadow 0.1s;
}
body.bp50 #matryca-ryzyka .kalk-siatka td.kalk-cell:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}
body.bp50 #matryca-ryzyka .kalk-siatka td.kalk-cell:focus-visible {
    outline: 3px solid #145a32;
    outline-offset: -1px;
}
body.bp50 #matryca-ryzyka .kalk-siatka td.kalk-cell.kliknieta {
    outline: 3px solid #145a32;
    outline-offset: -1px;
}
body.bp50 #matryca-ryzyka .kalk-siatka td.kalk-cell.zk-oznaczona-rr::after {
    content: "\2022";
    position: absolute;
    top: 2px;
    left: 7px;
    font-size: 1.15em;
    color: #145a32;
}
body.bp50 #matryca-ryzyka .mx-definicje {
    margin-top: 22px;
}
body.bp50 .mx-definicje-pozycja {
    margin: 0 0 10px 0;
    padding: 10px 12px;
    background: #fbfcfe;
    border: 1px solid #e2e8f0;
    text-align: justify;
}
body.bp50 ul.mx-definicje-pozycja {
    list-style: none;
}
body.bp50 ul.mx-definicje-pozycja li {
    margin-bottom: 8px;
    text-align: justify;
    line-height: 1.5;
}
body.bp50 ul.mx-definicje-pozycja li:last-child {
    margin-bottom: 0;
}

/* ---------- 8. Pasek postępu i kafelki w kolorach modułu ---------- */
body.bp50 .ck-pasek-wypelnienie {
    background: linear-gradient(135deg, #145a32 0%, #27ae60 100%);
}
body.bp50 .kafelek {
    border-top-color: #145a32;
}
body.bp50 .kafelek:hover {
    border-color: #27ae60;
    border-top-color: #145a32;
}
body.bp50 .kafelek .tag {
    background: #e8f5e9;
    color: #145a32;
    border-color: #b3d4b6;
}
body.bp50 .kr-usun {
    background: #fdecea;
    color: #b71c1c;
}

/* ---------- 9. Zwężenie ekranu ---------- */
@media (max-width: 860px) {
    body.bp50 .p50-why { grid-template-columns: 1fr; }
    body.bp50 .kr-dwie-grupy { grid-template-columns: 1fr; }
    body.bp50 .kr-pola { grid-template-columns: 1fr; }
}

/* ==== LAB2_BP50_STYLE_START (modul p2) ==== */
/* ============================================================
   LAB2_PROJEKTY_50 (ocena 5.0) – style modułu interaktywnego
   ------------------------------------------------------------
   Style są zasięgowane przez klasę body.lab2-bp50, więc nie
   zmieniają wyglądu pozostałych stron laboratoryjnych. Podstawowe
   klasy (kr-*, kalk-*, ck-*, triada, nagłówek sekcji) pochodzą ze
   wspólnego pliku style.css.
   ============================================================ */

/* ---------- 1. Zielony gradient nagłówka sekcji informacyjnej ---------- */
body.lab2-bp50 .wymagania-box > .naglowek-sekcji {
    background: linear-gradient(135deg, #145a32 0%, #27ae60 100%);
    border-left-color: #0f4426;
}
body.lab2-bp50 .wymagania-box > .naglowek-sekcji:hover {
    background: linear-gradient(135deg, #0f4426 0%, #1e8b4c 100%);
}

/* ---------- 2. Formularz 5.0: jedna kolumna bloków ---------- */
body.lab2-bp50 .kr-form.p2-form {
    display: block;
}
body.lab2-bp50 .kr-pola {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}
body.lab2-bp50 .p2-pole {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.85em;
    font-weight: 700;
    color: #243342;
}
body.lab2-bp50 .p2-pole input[type="text"],
body.lab2-bp50 .p2-pole select,
body.lab2-bp50 .p2-pole textarea {
    font-family: inherit;
    font-size: 0.92em;
    font-weight: 400;
    padding: 7px 9px;
    border: 1px solid #b9cfe0;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
}
body.lab2-bp50 .p2-pole input[type="text"]:focus,
body.lab2-bp50 .p2-pole select:focus,
body.lab2-bp50 .p2-pole textarea:focus {
    border-color: #27ae60;
    outline: 2px solid rgba(39, 174, 96, 0.25);
}
body.lab2-bp50 .p2-pole-nad {
    margin: 6px 0 12px 0;
    color: #145a32;
    border-left: 4px solid #27ae60;
    padding-left: 10px;
}

/* ---------- 3. Suwaki skali 1–5 ---------- */
body.lab2-bp50 .kr-dwie-grupy {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}
body.lab2-bp50 .kr-grupa-pola {
    background: #fbfcfe;
    border: 1px solid #dbe4ee;
    padding: 12px 14px;
}
body.lab2-bp50 .p2-grupa-tytul {
    font-weight: 700;
    font-size: 0.88em;
    color: #145a32;
    margin: 0 0 10px 0;
}
body.lab2-bp50 .p2-suwaki {
    display: grid;
    gap: 12px;
    margin-bottom: 12px;
}
body.lab2-bp50 .p2-suwak {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.85em;
    font-weight: 700;
    color: #243342;
}
body.lab2-bp50 .p2-suwak output {
    color: #145a32;
    font-weight: 800;
}
body.lab2-bp50 input[type="range"] {
    width: 100%;
    margin: 0;
    accent-color: #1e8b4c;
    cursor: pointer;
}
body.lab2-bp50 input[type="range"]::-webkit-slider-runnable-track {
    height: 8px;
    background: #dbe4ee;
    border: 1px solid #b9cfe0;
}
body.lab2-bp50 input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    margin-top: -7px;
    background: #27ae60;
    border: 2px solid #145a32;
    border-radius: 50%;
}
body.lab2-bp50 input[type="range"]::-moz-range-track {
    height: 8px;
    background: #dbe4ee;
    border: 1px solid #b9cfe0;
}
body.lab2-bp50 input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #27ae60;
    border: 2px solid #145a32;
    border-radius: 50%;
}
body.lab2-bp50 input[type="range"]:focus-visible {
    outline: 3px solid #145a32;
    outline-offset: 2px;
}

/* ---------- 4. Przyciski i akcje modułów 5.0 ---------- */
body.lab2-bp50 .p2-akcje {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px 0;
}
body.lab2-bp50 .p2-akcje button {
    font-family: inherit;
    font-size: 0.88em;
    font-weight: 700;
    padding: 8px 16px;
    background: #145a32;
    color: #fff;
    border: 1px solid #0f4426;
    cursor: pointer;
}
body.lab2-bp50 .p2-akcje button:hover {
    background: #27ae60;
    border-color: #145a32;
}
body.lab2-bp50 .kr-dodaj {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 16px 0;
}
body.lab2-bp50 .kr-dodaj button {
    background: #1e8b4c;
    border-color: #145a32;
}
body.lab2-bp50 .kr-dodaj button:hover {
    background: #145a32;
}
body.lab2-bp50 .kalk-panel button {
    background: #145a32;
    border-color: #0f4426;
}
body.lab2-bp50 .kalk-panel button:hover {
    background: #27ae60;
    border-color: #145a32;
}

/* ---------- 5. Pytania 5 Why w generatorze planu ---------- */
body.lab2-bp50 .p2-why {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

/* ---------- 6. Matryca ryzyka 5 × 5 jako tabela ---------- */
body.lab2-bp50 #matryca-ryzyka .mx-siatka-blok {
    overflow-x: auto;
}
body.lab2-bp50 #matryca-ryzyka .kalk-siatka {
    display: table;
    width: 100%;
    min-width: 460px;
    border-collapse: separate;
    border-spacing: 3px;
    background: #d9dde3;
    border: 1px solid #d9dde3;
    padding: 0;
}
body.lab2-bp50 #matryca-ryzyka .kalk-siatka caption.mx-tytul {
    caption-side: top;
    text-align: left;
    padding: 0 0 8px 0;
    font-size: 0.85em;
    font-weight: 700;
    color: #243342;
}
body.lab2-bp50 #matryca-ryzyka .kalk-siatka th.kalk-naglowek {
    display: table-cell;
    min-height: 0;
    padding: 8px 4px;
    background: #243342;
    color: #fff;
    font-size: 0.8em;
    font-weight: 700;
}
body.lab2-bp50 #matryca-ryzyka .kalk-siatka td.kalk-cell {
    display: table-cell;
    position: relative;
    min-height: 0;
    height: 58px;
    width: 16.6%;
    font-size: 1.05em;
    font-weight: 800;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.1s, box-shadow 0.1s;
}
body.lab2-bp50 #matryca-ryzyka .kalk-siatka td.kalk-cell:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}
body.lab2-bp50 #matryca-ryzyka .kalk-siatka td.kalk-cell:focus-visible {
    outline: 3px solid #145a32;
    outline-offset: -1px;
}
body.lab2-bp50 #matryca-ryzyka .kalk-siatka td.kalk-cell.kliknieta {
    outline: 3px solid #145a32;
    outline-offset: -1px;
}
body.lab2-bp50 #matryca-ryzyka .kalk-siatka td.kalk-cell.zk-oznaczona::before {
    content: "\2605";
    position: absolute;
    top: 2px;
    right: 7px;
    font-size: 1.05em;
    color: #145a32;
}
body.lab2-bp50 #matryca-ryzyka .kalk-siatka td.kalk-cell.zk-oznaczona-rr::after {
    content: "\2022";
    position: absolute;
    top: 2px;
    left: 7px;
    font-size: 1.15em;
    color: #145a32;
}
body.lab2-bp50 #matryca-ryzyka .mx-definicje {
    margin-top: 22px;
}
body.lab2-bp50 .mx-definicje-pozycja {
    margin: 0 0 10px 0;
    padding: 10px 12px;
    background: #fbfcfe;
    border: 1px solid #e2e8f0;
    text-align: justify;
}
body.lab2-bp50 ul.mx-definicje-pozycja {
    list-style: none;
}
body.lab2-bp50 ul.mx-definicje-pozycja li {
    margin-bottom: 8px;
    text-align: justify;
    line-height: 1.5;
}
body.lab2-bp50 ul.mx-definicje-pozycja li:last-child {
    margin-bottom: 0;
}

/* ---------- 7. Rejestr ustaleń: podpis pod opisem ---------- */
body.lab2-bp50 .p2-kalk-obszar {
    display: block;
    color: #5b6b7c;
    font-size: 0.8em;
    font-weight: 400;
    font-style: normal;
}

/* ---------- 8. Pasek postępu i kafelki w kolorach modułu ---------- */
body.lab2-bp50 .ck-pasek-wypelnienie {
    background: linear-gradient(135deg, #145a32 0%, #27ae60 100%);
}
body.lab2-bp50 .kafelek {
    border-top-color: #145a32;
}
body.lab2-bp50 .kafelek:hover {
    border-color: #27ae60;
    border-top-color: #145a32;
}
body.lab2-bp50 .kafelek .tag {
    background: #e8f5e9;
    color: #145a32;
    border-color: #b3d4b6;
}
body.lab2-bp50 .kr-usun {
    background: #fdecea;
    color: #b71c1c;
}

/* ---------- 9. Triada audytorska – formularz podziału ról ---------- */
body.lab2-bp50 .p2-triada-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin: 18px 0 14px 0;
}
body.lab2-bp50 .p2-triada-form select {
    font-family: inherit;
    font-size: 0.9em;
    padding: 7px 9px;
    border: 1px solid #b9cfe0;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
}
body.lab2-bp50 .p2-triada-form select:focus {
    border-color: #27ae60;
    outline: 2px solid rgba(39, 174, 96, 0.25);
}
body.lab2-bp50 .p2-triada-akcje {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}
body.lab2-bp50 .p2-triada-akcje button {
    font-family: inherit;
    font-size: 0.88em;
    font-weight: 700;
    padding: 8px 16px;
    background: #145a32;
    color: #fff;
    border: 1px solid #0f4426;
    cursor: pointer;
}
body.lab2-bp50 .p2-triada-akcje button:hover {
    background: #27ae60;
    border-color: #145a32;
}

/* ---------- 10. Nawigator – pasek stanu i przyciski ---------- */
body.lab2-bp50 .p2-nav-stan {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 14px 0;
    padding: 10px 12px;
    background: #fbfcfe;
    border: 1px solid #dbe4ee;
}
body.lab2-bp50 .p2-nav-stan .kr-liczba {
    font-size: 1.2em;
}
body.lab2-bp50 .p2-nav-stan button {
    font-family: inherit;
    font-size: 0.88em;
    font-weight: 700;
    padding: 7px 14px;
    background: #145a32;
    color: #fff;
    border: 1px solid #0f4426;
    cursor: pointer;
}
body.lab2-bp50 .p2-nav-stan button:hover {
    background: #27ae60;
    border-color: #145a32;
}

/* ---------- 11. Zwężenie ekranu ---------- */
@media (max-width: 860px) {
    body.lab2-bp50 .p2-why { grid-template-columns: 1fr; }
    body.lab2-bp50 .kr-dwie-grupy { grid-template-columns: 1fr; }
    body.lab2-bp50 .kr-pola { grid-template-columns: 1fr; }
}
/* ==== LAB2_BP50_STYLE_END ==== */

/* ============================================================
   POWRÓT DO STRONY GŁÓWNEJ (przycisk w lewym górnym rogu)
   Wstawiany jako pierwszy element <body> w plikach
   LAB*_projekty_30/40/50.html – powrót do index.html.
   ============================================================ */
.powrot-do-index {
    position: fixed;
    top: 16px;
    left: 16px;
    /* nad powiększanymi grafikami (z-index 1000) */
    z-index: 1050;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px 9px 12px;
    background: linear-gradient(135deg, #243342 0%, #3a4d63 100%);
    color: #ecf0f1;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    font-family: inherit;
    font-size: 0.9em;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.2px;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.powrot-do-index:hover {
    background: linear-gradient(135deg, #1b4f72 0%, #3498db 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}
.powrot-do-index:focus-visible {
    outline: 3px solid #f1c40f;
    outline-offset: 2px;
}
.powrot-do-index .powrot-do-index-ikona {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* ---------- zwężenie ekranu ---------- */
@media (max-width: 700px) {
    .powrot-do-index {
        top: 10px;
        left: 10px;
        gap: 6px;
        padding: 7px 13px 7px 10px;
        font-size: 0.8em;
    }
    .powrot-do-index .powrot-do-index-ikona {
        width: 15px;
        height: 15px;
    }
}

/* ---------- wydruk: bez przycisków nawigacyjnych ---------- */
@media print {
    .powrot-do-index { display: none; }
}
/* ==== POWROT_DO_INDEX_STYLE_END ==== */

/* ==== LAB_STYLE_MIGRATED_START ==== */

/* ==========================================================================
   LABORATORIA – STYLE PRZENIESIONE Z PLIKÓW HTML

   Dawniej każdy plik LAB*_projekty_30/40/50.html miał własne bloki
   <style> w sekcji <head>. Były one w praktyce identyczne (różniły się
   tylko nazwą laboratorium w komentarzu), więc zostały scalone w jedno
   miejsce. Dzięki temu wszystkie laboratoria korzystają ze wspólnego
   arkusza, a powtarzające się style inline zastąpiono klasami:
     .lab-svg        – ramka i centrowanie grafik SVG (dawniej style=...)
     .lab-col-N      – szerokość N% kolumny tabeli (dawniej <col style>)
     .lab-ukryte     – element ukryty statycznie (dawniej display:none)
   Szerokości pasków postępu (style="width: 0%") usunięto jako zbędne –
   początkową wartość 0% zapewnia reguła body.bp30 .ck-pasek-wypelnienie.

   Zawartość sekcji:
     1. Matryca ryzyka 5 x 5 (klasy mx5-, kontener #matryca-ryzyka)
     2. Harmonogram, rola przypisana i pola raportu
     3. Powiekszanie tabel po najechaniu (hover zoom)
     4. Klasy zastępujące powtarzane style inline
        (.lab-svg, .lab-col-N, .lab-ukryte)

   UWAGA: reguły są na końcu pliku, więc zachowują pierwotną kolejność
   wobec reszty arkusza (wcześniej blok <style> również pojawiał się
   po <link rel="stylesheet">).
   ========================================================================== */

/* --------------------------------------------------------------------------
   LABORATORIA – MATRYCA RYZYKA 5 x 5 (interaktywna)
   Modul w pelni samodzielny: wlasna siatka, wlasne gradienty, wlasne
   pola edycyjne. Nie korzysta z logiki kalkulatora w script.js poza
   tabela rejestru zagrozen (gwiazdki). Prefiks klas: mx5- .
   -------------------------------------------------------------------------- */

    /* ---------- naglowki sekcji ---------- */
    #matryca-ryzyka .mx5-naglowek-blok {
        margin: 26px 0 10px;
        padding-bottom: 6px;
        border-bottom: 2px solid #3a4d63;
        font-size: 1em;
        font-weight: 700;
        color: #243342;
    }

    /* ---------- uklad: macierz na pelnej szerokosci, panel pod nia ---------- */
    #matryca-ryzyka .mx5-uklad {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 16px 0 22px;
    }
    #matryca-ryzyka .mx5-blok { min-width: 0; }

    /* wycentrowanie macierzy w kolumnie strony. Ramka ma stala szerokosc
       (32 + 8 + 544 + 8 + 32 = 624 px), a trzeci, pusty slupiec odtwarza
       szerokosc etykiety osi S, dzieki czemu sama siatka 5 x 5 jest
       dokladnie wycentrowana w kolumnie strony. */
    #matryca-ryzyka .mx5-siatka-ramka {
        display: grid;
        grid-template-columns: minmax(32px, auto) minmax(0, 1fr) 32px;
        column-gap: 8px;
        max-width: 624px;
        margin: 0 auto;
    }
    #matryca-ryzyka .mx5-siatka-ramka > .mx-osa-pozioma { grid-column: 2; grid-row: 1; }
    #matryca-ryzyka .mx5-siatka-ramka > .mx-osa-pionowa { grid-column: 1; grid-row: 2; }
    #matryca-ryzyka .mx5-siatka-ramka > .mx5-przewijanie { grid-column: 2; grid-row: 2; }

    #matryca-ryzyka .mx5-przewijanie {
        min-width: 0;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    /* ---------- siatka 5 x 5 ---------- */
    #matryca-ryzyka .mx5-siatka {
        display: grid;
        grid-template-columns: 40px repeat(5, minmax(56px, 1fr));
        gap: 3px;
        padding: 3px;
        background: #d9dde3;
        border: 1px solid #cfd6dd;
    }
    #matryca-ryzyka .mx5-narożnik,
    #matryca-ryzyka .mx5-naglowek-p,
    #matryca-ryzyka .mx5-naglowek-s {
        min-height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #243342;
        color: #fff;
        font-size: 0.74em;
        font-weight: 700;
        text-align: center;
        border-radius: 2px;
        font-variant-numeric: tabular-nums;
    }
    #matryca-ryzyka .mx5-narożnik { background: #1b2836; font-size: 0.7em; }
    #matryca-ryzyka .mx5-naglowek-p { flex-direction: column; gap: 1px; padding: 3px 0; }
    #matryca-ryzyka .mx5-naglowek-p span { font-size: 0.82em; font-weight: 600; opacity: 0.9; line-height: 1.1; }
    #matryca-ryzyka .mx5-naglowek-s { cursor: pointer; }
    #matryca-ryzyka .mx5-naglowek-s:hover,
    #matryca-ryzyka .mx5-naglowek-p:hover { outline: 2px solid #ffd54f; outline-offset: -2px; }
    #matryca-ryzyka .mx5-naglowek-s.mx5-os-aktywna,
    #matryca-ryzyka .mx5-naglowek-p.mx5-os-aktywna { box-shadow: inset 0 0 0 2px #ffd54f; }

    #matryca-ryzyka .mx5-cell {
        position: relative;
        min-height: 62px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-family: inherit;
        font-size: 1.2em;
        font-weight: 800;
        font-variant-numeric: tabular-nums;
        color: #1b2b3a;
        background: #fff;
        border: 1px solid rgba(0, 0, 0, 0.08);
        border-radius: 2px;
        padding: 0;
        cursor: pointer;
        transition: transform 0.1s, box-shadow 0.1s;
    }
    #matryca-ryzyka .mx5-cell:hover {
        transform: scale(1.08);
        box-shadow: 0 2px 7px rgba(0, 0, 0, 0.28);
        z-index: 3;
    }
    #matryca-ryzyka .mx5-cell:focus-visible { outline: 3px solid #10202e; outline-offset: 1px; z-index: 4; }
    #matryca-ryzyka .mx5-cell.mx5-wybrana {
        box-shadow: 0 0 0 3px #10202e, 0 3px 8px rgba(0, 0, 0, 0.3);
        z-index: 2;
    }
    #matryca-ryzyka .mx5-cell.mx5-poza-tolerancja { border-style: dashed; border-color: #7f1d1d; }
    #matryca-ryzyka .mx5-cell.mx5-oznaczona::after {
        content: "\2605";
        position: absolute;
        top: 0;
        right: 3px;
        font-size: 0.72em;
        color: #10202e;
        text-shadow: 0 0 2px #fff, 0 0 3px #fff;
    }

    /* ---------- panel decyzyjny ---------- */
    #matryca-ryzyka .mx5-panel {
        display: flex;
        flex-direction: column;
        gap: 16px;
        background: #f7f9fb;
        border: 1px solid #d9dde3;
        padding: 18px 20px 20px;
    }
    #matryca-ryzyka .mx5-panel-tytul {
        margin: 0;
        font-size: 0.95em;
        font-weight: 700;
        color: #3a4d63;
    }
    #matryca-ryzyka .mx5-panel-siatka {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px 28px;
        align-items: start;
    }
    #matryca-ryzyka .mx5-panel-kolumna {
        display: flex;
        flex-direction: column;
        gap: 14px;
        min-width: 0;
    }

    /* ---------- suwaki ---------- */
    #matryca-ryzyka .mx5-suwak { display: flex; flex-direction: column; gap: 5px; }
    #matryca-ryzyka .mx5-suwak-gora {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        gap: 8px;
    }
    #matryca-ryzyka .mx5-suwak-gora label { font-size: 0.85em; font-weight: 700; color: #243342; }
    #matryca-ryzyka .mx5-suwak-liczba {
        font-size: 1.2em;
        font-weight: 800;
        color: #10202e;
        font-variant-numeric: tabular-nums;
    }
    #matryca-ryzyka .mx5-suwak input[type="range"] {
        width: 100%;
        margin: 0;
        accent-color: #243342;
        cursor: pointer;
    }
    #matryca-ryzyka .mx5-suwak-skala {
        display: flex;
        justify-content: space-between;
        font-size: 0.71em;
        color: #6b7a89;
    }
    #matryca-ryzyka .mx5-suwak-opis {
        margin: 0;
        font-size: 0.8em;
        line-height: 1.45;
        color: #3a4d63;
    }
    #matryca-ryzyka .mx5-suwaki-obok {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }
    #matryca-ryzyka .mx5-etykieta {
        display: block;
        font-size: 0.95em;
        font-weight: 800;
        margin-bottom: 2px;
    }
    #matryca-ryzyka .mx5-uwaga {
        margin: 0;
        font-size: 0.78em;
        line-height: 1.45;
        color: #8a1c1c;
    }

    /* ---------- wynik i decyzja ---------- */
    #matryca-ryzyka .mx5-wynik {
        border: 1px solid #d9dde3;
        border-left: 8px solid #10202e;
        background: #fff;
        padding: 12px 14px;
    }
    #matryca-ryzyka .mx5-wynik.mx5-z-zielona { border-left-color: #1b5e20; background: #f1f8f2; }
    #matryca-ryzyka .mx5-wynik.mx5-z-zolta { border-left-color: #9c8a00; background: #fffdf0; }
    #matryca-ryzyka .mx5-wynik.mx5-z-czerwona { border-left-color: #b71c1c; background: #fdf3f2; }
    #matryca-ryzyka .mx5-wartosc {
        font-size: 2.4em;
        font-weight: 800;
        line-height: 1;
        color: #10202e;
        font-variant-numeric: tabular-nums;
    }
    #matryca-ryzyka .mx5-wartosc small { font-size: 0.4em; font-weight: 700; color: #5b6b7b; }
    #matryca-ryzyka .mx5-iloczyn {
        margin: 5px 0 8px;
        font-size: 0.82em;
        line-height: 1.45;
        color: #5b6b7b;
    }
    #matryca-ryzyka .mx5-strefa-tytul { font-size: 0.95em; font-weight: 800; line-height: 1.35; }
    #matryca-ryzyka .mx5-decyzja-tekst { margin: 7px 0 0; font-size: 0.83em; line-height: 1.5; color: #3a4d63; }
    #matryca-ryzyka .mx5-decyzja-uwaga { color: #8a1c1c; font-weight: 700; }

    /* ---------- gradient decyzyjny 1 - 25 ---------- */
    #matryca-ryzyka .mx5-pasek {
        position: relative;
        height: 26px;
        margin: 26px 0 0;
        border: 1px solid #b9c6d2;
    }
    #matryca-ryzyka .mx5-pasek-tlo {
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, #1b5e20 0%, #66bb6a 30%, #fdd835 52%, #ef6c00 76%, #b71c1c 100%);
    }
    #matryca-ryzyka .mx5-pasek-nakladka { position: absolute; top: 0; bottom: 0; }
    #matryca-ryzyka .mx5-nakl-1 { background: rgba(255, 255, 255, 0.34); }
    #matryca-ryzyka .mx5-nakl-2 { background: rgba(255, 255, 255, 0.02); border-left: 2px solid #fff; }
    #matryca-ryzyka .mx5-nakl-3 { background: rgba(0, 0, 0, 0.26); border-left: 2px solid #fff; }
    #matryca-ryzyka .mx5-pasek-tol {
        position: absolute;
        top: -4px;
        bottom: -4px;
        border-left: 3px dashed #10202e;
    }
    #matryca-ryzyka .mx5-pasek-akt {
        position: absolute;
        top: -7px;
        bottom: -7px;
        width: 4px;
        background: #fff;
        box-shadow: 0 0 0 1px #10202e;
        transform: translateX(-2px);
    }
    #matryca-ryzyka .mx5-pasek-akt::after {
        content: attr(data-etykieta);
        position: absolute;
        top: -19px;
        left: 50%;
        transform: translateX(-50%);
        background: #10202e;
        color: #fff;
        font-size: 0.68em;
        font-weight: 700;
        padding: 1px 6px;
        white-space: nowrap;
        border-radius: 2px;
    }
    #matryca-ryzyka .mx5-pasek-podpis {
        display: flex;
        justify-content: space-between;
        gap: 8px;
        margin-top: 22px;
        font-size: 0.72em;
        color: #5b6b7b;
    }
    #matryca-ryzyka .mx5-pasek-tytul {
        margin: 0;
        font-size: 0.85em;
        font-weight: 700;
        color: #3a4d63;
    }

    /* ---------- karta zagrozenia: pola edycyjne ---------- */
    #matryca-ryzyka .mx5-karta {
        margin: 0 0 20px;
        background: #f7f9fb;
        border: 1px solid #d9dde3;
        padding: 16px 18px 18px;
    }
    #matryca-ryzyka .mx5-karta-siatka {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 12px 16px;
    }
    #matryca-ryzyka .mx5-pole { display: flex; flex-direction: column; gap: 4px; }
    #matryca-ryzyka .mx5-pole > span {
        font-size: 0.82em;
        font-weight: 700;
        color: #243342;
    }
    #matryca-ryzyka .mx5-pole input,
    #matryca-ryzyka .mx5-pole select,
    #matryca-ryzyka .mx5-pole textarea {
        font-family: inherit;
        font-size: 0.92em;
        padding: 7px 9px;
        border: 1px solid #b9cfe0;
        background: #fff;
        color: #1b2b3a;
        width: 100%;
        box-sizing: border-box;
    }
    #matryca-ryzyka .mx5-pole textarea { resize: vertical; line-height: 1.5; }
    #matryca-ryzyka .mx5-pole-szerokie { grid-column: 1 / -1; }
    #matryca-ryzyka .mx5-karta-meta {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
        gap: 10px 16px;
        margin: 14px 0 0;
    }
    #matryca-ryzyka .mx5-meta {
        background: #fff;
        border: 1px dashed #cfd8e0;
        padding: 9px 11px;
    }
    #matryca-ryzyka .mx5-meta dt {
        margin: 0 0 3px;
        font-size: 0.8em;
        font-weight: 700;
        color: #5b6b7b;
    }
    #matryca-ryzyka .mx5-meta dd { margin: 0; font-size: 0.85em; line-height: 1.5; }
    #matryca-ryzyka .mx5-przyciski { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
    #matryca-ryzyka .mx5-przyciski button {
        font-family: inherit;
        font-size: 0.88em;
        padding: 8px 14px;
        background: #243342;
        color: #fff;
        border: 1px solid #243342;
        cursor: pointer;
    }
    #matryca-ryzyka .mx5-przyciski button:hover { background: #3a4d63; }
    #matryca-ryzyka .mx5-przyciski button.mx5-pomocniczy { background: #fff; color: #243342; }
    #matryca-ryzyka .mx5-przyciski button.mx5-pomocniczy:hover { background: #eef2f6; }
    #matryca-ryzyka .mx5-wynik-karta {
        width: 100%;
        margin-top: 12px;
        font-family: inherit;
        font-size: 0.86em;
        line-height: 1.55;
        padding: 12px;
        border: 1px solid #b9cfe0;
        background: #fff;
        color: #1b2b3a;
        box-sizing: border-box;
    }
    #matryca-ryzyka .mx5-rejestr-info {
        margin: 10px 0 0;
        font-size: 0.8em;
        line-height: 1.45;
        color: #5b6b7b;
    }

    /* ---------- zwiazki semantyczne w naglowkach osi ---------- */
    @media (max-width: 900px) {
        #matryca-ryzyka .mx5-panel-siatka { grid-template-columns: 1fr; gap: 18px; }
    }
    @media (max-width: 620px) {
        #matryca-ryzyka .mx5-siatka { grid-template-columns: 34px repeat(5, minmax(44px, 1fr)); }
        #matryca-ryzyka .mx5-cell { min-height: 42px; font-size: 0.95em; }
        #matryca-ryzyka .mx5-suwaki-obok { grid-template-columns: 1fr; }
    }

    /* ---------- naglowek strony: lekki gradient czerwono-kremowy (seria 3.0) ---------- */
    body.lab1-page .page-header {
        background: linear-gradient(135deg, #663030 0%, #a85050 100%);
    }

/* --------------------------------------------------------------------------
   LABORATORIA – HARMONOGRAM, ROLA PRZYPISANA I POLA RAPORTOWE
   Uklad dwukolumnowy harmonogramu, pasek czasu, wiersz aktywny tabeli,
   karta roli, pola rozciagajace sie na cala szerokosc (kr-szeroko) oraz
   pola wypelniane automatycznie przez skrypt (rp-auto).
   -------------------------------------------------------------------------- */
    .harmonogram-uklad {
        display: grid;
        grid-template-columns: minmax(15rem, 20rem) 1fr;
        gap: 18px;
        align-items: start;
        margin-bottom: 16px;
    }
    @media (max-width: 62rem) {
        .harmonogram-uklad { grid-template-columns: 1fr; }
    }
    .harmonogram-timer { position: sticky; top: 12px; }
    .harmonogram-zwrotka {
        font-size: 0.88em;
        color: #45526b;
        margin: 10px 0 0 0;
    }
    .tabela-harmonogram tbody tr.harm-aktywna > td {
        background: #eef3fb;
        font-weight: 700;
    }
    .rola-nazwa {
        font-weight: 700;
        margin-bottom: 6px;
    }
    .kr-szeroko {
        grid-column: 1 / -1;
    }
    .rp-auto {
        background: #f4f7fc;
    }

/* --------------------------------------------------------------------------
   LABORATORIA – POWIEKSZANIE TABEL PO NAJECHANIU (HOVER ZOOM)
   Gwarancja poprawnego dzialania powiekszania tabeli: wysuniecie na 95vw,
   wycentrowanie i pierwszy plan bez obcinania przez overflow kart
   i kontenerow. Reguly przepelnienia dla modulow oceny 5.0.
   -------------------------------------------------------------------------- */
    html.bp30-strona {
        overflow-x: hidden;
    }
    @supports (overflow-x: clip) {
        html.bp30-strona,
        body.bp30 {
            overflow-x: clip;
        }
    }
    body.bp30 .zadanie,
    body.bp30 .zadanie-tresc,
    body.bp30 .zadanie .sekcja {
        overflow: visible !important;
    }
    body.bp30 .zadanie:hover,
    body.bp30 .zadanie:focus-within {
        z-index: 500;
        position: relative;
    }
    @media (min-width: 1000px) {
        body.bp30 .zadanie table.tabela-zadanie.powiększalne:hover,
        body.bp30 .zadanie table.tabela-zadanie.powiększalne:focus {
            position: relative !important;
            z-index: 9999 !important;
            width: 95vw !important;
            max-width: 95vw !important;
            margin-left: 50% !important;
            transform: translateX(-50%) !important;
            background: #ffffff !important;
            box-shadow: 0 10px 35px rgba(15, 23, 32, 0.28) !important;
            outline: 2px solid #b8860b !important;
            outline-offset: 2px !important;
        }
    }
    /* Responsywne bloki modułów oceny 5.0 */
    .box-4c, .box-5why, .kalkulator-5x5, .modul-90, .formularz-es {
        max-width: 100%;
    }

/* --- 4a. Grafiki SVG w treści zadań: identyczny styl powtarzany
   w atrybucie style="..." przy 230 grafikach, teraz jedna klasa --- */
.lab-svg {
    display: block;
    max-width: 820px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 8px;
    font-family: 'Segoe UI',Tahoma,Geneva,Verdana,sans-serif;
}

/* --- 4b. Szerokości kolumn tabel: dawniej <col style="width: N%">,
   teraz jedna klasa na każdą wartość --- */
.lab-col-4 {
    width: 4%;
}
.lab-col-5 {
    width: 5%;
}
.lab-col-6 {
    width: 6%;
}
.lab-col-8 {
    width: 8%;
}
.lab-col-9 {
    width: 9%;
}
.lab-col-10 {
    width: 10%;
}
.lab-col-14 {
    width: 14%;
}
.lab-col-15 {
    width: 15%;
}
.lab-col-16 {
    width: 16%;
}
.lab-col-18 {
    width: 18%;
}
.lab-col-20 {
    width: 20%;
}
.lab-col-22 {
    width: 22%;
}
.lab-col-24 {
    width: 24%;
}
.lab-col-26 {
    width: 26%;
}
.lab-col-27 {
    width: 27%;
}
.lab-col-30 {
    width: 30%;
}
.lab-col-31 {
    width: 31%;
}
.lab-col-32 {
    width: 32%;
}
.lab-col-33 {
    width: 33%;
}
.lab-col-34 {
    width: 34%;
}
.lab-col-38 {
    width: 38%;
}
.lab-col-40 {
    width: 40%;
}
.lab-col-42 {
    width: 42%;
}
.lab-col-44 {
    width: 44%;
}
.lab-col-48 {
    width: 48%;
}
.lab-col-58 {
    width: 58%;
}
.lab-col-62 {
    width: 62%;
}
.lab-col-63 {
    width: 63%;
}
.lab-col-74 {
    width: 74%;
}

/* --- 4c. Elementy ukryte statycznie (dawniej <div style="display:none">) --- */
.lab-ukryte {
    display: none;
}

/* ==== LAB_STYLE_MIGRATED_END ==== */
