/* CSS Document */

* { padding:0px; margin:0px; }

/* Základní elementy */
HTML { color: honeydew; font-family: var(--dm-font-family); background-color: #000000; padding:0; margin: 0; font-size: var(--dm-font-size-standard); }
BODY 	{  padding: 0; margin: 0; background-color: black; background-repeat: no-repeat; background-position: center top; }
FORM 	{ padding:0; margin:0; }
INPUT, BUTTON, SELECT, TEXTAREA { background-color: black; color:white; margin:0px; padding: 0px; border: 1px solid white; }
IFRAME	{ border:1px solid white; }

INPUT[type=text] { border-radius: 6px; }

A			{ font-weight:bold; }
A:link, A:visited { color: var(--dm-color-link); text-decoration: none; }
A:hover		{ text-decoration: underline; }
A:active	{ color: #00FF33; text-decoration: underline; }
A.edit		{ color: var(--dm-color-edit-link); font-weight:normal; }
A.intralink	{ color: green !important;  }
A.redirect	{ color: #fce; }
A.redirectH { color: #f55; }		  /* skrytej redirect */
		  /* dilovej redirect */
A.lh		{ position:relative; top:-0.5em; font-size:10px; font-weight:normal;}
A.secure, A.external { background-position: center right; background-repeat: no-repeat; padding-right: 16px;}


/* Základní layout */
#container { display: flex; flex-direction: column; }
#header { display: none; height:110px; order: 1;
    background-repeat: no-repeat;
    align-items: stretch;
}
#headerMob { display: flex; flex-direction: column; order: 2;
    height:82px; background-repeat: no-repeat; background-position: center; background-size: 66%; }
#headerMobTop { display: flex; height:62px; }
#headerMobNav { display: flex; font-size:8pt; line-height: 14pt; height:20px;}
#middle { display:flex; flex-direction: column; order: 5; }
#menu   { width: 100%; min-width: 225px; font-size: var(--dm-font-size-menu); order: 3;
    box-sizing: border-box;

}

#content { flex: 1 1 0; min-width: 0; width: auto; order: 2;}
#footer {
    font-size: 8pt; text-align: center;
    order: 20;
}


#return { height:60px; width:525px; position:absolute; left:0px; top:0px; cursor:pointer; }

#return A	{ height:59px; width:524px; display:block; }


#headerRight { text-align: right; flex-grow: 1; margin-right: 12px; font-size: 10pt; height:110px; display:flex; justify-content: space-between; flex-direction: column; box-sizing: border-box; padding-top: 6px; padding-bottom: 7px; }
#headerLeft { text-align: left; flex-grow: 1; margin-left: 12px; font-size:10pt; height:110px; display:flex; justify-content: space-between;flex-direction: column; box-sizing: border-box; padding-top: 6px; padding-bottom: 7px;}
.headerLogoLink A { display: block; width: 500px; height: 72px; }
.headerBreadcrumb { font-size: 9pt; line-height: 1.25em; opacity: .92; }
.headerRightLine { min-height: 18px; }
.headerSearch FORM { display: inline-block; }
.headerSearch INPUT[type=text] { padding: 2px 4px; }
.headerSearch INPUT[type=button] { padding-left: 5px; padding-right: 5px; }


#whisper {
    visibility: hidden;
    z-index: 1000;
    position: absolute;
    right: 61px;
    top: 104px;
    display: block;
    font-size: 10pt;
}


/* Postranní menu */


.lefthr {
    height: 1px;
    margin: 10px 12px;
    background: rgba(128,128,128,.32);
}

.date { margin-top: 3px; }

.dmMenuStatusSection {
    margin: 12px 0 16px 0;
    padding-top: 2px;
}

.dmMenuInfoBox {
    margin: 6px 10px 8px 10px;
    padding: 7px 8px;
    border: 1px solid rgba(128,128,128,.34);
    border-radius: 6px;
    background: rgba(255,255,255,.035);
    text-align: center;
    font-size: 92%;
    line-height: 1.35em;
}

.dmMenuInfoBox .date {
    margin: 2px 0;
    padding: 2px 0;
    border-bottom: 1px dotted rgba(128,128,128,.22);
}

.dmMenuInfoBox .date:last-child {
    border-bottom: 0;
}

.dmMenuRss {
    margin: 7px 10px 0 10px;
    text-align: center;
    font-size: 92%;
}

.dmMenuRss A {
    display: block !important;
    padding: 5px 7px !important;
    border: 1px solid rgba(128,128,128,.30);
    border-radius: 6px;
    background: rgba(255,255,255,.025);
    font-weight: normal !important;
}

.dmMenuRss A:hover {
    background: rgba(255,255,255,.10);
}


/* Menu */
#menu A		{ text-decoration: none; font-weight:normal; display: inline-block; padding: 1px 3px; border-radius: 4px; }
#menu A:hover { text-decoration: none; background-color: rgba(255,255,255,.10); }
#menu A.secure,
#menu A.external {
    padding-right: 22px;
    background-position: right 5px center;
    background-repeat: no-repeat;
}
.dmSideMenu { box-sizing: border-box; }
.dmMenuColumns { display: flex; }
.dmMenuSection { box-sizing: border-box; }
.menuItems	{ margin-left:18px; margin-right:10px; margin-bottom:10px;margin-top: 7px; line-height: 145%; list-style: none; padding-left: 0; }
.menuItems LI { margin-top: 1px; margin-bottom: 1px; }
.menuL2		 { margin-left:12px; }
.menuL2Title { line-height: 17px; margin-left:12px; margin-top: 6px; opacity: .78; font-weight: bold; font-size: 90%; }
.menuTitle	{ margin-left:10px; margin-right:10px; margin-top:12px; padding-bottom:3px; border-bottom: 1px solid rgba(128,128,128,.35); font-weight:bold; letter-spacing:.02em; font-size: 100%; line-height: 1.25em; }

#mainMenu, #suberMenu { flex-grow: 1; }

/* Footer */

.itemedited	{ text-align:center; font-style: italic; }


#login, .logdiv, #searchbox, #tools {  text-shadow: 2px 2px #000000; }


/* Homepage – základ */


.news_line	{ margin-left:20px; }
.news_line A { font-weight:normal; }


#homePage { display: flex; flex-direction: column; }
#homePage H2 { text-align: center; border-bottom: 1px solid #444; padding:2px; font-size: 125%; font-weight: bold;
                color:black; background-color: white;

    }


#news {  display: flex; flex-direction: column;   }
#newsChanges { border: 1px solid #444; }
#newsChanges A { font-weight: normal;}
#newsIssues, .newsBooks { display: flex; flex-direction: column; }
.newsBook IMG	{ height:145px; margin:2px 6px 2px 2px; float:left; border:0px; }

.newsBookOnly  { text-align: center; font-weight: bold; }
.newsBookOnly IMG	{ height:145px; margin:2px 6px 2px 2px; border:0px; max-height: 145px; }

.newsBookNote { text-align: center; font-size: 10pt; margin-bottom: 5px; }
.newsTranslateNote { text-align: center; font-size: 11pt; margin-top: 5px; margin-bottom: 5px; }

