/* Administrace – ukázka rozhraní */
body.admin { background: var(--bg); }
.adm { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.adm-side { background: var(--text); color: #c9d2ea; padding: 1.2rem 1rem; position: sticky; top: 0; height: 100vh; overflow: auto; display: flex; flex-direction: column; }
:root[data-theme='dark'] .adm-side { background: #05081a; }
.adm-side .brand { color: #fff; margin-bottom: 1.4rem; }
.adm-side .brand small { color: #9aa7c7; }
.adm-side h5 { margin: 1.1rem .6rem .35rem; font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: #7e8bb0; }
.adm-side a { display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; border-radius: 9px; color: #c9d2ea; font-size: .9rem; font-weight: 500; }
.adm-side a:hover { background: rgb(255 255 255 / .07); text-decoration: none; color: #fff; }
.adm-side a.is-active { background: var(--primary); color: var(--primary-ink); }
.adm-side a svg { width: 17px; height: 17px; flex: none; opacity: .85; }
.adm-side .badge { margin-left: auto; font-size: .68rem; background: rgb(255 255 255 / .15); padding: .1rem .45rem; border-radius: 999px; }
.adm-user { margin-top: auto; padding: .8rem; border-radius: 12px; background: rgb(255 255 255 / .06); display: flex; gap: .7rem; align-items: center; font-size: .82rem; }
.adm-user b { display: block; color: #fff; }
.adm-user span { color: #9aa7c7; }
.adm-main { padding: 1.4rem clamp(1rem, 3vw, 2.4rem) 4rem; min-width: 0; }
.adm-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.adm-top h1 { font-size: var(--step-2); margin: 0; }
.adm-top p { margin: .1rem 0 0; color: var(--text-mute); font-size: .9rem; }
.adm-search { display: flex; align-items: center; gap: .6rem; background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; padding: .5rem 1rem; min-width: 260px; color: var(--text-mute); font-size: .88rem; }
.adm-search svg { width: 16px; height: 16px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: .9rem; margin-bottom: 1.4rem; }
.kpi { padding: 1rem 1.1rem; }
.kpi span { font-size: .8rem; color: var(--text-mute); }
.kpi b { display: block; font-family: var(--font-display); font-size: 1.7rem; letter-spacing: -.02em; }
.kpi small { color: var(--ok); font-weight: 600; }
.adm-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.2rem; }
@media (max-width: 1100px) { .adm-grid { grid-template-columns: 1fr; } }
.adm-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.adm-card .hd { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1.2rem; border-bottom: 1px solid var(--line); }
.adm-card .hd h3 { margin: 0; font-size: 1rem; }
.adm-card .bd { padding: 1.1rem 1.2rem; }
.adm-table { width: 100%; }
.adm-table th, .adm-table td { text-align: left; padding: .7rem 1rem; border-bottom: 1px solid var(--line); font-size: .88rem; vertical-align: middle; }
.adm-table th { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-mute); background: var(--surface-2); }
.adm-table tr:last-child td { border-bottom: 0; }
.adm-table tbody tr:hover { background: var(--surface-2); }
.adm-table td .sub { display: block; font-size: .76rem; color: var(--text-mute); }
.st { display: inline-flex; align-items: center; gap: .35rem; font-size: .74rem; font-weight: 600; padding: .2rem .55rem; border-radius: 999px; }
.st::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-pub { background: var(--ok-soft); color: #15803d; } .st-draft { background: var(--bg-soft); color: var(--text-mute); } .st-sched { background: var(--warn-soft); color: #b45309; } .st-exp { background: var(--danger-soft); color: #b91c1c; }
:root[data-theme='dark'] .st { color: var(--text); }
.acts { display: inline-flex; gap: .3rem; }
.acts button { width: 30px; height: 30px; border-radius: 7px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--text-mute); }
.acts button:hover { border-color: var(--primary); color: var(--primary); }
.acts svg { width: 14px; height: 14px; }
.tabs-line { display: flex; gap: .2rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.tabs-line button { padding: .6rem .9rem; border: 0; background: none; font-weight: 600; font-size: .88rem; color: var(--text-mute); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs-line button.is-active { color: var(--primary); border-bottom-color: var(--primary); }
.editor { display: grid; grid-template-columns: 1fr 320px; gap: 1.2rem; align-items: start; }
@media (max-width: 1100px) { .editor { grid-template-columns: 1fr; } }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .8rem; font-weight: 600; margin-bottom: .35rem; }
.field input, .field select, .field textarea { width: 100%; padding: .7rem .9rem; border-radius: 9px; border: 1.5px solid var(--line-strong); background: var(--surface); font: inherit; color: var(--text); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.field .h { font-size: .74rem; color: var(--text-mute); margin-top: .3rem; }
.field-title input { font-size: 1.25rem; font-weight: 700; font-family: var(--font-display); }
.rte { border: 1.5px solid var(--line-strong); border-radius: 9px; overflow: hidden; }
.rte .tb { display: flex; gap: .15rem; padding: .4rem; border-bottom: 1px solid var(--line); background: var(--surface-2); flex-wrap: wrap; }
.rte .tb button { width: 30px; height: 30px; border: 0; background: none; border-radius: 6px; cursor: pointer; font-size: .82rem; font-weight: 700; color: var(--text-soft); }
.rte .tb button:hover { background: var(--primary-soft); color: var(--primary-deep); }
.rte .tb i { width: 1px; background: var(--line); margin: .3rem .3rem; }
.rte .body { padding: 1rem 1.1rem; min-height: 260px; font-size: .95rem; line-height: 1.65; }
.rte .body p { margin: 0 0 .8em; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.toggle:last-child { border-bottom: 0; }
.toggle .sw { width: 40px; height: 22px; border-radius: 999px; background: var(--line-strong); position: relative; flex: none; cursor: pointer; transition: background .2s; }
.toggle .sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.toggle .sw.on { background: var(--ok); } .toggle .sw.on::after { transform: translateX(18px); }
.dropzone { border: 2px dashed var(--line-strong); border-radius: var(--r-lg); padding: 2.2rem 1rem; text-align: center; color: var(--text-mute); background: var(--surface-2); transition: all .2s; }
.dropzone:hover { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-deep); }
.dropzone svg { width: 34px; height: 34px; margin: 0 auto .6rem; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .6rem; margin-top: 1rem; }
.thumbs div { aspect-ratio: 1; border-radius: 9px; overflow: hidden; position: relative; background: var(--bg-soft); cursor: grab; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs .h { position: absolute; top: .3rem; right: .3rem; width: 22px; height: 22px; border-radius: 6px; background: rgb(0 0 0 / .5); color: #fff; display: grid; place-items: center; }
.thumbs .h svg { width: 12px; height: 12px; }
.thumbs .prog { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgb(0 0 0 / .3); }
.thumbs .prog b { display: block; height: 100%; background: var(--ok); }
.role-grid { display: grid; grid-template-columns: 1fr repeat(6, 90px); font-size: .82rem; }
.role-grid > div { padding: .55rem .6rem; border-bottom: 1px solid var(--line); display: flex; align-items: center; }
.role-grid .h { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-mute); background: var(--surface-2); justify-content: center; text-align: center; }
.role-grid .c { justify-content: center; }
.role-grid .c svg { width: 16px; height: 16px; }
.role-grid .yes { color: var(--ok); } .role-grid .own { color: var(--warn); } .role-grid .no { color: var(--line-strong); }
.log { list-style: none; padding: 0; margin: 0; }
.log li { display: flex; gap: .7rem; padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .85rem; align-items: flex-start; }
.log li:last-child { border-bottom: 0; }
.log .t { color: var(--text-mute); white-space: nowrap; font-size: .76rem; margin-top: .15rem; min-width: 64px; }
.week-editor { display: grid; grid-template-columns: 90px repeat(3, 1fr) 100px; gap: .5rem; align-items: center; font-size: .85rem; }
.week-editor input { padding: .5rem .7rem; border-radius: 7px; border: 1.5px solid var(--line); background: var(--surface); font: inherit; font-size: .85rem; width: 100%; color: var(--text); }
.week-editor .dh { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-mute); }
.week-editor .dn b { display: block; } .week-editor .dn span { font-size: .74rem; color: var(--text-mute); }
.login { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.login .l { padding: clamp(2rem, 6vw, 5rem); display: flex; flex-direction: column; justify-content: center; }
.login .r { background: linear-gradient(135deg, var(--hero-a), var(--hero-b) 60%, var(--hero-c)); color: #fff; padding: clamp(2rem, 6vw, 5rem); display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.login .r h2 { color: #fff; }
.login .r p { color: rgb(255 255 255 / .85); }
.login .r ul { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.login .r li { display: flex; gap: .7rem; padding: .5rem 0; align-items: flex-start; }
.login .r li svg { width: 20px; height: 20px; flex: none; }
.ms-btn { display: inline-flex; align-items: center; gap: .8rem; padding: .9rem 1.4rem; border-radius: 10px; border: 1.5px solid var(--line-strong); background: var(--surface); font-weight: 600; cursor: pointer; font-size: 1rem; transition: all .2s; color: var(--text); }
.ms-btn:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.ms-btn svg { width: 22px; height: 22px; }
@media (max-width: 900px) { .login { grid-template-columns: 1fr; } .login .r { display: none; } .adm { grid-template-columns: 1fr; } .adm-side { position: static; height: auto; } }
.mini-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; font-size: .72rem; text-align: center; }
.mini-cal span { padding: .35rem 0; border-radius: 6px; }
.mini-cal .ev { background: var(--primary-soft); color: var(--primary-deep); font-weight: 700; }
.mini-cal .h { color: var(--text-mute); font-size: .64rem; text-transform: uppercase; }
.prev-frame { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--bg); }
.prev-frame .bar { display: flex; gap: .4rem; padding: .5rem .8rem; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.prev-frame .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
