:root { --pozadi: #f4f5f2; --karta: #fff; --text: #1c2420; --slabe: #68736c; --linka: #d9ddd6; --akcent: #1f6f54; --akcent-text: #fff; --chyba: #b3261e; --zvyrazneni: #e6f2ec; }
@media (prefers-color-scheme: dark) {
  :root { --pozadi: #131715; --karta: #1c2320; --text: #e6ebe7; --slabe: #94a199; --linka: #2f3a35; --akcent: #4fb890; --akcent-text: #0c1512; --chyba: #ff8a80; --zvyrazneni: #1f3229; }
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, sans-serif; background: var(--pozadi); color: var(--text); }
header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .75rem 1.25rem; border-bottom: 1px solid var(--linka); background: var(--karta); }
.znacka { font-weight: 700; font-size: 1.15rem; color: var(--akcent); text-decoration: none; letter-spacing: .02em; }
nav { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
nav a { color: var(--text); }
nav form { margin: 0; }
main { max-width: 60rem; margin: 0 auto; padding: 1.25rem; }
footer { text-align: center; color: var(--slabe); font-size: .85rem; padding: 1rem; }
h1 { font-size: 1.4rem; margin: .25rem 0 1rem; }
h2 { font-size: 1.1rem; margin: 1.25rem 0 .75rem; }
.karta { background: var(--karta); border: 1px solid var(--linka); border-radius: 10px; padding: 1.1rem; margin-bottom: 1rem; }
.karta h2:first-child { margin-top: 0; }
.uzka { max-width: 22rem; margin: 3rem auto; }
label { display: block; margin-bottom: .8rem; font-size: .9rem; color: var(--slabe); }
input, select, textarea { display: block; width: 100%; margin-top: .25rem; padding: .5rem .6rem; font: inherit; color: var(--text); background: var(--pozadi); border: 1px solid var(--linka); border-radius: 6px; }
textarea { font-family: ui-monospace, monospace; font-size: .9rem; resize: vertical; }
button { font: inherit; padding: .5rem 1rem; border: 1px solid var(--akcent); border-radius: 6px; background: var(--akcent); color: var(--akcent-text); cursor: pointer; }
button.vedlejsi { background: transparent; color: var(--text); border-color: var(--linka); }
button.nebezpecne { background: transparent; color: var(--chyba); border-color: var(--chyba); }
button.odkaz { background: none; border: 0; padding: 0; color: var(--text); text-decoration: underline; }
button.velke { font-size: 1.1rem; padding: .8rem 1.4rem; }
button[aria-pressed="true"] { background: var(--chyba); border-color: var(--chyba); color: #fff; }
:focus-visible { outline: 2px solid var(--akcent); outline-offset: 2px; }
.chyba { color: var(--chyba); }
.pozn { color: var(--slabe); font-size: .9rem; }
.radek { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.radek input { flex: 1 1 14rem; width: auto; margin-top: 0; }
.mrizka { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 0 1rem; }
.ovladani { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.stav { flex: 1 1 12rem; font-weight: 600; }
.pruh { position: relative; height: 10px; margin-top: .35rem; background: var(--pozadi); border: 1px solid var(--linka); border-radius: 5px; overflow: hidden; }
#hlasitost { height: 100%; width: 0; background: var(--akcent); transition: width .08s linear; }
#prah { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: var(--chyba); }
.stitek { font-size: .85rem; padding: .2rem .6rem; border: 1px solid var(--linka); border-radius: 999px; color: var(--slabe); }
.stitek.ok { color: var(--akcent); border-color: var(--akcent); }
.stitek.spatne { color: var(--chyba); border-color: var(--chyba); }
.bublina { margin: 1rem 0 0; padding: .7rem 1rem; background: var(--zvyrazneni); border-radius: 8px; font-size: 1.1rem; }
.vypis { list-style: none; margin: 1rem 0 0; padding: 0; font: .85rem/1.45 ui-monospace, monospace; max-height: 60vh; overflow: auto; }
.vypis li { padding: .2rem .4rem; border-bottom: 1px solid var(--linka); white-space: pre-wrap; overflow-wrap: anywhere; }
.vypis time { color: var(--slabe); }
.vypis .slabe { color: var(--slabe); }
.vypis .prepis { font-weight: 600; }
.vypis .akce { background: var(--zvyrazneni); font-weight: 600; }
.vypis .chyba { color: var(--chyba); }
.seznam { list-style: none; padding: 0; margin: 0; }
.hlavni { font-weight: 700; font-size: 1.1rem; color: var(--akcent); }
.lepivy { position: sticky; top: 0; z-index: 2; }
.radek.male { font-size: .9rem; margin-top: .6rem; color: var(--slabe); }
.radek.male a { color: var(--text); }
.radek.male a.aktivni { font-weight: 700; color: var(--akcent); text-decoration: none; }
.radek.male button { padding: .2rem .6rem; font-size: .85rem; }
.odsazeni { margin-top: 1rem; }
details > summary { cursor: pointer; }
.skupina { padding: .7rem 1.1rem; }
.posuv { overflow-x: auto; margin-top: .6rem; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { text-align: left; font-weight: 600; color: var(--slabe); font-size: .8rem; padding: .3rem .5rem; border-bottom: 1px solid var(--linka); }
td { padding: .45rem .5rem; border-bottom: 1px solid var(--linka); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tr.chybi { opacity: .5; }
code { font: .82rem ui-monospace, monospace; overflow-wrap: anywhere; }
.hlasem { font: .82rem ui-monospace, monospace; color: var(--akcent); }
.stavprvku { white-space: nowrap; max-width: 12rem; overflow: hidden; text-overflow: ellipsis; }
.funkce { display: inline-block; margin: 0 .15rem .2rem 0; padding: .05rem .5rem; border: 1px solid var(--akcent); border-radius: 999px; color: var(--akcent); font-size: .8rem; white-space: nowrap; }
td .pozn { font-size: .8rem; }
a.funkce { text-decoration: none; }
a.funkce:hover { background: var(--akcent); color: var(--akcent-text); }
.prikazy { margin-top: .25rem; font: .8rem ui-monospace, monospace; }
.prikazy a { color: var(--text); }
.male { font-size: .85rem; }
p.male { margin: .5rem 0 0; }
.uzel { margin-bottom: 1rem; }
.uzel .uzel { margin: .8rem 0 0; padding: .8rem 0 0 1rem; border-left: 3px solid var(--akcent); }
.uzel.zvyrazneny { outline: 2px solid var(--akcent); outline-offset: 4px; border-radius: 8px; }
.uzel textarea { min-height: 3.2rem; }
.uzel .mrizka { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.akce { margin: .2rem 0 .6rem; padding: .6rem .8rem; background: var(--pozadi); border-radius: 8px; }
.akce form.radek { margin: .25rem 0; }
.akce .radek input { flex: 1 1 11rem; }
.akce select { width: auto; margin-top: 0; }
.radek select { width: auto; margin-top: 0; }
input.cislo { flex: 0 0 5rem !important; width: 5rem; }
input.uzke { flex: 1 1 9rem; }
.vetev { margin-top: .5rem; }
.vetev input { flex: 1 1 12rem; }
.radek button { white-space: nowrap; }
.verze { font-weight: 400; font-size: .8rem; color: var(--slabe); letter-spacing: 0; }
.protejsek { margin-top: .6rem; padding-top: .6rem; border-top: 1px dashed var(--linka); }
.protejsek button { padding: .2rem .7rem; font-size: .9rem; }
.vetev { margin-top: .6rem; }
.vetev details { padding: .5rem .8rem; border: 1px dashed var(--linka); border-radius: 8px; }
.vetev details[open] summary { margin-bottom: .6rem; }
label.vradku { display: flex; align-items: center; gap: .4rem; margin: 0; }
label.vradku input { margin-top: 0; }
button.male { padding: .15rem .6rem; font-size: .85rem; }
a.stitek { text-decoration: none; }
table.mapa td { vertical-align: middle; }
table.mapa .radek input { flex: 1 1 10rem; padding: .3rem .5rem; }
form.chip { display: inline; }
.krizek { background: none; border: 0; padding: 0 0 0 .2rem; color: var(--chyba); font-size: 1rem; line-height: 1; cursor: pointer; }
.pridat { display: inline-flex; margin-top: .3rem; max-width: 16rem; }
.pridat input { padding: .2rem .5rem; font-size: .85rem; }
.slovnik { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1rem; margin-top: .8rem; }
.slovo { padding: .7rem; border: 1px solid var(--linka); border-radius: 8px; }
.slovo label { margin-bottom: .5rem; }
input[readonly] { opacity: .7; }
table.mapa .radek { flex-wrap: nowrap; }
table.mapa select { width: auto; margin-top: 0; padding: .3rem .4rem; }
h3 { font-size: 1rem; margin: 1rem 0 .4rem; }
.chat { list-style: none; margin: 0 0 1rem; padding: 0; max-height: 55vh; overflow: auto; display: flex; flex-direction: column; gap: .5rem; }
.chat li { max-width: 85%; padding: .55rem .85rem; border-radius: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat .ja { align-self: flex-end; background: var(--akcent); color: var(--akcent-text); }
.chat .sunlai { align-self: flex-start; background: var(--zvyrazneni); }
.chat .system { align-self: center; max-width: 100%; padding: .1rem .5rem; font-size: .8rem; color: var(--slabe); }
.chat .ceka { opacity: .6; font-style: italic; }
.chat .chyba { color: var(--chyba); }
.navrhy .navrh { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; border-color: var(--akcent); margin-bottom: .6rem; }
.pamet li { padding: .35rem 0; border-bottom: 1px solid var(--linka); }
.pamet li:last-child { border-bottom: 0; }
.zadani { white-space: pre-wrap; overflow-wrap: anywhere; font: .85rem/1.5 ui-monospace, monospace; }