.newsRow  { border: 1px solid #444; }

.newsWelcome P { margin-bottom: 0.3em; text-align: justify; }
.newsMore	{ text-align:right; font-weight:normal;font-size:10pt; }
.newsMore A { font-weight:normal; }


#annoucment { color: white; background-color: darkred; margin: 1em; padding: 1em; text-align: center; font-weight: bold; }


/* Společné prvky obsahu */

.title 		{ font-size:24pt; font-weight:bold; text-align:center;  }
.title2		{ font-size:20pt; font-weight:bold; text-align:center;  }


.subtitle 	{ font-size:16pt; font-weight:bold; text-align:center;  }


.loading		{ font-style:italic;  }
#status			{ margin-left:3em; }
.deniedInfo		{ text-align:center; padding:50px; margin:200px 200px; color:white; background-color:#6b130e; border:2px dotted red; font-weight:bold; }


/* Seznamové tabulky */
.list 			{ border:1px solid #414141; border-collapse:collapse; }
.list TD		{ text-align:left; padding:1px 5px 1px 5px; border:1px solid #414141; }
.list TH		{ background-color: #313131;  text-align:center; vertical-align:middle; border:1px solid #414141; }
.list TR		{ border:1px solid #414141; }
.list TR:hover  { background-color: #1f1f1e; }


.searchtitle	{ font-size:110%; font-weight:bold; margin-top:1em; margin-bottom:4px; }
.searchres		{ text-align:left; padding-left:50px; }
.searchres LI	{ margin-bottom:5px; }
.searchres A	{ font-weight:normal; }
.searchnavig	{ margin-top:8px;}


.searchpage .searchintro2 {
    margin: 0.6em 0 1em 0;
}


.searchResultTitle {
    font-weight: bold;
    margin-bottom: 2px;
}


.searchmatch {
    color: #f33;
    font-weight: bold;
}
.searchfilters {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;

    margin: 6px 0 8px 0;
    padding: 4px 6px;

    border: 1px solid rgba(128,128,128,0.30);
    font-size: 90%;
    white-space: nowrap;
}

.searchfilters strong {
    margin-right: 2px;
}

.searchfilters select {
    max-width: 180px;
    margin: 0;
    font-size: 95%;
}

.searchfilters a {
    margin-left: 4px;
}

/* Základ článku */
.itemprev		{ margin-left: 15px; text-align: left; flex-grow: 0; }
.itemprev A		{ font-weight:normal !important; }
.itemnext		{ text-align:right; flex-grow: 0;}
.itemnext A		{ font-weight:normal !important; }
.itemhead		{ text-align:center; flex-grow: 2; flex-basis: 50%; }
.itemcontainer  { margin-left:1%; margin-right:1%; text-align:justify; margin-top: 5px; }
.itemtext		{ text-align: justify; margin-top:1em; margin-left:5px; }

.itemTitle      { display: flex; justify-content: space-between; margin-top: 15px; margin-bottom: 10px; }


/* Díly */


.dilypiccat		{ height:140px; border:0px; }
.dilycat		{ text-align:center; height:200px; width:150px; display:block; float:left; }
.dilypicsm IMG	{ height:140px; border:0px; margin-right:20px; float:left; margin-left:20px; }


.dilypost		{ text-align:left; padding:0px 30px 30px 30px; font-size:10pt; }
.dilypostnad	{ font-weight:bold; padding-top:1em; }
.dilyodkazy		{ text-align:justify; margin: 2em 4% 15px 4%; font-size:10pt; }


#dil2covers       { clear: both; float:right; margin-left: 10px; padding-left:10px; padding-bottom: 10px; margin-bottom: 10px; border-left: 1px dotted gray; border-bottom: 1px dotted gray; }
#dil2maincovers IMG   { height:290px; padding:1px; border: 1px solid gray;  }
#dil2othercover IMG  { height:100px; border: 1px solid gray; padding: 1px; }


#dily2ilus          { float:right; clear:right; margin-left: 10px; padding-left: 10px; border-left: 1px dotted gray; }
#dily2ilus IMG      { width: 96px; padding: 1px !important; margin: 1px !important; border: 1px solid gray !important;}
#dily2ilus A        { display: block; }


#cykl2subinfo { margin: 1em 5em; }


.cyklGalleryNo  { font-weight: bold; text-align: center;}
.cyklGalleryNo:hover, .cyklGalleryNo:hover A { background-color: white; color:black !important;}
.cyklGalleryNo A { color: white;}

.cyklGalleryItem { display: inline-block; padding:4px; text-align: center; color:white !important; }
.cyklGalleryItem IMG { height: 290px; }


.gallery { display: flex; flex-wrap: wrap; justify-content: space-around;}


#itemtext H2~TABLE, #itemtext H3~TABLE { margin-top: 1em; }


#requestAddition { display: block; float:right; width: 250px; border:1px solid gold; padding:4px; text-align: center; cursor: pointer; background-color: #31070e; margin-left: 1em; }


/* Slovník */

.slovnikcat		{ font-size:16pt; font-weight:bold; text-align:center;margin-top:1em; }


.slovniklist	{ break-before: avoid-column; padding-left:20px; }

.slovnikcount	{ font-size:11pt; text-align:center;  margin-top:20px; margin-bottom: 15px; }

.redirinfo		{ font-size:9pt; color:gray; }


.slovnikcatletter { font-weight:bold;font-size:20pt; margin:0.4em; }
.slovnikletterlisting { flex: 1 1 0px; min-width: 200px; }

.slovnikCategoryList { margin-top: 25px; margin-left: 30px; display:flex; flex-wrap: wrap; align-content: center; justify-content: space-around; }


.slovnikRefList { margin: 10px 20px 5px 20px; border: 1px solid #414141; padding: 5px; overflow: hidden; }
.slovnikRefs { font-size:80%; vertical-align: super; color: #626262 }
.slovnikRefs A { font-weight: normal !important; }

/* Rozšířené informace */
.extinfo 		{ float:right; clear:right; margin-left:15px; margin-top:15px; }


.extinfohashimg		{ width:400px;  }


.extinfobar		{ text-align:right; width:98%; margin-top:3px; margin-bottom:4px; font-size: 10pt; }
.extinfobar A	{ font-weight:normal; }


#tagListShow { color: var(--dm-color-link); float:left; cursor: pointer; font-size: 10pt; margin-top:3px; margin-bottom:4px; position:relative; }
#tagListTable { border: 1px solid crimson; position: absolute; top: 20px; left: 50px; font-weight:normal; font-size: 90%; text-align: left; background-color: black; padding: 20px; display: none; width:1000px; }
#tagListTable SPAN { cursor: pointer; }
#tagListTable SPAN:hover { color: crimson; }


#poradna	{ margin-left:auto; margin-right:auto; width:500px; }

.portitle	{ margin-bottom:2px; background-color: #222; padding: 3px; border: 1px solid #444; }
.pordotaz	{ border-bottom: 1px dotted gray; width:470px; padding:2px; border-left: 1px dotted gray; }
.porodpov	{ border-top: 1px dotted gray; margin-left:30px; margin-top:8px; padding: 2px 2px 10px;border-right: 1px dotted gray; }
.poruser	{ font-size:90%; font-style: italic; width:120px; text-align:center; margin-left:auto; margin-right:0px;  background-color: #222; padding: 3px; border: 1px solid #444;}
.porotaz	{ font-size:125%; font-weight: bold; padding: 2px;}
.portazatel	{ font-size:90%; font-style: italic; padding:5px;}
.porform	{ width:488px; margin:0 auto 20px auto; background-color: #222; padding:5px; border:1px solid #444; }
.porformline { margin-top:3px; }

.porform INPUT { padding: 2px; }
.porform INPUT[type=text]:hover { border-color: steelblue;  }
.porform INPUT[type=button]:hover { color: black; background-color: white; cursor: pointer; }
.porform TEXTAREA { border-radius: 6px; padding: 2px;}

.porlabel { font-size:80%; }
.poranswering:hover { cursor: pointer; border-color: steelblue; background-color: white; color:black;  }

.poradna_txt { width:100%;height:120px; border-radius: 6px; padding: 2px; }


/* Doplňkové informace */


/* Společné helpery */


.r		{ text-align: right !important; }
.l		{ text-align: left !important; }
.c, DIV.c P { text-align: center !important; }


.hr 	{ width:95%; margin-left:auto; margin-right:auto; height:3px; margin-top:2px; margin-bottom:2px; background-repeat: repeat-x; }

.diamond { text-align: center; margin-top: 5px; margin-bottom: 5px; font-weight: bold;}


.center { margin-left:auto; margin-right:auto; }

.b		{ font-weight:bold; }
.i		{ font-style: italic; }

.vm		{ vertical-align: middle !important;}


.w300	{ width: 300px; }
.w250	{ width: 250px; }
.w200	{ width: 200px; }
.w150	{ width: 150px; }
.w130	{ width: 130px !important; }
.w120	{ width: 120px }
.w100	{ width: 100px; }

.w80	{ width: 80px; }

.w60	{ width: 60px; }
.w50	{ width: 50px; }
.w40	{ width: 40px; }
.w30	{ width: 30px; }
.w20	{ width: 20px; }


.h35	{ height: 35px; }


.f9		{ font-size:19px; }

.noborder { border: 0px; }


/* Administrace a editor */

#contextmenu    {position:absolute;border:2px #666666 solid;background-color:#F3F3EF;font-family:Tahoma;cursor:default;font-size:12px;z-index:100;color:black;
    line-height:20px; visibility:hidden; }

#contextmenu HR {color:#bbbbbb;padding:0px;margin:0px;height:1px;}
.menuheader     {text-align:center;font-weight:bold;background-color:black;color:white;font-size:10px; height:12px; line-height:14px; }


.menuitem       {color:black;padding-left:20px;padding-right:8px;border:1px dotted #eaeaea;}
.menuitem:hover { background-color:#c2d6f2;border:1px solid #5296f7;}


.icon2			{ width:16px; height:16px; border:0px; vertical-align:middle; }
.icon3			{ width:16px; height:16px; border:0px; vertical-align:middle; margin-right:3px; }


.stat 			{ border:1px solid #414141; border-collapse:collapse; margin-left:auto; margin-right:auto; font-size:10pt; }
.stat TD		{ text-align:left; padding:1px 5px 1px 5px; border: 1px dotted gray;}
.stat TD.r		{ text-align:right; }
.stat TH		{ background-color: #313131; color:white; text-align:center; vertical-align:middle;border:1px solid #414141; }

.stati			{ font-size:75%; color:gray; position:relative; top:-3px; }
.statinc		{ color:green; }
.statdec		{ color:red; }
.statntr		{ color:gray; }


.editbox { padding-bottom:0px;  }

.editboxtoolbar { height:22px; background-image:url('/pics/edit/back.png');display:block;float:right; }

.editboxinserttable {position:absolute;right:0px;top:20px; width:300px; background:#F9F8F7 url('/pics/edit/vbar.png') center 4px no-repeat;  border:1px solid #666; padding:16px 8px 3px 8px; font-size:12px; line-height: 20px;}
.editboxinserttable A { font-weight:normal !important; color:black !important;}
.editboxinserttable A:hover { background-color:black !important; color:white !important; }
.ebs			{ font-size:80%; line-height:18px;}


.editwarning	{ text-align:center; margin:10px; background-color:#400; border:1px dashed red; padding:5px; }
.editwarning A	{ color:#ff00ff !important; }


#editor	TABLE		{ width:100%; }
#editor TD			{ border:1px solid #252525; width:25%;	}
#editor TH			{ background-color:#333; border:1px solid #333; width:25%; border-radius: 6px; }
#editor INPUT[type=text]		{ width:100%; padding: 2px; }
#editor INPUT[type=checkbox]	{ margin:3px; }
#editor INPUT[type=button], #editor INPUT[type=reset]	{ margin:4px; padding: 4px 8px; }
#editor INPUT[type=file]		{ width:100%; }
#editor TEXTAREA, #editor SELECT	{ width:100%; padding: 1px; border-radius: 6px; }
#editor LABEL		{ padding-left:0.5em; }

.dilUploader { display: block; border: 1px solid #1f1f1e; margin-right: 2px; text-align: center; width: 100px; }
.dilUploader IMG { height: 110px; margin-top: 3px; }
.dilUploader LABEL { padding: 4px;  cursor: pointer; color: var(--dm-color-link); }
.dilUploader LABEL:hover { text-decoration: underline;}
.dilUploaderDim { font-size: 10px;}
.dilUploaderAuflage { background-color:#333; }
#ajax_error { color: white; background-color: crimson; font-size: 16pt; }

.diff-context		{ color: #eee; background:#222; vertical-align:top; }
.diff-deletedline	{ color: #ffa; background:#222; vertical-align:top; }
.diff-addedline		{ color: #cfc; background:#222; vertical-align:top; }
.diffchange			{ color:red; font-weight:bold; vertical-align:top; }
.diff-otitle, .diff-ntitle { font-weight:bold; text-align:center; vertical-align:top; }
.diff				{ font-size:12px; text-align:left; margin-top:12px; vertical-align:top; }
.diff-delim			{ background:#222; text-align:center; vertical-align:top; padding-bottom:20px; padding-top:20px; font-size:12px; border-bottom:1px gray dotted; border-top:1px gray dotted;  }
.diff-token			{ text-align:center; }
.diff-same			{ text-align:center; font-size:16px; font-weight:bold; background:#222; }


#trinfo { text-align:center; clear:both; margin-top:2em; font-size:10pt; font-style:italic;  }
#trinfo SPAN { font-weight:bold; }
#trinfo A { font-weight:normal !important;}

.trinfoDL { color:#dd3946; margin:20px; }
.trinfoDL SPAN { font-weight:bold; color: honeydew; }
.mchntrnslt { border-left: 2px dotted darkred; padding-left: 4px !important; }
.alternative { border-left: 2px dotted dodgerblue; padding-left: 6px !important; }
.alternativeInfo { color:#dd3946; margin:20px; font-style: italic; }

/* Text článku */

#itemtext		{ text-align: justify; margin-top:1em; line-height:1.3em; }


#itemtext H1,
#itemtext H2,
#itemtext H3,
#itemtext H4,
#itemtext H5,
#itemtext H6 {
    margin: 1.15em 0 0 0;
    padding-top: 0;
    padding-bottom: 0.06em;
    line-height: 1.18em;
}

#itemtext H1	{ font-size:190%; padding-bottom:0.12em; }
#itemtext H2	{
    position: relative;
    margin-top: 1.45em;
    padding-bottom: 0.18em;
    font-size:170%;
}

#itemtext H2::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg,
        rgba(255, 255, 255, .32) 0%,
        rgba(255, 255, 255, .22) 42%,
        rgba(255, 255, 255, .08) 70%,
        rgba(255, 255, 255, 0) 100%
    );
    pointer-events: none;
}
#itemtext H3	{ font-size:135%; }
#itemtext H4	{ font-size:120%; }
#itemtext H5	{ font-size:105%; }
#itemtext H6	{ font-size:88%; }

/* Nadpisy jdoucí přímo za sebou tvoří jednu skupinu: bez mezery mezi nimi. */
#itemtext H1 + H2,
#itemtext H1 + H3,
#itemtext H1 + H4,
#itemtext H1 + H5,
#itemtext H1 + H6,
#itemtext H2 + H2,
#itemtext H2 + H3,
#itemtext H2 + H4,
#itemtext H2 + H5,
#itemtext H2 + H6,
#itemtext H3 + H2,
#itemtext H3 + H3,
#itemtext H3 + H4,
#itemtext H3 + H5,
#itemtext H3 + H6,
#itemtext H4 + H2,
#itemtext H4 + H3,
#itemtext H4 + H4,
#itemtext H4 + H5,
#itemtext H4 + H6,
#itemtext H5 + H2,
#itemtext H5 + H3,
#itemtext H5 + H4,
#itemtext H5 + H5,
#itemtext H5 + H6,
#itemtext H6 + H2,
#itemtext H6 + H3,
#itemtext H6 + H4,
#itemtext H6 + H5,
#itemtext H6 + H6 {
    margin-top: 0;
}

/* H2 je hlavní nadpis sekce; pokud za ním následuje podnadpis, necháme po lince malou mezeru. */
#itemtext H2:has(+ H2),
#itemtext H2:has(+ H3),
#itemtext H2:has(+ H4),
#itemtext H2:has(+ H5),
#itemtext H2:has(+ H6) {
    margin-bottom: 0.28em;
}

#itemtext H1:first-child,
#itemtext H2:first-child,
#itemtext H3:first-child,
#itemtext H4:first-child,
#itemtext H5:first-child,
#itemtext H6:first-child {
    margin-top: 0;
}

#itemtext UL, #itemtext OL { margin: 0 0 0 2em;  }

#itemtext UL LI:first-child { margin-top:0.1em; }


#itemtext LI { margin-bottom: 0.1em; line-height: 1.2em; }

#itemtext .tree { margin-left:1em; margin-bottom:1em; }

#itemtext .cite	{ margin: 1em 2em;font-size:95%; }
#itemtext .disamb	{ margin-left:2em; margin-bottom:1em; }

#itemtext DIV.hr	{ width:95%; margin-left:auto; margin-right:auto; height:3px; margin-top:10px; margin-bottom:10px; background-repeat: repeat-x; }

#itemtext TD	{ text-align:left; padding:0px 2px; }
#itemtext TH	{ color:white; background-color:#313131; font-weight:bold; text-align:center; height:25px; padding-left:2px; vertical-align: middle;}

#itemtext IMG		{ border:0; margin:0; padding:0; }
.imagebox	{ padding:3px;border:1px solid gray; margin-bottom:4px; }
.imagebox IMG { border:0; }

.imagecopy, .imagepopis { font-size:9pt; text-align:center; }
.imagezoom { width:15px; height:11px; display:block; float:right; }


#itemtext HR		{ height: 1px; color: #444; background-color: #444; border: 0px solid #444; margin:15px auto 15px auto; padding:0; text-align:center; }

#itemtext P		{ text-indent:1em;margin-bottom:0.8em; }
#itemtext P.pd	{ margin-bottom:1.6em; }
#itemtext P.np	{ margin-bottom:0;	}

#itemtext PRE, #itemtext CODE	{ font-size:14px; background-color:#222; border:1px dashed gray; margin:4px; }

#itemtext TD P		{ text-indent:0px !important;}


#toctable	{ border:1px solid gray; background-color: #151515; padding:5px; font-size:9pt; }
#toctable UL	{ list-style:none; margin: 0; padding: 0; line-height:1em; }

#toctable A	{ font-weight:normal !important; }


.toclev1	{ margin-left:0.5em; }
.toclev2	{ margin-left:1.5em; }
.toclev3	{ margin-left:2.5em; }
.toclev4	{ margin-left:3.5em; }
.toclev5	{ margin-left:4.5em; }
.toclev6	{ margin-left:5.5em; }
.toctit		{ font-weight:bold; text-align:center; font-size:9pt; }
#toctoggle	{ font-size:9pt; color: var(--dm-color-link); }


.catDily { font-size:90%; color: var(--dm-color-cat-dily);}
.catSlovnik { font-size:90%; color: var(--dm-color-cat-slovnik);}
.catCykly { font-size:90%; color: var(--dm-color-cat-cykly);}
.catChronologie { font-size:90%; color: var(--dm-color-cat-chronologie);}
.catCat		{ font-size:90%; color:white; }
.catImage	{ font-size:90%; color: var(--dm-color-cat-image); }


.imageback {  border:1px solid gray;  }
.imageback IMG { border:0px solid black; margin:0; padding:0; }
.imagedimens	{ margin-top:5px; margin-bottom:5px; }


.propertytab	{ padding-top:2px; padding-bottom:2px; }
.propertytab TH	{ background-color: #333; width:8px; padding:2px; border-radius: 6px; }
.propertytab TD	{ border: 1px solid #333; padding:2px; border-radius: 6px; }
.propertytab INPUT { padding: 2px; }

#dialog { position: absolute; z-index: 100000; visibility: hidden; top: 0; left: 0; height: 100%; width: 100%; }

#dialogHead BUTTON { padding: 6px; margin-top: 3px; margin-right: 3px; }
#dialogHead { display: flex; align-items: center; justify-content: space-between; }

#dialogFooter { text-align: center; }
#dialogFooter INPUT { padding: 5px 15px; }
#dialogFooter INPUT:hover, #dialogHead BUTTON:hover { color: black; background-color: var(--dm-color-link); cursor:pointer;  }


/* Překlady */

.prklItem { display: inline-block; padding:8px; text-align: center; }
.prklItem A { color:white !important; }
.prklItem:hover { background-color: white;}
.prklItem:hover A { color:black !important;}
.prklItem:hover IMG { opacity:1; }
.prklIcon { height: 168px; }
.prklIconHtv { opacity: 0.9; }
.prklIconOng { opacity: 0.4; }
.prklIconIsu { background-color:black;}
.prklBGDone     { background-color: #003500;}
.prklBGOng      { background-color: #171751; }
.prklBGIssu     { background-color: #44170b; }

.prklTbl 			{ border:1px solid gray; border-collapse:collapse; margin-left:auto; margin-right:auto; }
.prklTbl TD		    { text-align:left; padding:1px 5px; border:1px solid gray; border-radius:6px; }
.prklTbl TD.r		{ text-align:right; }
.prklTbl TH		    {  background-color: #313131; color:white; text-align:center; vertical-align:middle;border:1px solid gray; padding-left: 6px; padding-right: 6px;}
.prklTbl TR.deleted TD { text-decoration: line-through; }


#prklData SELECT:disabled { color:#555555; border:1px solid gray;}
#prklData INPUT:hover, #prklData TEXTAREA:hover, #prklData SELECT:hover { border: 1px solid steelblue; }
#prklData INPUT[type="button"]:hover { color:black; background-color: white; cursor: pointer; }


.prklDisabled { color: #555555; }


.prklFSout { border:1px gray dotted;line-height:1.5em;padding-left: 10px; }
.prklFSinner { border:1px gray dotted;line-height:1.7em; padding:5px;margin-bottom:5px;margin-right:10px; }
.prklInput { padding: 2px; }
.prklSelect { padding: 1px; width: 125px; }
.prklText { width:80%;height:64px;margin-left:15px; border-radius: 6px; padding:1px; }

/* Tisk */
@media print {

    BODY { color:black !important; background-color: white !important;   }

    A { text-decoration:none; font-weight:normal; color:black; }
    A:link, A:visited { color:black; }
    A.edit		{ color:black !important;}


    #tools, DIV#header { display:none; }


    DIV#footer		{ font-size:17px;}


    #footer			{ display:none; }

    .itemcontainer { background-color: white; font-size:12pt;}
    .itemprev, .itemnext { display:none; }
    .itemhead		{ margin-left:auto; margin-right:auto; }


    #toctable		{ display:none; }


}


@media screen
{
    #headerMob { background-size: auto; }
    .newsBooks { flex-direction: row; }
}

@media screen
{
    #container { min-height: 100vh; align-content: stretch; }
    #middle { flex-direction: row-reverse; flex-grow: 2; }
    #menu { width:225px; min-width:225px; flex: 0 0 225px; }

    #header { display: flex; }
    #headerMob { display: none; }
    #whisper { top:104px; }
    #suberMenu { display: none; }

}

@media screen and (min-width: 1900px)
{
    #container { width: 1800px; margin-left:auto; margin-right: auto; }
    #middle { min-height: 1vh; }
}

.parserError {
    background: #7b1d1d;
    color: #fff;
    border: 1px solid #b66;
    padding: 6px 8px;
    margin: 6px 0;
}


.dm-context-menu {
    z-index: 9999;
    min-width: 220px;
}

.dm-context-menu .menuitem:hover,
.dm-context-menu .menuitem:focus {
    background: #d9ecff;
    border: 1px solid #003b7a;
    outline: none;
}

.dm-context-menu .menuheader {
    font-weight: bold;
    padding: 4px 8px 2px 8px;
}

.dm-context-menu hr {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    margin: 4px 0;
}

.dm-context-menu .menuitem {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    border: 1px solid transparent;
    background: transparent;
    text-align: left;
    cursor: pointer;
    font: inherit;
    padding: 3px 8px;
    box-sizing: border-box;
}

.dm-context-menu .dm-context-menu-icon,
.dm-context-menu .dm-context-menu-icon-spacer {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}

.dm-context-menu .dm-context-menu-icon {
    object-fit: contain;
}

.dm-context-menu .dm-context-menu-label {
    flex: 1 1 auto;
}

.dm-error-page {
    max-width: 820px;
    margin: 30px auto;
}

.dm-error-card {
    display: flex;
    gap: 18px;
    padding: 22px 24px;
    border: 1px solid #8898aa;
    border-radius: 8px;
    background: linear-gradient(180deg, #f6f8fb 0%, #e8edf4 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.dm-error-icon {
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #26384d;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: bold;
}

.dm-error-content {
    flex: 1 1 auto;
}

.dm-error-kicker {
    margin-bottom: 4px;
    color: #52677f;
    font-size: 13px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.dm-error-content h1 {
    margin: 0 0 8px 0;
    font-size: 28px;
    line-height: 1.2;
    color: #1d2d3f;
}

.dm-error-message {
    margin: 0;
    font-size: 16px;
    line-height: 1.55;
    color: #26384d;
}

.dm-error-details {
    margin: 10px 0 0 0;
    font-size: 13px;
    color: #66798d;
}

.dm-error-http-code {
    margin-top: 8px;
    font-size: 11px;
    color: #7b8998;
}

.dm-error-actions {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dm-error-action {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #2d4d73;
    border-radius: 4px;
    background: #e7f1ff;
    color: #1d2d3f !important;
    text-decoration: none;
    font-weight: bold;
}

.dm-error-action:hover {
    background: #cfe4ff;
    border-color: #14375d;
    color: #1d2d3f !important;
}


/* barevné varianty */

.dm-error-page-denied .dm-error-icon,
.dm-error-page-login .dm-error-icon,
.dm-error-page-level .dm-error-icon {
    background: #5b2230;
}

.dm-error-page-notfound .dm-error-icon,
.dm-error-page-article .dm-error-icon {
    background: #334f75;
}

.dm-error-page-deleted .dm-error-icon {
    background: #4c4c4c;
}

.dm-error-page-locked .dm-error-icon {
    background: #4e3b73;
}

.dm-error-page-maintenance .dm-error-icon {
    background: #58612f;
}

.dm-error-page-system .dm-error-icon,
.dm-error-page-warning .dm-error-icon {
    background: #7a3d16;
}

.dm-error-debug {
    max-width: 820px;
    margin: 18px auto 30px auto;
    padding: 16px 18px;
    border: 1px solid #6f5847;
    border-radius: 8px;
    background: #1b1714;
    color: #ddd1c7;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.dm-error-debug h2 {
    margin: 0 0 12px 0;
    color: #f2b35d;
    font-size: 18px;
}

.dm-error-debug dl {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 6px 12px;
    margin: 0 0 14px 0;
}

.dm-error-debug dt {
    color: #bda48e;
    font-weight: bold;
}

.dm-error-debug dd {
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
}

.dm-error-debug code,
.dm-error-debug pre {
    color: #f0d7bb;
}

.dm-error-debug pre {
    max-height: 420px;
    overflow: auto;
    margin: 0;
    padding: 12px;
    border: 1px solid #4a3b31;
    border-radius: 6px;
    background: #100d0b;
    white-space: pre-wrap;
}
/* SELENE autolink modal */
.dm-selene-toolbutton {
    height: 18px;
    margin: 0 2px;
    padding: 0 5px;
    vertical-align: top;
    border: 1px solid #666;
    border-radius: 3px;
    background: #111;
    color: var(--dm-color-link);
    font-size: 10px;
    line-height: 16px;
    cursor: pointer;
}

.dm-selene-toolbutton:hover {
    background: var(--dm-color-link);
    color: #000;
}

.dm-selene-modal {
    position: fixed;
    z-index: 1000000;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 5vh 2vw;
    box-sizing: border-box;
}

.dm-selene-panel {
    width: min(1100px, 96vw);
    max-height: 88vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #777;
    border-radius: 8px;
    background: #050505;
    color: honeydew;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.65);
}

.dm-selene-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: #252525;
    border-bottom: 1px solid #555;
}

.dm-selene-title {
    font-size: 16px;
    font-weight: bold;
}

.dm-selene-close {
    padding: 3px 9px;
    font-size: 18px;
    line-height: 18px;
}

.dm-selene-summary {
    padding: 8px 10px;
    border-bottom: 1px dotted #555;
    color: #d8d8d8;
    font-size: 90%;
}

.dm-selene-toolbar,
.dm-selene-footer {
    padding: 8px 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: 1px dotted #444;
}

.dm-selene-footer {
    border-top: 1px dotted #444;
    border-bottom: 0;
}

.dm-selene-toolbar button,
.dm-selene-footer button {
    padding: 5px 12px;
}

.dm-selene-primary {
    font-weight: bold;
}

.dm-selene-list {
    overflow: auto;
    padding: 4px 10px 10px 10px;
}

.dm-selene-empty {
    padding: 20px;
    text-align: center;
    color: #ccc;
    font-style: italic;
}

.dm-selene-block-title {
    margin: 12px 0 5px 0;
    padding: 3px 6px;
    border-bottom: 1px dotted #555;
    color: var(--dm-color-link);
    font-size: 14px;
}

.dm-selene-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 4px 0;
    padding: 6px;
    border: 1px solid #333;
    border-radius: 5px;
    background: #111;
    cursor: pointer;
}

.dm-selene-row:hover {
    border-color: #777;
    background: #181818;
}

.dm-selene-row input[type="checkbox"] {
    margin-top: 4px;
}

.dm-selene-row-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.dm-selene-main-line {
    font-size: 13px;
}

.dm-selene-found {
    color: #fff;
}

.dm-selene-replacement {
    font-size: 11px;
    color: #ffd37a;
    background: #222;
    border: 1px solid #333;
    padding: 1px 4px;
    border-radius: 3px;
}

.dm-selene-meta {
    color: #aaa;
    font-size: 11px;
}

.dm-selene-context {
    color: #d0d0d0;
    font-size: 12px;
    line-height: 1.35em;
}

.dm-selene-context mark {
    background: #ffd37a;
    color: #000;
    padding: 0 2px;
}

.dm-selene-confidence-medium .dm-selene-meta {
    color: #d7b16a;
}

/* SELENE autolink progress */
.dm-selene-progress-panel {
    width: min(620px, 96vw);
}

.dm-selene-progress-body {
    padding: 22px 24px 24px 24px;
    text-align: center;
}

.dm-selene-progress-status {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--dm-color-link);
}

.dm-selene-progress-detail {
    min-height: 18px;
    margin-bottom: 14px;
    color: #cfcfcf;
    font-size: 12px;
}

.dm-selene-progress-bar-outer {
    width: 100%;
    height: 16px;
    border: 1px solid #777;
    border-radius: 8px;
    background: #111;
    overflow: hidden;
}

.dm-selene-progress-bar-inner {
    width: 0;
    height: 100%;
    background: var(--dm-color-link);
    transition: width 0.15s linear;
}

.dm-selene-progress-percent {
    margin-top: 8px;
    color: #d8d8d8;
    font-size: 12px;
}

.dm-selene-progress-hint {
    margin-top: 16px;
    color: #999;
    font-size: 11px;
    font-style: italic;
}

/* SELENE autolink match types */
.dm-selene-row.dm-selene-match-derived-ove,
.dm-selene-row.dm-selene-derived-ove {
    border-color: #1b9a9a;
}

.dm-selene-row.dm-selene-match-derived-ove:hover,
.dm-selene-row.dm-selene-derived-ove:hover {
    border-color: #28c7c7;
}

.dm-selene-row.dm-selene-match-derived-ove .dm-selene-meta {
    color: #9edede;
}


/* SELENE Autolink – diagnostický režim */

.dm-selene-diagnostics {
    font-size: 12px;
    line-height: 1.45;
}

.dm-selene-diagnostics-main {
    font-weight: bold;
    margin-bottom: 4px;
}

.dm-selene-diagnostics-line {
    margin-top: 2px;
}

.dm-selene-diagnostics-warn {
    color: #ffcc66;
}

.dm-selene-rejected-toggle {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: 12px;
    padding: 3px 7px;
    border: 1px solid #777;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    font-size: 12px;
}

.dm-selene-rejected-list {
    margin-top: 14px;
    border-top: 1px dashed #777;
    padding-top: 8px;
}

.dm-selene-rejected-title {
    color: #ffcc66;
}

.dm-selene-rejected-block-title {
    margin: 8px 0 4px 0;
    font-size: 12px;
    color: #bbb;
}

.dm-selene-row.dm-selene-rejected {
    border-color: #777;
    opacity: 0.78;
    background: rgba(120, 120, 120, 0.10);
}

.dm-selene-row.dm-selene-rejected .dm-selene-meta {
    color: #d0d0d0;
}

.dm-selene-row.dm-selene-rejected mark {
    background: #554400;
    color: #fff0aa;
}


/* SELENE autolink match types - přidej do main.css */
.dm-selene-row.dm-selene-match-exact {
    border-color: #2f9b58;
}

.dm-selene-row.dm-selene-match-exact:hover {
    border-color: #43c773;
}

.dm-selene-row.dm-selene-match-suffix {
    border-color: #2d72b8;
}

.dm-selene-row.dm-selene-match-suffix:hover {
    border-color: #4b9bea;
}

.dm-selene-row.dm-selene-match-missing,
.dm-selene-row.dm-selene-missing {
    border-color: #b83b3b;
}

.dm-selene-row.dm-selene-match-missing:hover,
.dm-selene-row.dm-selene-missing:hover {
    border-color: #e15a5a;
}

.dm-selene-row.dm-selene-confidence-medium:not(.dm-selene-match-missing):not(.dm-selene-missing) {
    border-color: #9b7a2f;
}

.dm-selene-row.dm-selene-confidence-medium:not(.dm-selene-match-missing):not(.dm-selene-missing):hover {
    border-color: #d2a73e;
}

.dm-selene-row.dm-selene-match-known-form,
.dm-selene-row.dm-selene-known-form {
    border-color: #8d56c5;
}

.dm-selene-row.dm-selene-match-known-form:hover,
.dm-selene-row.dm-selene-known-form:hover {
    border-color: #b37af0;
}

/* SELENE Autolink – odvozené tvary ras/národů */

.dm-selene-row.dm-selene-match-derived-ove,
.dm-selene-row.dm-selene-match-derived-ide,
.dm-selene-row.dm-selene-match-derived-ane {
    border-left: 4px solid #00a8a8;
}

.dm-selene-row.dm-selene-derived-ove,
.dm-selene-row.dm-selene-derived-ide,
.dm-selene-row.dm-selene-derived-ane {
    box-shadow: inset 0 0 0 1px rgba(0, 168, 168, 0.35);
}


/* SELENE Autolink – letopočty a chronologické zápisy */

.dm-selene-row.dm-selene-match-chrono,
.dm-selene-row.dm-selene-chrono {
    border-left: 4px solid #b36b00;
}

.dm-selene-row.dm-selene-match-chrono.dm-selene-confidence-high {
    box-shadow: inset 0 0 0 1px rgba(179, 107, 0, 0.35);
}

.dm-selene-row.dm-selene-match-chrono.dm-selene-confidence-medium {
    box-shadow: inset 0 0 0 1px rgba(179, 107, 0, 0.2);
}

/* SELENE Autolink UI refresh + obecná tlačítka pro DM */

.dm-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 28px;
    padding: 5px 12px;
    border: 1px solid #6b7280;
    border-radius: 6px;
    background: linear-gradient(#f8fafc, #dce3ec);
    color: #111827;
    font-size: 12px;
    font-family: inherit;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 1px 2px rgba(0,0,0,.20);
    transition: background .12s ease, border-color .12s ease, box-shadow .12s ease, transform .08s ease;
}

.dm-button:hover,
.dm-button:focus {
    background: linear-gradient(#ffffff, #cbd5e1);
    border-color: #2563eb;
    color: #000000;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 0 0 2px rgba(37,99,235,.22), 0 2px 5px rgba(0,0,0,.24);
}

.dm-button:active {
    transform: translateY(1px);
    box-shadow: inset 0 1px 3px rgba(0,0,0,.25), 0 1px 1px rgba(0,0,0,.15);
}

.dm-button-primary {
    border-color: #1d4ed8;
    background: linear-gradient(#3b82f6, #1d4ed8);
    color: #ffffff;
}

.dm-button-primary:hover,
.dm-button-primary:focus {
    border-color: #1e40af;
    background: linear-gradient(#60a5fa, #2563eb);
    color: #ffffff;
}

.dm-button-secondary {
    border-color: #64748b;
    background: linear-gradient(#f8fafc, #cbd5e1);
}

.dm-button-small {
    min-height: 24px;
    padding: 4px 9px;
    font-size: 11px;
}

.dm-button-icon {
    min-width: 28px;
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 700;
}

.dm-selene-filter-row,
.dm-selene-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin: 8px 0;
}

.dm-selene-filter-row {
    padding: 7px;
    border: 1px solid rgba(148, 163, 184, .6);
    border-radius: 8px;
    background: rgba(15, 23, 42, .04);
}

.dm-selene-filter-button {
    opacity: .55;
    border-left-width: 5px;
}

.dm-selene-filter-button.dm-selene-filter-active {
    opacity: 1;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 0 0 2px rgba(59,130,246,.18), 0 1px 3px rgba(0,0,0,.25);
}

.dm-selene-filter-button.dm-selene-match-exact { border-left-color: #2f9e44; }
.dm-selene-filter-button.dm-selene-match-suffix { border-left-color: #1c7ed6; }
.dm-selene-filter-button.dm-selene-match-known-form { border-left-color: #845ef7; }
.dm-selene-filter-button.dm-selene-match-derived-ove,
.dm-selene-filter-button.dm-selene-match-derived-ide,
.dm-selene-filter-button.dm-selene-match-derived-ane { border-left-color: #0ca678; }
.dm-selene-filter-button.dm-selene-match-chrono { border-left-color: #f08c00; }
.dm-selene-filter-button.dm-selene-match-missing { border-left-color: #e03131; }

.dm-selene-toolbar {
    padding: 7px;
    border: 1px solid rgba(148, 163, 184, .45);
    border-radius: 8px;
    background: rgba(255, 255, 255, .04);
}

.dm-selene-diagnostics-toggle,
.dm-selene-rejected-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 24px;
    padding: 4px 8px;
    border: 1px solid rgba(100, 116, 139, .7);
    border-radius: 6px;
    background: rgba(241, 245, 249, .85);
    color: #111827;
    font-size: 12px;
    cursor: pointer;
}

.dm-selene-diagnostics-toggle:hover,
.dm-selene-rejected-toggle:hover {
    border-color: #2563eb;
    background: #ffffff;
}

.dm-selene-diagnostics {
    margin: 8px 0;
    padding: 8px 10px;
    border: 1px dashed #64748b;
    border-radius: 8px;
    background: rgba(15, 23, 42, .06);
}

.dm-selene-summary {
    margin-bottom: 6px;
    font-weight: 600;
}

.dm-selene-footer {
    align-items: center;
    justify-content: flex-end;
}
/* Volitelné jemné doladění modernizovaných slovníkových výpisů. */
.slovnikCategoryListModern {
    clear: both;
}

.slovnikCategoryListModern .slovnikLetterGroup {
    margin-bottom: 1.1rem;
}

.slovnikLetterJump {
    margin-top: .65rem;
}

.slovnikLetterJump span {
    opacity: .8;
    margin-right: .35rem;
}

.slovnikListItem {
    line-height: 1.45;
    text-align: left;
}

.slovnikListIcon {
    margin-right: .25rem;
    vertical-align: middle;
}

.slovnikListMeta {
    font-size: 78%;
    opacity: .55;
}

.slovnikListMetaCategory {
    display: inline-block;
    white-space: nowrap;
    vertical-align: baseline;
    font-size: 72%;
    opacity: .42;
    margin-left: .25rem;
}

.slovnikListMetaCategory::before {
    content: '· ';
}

.slovnikempty {
    padding: 1rem;
    opacity: .8;
    text-align: center;
}

.slovnikCategoryListModern .slovniklist,
.slovnikCategoryListModern .slovnikListItem {
    text-align: left;
}

/* Modernizovaná hlavní stránka slovníku. */
.slovnikMainModern {
    --slovnik-card-bg: rgba(255,255,255,.035);
    --slovnik-card-border: rgba(255,255,255,.12);
    --slovnik-muted: rgba(255,255,255,.62);
}

.slovnikMainHero {
    display: flex;
    gap: 1.2rem;
    align-items: stretch;
    justify-content: space-between;
    margin: 1rem 0 1.35rem;
    padding: 1.15rem 1.25rem;
    border: 1px solid var(--slovnik-card-border);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
}

.slovnikMainHeroText {
    max-width: 58rem;
}

.slovnikMainHeroText h2,
.slovnikMainSectionHeader h2 {
    margin: 0 0 .35rem;
}

.slovnikMainHeroText p,
.slovnikMainSectionHeader p {
    margin: 0;
    color: var(--slovnik-muted);
    line-height: 1.45;
}

.slovnikMainStats {
    display: grid;
    grid-template-columns: repeat(2, minmax(7rem, 1fr));
    gap: .55rem;
    min-width: 18rem;
}

.slovnikMainStat {
    padding: .65rem .75rem;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    background: rgba(0,0,0,.16);
    text-align: center;
}

.slovnikMainStatValue {
    font-size: 145%;
    font-weight: 700;
    line-height: 1.1;
}

.slovnikMainStatLabel {
    margin-top: .15rem;
    font-size: 75%;
    opacity: .72;
}

.slovnikMainSectionHeader {
    margin: 1.5rem 0 .8rem;
}

.slovnikMainGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: .9rem;
}

.slovnikMainCard {
    overflow: hidden;
    border: 1px solid var(--slovnik-card-border);
    border-radius: 13px;
    background: var(--slovnik-card-bg);
}

.slovnikMainCardHeader {
    display: flex;
    gap: .6rem;
    align-items: center;
    justify-content: space-between;
    padding: .72rem .85rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.035);
}

.slovnikMainCardHeader h3 {
    margin: 0;
    font-size: 105%;
}

.slovnikMainBadge,
.slovnikMainCategoryCount,
.slovnikMainTagCount {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.1em;
    padding: .08rem .38rem;
    border-radius: 999px;
    background: rgba(255,255,255,.1);
    font-size: 78%;
    white-space: nowrap;
}

.slovnikMainCategoryItems {
    list-style: none;
    margin: 0;
    padding: .45rem .6rem .65rem;
}

.slovnikMainCategoryItem {
    margin: .16rem 0;
}

.slovnikMainCategoryItem a {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .5rem;
    align-items: center;
    padding: .32rem .38rem .42rem;
    border-radius: 8px;
    text-decoration: none;
}

.slovnikMainCategoryItem a:hover {
    background: rgba(255,255,255,.06);
}

.slovnikMainCategoryName {
    min-width: 0;
    text-align: left;
}

.slovnikMainCategoryBar {
    position: absolute;
    left: .38rem;
    right: .38rem;
    bottom: .18rem;
    height: 2px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,.06);
}

.slovnikMainCategoryBar::after {
    content: '';
    display: block;
    width: var(--slovnik-cat-weight, 0%);
    height: 100%;
    border-radius: inherit;
    background: rgba(255,255,255,.32);
}

.slovnikMainCategoryItemEmpty {
    opacity: .55;
}

.slovnikMainTagsHeader {
    margin-top: 1.8rem;
}

.slovnikMainTags {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: .75rem;
}

.slovnikMainTagGroup {
    padding: .75rem;
    border: 1px solid var(--slovnik-card-border);
    border-radius: 12px;
    background: rgba(255,255,255,.025);
}

.slovnikMainTagGroup h3 {
    margin: 0 0 .45rem;
    opacity: .85;
}

.slovnikMainTagList {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.slovnikMainTag {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    max-width: 100%;
    padding: .22rem .42rem;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 999px;
    background: rgba(0,0,0,.12);
    text-decoration: none;
}

.slovnikMainTag:hover {
    background: rgba(255,255,255,.07);
}

.slovnikMainTagName {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* Abecední rozcestník na hlavní stránce slovníku. */
.slovnikMainLetterPanel {
    display: grid;
    grid-template-columns: minmax(15rem, 22rem) 1fr;
    gap: 1rem;
    align-items: center;
    margin: 0 0 1.35rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--slovnik-card-border);
    border-radius: 14px;
    background: rgba(255,255,255,.025);
}

.slovnikMainLetterText h2 {
    margin: 0 0 .3rem;
}

.slovnikMainLetterText p {
    margin: 0;
    color: var(--slovnik-muted);
    line-height: 1.4;
}

.slovnikMainLetters {
    display: flex;
    flex-wrap: wrap;
    gap: .42rem;
    justify-content: flex-start;
}

.slovnikMainLetter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    min-height: 2.05rem;
    padding: .18rem .48rem;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    background: rgba(0,0,0,.13);
    text-decoration: none;
    font-weight: 600;
    line-height: 1;
}

.slovnikMainLetter:hover {
    background: rgba(255,255,255,.075);
}


/* Modernější, ale střídmý rozcestník chronologie */
.chronoMainModern {
    --chrono-border: rgba(170, 150, 95, .24);
    --chrono-bg: rgba(22, 20, 24, .70);
    --chrono-bg-soft: rgba(255, 255, 255, .025);
    --chrono-text-soft: rgba(235, 225, 205, .62);
    --chrono-accent: #d4b46a;
    --chrono-accent-soft: rgba(212, 180, 106, .10);
}

.chronoMainHero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(250px, .85fr);
    gap: .85rem;
    align-items: stretch;
    padding: 1rem 1.1rem;
    margin-bottom: .8rem;
    border: 1px solid var(--chrono-border);
    border-radius: 12px;
    background: var(--chrono-bg);
}

.chronoMainHeroText h1 {
    margin: .1rem 0 .35rem;
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    line-height: 1.08;
    letter-spacing: .02em;
}

.chronoMainHeroText p {
    margin: 0;
    max-width: 64em;
    color: var(--chrono-text-soft);
    font-size: .93rem;
    line-height: 1.45;
}

.chronoMainKicker,
.chronoPeriodKicker {
    color: var(--chrono-accent);
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.chronoMainStats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
}

.chronoMainStatBox {
    padding: .68rem .75rem;
    border: 1px solid rgba(170, 150, 95, .18);
    border-radius: 10px;
    background: rgba(255, 255, 255, .026);
}

.chronoMainStatValue {
    font-size: 1.08rem;
    font-weight: 700;
    color: #ead79f;
    line-height: 1.15;
}

.chronoMainStatLabel {
    margin-top: .12rem;
    color: var(--chrono-text-soft);
    font-size: .76rem;
}

.chronoMainJump {
    margin: 0 0 .8rem;
    padding: .75rem .85rem;
    border: 1px solid rgba(255, 255, 255, .065);
    border-radius: 12px;
    background: var(--chrono-bg-soft);
}

.chronoMainSectionHeader {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem .85rem;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: .55rem;
}

.chronoMainSectionHeader h2 {
    margin: 0;
    color: #ead79f;
    font-size: 1rem;
}

.chronoMainSectionHeader p {
    margin: 0;
    color: var(--chrono-text-soft);
    font-size: .8rem;
}

.chronoMainJumpLinks {
    display: flex;
    flex-wrap: wrap;
    gap: .32rem;
}

.chronoMainJumpLinks a {
    display: inline-flex;
    align-items: center;
    gap: .38rem;
    padding: .30rem .52rem;
    border: 1px solid rgba(212, 180, 106, .18);
    border-radius: 999px;
    background: rgba(212, 180, 106, .045);
    text-decoration: none;
}

.chronoMainJumpLinks a:hover,
.chronoYearPill:hover {
    border-color: rgba(212, 180, 106, .45);
    background: rgba(212, 180, 106, .10);
}

.chronoMainJumpLinks span {
    padding: .02rem .32rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, .18);
    color: var(--chrono-text-soft);
    font-size: .70rem;
}

.chronoMainTimeline {
    display: grid;
    gap: .65rem;
}

.chronoPeriodCard {
    position: relative;
    overflow: hidden;
    padding: .75rem .85rem .85rem;
    border: 1px solid var(--chrono-border);
    border-radius: 12px;
    background: var(--chrono-bg);
}

.chronoPeriodCard::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: rgba(212, 180, 106, .50);
}

.chronoPeriodHead {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem .8rem;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: .62rem;
    padding-left: .25rem;
}

.chronoPeriodHead h2 {
    margin: .06rem 0 0;
    color: #ead79f;
    font-size: 1.12rem;
}

.chronoPeriodMeta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .05rem;
    color: var(--chrono-text-soft);
    font-size: .76rem;
}

.chronoPeriodMeta strong {
    color: #ead79f;
    font-size: 1.08rem;
    line-height: 1;
}

.chronoYearGrid {
    display: flex;
    flex-wrap: wrap;
    gap: .28rem;
}

.chronoYearPill {
    display: inline-flex;
    align-items: center;
    min-height: 1.62rem;
    padding: .22rem .42rem;
    border: 1px solid rgba(255, 255, 255, .075);
    border-radius: 8px;
    background: rgba(0, 0, 0, .16);
    text-decoration: none;
    white-space: nowrap;
    font-size: .9rem;
}

.chronoYearPill span {
    line-height: 1.08;
}

.chronoMainEmpty {
    padding: .9rem;
    border: 1px dashed var(--chrono-border);
    border-radius: 10px;
    color: var(--chrono-text-soft);
    text-align: center;
}


/* Moderní, ale střídmý přehled sérií na Kategorie:Seznam sérií */
.seriesOverviewModern {
    text-align: left;
}

.seriesOverviewHero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.4rem;
    margin: 0 0 1.2rem 0;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(180, 180, 180, .18);
    background: rgba(255, 255, 255, .025);
    border-radius: .45rem;
}

.seriesOverviewHero h1 {
    margin: 0 0 .35rem 0;
    font-size: 1.75rem;
    line-height: 1.15;
}

.seriesOverviewHero p {
    margin: 0;
    max-width: 46rem;
    opacity: .78;
    line-height: 1.45;
}

.seriesOverviewStats {
    display: grid;
    grid-template-columns: repeat(2, minmax(5.6rem, 1fr));
    gap: .45rem;
    min-width: 13rem;
}

.seriesOverviewStat {
    padding: .48rem .62rem;
    border: 1px solid rgba(180, 180, 180, .15);
    background: rgba(0, 0, 0, .12);
    border-radius: .35rem;
    text-align: center;
}

.seriesOverviewStatValue,
.seriesOverviewStatLabel {
    display: block;
}

.seriesOverviewStatValue {
    font-size: 1.15rem;
    font-weight: bold;
    line-height: 1.15;
}

.seriesOverviewStatLabel {
    margin-top: .16rem;
    font-size: .74rem;
    opacity: .62;
}

.seriesOverviewGroups {
    display: grid;
    gap: .95rem;
}

.seriesOverviewGroup {
    padding: .85rem .95rem .95rem;
    border: 1px solid rgba(180, 180, 180, .16);
    background: rgba(255, 255, 255, .018);
    border-radius: .45rem;
}

.seriesOverviewGroup h2 {
    margin: 0 0 .7rem 0;
    padding-bottom: .35rem;
    border-bottom: 1px solid rgba(180, 180, 180, .14);
    font-size: 1.14rem;
    line-height: 1.2;
}

.seriesOverviewCards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr));
    gap: .7rem;
}

.seriesOverviewCard {
    display: flex;
    gap: .75rem;
    align-items: center;
    min-height: 8.1rem;
    padding: .55rem .65rem;
    border: 1px solid rgba(180, 180, 180, .16);
    background: rgba(0, 0, 0, .10);
    border-radius: .38rem;
    text-decoration: none;
}

.seriesOverviewCard:hover {
    background: rgba(255, 255, 255, .04);
    border-color: rgba(180, 180, 180, .28);
}

.seriesOverviewCover {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    width: auto;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: .25rem;
    background: rgba(0, 0, 0, .22);
}

.seriesOverviewCover img {
    display: block;
    height: 120px;
    width: auto;
    max-width: none;
    max-height: 120px;
}

.seriesOverviewCoverMissing {
    width: 4.8rem;
    font-weight: bold;
    opacity: .55;
}

.seriesOverviewCardBody {
    display: block;
    min-width: 0;
}

.seriesOverviewCode {
    display: inline-block;
    margin-bottom: .18rem;
    padding: .06rem .32rem;
    border: 1px solid rgba(180, 180, 180, .18);
    border-radius: .22rem;
    font-size: .72rem;
    line-height: 1.2;
    opacity: .65;
}

.seriesOverviewName {
    display: block;
    margin-bottom: .22rem;
    font-size: 1.03rem;
    font-weight: bold;
    line-height: 1.22;
}

.seriesOverviewMeta {
    display: block;
    font-size: .78rem;
    line-height: 1.35;
    opacity: .58;
}

.seriesOverviewMetaLine {
    display: block;
}

.seriesOverviewMetaLineSecondary {
    margin-top: .12rem;
}

.seriesOverviewCardMissing {
    opacity: .7;
}

.seriesOverviewEmpty {
    padding: 1rem;
    border: 1px solid rgba(180, 180, 180, .16);
    border-radius: .4rem;
    opacity: .7;
}


/* Moderní přehled cyklů hlavních sérií */
.cycleOverviewModern {
    text-align: left;
}

.cycleOverviewHero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.2rem;
    margin: 0 0 1rem 0;
    padding: .9rem 1rem;
    border: 1px solid rgba(180, 180, 180, .18);
    background: rgba(255, 255, 255, .02);
    border-radius: .4rem;
}

.cycleOverviewHero h1 {
    margin: 0 0 .3rem 0;
    font-size: 1.65rem;
    line-height: 1.15;
}

.cycleOverviewHero p {
    margin: 0;
    max-width: 48rem;
    opacity: .76;
    line-height: 1.42;
}

.cycleOverviewStats {
    display: grid;
    grid-template-columns: repeat(3, minmax(4.8rem, 1fr));
    gap: .42rem;
    min-width: 16rem;
}

.cycleOverviewStat {
    padding: .45rem .58rem;
    border: 1px solid rgba(180, 180, 180, .15);
    background: rgba(0, 0, 0, .10);
    border-radius: .32rem;
    text-align: center;
}

.cycleOverviewStatValue,
.cycleOverviewStatLabel {
    display: block;
}

.cycleOverviewStatValue {
    font-size: 1.1rem;
    font-weight: bold;
    line-height: 1.15;
}

.cycleOverviewStatLabel {
    margin-top: .12rem;
    font-size: .72rem;
    opacity: .62;
}

.cycleOverviewGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

.cycleOverviewCard {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .85rem;
    align-items: start;
    padding: .72rem .85rem;
    border: 1px solid rgba(180, 180, 180, .16);
    background: rgba(0, 0, 0, .09);
    border-radius: .38rem;
}

.cycleOverviewCard:hover {
    background: rgba(255, 255, 255, .032);
    border-color: rgba(180, 180, 180, .26);
}

.cycleOverviewCover {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 4.8rem;
    min-height: 120px;
    border-radius: .25rem;
    overflow: hidden;
    background: rgba(0, 0, 0, .20);
}

.cycleOverviewCover img {
    display: block;
    height: 120px;
    width: auto;
    max-width: none;
    max-height: 120px;
}

.cycleOverviewCoverMissing {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.8rem;
    height: 120px;
    font-weight: bold;
    opacity: .5;
}

.cycleOverviewBody {
    min-width: 0;
}

.cycleOverviewNumber {
    display: inline-block;
    margin-bottom: .2rem;
    padding: .06rem .34rem;
    border: 1px solid rgba(180, 180, 180, .16);
    border-radius: .22rem;
    font-size: .74rem;
    line-height: 1.2;
    opacity: .65;
}

.cycleOverviewCard h2 {
    margin: 0 0 .42rem 0;
    font-size: 1.12rem;
    line-height: 1.22;
}

.cycleOverviewFacts {
    display: grid;
    gap: .22rem;
    margin: 0 0 .55rem 0;
    font-size: .86rem;
    line-height: 1.35;
}

.cycleOverviewFact {
    display: grid;
    grid-template-columns: 5.4rem minmax(0, 1fr);
    gap: .45rem;
}

.cycleOverviewFactLabel {
    opacity: .52;
}

.cycleOverviewFactValue {
    min-width: 0;
}

.cycleOverviewSep {
    opacity: .45;
}

.cycleOverviewRangeDash {
    display: inline-block;
    padding: 0 .18rem;
    opacity: .62;
}

.cycleOverviewMuted {
    opacity: .45;
}

.cycleOverviewIntro {
    margin-top: .35rem;
    font-size: .92rem;
    line-height: 1.48;
    opacity: .9;
}

.cycleOverviewIntro p:first-child {
    margin-top: 0;
}

.cycleOverviewIntro p:last-child {
    margin-bottom: 0;
}

.cycleOverviewMore {
    margin-top: .48rem;
    font-size: .82rem;
    opacity: .7;
    text-align: right;
}

.cycleOverviewEmpty {
    padding: 1rem;
    border: 1px solid rgba(180, 180, 180, .16);
    border-radius: .35rem;
    opacity: .7;
}


/* Modernější portál cyklu / série */
.cyklusPortalModern {
    margin-top: .8rem;
}

.cyklusPortalHero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 1rem;
    margin-bottom: .8rem;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    background: rgba(255,255,255,.035);
}

.cyklusPortalHero h2 {
    margin: .1rem 0 .25rem;
    font-size: 1.28rem;
    line-height: 1.2;
}

.cyklusPortalHero p {
    margin: 0;
    font-size: .9rem;
    opacity: .72;
}

.cyklusPortalEyebrow {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    opacity: .56;
}

.cyklusPortalActions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .35rem;
    min-width: 220px;
}

.cyklusPortalAction a {
    display: inline-block;
    padding: .22rem .55rem;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 999px;
    background: rgba(255,255,255,.035);
    font-size: .82rem;
    text-decoration: none;
    white-space: nowrap;
}

.cyklusPortalAction a:hover {
    background: rgba(255,255,255,.07);
}

.cyklusPortalFacts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .55rem;
    margin-bottom: 1rem;
}

.cyklusPortalFact {
    padding: .6rem .7rem;
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 8px;
    background: rgba(255,255,255,.025);
}

.cyklusPortalFactLabel {
    margin-bottom: .25rem;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    opacity: .52;
}

.cyklusPortalFactValue {
    font-size: .92rem;
    line-height: 1.35;
}

.cyklusPortalFactAuthorsWide {
    grid-column: span 2;
}

.cyklusPortalMuted {
    opacity: .62;
    font-size: .82rem;
}

.cyklusPortalRelated {
    margin-top: .85rem;
}

.cyklusPortalSectionTitle {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .6rem;
    padding-bottom: .35rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.cyklusPortalSectionTitle h2 {
    margin: 0;
    font-size: 1.08rem;
}

.cyklusPortalSectionTitle span {
    font-size: .78rem;
    opacity: .55;
}

.cyklusPortalRelatedLayout {
    display: grid;
    grid-template-columns: 1fr;
    gap: .75rem;
}

.cyklusPortalRelatedLayoutWithDictionary {
    grid-template-columns: minmax(240px, .75fr) minmax(0, 1.45fr);
    align-items: start;
}

.cyklusPortalRelatedColumn {
    display: grid;
    gap: .75rem;
    min-width: 0;
}

.cyklusPortalTypeBlock {
    padding: .75rem .85rem;
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 9px;
    background: rgba(255,255,255,.024);
}

.cyklusPortalTypeBlock h3 {
    margin: 0 0 .55rem;
    font-size: 1rem;
}

.cyklusPortalCategoryBlock {
    margin-top: .55rem;
}

.cyklusPortalCategoryBlock:first-of-type {
    margin-top: 0;
}

.cyklusPortalCategoryBlock h4 {
    margin: .35rem 0 .25rem;
    font-size: .82rem;
    font-weight: normal;
    opacity: .65;
}

.cyklusPortalList {
    margin: 0;
    padding-left: 1.05rem;
    columns: 2 13rem;
    column-gap: 1.25rem;
}

.cyklusPortalRelatedColumnMinor .cyklusPortalList {
    columns: 1;
}

.cyklusPortalRelatedColumnDictionary .cyklusPortalList {
    columns: 2 14rem;
}

.cyklusPortalList li {
    break-inside: avoid;
    margin: .08rem 0;
    line-height: 1.28;
}

.cyklusPortalEmpty {
    margin: .5rem 0 0;
    opacity: .65;
}


/* Modernější galerie coverů / ilustrací cyklu nebo série */
.cyklusGalleryModern {
    margin-top: .8rem;
}

.cyklusGalleryHero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 1rem;
    margin-bottom: .65rem;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    background: rgba(255,255,255,.03);
}

.cyklusGalleryHero h2 {
    margin: .08rem 0 .25rem;
    font-size: 1.22rem;
    line-height: 1.2;
}

.cyklusGalleryHero p {
    margin: 0;
    font-size: .9rem;
    opacity: .72;
}

.cyklusGalleryEyebrow {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    opacity: .56;
}

.cyklusGalleryHeroActions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .35rem;
    min-width: 190px;
}

.cyklusGalleryHeroActions a,
.cyklusGalleryTab {
    display: inline-block;
    padding: .24rem .58rem;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 999px;
    background: rgba(255,255,255,.035);
    font-size: .82rem;
    text-decoration: none;
    white-space: nowrap;
}

.cyklusGalleryHeroActions a:hover,
.cyklusGalleryTab:hover {
    background: rgba(255,255,255,.07);
}

.cyklusGalleryTabs {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin-bottom: .65rem;
}

.cyklusGalleryTabActive {
    border-color: rgba(255,255,255,.22);
    background: rgba(255,255,255,.09);
    font-weight: bold;
}

.cyklusGalleryFacts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .5rem;
    margin-bottom: .75rem;
}

.cyklusGalleryFact {
    padding: .5rem .65rem;
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 8px;
    background: rgba(255,255,255,.022);
}

.cyklusGalleryFactLabel {
    margin-bottom: .2rem;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    opacity: .52;
}

.cyklusGalleryFactValue {
    font-size: .9rem;
    line-height: 1.3;
}

.cyklusGalleryFrame {
    padding: .7rem;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 10px;
    background: rgba(255,255,255,.018);
}

.cyklusGalleryGrid {
    display: flex;
    flex-wrap: wrap;
    gap: .72rem;
    align-items: flex-start;
}

.cyklusGalleryGrid .cyklGalleryNo {
    flex: 0 1 auto;
    box-sizing: border-box;
    width: auto;
    max-width: 100%;
    padding: .55rem .45rem .45rem;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 8px;
    background: rgba(0,0,0,.11);
    text-align: center;
    line-height: 1.25;
}

.cyklusGalleryGrid .cyklGalleryNo a.cyklGalleryItem {
    display: inline-block;
    max-width: 100%;
    text-align: center;
}

.cyklusGalleryGrid .cyklGalleryNo img,
.cyklusGalleryGrid .cyklGalleryNo a.cyklGalleryItem img {
    display: block;
    height: 290px !important;
    width: auto !important;
    max-width: none !important;
    max-height: 290px !important;
    margin: 0 auto .35rem;
    object-fit: contain;
}

.cyklusGalleryGridIllus {
    justify-content: flex-start;
}

.cyklusGalleryGridIllus .cyklGalleryNo img,
.cyklusGalleryGridIllus .cyklGalleryNo a.cyklGalleryItem img {
    height: 290px !important;
    width: auto !important;
    max-width: none !important;
    max-height: 290px !important;
}

.cyklusGalleryGrid .cyklGalleryNo > a:last-child {
    display: inline-block;
    margin-top: .15rem;
    font-size: .85rem;
    opacity: .75;
}

.cyklusGalleryEmpty {
    padding: .9rem 1rem;
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 8px;
    background: rgba(255,255,255,.025);
    opacity: .7;
}


/* Moderní přehled přesměrování */
.redirectOverviewModern {
    text-align: left;
}

.redirectOverviewHero {
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 10px;
    padding: .9rem 1rem;
    margin-bottom: .8rem;
    background: rgba(255,255,255,.035);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.redirectOverviewHero h1 {
    margin: 0 0 .25rem;
    font-size: 1.45rem;
    line-height: 1.2;
}

.redirectOverviewHero p {
    margin: 0;
    opacity: .72;
    max-width: 48rem;
}

.redirectOverviewStats {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    justify-content: flex-end;
    flex: 0 0 auto;
}

.redirectOverviewStat {
    min-width: 6rem;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    padding: .38rem .55rem;
    background: rgba(0,0,0,.15);
    text-align: center;
}

.redirectOverviewStatValue {
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.15;
}

.redirectOverviewStatLabel {
    margin-top: .08rem;
    font-size: .72rem;
    opacity: .62;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.redirectOverviewWarning,
.redirectOverviewEmpty {
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    padding: .55rem .7rem;
    margin-bottom: .8rem;
    background: rgba(0,0,0,.16);
    opacity: .86;
}

.redirectJumpBar {
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    padding: .45rem .55rem;
    margin-bottom: .8rem;
    background: rgba(0,0,0,.14);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem;
}

.redirectJumpBar span {
    margin-right: .2rem;
    font-size: .8rem;
    opacity: .62;
}

.redirectJumpBar a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.65rem;
    min-height: 1.45rem;
    padding: .08rem .35rem;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    text-decoration: none;
    background: rgba(255,255,255,.035);
}

.redirectOverviewGrid {
    column-count: 3;
    column-gap: .8rem;
}

.redirectLetterCard {
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
    break-inside: avoid;
    margin: 0 0 .8rem;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;
    background: rgba(255,255,255,.028);
    overflow: hidden;
}

.redirectLetterHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: .4rem .58rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
    background: rgba(0,0,0,.16);
}

.redirectLetterTitle {
    font-weight: 700;
    font-size: 1.05rem;
}

.redirectLetterCount {
    font-size: .76rem;
    opacity: .58;
}

.redirectList {
    list-style: none;
    margin: 0;
    padding: .32rem .45rem .45rem;
}

.redirectItem {
    padding: .34rem .15rem .38rem;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.redirectItem:last-child {
    border-bottom: 0;
}

.redirectSourceLine {
    display: flex;
    align-items: baseline;
    gap: .38rem;
    min-width: 0;
}

.redirectSource {
    font-weight: 600;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.redirectBadge {
    flex: 0 0 auto;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 999px;
    padding: .02rem .34rem;
    font-size: .64rem;
    line-height: 1.45;
    opacity: .5;
}

.redirectBadgeHidden {
    opacity: .75;
}

.redirectTargetLine {
    margin-top: .16rem;
    padding-left: .28rem;
    display: flex;
    align-items: baseline;
    gap: .32rem;
    font-size: .82rem;
    opacity: .72;
}

.redirectArrow {
    flex: 0 0 auto;
    opacity: .55;
}

.redirectTarget {
    text-decoration: none;
    overflow-wrap: anywhere;
}

.redirectTargetMissing {
    opacity: .65;
    font-style: italic;
}


/* Homepage */

#homePage {
    gap: .85rem;
    padding: .35rem .55rem 1rem;
}

#homePage h2 {
    color: var(--dm-color-link, #ffcc66);
    background: linear-gradient(90deg, rgba(255,255,255,.08), rgba(255,255,255,.025));
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
    border-left: 3px solid var(--dm-color-link, #ffcc66);
    text-align: left;
    font-size: 115%;
    line-height: 1.2;
    padding: .48rem .72rem .42rem;
    margin: 0;
    letter-spacing: .01em;
}

#homePage > .newsRow:first-of-type h2 {
    text-align: center;
    border-left: 0;
    color: honeydew;
    background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.10), rgba(255,255,255,.04));
}

.newsRow,
#newsChanges {
    border: 1px solid rgba(160,160,160,.24);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018));
    box-shadow: 0 12px 32px rgba(0,0,0,.22);
    overflow: hidden;
}

.newsRow {
    margin-bottom: .85rem;
}

.newsRow:last-of-type {
    margin-bottom: 0;
}

.newsWelcome {
    padding: .9rem 1rem 1rem;
    line-height: 1.45;
}

.newsWelcome p {
    margin-bottom: .55em;
}

#news {
    gap: .85rem;
    align-items: flex-start;
}

#newsChanges {
    margin-right: 0;
    min-width: 0;
    font-size: 10.5pt;
}

#newsChanges > div {
    padding: .6rem .7rem .72rem;
}

#newsChanges table {
    width: 100%;
    border-collapse: collapse;
}

#newsChanges td {
    padding: .12rem .1rem;
    vertical-align: top;
}

#newsChanges tr:hover td {
    background: rgba(255,255,255,.055);
}

.newsNewsDate {
    display: inline-block;
    min-width: 2.6rem;
    color: rgba(255,255,255,.72);
    font-size: 8.5pt;
    text-align: right;
    white-space: nowrap;
}

#newsIssues {
    gap: .85rem;
    width: 100%;
}

.newsBooks {
    gap: .72rem;
    padding: .72rem;
    justify-content: stretch;
    align-items: stretch;
}

.newsBook,
.newsBookOnly {
    border: 1px solid rgba(160,160,160,.18);
    border-radius: 10px;
    background: rgba(0,0,0,.22);
    padding: .62rem .72rem;
    box-sizing: border-box;
}

.newsBook {
    text-align: justify;
    flex-basis: 0;
}

.newsBook:last-of-type,
.newsBookOnly:last-of-type {
    border-right: 1px solid rgba(160,160,160,.18);
}

.newsBook:hover,
.newsBookOnly:hover {
    border-color: rgba(255,255,255,.32);
    background: rgba(255,255,255,.055);
}

.newsBook img,
.newsBookOnly img {
    border-radius: 5px;
    box-shadow: 0 6px 16px rgba(0,0,0,.34);
}

.newsBook img {
    margin-right: 10px;
    margin-bottom: 5px;
}

.newsBookTitle {
    margin-bottom: .35rem;
    font-size: 105%;
    text-align: left;
}

.newsBookNote,
.newsTranslateNote {
    color: rgba(255,255,255,.74);
}

.newsMore {
    margin-top: .4rem;
    padding-top: .25rem;
    border-top: 1px solid rgba(255,255,255,.08);
}

#annoucment {
    border-radius: 10px;
    border: 1px solid rgba(255,130,130,.45);
    box-shadow: 0 10px 28px rgba(0,0,0,.25);
}

@media screen {
    #news {
        display: grid;
        grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
        align-items: flex-start;
    }

    #newsChanges {
        position: sticky;
        top: .75rem;
    }
}

/* Na úzkých displejích novinky nad přehledem knih. */
@media screen and (max-width: 650px) {
    #news {
        grid-template-columns: minmax(0, 1fr);
    }

    #newsChanges {
        position: static;
    }
}

/* Homepage cards, search and login forms */
.newsBooks {
    flex-wrap: wrap;
}

.newsBook,
.newsBookOnly {
    min-width: 260px;
    flex: 1 1 280px;
}

.newsBookOnly {
    width: auto;
}


.searchbutton,
#searchbox input[type=button],
.headerSearch input[type=button],
#headerMobNav img[alt="hledat"],
.loginButton,
#dialogFooter input,
#dialogHead button {
    border: 1px solid rgba(138,190,255,.55);
    border-radius: 8px;
    padding: 4px 10px;
    min-height: 24px;
    box-sizing: border-box;
    font-weight: normal;
    cursor: pointer;
}

