.hv-global-account,
.hv-global-account * { box-sizing: border-box; }

.hv-global-account {
  position: fixed;
  top: 18px;
  right: 20px;
  z-index: 2147483000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.hv-global-account__trigger {
  appearance: none;
  border: 1px solid rgba(33, 53, 82, .14);
  border-radius: 999px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 8px 26px rgba(28, 45, 72, .15);
  min-height: 44px;
  padding: 8px 15px 8px 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #213552;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}

.hv-global-account__trigger:hover,
.hv-global-account__trigger:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(28, 45, 72, .2);
  outline: none;
}

.hv-global-account__icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef4ff;
  font-size: 16px;
}

.hv-global-account__name { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hv-global-account__chevron { opacity: .65; font-size: 11px; }

.hv-global-account__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 230px;
  padding: 8px;
  border: 1px solid rgba(33, 53, 82, .12);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 45px rgba(28, 45, 72, .2);
}

.hv-global-account__menu-head { padding: 10px 11px 12px; border-bottom: 1px solid #edf0f4; }
.hv-global-account__menu-head strong,
.hv-global-account__menu-head small { display: block; }
.hv-global-account__menu-head strong { color: #213552; font-size: 14px; }
.hv-global-account__menu-head small { margin-top: 3px; color: #6e7c8e; font-size: 12px; }

.hv-global-account__menu-action {
  width: 100%;
  margin-top: 6px;
  padding: 10px 11px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #b33a3a;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.hv-global-account__menu-action:hover { background: #fff1f1; }

.hv-global-login[hidden],
.hv-global-account__menu[hidden] { display: none !important; }

.hv-global-login {
  position: fixed;
  inset: 0;
  z-index: 2147483100;
  display: grid;
  place-items: center;
  padding: 20px;
}

.hv-global-login__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(20, 31, 48, .45);
  backdrop-filter: blur(5px);
  cursor: default;
}

.hv-global-login__dialog {
  position: relative;
  width: min(430px, 100%);
  border-radius: 24px;
  background: #fffdf8;
  padding: 30px;
  box-shadow: 0 25px 80px rgba(20, 31, 48, .3);
  color: #253852;
}

.hv-global-login__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #eef2f7;
  color: #3b4b60;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.hv-global-login__badge {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 13px;
  border-radius: 16px;
  background: #edf5ff;
  font-size: 26px;
}

.hv-global-login__dialog h2 { margin: 0 42px 7px 0; color: #213552; font-size: 25px; line-height: 1.2; }
.hv-global-login__dialog > p { margin: 0 0 20px; color: #617085; font-size: 14px; line-height: 1.55; }
.hv-global-login__dialog label { display: block; margin: 0 0 13px; color: #374a63; font-size: 13px; font-weight: 700; }
.hv-global-login__dialog input {
  width: 100%;
  height: 46px;
  margin-top: 6px;
  padding: 0 13px;
  border: 1px solid #ced7e3;
  border-radius: 12px;
  background: #fff;
  color: #213552;
  font: inherit;
  font-weight: 500;
  outline: none;
}
.hv-global-login__dialog input:focus { border-color: #6388be; box-shadow: 0 0 0 3px rgba(99, 136, 190, .14); }

.hv-global-login__submit {
  width: 100%;
  min-height: 47px;
  margin-top: 3px;
  border: 0;
  border-radius: 13px;
  background: #294b7a;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}
.hv-global-login__submit:hover { filter: brightness(1.05); }
.hv-global-login__submit:disabled { opacity: .65; cursor: wait; }

.hv-global-login__message { min-height: 20px; margin-top: 10px; color: #b33a3a; font-size: 13px; font-weight: 600; }
.hv-global-login__hint { display: block; margin-top: 4px; color: #7a8797; font-size: 12px; text-align: center; }
html.hv-login-open { overflow: hidden; }

@media (max-width: 782px) {
  .hv-global-account { top: 10px; right: 10px; }
  .hv-global-account__trigger { min-height: 40px; padding: 6px 12px 6px 7px; }
  .hv-global-account__icon { width: 27px; height: 27px; }
  .hv-global-login { padding: 12px; }
  .hv-global-login__dialog { padding: 24px 20px 22px; border-radius: 20px; }
}

.hv-global-account__menu-link {
  display: block;
  margin-top: 6px;
  padding: 10px 11px;
  border-radius: 10px;
  color: #294b7a;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}
.hv-global-account__menu-link:hover { background: #f0f5fb; color: #203f68; }

.hv-login-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin: 18px 0;
  padding: 5px;
  border-radius: 14px;
  background: #eef2f7;
}
.hv-login-tabs button {
  border: 0;
  border-radius: 10px;
  padding: 10px 9px;
  background: transparent;
  color: #647287;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.hv-login-tabs button.is-active { background: #fff; color: #213552; box-shadow: 0 2px 8px rgba(28,45,72,.10); }
[data-hv-login-panel][hidden] { display:none !important; }
[data-hv-login-panel] > p { margin: 0 0 17px; color:#617085; font-size:14px; line-height:1.5; }

.hv-parent-zone,
.hv-parent-zone * { box-sizing: border-box; }
.hv-parent-zone {
  width: min(1080px, calc(100% - 28px));
  margin: 28px auto 60px;
  color: #253852;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
.hv-parent-zone__hero {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:30px 34px;
  border:1px solid #dce7f2;
  border-radius:28px;
  background:linear-gradient(135deg,#f7fbff,#fffaf0);
  box-shadow:0 12px 34px rgba(28,45,72,.08);
}
.hv-parent-zone__hero small { color:#6b7b90; font-size:12px; font-weight:900; letter-spacing:.10em; }
.hv-parent-zone__hero h1 { margin:7px 0 8px; color:#213552; font-size:clamp(30px,5vw,46px); line-height:1.05; }
.hv-parent-zone__hero p { max-width:700px; margin:0; color:#65758a; font-size:15px; line-height:1.55; }
.hv-parent-zone__hero-icon { font-size:58px; }
.hv-parent-zone__account { display:flex; justify-content:space-between; gap:12px; margin:18px 2px 0; padding:12px 16px; border-radius:14px; background:#eff8f1; color:#336044; font-size:13px; }
.hv-parent-notice { margin:16px 0; padding:13px 16px; border-radius:14px; font-weight:700; }
.hv-parent-notice--success { background:#edf9f0; color:#267340; }
.hv-parent-notice--error { background:#fff1f0; color:#a33c36; }
.hv-parent-login-card { max-width:650px; margin:22px auto 0; padding:25px; border:1px solid #dce7f2; border-radius:22px; background:#fff; box-shadow:0 10px 30px rgba(28,45,72,.07); }
.hv-parent-login-card h2 { margin:0 0 7px; color:#213552; }
.hv-parent-login-card p { color:#65758a; line-height:1.55; }
.hv-parent-login-card label { display:block; margin-top:16px; font-size:13px; font-weight:800; }
.hv-parent-login-card input[type="email"] { width:100%; height:47px; margin-top:7px; padding:0 13px; border:1px solid #ced7e3; border-radius:12px; font:inherit; }
.hv-parent-button { min-height:45px; margin-top:13px; padding:10px 17px; border:0; border-radius:12px; background:#294b7a; color:#fff; font:inherit; font-weight:800; cursor:pointer; }
.hv-parent-button:disabled { opacity:.6; cursor:wait; }
.hv-parent-button--small { min-height:38px; margin:0; padding:8px 14px; }
.hv-parent-form-message { min-height:20px; margin-top:9px; color:#52657d; font-size:13px; font-weight:650; }
.hv-parent-children { display:grid; gap:20px; margin-top:22px; }
.hv-parent-child-card { padding:24px; border:1px solid #dce7f2; border-radius:24px; background:#fff; box-shadow:0 10px 30px rgba(28,45,72,.07); }
.hv-parent-child-card__head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.hv-parent-child-card__head small { color:#77869a; font-weight:800; }
.hv-parent-child-card__head h2 { margin:3px 0 0; color:#213552; font-size:29px; }
.hv-parent-growth { padding:8px 11px; border-radius:999px; background:#f0f5fb; color:#3a5b82; font-size:12px; font-weight:850; }
.hv-parent-metrics { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-top:18px; }
.hv-parent-metrics > div { min-height:112px; padding:15px; border-radius:17px; background:#f7f9fc; }
.hv-parent-metrics span,.hv-parent-metrics strong,.hv-parent-metrics small { display:block; }
.hv-parent-metrics span { font-size:22px; }
.hv-parent-metrics strong { margin:7px 0 3px; color:#213552; font-size:22px; }
.hv-parent-metrics small { color:#78879a; font-size:12px; }
.hv-parent-columns { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-top:14px; }
.hv-parent-panel { padding:18px; border:1px solid #e4eaf1; border-radius:18px; }
.hv-parent-panel h3 { margin:0 0 12px; color:#2c435f; font-size:17px; }
.hv-parent-errors { list-style:none; padding:0; margin:0; display:grid; gap:8px; }
.hv-parent-errors li { display:flex; justify-content:space-between; gap:12px; padding:9px 10px; border-radius:11px; background:#fff8f2; }
.hv-parent-errors li span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hv-parent-errors li b { flex:none; color:#9b6440; font-size:12px; }
.hv-parent-results { display:grid; gap:8px; }
.hv-parent-results > div { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:9px 10px; border-radius:11px; background:#f6f9fc; }
.hv-parent-results span strong,.hv-parent-results span small { display:block; }
.hv-parent-results span strong { font-size:13px; }
.hv-parent-results span small { margin-top:2px; color:#8490a0; font-size:11px; }
.hv-parent-results > div > b { color:#294b7a; }
.hv-parent-empty { margin:0; color:#7c8998; font-size:13px; line-height:1.5; }
.hv-parent-report-setting { display:grid; grid-template-columns:1fr auto; gap:10px 14px; align-items:center; margin-top:16px; padding:14px 16px; border-radius:16px; background:#f7fbff; }
.hv-parent-report-setting label { display:flex; align-items:flex-start; gap:10px; cursor:pointer; }
.hv-parent-report-setting input[type="checkbox"] { margin-top:4px; }
.hv-parent-report-setting label span strong,.hv-parent-report-setting label span small { display:block; }
.hv-parent-report-setting label span small { margin-top:2px; color:#748399; font-size:12px; }
.hv-parent-report-setting .hv-parent-form-message { grid-column:1/-1; margin:0; }

@media (max-width: 800px) {
  .hv-parent-zone__hero { padding:24px; }
  .hv-parent-zone__hero-icon { display:none; }
  .hv-parent-zone__account { flex-direction:column; }
  .hv-parent-metrics { grid-template-columns:1fr 1fr; }
  .hv-parent-columns { grid-template-columns:1fr; }
}
@media (max-width: 520px) {
  .hv-parent-zone { width:min(100% - 18px,1080px); margin-top:14px; }
  .hv-parent-child-card { padding:17px; }
  .hv-parent-child-card__head { align-items:flex-start; flex-direction:column; }
  .hv-parent-metrics { grid-template-columns:1fr; }
  .hv-parent-report-setting { grid-template-columns:1fr; }
  .hv-parent-button--small { width:100%; }
}

/* 0.20.0 – registrace rodiny a párování */
.hv-global-login__dialog select,
.hv-parent-login-card input[type="text"],
.hv-parent-login-card input[type="password"],
.hv-parent-login-card input[type="email"],
.hv-parent-login-card select {
  width: 100%;
  height: 47px;
  margin-top: 7px;
  padding: 0 13px;
  border: 1px solid #ced7e3;
  border-radius: 12px;
  background: #fff;
  color: #213552;
  font: inherit;
  outline: none;
}
.hv-global-login__dialog select {
  width: 100%;
  height: 46px;
  margin-top: 6px;
  padding: 0 13px;
  border: 1px solid #ced7e3;
  border-radius: 12px;
  background: #fff;
  color: #213552;
  font: inherit;
  font-weight: 500;
  outline: none;
}
.hv-global-login__dialog select:focus,
.hv-parent-login-card input:focus,
.hv-parent-login-card select:focus {
  border-color: #6388be;
  box-shadow: 0 0 0 3px rgba(99, 136, 190, .14);
}

.hv-auth-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 17px;
  padding: 4px;
  border-radius: 13px;
  background: #f0f3f7;
}
[data-hv-login-panel="parent"] .hv-auth-switch {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.hv-auth-switch button {
  min-height: 38px;
  padding: 7px 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #67768a;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.hv-auth-switch button.is-active {
  background: #fff;
  color: #213552;
  box-shadow: 0 2px 8px rgba(28,45,72,.1);
}
[data-hv-student-view][hidden],
[data-hv-parent-view][hidden] { display: none !important; }
[data-hv-student-view] > p,
[data-hv-parent-view] > p { margin: 0 0 17px; color:#617085; font-size:14px; line-height:1.5; }

.hv-global-account__menu-button {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.hv-global-account__pair {
  margin: 7px 3px 2px;
  padding: 11px;
  border-radius: 12px;
  background: #f5f8fc;
  color: #4b5f78;
}
.hv-global-account__pair small,
.hv-global-account__pair strong,
.hv-global-account__pair b,
.hv-global-account__pair em { display:block; }
.hv-global-account__pair small { margin-top: 3px; font-size: 10px; text-transform: uppercase; letter-spacing:.06em; color:#7d8a9b; }
.hv-global-account__pair strong { margin: 2px 0 6px; font-size: 13px; color:#213552; }
.hv-global-account__pair b { margin: 3px 0 4px; font-size: 26px; letter-spacing:.11em; color:#294b7a; }
.hv-global-account__pair em { font-size: 11px; font-style: normal; color:#7b8999; }

.hv-parent-auth-shell { max-width: 720px; margin: 22px auto 0; }
.hv-auth-switch--parent-page {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto 10px;
  max-width: 650px;
}
.hv-parent-auth-shell .hv-parent-login-card { margin-top: 10px; }
.hv-parent-login-card label { display:block; margin-top:16px; font-size:13px; font-weight:800; }
.hv-parent-link-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 22px;
}
.hv-parent-link-grid .hv-parent-login-card { max-width: none; margin: 0; }
.hv-parent-setup-card { max-width: 720px; }
.hv-parent-notice:not(.hv-parent-notice--success):not(.hv-parent-notice--error) {
  background:#f5f8fc;
  color:#53667d;
}

@media (max-width: 800px) {
  .hv-parent-link-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  [data-hv-login-panel="parent"] .hv-auth-switch,
  .hv-auth-switch--parent-page { grid-template-columns: 1fr; }
}
.hv-global-login__dialog { max-height: calc(100vh - 24px); overflow-y: auto; }

/* 0.21.0 – náhodné zajímavosti v žákovském loginu */
.hv-global-login__dialog {
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.hv-login-fact {
  margin: 0 0 16px;
  padding: 13px 14px 12px;
  border: 1px solid #e8ddbd;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff9df, #fffdf7);
  box-shadow: 0 5px 16px rgba(69, 56, 22, .06);
}
.hv-login-fact[hidden] { display: none !important; }
.hv-login-fact__top,
.hv-login-fact__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.hv-login-fact__top strong {
  color: #67501d;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .01em;
}
.hv-login-fact__category {
  flex: none;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: #7b6a43;
  font-size: 10px;
  font-weight: 800;
}
.hv-login-fact p {
  margin: 9px 0 8px !important;
  color: #3f4550 !important;
  font-size: 13px !important;
  font-weight: 650;
  line-height: 1.48 !important;
}
.hv-login-fact__foot {
  min-height: 22px;
  justify-content: flex-end;
}
.hv-login-fact__foot a {
  margin-right: auto;
  color: #315b87;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}
.hv-login-fact__foot button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #7c6a43;
  font: inherit;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}
.hv-login-fact__foot button:hover { color: #4f3d18; text-decoration: underline; }
.hv-login-fact__foot button:disabled { opacity: .5; cursor: wait; text-decoration: none; }
.hv-login-fact.is-loading p { opacity: .62; }

@media (max-width: 520px) {
  .hv-global-login__dialog { max-height: calc(100vh - 20px); }
  .hv-login-fact { padding: 12px; }
}
