
.profil { max-width: 620px; margin: 24px auto 60px; padding: 0 16px; }
.profil h1 { color: #fff; font-size: 24px; margin: 0 0 18px; }
.karta {
  background: #fff; border-radius: 10px; padding: 20px; margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  /* Tělo stránky má bílý text kvůli barevnému pozadí. Bez tohohle je text na bílé
     kartě neviditelný - přesně to se stalo u e-mailu a role. */
  color: #222;
}
.karta h2 { font-size: 17px; margin: 0 0 10px; color: var(--brand-dark, #1b5e20); }
.karta p { font-size: 14px; color: #555; line-height: 1.5; margin: 0 0 14px; }
.radek {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 9px 0; border-bottom: 1px solid #eee;
}
.radek:last-child { border-bottom: 0; }
.popisek { color: #666; font-size: 14px; }
.hodnota { font-weight: 600; word-break: break-all; text-align: right; }
.odznak { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.odznak-ok { background: #d4edda; color: #155724; }
.odznak-cekam { background: #fff3cd; color: #7a5b00; }
.karta input[type="password"] {
  width: 100%; padding: 10px; margin-bottom: 10px; box-sizing: border-box;
  border: 1px solid #ccc; border-radius: 6px; font-size: 15px;
}
.napoveda { font-size: 13px; color: #666; margin-bottom: 10px; }
.chyba {
  display: none; font-size: 13px; color: #721c24; background: #f8d7da;
  border-radius: 6px; padding: 8px; margin-bottom: 10px;
}
.chyba.videt { display: block; }
.karta button {
  background: var(--brand, #38843B); color: #fff; border: 0; border-radius: 6px;
  padding: 11px 18px; font-size: 15px; cursor: pointer;
}
@media (hover: hover) { .karta button:hover { filter: brightness(0.92); } }
.odhlasit {
  display: inline-block; color: #b3261e; text-decoration: none; font-size: 15px;
  font-weight: 600;
}
@media (hover: hover) { .odhlasit:hover { text-decoration: underline; } }

/* Profil: fotka a přezdívka (_profil_udaje.html) */
.profil-fotka { display: flex; align-items: center; gap: 18px; margin: 4px 0 16px; }
.profil-fotka-akce { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.profil-fotka-akce [hidden] { display: none; }
.karta .vedlejsi, .karta label.vedlejsi {
  display: inline-block; background: #eef0f2; color: #222; border: 0; border-radius: 6px;
  padding: 9px 14px; font-size: 14px; cursor: pointer;
}
@media (hover: hover) { .karta .vedlejsi:hover { filter: brightness(0.95); } }
.karta .vedlejsi[hidden] { display: none; }
.karta label.pole { display: block; font-size: 14px; color: #666; margin-bottom: 6px; }
.karta input[type="text"] {
  width: 100%; padding: 10px; margin-bottom: 10px; box-sizing: border-box;
  border: 1px solid #ccc; border-radius: 6px; font-size: 15px;
}
.profil-radek { display: flex; gap: 10px; }
.profil-radek input { flex: 1; margin-bottom: 0 !important; }


/* Okna Účet a Přátelé (dashboard_base, static/js/ucet.js). Vzhled okna z okna.css,
   uvnitř karty bez stínu oddělené čárou - karta v okně by vypadala jako okno v okně. */
.ucet-okno-zaclona {
  position: fixed; inset: 0; z-index: 5000; background: rgba(0, 0, 0, 0.5);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 70px 16px 16px; overflow-y: auto; box-sizing: border-box;
}
.ucet-okno-zaclona[hidden] { display: none; }
.ucet-okno { width: min(560px, 100%); max-width: 100%; box-sizing: border-box; color: #222; }
.ucet-okno-hlava { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ucet-okno-hlava h2 { margin: 0; }
.ucet-okno-zavrit {
  border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer;
  color: inherit; padding: 0 4px;
}
.ucet-okno .karta {
  box-shadow: none; border-radius: 0; padding: 14px 0; margin: 0;
  border-bottom: 1px solid #eee; background: none;
}
.ucet-okno .karta:last-child { border-bottom: 0; }
.ucet-okno-obsah.nacita { min-height: 120px; opacity: 0.5; }
.ucet-zmena summary { cursor: pointer; color: var(--brand-dark, #1b5e20); font-weight: 600; font-size: 14px; margin: 6px 0; }
.ucet-zmena[open] summary { margin-bottom: 10px; }
.ucet-zmena input[type="password"], .ucet-zmena input[type="text"] { margin-bottom: 8px; }

/* Ořez profilové fotky (ucet.js). Kruh je díra ve stínu přes celou plochu. */
.orez-zaclona {
  position: fixed; inset: 0; z-index: 5200; background: rgba(0, 0, 0, 0.55);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.orez-okno { width: min(340px, 100%); box-sizing: border-box; color: #222; }
.orez-plocha {
  position: relative; width: min(280px, calc(100vw - 92px)); aspect-ratio: 1; margin: 0 auto 12px;
  overflow: hidden; border-radius: 8px; background: #222; touch-action: none; cursor: grab;
}
.orez-plocha:active { cursor: grabbing; }
.orez-obrazek { position: absolute; left: 0; top: 0; max-width: none; user-select: none; pointer-events: none; }
.orez-kruh {
  position: absolute; inset: 0; border-radius: 50%; pointer-events: none; z-index: 1;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.55); outline: 2px solid rgba(255, 255, 255, 0.85);
}
.orez-zoom { width: 100%; margin: 0 0 12px; -webkit-appearance: none; appearance: none;
             background: transparent; height: 20px; }
.orez-zoom::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: #e3e3e3; }
.orez-zoom::-moz-range-track { height: 6px; border-radius: 999px; background: #e3e3e3; }
/* margin-top = (stopa - jezdec) / 2 */
.orez-zoom::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; border: 0; width: 16px; height: 16px;
                                   margin-top: -5px; border-radius: 50%; background: var(--brand-dark, #1b5e20); }
.orez-zoom::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: var(--brand-dark, #1b5e20); }

/* Na prst: křížek oken měl 24 × 28 px, „Změnit e-mail/heslo“, „Odstranit účet“
   a odkazy na společné zpěvníky 16 px na výšku. Vzhled stejný, roste plocha. */
@media (pointer: coarse) {
  .ucet-okno-zavrit { min-width: 40px; height: 40px; }
  .ucet-zmena summary { padding: 10px 0; }
  .odhlasit { display: inline-block; padding: 10px 0; }
  .pritel-radek a { display: inline-block; padding: 8px 0; }
  .orez-zoom { height: 32px; }
  .orez-zoom::-webkit-slider-thumb { width: 24px; height: 24px; margin-top: -9px; }
  .orez-zoom::-moz-range-thumb { width: 24px; height: 24px; }
}