.headerSearch form {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

.headerSearch label,
.loginMini label,
.loginMenuForm label {
    color: rgba(255,255,255,.72);
    font-size: 92%;
}

.headerSearch input[type=text],
.loginInput,
#searchtext,
#searchtext2,
#login input[type=text],
#login input[type=password],
.loginMenuForm input[type=text],
.loginMenuForm input[type=password] {
    border: 1px solid rgba(160,160,160,.42);
    border-radius: 8px;
    padding: 4px 7px;
    min-height: 24px;
    box-sizing: border-box;
}

.loginMiniForm {
    display: inline-block;
}

.loginMini {
    display: inline-flex;
    justify-content: flex-end;
    align-items: center;
}

.loginToggle {
    display: inline-block;
    padding: 4px 9px !important;
    border: 1px solid rgba(128,128,128,.34);
    border-radius: 8px;
    background: rgba(255,255,255,.035);
}

.loginToggle:hover {
    background: rgba(255,255,255,.10);
}

.loginExpanded {
    gap: 5px;
    align-items: center;
    justify-content: flex-end;
    padding: 5px 6px;
    border: 1px solid rgba(128,128,128,.34);
    border-radius: 10px;
    background: rgba(0,0,0,.30);
}

#log1[style*="block"] {
    display: inline-flex !important;
}

