/**
 * Unokidz — common site header (all pages)
 * Rainbow gradient bar, white frame, premium typography.
 */
.unokidz-ch-shell-landing {
  box-sizing: border-box;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.75rem 1rem 0;
  position: relative;
  z-index: 42;
}

:root {
  --unokidz-ch-radius: 1.65rem;
  --unokidz-ch-pad-y: 1rem;
  --unokidz-ch-pad-x: 1.25rem;
}

.unokidz-ch {
  position: relative;
  z-index: 40;
  flex-shrink: 0;
  margin: 0 auto 1rem;
  max-width: 100%;
  border-radius: var(--unokidz-ch-radius);
  padding: 4px;
  background: #fff;
  box-shadow:
    0 6px 0 #0c4a6e,
    0 14px 40px rgba(14, 165, 233, 0.18);
}

.unokidz-ch-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
  padding: var(--unokidz-ch-pad-y) var(--unokidz-ch-pad-x);
  border-radius: calc(var(--unokidz-ch-radius) - 3px);
  background: linear-gradient(
    105deg,
    #38bdf8 0%,
    #818cf8 28%,
    #c084fc 52%,
    #f472b6 72%,
    #fbbf24 100%
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

@media (min-width: 768px) {
  .unokidz-ch-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
  }
}

.unokidz-ch-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #fff;
  min-width: 0;
}

.unokidz-ch-brand:hover {
  color: #fff;
  opacity: 0.95;
}

.unokidz-ch-logo {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  object-fit: contain;
  background: rgba(15, 23, 42, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.unokidz-ch-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.unokidz-ch-name {
  font-family: "Fredoka", "Sora", system-ui, sans-serif;
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

.unokidz-ch-tagline {
  font-size: 0.8125rem;
  font-weight: 500;
  opacity: 0.95;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.unokidz-ch-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

@media (min-width: 768px) {
  .unokidz-ch-right {
    justify-content: flex-end;
    margin-left: auto;
  }
}

.unokidz-ch-datetime {
  text-align: left;
}

@media (min-width: 768px) {
  .unokidz-ch-datetime {
    text-align: right;
  }
}

.unokidz-ch-date {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  line-height: 1.25;
}

.unokidz-ch-time {
  font-size: 0.8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  margin-top: 0.1rem;
}

.unokidz-ch-divider {
  width: 1px;
  height: 2.25rem;
  background: rgba(255, 255, 255, 0.45);
  flex-shrink: 0;
}

.unokidz-ch-motivate {
  margin: 0;
  max-width: 14rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.unokidz-ch-user {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  min-width: 0;
}

@media (min-width: 768px) {
  .unokidz-ch-user {
    align-items: flex-end;
  }
}

.unokidz-ch-user-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.unokidz-ch-role {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(120, 53, 15, 0.92);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.unokidz-ch-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-top: 0.35rem;
}

.unokidz-ch-actions a,
.unokidz-ch-actions button {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.unokidz-ch-actions a:hover,
.unokidz-ch-actions button:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.unokidz-ch-actions .unokidz-ch-dot {
  color: rgba(255, 255, 255, 0.65);
  user-select: none;
}

.unokidz-ch-guest {
  margin: 0;
}

.unokidz-ch-guest a {
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Dashboard shell: bleed header to shell edges (inset = shell padding + safe area) */
html.theme-zevaras .dash-premium-shell > .unokidz-ch {
  margin: -0.5rem -1rem 0.75rem;
}

@media (min-width: 640px) {
  html.theme-zevaras .dash-premium-shell > .unokidz-ch {
    margin: -0.25rem -0.5rem 1rem;
  }
}

html.theme-zevaras .dash-premium-shell.unokidz-app-shell > .unokidz-ch {
  margin-top: 0;
  margin-bottom: 0.75rem;
  margin-left: 0;
  margin-right: 0;
}

@media (min-width: 640px) {
  html.theme-zevaras .dash-premium-shell.unokidz-app-shell > .unokidz-ch {
    margin-top: 0;
    margin-bottom: 1rem;
  }
}

html.kids-ui.theme-zevaras .dash-premium-shell > .unokidz-ch {
  box-shadow:
    0 6px 0 #7c3aed,
    0 14px 40px rgba(124, 58, 237, 0.15);
}
