:root {
  --antracit: #332F2C; --antracit-tmava: #2B2825;
  --zlata: #E6AF5D; --zlata-tmava: #A6621C; --zlata-svetla: #FBF3E4;
  --seda: #8D9396; --seda-tmava: #69727D;
  --papir: #F6F4F1; --bila: #FFFFFF; --linka: #E7E3DD; --linka-slaba: #F0EDE7;
  --zelena: #3E7A4E; --cervena: #B4432F;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; background: var(--papir); color: var(--antracit);
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif; font-size: 15px;
}
body.tmavy { background: var(--antracit-tmava); }
.telefon { max-width: 460px; margin: 0 auto; min-height: 100vh; background: var(--papir); }
body.tmavy .telefon { background: transparent; }

/* ---------- výběr zaměstnance ---------- */
.vyber { padding: 34px 20px 40px; color: #F3EFEA; }
.znacka-m { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 26px; }
.znacka-m svg { width: 84px; color: #F3EFEA; }
.znacka-m span { font-size: 10.5px; font-weight: 700; letter-spacing: .24em; color: var(--zlata); }
.vyber h1 { font-family: Marcellus, Georgia, serif; font-weight: 400; font-size: 26px; margin: 0 0 6px; text-align: center; }
.podtitulek { margin: 0 0 24px; text-align: center; font-size: 13px; color: var(--seda); line-height: 1.5; }
.seznam-lidi { display: flex; flex-direction: column; gap: 8px; }
.clovek {
  display: flex; align-items: center; gap: 13px; padding: 13px 15px; border-radius: 13px;
  background: rgba(255,255,255,.06); color: #F3EFEA; text-decoration: none;
}
.clovek:active { background: rgba(255,255,255,.12); }
.clovek-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.clovek-text b { font-size: 14.5px; font-weight: 600; }
.clovek-text i { font-style: normal; font-size: 12px; color: var(--seda); }
.sipka-v { width: 18px; height: 18px; margin-left: auto; color: var(--seda); flex-shrink: 0; }
.inicialy {
  width: 40px; height: 40px; border-radius: 99px; background: var(--zlata);
  color: var(--antracit-tmava); display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; flex-shrink: 0;
}

/* ---------- hlavička ---------- */
.m-hlava {
  display: flex; align-items: center; gap: 12px; padding: 18px 18px 16px;
  background: var(--antracit-tmava); color: #F3EFEA;
}
.zpet { width: 30px; height: 30px; color: var(--seda); flex-shrink: 0; }
.zpet svg { width: 100%; height: 100%; }
.m-hlava-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.m-hlava-text b { font-size: 15px; font-weight: 600; }
.m-hlava-text i { font-style: normal; font-size: 12px; color: var(--seda); }
.m-hlava .inicialy { margin-left: auto; width: 36px; height: 36px; font-size: 12px; }

.pruh {
  padding: 12px 18px; background: var(--zlata-svetla); color: var(--zlata-tmava);
  font-size: 13.5px; font-weight: 600;
}
.pruh-hotovo { background: #E8F0E9; color: var(--zelena); }
.pruh-klid { background: #EFEBE5; color: var(--seda-tmava); }

/* ---------- seznam dnů ---------- */
.m-seznam { display: flex; flex-direction: column; }
.m-den {
  display: flex; align-items: center; gap: 14px; padding: 13px 18px;
  background: var(--bila); border-bottom: 1px solid var(--linka-slaba); cursor: pointer;
  min-height: 62px;
}
.m-den:active { background: #FDFCFA; }
.m-den.budouci { opacity: .5; cursor: default; }
.m-den[data-zamceno] { cursor: default; }
.m-datum { display: flex; flex-direction: column; align-items: center; width: 34px; flex-shrink: 0; }
.m-datum b { font-size: 16px; font-weight: 700; line-height: 1.1; }
.m-datum i { font-style: normal; font-size: 10.5px; color: var(--seda); }
.m-popis { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex-grow: 1; }
.m-hodnota { font-size: 14px; font-weight: 600; }
.m-hodnota:empty { display: none; }
.m-plan { font-style: normal; font-size: 12px; color: var(--seda); line-height: 1.35; }
.m-znacka { width: 26px; height: 26px; flex-shrink: 0; color: #C3BCB2; }
.m-znacka svg { width: 100%; height: 100%; }

.stav-potvrzeno .m-znacka { color: var(--zelena); }
.stav-nahlaseno .m-znacka { color: var(--zlata-tmava); }
.stav-vraceno { background: #FBEFEC; }
.stav-vraceno .m-znacka { color: var(--cervena); }
.stav-vraceno .m-plan { color: var(--cervena); font-weight: 600; }

.m-pata { padding: 18px; margin: 0; font-size: 12px; color: var(--seda); line-height: 1.5; text-align: center; }

/* ---------- zadávací panel ---------- */
.zaclona-m { position: fixed; inset: 0; background: rgba(43,40,37,.4); z-index: 40; }
.sheet {
  position: fixed; z-index: 50; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 100%; max-width: 460px; background: var(--bila);
  border-radius: 18px 18px 0 0; box-shadow: 0 -10px 40px rgba(43,40,37,.26);
  max-height: 92vh; overflow-y: auto;
}
.sheet-hlava {
  display: flex; align-items: center; padding: 16px 18px 12px;
  border-bottom: 1px solid var(--linka-slaba); position: sticky; top: 0; background: var(--bila);
}
.sheet-hlava b { font-size: 15px; }
.sheet-hlava button {
  margin-left: auto; background: none; border: 0; color: var(--seda);
  font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px;
}
.sheet-telo { padding: 16px 18px; display: flex; flex-direction: column; gap: 13px; }
.sheet-plan { margin: 0; font-size: 13px; color: var(--seda-tmava); line-height: 1.45; }
.sheet-telo label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 600; color: var(--seda-tmava); }
.sheet-telo select, .sheet-telo input {
  font: inherit; font-size: 15px; color: var(--antracit); padding: 11px 12px;
  border: 1px solid var(--linka); border-radius: 10px; background: var(--bila); width: 100%;
}
.sheet-hodiny { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.sheet-hint { margin: 0; font-size: 12px; color: var(--seda); line-height: 1.45; }
.sheet-hint.varovani { color: var(--zlata-tmava); font-weight: 600; }
.sheet-pata { display: flex; gap: 9px; padding: 4px 18px 20px; }
.sheet-pata .btn-m { flex-grow: 1; }

.velke-tlacitko {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 56px; border: 0; border-radius: 13px;
  background: var(--zlata); color: var(--antracit-tmava);
  font: inherit; font-size: 15.5px; font-weight: 700; cursor: pointer;
}
.velke-tlacitko svg { width: 21px; height: 21px; }
.velke-tlacitko:active { background: #DCA24C; }

.oddelovac { display: flex; align-items: center; gap: 12px; color: var(--seda); font-size: 12px; }
.oddelovac::before, .oddelovac::after { content: ""; flex-grow: 1; height: 1px; background: var(--linka); }

.btn-m {
  min-height: 50px; border-radius: 12px; border: 1px solid var(--linka);
  background: var(--bila); color: var(--seda-tmava);
  font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer;
}
.btn-m-zlaty { background: var(--zlata); border-color: var(--zlata); color: var(--antracit-tmava); font-weight: 700; }

/* ================= přihlášení ================= */
.prihlaseni { max-width: 420px; margin: 0 auto; padding: 48px 22px 40px; color: #F3EFEA; }
.prihlaseni h1 { font-family: Marcellus, Georgia, serif; font-weight: 400; font-size: 28px; margin: 0 0 4px; text-align: center; }
.prihlaseni-form { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.prihlaseni-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: #D8D2CA; }
.prihlaseni-form input {
  font: inherit; font-size: 18px; padding: 14px 15px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); color: #F3EFEA;
}
.prihlaseni-form input:focus { outline: 2px solid var(--zlata); outline-offset: -1px; }
.prihlaseni-form .velke-tlacitko { margin-top: 6px; }
.chyba-box { margin: 0; padding: 12px 14px; border-radius: 10px; background: rgba(180,67,47,.22); color: #F6C9BF; font-size: 14px; }
.drobna-rada { margin: 6px 0 0; font-size: 12px; color: var(--seda); line-height: 1.5; text-align: center; }

/* ================= hlavička mobilu ================= */
.m-odhlasit { margin: 0 0 0 auto; }
.m-odhlasit button {
  font: inherit; font-size: 12.5px; font-weight: 600; color: var(--seda);
  background: none; border: 1px solid rgba(255,255,255,.14); border-radius: 99px;
  padding: 7px 12px; cursor: pointer;
}
.m-hlava .inicialy { margin-left: 0; }

/* ================= upozornění ================= */
.upozorneni {
  display: flex; flex-direction: column; gap: 3px; width: 100%; text-align: left;
  border: 0; padding: 13px 18px; font: inherit; cursor: pointer;
}
.upozorneni b { font-size: 14px; }
.upozorneni span { font-size: 12.5px; line-height: 1.4; }
.upozorneni-cervene { background: #FBEFEC; color: var(--cervena); }

/* ================= karta DNES ================= */
.dnes {
  margin: 14px; padding: 20px 18px; border-radius: 20px;
  background: var(--antracit-tmava); color: #F3EFEA;
  display: flex; flex-direction: column; gap: 12px;
}
.dnes-datum { display: flex; flex-direction: column; gap: 2px; }
.dnes-datum b { font-size: 17px; font-weight: 700; text-transform: capitalize; }
.dnes-datum span { font-size: 12.5px; color: var(--seda); }
.dnes-stav { margin: 0; font-size: 14px; color: #D8D2CA; line-height: 1.45; }
.dnes-velky { margin: 0; font-family: Marcellus, Georgia, serif; font-size: 34px; line-height: 1.1; }
.dnes-hodiny { margin: 0; display: flex; align-items: baseline; gap: 10px; }
.dnes-hodiny span { font-family: Marcellus, Georgia, serif; font-size: 58px; line-height: 1; }
.dnes-hodiny small { font-size: 13px; color: var(--seda); }
.dnes-tlacitka { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dnes .velke-tlacitko.obri { min-height: 84px; font-size: 22px; letter-spacing: .06em; font-weight: 800; }
.dnes .velke-tlacitko.obri svg { width: 28px; height: 28px; }
.velke-tlacitko.obrys { background: transparent; color: var(--zlata); border: 1.5px solid rgba(230,175,93,.6); }
.velke-tlacitko.druhotne { background: transparent; color: var(--zlata); border: 1.5px solid rgba(230,175,93,.5); min-height: 60px; font-size: 17px; }
.velke-tlacitko:disabled { opacity: .55; }
.dnes-chip {
  margin: 2px 0 0; align-self: flex-start; border-radius: 99px; padding: 6px 13px;
  font-size: 12.5px; font-weight: 700; background: rgba(230,175,93,.16); color: var(--zlata);
}
.dnes-chip.chip-potvrzeno { background: rgba(95,163,111,.2); color: #8FD19F; }
.dnes-chip.chip-vraceno { background: rgba(180,67,47,.25); color: #F6C9BF; }

/* ================= bloky ================= */
.blok { padding: 6px 0 4px; }
.blok h2 {
  font-family: Marcellus, Georgia, serif; font-weight: 400; font-size: 18px;
  margin: 10px 18px 6px;
}
.blok-rada { margin: 0 18px 10px; font-size: 13px; color: var(--seda-tmava); line-height: 1.45; }
.chybi-seznam { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 8px; }
.chybi {
  font: inherit; font-size: 14px; font-weight: 700; min-height: 44px; padding: 0 16px;
  border-radius: 12px; border: 1px solid #E9C9A0; background: var(--zlata-svetla);
  color: var(--zlata-tmava); cursor: pointer;
}
.m-den.stav-plan { background: #FFFBF5; }
.m-den.stav-plan .m-znacka, .m-den.stav-plan .m-plan { color: var(--zlata-tmava); }

/* ================= oznámení ================= */
.toast {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 60;
  width: calc(100% - 32px); max-width: 428px; padding: 13px 16px; border-radius: 12px;
  background: var(--antracit-tmava); color: #F3EFEA; font-size: 14px; line-height: 1.4;
  box-shadow: 0 10px 30px rgba(43,40,37,.35);
}
[hidden] { display: none !important; }

/* ================= můj měsíc ================= */
.karta-mesic {
  display: flex; align-items: center; gap: 12px; margin: 4px 14px 6px; padding: 15px 16px;
  border-radius: 14px; background: var(--bila); border: 1px solid var(--linka);
  color: var(--antracit); text-decoration: none; min-height: 60px;
}
.karta-mesic:active { background: #FDFCFA; }
.karta-mesic-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex-grow: 1; }
.karta-mesic-text b { font-size: 15px; font-weight: 700; }
.karta-mesic-text i { font-style: normal; font-size: 12.5px; color: var(--seda-tmava); }
.karta-mesic svg { width: 20px; height: 20px; color: var(--zlata-tmava); flex-shrink: 0; }

.mesic-prepinac {
  display: grid; grid-template-columns: 48px 1fr 48px; align-items: center;
  padding: 10px 10px 4px; text-align: center;
}
.mesic-prepinac b { font-family: Marcellus, Georgia, serif; font-weight: 400; font-size: 21px; text-transform: capitalize; }
.mesic-prepinac a {
  display: flex; align-items: center; justify-content: center; height: 44px;
  font-size: 26px; color: var(--zlata-tmava); text-decoration: none; border-radius: 10px;
}
.mesic-prepinac a:active { background: var(--zlata-svetla); }

.souhrn-mesice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 14px 4px; }
.dlazdice-m {
  display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 13px;
  background: var(--bila); border: 1px solid var(--linka);
}
.dlazdice-m i { font-style: normal; font-size: 12px; font-weight: 600; color: var(--seda-tmava); }
.dlazdice-m b { font-family: Marcellus, Georgia, serif; font-weight: 400; font-size: 24px; line-height: 1.1; }
.dlazdice-m.hlavni { background: var(--antracit-tmava); border-color: var(--antracit-tmava); color: #F3EFEA; }
.dlazdice-m.hlavni i { color: var(--seda); }

.souhrn-poznamka { margin: 8px 18px 12px; font-size: 12.5px; color: var(--seda-tmava); line-height: 1.5; }
.text-cerveny { color: var(--cervena); font-weight: 600; }
.text-zlaty { color: var(--zlata-tmava); font-weight: 600; }

.mesic-dny .m-den { min-height: 58px; }
.m-den-volno {
  display: flex; gap: 12px; padding: 6px 18px 6px 22px; font-size: 11.5px; color: #B9B3AC;
  background: #F1EEE9; border-bottom: 1px solid var(--linka-slaba);
}
.m-den-volno span:first-child { width: 42px; flex-shrink: 0; }
.m-den.druh-budouci { opacity: .55; }
.m-den.druh-dnes { background: #FFFBF5; box-shadow: inset 3px 0 0 var(--zlata); }
.m-den.druh-nezapsany, .m-den.druh-otevreny { background: #FFFBF5; cursor: pointer; }
.m-den.druh-nezapsany .m-znacka, .m-den.druh-otevreny .m-znacka,
.m-den.druh-nezapsany .m-plan, .m-den.druh-otevreny .m-plan { color: var(--zlata-tmava); }
.m-pata a { color: var(--zlata-tmava); font-weight: 600; text-decoration: none; }