.loginMini .loginInput {
    width: 82px !important;
}

.loginMini .loginButton {
    width: auto !important;
}

.loginMenuForm li {
    margin-bottom: 5px;
}

.loginMenuForm label {
    display: block;
    margin-bottom: 2px;
}

.loginMenuForm input[type=text],
.loginMenuForm input[type=password],
.loginMenuForm .loginButton {
    width: 100% !important;
}

#dialog {
    background-color: rgba(0,0,0,.76);
    backdrop-filter: blur(2px);
}

#dialogForm {
    width: min(620px, calc(100vw - 32px));
    margin: 9vh auto 0 auto;
    background: #050505;
    border: 1px solid rgba(160,160,160,.36);
    border-radius: 12px;
    box-shadow: 0 18px 42px rgba(0,0,0,.65);
    overflow: hidden;
}

#dialogHead {
    background: rgba(255,255,255,.055);
    border-bottom: 1px solid rgba(160,160,160,.24);
    padding-left: 12px;
}

#dialogTitle {
    font-size: 16px;
    font-weight: bold;
}

#dialogFooter {
    border-top: 1px solid rgba(160,160,160,.18);
    padding: 9px;
}

/* Header forms, menu and footer */
.headerSearch input[type=text],
.loginInput,
#searchtext,
#searchtext2,
#login input[type=text],
#login input[type=password],
.loginMenuForm input[type=text],
.loginMenuForm input[type=password] {
    border-color: rgba(150,190,230,.68);
    background: rgba(0,8,16,.92);
    color: #f3fff8;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.045), 0 1px 7px rgba(0,0,0,.45);
}

