:root{color-scheme:dark;--bg:#07101e;--nav:#090f1d;--panel:#0b1628;--panel2:#0e1e32;--stroke:#a61b3e;--text:#e9eff8;--muted:#9aaac0;--red:#f13254;--red2:#bc092d;--ok:#83deb5}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse 80% 65% at 55% 10%,#112238 0%,#07101e 75%);font:15px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--text);min-height:100vh}.shell{display:grid;grid-template-columns:205px minmax(0,1fr);min-height:100vh}.sidebar{background:rgba(7,14,26,.95);border-right:1px solid #273651;display:flex;flex-direction:column;padding:14px;min-height:100vh}.brand{text-align:center;border-bottom:1px solid #293953;padding:0 0 22px;margin-bottom:18px}.brand strong{font-size:35px;display:block;color:var(--red);font-weight:900;letter-spacing:-1px}.brand span{display:block;color:var(--red);font-size:10px;font-weight:800;line-height:1.3}.brand small{color:var(--red);font-size:10px;font-weight:800;letter-spacing:.7px}.navlink{display:block;text-decoration:none;color:#d4ddec;border:1px solid transparent;border-radius:8px;padding:12px;margin-bottom:5px;font-size:14px}.navlink:hover,.navlink.sel{background:#650c25;border-color:var(--red);color:white}.sidebar-bottom{margin-top:auto;padding-top:20px;border-top:1px solid #34425b}.sidebar-bottom p{font-size:11px;color:var(--muted)}main{width:100%;max-width:1550px;margin:auto;padding:10px 25px 50px}.top{border:1px solid #3e5371;border-radius:12px;background:#091528e3;padding:15px 20px;display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;gap:20px}.eyebrow{margin:0;color:var(--red);letter-spacing:1px;font-weight:800;font-size:11px}h1{font-size:32px;color:var(--red);margin:4px 0 0;line-height:1.2}h2{font-size:20px;color:var(--red);margin:0 0 14px;font-weight:800}h3{color:#e1e9f3;font-size:16px;margin:22px 0 10px}.account{min-width:145px;text-align:right}.account small{display:block;color:var(--muted)}.account form{margin-top:5px}.panel{border:1px solid var(--stroke);border-radius:12px;padding:21px;background:rgba(10,20,36,.9);min-width:0;margin-bottom:16px}.muted{color:var(--muted)}.small{font-size:13px}.smaller{display:block;color:var(--muted);font-size:11px;margin-top:3px}.dashboard-layout{display:grid;grid-template-columns: minmax(230px,.8fr) minmax(550px,1.7fr);gap:18px;align-items:start}.portrait{min-height:615px;display:flex;align-items:center;justify-content:center}.portrait img{display:block;width:100%;max-width:510px;max-height:670px;object-fit:contain}.dashboard-cards{display:grid;grid-template-columns:1fr 1fr;gap:12px}.dashboard-cards .panel:nth-child(3){grid-column:1/-1}.tiles{display:flex;flex-wrap:wrap;gap:12px}.tile{flex:1 1 210px;display:flex;flex-direction:column;gap:7px;padding:15px 18px;background:#0e1d31;border:1px solid #3a5069;border-radius:9px;color:var(--text);text-decoration:none}.tile:hover{border-color:#b83154}.tile strong{color:#fff}.tile small{color:var(--muted)}.tile .good{color:var(--ok);font-weight:bold}.empty{border:1px solid #315b57;padding:20px;color:var(--muted);border-radius:9px}.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.row-actions{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:16px}form{margin:0}label{display:block;color:#d9e5f2;font-weight:650;font-size:13px;margin:14px 0}label.check{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:400}label.check input{width:18px;height:18px;margin:0;accent-color:var(--red)}input:not([type=checkbox]):not([type=radio]),select,textarea{display:block;width:100%;padding:11px 12px;font:inherit;color:var(--text);background:#0c1a2e;border:1px solid #4a607c;border-radius:7px;margin-top:6px;min-width:0}textarea{resize:vertical}input:focus,select:focus,textarea:focus{outline:2px solid #ff4a70;outline-offset:1px}.button,button{font:inherit;cursor:pointer}button,.button{display:inline-block;text-align:center;border-radius:7px;border:1px solid #577091;background:#172942;padding:10px 15px;color:#eef5fa;text-decoration:none}button.primary,.button.primary{background:#d71139;color:white;border-color:#fa355a;font-weight:800}button:hover,.button:hover{filter:brightness(1.14)}button.mini,.button.mini{font-size:12px;padding:7px 10px}.subtle{background:#29344f}.notice{padding:12px 15px;border-radius:8px;margin:13px 0;background:#123d35;border:1px solid #267f64}.notice.error{background:#3d1924;border-color:#ae3550}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:13px}td,th{padding:10px 8px;text-align:left;border-bottom:1px solid #30425b;vertical-align:top}th{color:#e6b3c3;font-weight:750}.reading{display:block;white-space:pre-wrap;word-break:break-word;width:100%;font:13px/1.5 ui-monospace,monospace;background:#09192b;border:1px solid #526583;padding:14px;border-radius:8px;color:var(--text)}.summary{background:#101e2e;padding:15px;border-radius:9px;border:1px solid #315063}.login-shell{min-height:100vh;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:24px}.login-panel{background:#0c1727;border:1px solid var(--stroke);border-radius:15px;padding:35px;width:min(430px,100%)}.login-panel h1{font-size:52px;margin:0;color:var(--red)}.login-panel p{color:var(--muted)}.login-panel button{width:100%}.privacy-layer:not([hidden]){position:fixed;inset:0;background:#13203b;display:flex;z-index:99999;align-items:center;justify-content:center;flex-direction:column;color:#dce7fb}.privacy-layer p{font-size:25px}@media(max-width:1100px){.dashboard-layout{grid-template-columns:1fr}.portrait{min-height:300px}.portrait img{max-height:430px}}@media(max-width:800px){.shell{grid-template-columns:1fr}.sidebar{min-height:auto}.sidebar nav{display:flex;gap:4px;flex-wrap:wrap}.sidebar-bottom{display:none}main{padding:10px}.top{flex-wrap:wrap}.grid2,.dashboard-cards{grid-template-columns:1fr}.dashboard-cards .panel:nth-child(3){grid-column:auto}}

/* CORE 1.1: rychlá úprava šestice předvyplněných pozdravů */
.greetings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:14px 0 19px}
.greeting-card{border:1px solid #475a71;background:#102039;border-radius:10px;padding:12px 17px 16px;min-width:0;margin:0}
.greeting-card legend{color:#ff4569;font-size:12px;font-weight:850;letter-spacing:.06em;padding:0 9px}
.greeting-card .grid2{gap:12px}
.greeting-card label{margin:11px 0}
.greeting-card label.check{margin:10px 0}
@media(max-width:950px){.greetings-grid{grid-template-columns:1fr}}

/* CORE 1.2: administrační průvodce */
.wizard-panel{max-width:1100px}.wizard-progress{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:17px 0 23px}.wizard-progress span{border:1px solid #354b68;padding:10px;text-align:center;border-radius:8px;font-size:13px;color:var(--muted)}.wizard-progress span.current{background:#6d1029;color:white;border-color:var(--red);font-weight:700}.wizard-step{border:1px solid #455b79;padding:16px 20px 24px;border-radius:10px;min-width:0}.wizard-step[hidden],.copy-panel[hidden]{display:none!important}.wizard-step legend{color:var(--red);font-weight:800;padding:0 9px}.wizard-step label{max-width:740px}.radio-choice{display:flex;gap:12px;align-items:center;border:1px solid #344c6a;border-radius:7px;padding:12px 15px}.radio-choice input{accent-color:var(--red)}.copy-panel{border:1px solid #395c73;background:#102039;padding:16px;border-radius:9px;margin:16px 0 24px}.copy-panel textarea{margin-top:12px}.wizard-step .row-actions{margin-top:20px}
@media(max-width:680px){.wizard-progress{grid-template-columns:repeat(2,1fr)}}

/* CORE 1.3 – samostatné prostředí, stavy a formulář profilu */
.sidebar .brand small{letter-spacing:.05em;line-height:1.5}.system-wizard .wizard-progress{grid-template-columns:repeat(3,1fr)}.copy-panel button:disabled{opacity:.5;cursor:not-allowed}.tile a.button{margin-top:8px;display:inline-block}.table-wrap a{color:#bdd9ff}

/* CORE 1.4 – kompaktní správná rádia, hesla, předání pozdravu */
.radio-choice{display:flex;align-items:center;justify-content:flex-start;gap:12px;width:100%;max-width:450px;min-height:46px;padding:9px 13px;margin:8px 0;cursor:pointer}
.radio-choice input[type="radio"]{display:inline-block;width:19px;height:19px;min-width:19px;flex:0 0 19px;accent-color:var(--red);margin:0}
.radio-choice:has(input:checked){border-color:var(--red);background:#381527}
.radio-choice:focus-within{outline:2px solid #ff557d;outline-offset:2px}
.password-field{display:flex;align-items:center;gap:8px;max-width:740px}.password-field input{flex:1;min-width:0}.password-toggle{flex:0 0 auto;padding:9px 12px;min-width:95px}
.greeting-handoff{max-width:850px}.greeting-extras{border:1px solid #405a75;border-radius:10px;padding:10px 16px;margin:15px 0}.greeting-extras legend{font-weight:800;color:var(--red);padding:0 8px}
.greeting-handoff #greeting-request{min-height:185px}
@media(max-width:550px){.password-field{flex-wrap:wrap}.password-toggle{min-width:100px}}


/* CORE 1.5 – VIZUÁLNÍ PORT GRAFIKY Z OSDIS INTEGRACE TEST 06.2 (AKTUAL.zip).
   Pouze ovládání a grafika, nikoli původní SQL účty, staré stavy či pravidla. */
:root{--bg:#050b16;--nav:#050b16;--panel:#0b1629;--panel2:#101b2e;--stroke:#9b2039;--text:#f4f6fc;--muted:#bac6d8;--red:#ff364d;--red2:#bd1835}
body{background:radial-gradient(circle at 58% -12%,#152442 0,transparent 45%),#050b16}
.sidebar{background:#050b16;border-right:1px solid #344763;padding:12px 10px}
.sidebar .brand{padding:14px 4px 19px;border-bottom:1px solid #36425b}
.sidebar .brand strong{font-size:clamp(30px,2.6vw,37px);line-height:1.06;letter-spacing:.04em;color:#ff364d}
.sidebar .brand span{color:#ff364d;font-size:10px;line-height:1.5;margin-top:9px;letter-spacing:.065em}
.sidebar .brand small{color:#ff6374;margin-top:6px}
.sidebar nav .navlink{display:flex;align-items:center;gap:12px;padding:12px 13px;border-radius:8px;font-weight:650;color:#dce6f4}
.sidebar nav .navlink:hover,.sidebar nav .navlink:focus-visible{background:#182b42;color:white;border-color:#d92f51}
.nav-icon{font-size:21px;line-height:1;width:23px;text-align:center;color:#ff5266;flex:0 0 23px}
.sidebar-bottom{border-top:1px solid #36435a}
.top{background:#081426;border:1px solid #3b516b}
.panel{background:#0b1729;border-color:#9b2039}
.panel h2{color:#ff465c}
button.primary,.button.primary{background:#a91534;border-color:#ff4561}
button.primary:hover,.button.primary:hover{background:#be1d40}
/* Login explicitly mirrors original opaque #01040b overlay and 960px two-column card. */
.legacy-login-shell{background:#01040b;min-height:100vh;justify-content:center}
.legacy-login-card{display:grid;grid-template-columns:minmax(220px,.85fr) minmax(0,1.15fr);align-items:center;gap:12px;width:min(960px,100%);background:#050b16;border:1px solid #c72747;border-radius:16px;box-shadow:0 18px 80px #000b; padding:25px;overflow:hidden}
.legacy-login-portrait{min-height:480px;display:flex;justify-content:center;align-items:center;overflow:hidden}
.legacy-login-portrait img{display:block;width:100%;height:480px;object-fit:contain;object-position:center}
.legacy-login-fields{padding:18px 18px 24px;min-width:0}
.legacy-login-brand{font-size:53px;color:#ff364d;letter-spacing:.065em;line-height:1;font-weight:900}
.legacy-login-subbrand{color:#ff6275;font-size:11px;letter-spacing:.12em;font-weight:900;margin:9px 0 32px}
.legacy-login-fields h1{font-size:25px;font-weight:900;color:#ff364d;margin:0 0 13px}
.legacy-login-note,.legacy-login-privacy{color:#cad6e7;line-height:1.55}
.legacy-login-form label{display:block;margin:16px 0 6px;color:#eef2f9;font-size:14px;font-weight:750}
.legacy-login-form input:not([type=checkbox]):not([type=radio]){margin:0;width:100%;padding:13px 12px;background:#14283f;color:white;border:1px solid #778ba8;border-radius:8px}
.legacy-login-form .password-field{margin:0}
.legacy-login-form .password-toggle{background:#14283f;border:0;right:5px;top:5px;bottom:5px;width:44px;padding:6px;display:grid;place-items:center}
.legacy-login-form .password-toggle svg{height:22px;width:22px}
.legacy-login-form .legacy-login-submit{display:block;width:100%;margin:25px 0 9px;min-height:47px;font-weight:850;border-radius:9px}
.legacy-login-privacy{font-size:12px;margin-top:12px}
.legacy-login-shell .notice{width:min(960px,100%);margin-bottom:18px}
@media(max-width:680px){.legacy-login-card{display:block;padding:15px}.legacy-login-portrait{height:200px;min-height:200px}.legacy-login-portrait img{height:200px}.legacy-login-fields{padding:15px 5px 6px}.legacy-login-brand{font-size:39px}.legacy-login-subbrand{margin-bottom:21px}}
@media(max-width:800px){.sidebar{border-right:0;border-bottom:1px solid #344763}}
/* Ovládací oko uvnitř pole, jako v původním přihlášení. */
.legacy-login-password .password-field{position:relative;display:block;width:100%;max-width:none}
.legacy-login-password .password-field input{width:100%;padding-right:58px!important}
.legacy-login-password .password-toggle{position:absolute;right:4px;top:4px;bottom:4px;min-width:44px;width:44px;margin:0;border-radius:6px}

/* CORE 1.8 – schválený široký Přehled, kompaktní oko, vlastní dialogy a přejatá diskrétní vrstva. */
.shell main{max-width:none;padding:12px 18px 45px}
.training-top{border:1px solid #c6193c;display:grid;grid-template-columns:minmax(150px,1fr) auto minmax(190px,1fr);gap:20px;align-items:center;min-height:112px}
.live-clock{text-align:center;display:flex;flex-direction:column;align-items:center;gap:1px;white-space:nowrap;font-variant-numeric:tabular-nums}
.live-clock [data-current-date]{font-size:17px;font-weight:650}.live-clock [data-current-time]{font-size:26px;color:white}
.training-tools{display:flex;align-items:center;justify-content:flex-end;gap:19px}
.training-tools .world-switch{min-width:120px;max-width:210px}
.training-tools .world-switch label{margin:0;color:var(--muted);font-size:12px}
.training-tools .world-switch select{margin-top:5px;padding:7px 8px}
.training-tools .account{min-width:80px}
.dashboard-layout{grid-template-columns:minmax(235px,.78fr) minmax(0,1.72fr);align-items:start;gap:15px}
.dashboard-layout .portrait{min-height:620px;display:flex;align-items:flex-start;padding-top:12px}
.dashboard-layout .portrait img{width:100%;max-width:540px;max-height:690px}
.dashboard-cards .panel{min-height:185px}
.dashboard-cards .my-day{min-height:240px}
.day-items{list-style:none;margin:7px 0 14px;padding:0}
.day-items li{padding:10px 3px;display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid #334862}
.day-items time{white-space:nowrap;color:var(--muted);font-variant-numeric:tabular-nums}
.my-day h3{border-bottom:1px solid #354762;padding-bottom:7px;margin:12px 0}
.simple-activity{width:100%;max-width:650px;margin-bottom:12px}
.greeting-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
.greeting-tiles .tile{min-height:150px;flex:initial}.greeting-tiles .tile button,.greeting-tiles .tile .button{margin-top:auto}
button:disabled,.button:disabled{opacity:.42;filter:none;cursor:not-allowed}
/* Malé oko uvnitř pole: vytvoření, reset i přihlášení. */
.password-field,.legacy-login-password .password-field{position:relative;display:block;max-width:740px;width:100%}
.password-field input,.legacy-login-password .password-field input{width:100%;padding-right:52px!important}
.password-toggle,.legacy-login-form .password-toggle{position:absolute;top:50%;right:5px;transform:translateY(-50%);width:36px;height:36px;min-width:36px;min-height:36px;padding:7px;display:grid;place-items:center;border:0;background:transparent;box-shadow:none;border-radius:6px;color:#cbd9ed;margin:0}
.password-toggle svg,.legacy-login-form .password-toggle svg{width:21px;height:21px}
.password-toggle:focus-visible{outline:2px solid #ff4a70;outline-offset:1px}
@media(max-width:550px){.password-field{display:block}.password-toggle{min-width:36px}}
/* Přístupný jednotný modal OSDIS. */
.osdis-modal-wrap{position:fixed;inset:0;background:#020711bb;display:grid;place-items:center;padding:16px;z-index:500000}
.osdis-dialog{background:#091426;border:1px solid #d12c49;border-radius:14px;box-shadow:0 20px 60px #000c;width:min(480px,100%);padding:24px;display:flex;flex-direction:column;gap:12px}
.osdis-dialog h2{margin:0;color:#ff3b5d;font-size:23px}.osdis-dialog p{white-space:pre-line;line-height:1.65;margin:0}.osdis-dialog button{align-self:flex-end;margin-top:7px;min-width:114px}
/* Originální nenápadná obrazovka ze starého OSDIS (AKTUAL.zip), bez skutečného vyhledávání. */
.privacy-screen[hidden]{display:none!important}
.privacy-screen{position:fixed;inset:0;background:#202124!important;z-index:999999;display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:space-between!important;padding:0!important;color:#e8eaed!important;font-family:Arial,Helvetica,sans-serif}
.privacy-fake-top{display:flex;justify-content:flex-end;align-items:center;gap:22px;padding:17px 24px;color:#d5d9e0;font-size:12px}
.privacy-fake-main{display:flex;align-items:center;justify-content:center;flex:1;padding:22px 20px 8vh}
.privacy-fake-center{width:min(580px,100%);text-align:center}
.privacy-fake-logo{font-size:clamp(40px,7vw,82px);line-height:1.3;font-weight:500;letter-spacing:-.06em;color:#f0f2f5;margin:0 0 24px}
.privacy-fake-search{border:1px solid #53565d;border-radius:40px;background:#303134;display:flex;align-items:center;gap:13px;padding:12px 20px;min-height:50px;text-align:left;color:#bdc1c6}
.privacy-fake-search input{border:0!important;outline:0!important;min-height:24px!important;background:transparent!important;color:#e8eaed!important;padding:0!important;width:100%;font-size:15px!important;margin:0!important;box-shadow:none!important}
.privacy-fake-search input:focus{outline:none!important}
.privacy-fake-footer{min-height:61px;border-top:1px solid #393c40;background:#171717;color:#aeb3bb;font-size:12px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:15px 25px}
.privacy-fake-links{display:flex;gap:24px;align-items:center;flex-wrap:wrap}
.privacy-fake-footer #privacy-close{background:none!important;border:0!important;padding:0!important;margin:0!important;color:#aeb3bb!important;font-size:12px;min-height:0;text-decoration:none;cursor:pointer}
.privacy-fake-footer #privacy-close:hover{text-decoration:underline;color:#e8eaed!important}
@media(max-width:1000px){.training-top{grid-template-columns:1fr 1fr}.training-top .live-clock{grid-column:2;grid-row:1}.training-top .training-tools{grid-column:1/-1;justify-content:flex-end}.dashboard-layout{grid-template-columns:1fr}.dashboard-layout .portrait{min-height:auto}.dashboard-layout .portrait img{max-height:410px;max-width:390px}}
@media(max-width:650px){.training-top{display:flex;flex-wrap:wrap;align-items:center}.training-top .live-clock{font-size:14px;order:3;width:100%}.training-tools{width:100%;justify-content:space-between}.dashboard-cards{grid-template-columns:1fr}.dashboard-cards .panel:nth-child(3){grid-column:1}.osdis-dialog{padding:18px}}

/* CORE 1.9 – jednoduchý průvodce světem */
.world-setup .wizard-step[hidden]{display:none!important}.world-setup .wizard-step{padding:18px;border:1px solid #425671;border-radius:12px}
.world-setup .wizard-step legend{color:#ff3658;font-weight:800}.world-setup .wizard-progress{margin:12px 0 20px}
.world-setup .setup-greetings{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:12px}
.world-setup .setup-greeting{border:1px solid #47607c;background:#101e33;padding:14px;border-radius:10px}
.world-setup .setup-greeting .grid2{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.world-setup .row-actions{margin-top:18px}
@media(max-width:690px){.world-setup .setup-greeting .grid2{grid-template-columns:1fr}}

/* CORE 1.10 – geometrie administrací, Výcviku a jednotný průvodce */
.shell main {margin:0;align-self:stretch;min-width:0;padding:12px 16px 40px;max-width:none;}
.shell .top{margin-top:0;margin-bottom:14px;min-height:84px;}
.admin-wizard-layout{display:grid;grid-template-columns:minmax(220px,31%) minmax(0,69%);align-items:start;gap:16px;max-width:1720px;width:100%;}
.admin-wizard-portrait{min-width:0;display:flex;justify-content:flex-start;align-items:flex-start;position:sticky;top:18px;max-height:calc(100vh - 110px);}
.admin-wizard-portrait img{width:100%;height:auto;max-width:540px;max-height:calc(100vh - 110px);object-fit:contain;object-position:left top;}
.admin-wizard-content{width:100%;min-width:0;}
.admin-wizard-content .wizard-panel,.admin-wizard-content .world-setup{max-width:none;width:100%;}
.admin-wizard-content .wizard-step{width:100%;}
.admin-wizard-content .wizard-step>label{max-width:760px;}
.admin-wizard-content .wizard-progress{gap:9px;}
.admin-wizard-content .copy-panel{max-width:900px;}
.admin-wizard-content .copy-panel textarea{min-height:115px;}
.world-intro .osdis-dialog{max-width:500px;}
.world-intro .intro-ack-form{display:flex;justify-content:flex-end;margin-top:4px;}
.world-intro .intro-ack-form button{min-width:150px;}
.wizard-error{margin:0 0 14px;padding:10px 14px;}
/* Výcvik: lišta k hornímu okraji, portrét blíž navigaci, další panely blíž portrétu. */
.shell main:has(.dashboard-layout) {padding:10px 14px 36px;}
.dashboard-layout{display:grid;grid-template-columns:minmax(220px,28%) minmax(0,1fr);gap:10px;align-items:start;}
.dashboard-layout .portrait{padding:8px 0 0 0;min-height:auto;display:flex;justify-content:flex-start;align-items:flex-start;}
.dashboard-layout .portrait img{width:100%;max-width:460px;max-height:650px;margin-left:0;object-position:left top;}
.dashboard-layout .dashboard-cards{min-width:0;gap:11px;}
@media(max-width:1050px){.admin-wizard-layout{grid-template-columns:minmax(155px,27%) minmax(0,1fr)}.admin-wizard-portrait img{max-height:520px}.dashboard-layout{grid-template-columns:minmax(200px,30%) minmax(0,1fr)}}
@media(max-width:780px){.admin-wizard-layout{grid-template-columns:1fr}.admin-wizard-portrait{display:none}.dashboard-layout{grid-template-columns:1fr}.dashboard-layout .portrait{min-height:auto}.dashboard-layout .portrait img{max-width:330px;max-height:350px}.shell main{padding:10px}}
@media(max-width:650px){.admin-wizard-content .wizard-progress{gap:5px}.admin-wizard-content .wizard-step{padding:12px}.dashboard-cards{grid-template-columns:1fr}}


/* ==============================================================
   CORE 1.11 – společná geometrie, původní ilustrace, jemný neon.
   Grafy se nevykreslují, dokud nebudou k dispozici reálná data.
   ============================================================== */
:root{--red:#ff3856;--stroke:#bd2243;--panel:#0a162a}
body{background:radial-gradient(ellipse 70% 54% at 54% 2%,#10213b 0%,#050b16 82%);}
.shell{grid-template-columns:192px minmax(0,1fr)}
.sidebar{padding:12px 10px 14px;position:relative;z-index:8;min-width:0}
.sidebar .brand{margin-bottom:15px;padding-top:8px;padding-bottom:19px}
.sidebar .brand strong{font-size:36px}
.sidebar nav{display:flex;flex-direction:column;gap:5px}
.sidebar .navlink{width:100%;display:flex;align-items:center;min-height:43px;text-align:left;border:1px solid transparent;padding:10px 11px;margin:0;background:transparent;color:#e6ecf8;border-radius:8px;font-weight:750;font-size:13px;text-decoration:none}
.sidebar .navlink:hover,.sidebar .navlink:focus-visible{background:#14243c;border-color:#82344a;color:#fff;filter:none}
.sidebar .nav-icon{font-size:19px;line-height:1;width:22px;flex:0 0 22px;color:#ff3d5f;display:flex;align-items:center;justify-content:center}
.sidebar .nav-icon svg{width:21px;height:21px}
.sidebar-bottom{margin-top:auto;border:0;padding:16px 0 0;display:flex;min-width:0}
.sidebar-bottom .privacy-link{cursor:pointer}
.sidebar-bottom .privacy-link:focus-visible{outline:2px solid #ff4867;outline-offset:1px}
.shell main{padding:4px 11px 30px;min-width:0;max-width:none}
.shell .top{padding:17px 22px;min-height:92px;border:1px solid #b62545;border-radius:12px;background:#08162be8;box-shadow:0 6px 24px #0002;margin-bottom:14px}
.panel{border-color:#b92545;background:linear-gradient(126deg,#0d1b30f5,#091526f4);box-shadow:inset 0 1px 0 #ffffff06;padding:22px;border-radius:12px}
.panel h2{color:#ff3c59;letter-spacing:.01em}
.top h1{color:#ff3c59}
button.primary,.button.primary{background:#b31136;border-color:#fa3b60}
button.primary:hover,.button.primary:hover{background:#cc163e}

/* Unified column framework on every Vycvik page. */
.training-body{display:grid;grid-template-columns:clamp(255px,27vw,420px) minmax(0,1fr);gap:4px;min-height:calc(100vh - 120px);align-items:start}
.training-portrait{position:sticky;top:120px;min-width:0;height:min(720px,calc(100vh - 125px));min-height:560px;z-index:10;pointer-events:none;display:flex;align-items:flex-start;justify-content:flex-start;margin-left:-19px}
.training-portrait img{display:block;width:calc(100% + 20px);max-width:460px;max-height:100%;height:auto;object-fit:contain;object-position:center top;filter:drop-shadow(0 0 18px #bd193019)}
.training-content{min-width:0;padding-top:0}
.dashboard-layout{display:block;min-width:0}
.dashboard-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:12px;row-gap:11px;min-width:0}
.dashboard-cards .panel{min-width:0;min-height:170px;margin:0}
.dashboard-cards .my-day{grid-column:1/-1;min-height:230px;margin:0}
.dashboard-cards .my-day h3{margin-top:18px}
.training-content >.panel,.training-content >.row-actions{max-width:100%;min-width:0}
.training-content >.row-actions{margin-bottom:12px}
.training-content .greeting-tiles{grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr))}
.training-top{grid-template-columns:minmax(165px,1fr) auto minmax(205px,1fr);min-height:95px}

/* Admin list and editor maintain their original navigation, no wide empty strip. */
.worlds-overview{display:grid;grid-template-columns:clamp(220px,26%,385px) minmax(0,760px);gap:12px;max-width:1250px;align-items:start}
.worlds-overview-portrait{position:sticky;top:120px;display:flex;justify-content:center;align-items:flex-start;min-width:0;pointer-events:none}
.worlds-overview-portrait img{width:100%;height:auto;max-height:720px;object-fit:contain;filter:drop-shadow(0 0 16px #b70c2f14)}
.worlds-overview-panel{width:100%;max-width:760px}
.worlds-overview-list{display:grid;grid-template-columns:1fr;gap:11px}
.worlds-overview-list .tile{width:100%;max-width:100%;min-width:0}
.worlds-overview-list .tile .button{width:auto;align-self:flex-start;min-width:180px;padding:10px 16px}

/* Contextual tooltips can be clicked without toggling adjacent checkboxes. */
.hint-checkbox-line{display:flex;align-items:center;justify-content:flex-start;gap:6px;margin:7px 0;position:relative}
.hint-checkbox-line label.check{margin:5px 0;min-height:26px}
.hint{position:relative;display:inline-flex;align-items:center;vertical-align:middle;z-index:4}
.hint-trigger{display:grid;place-items:center;min-height:23px;height:23px;min-width:23px;width:23px;padding:0;border-radius:50%;border:1px solid #657d9b;color:#c3d6ed;background:#162840;font-weight:800;font-size:13px}
.hint-trigger:hover,.hint-trigger:focus-visible{border-color:#ff4666;color:white;filter:none;outline:1px solid #ff4666}
.hint-tooltip{pointer-events:none;display:none;position:absolute;bottom:calc(100% + 9px);left:-15px;z-index:99;width:min(275px,73vw);padding:11px 13px;background:#11233b;border:1px solid #f23856;border-radius:9px;box-shadow:0 8px 28px #000b;font-size:12px;font-weight:450;line-height:1.48;color:#edf4fe;text-align:left;white-space:normal}
.hint:hover .hint-tooltip,.hint:focus-within .hint-tooltip,.hint.hint-open .hint-tooltip{display:block}
.world-setup .setup-greeting{overflow:visible}

@media(max-width:1180px){
 .training-body{grid-template-columns:clamp(200px,27%,300px) minmax(0,1fr)}
 .training-portrait{min-height:400px;height:calc(100vh - 160px);margin-left:-10px}
 .dashboard-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
 .worlds-overview{grid-template-columns:minmax(170px,27%) minmax(0,1fr)}
}
@media(max-width:870px){
 .training-body{grid-template-columns:1fr;min-height:0}
 .training-portrait{position:relative;top:auto;height:190px;min-height:0;margin:0;justify-content:center;overflow:hidden}
 .training-portrait img{height:260px;max-height:260px;width:auto;max-width:100%;object-position:center top}
 .worlds-overview{grid-template-columns:1fr}
 .worlds-overview-portrait{position:static;height:160px;overflow:hidden}
 .worlds-overview-portrait img{max-height:280px;width:auto;max-width:100%}
}
@media(max-width:800px){
 .shell{grid-template-columns:1fr}
 .sidebar{min-height:0;padding:10px}
 .sidebar nav{flex-direction:row;flex-wrap:wrap;gap:6px}
 .sidebar .navlink{width:auto;min-height:42px}
 .sidebar .brand{padding:5px 2px 12px;margin:0 0 6px}
 .sidebar-bottom{display:flex;padding:8px 0 0}
 .shell main{padding:10px}
 .training-top{grid-template-columns:1fr 1fr}
}
@media(max-width:550px){
 .dashboard-cards{grid-template-columns:1fr}
 .dashboard-cards .my-day{grid-column:1}
 .training-tools{gap:6px}
 .training-top{display:flex;flex-wrap:wrap}
 .training-top .live-clock{width:100%;order:3}
 .training-portrait{height:140px}
 .training-portrait img{height:210px}
 .worlds-overview-list .tile .button{width:100%}
}
/* Identical geometry between Přehled and Hlášení, including empty/error states. */
.shell main:has(.dashboard-layout){padding:4px 11px 30px}
@media(max-width:800px){.shell main:has(.dashboard-layout){padding:10px}}
@media(max-width:870px){.training-portrait{height:255px}.training-portrait img{height:245px;max-height:245px}}
@media(max-width:550px){.training-portrait{height:222px}.training-portrait img{height:212px;max-height:212px}}


/* CORE-1.11-008 – pouze Správa Světa: úzký a vycentrovaný obsah.
   Výcvik a Správa Systému používají původní rozložení. */
.shell.shell-world main {
  width:100%;
  max-width:1200px;
  margin-inline:auto;
  padding-inline:16px;
}
.shell.shell-world .worlds-overview {
  width:100%;
  max-width:1080px;
  margin-inline:auto;
  grid-template-columns:minmax(230px,31%) minmax(0,1fr);
  gap:18px;
}
.shell.shell-world .worlds-overview-panel {width:100%;max-width:none}
@media(max-width:870px) {
  .shell.shell-world .worlds-overview {
    max-width:650px;
    grid-template-columns:minmax(0,1fr);
    gap:12px;
  }
}
@media(max-width:800px) {
  .shell.shell-world main {padding-inline:10px}
}


/* HOTFIX 1.11 – WORLD WIDTH / PERMANENT CHARACTER.
   Replaces the superseded CORE-1.11-008 width cap: World Administration
   uses full available browser width, like the other OSDIS environments. */
.shell.shell-world main {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: 11px;
}
.shell.shell-world .worlds-overview {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  grid-template-columns: clamp(245px,22%,365px) minmax(0,1fr);
  gap: 12px;
  align-items: start;
}
.shell.shell-world .worlds-overview-panel {
  max-width:none;
  min-width:0;
  width:100%;
}
/* The same character and content grid on detail, profile, greetings and library. */
.world-body {
  display:grid;
  grid-template-columns:clamp(245px,22%,365px) minmax(0,1fr);
  gap:12px;
  align-items:start;
  width:100%;
  min-width:0;
}
.world-body-portrait {
  position:sticky;
  top:120px;
  z-index:2;
  min-width:0;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  pointer-events:none;
}
.world-body-portrait img {
  width:100%;
  max-width:365px;
  max-height:720px;
  height:auto;
  object-fit:contain;
  filter:drop-shadow(0 0 16px #b70c2f14);
}
.world-body-content { width:100%; max-width:none; min-width:0; }
.world-body-content > .panel, .world-body-content > .row-actions { width:100%; max-width:none; min-width:0; }
@media (max-width: 870px) {
  .shell.shell-world .worlds-overview, .world-body { grid-template-columns:1fr; }
  .world-body-portrait { position:relative; top:auto; height:180px; overflow:hidden; }
  .world-body-portrait img { width:auto; max-height:260px; max-width:100%; }
}
@media (max-width:800px) {
  .shell.shell-world main { padding-inline:10px; }
}

/* CORE 1.12 – vizuální odlišení pevného testovacího času */
.test-chip{display:block;color:#ff476a;font-size:.67rem;font-weight:800;letter-spacing:.07em;text-align:right;}

/* OSDIS CORE 1.13: exact acceptance layout. */
.training-content .greeting-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:stretch}
.training-content .greeting-tiles .tile{min-width:0;min-height:166px;display:flex;flex-direction:column;align-items:stretch;gap:9px;padding:17px}
.training-content .greeting-tiles .tile strong{font-size:17px;line-height:1.35;overflow-wrap:anywhere;font-weight:800}
.training-content .greeting-tiles .tile small{font-size:12px}
.training-content .greeting-tiles .tile a.button,.training-content .greeting-tiles .tile button{display:flex;align-items:center;justify-content:center;min-height:43px;height:43px;width:100%;margin-top:auto;font-size:13px;line-height:1.2;white-space:normal}
.training-content .greeting-tiles .tile form{margin-top:auto}
.training-content .greeting-tiles .tile form button{margin-top:0}
@media(max-width:1250px){.training-content .greeting-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.training-content .greeting-tiles{grid-template-columns:minmax(0,1fr)}}
.training-body:has(.test-mode-panel) .training-portrait{align-items:flex-end;justify-content:center;min-height:calc(100vh - 130px);height:calc(100vh - 130px)}
.training-body:has(.test-mode-panel) .training-portrait img{max-height:min(67vh,600px);object-position:center bottom;margin-bottom:24px}
.test-mode-actions{display:flex;flex-direction:column;align-items:flex-start;gap:16px;margin-bottom:16px}
.test-mode-actions form{width:100%;max-width:100%}
.test-mode-actions form:not(:first-child){width:auto}
.test-mode-actions button{margin:0;min-height:42px}
.world-profile-panel{padding:16px 20px}
.world-profile-panel h3{margin:11px 0 5px}
.world-profile-panel .copy-panel{margin-top:13px}
.world-profile-panel #lord-preview{min-height:185px;max-height:40vh;resize:vertical}
.world-profile-panel label{margin:9px 0}
.profile-actions{margin:15px 0 0}
button:disabled,.button[aria-disabled="true"]{opacity:.45;cursor:not-allowed;filter:none}
.greeting-handoff{max-width:100%}
.training-content .greeting-handoff fieldset,.training-content .greeting-handoff label{max-width:none}
.training-content .greeting-handoff textarea{width:100%}
@media(max-width:780px){.training-body:has(.test-mode-panel) .training-portrait{min-height:260px;height:290px;position:relative;top:auto}.training-body:has(.test-mode-panel) .training-portrait img{max-height:270px;margin-bottom:8px}}

/* CORE 1.13: production evidence and absence forms. */
.presence-counts{display:grid;grid-template-columns:repeat(5,minmax(110px,1fr));gap:10px;margin:20px 0}
.presence-count{min-height:95px;background:#112039;border:1px solid #3d5270;border-radius:9px;padding:13px;display:flex;flex-direction:column;justify-content:center}
.presence-count strong{color:#ff4362;font-size:28px;line-height:1.25}
.presence-count span{color:#c5d2e2;font-size:12px}
.absence-editor{max-width:900px}
.absence-editor .grid2{gap:15px}
@media(max-width:1100px){.presence-counts{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.presence-counts{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Keep the original illustration low while handing off greetings. */
.training-body:has(.greeting-handoff) .training-portrait{align-items:flex-end;justify-content:center}
.training-body:has(.greeting-handoff) .training-portrait img{max-height:min(67vh,600px);margin-bottom:22px;object-position:center bottom}
@media(max-width:780px){.training-body:has(.greeting-handoff) .training-portrait img{max-height:270px;margin-bottom:8px}}

.presence-annual-chart{display:flex;flex-direction:column;gap:6px;margin:12px 0 17px}
.presence-bar-row{display:grid;grid-template-columns:38px minmax(0,1fr) 68px;align-items:center;gap:10px;font-size:12px}
.presence-bar{height:21px;width:100%;border-radius:6px;border:1px solid #45536d;background:#11243b}
.presence-segment.state-0{fill:#1eae80}.presence-segment.state-1{fill:#d23d5c}.presence-segment.state-2{fill:#5b8dd4}.presence-segment.state-3{fill:#536177}.presence-segment.state-4{fill:#e0b45b}

/* CORE 1.15: portrait aligned lower, responsive. */
@media(min-width:871px){.world-body-portrait{min-height:calc(100vh - 130px);height:calc(100vh - 130px);align-items:flex-end;top:100px}.world-body-portrait img{max-height:min(72vh,680px);object-position:center bottom;margin-bottom:22px}}
.training-content .greeting-tiles .tile .greet-done{color:#53d78b;font-weight:800;margin:0;font-size:13px;letter-spacing:.02em}
.training-content .greeting-tiles .tile a.button,.training-content .greeting-tiles .tile button{height:auto;min-height:56px;padding:9px 12px}
.training-content .greeting-tiles .tile button:disabled{background:#484d58;color:#e2e5eb;border-color:#5f6672;opacity:.72;cursor:not-allowed}
.review-copy{margin:16px 0 24px}.review-copy button{margin-top:10px}.night-intro li{margin-bottom:12px}.night-intro-form{margin-top:18px}.settings-navigation .settings-choice{display:flex;flex-wrap:wrap;gap:16px}.settings-navigation .settings-choice a{min-height:44px}.presence-actions{margin-top:16px;display:grid;gap:10px}.presence-actions .check{max-width:620px}.presence-status{margin:12px 0}.presence-summary{margin:15px 0 20px}


/* CORE 1.15: portrait anchored near bottom of visible training column on desktop, not top. */
@media(min-width:871px){
 .training-body .training-portrait,
 .training-body:has(.test-mode-panel) .training-portrait,
 .training-body:has(.greeting-handoff) .training-portrait{
  position:sticky;top:112px;height:calc(100vh - 135px);min-height:0;
  display:flex;align-items:flex-end;justify-content:center;margin-left:0;
 }
 .training-body .training-portrait img,
 .training-body:has(.test-mode-panel) .training-portrait img,
 .training-body:has(.greeting-handoff) .training-portrait img{
  display:block;width:100%;height:auto;max-width:460px;max-height:min(65vh,620px);
  object-fit:contain;object-position:center bottom;margin-bottom:24px;
 }
}
/* Add horizontal separation between closing controls without changing global style. */
.transfer-actions{display:flex;flex-wrap:wrap;gap:16px;align-items:center;margin:14px 0}
.transfer-actions form{margin:0}
.transfer-success{margin:12px 0 18px}
.morning-attempt{margin-top:18px;max-width:540px}

/* CORE 1.17 – generated texts are not editable or visible as faux editors. */
[hidden]{display:none!important}
button:disabled{cursor:not-allowed;opacity:.56;filter:none!important}
@media(min-width:871px){
  .training-body .training-portrait,
  .training-body:has(.test-mode-panel) .training-portrait,
  .training-body:has(.greeting-handoff) .training-portrait{align-items:flex-end;top:105px;height:calc(100vh - 130px);}
  .training-body .training-portrait img,
  .training-body:has(.test-mode-panel) .training-portrait img,
  .training-body:has(.greeting-handoff) .training-portrait img{max-height:min(72vh,680px);margin-bottom:25px;}
}

/* CORE 1.18 – low-presence confirmation state */
.presence-confirmed{display:flex;align-items:flex-start;gap:13px;width:100%;white-space:normal;text-align:left;line-height:1.5;padding:15px 18px;background:#103c30;border:1px solid #26996f;color:#effff5;font-weight:750;border-radius:8px}
.presence-confirmed-icon{font-size:23px;color:#53e69b;line-height:1.25;flex:0 0 26px}
.presence-confirmed-copy{display:flex;flex-direction:column;gap:5px;min-width:0}
.presence-confirmed-copy strong{color:#baf5d4;font-size:15px;font-weight:850}
.presence-confirmed-copy span{color:#effff5;font-size:15px;font-weight:650}
.presence-window-hint{font-size:18px;font-weight:700;color:#dce8f6}
.presence-actions label.check{font-size:17px;font-weight:650}
.presence-actions label.check input[type=checkbox]{width:22px;height:22px;flex:0 0 22px}
button.primary:disabled,.button.primary:disabled{background:#454e5c!important;border-color:#677386!important;color:#d7dce4!important;opacity:.82!important;box-shadow:none!important;cursor:not-allowed!important}

/* CORE 1.18.2 B1 – rozvržení pozdravů a předávacího panelu.
   Nenahrazuje celostránkové předání modálním dialogem (to patří B3). */
.training-content .greeting-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:stretch}
.training-content .greeting-tiles>.tile{min-width:0;width:100%;min-height:178px;display:flex;flex-direction:column;gap:9px}
.training-content .greeting-tiles>.tile strong{font-size:17px;line-height:1.38;overflow-wrap:anywhere}
.training-content .greeting-tiles>.tile form{width:100%;margin-top:auto}
.training-content .greeting-tiles>.tile button,
.training-content .greeting-tiles>.tile a.button{width:100%;height:96px;min-height:96px;display:flex;align-items:center;justify-content:center;font-size:12px;line-height:1.3;white-space:normal;overflow-wrap:anywhere;margin-top:auto;padding:10px}
.training-content .greeting-tiles>.tile form button{margin-top:0}
.training-content .greeting-handoff{display:block;width:100%;max-width:none;min-width:0}
.training-content .greeting-handoff .greeting-extras{min-width:0;width:100%;max-width:none}
.training-content .greeting-handoff .grid2{grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:16px}
.training-content .greeting-handoff label,
.training-content .greeting-handoff input,
.training-content .greeting-handoff textarea{max-width:none;min-width:0}
.training-body .training-portrait{pointer-events:none;z-index:0}
.training-body .training-content{position:relative;z-index:1;min-width:0}
@media(min-width:871px){
 .training-body:has(.greeting-handoff) .training-portrait{align-items:flex-end;justify-content:center}
 .training-body:has(.greeting-handoff) .training-portrait img{width:100%;max-width:100%;object-position:center bottom;margin-bottom:25px}
}
@media(max-width:1250px){.training-content .greeting-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:870px){.training-body .training-portrait{z-index:0}}
@media(max-width:700px){.training-content .greeting-tiles{grid-template-columns:minmax(0,1fr)}}
@media(max-width:520px){.training-content .greeting-handoff .grid2{grid-template-columns:minmax(0,1fr);gap:4px}}

/* B2 OPRAVA 05 – real dashboard inspired by approved OSDIS status illustration. */
.dashboard-cards {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}
.dashboard-cards .panel{margin:0;min-height:235px}
.dashboard-actions{display:flex;flex-direction:column;align-items:flex-start;gap:15px;margin-top:16px}
.dashboard-actions .button{display:flex;align-items:center;justify-content:center;min-height:48px;min-width:min(280px,100%);font-size:14px;font-weight:800;letter-spacing:.01em;text-align:center}
.dashboard-closing{margin:19px 0 0;border-left:3px solid #ff3856;padding:10px;background:#121b2d;line-height:1.6}
.dashboard-closing a{color:#ff7890;text-decoration:underline}
.dashboard-outfit .outfit-slot{border:1px solid #477789;border-radius:10px;padding:14px;margin:14px 0;background:#0d1d2d}
.dashboard-outfit .outfit-slot strong{color:#e7f6ff;font-size:15px}
.dashboard-outfit .outfit-slot p{margin:8px 0 2px;font-size:13px}
.dashboard-cards .dashboard-tasks{grid-column:1/-1;min-height:170px}
.dashboard-task-cats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:15px 0}
.dashboard-task-cat{border:1px solid #354965;border-radius:9px;padding:13px 10px;background:#10213a;display:flex;flex-direction:column;gap:8px;min-height:75px}
.dashboard-task-cat strong{color:#e9f2ff;font-size:13px}
.dashboard-task-cat span{color:#96aac4;font-size:12px}

/* Left side: compact genuine HTML status panel ABOVE the existing character, not a flattened screenshot. */
.training-portrait.dashboard-portrait{position:relative;top:auto;z-index:auto;height:auto;min-height:0;margin:0;padding:0;pointer-events:auto;display:flex;flex-direction:column;align-items:stretch;gap:15px;overflow:visible}
.training-portrait.dashboard-portrait>img{width:100%;max-width:460px;height:auto;max-height:550px;object-fit:contain;object-position:center top;margin:0;align-self:center;pointer-events:none}
.osdis-status{box-sizing:border-box;width:100%;min-width:0;background:radial-gradient(ellipse at 40% 10%,#152036 0%,#071122 64%,#040a16 100%);border:1.5px solid #fe2545;border-radius:14px;box-shadow:0 0 12px #e11d3a35,inset 0 0 13px #ff163a0c;overflow:hidden;padding:14px 13px 11px;color:#f7f9ff}
.osdis-status-head{display:flex;gap:9px;align-items:center;padding-bottom:10px;border-bottom:1px solid #a71a36;min-width:0}
.osdis-status-symbol{width:67px;height:74px;flex:0 0 67px;object-fit:contain}
.osdis-status-headings{min-width:0;flex:1;text-align:center}
.osdis-status-headings h2{font-size:clamp(18px,1.7vw,24px);line-height:1.05;letter-spacing:.01em;color:#ff263d;text-shadow:0 0 9px #f0173c77;font-weight:950;margin:0 0 5px}
.osdis-status-headings p{font-size:clamp(17px,1.5vw,22px);line-height:1.1;letter-spacing:.005em;color:#ff263d;text-shadow:0 0 8px #f0173c80;font-weight:950;margin:0;overflow-wrap:anywhere}
.osdis-status-content{margin-top:5px}
.osdis-status-line{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:7px;border-bottom:1px solid #33435c;padding:10px 3px;color:#f5f7fc;font-size:13px}
.osdis-status-line>span:first-child{font-weight:700}
.osdis-status-line strong{font-weight:850}
.osdis-status-authority{border:1px solid #fe2445;border-radius:8px;background:#241126;padding:5px 9px;color:#fff;box-shadow:inset 0 0 6px #b71d3840;text-align:center}
.osdis-status-line.osdis-stat{grid-template-columns:minmax(0,1fr) 52px minmax(72px,1.15fr);gap:7px}
.osdis-stat strong,.osdis-stat b{font-size:14px;font-weight:850}
.osdis-stat b{text-align:right;white-space:nowrap}
.osdis-meter{display:block;width:100%;height:12px;appearance:none;-webkit-appearance:none;background:#26364a;border:1px solid #2f4760;border-radius:50px;overflow:hidden}
.osdis-meter::-webkit-progress-bar{background:#26364a;border-radius:50px}
.osdis-meter::-webkit-progress-value{background:linear-gradient(90deg,#20ce2d,#16ec39);border-radius:50px}
.osdis-meter::-moz-progress-bar{background:linear-gradient(90deg,#20ce2d,#16ec39);border-radius:50px}
.osdis-punishment-risk-none{color:#22c55e!important}
.osdis-punishment-risk-small{color:#ffa500!important}
.osdis-punishment-risk-medium{color:#ff5722!important}
.osdis-punishment-risk-large{color:#ff334e!important}
.osdis-status-demo{display:block;padding-top:10px;font-size:10px;color:#8ca4be;line-height:1.4;text-align:center;letter-spacing:.02em}
.backup-pending .row-actions{display:flex;gap:16px;flex-wrap:wrap;margin-top:22px}
.backup-pending p{margin-top:16px;line-height:1.6}
.emergency-review button:disabled{background:#454e5c!important;border-color:#677386!important;color:#d7dce4!important;opacity:.82!important}
@media(max-width:1350px){.training-portrait.dashboard-portrait{gap:10px}.osdis-status{padding:12px 9px}.osdis-status-symbol{width:50px;height:60px;flex-basis:50px}.osdis-status-headings h2{font-size:19px}.osdis-status-headings p{font-size:16px}.osdis-stat strong,.osdis-stat b{font-size:12px}.osdis-status-line{font-size:12px}}
@media(max-width:950px){.dashboard-cards{grid-template-columns:1fr}.dashboard-cards .dashboard-tasks{grid-column:1}.training-body{grid-template-columns:minmax(220px,35%) minmax(0,1fr)}}
@media(max-width:780px){.training-portrait.dashboard-portrait{height:auto;min-height:0;max-height:none;display:flex;align-items:center;overflow:visible}.training-portrait.dashboard-portrait>img{max-width:270px;max-height:290px;height:auto;width:100%}.osdis-status{max-width:420px}.training-body{grid-template-columns:1fr}}
@media(max-width:560px){.dashboard-task-cats{grid-template-columns:1fr}.dashboard-actions .button{width:100%;min-width:0}.osdis-status-headings h2{font-size:20px}.osdis-status-headings p{font-size:18px}}


/* B2 OPRAVA 06 – final agreed sidebar, dashboard alignment and non-card task list. */
.sidebar nav .nav-duties{display:block;width:100%;border:1px solid #743048;border-radius:9px;background:#0a1728;margin:0 0 4px;min-width:0;overflow:hidden}
.sidebar nav .nav-duties summary{display:flex;align-items:center;gap:12px;padding:11px 12px;min-height:44px;cursor:pointer;list-style:none;color:#f3e9ee;font-size:13px;font-weight:850}
.sidebar nav .nav-duties summary::-webkit-details-marker{display:none}
.sidebar nav .nav-duties summary:hover,.sidebar nav .nav-duties summary:focus-visible{background:#172741;outline:2px solid #e93458;outline-offset:-2px}
.sidebar nav .nav-duties .nav-duty-arrow{margin-left:auto;font-size:19px;line-height:1;color:#ff4466;transition:transform .15s ease}
.sidebar nav .nav-duties:not([open]) .nav-duty-arrow{transform:rotate(-90deg)}
.sidebar nav .nav-duty-items{display:flex;flex-direction:column;gap:4px;margin:0 5px 6px 14px;padding-left:9px;border-left:2px solid #b31d3c}
.sidebar nav .nav-duty-items .navlink{width:100%;font-size:12px;padding:9px 6px;min-height:39px;margin:0;gap:8px}
.sidebar nav .nav-duty-items .nav-icon{font-size:16px;width:18px;flex-basis:18px}
.sidebar nav .nav-duty-items .navlink.sel{background:#71102a;border-color:#f03659;color:white}
/* Narrower task list is directly below Ovládání; Outfit occupies the right column. */
.dashboard-cards{grid-template-columns:minmax(0,.94fr) minmax(0,1.06fr);grid-template-areas:'controls outfit' 'tasks outfit';grid-template-rows:auto 1fr;align-items:start;gap:12px}
.dashboard-cards .panel{min-height:0;margin:0}
.dashboard-cards .dashboard-control{grid-area:controls;min-height:170px}
.dashboard-cards .dashboard-outfit{grid-area:outfit;min-height:355px;align-self:stretch}
.dashboard-cards .dashboard-tasks{grid-area:tasks;grid-column:auto;min-height:0}
.dashboard-task-list{display:flex;flex-direction:column;list-style:none;margin:14px 0 12px;padding:0;gap:6px}
.dashboard-task-row{display:grid;grid-template-columns:12px minmax(100px,.7fr) minmax(0,1.3fr);gap:10px;align-items:center;min-width:0;padding:11px 10px;border:1px solid #2e4860;border-radius:7px;background:#101e31;border-left:3px solid var(--task-color)}
.dashboard-task-row strong{font-size:13px;color:var(--task-color)}
.dashboard-task-row .muted{font-size:12px;line-height:1.4}
.dashboard-task-dot{width:9px;height:9px;border-radius:50%;background:var(--task-color);box-shadow:0 0 8px var(--task-color)}
.dashboard-task-active{--task-color:#ff3c55}.dashboard-task-upcoming{--task-color:#f6bb48}.dashboard-task-done{--task-color:#41d893}
/* Portrait stays on a common lower anchor across the dashboard and the other training pages. */
@media(min-width:871px){
 .training-body .training-portrait.dashboard-portrait{position:sticky;top:105px;height:calc(100vh - 130px);min-height:660px;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:9px;overflow:visible}
 .training-body .training-portrait.dashboard-portrait>img{display:block;flex:1 1 auto;min-height:0;width:calc(100% + 28px);max-width:540px;max-height:none;height:0;object-fit:contain;object-position:center bottom;align-self:center;margin:0 0 5px;pointer-events:none}
}
/* Transparent redraw of the original icon – no black rectangular cut-out. */
.osdis-status-head{min-height:98px;gap:8px}
.osdis-status-symbol{width:83px;height:90px;flex:0 0 83px;background:transparent;object-fit:contain}
@media(min-width:951px) and (max-width:1350px){.osdis-status-symbol{width:68px;height:76px;flex-basis:68px}.osdis-status-head{min-height:81px}}
@media(max-width:950px){.dashboard-cards{grid-template-columns:1fr;grid-template-areas:'controls' 'tasks' 'outfit';grid-template-rows:auto}.dashboard-cards .dashboard-outfit{min-height:255px}}
@media(max-width:780px){.sidebar nav .nav-duties{width:auto;min-width:185px}.training-portrait.dashboard-portrait>img{max-height:360px!important;max-width:335px!important;height:auto!important;width:100%!important}}
@media(max-width:520px){.sidebar nav .nav-duties{width:100%}.dashboard-task-row{grid-template-columns:10px minmax(0,1fr)}.dashboard-task-row .muted{grid-column:2}.osdis-status-symbol{width:69px;height:76px;flex-basis:69px}}
/* Specificity fixes against legacy portrait image and :nth-child dashboard selectors. */
.dashboard-cards .panel.dashboard-tasks{grid-column:1;grid-row:2;grid-area:tasks;align-self:start}
.training-body .training-portrait.dashboard-portrait .osdis-status-symbol{display:block;flex:0 0 76px;width:76px;height:84px;min-width:0;max-width:76px;max-height:84px;object-fit:contain;object-position:center;background:transparent;margin:0}
@media(min-width:951px) and (max-width:1350px){.training-body .training-portrait.dashboard-portrait .osdis-status-symbol{flex-basis:65px;width:65px;height:72px;max-width:65px;max-height:72px}}
@media(max-width:520px){.training-body .training-portrait.dashboard-portrait .osdis-status-symbol{flex-basis:70px;width:70px;height:77px;max-width:70px;max-height:77px}}
/* Keep the figure as large as on the other training screens, rather than shrinking it to fit beneath status. */
@media(min-width:871px){
 .training-body .training-portrait.dashboard-portrait{position:relative;top:auto;height:auto;min-height:calc(100vh - 130px);justify-content:flex-start}
 .training-body .training-portrait.dashboard-portrait>img{flex:none;height:min(65vh,620px);min-height:490px;max-height:none;width:calc(100% + 30px);max-width:540px;object-fit:contain;object-position:center bottom;margin:0;align-self:center}
}
/* Slightly tighter metadata lines retain a compact status card above the larger figure. */
.osdis-status-line{padding-top:8px;padding-bottom:8px}


/* SEKCE C · START 01 */
.sidebar nav .nav-duties{background:linear-gradient(180deg,#0f1b2e 0%,#0a1626 100%);border-color:#8d2944;box-shadow:inset 0 0 0 1px #131f31}
.sidebar nav .nav-duties summary{position:relative;padding:12px 13px;background:linear-gradient(180deg,#111f34 0%,#0b182b 100%)}
.sidebar nav .nav-duties[open] summary{border-bottom:1px solid #7d203b}
.sidebar nav .nav-duty-items{margin:0;padding:8px 8px 10px 16px;border-left:none;background:#091423}
.sidebar nav .nav-duty-items .navlink{border-radius:8px}
.training-body .training-portrait{margin-left:0;align-items:flex-end;justify-content:center;top:105px;height:calc(100vh - 130px);min-height:660px;overflow:visible}
.training-body .training-portrait img{width:100%;max-width:500px;max-height:min(72vh,680px);height:auto;object-fit:contain;object-position:center bottom;margin-bottom:25px}
.training-body .training-portrait.dashboard-portrait{position:sticky;top:105px;height:calc(100vh - 130px);min-height:660px;justify-content:flex-start;gap:12px}
.training-body .training-portrait.dashboard-portrait>img{flex:none;height:auto;min-height:0;width:100%;max-width:500px;max-height:min(72vh,680px);object-fit:contain;object-position:center bottom;margin:0 0 25px}
.osdis-status-head{justify-content:center;gap:12px;min-height:94px}
.osdis-status-headings h2{font-size:clamp(22px,2.05vw,30px);margin:0;text-align:center}
.osdis-status-headings p{display:none}
.settings-catalog-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:16px}
.settings-card{display:flex;flex-direction:column;gap:8px;min-height:118px;padding:16px 18px;border:1px solid #355271;border-radius:12px;background:linear-gradient(180deg,#11233b 0%,#0c1a2e 100%);color:#f7fbff;text-decoration:none;box-shadow:0 0 0 1px #0d1522 inset}
.settings-card strong{font-size:18px;color:#ff4863}
.settings-card span{font-size:13px;line-height:1.45;color:#adc2da}
.settings-card:hover,.settings-card:focus-visible{border-color:#ff3f61;box-shadow:0 0 0 1px #ff3f61 inset,0 0 14px #ff315333;outline:none}
.settings-choice.secondary{margin-top:14px}
.catalog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:16px}
.catalog-card{padding:16px;border:1px solid #37506f;border-radius:12px;background:#0f1f34}
.catalog-card h3{margin:0 0 10px;color:#ff4664;font-size:18px}
.catalog-list{margin:0;padding-left:18px;display:grid;gap:8px}
.catalog-list li{line-height:1.45}
@media(max-width:1180px){.settings-catalog-grid,.catalog-grid{grid-template-columns:1fr 1fr}}
@media(max-width:950px){.training-body .training-portrait,.training-body .training-portrait.dashboard-portrait{position:relative;top:auto;height:auto;min-height:0;justify-content:flex-end}.training-body .training-portrait img,.training-body .training-portrait.dashboard-portrait>img{max-height:360px;margin-bottom:8px}.settings-catalog-grid,.catalog-grid{grid-template-columns:1fr}}

/* SEKCE C · OPRAVA 02: sjednocení navigace, modálních povinností a serverového katalogu. */
.sidebar nav .nav-duties{border:0!important;box-shadow:none!important;background:transparent!important;border-radius:0!important;overflow:visible!important;margin:0 0 3px!important}
.sidebar nav .nav-duties summary{border:1px solid transparent!important;background:transparent!important;border-radius:9px;min-height:47px;padding:11px 12px;outline-offset:-2px}
.sidebar nav .nav-duties summary:hover,.sidebar nav .nav-duties summary:focus-visible{background:#142139!important;border-color:#35516b!important}
.sidebar nav .nav-duties[open] summary{border-bottom-color:transparent!important}
.sidebar nav .nav-duties .nav-duty-arrow{transform:none!important;transition:transform .2s ease;font-size:19px}
.sidebar nav .nav-duties[open] .nav-duty-arrow{transform:rotate(180deg)!important}
.sidebar nav .nav-duty-items{border-left:2px solid #a21b3e!important;margin-left:16px;background:transparent!important;padding:5px 2px 6px 10px!important}
.sidebar nav .nav-duty-items .navlink{border:1px solid transparent;background:transparent}
.sidebar nav .nav-duty-items .navlink.sel{border:1px solid #ff3a5d!important;background:#152138!important}
.sidebar nav>.navlink.sel{border:1px solid #ff3456!important;background:#142033!important}
.dashboard-actions{flex-direction:row;flex-wrap:wrap;align-items:stretch;gap:12px}
.dashboard-actions .button{flex:1 1 185px;min-width:0;width:auto;padding:11px 12px}
.dashboard-control{min-height:145px!important}

/* Jedno spodní ukotvení portrétu pro všechny desktopové stránky Výcviku. */
@media(min-width:871px){
 .training-body .training-portrait,
 .training-body .training-portrait.dashboard-portrait,
 .training-body:has(.test-mode-panel) .training-portrait,
 .training-body:has(.greeting-handoff) .training-portrait{
  position:sticky!important;top:105px!important;height:calc(100dvh - 105px)!important;min-height:570px!important;
  display:block!important;align-self:start!important;overflow:visible!important;
  margin-left:0!important;padding:0!important;z-index:0!important;pointer-events:none!important;
 }
 .training-body .training-portrait>img,
 .training-body .training-portrait.dashboard-portrait>img,
 .training-body:has(.test-mode-panel) .training-portrait>img,
 .training-body:has(.greeting-handoff) .training-portrait>img{
  position:absolute!important;bottom:-43px!important;top:auto!important;left:0!important;right:0!important;
  width:100%!important;max-width:540px!important;height:min(48vh,550px)!important;
  min-height:0!important;max-height:none!important;object-fit:contain!important;object-position:center bottom!important;
  margin:0!important;flex:none!important;align-self:auto!important;pointer-events:none!important;
 }
 .training-body .training-portrait.dashboard-portrait>.osdis-status{position:relative;z-index:1;pointer-events:auto}
}
/* Společná mobilní velikost, žádné odlišné limity podle obsahu stránky. */
@media(max-width:870px){
 .training-body .training-portrait,
 .training-body .training-portrait.dashboard-portrait,
 .training-body:has(.test-mode-panel) .training-portrait,
 .training-body:has(.greeting-handoff) .training-portrait{
  position:relative!important;top:auto!important;display:flex!important;flex-direction:column!important;
  align-items:center!important;justify-content:flex-start!important;height:auto!important;min-height:0!important;
  overflow:visible!important;margin:0 0 12px!important;gap:12px!important;
 }
 .training-body .training-portrait>img,
 .training-body .training-portrait.dashboard-portrait>img,
 .training-body:has(.test-mode-panel) .training-portrait>img,
 .training-body:has(.greeting-handoff) .training-portrait>img{
  position:relative!important;bottom:auto!important;left:auto!important;flex:none!important;
  display:block!important;min-height:0!important;max-height:280px!important;height:270px!important;
  width:100%!important;max-width:350px!important;object-fit:contain!important;object-position:center bottom!important;
  margin:0!important;
 }
}
.osdis-status-head{gap:8px}
.osdis-status-headings h2{font-size:clamp(24px,2.1vw,32px)!important;white-space:normal}

/* Skutečné modální pracovní okno – uvnitř se načítá originální chráněné serverové workflow. */
.osdis-workflow-modal{position:fixed;margin:auto;width:min(960px,calc(100vw - 36px));height:min(88dvh,900px);max-width:none;max-height:none;
 background:linear-gradient(160deg,#10223b 0%,#071324 100%);color:#f4f7fe;border:1.5px solid #ff3458;border-radius:16px;
 padding:0;box-shadow:0 0 28px #e8175360,0 25px 85px #000c;overflow:hidden}
.osdis-workflow-modal::backdrop{background:#030711bb;backdrop-filter:blur(3px)}
.osdis-workflow-modal[open]{display:flex;flex-direction:column}
.workflow-modal-head{display:flex;align-items:center;justify-content:space-between;flex:none;padding:17px 22px 13px;border-bottom:1px solid #b72b49}
.workflow-modal-head h2{font-size:clamp(23px,3vw,30px);color:#ff3555;margin:0}
.workflow-modal-head [data-workflow-close]{width:43px;height:43px;border:1px solid #536b83;background:#112238;color:#fff;font-size:28px;line-height:1;padding:3px;border-radius:10px}
#workflow-modal-frame{border:0;display:block;width:100%;flex:1;min-height:0;background:#091729}
body.osdis-embedded{min-height:0;background:#091729}
body.osdis-embedded .shell{display:block;min-height:0}
body.osdis-embedded .sidebar,body.osdis-embedded .top,body.osdis-embedded .training-portrait,
body.osdis-embedded .privacy-screen{display:none!important}
body.osdis-embedded .shell main{width:100%;max-width:none;margin:0;padding:16px!important;min-width:0}
body.osdis-embedded .training-body{display:block!important;width:100%;height:auto!important;min-height:0!important}
body.osdis-embedded .training-content{width:100%;max-width:none;padding:0}
body.osdis-embedded .training-content .panel{max-width:none}
body.osdis-embedded .training-content .greeting-tiles{grid-template-columns:repeat(auto-fit,minmax(min(225px,100%),1fr))}
body.osdis-embedded .osdis-modal-wrap{position:fixed}
@media(max-width:650px){.osdis-workflow-modal{width:calc(100vw - 12px);height:calc(100dvh - 14px)}.workflow-modal-head{padding:11px 14px}body.osdis-embedded .shell main{padding:8px!important}}

/* Jednotné kompaktní Nastavení a upravitelný katalog oblečení. */
.settings-layout{display:grid;grid-template-columns:minmax(215px,275px) minmax(0,1fr);gap:13px;align-items:start}
.settings-section-nav{padding:16px!important;display:flex;flex-direction:column;gap:8px;position:sticky;top:107px}
.settings-section-nav h2{font-size:18px;margin:0 0 8px}
.settings-section-link{display:flex;gap:10px;align-items:center;min-height:47px;padding:10px 12px;border:1px solid #3b5370;border-radius:9px;
 color:#e6eefb;text-decoration:none;background:#102139;font-size:13px;font-weight:700}
.settings-section-link:hover,.settings-section-link:focus-visible{background:#1a2c45;border-color:#f13859}
.settings-section-link.selected{border-color:#ff3659;background:#a90e31;color:#fff}
.settings-section-icon{display:grid;place-items:center;flex:0 0 20px;width:20px;font-size:17px;color:#ff3659}
.settings-section-link.selected .settings-section-icon{color:#fff}
.settings-section-chevron{font-size:20px;margin-left:auto;line-height:1;color:#e3b4c1}
.settings-section-main{min-width:0}
.clothing-catalog{padding:19px 18px!important}
.catalog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;flex-wrap:wrap;margin-bottom:18px}
.catalog-heading h2{font-size:clamp(21px,2vw,27px);margin-bottom:8px}
.catalog-heading p{max-width:900px;color:#b9c8db;margin:0;font-size:13px;line-height:1.5}
.catalog-counter{white-space:nowrap;border-radius:18px;padding:5px 11px;font-size:12px;font-weight:800;border:1px solid #5a718e;background:#12233c}
.catalog-toolbar-top{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:12px}
.catalog-tabs{display:flex;gap:7px;flex-wrap:wrap}
.catalog-tab{color:#d6dfed;text-decoration:none;padding:9px 15px;background:#101f35;border:1px solid #4e5f78;border-radius:9px;font-size:13px;font-weight:800}
.catalog-tab.active{border-color:#ff3a59;background:#b31339;color:#fff}
.catalog-add{font-size:13px}
.catalog-filters{display:grid;grid-template-columns:minmax(170px,1.2fr) minmax(135px,.8fr) minmax(115px,.65fr) minmax(120px,.65fr) auto;align-items:end;gap:10px;margin-bottom:14px}
.catalog-filters label{margin:0;font-size:11px;color:#b7c5d8}
.catalog-filters input,.catalog-filters select{font-size:12px;padding:10px 8px;margin-top:4px}
.catalog-filters button{font-size:12px;padding:10px 12px}
.clothing-table{min-width:770px;width:100%;font-size:12px}
.clothing-table th{white-space:nowrap;color:#f29bb0}
.clothing-table td{vertical-align:middle;padding:9px 6px}
.clothing-table strong{color:#edf5ff}
.catalog-origin{font-size:10px;color:#90a6c1;display:block;margin-top:3px}
.catalog-sport{border-radius:7px;border:1px solid #3fc780;color:#67e4a5;padding:3px 7px;white-space:nowrap}
.catalog-state{border-color:#596778;border-radius:20px;background:#243247;font-size:11px;padding:7px 8px;white-space:nowrap}
.catalog-state.is-active{border-color:#41aa7b;background:#184334;color:#7bf0af}
.catalog-inline{display:inline-block;margin:1px 3px}
.catalog-actions{white-space:nowrap}
.catalog-edit,.catalog-delete{font-size:11px;padding:7px 9px;white-space:nowrap}
.catalog-delete{background:#361621;border-color:#bd3a57;color:#fcb4c1}
.catalog-editor{width:min(560px,calc(100vw - 25px));max-height:90vh;overflow:auto;border:1.5px solid #f7375b;border-radius:14px;
 background:linear-gradient(150deg,#10223b,#071324);color:#edf3fb;padding:21px;box-shadow:0 15px 70px #000b}
.catalog-editor::backdrop{background:#02050cbb}
.catalog-editor label{margin:12px 0}
.catalog-dialog-actions{display:flex;flex-wrap:wrap;gap:12px;justify-content:flex-end;margin-top:22px}
@media(max-width:1250px){.settings-layout{grid-template-columns:minmax(175px,220px) minmax(0,1fr)}.catalog-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.catalog-filters button{align-self:end}}
@media(max-width:970px){.settings-layout{grid-template-columns:1fr}.settings-section-nav{position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.settings-section-nav h2{grid-column:1/-1}}
@media(max-width:550px){.settings-section-nav{grid-template-columns:1fr}.catalog-filters{grid-template-columns:1fr}.catalog-filters button{width:100%}}


/* C OPRAVA 03: compact, consistent workflow dialog for the selected greeting or presence only. */
.osdis-workflow-modal{width:min(725px,calc(100vw - 24px))!important;height:auto!important;max-height:calc(100dvh - 40px)!important;min-height:0!important;
    border-radius:18px!important;box-shadow:0 0 30px #ef29484d,0 28px 95px #000b!important;background:linear-gradient(155deg,#10233c,#071323)!important}
.osdis-workflow-modal[open]{display:flex;flex-direction:column;align-items:stretch}
.osdis-workflow-modal .workflow-modal-head{padding:17px 23px 14px!important;background:#111f34;gap:16px}
.osdis-workflow-modal .workflow-modal-head h2{font-size:clamp(21px,3vw,27px)!important;line-height:1.25}
.osdis-workflow-modal .workflow-modal-head [data-workflow-close]{width:36px;height:36px;flex-shrink:0;border-radius:50%;font-size:23px}
.osdis-workflow-modal #workflow-modal-frame{flex:none!important;height:var(--osdis-workflow-height,340px);min-height:125px!important;max-height:calc(100dvh - 120px);overflow-y:auto;display:block;background:#091728}
body.osdis-embedded{background:#091728!important;min-height:0!important;height:auto!important}
body.osdis-embedded .shell,body.osdis-embedded .shell main,body.osdis-embedded .training-body,body.osdis-embedded .training-content{
    min-height:0!important;height:auto!important;max-height:none!important;overflow:visible!important}
body.osdis-embedded .shell main{padding:18px 22px 20px!important}
body.osdis-embedded .training-content{padding:0!important;margin:0!important}
body.osdis-embedded .training-content>section.panel{padding:0!important;margin:0!important;background:transparent!important;border:none!important;box-shadow:none!important}
body.osdis-embedded .training-content>section.panel>h2{display:none!important}
body.osdis-embedded .presence-actions{margin-top:12px}
body.osdis-embedded .presence-actions .row-actions{margin:0 0 20px}
body.osdis-embedded .presence-actions button[data-copy]{width:100%;max-width:none}
body.osdis-embedded .presence-confirm-form{display:flex;flex-direction:column;gap:15px}
body.osdis-embedded .presence-confirm-form button.primary{align-self:stretch;width:100%;max-width:none}
body.osdis-embedded .greeting-handoff .row-actions{display:flex;gap:12px;flex-wrap:wrap}
body.osdis-embedded .greeting-handoff .row-actions #copy-greeting{flex:1 1 240px}
body.osdis-embedded .greeting-handoff .row-actions a.button{flex:0 0 auto}
body.osdis-embedded .greeting-handoff #confirm-greeting{width:100%}
body.osdis-embedded .greeting-handoff fieldset{margin-top:0;margin-bottom:14px}
body.osdis-embedded .greeting-handoff label.check,body.osdis-embedded .presence-confirm-form label.check{font-size:16px!important;line-height:1.5}
@media(max-width:650px){.osdis-workflow-modal{width:calc(100vw - 12px)!important;max-height:calc(100dvh - 12px)!important}.osdis-workflow-modal .workflow-modal-head{padding:12px 16px!important}body.osdis-embedded .shell main{padding:14px!important}}


/* C OPRAVA 04: genuine shell-free, content-sized workflow dialog. */
.osdis-workflow-modal{
 width:min(660px,calc(100vw - 28px))!important;
 height:auto!important;min-height:0!important;
 max-height:calc(100dvh - 24px)!important;
 overflow:hidden!important;border-radius:16px!important;
 box-shadow:0 0 16px #f32c4d41,0 24px 76px #000c!important;
}
.osdis-workflow-modal[open]{display:flex!important;flex-direction:column!important}
.osdis-workflow-modal .workflow-modal-head{padding:11px 17px!important;min-height:58px}
.osdis-workflow-modal .workflow-modal-head h2{font-size:clamp(18px,2.6vw,23px)!important;line-height:1.2;margin:0}
.osdis-workflow-modal .workflow-modal-head [data-workflow-close]{width:34px;height:34px;font-size:21px}
.osdis-workflow-modal #workflow-modal-frame{
 display:block!important;flex:0 1 auto!important;width:100%!important;
 height:var(--osdis-workflow-height,180px)!important;min-height:0!important;
 max-height:calc(100dvh - 90px)!important;border:0!important;overflow:auto;
 background:#091728;
}
html:has(body.osdis-embedded){height:auto!important;min-height:0!important;overflow:auto!important}
body.osdis-embedded{height:auto!important;min-height:0!important;margin:0!important;background:#091728!important;overflow:visible!important}
body.osdis-embedded .osdis-embedded-main{
 display:block!important;position:static!important;width:100%!important;max-width:none!important;
 min-height:0!important;height:auto!important;margin:0!important;padding:15px 18px 19px!important;overflow:visible!important;
}
body.osdis-embedded .osdis-embedded-main>.training-content{
 display:block!important;width:100%!important;max-width:none!important;
 min-height:0!important;height:auto!important;margin:0!important;padding:0!important;overflow:visible!important;
}
body.osdis-embedded .training-content>section.panel{
 border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;
 margin:0!important;padding:0!important;min-height:0!important;
}
body.osdis-embedded .training-content>section.panel>h2{display:none!important}
body.osdis-embedded .greeting-handoff{margin:0!important;max-width:none!important}
body.osdis-embedded .greeting-handoff .greeting-extras{margin:2px 0 12px!important;padding:10px 12px!important}
body.osdis-embedded .greeting-handoff .greeting-extras label{margin:7px 0!important}
body.osdis-embedded .greeting-handoff .row-actions{margin:8px 0 9px!important;display:flex!important;gap:8px!important}
body.osdis-embedded .greeting-handoff .row-actions #copy-greeting{flex:1 1 220px!important}
body.osdis-embedded .greeting-handoff .row-actions a.button{display:none!important}
body.osdis-embedded .greeting-handoff #confirm-greeting{width:100%!important;min-height:43px!important}
body.osdis-embedded .greeting-handoff fieldset{margin-bottom:10px!important}
body.osdis-embedded .presence-actions{margin:3px 0!important;gap:8px!important}
body.osdis-embedded .presence-actions .row-actions{margin:0 0 6px!important}
body.osdis-embedded .presence-confirm-form{gap:9px!important}
body.osdis-embedded .presence-confirm-form button.primary{width:100%!important;min-height:43px!important}
body.osdis-embedded .presence-actions .row-actions button{min-height:43px!important}
body.osdis-embedded label.check{margin:8px 0!important}
@media(max-width:650px){
 .osdis-workflow-modal{width:calc(100vw - 12px)!important;max-height:calc(100dvh - 12px)!important}
 .osdis-workflow-modal .workflow-modal-head{min-height:52px;padding:9px 13px!important}
 body.osdis-embedded .osdis-embedded-main{padding:12px!important}
 body.osdis-embedded .greeting-handoff .grid2{grid-template-columns:1fr!important;gap:0!important}
}

/* C05 MZ-001..006: visual acceptance concept and responsive navigation */
.settings-layout.settings-layout-wide{display:block!important;width:100%;max-width:none!important}
.settings-layout-wide .settings-section-main{width:100%;min-width:0}
.sidebar{height:100dvh;min-height:0!important;position:sticky;top:0;overflow:hidden;box-sizing:border-box}
.sidebar>.brand{flex:none;padding-top:4px;padding-bottom:13px;margin-bottom:9px}
.sidebar nav{min-height:0;overflow-y:auto;overflow-x:hidden;flex:1;scrollbar-width:thin;scrollbar-color:#6a3045 transparent;padding-right:2px}
.sidebar-bottom{flex:none;padding:10px 1px 0!important;margin-top:8px!important}
.sidebar-bottom .privacy-link{width:100%;border:1px solid #f23658!important;background:linear-gradient(110deg,#24101e,#13152b)!important;justify-content:center;min-height:46px}
.sidebar nav .navlink,.sidebar nav .nav-duties summary{font-size:13px;min-height:41px;padding:9px 10px}
.sidebar nav .nav-duties .nav-duty-arrow{margin-left:auto;display:grid;place-items:center;width:27px;height:27px;flex:0 0 27px;border:1px solid #a82d4d;border-radius:50%;background:#1a1527;transform:none!important}
.sidebar nav .nav-duties .nav-duty-arrow::after{content:"";display:block;width:7px;height:7px;border-right:1.8px solid #fff;border-bottom:1.8px solid #fff;transform:translateY(-2px) rotate(45deg);transition:transform .16s}
.sidebar nav .nav-duties[open] .nav-duty-arrow::after{transform:translateY(2px) rotate(225deg)}
.sidebar nav .nav-duties[open]>summary{border:1px solid #f0365c!important;background:#142039!important}
.sidebar nav .nav-duty-items{padding:5px 0 5px 11px!important;margin-left:23px!important;border-left:1px solid #ab2847!important}
.sidebar nav .nav-duty-items .navlink{position:relative;font-size:12px!important;line-height:1.3;padding:8px 7px!important;gap:7px;min-height:35px!important}
.sidebar nav .nav-duty-items .navlink:before{content:"";position:absolute;left:-12px;top:50%;width:10px;height:1px;background:#c83456}
.sidebar nav .nav-duty-items .navlink.sel{background:#9f1135!important;border:1px solid #ff4562!important;color:#fff}
.nav-settings .nav-duty-items .nav-icon{color:#ff526c}
.clothing-table tbody tr[hidden],.catalog-no-client-results[hidden]{display:none!important}
.catalog-reset{display:inline-flex;align-items:center;justify-content:center;align-self:end;background:#a70e32;border-color:#ff4161;font-weight:750;white-space:nowrap}
.presence-back-actions{justify-content:flex-end!important;margin:7px 0 0!important}
.osdis-workflow-modal{width:min(635px,calc(100vw - 24px))!important;max-height:calc(100dvh - 28px)!important}
.osdis-workflow-modal #workflow-modal-frame{max-height:calc(100dvh - 98px)!important}
body.osdis-embedded .osdis-embedded-main{padding:11px 17px 12px!important}
body.osdis-embedded .training-content>section.panel{min-height:0!important}
body.osdis-embedded .presence-back-actions{margin:8px 0 0!important}
body.osdis-embedded .presence-back-actions .button{margin-left:auto}
body.osdis-embedded .training-portrait,body.osdis-embedded .portrait,body.osdis-embedded .sidebar,body.osdis-embedded .top{display:none!important}
@media(max-width:800px){.sidebar{position:relative;height:auto;min-height:0!important;overflow:visible}.sidebar nav{overflow:visible}.sidebar-bottom{display:flex!important}.sidebar-bottom .privacy-link{max-width:300px}}
@media(max-height:740px) and (min-width:801px){.sidebar .brand strong{font-size:28px}.sidebar .brand{padding:0 3px 8px;margin-bottom:4px}.sidebar .navlink,.sidebar nav .nav-duties summary{min-height:36px;padding:6px 9px}}

/* Uniform thin-line icons in top-level and settings navigation. */
.sidebar nav .nav-icon svg{width:21px;height:21px;display:block;stroke:#ff4263}
.sidebar nav .nav-duty-items .nav-icon svg{width:17px;height:17px}

/* C06: eliminate inherited fixed-height and sticky portrait overflow. */
.osdis-workflow-modal{height:fit-content!important;min-height:0!important;max-height:calc(100dvh - 24px)!important;padding:0!important;}
.osdis-workflow-modal[open]{display:flex!important;flex-direction:column!important;justify-content:flex-start!important;}
.osdis-workflow-modal #workflow-modal-frame{box-sizing:border-box!important;display:block!important;flex:none!important;min-height:0!important;height:var(--osdis-workflow-height,110px)!important;max-height:calc(100dvh - 95px)!important;}
body.osdis-embedded .osdis-embedded-main,body.osdis-embedded .training-content{height:max-content!important;min-height:0!important;max-height:none!important;}
@media(min-width:951px){
 .training-body .training-portrait.dashboard-portrait{position:relative!important;top:0!important;height:auto!important;min-height:0!important;max-height:calc(100dvh - 125px)!important;align-self:start!important;overflow:hidden!important;}
 .training-body .training-portrait.dashboard-portrait>img{max-height:min(49dvh,390px)!important;height:auto!important;width:auto!important;max-width:100%!important;margin:0 auto!important;object-fit:contain!important;object-position:center top!important;}
 .training-body:has(.dashboard-portrait){align-items:start!important;}
}
.catalog-reset{background:#172942!important;border:1px solid #577091!important;font-weight:400!important;border-radius:7px!important;padding:10px 15px!important;}
.catalog-reset,.catalog-filter-submit{font:inherit!important;min-height:44px!important;}
.osdis-discipline-details{display:block;font-size:11px;color:#aebed2;line-height:1.4;margin-top:7px}

/* C07 / MZ-002: one control height and one button design. */
.catalog-filters input:not([type=checkbox]),
.catalog-filters select,
.catalog-filters button,
.catalog-filters .button,
.catalog-filters .catalog-reset{
  box-sizing:border-box!important;height:45px!important;min-height:45px!important;
  max-height:45px!important;margin-top:4px!important;padding:0 12px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  border-radius:7px!important;font-size:13px!important;line-height:1.2!important;
}
.catalog-filters input:not([type=checkbox]),.catalog-filters select{display:block!important;line-height:normal!important}
.catalog-filters .catalog-reset,.catalog-filters .catalog-filter-submit{
  background:#a70e32!important;border:1px solid #ff4161!important;
  font-weight:750!important;color:white!important;text-decoration:none!important;
}
/* C07 / MZ-004: eliminate global minimum-height overflow and wasted portrait column. */
@media(min-width:801px){
 .shell:has(.training-body){grid-template-columns:245px minmax(0,1fr)!important;min-height:100dvh!important}
 .shell:has(.training-body)>.sidebar{width:245px!important;padding:10px 9px!important}
 .shell:has(.training-body)>.sidebar .nav-duty-items .navlink{white-space:nowrap!important;font-size:12px!important;letter-spacing:-.15px!important}
 .shell:has(.training-body)>main{padding:8px 14px 12px!important;max-width:none!important;margin:0!important}
 .shell:has(.training-body) .training-body{grid-template-columns:minmax(155px,clamp(175px,16vw,250px)) minmax(0,1fr)!important;gap:0!important;min-height:0!important;align-items:start!important}
 .shell:has(.training-body) .training-content{min-width:0!important;padding:0!important}
 .shell:has(.training-body) .training-portrait,
 .shell:has(.training-body) .training-portrait.dashboard-portrait{
  position:sticky!important;top:112px!important;align-self:start!important;
  height:calc(100dvh - 124px)!important;min-height:0!important;
  max-height:calc(100dvh - 124px)!important;overflow:visible!important;
  display:flex!important;flex-direction:column!important;gap:6px!important;
  padding:0!important;margin:0!important;pointer-events:none!important;
  z-index:3!important;
 }
 .shell:has(.training-body) .training-portrait>img,
 .shell:has(.training-body) .training-portrait.dashboard-portrait>img{
  display:block!important;position:absolute!important;top:auto!important;
  bottom:0!important;left:50%!important;right:auto!important;
  transform:translateX(-50%)!important;
  width:clamp(210px,22vw,345px)!important;height:auto!important;
  max-width:none!important;max-height:min(58dvh,540px)!important;
  min-height:0!important;object-fit:contain!important;object-position:center bottom!important;
  margin:0!important;opacity:1!important;visibility:visible!important;
  z-index:4!important;pointer-events:none!important;
 }
 .shell:has(.training-body) .training-portrait.dashboard-portrait .osdis-status{
  position:relative!important;flex:none!important;z-index:5!important;pointer-events:auto!important;
 }
}
@media(min-width:801px) and (max-height:750px){
 .shell:has(.training-body) .training-portrait.dashboard-portrait>img{max-height:42dvh!important}
 .shell:has(.training-body) .training-portrait.dashboard-portrait .osdis-status{padding:9px!important}
}
/* C07 / MZ-008: four inert placeholders in the same 2-column grid as duties. */
.dashboard-cards{grid-template-areas:'controls outfit' 'newtasks outfit' 'tasks outfit'!important;grid-template-rows:auto auto 1fr!important}
.dashboard-cards .dashboard-new-tasks{grid-area:newtasks!important;margin:0!important;min-height:0!important}
.dashboard-cards .dashboard-control{min-height:0!important}
.dashboard-actions.dashboard-task-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
.dashboard-actions.dashboard-task-actions button{width:100%!important;min-width:0!important;min-height:45px!important;white-space:normal!important;opacity:.65}
@media(max-width:950px){.dashboard-cards{grid-template-areas:'controls' 'newtasks' 'tasks' 'outfit'!important;grid-template-rows:auto!important}}
@media(max-width:800px){.dashboard-actions.dashboard-task-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important}}


/* C08 FINAL LAYOUT – one authoritative desktop grid.
   Avoid legacy nth-child placement, sticky min-heights and portrait overflow. */
.shell:has(.training-body){grid-template-columns:230px minmax(0,1fr)!important;min-height:100dvh!important;}
.shell:has(.training-body)>.sidebar{width:auto!important;height:100dvh!important;min-height:0!important;position:sticky!important;top:0!important;overflow:hidden!important;padding:9px 8px!important;}
.shell:has(.training-body)>.sidebar nav{min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;}
.shell:has(.training-body)>main{width:100%!important;min-width:0!important;max-width:none!important;margin:0!important;padding:8px 12px 12px!important;}
.shell:has(.training-body) .training-top{min-height:76px!important;padding:9px 15px!important;margin:0 0 10px!important;gap:12px!important;}
.shell:has(.training-body) .training-top h1{font-size:clamp(22px,2vw,28px)!important;}
.shell:has(.training-body) .training-body{display:grid!important;grid-template-columns:minmax(220px,250px) minmax(0,1fr)!important;column-gap:14px!important;align-items:start!important;min-height:0!important;height:auto!important;}
.shell:has(.training-body) .training-content{min-width:0!important;position:relative!important;z-index:1!important;padding:0!important;}
.shell:has(.training-body) .training-portrait{position:relative!important;top:auto!important;left:auto!important;align-self:stretch!important;justify-content:start!important;min-height:0!important;height:calc(100dvh - 108px)!important;max-height:none!important;overflow:visible!important;display:flex!important;flex-direction:column!important;gap:8px!important;pointer-events:none!important;z-index:0!important;margin:0!important;padding:0!important;}
.shell:has(.training-body) .training-portrait.dashboard-portrait{position:relative!important;top:auto!important;height:calc(100dvh - 108px)!important;max-height:none!important;min-height:0!important;overflow:visible!important;gap:8px!important;}
.shell:has(.training-body) .training-portrait>img,
.shell:has(.training-body) .training-portrait.dashboard-portrait>img{position:absolute!important;top:auto!important;left:50%!important;right:auto!important;bottom:0!important;transform:translateX(-50%)!important;display:block!important;width:min(320px,29vw)!important;max-width:none!important;height:auto!important;max-height:min(48dvh,440px)!important;min-height:0!important;object-fit:contain!important;object-position:center bottom!important;margin:0!important;visibility:visible!important;opacity:1!important;z-index:0!important;pointer-events:none!important;}
.shell:has(.training-body) .training-portrait.dashboard-portrait>.osdis-status{position:relative!important;z-index:1!important;flex:none!important;width:100%!important;margin:0!important;padding:12px!important;pointer-events:auto!important;}
.shell:has(.training-body) .training-portrait.dashboard-portrait .osdis-status-headings h2{font-size:clamp(17px,1.6vw,23px)!important;line-height:1.1!important;}
.shell:has(.training-body) .training-portrait.dashboard-portrait .osdis-status-head{gap:5px!important;}
.shell:has(.training-body) .training-portrait.dashboard-portrait .osdis-status-symbol{width:55px!important;max-width:55px!important;height:60px!important;max-height:60px!important;flex:0 0 55px!important;}
.shell:has(.training-body) .osdis-status-line{padding:7px 2px!important;font-size:11px!important;gap:4px!important;}
.shell:has(.training-body) .osdis-stat strong,.shell:has(.training-body) .osdis-stat b{font-size:11px!important;}
.shell:has(.training-body) .osdis-status-line.osdis-stat{grid-template-columns:minmax(0,1fr) 40px minmax(55px,.8fr)!important;gap:4px!important;}
.shell:has(.training-body) .osdis-discipline-details{font-size:9px!important;line-height:1.25!important;}
/* Dashboard: all four panels explicitly placed, independent of source order. */
.shell:has(.dashboard-portrait) .dashboard-layout{display:block!important;width:100%!important;min-width:0!important;}
.shell:has(.dashboard-portrait) .dashboard-cards{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;grid-template-areas:'controls outfit' 'newtasks outfit' 'tasks outfit'!important;grid-template-rows:auto auto auto!important;gap:12px!important;align-content:start!important;align-items:start!important;}
.shell:has(.dashboard-portrait) .dashboard-cards>.panel{min-width:0!important;min-height:0!important;height:auto!important;margin:0!important;padding:15px!important;grid-column:auto!important;grid-row:auto!important;align-self:start!important;}
.shell:has(.dashboard-portrait) .dashboard-cards>.dashboard-control{grid-area:controls!important;}
.shell:has(.dashboard-portrait) .dashboard-cards>.dashboard-new-tasks{grid-area:newtasks!important;}
.shell:has(.dashboard-portrait) .dashboard-cards>.dashboard-tasks{grid-area:tasks!important;}
.shell:has(.dashboard-portrait) .dashboard-cards>.dashboard-outfit{grid-area:outfit!important;min-height:0!important;align-self:start!important;}
.shell:has(.dashboard-portrait) .dashboard-cards h2{font-size:17px!important;margin:0 0 10px!important;}
.shell:has(.dashboard-portrait) .dashboard-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;margin:0!important;}
.shell:has(.dashboard-portrait) .dashboard-actions .button,
.shell:has(.dashboard-portrait) .dashboard-actions button{width:100%!important;min-width:0!important;min-height:39px!important;padding:9px 7px!important;font-size:11px!important;line-height:1.2!important;}
.shell:has(.dashboard-portrait) .dashboard-outfit .outfit-slot{padding:11px!important;margin:9px 0!important;}
.shell:has(.dashboard-portrait) .dashboard-task-list{margin:8px 0!important;gap:5px!important;}
.shell:has(.dashboard-portrait) .dashboard-task-row{padding:7px 8px!important;min-height:0!important;}
.shell:has(.dashboard-portrait) .dashboard-tasks p{margin:6px 0 0!important;font-size:11px!important;}
.osdis-logout{background:#b50c35!important;border:1px solid #ff4365!important;color:#fff!important;font-weight:800!important;min-height:39px!important;padding:7px 13px!important;}
.osdis-meter.low::-webkit-progress-value{background:#ed4049!important}.osdis-meter.low::-moz-progress-bar{background:#ed4049!important}
.osdis-meter.mid::-webkit-progress-value{background:#eab308!important}.osdis-meter.mid::-moz-progress-bar{background:#eab308!important}
.osdis-meter.high::-webkit-progress-value{background:#22c55e!important}.osdis-meter.high::-moz-progress-bar{background:#22c55e!important}
/* Do not hide content at compact viewport sizes: switch to a readable stack. */
@media(max-width:1150px){
 .shell:has(.training-body){grid-template-columns:205px minmax(0,1fr)!important;}
 .shell:has(.training-body) .training-body{grid-template-columns:minmax(175px,205px) minmax(0,1fr)!important;gap:10px!important;}
 .shell:has(.dashboard-portrait) .dashboard-cards{grid-template-columns:1fr!important;grid-template-areas:'controls' 'newtasks' 'tasks' 'outfit'!important;}
 .shell:has(.training-body) .training-portrait.dashboard-portrait>.osdis-status{padding:8px!important;}
 .shell:has(.training-body) .training-portrait.dashboard-portrait>img{width:220px!important;max-height:35dvh!important;}
}
@media(max-width:800px){
 .shell:has(.training-body){display:block!important;}
 .shell:has(.training-body)>.sidebar{position:relative!important;height:auto!important;min-height:0!important;overflow:visible!important;}
 .shell:has(.training-body) .training-body{display:flex!important;flex-direction:column!important;}
 .shell:has(.training-body) .training-portrait,.shell:has(.training-body) .training-portrait.dashboard-portrait{position:relative!important;height:auto!important;min-height:0!important;width:100%!important;max-height:none!important;}
 .shell:has(.training-body) .training-portrait>img,.shell:has(.training-body) .training-portrait.dashboard-portrait>img{display:none!important;}
 .shell:has(.training-body) .training-content{width:100%!important;}
 .shell:has(.dashboard-portrait) .dashboard-cards{grid-template-columns:1fr!important;grid-template-areas:'controls' 'newtasks' 'tasks' 'outfit'!important;}
}

/* C09 MZ-004/012/014/015 */
html,body{margin:0!important}
.osdis-explain-overlay{position:fixed;inset:0;z-index:1500;display:flex;align-items:center;justify-content:center;background:rgba(0,4,13,.83);padding:14px;box-sizing:border-box}
.osdis-explain-dialog{background:#0d1b30;border:1px solid #fa3156;border-radius:15px;padding:24px;width:min(710px,100%);max-height:calc(100dvh - 28px);overflow-y:auto;box-shadow:0 20px 70px #000a}
.osdis-explain-dialog h2{color:#ff375d!important;font-size:24px!important;margin:0 0 16px!important}
.osdis-explain-question{font-size:19px!important;font-weight:700!important;color:#ff456a!important;line-height:1.5!important}
.osdis-explain-form{display:grid;gap:13px}
.osdis-explain-form textarea{width:100%;min-height:115px;box-sizing:border-box}
.osdis-explain-form button{background:#ba1038!important;color:white!important;border:1px solid #ff476e!important;font-weight:800!important}
.osdis-explain-form button:disabled{background:#3c4656!important;border-color:#526175!important;color:#aeb7c9!important}
.osdis-explain-form .check{font-size:16px!important}
.presence-dialog a.button,.presence-dialog .button[href*="dashboard"],.presence-dialog [data-presence-back]{background:#b50c35!important;color:#fff!important;border-color:#ff4365!important;font-weight:800!important}

.presence-back-actions .button{background:#b50c35!important;border:1px solid #ff4365!important;color:#fff!important;font-weight:800!important}
/* C09 MZ-004: avoid a non-content footer scroll from inherited main padding. */
@media(min-width:801px){.shell:has(.training-body) main{padding-bottom:0!important}}

/* C11 compact evidence and closing workflow */
.c11-compact{background:#122037;border:1px solid #b83250;border-radius:9px;padding:14px;display:flex;gap:10px 22px;flex-wrap:wrap;margin:10px 0 14px}
.c11-review-details{border:1px solid #47536a;border-radius:8px;padding:10px 15px;margin:12px 0}
.c11-review-details summary{cursor:pointer;color:#f3475e;font-weight:700}
.c11-review-wizard{background:#101d32;border:1px solid #ba2d49;border-radius:12px;margin:12px 0;padding:18px;max-width:800px}
.c11-review-wizard[hidden],.c11-review-wizard [hidden],.osdis-explain-overlay[hidden]{display:none!important}
.c11-score-meter{width:105px;height:10px;display:inline-block;vertical-align:middle;background:#26364a;border-radius:8px;overflow:hidden;margin-right:8px}
.c11-score-meter>span{height:100%;display:block;border-radius:8px}
.c11-discipline-table th,.c11-discipline-table td{white-space:nowrap;padding:9px 12px}

/* C12: readonly historical day detail */
.c12-detail-json{white-space:pre-wrap;overflow-wrap:anywhere;max-height:350px;overflow:auto;background:#091323;padding:12px;border-radius:7px;font-size:12px;}

/* C14 – one visible review stage in a separate modal */
.c11-review-wizard:not([hidden]){position:fixed;inset:0;z-index:1450;display:flex;align-items:center;justify-content:center;box-sizing:border-box;background:rgba(0,4,13,.85);max-width:none;margin:0;padding:20px;overflow:auto;border:0;border-radius:0}
.c11-review-wizard>section:not([hidden]){width:min(680px,100%);max-height:calc(100dvh - 40px);overflow:auto;padding:26px;background:#0d1b30;border:1.5px solid #fa3156;border-radius:14px;box-shadow:0 20px 70px #000b;box-sizing:border-box}
.c11-review-wizard h3{color:#ff375d!important;margin-top:0}
.c11-review-wizard [data-review-answer-slot] textarea{width:100%;min-height:145px;box-sizing:border-box}
.c14-split-actions{display:flex!important;justify-content:space-between!important;align-items:center;margin-top:18px}
.c14-review-error{color:#ff6076;font-weight:700}
.emergency-review{border:1.5px solid #ed3155;border-radius:12px;padding:16px;margin:32px 0 10px;background:#101b2e}
.emergency-review>summary{color:#ff375d;font-weight:800;cursor:pointer}
.osdis-test-clock{display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap;max-width:330px}
.osdis-test-clock input{width:137px;min-width:0;font-size:14px;padding:6px;background:#0b1830;color:#fff;border:1px solid #445b76;border-radius:5px;box-sizing:border-box}
.osdis-test-clock input[data-test-time]{width:111px;font-size:17px;font-weight:800}
.osdis-test-clock .test-chip{width:100%;text-align:center}
.osdis-test-clock button{min-height:32px}
.c14-day-modal:not([hidden]){position:fixed;inset:0;z-index:1420;background:rgba(0,3,12,.84);display:flex;align-items:center;justify-content:center;padding:18px;box-sizing:border-box}
.c14-day-dialog{background:#081729;border:1px solid #ff3158;border-radius:14px;padding:20px;width:min(1050px,100%);max-height:calc(100dvh - 36px);overflow:auto;box-sizing:border-box;box-shadow:0 15px 60px #000c}
.c14-day-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}
.c14-day-heading h3{color:#ff365a;margin:5px 0 16px}
.c14-day-section{border:1px solid #34475e;border-radius:9px;margin:13px 0;padding:12px}
.c14-day-section h4{margin:0 0 8px;color:#ff4569}
.c14-event{display:grid;grid-template-columns:minmax(105px,180px) 1fr auto;gap:12px;padding:9px 5px;border-bottom:1px solid #243348;align-items:center}
.c14-event:last-child{border-bottom:0}
.c14-pill{border-radius:12px;padding:5px 12px;font-weight:700;text-align:center;font-size:12px;background:#344252;color:#fff}
.c14-pill.good{background:#087b32}.c14-pill.bad{background:#ae1337}.c14-pill.warn{background:#997000}
.c14-day-actions{display:flex;justify-content:space-between;gap:12px;margin-top:18px}
.c14-detail-button{border:1px solid #ef3158;border-radius:8px;color:#fff;background:transparent;padding:7px 15px;cursor:pointer}
.c14-history-table th,.c14-history-table td{padding:10px 14px}
.catalog-inline-error{display:block;color:#ff5471;font-size:13px;font-weight:700;margin:4px 0 8px}
@media(max-width:640px){.c14-day-modal{padding:0!important}.c14-day-dialog{width:100%;height:100dvh;max-height:100dvh;border-radius:0}.c14-event{grid-template-columns:1fr auto;gap:4px}.c14-event>span:first-child{grid-column:1/-1;color:#a6b7c7}}

/* C15: strictness is read from the selected world's live profile configuration. */
.osdis-strictness-low{color:#35d27a!important}
.osdis-strictness-mid{color:#f4c64e!important}
.osdis-strictness-high{color:#fa435d!important}
.osdis-strictness-unset{color:#aab7c8!important}

/* C15: final decision stays in a single, dismissible full-screen wizard step. */
.c15-complete-overlay{position:fixed;inset:0;z-index:1600;background:rgba(0,4,13,.88);display:flex;justify-content:center;align-items:center;padding:18px;box-sizing:border-box}
.c15-complete-overlay>section{background:#0d1b30;border:1.5px solid #fa3156;border-radius:14px;max-height:calc(100dvh - 36px);overflow:auto;width:min(680px,100%);padding:26px;box-sizing:border-box;box-shadow:0 20px 70px #000b}
.c15-complete-overlay h2{color:#ff375d}

/* C16: inline emergency decision within the current answer stage; original emergency close remains separate. */
.c16-emergency-decision{border:1.5px solid #e33150;border-radius:10px;padding:15px;margin-top:20px;background:#101b2e}
.c16-emergency-decision>summary{cursor:pointer;color:#fa4367;font-weight:800}
.c16-emergency-decision p{line-height:1.55;white-space:normal}
.c16-emergency-decision .check{display:flex;gap:10px;margin:15px 0}
.c16-emergency-decision button:disabled{opacity:.5;cursor:not-allowed}
[data-review-recopy]{margin-top:16px;width:100%}

/* C17 second pass: read-only/final unified review. */
.c17-final-review{color:#f4f5f9;text-align:left;max-width:100%;overflow-wrap:anywhere}
.c17-final-review h2,.c17-final-review h3{color:#ff405b;margin:16px 0 8px}
.c17-final-review h2{margin-top:0}.c17-final-review h3{border-top:1px solid #6b3347;padding-top:13px}
.c17-final-status{color:#3bd18b;font-weight:700}
.c17-final-test{font-size:.83rem;letter-spacing:.05em;color:#b8c8d9}
.c17-final-note,.c17-thanks-example{white-space:pre-wrap;background:#122137;border:1px solid #31415b;padding:12px;border-radius:7px}
.c17-final-meter{width:100%;height:13px;background:#35445a;border-radius:8px;overflow:hidden}
.c17-final-meter>span{display:block;height:100%;min-width:0;border-radius:8px}
.c17-final-thanks textarea{width:100%;box-sizing:border-box;min-height:110px;margin:9px 0;resize:vertical}
.c15-complete-overlay>section{width:min(1000px,100%)}

.c17-final-details{border:1px solid #a93049;padding:12px;margin:14px 0;border-radius:8px}
.c17-final-details summary{cursor:pointer;color:#fff;font-weight:700;text-align:center}
.c17-final-details h4{color:#ff405b;margin:12px 0 8px}
.c17-final-detail{border-bottom:1px solid #344258;padding:7px 0;margin:0}

/* C17 pass 07 – intro and review are two stages of one modal, never simultaneous. */
.c11-review-wizard [data-review-intro-stage] p{color:#fff;line-height:1.6}
.c11-review-wizard [data-review-intro-stage] .check{margin-top:18px;display:block}
[data-review-primary-open][hidden]{display:none!important}

/* C17 pass 13: last-chance backup belongs to the same modal closing sequence. */
.osdis-backup-gate{position:fixed;inset:0;z-index:1440;display:flex;align-items:center;justify-content:center;padding:20px;box-sizing:border-box;background:rgba(0,4,13,.86)}
.osdis-backup-gate[hidden]{display:none!important}
.osdis-backup-gate-panel{width:min(680px,100%);max-height:calc(100dvh - 40px);overflow:auto;padding:26px;box-sizing:border-box;background:#0d1b30;border:1.5px solid #fa3156;border-radius:14px;box-shadow:0 20px 70px #000b;color:#fff}
.osdis-backup-gate-panel strong{color:#ff375d}
.osdis-backup-gate-panel p{margin-top:16px;line-height:1.6}
.osdis-backup-gate-panel .row-actions{display:flex;gap:16px;flex-wrap:wrap;margin-top:22px}


/* C17 passes 21–23: a single dialog chrome for all MZ-014 stages */
.mz014-unified-shell:not([hidden]){position:fixed;inset:0;z-index:1800;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(0,4,13,.88);box-sizing:border-box}
.mz014-unified-shell[hidden]{display:none!important}
.mz014-unified-frame{width:min(1000px,100%);max-height:calc(100dvh - 32px);overflow-y:auto;background:#0d1b30;border:1.5px solid #fa3156;border-radius:14px;padding:24px;box-shadow:0 20px 70px #000b;box-sizing:border-box;color:#fff}
.mz014-unified-shell .mz014-stage.mz014-inactive,.mz014-unified-shell .mz014-stage[hidden]{display:none!important}
.mz014-unified-shell .mz014-stage:not([hidden]):not(.mz014-inactive){position:static!important;inset:auto!important;display:block!important;max-width:none!important;width:100%!important;max-height:none!important;overflow:visible!important;margin:0!important;padding:0!important;background:transparent!important;border:none!important;box-shadow:none!important;border-radius:0!important}
.mz014-unified-shell .mz014-stage>section:not([hidden]),.mz014-unified-shell .osdis-backup-gate-panel{position:static!important;width:100%!important;max-width:none!important;max-height:none!important;overflow:visible!important;padding:0!important;margin:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
.mz014-unified-shell .mz014-stage>section[hidden]{display:none!important}
.mz014-unified-shell h2,.mz014-unified-shell h3{color:#ff405b}
@media(max-width:600px){.mz014-unified-shell:not([hidden]){padding:8px}.mz014-unified-frame{padding:16px;max-height:calc(100dvh - 16px)}}

/* C17 27: evening handoff shares the final MZ-014 modal frame. */
.mz014-unified-shell dialog.osdis-workflow-modal.mz014-handoff{position:static!important;inset:auto!important;width:100%!important;max-width:none!important;margin:0!important;max-height:calc(100dvh - 72px);border:0!important;box-shadow:none!important;background:transparent!important;padding:0!important}

/* C18 – approved review/evidence presentation; no new prompts or workflows. */
.c18-backup-confirmed{border:1px solid #2e9e65!important;background:#102f27!important;color:#70efa7!important;padding:12px 16px!important;border-radius:8px!important;font-weight:800}
.c18-thanks-instruction{color:#ff3b60!important;font-size:19px!important;font-weight:800!important;line-height:1.5}
.c18-strict-line{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.c18-strict-tag{display:inline-flex;align-items:center;justify-content:center;min-width:76px;min-height:25px;padding:2px 7px;box-sizing:border-box;border-radius:7px;font-size:12px;font-weight:800;text-align:center;white-space:nowrap}
.c18-strict-low{background:#125436;color:#85f3b6}.c18-strict-mid{background:#704611;color:#ffe0a0}.c18-strict-high{background:#78203a;color:#ffc3d2}
.c18-summary-row{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:10px 0;line-height:1.5}
.c18-summary-row>strong{margin-right:5px}.c18-summary-stat{display:inline-flex;align-items:center;gap:5px}
.c18-summary-row .c14-pill{display:inline-block;min-width:24px;padding:2px 8px}
.c18-summary-denom{color:#c8d4e5;margin-left:-5px}
.c18-detail-row{display:grid;grid-template-columns:minmax(115px,190px) minmax(0,1fr) auto;gap:12px;align-items:center;border-bottom:1px solid #344258;padding:10px 4px}
.c18-detail-row:last-of-type{border-bottom:0}.c18-detail-when{color:#becbdd;font-size:13px}
.c18-detail-row>.c14-pill{min-width:92px;justify-self:end}
.c17-final-meter>span{width:var(--meter-width,100%);height:100%;display:block!important;border-radius:8px!important}
.c14-day-modal .c18-evidence-action,.c14-day-modal .c18-close-button,.c14-history-table .c18-evidence-action{display:inline-flex;align-items:center;justify-content:center;min-height:39px;min-width:115px;padding:9px 15px;background:#b51039!important;border:1px solid #ff456b!important;border-radius:8px;color:#fff!important;font-size:13px;font-weight:800;text-decoration:none;cursor:pointer;box-sizing:border-box}
.c14-day-modal .c18-evidence-action:hover,.c14-day-modal .c18-close-button:hover,.c14-history-table .c18-evidence-action:hover{background:#d31948!important}
.c14-history-table .c18-evidence-action{min-width:0}.c18-obedience{color:#39d88c}
@media(max-width:680px){.c18-detail-row{grid-template-columns:minmax(0,1fr) auto;gap:5px}.c18-detail-when{grid-column:1/-1}.c18-summary-row{gap:6px}.c18-thanks-instruction{font-size:17px!important}}

/* Real native progress bars: compatible with style-src self CSP. */
.c18-native-meter{display:block;appearance:none;-webkit-appearance:none;width:100%;height:13px;border:0;border-radius:10px;overflow:hidden;background:#35445a;color:#21a568}
.c18-native-meter::-webkit-progress-bar{background:#35445a;border-radius:10px}
.c18-native-meter::-webkit-progress-value{background:#21a568;border-radius:10px}
.c18-native-meter::-moz-progress-bar{background:#21a568;border-radius:10px}
.c18-table-meter{display:inline-block;vertical-align:middle;width:100px;height:10px;margin-right:8px}
/* Evidence: match the three score bands used by TVŮJ STATUS. */
.c18-table-meter.low::-webkit-progress-value{background:#ed4049}.c18-table-meter.low::-moz-progress-bar{background:#ed4049}
.c18-table-meter.mid::-webkit-progress-value{background:#eab308}.c18-table-meter.mid::-moz-progress-bar{background:#eab308}
.c18-table-meter.high::-webkit-progress-value{background:#22c55e}.c18-table-meter.high::-moz-progress-bar{background:#22c55e}
.c18-table-score.low{color:#ed4049}.c18-table-score.mid{color:#eab308}.c18-table-score.high{color:#22c55e}


/* C18 R04: consistent approved typography across closing wizard steps, not controls. */
.mz014-unified-shell .night-intro p,
.mz014-unified-shell .night-intro li,
.mz014-unified-shell .night-intro h3,
.mz014-unified-shell .night-intro .check,
.mz014-unified-shell [data-review-intro-stage] p,
.mz014-unified-shell [data-review-intro-stage] .check,
.mz014-unified-shell [data-review-combined-stage] p,
.mz014-unified-shell .osdis-backup-gate-panel p,
.mz014-unified-shell .osdis-backup-overlay p,
.mz014-unified-shell .osdis-explain-question,
.mz014-unified-shell .osdis-explain-dialog label,
.mz014-unified-shell .osdis-explain-dialog .check,
.mz014-unified-shell .osdis-inline-explain-form label,
.mz014-unified-shell .osdis-inline-explain-form .check {font-size:20px!important;font-weight:800!important;line-height:1.55!important;}

/* CH-015: backup exit controls follow the shared left/right modal layout. */
[data-backup-overlay] .c14-split-actions{display:flex!important;flex-wrap:wrap;justify-content:space-between!important;align-items:flex-end;gap:14px;width:100%;}
[data-backup-overlay] .osdis-backup-cancel{flex:1 1 380px;min-width:0;}
[data-backup-overlay] [data-backup-continue]{margin-left:auto;align-self:flex-end;}

/* Approved C18 JSON answer field typography; do not change explanatory text or textarea height. */
.c11-review-wizard [data-review-answer-slot] textarea,
.osdis-explain-overlay textarea[data-inline-review-answer],
textarea#review-answer[name="review_answer"] {font-family:ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace!important;font-size:12px!important;font-weight:400!important;line-height:1.45!important;}

/* C18 dashboard: daily backup shown within the existing task sections. */
.dashboard-task-list .dashboard-task-item{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;align-items:center;gap:14px;padding:10px 12px;background:#102039;border:1px solid #5b728f;border-radius:8px;min-width:0;margin:0 0 12px}
.dashboard-task-item .dashboard-task-title{color:#f4f7ff;font-size:14px;font-weight:800;min-width:0;overflow-wrap:anywhere}
.dashboard-task-required{display:inline-flex;align-items:center;justify-content:center;padding:7px 11px;border-radius:7px;background:#c41343;border:1px solid #f53b69;color:#fff;font-size:12px;font-weight:800;white-space:nowrap}
.dashboard-task-all-day{display:inline-flex;align-items:center;justify-content:center;padding:7px 13px;border:1px solid #36aeff;border-radius:7px;background:#102b48;box-shadow:inset 0 0 0 1px #194c81;color:#9fd6ff;font-size:12px;font-weight:800;white-space:nowrap}
.dashboard-task-item .dashboard-task-complete{display:inline-flex!important;justify-content:center;align-items:center;margin:0;padding:8px 17px!important;width:auto!important;min-width:90px;background:#13a63b!important;border:1px solid #2ddd67!important;border-radius:7px;color:#fff!important;font-size:12px!important;font-weight:800;text-decoration:none;opacity:1!important}
.dashboard-task-item .dashboard-task-complete:hover,.dashboard-task-item .dashboard-task-complete:focus-visible{background:#087e2c!important;border-color:#5ef18a!important}
.dashboard-task-finished{display:inline-flex;align-items:center;justify-content:center;min-width:90px;padding:8px 12px;background:#103c31;border:1px solid #21a879;border-radius:7px;color:#40e5aa;font-size:12px;font-weight:800}
.dashboard-task-item-done{border-color:#28795d}
/* ZM-19/11: terminal failure is a non-interactive red status, not a second attempt. */
/* ZM-19/11: explicit combined selector beats the green completed status. */
.dashboard-task-item .dashboard-task-finished.dashboard-task-failed{background:#a70f32!important;border-color:#ed3659!important;color:#fff!important}
.dashboard-task-item:has(.dashboard-task-failed){border-color:#9d3145}
@media(max-width:740px){.dashboard-task-list .dashboard-task-item{grid-template-columns:minmax(0,1fr) auto;gap:9px}.dashboard-task-title{grid-column:1/-1}.dashboard-task-item .dashboard-task-complete,.dashboard-task-item .dashboard-task-finished{justify-self:end}}

/* Evening closure: approved progressive acceptance, no new visual vocabulary. */
.c15-complete-overlay .osdis-ceremony-strong{font-size:18px;font-weight:750;line-height:1.6}
.c15-complete-overlay [data-final-preparation-text] p,
.c15-complete-overlay .osdis-ceremony-last p{font-size:18px;line-height:1.65;color:#f4f5f9}
.c15-complete-overlay [data-final-preparation-text],
.c15-complete-overlay [data-final-position-release],
.c15-complete-overlay [data-final-thanks-block]{margin-top:18px}
.c15-complete-overlay [data-final-prepare] .check,
.c15-complete-overlay [data-final-assessment-accept] .check,
.c15-complete-overlay .osdis-ceremony-last .check{font-size:17px;font-weight:600;margin:17px 0;display:block}
.c15-complete-overlay [data-final-prepare] h2,
.c15-complete-overlay .osdis-ceremony-last h2{color:#ff405b}
.c15-complete-overlay [data-final-assessment-accept]{margin-top:22px}
.c15-complete-overlay [data-final-thanks-form] textarea{width:100%;min-height:115px}


/* OSDIS evening review preparation: approved typography adjustment. */
.c15-complete-overlay [data-final-prepare] .osdis-ceremony-strong,
.c15-complete-overlay [data-final-preparation-text] p {
  color:#fff;
  font-size:20px;
  font-weight:800;
  line-height:1.6;
}
.c15-complete-overlay [data-final-prepare] .check {
  color:#ff365c;
  font-size:20px;
  font-weight:800;
  line-height:1.5;
}


/* OSDIS OPRAVA 05: approved visual adjustments only. */
/* 1. Preparation: white bold 20px instructions; red bold 20px confirmations. */
.c15-complete-overlay [data-final-prepare] .osdis-ceremony-strong,
.c15-complete-overlay [data-final-preparation-text] p{
  color:#fff!important;font-size:20px!important;font-weight:800!important;line-height:1.6!important;
}
.c15-complete-overlay [data-final-prepare] label.check{
  color:#ff365c!important;font-size:20px!important;font-weight:800!important;line-height:1.5!important;
}
/* 2. The Pán's evaluation note in the final review. */
.c15-complete-overlay .c17-final-review .c17-final-note{
  color:#fff!important;font-size:20px!important;font-weight:800!important;line-height:1.6!important;
}
/* 3. A separator after the punishments section and before agreement checkbox. */
.c15-complete-overlay .c17-final-review [data-final-assessment-accept]{
  border-top:1px solid #6b3347;padding-top:15px;margin-top:20px;
}
/* 4. Closing speech in white, bold, larger; both confirmation labels red. */
.c15-complete-overlay .osdis-ceremony-last > p,
.c15-complete-overlay .osdis-ceremony-last > .osdis-ceremony-strong,
.c15-complete-overlay [data-final-position-release] > p{
  color:#fff!important;font-size:20px!important;font-weight:800!important;line-height:1.6!important;
}
.c15-complete-overlay .osdis-ceremony-last label.check{
  color:#ff365c!important;font-size:20px!important;font-weight:800!important;line-height:1.5!important;
}
/* 5. Finish button aligned right under the thanks field. */
.c15-complete-overlay [data-final-thanks-block] button[data-thanks-submit]{
  display:block;margin-left:auto;margin-right:0;
}
/* 6. Thank-you header and instructions: approved new heading and white bold 18px instruction. */
.c15-complete-overlay [data-final-thanks-block] > h3{
  color:#ff365c!important;font-size:20px!important;font-weight:800!important;line-height:1.45!important;
}
.c15-complete-overlay [data-final-thanks-block] > .c18-thanks-instruction{
  color:#fff!important;font-size:18px!important;font-weight:800!important;line-height:1.5!important;
}

/* OSDIS OPRAVA 06: approved right alignment of final preparation button. */
.c15-complete-overlay [data-final-prepare] .osdis-ceremony-actions{display:flex!important;justify-content:flex-end!important;}

.osdis-account-wizard-actions{display:flex;justify-content:flex-end;gap:12px;}

/* U02 – new-world wizard (isolated selectors) */
.worlds-overview.u02-overview-empty{display:block!important;min-height:400px}.worlds-overview.u02-overview-empty .worlds-overview-panel{max-width:100%;min-height:390px}
.u02-world-add{display:flex;justify-content:flex-end;margin-top:18px}
.u02-world-add.u02-empty{min-height:230px;align-items:center;justify-content:center}
.u02-world-add .button{min-width:210px;text-align:center}
.u02-create-layout{max-width:900px;margin:0 auto}
.u02-create-panel{border:1px solid #a82436}
.u02-create-panel h2{color:#eb4556}
.u02-step fieldset{border:0;padding:0;margin:16px 0}
.u02-step legend{font-weight:700;margin-bottom:10px}
.u02-step fieldset label{display:inline-flex;align-items:center;gap:8px;margin:0 24px 8px 0}
.u02-name{display:block;max-width:500px;margin:20px 0}
.u02-name input{display:block;width:100%;margin-top:8px}
.u02-actions{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:26px}
.u02-actions button.primary{background:#af1f37;color:#fff;border-color:#fff;min-width:158px}
.u02-actions button.primary:disabled{opacity:.45}
.u02-info{margin:4px 0 18px}
.u02-level{border:1px solid #80303b;border-radius:10px;padding:14px;margin:10px 0;display:flex;align-items:center;justify-content:space-between;gap:12px}
.u02-level:has(input:checked){border:2px solid #dc2e45}
.u02-level label{display:flex;align-items:center;gap:12px;flex:1;cursor:pointer}
.u02-level label span{display:flex;flex-direction:column;gap:5px}
.u02-level small{opacity:.8}
.u02-level .button{white-space:nowrap}
.u02-conclusion{text-align:center;color:#ec4255;font-weight:600;margin:26px 0 12px}
.u02-conclusion p{margin:9px auto}
.u02-address{font-weight:700}
.u02-overlay[hidden],.u02-step[hidden]{display:none!important}
.u02-overlay{position:fixed;inset:0;background:#000b;z-index:900;display:flex;align-items:center;justify-content:center;padding:20px}
.u02-dialog{background:#101924;border:1px solid #b9283f;border-radius:13px;max-width:680px;width:100%;max-height:85vh;overflow-y:auto;padding:24px;color:#fff;box-shadow:0 20px 80px #000a}
.u02-dialog h3{color:#ed4758}
.u02-dialog-content{white-space:pre-line;line-height:1.6;max-height:62vh;overflow-y:auto}
@media(max-width:580px){.u02-level{flex-wrap:wrap}.u02-level .button{margin-left:auto}.u02-create-panel{padding:14px}.u02-dialog{padding:15px}}

/* U02 VISUAL 01 – typografie a navigace průvodce; bez změny textů či logiky. */
.u02-create-layout{width:100%;max-width:1100px;margin:0 auto}
.u02-create-panel{padding:clamp(22px,3vw,42px)}
.u02-create-panel h2{font-size:clamp(24px,2.1vw,30px);line-height:1.25;margin:0 0 24px}
.u02-create-panel .u02-step h3{font-size:clamp(20px,1.6vw,24px);line-height:1.35;margin:0 0 20px}
.u02-create-panel .u02-step{font-size:18px;line-height:1.55}
.u02-create-panel .u02-step fieldset{padding:16px 20px;margin:22px 0;border:1px solid #3e546d;border-radius:8px}
.u02-create-panel .u02-step legend{font-size:19px;padding:0 9px;margin:0 0 8px;font-weight:700}
.u02-create-panel .u02-step fieldset label{display:flex;align-items:center;gap:12px;margin:10px 0;font-size:18px;min-height:30px;width:fit-content;cursor:pointer}
.u02-create-panel .u02-step input[type="radio"]{width:18px;height:18px;accent-color:#ce2141;flex:none}
.u02-create-panel .u02-name{font-size:19px;font-weight:700;max-width:680px;margin:26px 0}
.u02-create-panel .u02-name input{margin-top:10px;min-height:52px;font-size:20px;padding:12px 14px}
.u02-create-panel .u02-step[data-u02-step="1"]{display:flex;flex-direction:column;min-height:clamp(545px,68vh,730px)}
.u02-create-panel .u02-step[data-u02-step="1"] .u02-actions{margin-top:auto!important;padding-top:38px}
.u02-create-panel .u02-actions{display:flex!important;align-items:center;justify-content:space-between!important;gap:20px;width:100%;padding-bottom:8px}
.u02-create-panel .u02-actions > :last-child{margin-left:auto!important}
.u02-create-panel .u02-actions button,.u02-create-panel .u02-actions a{min-height:50px;padding:11px 22px;font-size:17px}
.u02-create-panel .u02-step[data-u02-step="2"] .u02-actions{margin-top:38px;padding-top:24px}
@media(max-width:580px){
 .u02-create-panel{padding:20px 16px}
 .u02-create-panel .u02-step[data-u02-step="1"]{min-height:510px}
 .u02-create-panel .u02-step fieldset{padding:12px 14px}
 .u02-create-panel .u02-name input{font-size:18px}
 .u02-create-panel .u02-actions button,.u02-create-panel .u02-actions a{padding:10px 14px;font-size:15px}
}

/* U02-05: world-list deactivation button and training-style confirmation dialog. */
.worlds-overview-list .u02-world-tile{position:relative;padding-right:148px;min-height:125px}
.worlds-overview-list .u02-world-tile .u02-world-remove{position:absolute;right:14px;top:12px;width:auto;min-width:116px;padding:9px 12px;background:#a91b35;color:#fff;border:1px solid #e04961;font-size:14px;font-weight:750;line-height:1.2}
.u02-remove-overlay[hidden]{display:none!important}
.u02-remove-overlay{position:fixed;inset:0;z-index:1200;background:#000b;display:flex;align-items:center;justify-content:center;padding:20px}
.u02-remove-dialog{background:#101924;color:#fff;border:1px solid #c52b45;border-radius:12px;box-shadow:0 20px 75px #000c;padding:25px 28px;width:100%;max-width:470px}
.u02-remove-dialog h3{color:#f14760;font-size:25px;margin:0 0 18px}
.u02-remove-dialog p{font-size:19px;line-height:1.55;margin:0 0 26px;overflow-wrap:anywhere}
.u02-remove-actions{display:flex;justify-content:space-between;gap:22px;border-top:1px solid #35445e;padding-top:20px}
.u02-remove-actions button{min-width:110px;min-height:43px}
.u02-remove-actions .primary{background:#ae1939;border-color:#ee4c64;color:white;font-weight:800;margin-left:auto}
@media(max-width:600px){.worlds-overview-list .u02-world-tile{padding-right:14px;padding-top:65px}.worlds-overview-list .u02-world-tile .u02-world-remove{right:12px;top:10px;width:auto;min-width:110px}.u02-remove-dialog{padding:20px}.u02-remove-dialog p{font-size:17px}}

/* U02-06: strong placement/style fix for ODSTRANIT button in world cards. */
.worlds-overview-list .u02-world-tile{
  position:relative !important;
  display:block;
  padding:18px 180px 18px 18px !important;
  min-height:130px;
}
.worlds-overview-list .u02-world-tile .u02-world-main{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:12px;
  max-width:100%;
}
.worlds-overview-list .u02-world-tile .u02-world-remove,
.worlds-overview-list .tile.u02-world-tile .u02-world-remove,
.u02-world-tile > .u02-world-remove{
  position:absolute !important;
  top:18px !important;
  right:18px !important;
  left:auto !important;
  bottom:auto !important;
  margin:0 !important;
  width:auto !important;
  min-width:132px;
  min-height:44px;
  padding:10px 16px !important;
  background:#c9143f !important;
  color:#ffffff !important;
  border:1px solid #ff5a7e !important;
  box-shadow:none !important;
  font-size:15px !important;
  font-weight:800 !important;
  line-height:1.2;
  text-transform:none;
  z-index:2;
}
.worlds-overview-list .u02-world-tile .u02-world-remove:hover,
.worlds-overview-list .u02-world-tile .u02-world-remove:focus-visible{
  background:#de1a4a !important;
  border-color:#ff7894 !important;
  color:#ffffff !important;
}
@media (max-width: 720px){
  .worlds-overview-list .u02-world-tile{
    padding:74px 14px 16px 14px !important;
    min-height:unset;
  }
  .worlds-overview-list .u02-world-tile .u02-world-remove{
    top:14px !important;
    right:14px !important;
    min-width:122px;
  }
}

/* ZM-19/23 – oprava 08: původní umístění záhlaví v levém panelu. */
.sidebar .training-brand{text-align:center}
.sidebar .training-brand strong{font-size:clamp(30px,2.6vw,37px);letter-spacing:.04em}
.sidebar .training-brand span{font-size:12px;font-weight:800;margin-top:6px;line-height:1.25;color:#fff}
.sidebar .training-brand small{display:block;font-size:9px;font-weight:800;line-height:1.3;margin-top:4px;color:#ff3659;letter-spacing:.035em}
.osdis-late-morning-wrap{z-index:100200}
.osdis-late-morning-wrap .osdis-dialog form{display:flex;justify-content:flex-end}

/* ZM-19/26 and ZM-19/27 */
.zm19-mobile-strip{display:none}
.zm19-privacy-dialog{width:min(520px,calc(100vw - 30px));max-height:calc(100dvh - 36px);overflow:auto;border:1px solid #bc1641;border-radius:14px;background:#0b1628;color:white;padding:24px;box-shadow:0 14px 55px #000b;box-sizing:border-box}
.zm19-privacy-dialog::backdrop{background:rgba(0,0,0,.83)}
.zm19-privacy-dialog h2{color:#ff3659;margin:0 0 18px;font-size:20px}
.zm19-privacy-dialog p{font-size:17px;line-height:1.5}
.zm19-privacy-check{display:flex;gap:9px;align-items:flex-start;font-size:16px;margin:18px 0}
.zm19-privacy-check input{margin-top:5px;flex-shrink:0}
.zm19-privacy-actions{display:flex;justify-content:space-between;gap:12px}
.zm19-privacy-actions button{min-width:120px;padding:10px;border-radius:6px}
@media(max-width:800px){
  .shell:has(.training-body){display:flex!important;flex-direction:column!important;gap:0!important;min-width:0!important}
  .shell:has(.training-body)>.sidebar{width:100%!important;padding:4px 6px!important;border-right:0!important;background:#081427!important;position:relative!important}
  .shell:has(.training-body) .sidebar>.brand{display:none!important}
  .shell:has(.training-body) .sidebar>.sidebar-bottom{display:none!important}
  .shell:has(.training-body) .sidebar>nav{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:3px!important;margin:0!important}
  .shell:has(.training-body) .sidebar>nav>.navlink,.shell:has(.training-body) .sidebar>nav>details>summary{min-width:0!important;min-height:38px!important;padding:5px 2px!important;border-radius:6px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:2px!important;font-size:clamp(9px,2.4vw,12px)!important;text-align:center!important;white-space:normal!important}
  .shell:has(.training-body) .sidebar>nav .nav-icon{display:none!important}
  .shell:has(.training-body) .sidebar>nav>details{min-width:0;position:relative!important}
  .shell:has(.training-body) .sidebar>nav>details .nav-duty-arrow{display:none!important}
  .shell:has(.training-body) .sidebar>nav>details>.nav-duty-items{position:absolute!important;top:100%;left:0;width:max(165px,45vw)!important;z-index:80;background:#0c1930;border:1px solid #ad2144;border-radius:8px;padding:6px;box-shadow:0 12px 30px #0009}
  .shell:has(.training-body) .sidebar>nav>details:last-child>.nav-duty-items{left:auto;right:0}
  .shell:has(.training-body)>main{padding:4px 6px!important;min-width:0!important}
  .shell:has(.training-body) .training-top{display:block!important;padding:0!important;margin:0 0 6px!important;min-height:0!important}
  .shell:has(.training-body) .training-top>div:not(.zm19-mobile-strip){display:none!important}
  .shell:has(.training-body) .zm19-mobile-strip{display:grid!important;grid-template-columns:auto auto minmax(42px,1fr) minmax(68px,1.2fr) auto;align-items:center;gap:clamp(2px,.6vw,7px);width:100%;padding:6px 4px;background:#081427;border:1px solid #a91a3d;border-radius:8px;box-sizing:border-box;min-height:42px}
  .zm19-mobile-strip>strong{font-size:clamp(10px,2.8vw,15px);font-weight:900;white-space:nowrap;color:#fff}
  .zm19-mobile-strip>strong:nth-child(2){color:#ff3659}
  .zm19-mobile-strip [data-zm19-clock]{text-align:center;min-width:0}
  .zm19-mobile-strip .live-clock{display:flex!important;flex-direction:column!important;gap:0!important;margin:0!important;padding:0!important;min-height:0!important;white-space:normal!important}
  .zm19-mobile-strip .live-clock [data-current-date]{display:none!important}
  .zm19-mobile-strip .live-clock [data-current-time]{font-size:clamp(11px,3vw,16px)!important}
  .zm19-mobile-strip .osdis-test-clock{display:flex!important;flex-wrap:wrap;justify-content:center;gap:1px}
  .zm19-mobile-strip .osdis-test-clock input{max-width:100%;width:74px;font-size:10px;padding:1px}
  .zm19-mobile-strip .osdis-test-clock .test-chip{display:none}
  .zm19-mobile-strip .osdis-test-clock button{font-size:9px;padding:2px}
  .zm19-mobile-strip [data-zm19-world]{min-width:0}
  .zm19-mobile-strip .world-switch,.zm19-mobile-strip .world-switch label{display:block!important;min-width:0!important;margin:0!important;padding:0!important;font-size:0!important}
  .zm19-mobile-strip .world-switch select{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;padding:4px 1px!important;font-size:clamp(9px,2.5vw,12px)!important}
  .zm19-mobile-strip .osdis-logout{font-size:clamp(9px,2.4vw,11px)!important;padding:6px 3px!important;min-width:0!important}
  .shell:has(.training-body) .training-portrait>img,.shell:has(.training-body) .training-portrait.dashboard-portrait>img{display:block!important;position:relative!important;visibility:visible!important;margin:4px auto!important;width:auto!important;max-width:100%!important;height:auto!important;max-height:min(30dvh,210px)!important;object-fit:contain!important}
  .shell:has(.training-body) .training-portrait.dashboard-portrait{display:flex!important;flex-direction:column!important;align-items:center!important;gap:3px!important}
}

/* ZM-19/30 + ZM-19/31 — OPRAVA 11: mobile-only training dashboard adjustments.
   Keep the desktop arrangement and all task/greeting logic unchanged. */
@media (max-width:800px) {
  /* Make the navigation dropdown a foreground overlay instead of allowing the
     following main content to paint over it. Do not clip the popover. */
  .shell:has(.training-body) > .sidebar {
    z-index:1200!important;
    isolation:isolate;
    overflow:visible!important;
  }
  .shell:has(.training-body) > .sidebar > nav {
    position:relative!important;
    z-index:1201!important;
    overflow:visible!important;
    max-height:none!important;
  }
  .shell:has(.training-body) > .sidebar > nav > details {
    position:relative!important;
    z-index:1;
  }
  .shell:has(.training-body) > .sidebar > nav > details[open] {
    z-index:1202!important;
  }
  .shell:has(.training-body) > .sidebar > nav > details[open] > .nav-duty-items {
    display:flex!important;
    flex-direction:column!important;
    position:absolute!important;
    top:calc(100% + 5px)!important;
    left:0!important;
    right:auto!important;
    z-index:1203!important;
    width:min(270px,calc(100vw - 24px))!important;
    min-width:190px!important;
    max-width:calc(100vw - 24px)!important;
    max-height:min(55dvh,420px)!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    margin:0!important;
    padding:8px!important;
    border:1px solid #ed3457!important;
    border-radius:9px!important;
    background:#0e1c34!important;
    box-shadow:0 14px 36px rgba(0,0,0,.85)!important;
    box-sizing:border-box!important;
  }
  .shell:has(.training-body) > .sidebar > nav > details.nav-settings[open] > .nav-duty-items {
    left:auto!important;
    right:0!important;
  }
  .shell:has(.training-body) > .sidebar > nav > details[open] > .nav-duty-items .navlink {
    display:flex!important;
    width:100%!important;
    min-height:40px!important;
    justify-content:flex-start!important;
    font-size:13px!important;
    line-height:1.25!important;
    white-space:normal!important;
  }
  .shell:has(.training-body) > main {
    position:relative!important;
    z-index:0!important;
  }

  /* The dashboard status and visible portrait are one centered, compact block.
     The next section (POVINNOSTI) begins only after the portrait. */
  .shell:has(.training-body) .training-portrait.dashboard-portrait {
    display:flex!important;
    position:relative!important;
    top:auto!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    margin:0!important;
    padding:0!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:5px!important;
    overflow:visible!important;
  }
  .shell:has(.training-body) .training-portrait.dashboard-portrait > .osdis-status {
    width:100%!important;
    flex:none!important;
    box-sizing:border-box!important;
    margin:0!important;
  }
  .shell:has(.training-body) .training-portrait.dashboard-portrait > img {
    display:block!important;
    position:relative!important;
    top:auto!important;
    right:auto!important;
    bottom:auto!important;
    left:auto!important;
    transform:none!important;
    flex:none!important;
    align-self:center!important;
    width:auto!important;
    height:auto!important;
    max-width:min(95%,390px)!important;
    max-height:clamp(225px,36dvh,330px)!important;
    margin:4px auto 7px!important;
    object-fit:contain!important;
    object-position:center center!important;
    visibility:visible!important;
    opacity:1!important;
  }
  .shell:has(.training-body) .training-portrait.dashboard-portrait + .training-content {
    margin-top:0!important;
  }
}

/* ZM-19/32 A-D – OPRAVA 12. Only compact training dashboard displays. */
@media (max-width:800px) {
 /* Reduce status header height and remove the redundant circular symbol. */
 .shell:has(.dashboard-portrait) .osdis-status-symbol {display:none!important;}
 .shell:has(.dashboard-portrait) .osdis-status {padding:9px 12px 7px!important;max-width:none!important;}
 .shell:has(.dashboard-portrait) .osdis-status-head {min-height:0!important;padding:2px 0 7px!important;gap:0!important;}
 .shell:has(.dashboard-portrait) .osdis-status-headings h2 {font-size:clamp(18px,4.4vw,23px)!important;margin:0!important;line-height:1.15!important;}
 .shell:has(.dashboard-portrait) .osdis-status-content {margin-top:3px!important;}
 .shell:has(.dashboard-portrait) .osdis-status-line {padding:5px 2px!important;min-height:30px!important;line-height:1.25!important;}
 .shell:has(.dashboard-portrait) .osdis-status-authority {padding:5px 7px!important;}
 .shell:has(.dashboard-portrait) .training-portrait.dashboard-portrait {gap:2px!important;}
 /* The character is centered and larger without clipping or overlaying content. */
 .shell:has(.dashboard-portrait) .training-portrait.dashboard-portrait>img {
    display:block!important;position:relative!important;left:auto!important;right:auto!important;bottom:auto!important;top:auto!important;
    transform:none!important;width:auto!important;max-width:100%!important;height:auto!important;
    max-height:min(46dvh,410px)!important;object-fit:contain!important;object-position:center bottom!important;
    margin:1px auto 6px!important;align-self:center!important;
 }
 /* Every task occupies a single horizontal row; badges never force a new line. */
 .shell:has(.dashboard-portrait) .dashboard-task-list .dashboard-task-item,
 .shell:has(.dashboard-portrait) .dashboard-task-list .dashboard-task-item.osdis-task-fixed-layout {
    display:grid!important;grid-template-columns:minmax(0,1fr) auto auto auto!important;
    align-items:center!important;gap:clamp(3px,.7vw,7px)!important;padding:9px 7px!important;min-width:0!important;
 }
 .shell:has(.dashboard-portrait) .dashboard-task-item .dashboard-task-title {
    grid-column:auto!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;
    white-space:nowrap!important;word-break:normal!important;font-size:clamp(10px,2.75vw,13px)!important;line-height:1.2!important;
 }
 .shell:has(.dashboard-portrait) .dashboard-task-item .dashboard-task-required,
 .shell:has(.dashboard-portrait) .dashboard-task-item .dashboard-task-all-day,
 .shell:has(.dashboard-portrait) .dashboard-task-item .dashboard-task-finished,
 .shell:has(.dashboard-portrait) .dashboard-task-item .dashboard-task-complete {
    grid-column:auto!important;justify-self:stretch!important;min-width:0!important;
    padding:6px 4px!important;font-size:clamp(8px,2vw,11px)!important;line-height:1.1!important;
    white-space:nowrap!important;letter-spacing:-.15px!important;
 }
 .shell:has(.dashboard-portrait) .dashboard-task-item .dashboard-task-complete,
 .shell:has(.dashboard-portrait) .dashboard-task-item .dashboard-task-finished {min-width:55px!important;}
 .shell:has(.dashboard-portrait) .dashboard-task-item .dashboard-task-required,
 .shell:has(.dashboard-portrait) .dashboard-task-item .dashboard-task-all-day {min-width:44px!important;}
}
@media(max-width:380px) {
 .shell:has(.dashboard-portrait) .dashboard-task-list .dashboard-task-item{gap:3px!important;padding:7px 5px!important;}
 .shell:has(.dashboard-portrait) .dashboard-task-item .dashboard-task-required,
 .shell:has(.dashboard-portrait) .dashboard-task-item .dashboard-task-all-day,
 .shell:has(.dashboard-portrait) .dashboard-task-item .dashboard-task-complete,
 .shell:has(.dashboard-portrait) .dashboard-task-item .dashboard-task-finished{font-size:8px!important;padding:5px 2px!important;}
}

/* ZM-19/33 — OPRAVA 13: fixed mobile portrait size independent of the
   browser chrome expanding/collapsing while scrolling. Desktop unaffected. */
@media (max-width:800px) {
  .shell:has(.dashboard-portrait) .training-portrait.dashboard-portrait > img {
    width:auto!important;
    height:min(420px, 116vw)!important;
    max-height:none!important;
    max-width:100%!important;
    object-fit:contain!important;
    object-position:center bottom!important;
    align-self:center!important;
    margin:1px auto 6px!important;
    transform:none!important;
  }
}

/* ZM-19/34: first entry into Training. Unrelated mobile layouts unchanged. */
.zm19-welcome-dialog{width:min(670px,calc(100vw - 24px));max-width:670px;max-height:calc(100dvh - 28px);overflow:auto;overscroll-behavior:contain;border:1px solid #bb1640;border-radius:14px;background:#0b1628;color:#fff;box-sizing:border-box;padding:0;box-shadow:0 18px 60px #000c}
.zm19-welcome-dialog::backdrop{background:rgba(0,0,0,.85)}
.zm19-welcome-inner{padding:clamp(16px,3vw,28px)}
.zm19-welcome-dialog h2{margin:0 0 20px;text-align:center;color:#ff3659;font-size:clamp(21px,3.8vw,27px)}
.zm19-welcome-dialog h3{color:#ff3659;font-size:18px;margin:18px 0 8px}
.zm19-welcome-dialog p{font-size:16px;line-height:1.55;margin:0 0 16px}
.zm19-welcome-dialog hr{border:0;border-top:1px solid #34445b;margin:22px 0}
.zm19-welcome-check{display:flex;gap:12px;align-items:flex-start;line-height:1.5;font-size:16px;margin:20px 0}
.zm19-welcome-check input{margin-top:5px;flex:none;width:18px;height:18px;accent-color:#c71947}
.zm19-welcome-actions{display:flex;justify-content:flex-end}
.zm19-welcome-actions button{min-width:130px;padding:11px 20px}
@media(max-width:800px){.zm19-welcome-dialog{max-height:calc(100dvh - 16px);width:calc(100vw - 16px)}.zm19-welcome-inner{padding:17px}.zm19-welcome-dialog p{font-size:15px}}

/* ZM-20/01: the Catalogs dropdown has the same right-aligned mobile flyout as Settings. */
@media(max-width:800px){
  .shell:has(.training-body) > .sidebar > nav > details.nav-catalogs[open] > .nav-duty-items{left:auto!important;right:0!important}
}


/* ZM-20/03 · katalog pozic */
.position-catalog-panel{padding:20px 18px!important}
.position-catalog-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-top:18px}
.position-card{display:flex;flex-direction:column;gap:10px;padding:12px;border:1px solid #445a74;border-radius:14px;background:#0e1f35;color:#fff;cursor:pointer;text-align:left;transition:border-color .18s ease,transform .18s ease,box-shadow .18s ease}
.position-card:hover,.position-card:focus-visible{border-color:#ff3a59;transform:translateY(-2px);box-shadow:0 10px 24px rgba(0,0,0,.26);outline:none}
.position-card-title{font-size:16px;font-weight:800;color:#ff4664;line-height:1.2}
.position-card-frame{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:1/1;overflow:hidden;border-radius:12px;background:#091321;border:1px solid #31445d;padding:4px}
.position-card-frame img{display:block;width:100%;height:100%;object-fit:contain;object-position:center;background:#091321}
.position-modal[hidden]{display:none!important}
.position-modal{position:fixed;inset:0;z-index:1800;display:flex;align-items:center;justify-content:center;padding:22px}
.position-modal__backdrop{position:absolute;inset:0;background:rgba(3,6,13,.78)}
.position-modal__dialog{position:relative;z-index:1;width:min(1120px,calc(100vw - 24px));max-height:calc(100vh - 24px);display:flex;flex-direction:column;border:1.5px solid #f7375b;border-radius:18px;background:#0b1627;box-shadow:0 28px 56px rgba(0,0,0,.48);overflow:hidden}
.position-modal__body{padding:18px 18px 12px;overflow:auto}
.position-modal__title{margin:0 0 14px;color:#fff;font-size:clamp(24px,2.3vw,32px)}
.position-modal__image-wrap{display:flex;align-items:center;justify-content:center;border-radius:14px;background:#07101d;border:1px solid #31455f;padding:10px}
.position-modal__image{display:block;max-width:100%;max-height:calc(100vh - 220px);width:auto;height:auto;border-radius:10px}
.position-modal__actions{display:flex;justify-content:flex-end;padding:0 18px 18px}
body.position-modal-open{overflow:hidden}
@media(max-width:1350px){.position-catalog-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1080px){.position-catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.position-catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.position-card{padding:10px}.position-card-title{font-size:15px}.position-modal{padding:10px}.position-modal__body{padding:12px 12px 10px}.position-modal__actions{padding:0 12px 12px}.position-modal__actions .button{width:100%}}
@media(max-width:430px){.position-catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.position-card-frame{aspect-ratio:1/1}.position-modal__title{font-size:24px}}

/* ZM-20/03 OPRAVA 04: six main navigation items in one mobile row. */
@media (max-width:800px){
  .shell:has(.training-body) > .sidebar > nav{
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
    grid-auto-flow:row!important;
    gap:2px!important;
  }
  .shell:has(.training-body) > .sidebar > nav > .navlink,
  .shell:has(.training-body) > .sidebar > nav > details > summary{
    font-size:clamp(8px,2.1vw,11px)!important;
    padding:5px 1px!important;
    line-height:1.15!important;
    white-space:nowrap!important;
    letter-spacing:-.3px!important;
  }
  .shell:has(.training-body) > .sidebar > nav > details,
  .shell:has(.training-body) > .sidebar > nav > .navlink{
    min-width:0!important;
    width:auto!important;
    margin:0!important;
  }
}

/* ZM-20/08: fit every open mobile navigation flyout inside the actual viewport.
   JS sets only the horizontal correction; desktop is unaffected. */
@media (max-width:800px){
  .shell:has(.training-body) > .sidebar > nav > details[open] > .nav-duty-items{
    transform:translateX(var(--osdis-mobile-menu-shift, 0px))!important;
    max-width:min(270px, calc(100vw - 16px))!important;
    min-width:0!important;
    box-sizing:border-box!important;
    overscroll-behavior:contain;
  }
}

/* 11BW – dashboard only. Width +25%, enlarged status content and character. */
@media(min-width:801px){
 .shell:has(.dashboard-portrait) .training-body{
   grid-template-columns:minmax(250px,clamp(250px,20vw,313px)) minmax(0,1fr)!important;
   column-gap:14px!important;
 }
 .shell:has(.dashboard-portrait) .training-portrait.dashboard-portrait>.osdis-status{
   padding:15px!important;
 }
 .shell:has(.dashboard-portrait) .training-portrait.dashboard-portrait>img{
   width:clamp(260px,27.5vw,430px)!important;
   max-height:min(60dvh,580px)!important;
 }
}
.shell:has(.dashboard-portrait) .osdis-status-headings h2{font-size:clamp(21px,2vw,28px)!important}
.shell:has(.dashboard-portrait) .osdis-status-head{gap:9px!important}
.shell:has(.dashboard-portrait) .osdis-status-symbol{width:69px!important;max-width:69px!important;height:75px!important;max-height:75px!important;flex:0 0 69px!important}
.shell:has(.dashboard-portrait) .osdis-status-line{font-size:clamp(13px,1.1vw,15px)!important;padding:9px 3px!important;min-height:37px!important;gap:7px!important}
.shell:has(.dashboard-portrait) .osdis-stat strong,.shell:has(.dashboard-portrait) .osdis-stat b{font-size:clamp(13px,1.1vw,15px)!important}
.shell:has(.dashboard-portrait) .osdis-status-line.osdis-stat{grid-template-columns:minmax(0,1fr) 49px minmax(64px,.8fr)!important;gap:6px!important}
.shell:has(.dashboard-portrait) .osdis-status-line .osdis-meter{height:14px!important}
.shell:has(.dashboard-portrait) .osdis-status-orgasm{border-bottom:0!important}
.shell:has(.dashboard-portrait) .osdis-status-orgasm strong{color:#ff334e!important;font-weight:900!important}
.shell:has(.dashboard-portrait) .osdis-direct-task-form{display:block!important;margin:0!important}
.shell:has(.dashboard-portrait) .osdis-direct-task-form textarea{box-sizing:border-box!important;width:100%!important;min-height:95px!important;max-height:260px!important;resize:vertical!important;margin:0 0 11px!important;font:13px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace!important}
.shell:has(.dashboard-portrait) .osdis-direct-task-actions{display:flex!important;justify-content:space-between!important;gap:12px!important;align-items:center!important}
.shell:has(.dashboard-portrait) .osdis-direct-task-actions button{min-width:125px!important;width:auto!important;font-size:12px!important;font-weight:800!important;padding:9px 14px!important}
.shell:has(.dashboard-portrait) .osdis-direct-task-actions button[type=submit]{margin-left:auto!important;background:#ba0d32!important;border-color:#f53757!important}
.shell:has(.dashboard-portrait) .osdis-direct-task-clear{background:#14243a!important;border-color:#50647c!important;color:#eef5fa!important}
@media(min-width:801px) and (max-width:1150px){
 .shell:has(.dashboard-portrait) .training-body{grid-template-columns:minmax(220px,26vw) minmax(0,1fr)!important;gap:10px!important}
 .shell:has(.dashboard-portrait) .training-portrait.dashboard-portrait>img{width:min(100%,325px)!important;max-height:45dvh!important}
 .shell:has(.dashboard-portrait) .osdis-status-line{font-size:12px!important}
 .shell:has(.dashboard-portrait) .osdis-direct-task-actions button{min-width:0!important}
}
@media(max-width:800px){
 .shell:has(.dashboard-portrait) .osdis-status-headings h2{font-size:20px!important}
 .shell:has(.dashboard-portrait) .osdis-status-line{font-size:13px!important}
 .shell:has(.dashboard-portrait) .osdis-status-symbol{width:50px!important;height:56px!important;max-width:50px!important;max-height:56px!important;flex:0 0 50px!important}
}
/* Keep the enlarged character in document flow below the taller status card. */
@media(min-width:801px){
 .shell:has(.dashboard-portrait) .training-portrait.dashboard-portrait{
   position:relative!important;top:auto!important;height:auto!important;min-height:0!important;
   max-height:none!important;overflow:visible!important;gap:11px!important;
 }
 .shell:has(.dashboard-portrait) .training-portrait.dashboard-portrait>img{
   position:relative!important;top:auto!important;bottom:auto!important;left:auto!important;right:auto!important;
   transform:none!important;width:100%!important;max-width:430px!important;height:auto!important;
   max-height:none!important;min-height:0!important;margin:0 auto!important;align-self:center!important;
   object-fit:contain!important;object-position:center top!important;
 }
}

/* TRESTY KROK 03 OPRAVA 05/1: seven training navigation items, one mobile row. */
@media(max-width:800px){
  .shell:has(.training-body) > .sidebar > nav{
    display:flex!important;flex-flow:row nowrap!important;align-items:stretch!important;gap:1px!important;
  }
  .shell:has(.training-body) > .sidebar > nav > :is(.navlink,details){
    flex:1 1 auto!important;min-width:0!important;width:auto!important;margin:0!important;
  }
  .shell:has(.training-body) > .sidebar > nav > .navlink,
  .shell:has(.training-body) > .sidebar > nav > details > summary{
    box-sizing:border-box!important;min-height:38px!important;
    font-size:clamp(9px,2.8vw,12px)!important;letter-spacing:-.25px!important;
    padding:5px 1px!important;white-space:nowrap!important;gap:0!important;
  }
  .shell:has(.training-body) > .sidebar > nav > details > summary{width:100%!important;height:100%;}
}

/* K02 O01 – compact evidence and in-place photo gallery. */
.c17-pun-evidence{border:1px solid #713442;border-radius:8px;background:#151e2b;padding:10px 12px;margin:8px 0;display:grid;gap:7px;font-size:14px;min-width:0;overflow-wrap:anywhere}
.c17-pun-head{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.c17-pun-heading{display:flex;align-items:center;gap:10px;min-width:0}
.c17-pun-heading>div>strong{font-size:16px}.c17-pun-kind-icon{width:25px;height:25px;flex:none;color:#ff3759}
.c17-pun-meta{font-size:12px}.c17-pun-meta>strong{color:#eab308}
.c17-pun-time{font-size:12px;padding-bottom:6px;border-bottom:1px solid #344155;display:flex;justify-content:space-between;gap:4px 12px;flex-wrap:wrap}
.c17-pun-time>span{display:inline-flex;align-items:center;gap:5px}.c17-pun-time svg{width:14px;height:14px;flex:none}.c17-pun-completed-time svg{color:#83deb5}
.c17-pun-label{display:block;margin-bottom:3px}.c17-pun-assignment,.c17-pun-evaluation{padding:7px 9px;border-radius:5px}.c17-pun-assignment{background:#0b1828}.c17-pun-evaluation{background:#102722}
.c17-pun-photos{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.c17-pun-evidence .c17-pun-thumb{position:relative;display:block;width:74px;height:84px;padding:0;min-width:0;min-height:0;border:1px solid #633039;border-radius:5px;overflow:hidden;background:#253142;color:#fff;cursor:pointer}
.c17-pun-thumb img{display:block;width:100%;height:100%;object-fit:contain}.c17-pun-thumb svg{position:absolute;bottom:3px;right:3px;width:18px;height:18px;padding:2px;border-radius:4px;background:#07101edb}
.c17-pun-gallery{color:var(--text);background:#0b1828;border:1px solid #d92b50;border-radius:12px;padding:12px;width:min(920px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 24px);overflow:auto;margin:auto;box-shadow:0 15px 60px #000c}
.c17-pun-gallery[open]{display:flex;flex-direction:column;gap:10px}.c17-pun-gallery::backdrop{background:rgba(0,3,12,.86)}
.c17-pun-gallery-head{display:flex;align-items:center;gap:10px;flex:none}.c17-pun-gallery-head>strong{flex:1;min-width:0}.c17-pun-gallery-head>[data-pun-count]{color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums}
.c17-pun-gallery-image{display:flex;align-items:center;justify-content:center;background:#080e17;border-radius:6px;min-height:0;overflow:hidden;flex:1 1 auto}
.c17-pun-gallery-image img{display:block;max-width:100%;max-height:calc(100dvh - 160px);width:auto;height:auto;object-fit:contain}
.c17-pun-gallery-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:none}.c17-pun-gallery-actions>[data-pun-close]{margin-left:auto}
.c17-pun-gallery-nav{display:flex;gap:7px}.c17-pun-gallery-nav button{display:inline-flex;align-items:center;justify-content:center;width:42px;min-width:42px;padding:8px}.c17-pun-gallery-nav svg{width:20px;height:20px}.c17-pun-gallery-nav button:disabled{opacity:.4;cursor:default}
@media(max-width:640px){.c17-pun-gallery{width:calc(100vw - 12px);max-height:calc(100dvh - 12px);padding:9px}.c17-pun-gallery-image img{max-height:calc(100dvh - 145px)}}

/* K02 O02 – compact evidence and separate detail dialog. */
.c17-pun-summary-actions{display:flex;align-items:center;gap:10px;min-width:0}
.c17-pun-summary-actions .c17-pun-time{flex:1;min-width:0;border:0;padding:0}
.c17-pun-evidence .c17-pun-open{flex:0 0 auto;font-size:12px;padding:6px 10px;min-height:30px;line-height:1.3}
.c17-pun-detail{color:var(--text);background:#0b1828;border:1px solid #ff3759;border-radius:12px;padding:14px;width:min(920px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain;margin:auto;box-shadow:0 15px 60px #000c}
.c17-pun-detail[open]{display:flex;flex-direction:column;gap:10px}
.c17-pun-detail::backdrop{background:rgba(0,3,12,.78)}
.c17-pun-detail-head{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#ff3759;font-size:18px}
.c17-pun-detail-body{display:grid;gap:7px;min-width:0;overflow-wrap:anywhere}
.c17-pun-detail-actions{display:flex;justify-content:flex-end}
@media(max-width:640px){.c17-pun-detail{width:calc(100vw - 12px);max-height:calc(100dvh - 12px);padding:10px}.c17-pun-summary-actions{flex-wrap:wrap}.c17-pun-summary-actions .c17-pun-time{flex-basis:100%}.c17-pun-evidence .c17-pun-open{margin-left:auto}}

/* Four-fix bundle: final-review punishment presentation only. */
.c17-pun-heading .c17-pun-inline-size{color:#eab308}
.c17-pun-detail .c17-pun-detail-head{font-size:23px;line-height:1.3}
.c17-pun-detail .c17-pun-detail-body{font-size:17px;line-height:1.5}
.c17-pun-detail .c17-pun-meta,.c17-pun-detail .c17-pun-time{font-size:16px}
.c17-pun-detail .c14-pill{font-size:15px}
@media(max-width:640px){
 .c17-pun-detail .c17-pun-detail-head{font-size:20px}
 .c17-pun-detail .c17-pun-detail-body{font-size:16px}
 .c17-pun-detail .c17-pun-meta,.c17-pun-detail .c17-pun-time{font-size:15px}
 .c17-pun-detail .c14-pill{font-size:14px}
}