.headerSearch input[type=text]:hover,
.loginInput:hover,
#searchtext:hover,
#searchtext2:hover,
#login input[type=text]:hover,
#login input[type=password]:hover,
.loginMenuForm input[type=text]:hover,
.loginMenuForm input[type=password]:hover {
    border-color: rgba(185,220,255,.84);
    background: rgba(0,10,20,.96);
}

.headerSearch input[type=text]:focus,
.loginInput:focus,
#searchtext:focus,
#searchtext2:focus,
#login input[type=text]:focus,
#login input[type=password]:focus,
.loginMenuForm input[type=text]:focus,
.loginMenuForm input[type=password]:focus {
    outline: none;
    border-color: rgba(205,230,255,.95);
    background: rgba(0,12,24,.98);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 0 0 2px rgba(85,150,220,.22), 0 2px 9px rgba(0,0,0,.55);
}

.searchbutton,
#searchbox input[type=button],
.headerSearch input[type=button],
#headerMobNav img[alt="hledat"],
.loginButton,
#dialogFooter input,
#dialogHead button {
    border-color: rgba(155,205,255,.78);
    background: linear-gradient(180deg, rgba(31,76,122,.98), rgba(13,38,68,.98));
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 1px 7px rgba(0,0,0,.50);
}

.searchbutton:hover,
#searchbox input[type=button]:hover,
.headerSearch input[type=button]:hover,
.loginButton:hover,
#dialogFooter input:hover,
#dialogHead button:hover {
    border-color: rgba(210,235,255,.96);
    background: linear-gradient(180deg, rgba(45,98,150,.98), rgba(20,55,94,.98));
    color: #ffffff;
}

.loginExpanded,
.loginToggle {
    border-color: rgba(150,190,230,.42);
    background: rgba(0,8,16,.72);
    box-shadow: 0 2px 10px rgba(0,0,0,.30);
}

#menu {
    background: linear-gradient(90deg, rgba(255,255,255,.018), rgba(255,255,255,.010));
}

#suberMenu {
    border-left: 1px solid rgba(150,170,190,.16);
    box-shadow: inset 8px 0 14px -16px rgba(140,190,255,.60);
}

#footer,
.dmFooter {
    border-top: 1px solid rgba(150,170,190,.20);
    background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
    color: rgba(240,255,245,.76);
    padding: 13px 16px 15px 16px;
    margin-top: 16px;
    line-height: 1.45em;
    box-shadow: inset 0 8px 18px -22px rgba(140,190,255,.70);
}

.dmFooter a,
#footer a {
    font-weight: normal;
}

.dmFooterMeta {
    font-size: 92%;
    opacity: .72;
    margin-bottom: 6px;
}

.dmFooterLegal {
    max-width: 980px;
    margin: 0 auto;
    font-size: 96%;
}

.itemedited {
    padding: 4px 8px 8px 8px;
    margin-bottom: 7px;
    border-bottom: 1px solid rgba(150,170,190,.12);
    color: rgba(240,255,245,.82);
}

@media screen {
    #menu {
        border-top: 1px solid rgba(150,170,190,.18);
        box-shadow: inset 0 9px 15px -20px rgba(140,190,255,.60);
    }
}

@media screen {
    #menu {
        border-right: 1px solid rgba(150,170,190,.20);
        border-top: none;
        box-shadow: inset -10px 0 18px -20px rgba(140,190,255,.75);
    }
}

@media screen and (min-width: 1900px) {
    #middle {
        border-left: 1px solid rgba(150,170,190,.14);
        border-right: 1px solid rgba(150,170,190,.14);
    }

    #footer,
    .dmFooter {
        border: 1px solid rgba(150,170,190,.18);
        border-top-color: rgba(150,170,190,.24);
        border-radius: 0 0 8px 8px;
    }

}


/* Search whisper */
#whisper,
.dmWhisper {
    width: min(460px, calc(100vw - 22px));
    max-width: calc(100vw - 22px);
    padding: 6px;
    box-sizing: border-box;
    border: 1px solid rgba(150,190,230,.38);
    border-radius: 12px;
    background: rgba(0,8,16,.96);
    color: #f3fff8;
    box-shadow: 0 18px 36px rgba(0,0,0,.68), inset 0 1px 0 rgba(255,255,255,.045);
    backdrop-filter: blur(3px);
    overflow: hidden;
}

#whisper.dmWhisperVisible {
    visibility: visible;
}

#whisper .dmWhisperItem {
    display: block;
    padding: 8px 10px;
    margin: 0 0 3px 0;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: honeydew;
    cursor: pointer;
    line-height: 1.22em;
    transition: background-color .12s ease, border-color .12s ease, transform .12s ease;
}

#whisper .dmWhisperItem:last-child {
    margin-bottom: 0;
}

#whisper .dmWhisperItem:hover,
#whisper .dmWhisperItem.h {
    border-color: rgba(145,200,255,.42);
    background: rgba(38,86,132,.46);
    transform: translateX(2px);
}

#whisper .dmWhisperTitle {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10.5pt;
    line-height: 1.35em;
}

#whisper .dmWhisperTitle a {
    font-weight: bold;
}


#whisper .dmWhisperItem a,
#whisper .dmWhisperItem:hover a,
#whisper .dmWhisperItem.h a {
    text-decoration: none;
}


/* Article previous/next navigation */
.itemTitle.itemNav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 2.2fr) minmax(0, 1fr);
    grid-template-areas: "prev head next";
    align-items: start;
    gap: 10px;
    margin: 18px 10px 15px 10px;
    padding: 0 0 11px 0;
    border-bottom: 1px solid rgba(150,170,190,.16);
}

.itemNav .itemprev,
.itemNav .itemnext,
.itemNav .itemhead {
    min-width: 0;
}

.itemNav .itemprev {
    grid-area: prev;
    margin-left: 0;
    text-align: left;
}

.itemNav .itemnext {
    grid-area: next;
    text-align: right;
}

.itemNav .itemhead {
    grid-area: head;
    text-align: center;
    flex-basis: auto;
    flex-grow: 0;
}

.itemNav .itemhead .title,
.itemNav .itemhead .title2,
.itemNav .itemhead .subtitle {
    margin-left: auto;
    margin-right: auto;
}

.itemNav .itemhead .title {
    line-height: 1.12em;
}

.itemNav .itemhead .subtitle,
.itemNav .itemhead .redirinfo,
.itemNav .itemhead .slovnikcat {
    margin-top: .35rem;
}

.itemNavSide {
    padding-top: .35rem;
}

.itemNavPrev {
    justify-self: start;
}

.itemNavNext {
    justify-self: end;
}

.itemNavLink {
    display: flex;
    align-items: center;
    gap: .38rem;
    min-height: 28px;
    max-width: 100%;
    box-sizing: border-box;
    padding: 5px 9px;
    border: 1px solid rgba(150,190,230,.30);
    border-radius: 999px;
    background: rgba(0,8,16,.46);
    color: var(--dm-color-link) !important;
    font-weight: normal !important;
    line-height: 1.18em;
    text-decoration: none !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}

.itemNavLink:hover {
    border-color: rgba(170,210,255,.50);
    background: rgba(31,76,122,.34);
    color: #ffffff !important;
    text-decoration: none !important;
}

.itemNavText {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.itemNavArrow {
    flex: 0 0 auto;
    opacity: .78;
}


/* Navigace článků: na úzké obrazovce nejprve oba směrové odkazy, potom nadpis. */
@media screen and (max-width: 650px) {
    .itemTitle.itemNav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "prev next"
            "head head";
        column-gap: 8px;
        row-gap: 8px;
    }

    .itemTitle.itemNav .itemNavSide {
        width: 100%;
    }
}

@media print {
    .itemTitle.itemNav {
        display: block;
        border-bottom: 0;
        margin: 0 0 10px 0;
        padding: 0;
    }

    .itemNav .itemhead {
        margin-left: auto;
        margin-right: auto;
    }
}


/* Moderní seznam dílů ---------------------------------------------------- */
.dilListHero {
    max-width: 1120px;
    margin: .35rem auto .75rem auto;
    padding: .7rem .9rem;
    border: 1px solid rgba(128,128,128,.22);
    border-radius: 7px;
    background: rgba(9,13,19,.78);
    box-shadow: 0 8px 18px rgba(0,0,0,.20);
    text-align: center;
}

.dilListHero h1 {
    margin: 0;
    font-size: 1.45rem;
    line-height: 1.2;
}

.dilListHeroSub {
    margin-top: .18rem;
    opacity: .68;
    font-size: .88rem;
}

.dilListModern {
    max-width: 1120px;
    margin: .55rem auto 1.1rem auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid rgba(128,128,128,.23);
    border-radius: 7px;
    background: rgba(5,8,12,.54);
    box-shadow: 0 10px 24px rgba(0,0,0,.16);
}

.dilListGrid {
    display: grid;
    align-items: center;
    gap: .65rem;
}

.dilListGridAuthor {
    grid-template-columns: 4.9rem minmax(30rem, max-content) minmax(16rem, 1fr);
}

.dilListGridNoAuthor {
    grid-template-columns: 4.9rem minmax(18rem, 1fr);
}

.dilListHeader {
    position: sticky;
    top: 0;
    z-index: 8;
    padding: .42rem .7rem .38rem .7rem;
    color: rgba(240,255,240,.82);
    font-size: .76rem;
    font-weight: bold;
    letter-spacing: .035em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(160,190,220,.28);
    border-radius: 7px 7px 0 0;
    background: linear-gradient(180deg, rgba(31,42,54,.98), rgba(17,25,34,.98));
    box-shadow: 0 3px 10px rgba(0,0,0,.28);
}

.dilListRow {
    padding: .34rem .7rem;
    border-bottom: 1px solid rgba(128,128,128,.13);
    background: rgba(8,12,18,.58);
    transition: background-color .12s ease, border-color .12s ease;
}

.dilListRow:last-child {
    border-bottom: 0;
    border-radius: 0 0 7px 7px;
}

.dilListRow:nth-of-type(even) {
    background: rgba(14,18,26,.66);
}

.dilListRow:hover {
    border-bottom-color: rgba(120,170,220,.30);
    background: rgba(20,29,40,.92);
}

.dilListRow a {
    font-weight: normal;
}

.dilListNo {
    text-align: right;
    font-size: .95rem;
    font-weight: bold;
    white-space: nowrap;
}

.dilListNo a {
    display: inline-block;
    min-width: 3rem;
    padding: .05rem .32rem;
    border-radius: 4px;
    background: rgba(80,105,130,.18);
    color: var(--dm-color-link);
}

.dilListAuthor {
    min-width: 30rem;
    color: rgba(240,255,240,.82);
    font-size: .9rem;
    line-height: 1.2;
    white-space: nowrap;
}

.dilListName {
    min-width: 0;
    line-height: 1.22;
    overflow-wrap: anywhere;
}

.dilListName a,
.dilListAuthor a {
    display: inline;
}

.dilListNameTitle {
    font-weight: bold;
}

.dilListMuted,
.dilListEmpty {
    color: rgba(240,255,240,.52);
    font-style: italic;
}

.dilListEmpty {
    padding: .85rem;
    text-align: center;
    background: rgba(8,12,18,.55);
}


/* moderní přehled cyklů v kategorii */
.cyklusCategoryModern {
    max-width: 100%;
}

.cyklusCategorySummary {
    display: flex;
    justify-content: flex-end;
    gap: .45rem;
    margin: .25rem 0 .55rem 0;
}

.cyklusCategorySummaryItem {
    display: inline-flex;
    align-items: baseline;
    gap: .32rem;
    padding: .24rem .55rem;
    border: 1px solid rgba(128, 128, 128, .28);
    border-radius: 7px;
    background: rgba(15, 20, 27, .88);
}

.cyklusCategorySummaryItem span {
    font-weight: 700;
    color: var(--dm-color-link);
}

.cyklusCategorySummaryItem small {
    opacity: .72;
}

.cyklusCategoryTableWrap {
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid rgba(128, 128, 128, .34);
    border-radius: 7px;
    background: rgba(8, 10, 14, .72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.cyklusCategoryTable {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: .94rem;
}

.cyklusCategoryTable th {
    position: sticky;
    top: 0;
    z-index: 7;
    padding: .44rem .58rem;
    text-align: left;
    color: #f2f7ff;
    background: rgba(25, 34, 46, .98);
    border-bottom: 1px solid rgba(170, 185, 205, .35);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .05);
    white-space: nowrap;
}

.cyklusCategoryTable td {
    padding: .36rem .58rem;
    border-bottom: 1px solid rgba(128, 128, 128, .16);
    vertical-align: middle;
}

.cyklusCategoryTable tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, .025);
}

.cyklusCategoryTable tbody tr:hover td {
    background: rgba(104, 184, 255, .075);
}

.cyklusCategoryTable tbody tr:last-child td {
    border-bottom: 0;
}

.cyklusCategoryColNo,
.cyklusCategoryNo {
    width: 4.8rem;
    text-align: right !important;
}

.cyklusCategoryNo a {
    display: inline-block;
    min-width: 3rem;
    padding: .12rem .36rem;
    border: 1px solid rgba(128, 128, 128, .28);
    border-radius: 5px;
    background: rgba(0, 0, 0, .24);
    text-align: center;
}

.cyklusCategoryColVolumes,
.cyklusCategoryVolumes {
    min-width: 8.5rem;
    white-space: nowrap;
    text-align: center;
}

.cyklusCategoryColTime,
.cyklusCategoryTime {
    min-width: 10rem;
    white-space: nowrap;
    text-align: center;
}

.cyklusCategoryColName,
.cyklusCategoryName {
    min-width: 18rem;
}

.cyklusCategoryName a {
    font-weight: 700;
}

.cyklusCategoryColUber,
.cyklusCategoryUber {
    min-width: 14rem;
}

.cyklusCategoryUber {
    color: rgba(245, 245, 245, .86);
    background: rgba(255, 255, 255, .018);
}

.cyklusCategoryRangeDash {
    display: inline-block;
    margin: 0 .32rem;
    opacity: .65;
}

.cyklusCategoryMuted {
    opacity: .52;
    font-style: italic;
}

.cyklusCategoryEmpty {
    margin: 1rem 0;
    padding: .8rem 1rem;
    border: 1px solid rgba(128, 128, 128, .28);
    border-radius: 7px;
    background: rgba(255, 255, 255, .035);
    text-align: center;
    opacity: .82;
}


/* Parserové tabulky ({| ... |}) */
.parserTableWrap {
    margin: 1em 0 1.2em 0;
    overflow-x: auto;
    border: 1px solid rgba(128, 128, 128, .28);
    border-radius: 7px;
    background: rgba(255, 255, 255, .025);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045);
}

.parserTableWrapCenter {
    max-width: max-content;
    margin-left: auto;
    margin-right: auto;
}

.parserTable {
    width: 100%;
    min-width: 420px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: .96em;
    line-height: 1.35;
}

.parserTableCenter {
    width: auto;
    margin-left: auto;
    margin-right: auto;
}

.parserTable th,
.parserTable td {
    padding: .48rem .72rem;
    border: 0;
    border-bottom: 1px solid rgba(128, 128, 128, .18);
    vertical-align: top;
}

.parserTable th {
    position: sticky;
    top: 0;
    z-index: 5;
    background: rgba(34, 43, 54, .96);
    color: rgba(255, 255, 255, .94);
    font-weight: 700;
    text-align: left;
    border-bottom-color: rgba(170, 190, 210, .36);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .05), 0 2px 7px rgba(0, 0, 0, .22);
}

.parserTableHeaderRow th:first-child {
    border-top-left-radius: 6px;
}

.parserTableHeaderRow th:last-child {
    border-top-right-radius: 6px;
}

.parserTableBodyRow:nth-child(odd) td {
    background: rgba(255, 255, 255, .018);
}

.parserTableBodyRow:hover td {
    background: rgba(104, 184, 255, .075);
}

.parserTable tr:last-child td,
.parserTable tr:last-child th {
    border-bottom: 0;
}

.parserTableSeparate {
    border-spacing: 0 3px;
    padding: 3px;
}

.parserTableSeparate th,
.parserTableSeparate td {
    border-top: 1px solid rgba(128, 128, 128, .16);
    border-bottom: 1px solid rgba(128, 128, 128, .16);
    background: rgba(255, 255, 255, .025);
}

.parserTableSeparate th:first-child,
.parserTableSeparate td:first-child {
    border-left: 1px solid rgba(128, 128, 128, .16);
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

.parserTableSeparate th:last-child,
.parserTableSeparate td:last-child {
    border-right: 1px solid rgba(128, 128, 128, .16);
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

.parserTableCellLeft {
    text-align: left;
}

.parserTableCellRight {
    text-align: right;
}

.parserTableCellCenter {
    text-align: center;
}

.parserTableCellJustify {
    text-align: justify;
}


/* Parser macros: SeznamDílů, PřehledDílů, StatistikaAutora */
.parserMacroVolumeList,
.parserMacroVolumeCards,
.parserAuthorStats {
    margin: 1rem 0 1.25rem;
}

.parserMacroVolumeList {
    overflow-x: auto;
    border: 1px solid rgba(128, 128, 128, .28);
    border-radius: 7px;
    background: rgba(255, 255, 255, .025);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045);
}

.parserMacroVolumeGridCompact {
    display: grid;
    grid-template-columns: 4.6rem 4.8rem minmax(12rem, max-content) minmax(16rem, 1fr);
    align-items: center;
    gap: 0;
    min-width: 620px;
}

.parserMacroVolumeHead {
    position: sticky;
    top: 0;
    z-index: 5;
    padding: .46rem .68rem;
    background: rgba(34, 43, 54, .97);
    color: rgba(255, 255, 255, .94);
    font-size: .88em;
    font-weight: 700;
    border-bottom: 1px solid rgba(170, 190, 210, .36);
    box-shadow: 0 2px 7px rgba(0, 0, 0, .22);
}

.parserMacroVolumeRow {
    padding: .42rem .68rem;
    border-bottom: 1px solid rgba(128, 128, 128, .16);
}

.parserMacroVolumeRow:nth-child(odd) {
    background: rgba(255, 255, 255, .018);
}

.parserMacroVolumeRow:hover {
    background: rgba(104, 184, 255, .075);
}

.parserMacroVolumeList .parserMacroVolumeRow:last-child {
    border-bottom: 0;
}

.parserMacroVolumeNo {
    font-weight: 700;
    text-align: right;
    padding-right: .8rem;
    white-space: nowrap;
}

.parserMacroVolumeCover {
    text-align: center;
}

.parserMacroVolumeCover img {
    max-width: 42px;
    max-height: 58px;
    border-radius: 3px;
    vertical-align: middle;
    box-shadow: 0 2px 7px rgba(0, 0, 0, .22);
}

.parserMacroVolumeAuthor {
    padding: 0 .9rem;
    white-space: nowrap;
}

.parserMacroVolumeTitle {
    min-width: 0;
    font-weight: 600;
}

.parserMacroMuted,
.parserMacroEmpty {
    color: rgba(235, 245, 255, .62);
}

.parserMacroEmpty {
    margin: 1rem 0;
    padding: .7rem .9rem;
    border: 1px solid rgba(128, 128, 128, .24);
    border-radius: 7px;
    background: rgba(255, 255, 255, .025);
}

.parserMacroVolumeCards {
    display: grid;
    gap: .75rem;
}

.parserMacroVolumeCard {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: .9rem;
    padding: .75rem .85rem;
    border: 1px solid rgba(128, 128, 128, .24);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .018));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045);
}

.parserMacroVolumeCard:hover {
    border-color: rgba(104, 184, 255, .34);
    background: linear-gradient(180deg, rgba(104, 184, 255, .075), rgba(255, 255, 255, .022));
}

.parserMacroVolumeCardCover {
    text-align: center;
}

.parserMacroVolumeCardCover img {
    max-width: 78px;
    max-height: 112px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .28);
}

.parserMacroVolumeCardBody {
    min-width: 0;
}

.parserMacroVolumeCardMeta,
.parserMacroVolumeCardAuthor,
.parserMacroVolumeCardSubtitle {
    color: rgba(235, 245, 255, .72);
    font-size: .9em;
}

.parserMacroVolumeCard h3 {
    margin: .08rem 0 .18rem;
    font-size: 1.12em;
    line-height: 1.25;
}

.parserMacroVolumeCardAuthor {
    margin-bottom: .18rem;
}

.parserMacroVolumeCardSubtitle {
    margin: .2rem 0 .35rem;
    font-style: italic;
}

.parserMacroVolumeCardText {
    color: rgba(245, 250, 255, .86);
    line-height: 1.45;
}

.parserMacroVolumeCardText p:first-child {
    margin-top: 0;
}

.parserMacroVolumeCardText p:last-child {
    margin-bottom: 0;
}

.parserAuthorStatsIntro {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .35rem .75rem;
    margin: 0 0 .75rem;
    padding: .65rem .8rem;
    border: 1px solid rgba(128, 128, 128, .24);
    border-radius: 7px;
    background: rgba(255, 255, 255, .025);
}

.parserAuthorStatsLabel {
    color: rgba(235, 245, 255, .64);
    font-size: .86em;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.parserAuthorStatsGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));
    align-items: start;
    gap: .85rem;
}

.parserAuthorStatsGroup {
    overflow: hidden;
    border: 1px solid rgba(128, 128, 128, .25);
    border-radius: 7px;
    background: rgba(255, 255, 255, .024);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.parserAuthorStatsGroup h3 {
    margin: 0;
    padding: .58rem .72rem .18rem;
    font-size: 1.02em;
    line-height: 1.25;
}

.parserAuthorStatsCount {
    padding: 0 .72rem .48rem;
    color: rgba(235, 245, 255, .62);
    font-size: .88em;
}

.parserAuthorStatsTable {
    border-top: 1px solid rgba(128, 128, 128, .20);
}

.parserAuthorStatsHead,
.parserAuthorStatsRow {
    display: grid;
    grid-template-columns: 4.4rem minmax(0, 1fr);
    align-items: baseline;
    gap: .7rem;
}

.parserAuthorStatsHead {
    padding: .42rem .72rem;
    background: rgba(34, 43, 54, .92);
    color: rgba(255, 255, 255, .9);
    font-size: .82em;
    font-weight: 700;
    border-bottom: 1px solid rgba(170, 190, 210, .28);
}

.parserAuthorStatsRow {
    padding: .38rem .72rem;
    border-bottom: 1px solid rgba(128, 128, 128, .14);
}

.parserAuthorStatsRow:nth-child(odd) {
    background: rgba(255, 255, 255, .018);
}

.parserAuthorStatsRow:hover {
    background: rgba(104, 184, 255, .07);
}

.parserAuthorStatsRow:last-child {
    border-bottom: 0;
}

.parserAuthorStatsNo {
    text-align: right;
    font-weight: 700;
    white-space: nowrap;
}

.parserAuthorStatsTitle {
    min-width: 0;
}


/* Parser paragraphs and lists */
#itemtext p.parserParagraph {
    margin: .45rem 0 .78rem;
    line-height: 1.5;
    text-indent: 1em;
}

#itemtext H1 + p.parserParagraph,
#itemtext H2 + p.parserParagraph,
#itemtext H3 + p.parserParagraph,
#itemtext H4 + p.parserParagraph,
#itemtext H5 + p.parserParagraph,
#itemtext H6 + p.parserParagraph {
    margin-top: 0;
}

#itemtext p.parserParagraph.np {
    margin-bottom: .18rem;
}

#itemtext p.parserParagraph.pd {
    margin-bottom: 1.15rem;
}

#itemtext p.parserParagraph:first-child {
    margin-top: 0;
}

#itemtext p.parserParagraph:last-child {
    margin-bottom: 0;
}

#itemtext .parserListBlock.tree {
    margin: .35rem 0 .9rem .75rem;
}

#itemtext p.parserParagraph + .parserListBlock.tree {
    margin-top: .1rem;
}

#itemtext .parserListBlock.tree + p.parserParagraph {
    margin-top: .55rem;
}

#itemtext .parserListBlock.tree + .parserListBlock.tree {
    margin-top: .45rem;
}

#itemtext .parserList {
    margin: 0 0 0 1.45rem;
    padding: 0;
    line-height: 1.42;
}

#itemtext .parserList .parserList {
    margin-top: .18rem;
    margin-bottom: .12rem;
}

#itemtext .parserListItem {
    margin: .12rem 0;
    padding-left: .12rem;
    line-height: 1.42;
}

#itemtext .parserListItem::marker {
    color: rgba(104, 184, 255, .86);
    font-weight: 700;
}

#itemtext .parserListItem > p.parserParagraph {
    text-indent: 0;
    margin: .2rem 0 .45rem;
}

#itemtext .parserListBlock.tree + h1,
#itemtext .parserListBlock.tree + h2,
#itemtext .parserListBlock.tree + h3,
#itemtext .parserListBlock.tree + h4,
#itemtext .parserListBlock.tree + h5 {
    margin-top: 1rem;
}


/* Slovník item extinfo and tag chips */
.slovnikItemModern {
    position: relative;
}

.slovnikArticleText {
    min-width: 0;
}

.extinfo.slovnikExtInfo {
    float: right;
    clear: right;
    width: min(28rem, 38vw);
    max-width: 100%;
    margin: .35rem 0 1rem 1.15rem;
    text-align: left;
}

.extinfo.slovnikExtInfoDatehash {
    width: min(30rem, 42vw);
}

.extinfo.slovnikExtInfoImage {
    width: min(17rem, 28vw);
}

.slovnikExtCard,
.slovnikExtImageCard {
    overflow: hidden;
    border: 1px solid rgba(150, 170, 190, .24);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018));
    box-shadow: 0 10px 26px rgba(0,0,0,.22);
}

.slovnikExtTitle {
    margin: 0;
    padding: .55rem .72rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.045);
    font-size: 100%;
    line-height: 1.25;
    text-align: left;
}

.slovnikExtRows {
    padding: .18rem 0;
}

.slovnikExtRow {
    display: grid;
    grid-template-columns: minmax(7.5rem, .75fr) minmax(0, 1.25fr);
    gap: .55rem;
    padding: .42rem .72rem;
    border-bottom: 1px solid rgba(255,255,255,.055);
}

.slovnikExtRow:last-child,
.slovnikExtText:last-child,
.slovnikExtSubhead:last-child {
    border-bottom: 0;
}

.slovnikExtKey {
    color: rgba(240,255,245,.74);
    font-size: 92%;
    line-height: 1.35;
}

.slovnikExtValue {
    min-width: 0;
    line-height: 1.35;
}

.slovnikExtValue p,
.slovnikExtText p {
    margin: 0;
}

.slovnikExtSubhead {
    padding: .5rem .72rem .38rem;
    border-bottom: 1px solid rgba(255,255,255,.055);
    background: rgba(255,255,255,.025);
    font-weight: bold;
    letter-spacing: .015em;
}

.slovnikExtText {
    padding: .48rem .72rem;
    border-bottom: 1px solid rgba(255,255,255,.055);
    line-height: 1.42;
}

.slovnikExtDatehashBlock {
    padding: .65rem .72rem .75rem;
    border-bottom: 1px solid rgba(255,255,255,.075);
}

.slovnikExtDatehashBlock:last-child {
    border-bottom: 0;
}

.slovnikExtDatehashHead,
.slovnikExtDatehashLine {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .55rem;
    align-items: baseline;
    margin-bottom: .45rem;
    font-size: 92%;
}

.slovnikExtDatehashLine {
    grid-template-columns: minmax(7.5rem, .8fr) minmax(0, 1.2fr);
}

.slovnikExtDatehashLine span,
.slovnikExtDatehashHead span {
    color: rgba(240,255,245,.72);
}

.slovnikExtDatehashAction {
    margin: .42rem 0 .55rem;
    text-align: center;
    font-size: 92%;
}

.slovnikExtDatehashAction a,
.slovnikExtDatehashHead a {
    font-weight: normal;
}

.slovnikExtGraph {
    padding: .25rem;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    background: rgba(0,0,0,.20);
    text-align: center;
}

.slovnikExtGraph .extinfohashimg,
.extinfohashimg {
    display: block;
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: 0 auto;
}

.slovnikExtError {
    margin: .65rem .72rem;
    padding: .55rem .65rem;
    border: 1px solid rgba(255,90,90,.42);
    border-radius: 8px;
    background: rgba(110,0,0,.24);
    color: #ffd6d6;
    font-size: 92%;
}

.slovnikExtImageCard {
    padding: .45rem;
    text-align: center;
}

.slovnikExtImageCard img {
    max-width: 100%;
    height: auto;
}


.slovnikItemTags {
    clear: both;
    margin: 1.15rem 0 .45rem;
    padding: .7rem .8rem;
    border: 1px solid rgba(150, 170, 190, .22);
    border-radius: 10px;
    background: rgba(255,255,255,.025);
    text-align: left;
}

.slovnikItemTagsLabel {
    margin-bottom: .45rem;
    color: rgba(240,255,245,.72);
    font-size: 90%;
    font-weight: bold;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.slovnikItemTagList {
    display: flex;
    flex-wrap: wrap;
    gap: .38rem;
}

.slovnikItemTag {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: .22rem .52rem;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    background: rgba(255,255,255,.045);
    font-weight: normal !important;
    line-height: 1.25;
    text-decoration: none;
}

.slovnikItemTag:hover {
    background: rgba(255,255,255,.10);
    text-decoration: none;
}


/* Chronology date extinfo */
.extinfo.chronoDatesExtInfo {
    float: right;
    clear: right;
    width: min(30rem, 42vw);
    max-width: 100%;
    margin: .35rem 0 1rem 1.15rem;
    text-align: left;
}

.chronoDatesCard {
    min-width: 18rem;
}

.chronoDatesTitle {
    font-size: 98%;
}

.chronoDateRow {
    grid-template-columns: minmax(9rem, .85fr) minmax(0, 1.15fr);
}

.chronoDateKey {
    white-space: normal;
}

.chronoDateValue {
    word-break: normal;
    overflow-wrap: anywhere;
}


/* Volume item page */
.dilItemModern {
    position: relative;
}


.dilSidePanel {
    float: right;
    clear: right;
    box-sizing: border-box;
    width: min(22rem, 36vw);
    max-width: 100%;
    margin: .35rem 0 1rem 1.15rem;
    padding: 0 0 .72rem .72rem;
    border: 0;
    border-left: 1px solid rgba(150,170,190,.30);
    border-bottom: 1px solid rgba(150,170,190,.26);
    border-radius: 0 0 0 8px;
    background: transparent;
    box-shadow: none;
    text-align: center;
}

#dil2covers.dilSidePanel,
#dily2ilus.dilSidePanel {
    clear: right;
    padding-left: .72rem;
    padding-bottom: .72rem;
    border: 0;
    border-left: 1px solid rgba(150,170,190,.30);
    border-bottom: 1px solid rgba(150,170,190,.26);
}

#dil2covers.dilSidePanel {
    width: auto;
    max-width: calc(100% - 1.15rem);
}

.dilCoverPanel {
    width: auto;
}

.dilCoverMain,
.dilCoverAlt {
    min-width: 0;
}

.dilCoverMain,
#dil2maincovers.dilCoverMain {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
    align-items: flex-start;
}

.dilCoverMain a,
#dil2maincovers a,
.dilCoverMain span,
#dil2maincovers span {
    display: inline-block;
    line-height: 0;
}

.dilCoverMain img,
#dil2maincovers img {
    width: auto;
    max-width: none;
    height: 290px;
    box-sizing: border-box;
    border-radius: 6px;
    box-shadow: 0 8px 18px rgba(0,0,0,.24);
}

.dilCoverAlt {
    margin-top: .75rem;
    padding-top: .65rem;
    border-top: 1px solid rgba(255,255,255,.08);
}

.dilCoverAlt h2,
.dilIllusPanel h2 {
    margin: 0 0 .5rem 0;
    font-size: 95%;
    line-height: 1.25;
    color: rgba(240,255,245,.86);
}

.dilCoverAltGrid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .45rem;
    align-items: flex-start;
}

.dilCoverAltGrid a,
.dilCoverAltGrid span {
    display: inline-block;
    min-width: 0;
    line-height: 0;
}

.dilCoverAltGrid img,
#dil2othercover img {
    width: auto;
    max-width: none;
    height: 100px;
    box-sizing: border-box;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,.16);
    padding: 1px;
    margin: 0;
}

.dil2cvrcpr {
    margin-top: .45rem;
    text-align: center;
    color: rgba(240,255,245,.58);
    font-size: 82%;
    line-height: 1.28;
}

.dilCoverMain .dil2cvrcpr,
#dil2maincovers .dil2cvrcpr {
    flex: 0 0 100%;
}

.dilItemInfoCard,
.dilItemStoryCard {
    margin: .5rem 0 1rem 0;
    max-width: 58rem;
}

.dilItemInfoRow .slovnikExtKey {
    min-width: 0;
}

.dilItemVolume {
    display: inline-block;
    margin-left: .45rem;
    color: rgba(240,255,245,.68);
    font-size: 92%;
}

.dilItemCzechTitle {
    font-size: 108%;
}

.dilItemOriginalTitle {
    color: rgba(240,255,245,.70);
    font-style: italic;
}

.dilItemMuted {
    color: rgba(240,255,245,.55);
}

.dilItemCycleSep {
    display: inline-block;
    margin: 0 .45rem;
    color: rgba(240,255,245,.46);
}

.dilItemStoryCard .slovnikExtValue p,
.dilItemInfoCard .slovnikExtValue p {
    margin: 0;
}


.dilypost.dilItemCharactersBody {
    margin: 0;
    padding: .62rem .8rem .7rem;
    text-align: left;
}

.dilItemText {
    margin-top: 1rem;
    min-width: 0;
}

.dilItemText p:first-child {
    margin-top: 0;
}

.dilItemEmptyText {
    color: rgba(240,255,245,.62);
    font-style: italic;
}

#dily2ilus.dilIllusPanel {
    width: min(16.5rem, 30vw);
    text-align: center;
}

.dilIllusGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .45rem;
    align-items: start;
}

#dily2ilus.dilIllusPanel a,
#dily2ilus.dilIllusPanel span {
    display: block;
    min-width: 0;
}

#dily2ilus.dilIllusPanel img,
.dilIllusGrid img {
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
    box-sizing: border-box;
    padding: 1px !important;
    margin: 0 !important;
    border: 1px solid rgba(255,255,255,.16) !important;
    border-radius: 6px;
    background: rgba(0,0,0,.22);
}


.dilypostnad.dilItemSectionTitle {
    display: block;
    clear: none;
    margin: 1.1rem 0 .25rem 0;
    padding-left: .65rem;
    border-left: 3px solid rgba(150,170,190,.32);
    color: rgba(240,255,245,.82);
    font-weight: bold;
}

.dilItemCharactersPlain,
.dilypost.dilItemCharactersPlain {
    margin: 0 0 1rem 1.1rem;
    padding: .25rem 0 .55rem 1.05rem;
    border-left: 1px solid rgba(150,170,190,.22);
    text-align: left;
}

.dilItemCharactersPlain p:first-child {
    margin-top: 0;
}

.dilItemCharactersPlain p:last-child {
    margin-bottom: 0;
}

.dilItemLinksPlain.dilyodkazy {
    clear: both;
    margin: 1.7rem 4% .9rem 4%;
    padding: .75rem 0 0 0;
    border-top: 1px solid rgba(150,170,190,.22);
    text-align: justify;
    font-size: 10pt;
}

.dilItemLinksPlain p:first-child {
    margin-top: 0;
}

.dilItemLinksPlain p:last-child {
    margin-bottom: 0;
}


/* Cycle item info card */
.cyklusItemModern {
    position: relative;
}

.cyklusItemInfoCard {
    margin: .5rem 0 1rem 0;
    max-width: 58rem;
}

.cyklusItemInfoRow .slovnikExtKey {
    min-width: 0;
}

.cyklusItemVolumeCount,
.cyklusItemMuted {
    color: rgba(240,255,245,.58);
}

.cyklusItemIntro {
    max-width: 58rem;
    margin: .7rem 0 1.1rem 0;
    padding: .75rem .95rem;
    border: 1px solid rgba(150,170,190,.18);
    border-left: 3px solid rgba(150,170,190,.34);
    border-radius: 0 9px 9px 0;
    background: rgba(255,255,255,.025);
    line-height: 1.55;
}

.cyklusItemIntro p:first-child,
.cyklusItemText p:first-child {
    margin-top: 0;
}

.cyklusItemIntro p:last-child,
.cyklusItemText p:last-child {
    margin-bottom: 0;
}

.cyklusItemText {
    min-width: 0;
}


/* ShowWhatsNew helpers */
.whatsNewPage {
    text-align: left;
}

.whatsNewInfo,
.whatsNewEmpty {
    margin: 0 20px 10px 20px;
    padding: 6px 9px;
    border: 1px solid rgba(128, 128, 128, .28);
    border-radius: 6px;
    background: rgba(255, 255, 255, .035);
    color: rgba(240, 255, 245, .78);
    font-size: 90%;
    text-align: center;
}

.whatsNewDate {
    margin-top: 8px;
    margin-bottom: 2px;
}

.whatsNewSummary {
    color: darkgreen !important;
    vertical-align: top;
    margin-left: 20px;
    font-size: 80%;
}

.whatsNewPage .news_line,
.whatsNewLine {
    margin-left: 20px;
    line-height: 1.45;
}

.whatsNewLine A {
    font-weight: normal;
}


/* Internal image viewer */
.dmImageViewerOpen {
    overflow: hidden;
}

.dmImageViewerItem {
    cursor: zoom-in;
}

.dmImageViewer {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    grid-template-columns: minmax(3.2rem, 8vw) minmax(0, 1fr) minmax(3.2rem, 8vw);
    grid-template-rows: 1fr;
    align-items: center;
    justify-items: center;
    box-sizing: border-box;
    padding: 1.4rem;
    background: rgba(0, 0, 0, .88);
}

.dmImageViewer[hidden] {
    display: none !important;
}

.dmImageViewerFigure {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin: 0;
    min-width: 0;
    min-height: 0;
}

.dmImageViewerStage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 0;
    flex: 1 1 auto;
}

.dmImageViewerImage {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 8.8rem);
    width: auto;
    height: auto;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .55);
    opacity: 0;
    transition: opacity .12s ease-in-out;
    background: rgba(255, 255, 255, .04);
}

.dmImageViewerImageLoaded {
    opacity: 1;
}

.dmImageViewerLoading {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: .5rem .8rem;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(0, 0, 0, .72);
    color: rgba(245, 255, 245, .86);
    font-size: 90%;
    pointer-events: none;
}

.dmImageViewerCaption {
    flex: 0 0 auto;
    display: flex;
    gap: 1rem;
    align-items: baseline;
    justify-content: center;
    box-sizing: border-box;
    width: min(100%, 68rem);
    min-height: 2.2rem;
    margin-top: .65rem;
    padding: .55rem .85rem;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 9px;
    background: rgba(0, 0, 0, .42);
    color: rgba(245, 255, 245, .86);
    text-align: center;
}

.dmImageViewerCaptionText {
    min-width: 0;
    line-height: 1.35;
}

.dmImageViewerCounter {
    flex: 0 0 auto;
    color: rgba(245, 255, 245, .54);
    font-size: 90%;
    white-space: nowrap;
}

.dmImageViewerClose,
.dmImageViewerNav {
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(0, 0, 0, .45);
    color: rgba(245, 255, 245, .88);
    cursor: pointer;
    line-height: 1;
}

.dmImageViewerClose:hover,
.dmImageViewerNav:hover,
.dmImageViewerClose:focus,
.dmImageViewerNav:focus {
    background: rgba(255, 255, 255, .12);
    outline: none;
}

.dmImageViewerClose {
    position: fixed;
    right: 1.1rem;
    top: 1.1rem;
    z-index: 1;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 999px;
    font-size: 1.65rem;
}

.dmImageViewerNav {
    width: 3rem;
    height: 4.2rem;
    border-radius: 10px;
    font-size: 3rem;
}

.dmImageViewerPrev {
    grid-column: 1;
}

.dmImageViewerNext {
    grid-column: 3;
}


/* Image item detail */
.imageItemModern {
    text-align: left;
}

.imageItemDetailGrid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(22rem, 28rem);
    gap: 1.1rem;
    align-items: start;
    margin-top: .65rem;
}

.imageItemImageColumn {
    min-width: 0;
    text-align: center;
}

.imageItemFigure {
    margin: 0;
}

.imageItemImageFrame {
    display: inline-flex;
    max-width: 100%;
    padding: .45rem;
    border: 1px solid rgba(150, 170, 190, .18);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
    box-shadow: 0 10px 26px rgba(0,0,0,.22);
}

.imageItemImageLink {
    display: block;
    max-width: 100%;
    cursor: zoom-in;
}

.imageItemImage {
    display: block;
    max-width: 100%;
    height: auto !important;
    margin: 0;
    border-color: rgba(255,255,255,.18);
    border-radius: 6px;
    background: rgba(255,255,255,.035);
}

.imageItemCaption {
    max-width: 52rem;
    margin: .55rem auto 0;
    color: rgba(240,255,245,.76);
    font-size: 92%;
    line-height: 1.35;
    text-align: center;
}

.imageItemCaption span,
.imageItemDisplayNote {
    color: rgba(240,255,245,.62);
}

.imageItemInfoCard {
    width: 100%;
    max-width: 100%;
    text-align: left;
}

.imageItemInfoRow .slovnikExtKey {
    min-width: 0;
}

.imageItemInfoRow .slovnikExtValue {
    overflow-wrap: anywhere;
}

.imageItemInfoSubhead {
    margin-top: .1rem;
}

.imageItemDescription {
    margin-top: 0 !important;
    text-align: left !important;
    line-height: 1.4 !important;
}

/* Společné rozložení obsahových karet pod 650 px. */
@media screen and (max-width: 650px) {
    /* Přehled cyklů: místo dvou karet vedle sebe jedna pod druhou. */
    .cycleOverviewGrid {
        grid-template-columns: minmax(0, 1fr);
    }

    /* Slovník: při běžném zobrazení jsou infoboxy sourozenci #itemtext
       a v HTML stojí před ním. Změní se jen jejich vizuální pořadí. */
    .slovnikItemModern:has(> .extinfo.slovnikExtInfo) {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

    .slovnikItemModern:has(> .extinfo.slovnikExtInfo) > #itemtext {
        order: -1;
    }

    .slovnikItemModern > .slovnikItemTags {
        order: 1;
    }

    /* V režimu vícesloupcového textu jsou některé infoboxy přímo
       v #itemtext; ty přesuneme vizuálně za jeho ostatní obsah. */
    .slovnikItemModern #itemtext:has(> .extinfo.slovnikExtInfo) {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

    .slovnikItemModern #itemtext > .extinfo.slovnikExtInfo {
        order: 1;
    }

    .slovnikItemModern .extinfo.slovnikExtInfo {
        float: none;
        clear: none;
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        margin: .85rem 0 0;
    }

    /* Díly: obálky hned pod titulkem, před kartou základních údajů. */
    .dilItemModern > #dil2covers.dilSidePanel {
        float: none;
        clear: none;
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        margin: .55rem 0 1rem;
        padding: 0 0 .75rem;
        border: 0;
        border-bottom: 1px solid rgba(150,170,190,.26);
        border-radius: 0;
    }

    .dilItemModern #dil2maincovers img {
        max-width: 100%;
        height: auto;
        max-height: 290px;
    }
}

/* Chronologie: tabulku přepočtů letopočtů zobrazit až za textem článku. */
@media screen and (max-width: 650px) {
    #itemtext:has(> .chronoDatesExtInfo) {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

    #itemtext > .extinfo.chronoDatesExtInfo {
        order: 1;
        float: none;
        clear: none;
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        margin: 1rem 0 0;
    }

    #itemtext > .chronoDatesExtInfo .chronoDatesCard {
        min-width: 0;
    }
}

.imageItemDescription p {
    text-indent: 0 !important;
    margin-bottom: .55rem !important;
}

.imageItemDescription p:last-child {
    margin-bottom: 0 !important;
}

.imageItemMissing {
    padding: 1rem;
    border: 1px dashed rgba(255,120,120,.45);
    border-radius: 10px;
    background: rgba(120,0,0,.18);
    text-align: center;
}

.imageItemLinks {
    clear: both;
    margin-top: 1.25rem;
    padding: .75rem .9rem;
    border: 1px solid rgba(150, 170, 190, .18);
    border-radius: 10px;
    background: rgba(255,255,255,.025);
    text-align: left;
}

.imageItemLinks h3 {
    margin: 0 0 .35rem;
}

.imageItemLinks ul {
    margin: 0 0 0 1.4rem;
    padding: 0;
}

.imageItemLinks li {
    margin: .18rem 0;
}


/* Shared non-article page title */
.itemTitle.itemNav.pageTitleNavPlain {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "head";
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
}

.itemTitle.itemNav.pageTitleNavPlain .itemNavSide {
    display: none;
}

.itemTitle.itemNav.pageTitleNavPlain .itemhead {
    justify-self: center;
    width: 100%;
}


/* Poradna */
.poradnaPage {
    max-width: 1060px;
}

.poradnaHero,
.poradnaFormCard,
.poradnaPost {
    border: 1px solid rgba(150, 170, 190, .18);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(20, 28, 39, .92), rgba(8, 12, 18, .92));
    box-shadow: 0 12px 30px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.035);
}

.poradnaHero {
    max-width: 860px;
    margin: .35rem auto 1rem auto;
    padding: .9rem 1.1rem;
    text-align: center;
    color: rgba(235, 241, 248, .88);
}

.poradnaHero p {
    margin: .25rem 0;
    line-height: 1.5em;
}

.porform.poradnaFormCard {
    width: auto;
    max-width: 760px;
    box-sizing: border-box;
    margin: 0 auto 1.35rem auto;
    padding: 1rem 1.15rem 1.1rem 1.15rem;
    border-color: rgba(150, 190, 230, .24);
}

.poradnaFormCard h2 {
    margin: 0 0 .35rem 0;
    text-align: center;
    font-size: 1.35rem;
    color: #fff;
}

.poradnaFormIntro {
    max-width: 34rem;
    margin: 0 auto .9rem auto;
    text-align: center;
    color: rgba(235, 241, 248, .72);
    line-height: 1.42em;
}

.poradnaField {
    margin: .72rem 0;
}

.poradnaField label {
    display: block;
    margin: 0 0 .28rem 0;
    font-weight: bold;
    color: rgba(240, 246, 255, .92);
}

.porlabel {
    color: #ff778a;
    font-weight: normal;
}

.porform .poradnaInput,
.porform .poradnaTextarea,
.poradna_txt {
    width: 100% !important;
    box-sizing: border-box;
    border: 1px solid rgba(150, 190, 230, .32);
    border-radius: 8px;
    background: rgba(0, 8, 16, .62);
    color: #fff;
    padding: .5rem .6rem;
    outline: none;
}

.porform .poradnaInput:focus,
.porform .poradnaTextarea:focus,
.poradna_txt:focus {
    border-color: rgba(170, 215, 255, .72);
    box-shadow: 0 0 0 3px rgba(64, 142, 214, .18);
}

.poradnaTextarea {
    min-height: 150px;
    resize: vertical;
}

.poradnaSubmitLine {
    margin-top: .9rem;
    text-align: center;
}

.porform .poradnaSubmit,
.poradnaAnswerButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    box-sizing: border-box;
    border: 1px solid rgba(170, 210, 255, .46);
    border-radius: 999px;
    background: rgba(31, 76, 122, .42);
    color: #fff;
    padding: .45rem 1.1rem;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
}

.porform .poradnaSubmit {
    width: 100%;
    max-width: 22rem;
}

.porform .poradnaSubmit:hover,
.poradnaAnswerButton:hover {
    border-color: rgba(205, 230, 255, .7);
    background: rgba(62, 117, 175, .58);
    color: #fff;
}

#poradna.poradnaList {
    width: auto;
    max-width: 860px;
    margin: 0 auto;
}

.poradnaPost {
    overflow: hidden;
    margin: 0 0 1rem 0;
}

.portitle.poradnaPostHeader {
    margin: 0;
    padding: .85rem 1rem .75rem 1rem;
    border: 0;
    border-bottom: 1px solid rgba(150, 170, 190, .14);
    background: rgba(255,255,255,.035);
}

.poradnaPostKicker {
    margin: 0 0 .25rem 0;
    color: rgba(170, 210, 255, .8);
    font-size: .78rem;
    font-weight: bold;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.porotaz.poradnaPostTitle {
    margin: 0;
    padding: 0;
    font-size: 1.28rem;
    line-height: 1.24em;
    color: #fff;
}

.portazatel.poradnaPostMeta {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem .85rem;
    margin-top: .45rem;
    padding: 0;
    color: rgba(235, 241, 248, .7);
    font-size: .9rem;
}

.portazname {
    color: #ffe982;
}

.poradnaPostDate,
.poradnaPostIp {
    color: rgba(235, 241, 248, .58);
}

.pordotaz.poradnaPostBlock,
.porodpov.poradnaPostBlock {
    width: auto;
    margin: 0;
    padding: .85rem 1rem;
    border: 0;
}

.pordotaz.poradnaPostBlock {
    border-bottom: 1px solid rgba(150, 170, 190, .12);
}

.porodpov.poradnaPostBlock {
    background: rgba(0, 10, 18, .22);
}

.poradnaBlockTitle {
    margin-bottom: .32rem;
    color: rgba(170, 210, 255, .82);
    font-size: .82rem;
    font-weight: bold;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.poradnaBlockText {
    line-height: 1.55em;
    color: rgba(240, 246, 255, .88);
}

.poradnaBlockText p:first-child {
    margin-top: 0;
}

.poradnaBlockText p:last-child {
    margin-bottom: 0;
}

.poradnaMuted {
    color: rgba(235, 241, 248, .52);
    font-style: italic;
}

.poradnaPostFooter {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: .65rem 1rem .85rem 1rem;
}

.poruser.poradnaPostStatus,
.poruser.poradnaAnswerButton {
    width: auto;
    min-width: 0;
    margin: 0;
    text-align: center;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(150, 170, 190, .20);
    border-radius: 999px;
    padding: .35rem .8rem;
    color: rgba(235, 241, 248, .76);
    font-size: .9rem;
    font-style: normal;
}

.poruser.poradnaAnswerButton {
    color: #fff;
    background: rgba(31, 76, 122, .42);
    border-color: rgba(170, 210, 255, .46);
}

.poradnaWaiting {
    color: rgba(235, 241, 248, .55) !important;
}

.poradnaPost .poradna_txt {
    min-height: 120px;
    margin-top: .2rem;
}


/* --- Dead end / dosud neexistující článek --- */
.deadEndRequestStatus {
    min-height: 1.2em;
    max-width: 820px;
    margin: -18px auto 18px auto;
    padding: 0 18px;
    box-sizing: border-box;
    color: #9fd6a8;
    text-align: right;
    font-size: 85%;
}

.deadEndExplore {
    max-width: 820px;
    margin: 18px auto 30px auto;
    padding: 16px 18px 18px;
    border: 1px solid rgba(136, 152, 170, .32);
    border-radius: 8px;
    background: rgba(255, 255, 255, .025);
    box-sizing: border-box;
}

.deadEndExplore h2 {
    margin: 0 0 5px 0;
    font-size: 120%;
}

.deadEndExplore p {
    margin: 0 0 10px 0;
    opacity: .72;
}

.deadEndExplore ul {
    margin: 0;
    padding-left: 1.4em;
    columns: 2 250px;
    column-gap: 2em;
}

.deadEndExplore li {
    break-inside: avoid;
    margin: 2px 0;
}


/* --- Uživatelské nastavení a aktivní přihlášení --- */
.userSettingsPage {
    --user-card-bg: rgba(255,255,255,.035);
    --user-card-border: rgba(255,255,255,.13);
    --user-card-muted: rgba(255,255,255,.62);
    --user-card-soft: rgba(255,255,255,.07);
    max-width: 1050px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.userSettingsGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 1rem 0 1.35rem;
}

.userSettingsCard,
.userSessionsSection {
    overflow: hidden;
    border: 1px solid var(--user-card-border);
    border-radius: 13px;
    background: var(--user-card-bg);
}

.userSettingsCardHeader,
.userSettingsSectionHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.025);
}

.userSettingsCardHeader h2,
.userSettingsSectionHeader h2 {
    margin: 0 0 .2rem;
    font-size: 112%;
}

.userSettingsCardHeader p,
.userSettingsSectionHeader p {
    margin: 0;
    color: var(--user-card-muted);
    font-size: 86%;
    line-height: 1.35;
}

.userSettingsAccountRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
}

.userSettingsIdentity {
    display: flex;
    flex-direction: column;
    gap: .18rem;
}

.userSettingsIdentity strong {
    font-size: 120%;
}

.userSettingsIdentity span {
    color: var(--user-card-muted);
    font-size: 85%;
}

.userSettingsAction,
.userSettingsAction:link,
.userSettingsAction:visited {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: .25rem .7rem;
    border: 1px solid rgba(160,195,225,.32);
    border-radius: 8px;
    background: rgba(80,130,175,.13);
    font-size: 86%;
    font-weight: normal;
    text-decoration: none;
}

.userSettingsRows {
    padding: .25rem 1rem .45rem;
}

.userSettingsRow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: .68rem 0;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.userSettingsRow:last-child {
    border-bottom: 0;
}

.userSettingsLabel {
    min-width: 0;
}

.userSettingsLabel strong {
    display: block;
    font-size: 92%;
}

.userSettingsLabel span {
    display: block;
    margin-top: .14rem;
    color: var(--user-card-muted);
    font-size: 78%;
    line-height: 1.35;
}

.userSettingsControl select {
    min-width: 165px;
    max-width: 230px;
}

.userSettingsColorPicker {
    width: 58px;
    height: 34px;
    padding: 2px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 7px;
    background: rgba(255,255,255,.05);
    cursor: pointer;
}

.userSettingsColorPicker::-webkit-color-swatch-wrapper {
    padding: 2px;
}

.userSettingsColorPicker::-webkit-color-swatch {
    border: 0;
    border-radius: 4px;
}

.userSettingsColorPicker::-moz-color-swatch {
    border: 0;
    border-radius: 4px;
}

.userSettingsChecks {
    display: grid;
    gap: .55rem;
    padding: .9rem 1rem 1rem;
}

.userSettingsChecksCompact {
    padding-top: .45rem;
}

.userSettingsCheck {
    padding: .45rem .55rem;
    border-radius: 8px;
    background: rgba(255,255,255,.025);
}

.userSettingsCheck input[type="checkbox"] {
    vertical-align: middle;
}

.userSettingsCheck label {
    cursor: pointer;
    font-size: 90%;
}

.userSessionsSection {
    margin-bottom: 1.5rem;
}

.userSessionsCount,
.userSessionBadge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2em;
    padding: .12rem .5rem;
    border-radius: 999px;
    background: rgba(255,255,255,.11);
    font-size: 78%;
    white-space: nowrap;
}

.userSessionsList {
    display: grid;
    gap: .8rem;
    padding: 1rem;
}

.userSessionCard {
    display: grid;
    grid-template-columns: minmax(160px, .8fr) minmax(0, 2fr) auto;
    align-items: center;
    gap: 1rem;
    padding: .85rem 1rem;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    background: rgba(0,0,0,.12);
}

.userSessionCurrent {
    border-color: rgba(135,195,145,.38);
    background: rgba(75,135,85,.08);
}

.userSessionDevice {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .45rem;
}

.userSessionDevice strong {
    font-size: 96%;
}

.userSessionBadge {
    background: rgba(95,170,105,.18);
    border: 1px solid rgba(135,205,145,.28);
    font-size: 72%;
}

.userSessionMeta {
    display: grid;
    grid-template-columns: repeat(4, minmax(105px, 1fr));
    gap: .6rem 1rem;
}

.userSessionMeta > div {
    min-width: 0;
}

.userSessionMeta span,
.userSessionMeta strong {
    display: block;
}

.userSessionMeta span {
    margin-bottom: .12rem;
    color: var(--user-card-muted);
    font-size: 72%;
}

.userSessionMeta strong {
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 82%;
    font-weight: normal;
    white-space: nowrap;
}

.userSessionActions {
    text-align: right;
}

.userSessionDelete {
    padding: .38rem .7rem;
    border: 1px solid rgba(205,125,125,.34);
    border-radius: 7px;
    background: rgba(150,55,55,.12);
    color: inherit;
    cursor: pointer;
    font: inherit;
    font-size: 80%;
    white-space: nowrap;
}

.userSessionDelete:hover {
    background: rgba(175,65,65,.24);
}

.userSessionsEmpty {
    padding: 1.2rem;
    color: var(--user-card-muted);
    text-align: center;
}


/* Administrátorské nástroje */
.toolsIntro,
.toolsConfirmCard {
    max-width: 860px;
    margin: 20px auto;
    padding: 20px 24px;
    border: 1px solid var(--border-color, #777);
    border-radius: 8px;
    background: var(--article-bg, transparent);
}

.toolsIntro h2,
.toolsConfirmCard h2 {
    margin-top: 0;
}

.toolsWarning {
    font-weight: bold;
}

.toolsConfirmCard form {
    margin-top: 22px;
}

.toolsConfirmCard button {
    padding: 8px 16px;
    cursor: pointer;
}

.toolsCancel {
    margin-left: 12px;
}


.toolsConverterCard {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px 24px;
    border: 1px solid var(--border-color, #777);
    border-radius: 8px;
    background: var(--article-bg, transparent);
}

.toolsConverterCard h2 {
    margin-top: 0;
}

.toolsConverterCard label {
    display: block;
    margin: 18px 0 6px;
    font-weight: bold;
}

.toolsConverterCard textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 220px;
    padding: 10px;
    resize: vertical;
    font-family: Consolas, "Courier New", monospace;
    line-height: 1.35;
}

.toolsConverterCard button {
    margin-top: 12px;
    padding: 8px 16px;
    cursor: pointer;
}

.toolsConverterResult textarea {
    min-height: 280px;
}


/* Správa přístupových práv systémových článků */
.toolsAccessCard {
    max-width: 1500px;
    margin: 20px auto;
    padding: 20px 24px;
    border: 1px solid var(--border-color, #777);
    border-radius: 8px;
    background: var(--article-bg, transparent);
}

.toolsAccessCard h2 {
    margin-top: 0;
}

.toolsAccessLegend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin: 14px 0 18px;
    font-size: .9em;
    opacity: .88;
}

.toolsAccessTableWrap {
    overflow-x: auto;
}

.toolsAccessTable {
    width: 100%;
    border-collapse: collapse;
}

.toolsAccessTable th,
.toolsAccessTable td {
    padding: 7px 9px;
    border-bottom: 1px solid var(--border-color, #777);
    vertical-align: middle;
    text-align: left;
}

.toolsAccessTable th {
    white-space: nowrap;
}

.toolsAccessRow {
    transition: background-color .15s ease, box-shadow .15s ease;
}

.toolsAccessRow.toolsAccessView-1 {
    background: rgba(70, 120, 190, .08);
}

.toolsAccessRow.toolsAccessView-2 {
    background: rgba(70, 150, 95, .09);
}

.toolsAccessRow.toolsAccessView-4 {
    background: rgba(190, 140, 40, .10);
}

.toolsAccessRow.toolsAccessView-8 {
    background: rgba(190, 65, 65, .13);
}

.toolsAccessRow.toolsAccessEditOnlyAdmin {
    box-shadow: inset 4px 0 rgba(180, 85, 190, .55);
}

.toolsAccessTable .num {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.toolsAccessCell {
    min-width: 430px;
}

.toolsAccessMeta {
    min-width: 125px;
    white-space: nowrap;
}

.toolsAccessControls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.toolsAccessChoice {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 6px;
    border: 1px solid var(--border-color, #777);
    border-radius: 5px;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
}

.toolsAccessChoice:has(input:checked) {
    font-weight: bold;
}

.toolsAccessChoice input {
    margin: 0;
}

.toolsAccessDivider {
    width: 1px;
    height: 24px;
    margin: 0 3px;
    background: var(--border-color, #777);
}

.toolsAccessEdit {
    margin-left: 2px;
}

.toolsAccessNumber {
    min-width: 2.4em;
    margin-right: 6px;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: Consolas, "Courier New", monospace;
    text-align: center;
    background: rgba(127, 127, 127, .13);
}

.toolsAccessLegacy {
    margin-left: 2px;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: .82em;
    font-weight: bold;
    background: rgba(190, 140, 0, .18);
}

.toolsAccessStatus {
    display: inline-block;
    min-width: 4.5em;
    margin-left: 6px;
    font-size: .85em;
}

.toolsAccessStatus.is-saving {
    opacity: .7;
}

.toolsAccessStatus.is-ok,
.toolsAccessStatus.is-error {
    font-weight: bold;
}

.toolsAccessEmpty {
    padding: 22px !important;
    text-align: center !important;
}




/* Responsive ADS / nová mobilní hlavička a navigace (fáze 2) */
.dmSrOnly {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.dmMobileMenuHead,
#dmMobileMenuBackdrop {
    display: none;
}

@media screen and (max-width: 899px) {
    #container { min-width: 0; width: 100%; }
    #header { display: none; }
    #headerMob {
        display: flex;
        flex-direction: column;
        order: 1;
        width: 100%;
        height: auto;
        box-sizing: border-box;
        /* Obrázek zůstává zděditelný pro horní řádek, ale na celém headeru se nekreslí. */
        background-size: 0 0;
        background-repeat: no-repeat;
        border-bottom: 1px solid rgba(150,190,230,.26);
        background-color: rgba(0,5,12,.55);
    }
    #headerMobTop {
        display: grid;
        grid-template-columns: 76px minmax(0, 1fr) 90px;
        align-items: center;
        height: 76px;
        padding: 4px 10px;
        box-sizing: border-box;
        /* Dědí i náhodně vybrané logo Erronu z inline stylu #headerMob. */
        background-image: inherit;
        background-position: center center;
        background-size: min(500px, calc(100vw - 190px)) auto;
        background-repeat: no-repeat;
    }
    .dmMobileHeaderButton {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        min-height: 48px;
        padding: 4px 6px;
        border: 1px solid rgba(150,190,230,.32);
        border-radius: 9px;
        background: rgba(0,8,18,.74);
        font-size: 12px;
        cursor: pointer;
    }
    .dmMobileHeaderButton:hover,
    .dmMobileHeaderButton:focus-visible {
        background: rgba(35,70,110,.80);
        border-color: rgba(185,225,255,.8);
    }
    .dmMobileButtonIcon { font-size: 20px; line-height: 20px; }
    .dmMobileBrand {
        display: block;
        min-width: 0;
        height: 100%;
        cursor: pointer;
    }
    #dmMobileAccountToggle { justify-self: end; width: 90px; }

    #headerMobSearch {
        padding: 6px 12px 8px;
        box-sizing: border-box;
        background: rgba(0,0,0,.58);
    }
    #headerMobSearch form {
        display: flex;
        align-items: stretch;
        gap: 7px;
        width: 100%;
    }
    #headerMobSearch #searchtext2 {
        display: block;
        flex: 1 1 auto;
        width: 0;
        min-width: 0;
        min-height: 38px;
        box-sizing: border-box;
        padding: 7px 10px;
        font-size: 16px; /* zabrání zoomování při focusu na iOS */
    }
    #headerMobSearch .searchbutton {
        flex: 0 0 auto;
        padding: 6px 12px;
        min-height: 38px;
        font-size: 14px;
    }
    #headerMobNav {
        display: block;
        box-sizing: border-box;
        height: auto;
        min-height: 28px;
        padding: 5px 12px 6px;
        font-size: 12px;
        line-height: 1.45;
        overflow-x: visible;
        white-space: normal;
        overflow-wrap: anywhere;
        background: rgba(0,0,0,.58);
        border-top: 1px solid rgba(150,190,230,.16);
    }

    #middle {
        width: 100%;
        min-width: 0;
        flex-direction: column;
    }
    #content {
        flex: none;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Postranní menu je pod 900 px vysouvací panel, nikoliv další flex sloupec. */
    #menu {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 1201;
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
        width: min(360px, calc(100vw - 44px));
        min-width: 0;
        max-width: 100%;
        height: 100vh;
        height: 100dvh;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding-bottom: 20px;
        background: #07101b;
        border: 0;
        border-right: 1px solid rgba(150,190,230,.38);
        box-shadow: 12px 0 40px rgba(0,0,0,.6);
        transform: translateX(-105%);
        visibility: hidden;
        pointer-events: none;
        transition: transform .22s ease, visibility .22s ease;
    }
    .dmMobileMenuOpen #menu {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }
    .dmMobileMenuOpen { overflow: hidden; }
    .dmMobileMenuHead {
        order: -2;
        flex-shrink: 0;
        display: flex;
        position: sticky;
        top: 0;
        align-items: center;
        justify-content: space-between;
        padding: 10px 13px;
        border-bottom: 1px solid rgba(150,190,230,.28);
        background: #101c2b;
        z-index: 1;
        font-size: 16px;
    }
    #dmMobileMenuClose {
        width: 40px;
        height: 38px;
        border: 1px solid rgba(160,190,230,.42);
        border-radius: 8px;
        background: rgba(255,255,255,.055);
        cursor: pointer;
        font-size: 26px;
        line-height: 1;
    }
    #menu .dmMenuColumns { display: flex; flex: 0 0 auto; flex-direction: column; }
    #menu .dmMenuSection { min-width: 0; width: 100%; box-sizing: border-box; }
    #menu #suberMenu {
        display: block;
        flex: 0 0 auto;
        order: 1;
        padding: 6px 12px 12px;
        margin: 0;
        border: 0;
        border-bottom: 1px solid rgba(150,190,230,.22);
        box-shadow: none;
    }
    .dmMobileMenuAccountFirst #menu #suberMenu { order: -1; }
    #menu #suberMenu .logdiv { text-align: left; line-height: 1.7; overflow-wrap: anywhere; }
    #menu #suberMenu .loginMenuForm { margin: 0; }
    #menu #suberMenu .loginInput,
    #menu #suberMenu .loginButton { max-width: 100%; box-sizing: border-box; }
    #menu .menuItems { line-height: 1.65; }
    #menu .menuItems a { padding: 5px 4px; }
    #menu .menuItems a.external,
    #menu .menuItems a.secure { padding-right: 22px; }

    #dmMobileMenuBackdrop:not([hidden]) {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1200;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: rgba(0,0,0,.72);
        cursor: pointer;
    }
    #whisper { z-index: 1300; }
}

@media (prefers-reduced-motion: reduce) {
    #menu { transition: none; }
}
