/* ── Screen system ── */
.screen {
  display: none; flex-direction: column;
  min-height: 100dvh; width: 100%;
  background: var(--bg);
}
.screen.active { display: flex; }

/* ══════════════════════════════════════
   LOGIN
══════════════════════════════════════ */
#screen-login {
  background: #060d13;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}

/* ── Mesh-gradient layers (размещены в #screen-login, не клипятся) ── */
.login-glow {
  position: fixed;
  pointer-events: none;
  z-index: 0;
}
#screen-login:not(.active) .login-glow,
#screen-login:not(.active) .login-noise,
#screen-mentor-home:not(.active) .login-glow { display: none; }
/* Яркое ядро — точечный источник в правом верхнем углу */
.login-glow-src {
  width: 220px; height: 220px;
  top: -55px; right: -45px;
  background: rgba(20, 232, 142, 0.72);
  border-radius: 50%;
  filter: blur(52px);
  will-change: transform;
  animation: glowSrc 9s ease-in-out infinite;
}
/* Главный луч: узкий прямоугольник, повёрнут от угла вниз-влево */
.login-glow-beam {
  width: 155px; height: 700px;
  top: -110px; right: 50px;
  background: linear-gradient(to bottom,
    rgba(16, 205, 122, 0.42) 0%,
    rgba(10, 165, 98, 0.14) 55%,
    transparent 100%);
  border-radius: 50%;
  filter: blur(52px);
  transform: rotate(-36deg);
  transform-origin: top center;
  will-change: transform;
  animation: glowBeam 11s ease-in-out infinite;
  animation-delay: -3s;
}
/* Мягкий ореол — даёт глубину в левой нижней зоне */
.login-glow-amb {
  width: 340px; height: 300px;
  bottom: 200px; left: -100px;
  background: rgba(10, 148, 88, 0.18);
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
  animation: glowAmb 10s ease-in-out infinite;
  animation-delay: -5s;
}
/* Маленький блоб в левом нижнем углу */
.login-glow-bl {
  width: 150px; height: 150px;
  bottom: -40px; left: -30px;
  background: rgba(14, 210, 120, 0.55);
  border-radius: 50%;
  filter: blur(45px);
  will-change: transform;
  animation: glowBL 8s ease-in-out infinite;
  animation-delay: -2s;
}

@keyframes glowSrc {
  0%   { transform: translate(0,    0)    scale(1);    }
  22%  { transform: translate(-100px, 80px)  scale(1.12); }
  48%  { transform: translate(-210px, 160px) scale(0.93); }
  72%  { transform: translate(-130px, 270px) scale(1.07); }
  100% { transform: translate(0,    0)    scale(1);    }
}
@keyframes glowBeam {
  0%   { transform: rotate(-36deg) translate(0,     0)   scale(1);    }
  30%  { transform: rotate(-58deg) translate(-70px,  90px) scale(1.1);  }
  62%  { transform: rotate(-16deg) translate(-190px, 70px) scale(0.9);  }
  100% { transform: rotate(-36deg) translate(0,     0)   scale(1);    }
}
@keyframes glowAmb {
  0%   { transform: translate(0,    0)     scale(1);    }
  28%  { transform: translate(160px, -110px) scale(1.18); }
  58%  { transform: translate(260px, -210px) scale(0.87); }
  82%  { transform: translate(110px, -80px)  scale(1.06); }
  100% { transform: translate(0,    0)     scale(1);    }
}
@keyframes glowBL {
  0%   { transform: translate(0,    0)    scale(1);    }
  30%  { transform: translate(80px,  -90px) scale(1.2);  }
  60%  { transform: translate(180px, -160px) scale(0.9); }
  85%  { transform: translate(60px,  -60px) scale(1.1);  }
  100% { transform: translate(0,    0)    scale(1);    }
}
/* Noise overlay — убирает бандинг, добавляет плёночную текстуру */
.login-noise {
  position: fixed; inset: 0;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.055;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.login-top {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 0 24px 28px; gap: 10px;
  position: relative; z-index: 1;
  --animate-duration: 0.7s;
}

/* Лого — иконка со статичным glow-кольцом */
.login-logo-img {
  width: 78px; height: 78px;
  border-radius: 20px;
  object-fit: contain;
  padding: 6px;
  margin-bottom: 2px;
  box-shadow:
    0 0 0 2px rgba(20,232,140,.3),
    0 0 24px rgba(20,232,140,.2),
    0 6px 24px rgba(0,0,0,.3);
}

.login-top h2 { font-size: 27px; font-weight: 800; color: white; letter-spacing: -.4px; }
.login-top p  { font-size: 12px; color: rgba(255,255,255,.5); font-weight: 500; text-align: center; }
.login-features {
  display: flex; gap: 7px; margin-top: 6px; flex-wrap: wrap; justify-content: center;
}
.login-feat {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px; padding: 5px 11px;
  font-size: 11px; font-weight: 600; color: rgba(255,255,255,.8);
}

/* ── Glassmorphism card ── */
.login-card {
  background: rgba(8, 22, 16, 0.55);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255,255,255,.14);
  border-bottom: none;
  border-radius: 28px 28px 0 0;
  padding: 22px 20px calc(28px + var(--safe-bottom));
  flex-shrink: 0;
  position: relative; z-index: 1;
  --animate-duration: 0.6s;
}
.login-card-tabs {
  display: flex; border-bottom: 1px solid rgba(255,255,255,.14); margin-bottom: 18px;
}
.ctab {
  flex: 1; text-align: center; padding-bottom: 10px;
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,.4);
  border: none; border-bottom: 2px solid transparent; margin-bottom: -1px;
  background: none; cursor: pointer; font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.ctab.active { color: #14e88e; border-bottom-color: #14e88e; }

/* ── Тёмные поля ввода (только в экране логина) ── */
#screen-login .field {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  transition: border-color .2s, background .2s;
}
#screen-login .field svg { stroke: rgba(255,255,255,.45); }
#screen-login .field input {
  background: transparent;
  color: white;
}
#screen-login .field input::placeholder { color: rgba(255,255,255,.38); }
#screen-login .field:focus-within {
  border-color: rgba(20,232,140,.55);
  background: rgba(20,232,140,.07);
}
#screen-login .field:focus-within svg { stroke: rgba(20,232,140,.7); }

/* ══════════════════════════════════════
   SHARED: PROFILE SECTION
══════════════════════════════════════ */
.prof-section {
  display: flex; flex-direction: column; align-items: center;
  gap: 5px; padding: 20px 20px 12px; flex-shrink: 0;
}
.prof-section .av {
  width: 70px; height: 70px; font-size: 26px;
  border: 3px solid var(--green); margin-bottom: 4px;
}
.pname { font-size: 18px; font-weight: 800; color: var(--dark); }
.pbadge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: 20px;
  background: var(--green-lt); color: var(--green);
  font-size: 11px; font-weight: 700;
}
.pbadge-blue { background: #eff6ff; color: var(--blue); }
.plinks { font-size: 12px; color: var(--muted); margin-top: 2px; }
.plinks a, .plinks span[onclick] { color: var(--green); cursor: pointer; }

/* ══════════════════════════════════════
   QUICK ACTION GRIDS
══════════════════════════════════════ */
.qa-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; padding: 0 14px 0; flex-shrink: 0;
}
.qa-3col { grid-template-columns: repeat(3, 1fr); }

/* ══════════════════════════════════════
   HOME DRAWER (DDL + Mentor)
══════════════════════════════════════ */
.home-drawer {
  flex: 1;
  background: var(--drawer-ddl);
  border-radius: 26px 26px 0 0;
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 10px 18px calc(16px + var(--safe-bottom));
  display: flex; flex-direction: column;
  margin-top: 13px;
  overflow-y: auto; overflow-x: hidden;
}
.home-drawer::-webkit-scrollbar { display: none; }

.handle {
  width: 36px; height: 4px;
  background: rgba(255,255,255,.16); border-radius: 2px;
  margin: 0 auto 14px; flex-shrink: 0;
}

/* Stats row */
.stats-row { display: flex; gap: 10px; margin-bottom: 12px; flex-shrink: 0; }
.stat-pill {
  flex: 1; background: rgba(255,255,255,.09); border-radius: 13px;
  padding: 11px 12px; display: flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255,255,255,.13);
}
.stat-pill svg { width: 16px; height: 16px; flex-shrink: 0; }
.snum { font-size: 20px; font-weight: 800; color: white; line-height: 1; }
.slbl { font-size: 10px; color: rgba(255,255,255,.4); font-weight: 600; margin-top: 2px; }

/* Shift preview in drawer */
.shift-preview {
  background: rgba(255,255,255,.07); border-radius: 15px;
  padding: 12px 13px; border: 1px solid rgba(255,255,255,.1);
  margin-bottom: 12px; flex-shrink: 0;
}
.sp-label { font-size: 10px; font-weight: 700; color: rgba(255,255,255,.35); text-transform: uppercase; letter-spacing:.7px; margin-bottom: 4px; display: flex; align-items: center; justify-content: space-between; }
.sp-name  { font-size: 15px; font-weight: 700; color: white; }
.sp-venue { font-size: 12px; color: rgba(255,255,255,.4); margin-top: 2px; }
.sp-dates { display: flex; align-items: center; gap: 4px; font-size: 11px; color: rgba(255,255,255,.4); font-weight: 600; margin-top: 6px; }
.sp-dates svg { width: 11px; height: 11px; stroke: rgba(255,255,255,.3); }
.sp-alert { background: var(--red); color: white; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 7px; }

/* Drawer toggle */
.drawer-toggle {
  display: flex; align-items: center; justify-content: space-between;
  background: transparent; border: none; cursor: pointer; width: 100%;
  padding: 10px 0; flex-shrink: 0; -webkit-tap-highlight-color: transparent;
}
.drawer-toggle span { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.35); }
.drawer-toggle svg  { width: 14px; height: 14px; stroke: rgba(255,255,255,.3); transition: transform .2s; flex-shrink: 0; }
.drawer-toggle.open svg { transform: rotate(180deg); }

/* Drawer items */
.drawer-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 6px; cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,.05);
  -webkit-tap-highlight-color: transparent;
}
.drawer-item:last-child { border-bottom: none; }
.drawer-item .ico  { width: 17px; height: 17px; stroke: var(--green); flex-shrink: 0; fill: none; }
.drawer-item span  { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.8); flex: 1; }
.drawer-item .chev { stroke: rgba(255,255,255,.2); width: 13px; height: 13px; flex-shrink: 0; fill: none; }

/* Pending badge in drawer */
.drawer-badge {
  background: var(--red); color: white;
  font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 99px;
}

/* ══════════════════════════════════════
   MENTOR HOME — DARK THEME + NEW CARDS (alldark)
══════════════════════════════════════ */
#screen-mentor-home {
  position: relative;
  background: #060d13;
}
#screen-mentor-home > .prof-section,
#screen-mentor-home > .qa-grid,
#screen-mentor-home > .mp-card,
#screen-mentor-home > #mentor-shift-card,
#screen-mentor-home > .home-drawer,
#screen-ddl-home > .prof-section,
#screen-ddl-home > .qa-grid,
#screen-ddl-home > .mp-card,
#screen-ddl-home > #ddl-shift-card,
#screen-ddl-home > #ddl-stats-card,
#screen-ddl-home > .home-drawer {
  position: relative;
  z-index: 2;
}
#screen-mentor-home .prof-section .pname,
#screen-ddl-home .prof-section .pname { color: #fff; }
#screen-mentor-home .prof-section .pbadge {
  background: linear-gradient(135deg, rgba(124,58,237,0.25) 0%, rgba(155,95,245,0.18) 100%);
  color: #c4b5fd;
  border: 1px solid rgba(155,95,245,0.45);
  box-shadow: 0 0 20px rgba(124,58,237,0.25), inset 0 1px 0 rgba(255,255,255,0.10);
  padding: 6px 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
#screen-ddl-home .prof-section .pbadge {
  background: rgba(15, 35, 28, 0.85);
  color: #5eead4;
  border: 1px solid rgba(20,232,142,0.55);
  box-shadow: 0 0 24px rgba(20,232,142,0.30), inset 0 1px 0 rgba(255,255,255,0.10);
  padding: 6px 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
#screen-ddl-home .prof-section .pbadge svg { stroke: #5eead4; }
#screen-mentor-home .prof-section .plinks,
#screen-ddl-home .prof-section .plinks { color: rgba(255,255,255,0.4); }
#screen-mentor-home .prof-section .plinks span,
#screen-ddl-home .prof-section .plinks span { color: rgba(255,255,255,0.75); }
#screen-mentor-home .prof-section .plinks span:hover,
#screen-ddl-home .prof-section .plinks span:hover { color: #14e88e; }
#screen-mentor-home .home-drawer,
#screen-ddl-home .home-drawer {
  background: rgba(8,22,16,0.65);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-top: 1px solid rgba(255,255,255,.12);
}
#screen-ddl-home .drawer-toggle-title {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 6px 0 4px;
}

/* Info panel cards */
.mp-card {
  margin: 10px 16px 0;
  border-radius: 18px;
  padding: 16px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.10);
  color: #fff;
  transition: all 0.2s;
  display: block;
}
.mp-card.mp-card-hero {
  background: linear-gradient(135deg, rgba(20,232,142,0.08) 0%, rgba(8,22,16,0.65) 100%);
  border: 1px solid rgba(20,232,142,0.25);
  cursor: pointer;
}
.mp-card.mp-card-hero:hover {
  border-color: rgba(20,232,142,0.5);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(20,232,142,0.15);
}
.mp-card .mp-label,
#mentor-shift-card .mp-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.mp-card .mp-title,
#mentor-shift-card .mp-title {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 6px;
}
.mp-card .mp-meta,
#mentor-shift-card .mp-meta {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.mp-card .mp-meta svg,
#mentor-shift-card .mp-meta svg {
  width: 13px;
  height: 13px;
  stroke: #14e88e;
  flex-shrink: 0;
}
.mp-card .mp-status,
#mentor-shift-card .mp-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(20,232,142,0.15);
  color: #14e88e;
  border: 1px solid rgba(20,232,142,0.35);
  margin-top: 8px;
}
.mp-card .mp-status svg,
#mentor-shift-card .mp-status svg { fill: #14e88e; }
.mp-card .mp-role,
#mentor-shift-card .mp-role {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  margin-top: 4px;
}

/* Stats panel: split layout */
.mp-card.mp-card-stats {
  display: flex;
  gap: 14px;
  align-items: stretch;
}
.mp-stats-left {
  flex-shrink: 0;
  padding-right: 14px;
  border-right: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 80px;
}
.mp-stats-left .mp-stats-num {
  font-size: 32px;
  font-weight: 800;
  color: #14e88e;
  line-height: 1;
  text-shadow: 0 0 20px rgba(20,232,142,0.3);
}
.mp-stats-left .mp-stats-lbl {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  margin-top: 4px;
  text-align: center;
}
.mp-stats-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mp-stats-right .mp-grades-label {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}
.mp-grade-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  font-size: 12px;
}
.mp-grade-item .mp-grade-role {
  color: rgba(255,255,255,0.85);
  font-weight: 600;
}
.mp-grade-item .mp-grade-count {
  color: rgba(255,255,255,0.4);
  font-weight: 500;
  margin-left: 4px;
}
.mp-grade-item .mp-grade-level {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(20,232,142,0.15);
  color: #14e88e;
  border: 1px solid rgba(20,232,142,0.3);
}
.mp-grade-item .mp-grade-level.grade-expert {
  background: rgba(251,191,36,0.15); color: #fbbf24; border-color: rgba(251,191,36,0.3);
}
.mp-grade-item .mp-grade-level.grade-resident {
  background: rgba(96,165,250,0.15); color: #60a5fa; border-color: rgba(96,165,250,0.3);
}

/* Contacts + notifications in mentor drawer */
#screen-mentor-home #mentor-ddl-contacts .mp-contact {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
#screen-mentor-home #mentor-ddl-contacts .mp-contact .mp-contact-name {
  font-size: 13px; font-weight: 600; color: #fff; flex: 1;
}
#screen-mentor-home #mentor-ddl-contacts .mp-contact a {
  font-size: 12px; color: #14e88e; text-decoration: none;
}
#screen-mentor-home #mentor-notif-list .mp-notif {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
#screen-mentor-home #mentor-notif-list .mp-notif .mp-notif-icon {
  font-size: 16px;
  flex-shrink: 0;
}
#screen-mentor-home #mentor-notif-list .mp-notif .mp-notif-text {
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  flex: 1;
}
#screen-mentor-home #mentor-notif-list .mp-notif .mp-notif-date {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  flex-shrink: 0;
}

/* Legacy employee shift badge (still used by older code paths) */
.ebadge {
  background: rgba(255,255,255,.1); border-radius: 12px;
  min-width: 54px; padding: 10px 8px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.ebn { font-size: 22px; font-weight: 800; color: white; line-height: 1; }
.ebl { font-size: 9px; color: rgba(255,255,255,.4); font-weight: 600; text-align: center; margin-top: 3px; line-height: 1.3; }
.ecb { flex: 1; }
.ecshift { font-size: 14px; font-weight: 700; color: white; }
.ecvenue { font-size: 11px; color: rgba(255,255,255,.4); margin-top: 2px; }
.ecrole  { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.65); margin-top: 8px; }
.ectime  {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--green); color: white;
  font-size: 10px; font-weight: 700;
  padding: 4px 9px; border-radius: 7px; margin-top: 6px;
}
.ectime svg { width: 11px; height: 11px; stroke: white; }

/* ══════════════════════════════════════
   CHILD HOME
══════════════════════════════════════ */
#screen-child-home {
  background: #140802;
  position: relative;
  overflow: hidden;
}

/* ── Orange mesh-gradient glow layers (ребёнок) ── */
.child-glow {
  position: fixed;
  pointer-events: none;
  z-index: 0;
}
#screen-child-home:not(.active) .child-glow,
#screen-child-home:not(.active) .child-noise { display: none; }
.child-glow-src {
  width: 240px; height: 240px;
  top: -60px; right: -55px;
  background: rgba(251, 146, 60, 0.78);
  border-radius: 50%;
  filter: blur(56px);
  will-change: transform;
  animation: glowSrc 9s ease-in-out infinite;
}
.child-glow-beam {
  width: 170px; height: 720px;
  top: -120px; right: 55px;
  background: linear-gradient(to bottom,
    rgba(234, 88, 12, 0.48) 0%,
    rgba(217, 119, 6, 0.16) 55%,
    transparent 100%);
  border-radius: 50%;
  filter: blur(54px);
  transform: rotate(-36deg);
  transform-origin: top center;
  will-change: transform;
  animation: glowBeam 11s ease-in-out infinite;
  animation-delay: -3s;
}
.child-glow-amb {
  width: 360px; height: 320px;
  bottom: 180px; left: -110px;
  background: rgba(194, 65, 12, 0.22);
  border-radius: 50%;
  filter: blur(94px);
  will-change: transform;
  animation: glowAmb 10s ease-in-out infinite;
  animation-delay: -5s;
}
.child-glow-bl {
  width: 160px; height: 160px;
  bottom: -45px; left: -35px;
  background: rgba(251, 191, 36, 0.55);
  border-radius: 50%;
  filter: blur(48px);
  will-change: transform;
  animation: glowBL 8s ease-in-out infinite;
  animation-delay: -2s;
}
.child-noise {
  position: fixed; inset: 0;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.06;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.child-header {
  background: transparent;
  padding: 20px 18px 18px; flex-shrink: 0;
  position: relative; z-index: 1;
}
.child-profile-row {
  display: flex; align-items: center; gap: 12px; margin-bottom: 13px;
}
.cav {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(251,146,60,.35), rgba(217,119,6,.45));
  border: 2px solid rgba(255,255,255,.35);
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 800; color: white;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 18px rgba(234,88,12,.35), inset 0 1px 0 rgba(255,255,255,.25);
}
.cname  { font-size: 17px; font-weight: 800; color: white; }
.csquad { font-size: 12px; color: rgba(255,255,255,.7); font-weight: 600; margin-top: 2px; }

.child-stats { display: flex; gap: 8px; }
.cstat {
  flex: 1; border-radius: 13px; padding: 10px 8px; text-align: center;
  background: linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
.cvl   { font-size: 17px; font-weight: 800; color: white; line-height: 1; text-shadow: 0 1px 6px rgba(0,0,0,.3); }
.clbl  { font-size: 9px; color: rgba(255,255,255,.7); font-weight: 600; margin-top: 3px; text-transform: uppercase; letter-spacing:.3px; }

.child-body {
  flex: 1; padding: 13px 14px 18px;
  display: flex; flex-direction: column; gap: 11px;
  position: relative; z-index: 1;
}

/* "Я на смене!" button */
.btn-shift {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px; border-radius: 13px;
  background: linear-gradient(135deg, #fb923c 0%, #c2410c 100%);
  border: 1px solid rgba(255,255,255,.3);
  color: white; flex-shrink: 0;
  font: 800 15px 'Montserrat', sans-serif; cursor: pointer;
  box-shadow: 0 8px 32px rgba(234,88,12,.55), inset 0 1px 0 rgba(255,255,255,.32);
  position: relative; overflow: hidden; z-index: 1;
  -webkit-tap-highlight-color: transparent;
}
.btn-shift::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,.22) 0%, transparent 100%);
  pointer-events: none;
}
.btn-shift svg { width: 18px; height: 18px; stroke: white; position: relative; z-index: 1; fill: none; }
.btn-shift span { position: relative; z-index: 1; }
.btn-shift:active { transform: scale(0.98); }

.stitle { font-size: 11px; font-weight: 700; color: rgba(255,255,255,.65); text-transform: uppercase; letter-spacing:.6px; }

/* Skill rows (child home preview) — orange glass card */
.skrow {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 13px;
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.skico {
  width: 32px; height: 32px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: rgba(251,146,60,.18); border: 1px solid rgba(251,146,60,.3);
}
.skico svg { width: 14px; height: 14px; fill: none; stroke: #fb923c; }
.skinfo { flex: 1; }
.sknm  { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.92); margin-bottom: 4px; }
.skbar { height: 6px; background: rgba(255,255,255,.1); border-radius: 3px; overflow: hidden; }
.skb   { height: 100%; border-radius: 3px; transition: width .6s; }
.skscore { font-size: 14px; font-weight: 800; min-width: 28px; text-align: right; flex-shrink: 0; color: #fbbf24; text-shadow: 0 1px 6px rgba(234,88,12,.4); }

.skrow-1 .skb { background: linear-gradient(90deg, #fde68a, #fbbf24); }
.skrow-1 .skico { background: rgba(251,191,36,.18); border-color: rgba(251,191,36,.35); }
.skrow-1 .skico svg { stroke: #fbbf24; }
.skrow-1 .skscore { color: #fbbf24; }
.skrow-2 .skb { background: linear-gradient(90deg, #fb923c, #f97316); }
.skrow-2 .skico { background: rgba(251,146,60,.18); border-color: rgba(251,146,60,.35); }
.skrow-2 .skico svg { stroke: #fb923c; }
.skrow-2 .skscore { color: #fb923c; }
.skrow-3 .skb { background: linear-gradient(90deg, #f472b6, #ec4899); }
.skrow-3 .skico { background: rgba(244,114,182,.18); border-color: rgba(244,114,182,.35); }
.skrow-3 .skico svg { stroke: #f472b6; }
.skrow-3 .skscore { color: #f472b6; }

/* Reminder — orange glass */
.remind {
  background: linear-gradient(135deg, rgba(251,146,60,.14), rgba(234,88,12,.08));
  border-radius: 13px; padding: 11px 13px;
  display: flex; align-items: center; gap: 10px;
  border: 1px solid rgba(251,146,60,.28);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
  position: relative; z-index: 1;
}
.remico { width: 33px; height: 33px; background: rgba(251,191,36,.18); border: 1px solid rgba(251,191,36,.3); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.remtxt  { font-size: 12px; font-weight: 700; color: #fff; }
.remtime { font-size: 11px; color: rgba(255,255,255,.7); margin-top: 1px; }

/* Active-shift plashka (home) */
#child-active-shift {
  background: linear-gradient(135deg, rgba(234,88,12,.28) 0%, rgba(217,119,6,.22) 100%);
  border: 1px solid rgba(251,146,60,.35);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: 14px;
  padding: 13px 14px;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(234,88,12,.3), inset 0 1px 0 rgba(255,255,255,.18);
  -webkit-tap-highlight-color: transparent;
}
#child-active-shift:active { transform: scale(.99); }
.cas-top { display: flex; align-items: center; gap: 11px; }
.cas-emoji { font-size: 26px; }
.cas-info { flex: 1; min-width: 0; }
.cas-name { font-size: 15px; font-weight: 800; color: #fff; }
.cas-meta { font-size: 11px; color: rgba(255,255,255,.78); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cas-chev { width: 16px; height: 16px; stroke: rgba(255,255,255,.7); fill: none; flex-shrink: 0; }
.cas-progress { height: 5px; background: rgba(255,255,255,.14); border-radius: 3px; margin-top: 11px; overflow: hidden; }
.cas-bar { height: 100%; background: linear-gradient(90deg, #fbbf24, #fb923c); border-radius: 3px; transition: width .5s; }
.cas-day { font-size: 11px; font-weight: 700; color: #fbbf24; margin-top: 7px; text-transform: uppercase; letter-spacing:.4px; }

/* Child drawer — Последние уведомления */
.child-drawer {
  background: linear-gradient(150deg, rgba(124,45,18,.55) 0%, rgba(217,119,6,.55) 100%);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-radius: 22px 22px 0 0;
  border-top: 1px solid rgba(255,255,255,.18);
  padding: 10px 18px calc(14px + var(--safe-bottom));
  flex-shrink: 0;
  position: relative; z-index: 1;
  box-shadow: 0 -12px 40px rgba(234,88,12,.25), inset 0 1px 0 rgba(255,255,255,.14);
}
.cdr-title {
  font-size: 11px; font-weight: 700; color: rgba(255,255,255,.85);
  text-transform: uppercase; letter-spacing:.5px; margin: 6px 2px 10px;
}
.cdr-notif-list { display: flex; flex-direction: column; gap: 8px; }
.cdr-notif-empty {
  font-size: 12px; color: rgba(255,255,255,.55);
  text-align: center; padding: 10px 0;
}
.cdr-notif-item {
  display: flex; gap: 10px; padding: 9px 11px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.10);
  border-radius: 10px; align-items: flex-start;
}
.cdr-notif-item .nt-dot { width: 7px; height: 7px; border-radius: 50%; background: #fbbf24; margin-top: 6px; flex-shrink: 0; }
.cdr-notif-item .nt-text { font-size: 12px; color: #fff; line-height: 1.4; }
.cdr-notif-item .nt-time { font-size: 10px; color: rgba(255,255,255,.55); margin-top: 2px; }
.cdr-footer {
  display: flex; gap: 8px; margin-top: 12px;
  padding-top: 10px; border-top: 1px solid rgba(255,255,255,.12);
}
.cdr-ficon {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px; border-radius: 10px;
  background: rgba(255,255,255,.06);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background .2s;
}
.cdr-ficon:active { background: rgba(255,255,255,.14); }
.cdr-ficon svg { width: 17px; height: 17px; stroke: rgba(255,255,255,.85); fill: none; }
.cdr-ficon span { font-size: 10px; color: rgba(255,255,255,.85); font-weight: 600; }

/* ══════════════════════════════════════
   CHILD-SHIFT (4 tabs)
══════════════════════════════════════ */
#screen-child-shift {
  background: #140802;
  position: relative;
  overflow: hidden;
}
#screen-child-shift::before,
#screen-child-shift::after {
  content: ''; position: fixed; pointer-events: none; z-index: 0; border-radius: 50%;
  filter: blur(60px); will-change: transform;
}
#screen-child-shift::before {
  width: 260px; height: 260px; top: -80px; right: -70px;
  background: rgba(251, 146, 60, 0.65);
  animation: glowSrc 9s ease-in-out infinite;
}
#screen-child-shift::after {
  width: 180px; height: 180px; bottom: -50px; left: -40px;
  background: rgba(251, 191, 36, 0.45);
  animation: glowBL 8s ease-in-out infinite;
  animation-delay: -2s;
}
.shift-header {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 14px 10px;
  position: relative; z-index: 1;
  flex-shrink: 0;
}
.shift-header .back-btn {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px; width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #fff;
}
.shift-header-info { flex: 1; min-width: 0; }
.shift-hdr-name { font-size: 16px; font-weight: 800; color: #fff; line-height: 1.2; }
.shift-hdr-meta { font-size: 11px; color: #fbbf24; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; margin-top: 2px; }

.shift-tabs {
  display: flex; gap: 6px;
  padding: 0 14px 12px;
  position: relative; z-index: 1;
  flex-shrink: 0;
}
.shift-tab {
  flex: 1;
  padding: 9px 4px;
  font: 700 12px 'Montserrat', sans-serif;
  color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 10px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: all .2s;
  display: flex; align-items: center; justify-content: center; gap: 4px;
}
.shift-tab.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(251,146,60,.35), rgba(234,88,12,.3));
  border-color: rgba(251,146,60,.5);
  box-shadow: 0 4px 14px rgba(234,88,12,.3);
}

.shift-body {
  flex: 1;
  padding: 4px 14px 18px;
  position: relative; z-index: 1;
}
.shift-panel { display: none; }
.shift-panel.active { display: block; }

#screen-child-shift .shift-card,
#screen-child-shift .diary-entry,
#screen-child-shift .diary-textarea {
  background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.10);
  color: #fff;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
#screen-child-shift .diary-textarea::placeholder { color: rgba(255,255,255,.4); }
#screen-child-shift .diary-section-label { color: rgba(255,255,255,.8); }
#screen-child-shift .day-chip {
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.75);
  border: 1px solid rgba(255,255,255,.12);
}
#screen-child-shift .day-chip.active {
  background: linear-gradient(135deg, #fb923c, #c2410c);
  color: #fff; border-color: transparent;
}
#screen-child-shift .empty-state, #screen-child-shift .empty-state p { color: rgba(255,255,255,.6); }
#screen-child-shift .empty-state svg { stroke: rgba(255,255,255,.35); }

/* Badges — dark-theme variants inside child screens */
#screen-child-shift .badge,
#screen-child-history .badge {
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
#screen-child-shift .badge-green,
#screen-child-history .badge-green {
  background: rgba(34,197,94,.18); color: #86efac; border-color: rgba(34,197,94,.35);
}
#screen-child-shift .badge-amber,
#screen-child-history .badge-amber {
  background: rgba(251,146,60,.20); color: #fdba74; border-color: rgba(251,146,60,.40);
}
#screen-child-shift .badge-gray,
#screen-child-history .badge-gray {
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.65); border-color: rgba(255,255,255,.14);
}
#screen-child-shift .badge-red,
#screen-child-history .badge-red {
  background: rgba(239,68,68,.18); color: #fca5a5; border-color: rgba(239,68,68,.35);
}
#screen-child-shift .badge-blue,
#screen-child-history .badge-blue {
  background: rgba(96,165,250,.18); color: #93c5fd; border-color: rgba(96,165,250,.35);
}

/* ══════════════════════════════════════
   CHILD HISTORY (dark orange)
══════════════════════════════════════ */
#screen-child-history {
  background: #140802;
  position: relative;
  overflow: hidden;
}
#screen-child-history::before,
#screen-child-history::after {
  content: ''; position: fixed; pointer-events: none; z-index: 0; border-radius: 50%;
  filter: blur(60px); will-change: transform;
}
#screen-child-history::before {
  width: 240px; height: 240px; top: -70px; right: -60px;
  background: rgba(251, 146, 60, 0.55);
  animation: glowSrc 9s ease-in-out infinite;
}
#screen-child-history::after {
  width: 160px; height: 160px; bottom: -50px; left: -40px;
  background: rgba(251, 191, 36, 0.32);
  animation: glowBL 8s ease-in-out infinite;
  animation-delay: -2s;
}
#screen-child-history:not(.active)::before,
#screen-child-history:not(.active)::after { display: none; }

#screen-child-history .shift-card {
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: 13px;
}
#screen-child-history .shift-card:active { background: rgba(255,255,255,.10); }
#screen-child-history .shift-name { color: #fff; }
#screen-child-history .shift-dates { color: rgba(255,255,255,.7); }
#screen-child-history .empty-state, #screen-child-history .empty-state p { color: rgba(255,255,255,.6); }
#screen-child-history .empty-state svg { stroke: rgba(255,255,255,.35); }

/* Future shifts plashka on home — фиолетово-синий акцент для разнообразия */
.cfs-card {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 12px 13px; border-radius: 13px; margin-bottom: 8px;
  background: linear-gradient(135deg, rgba(124,58,237,.22), rgba(96,165,250,.16));
  border: 1px solid rgba(167,139,250,.32);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.cfs-ico { font-size: 22px; flex-shrink: 0; line-height: 1; margin-top: 2px; }
.cfs-info { flex: 1; min-width: 0; }
.cfs-name { font-size: 13px; font-weight: 800; color: #fff; }
.cfs-meta { font-size: 11px; color: rgba(255,255,255,.78); margin-top: 3px; }
.cfs-desc { font-size: 11px; color: rgba(255,255,255,.6); margin-top: 5px; line-height: 1.4; }
.cfs-badge {
  font-size: 9px; font-weight: 800; letter-spacing:.3px; text-transform: uppercase;
  padding: 4px 8px; border-radius: 99px; flex-shrink: 0; white-space: nowrap;
  background: rgba(167,139,250,.22); color: #e9d5ff; border: 1px solid rgba(167,139,250,.4);
  margin-top: 2px;
}
.cfs-badge.cfs-reg {
  background: rgba(34,197,94,.22); color: #86efac; border-color: rgba(34,197,94,.45);
}
.cfs-badge.cfs-closed {
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.55); border-color: rgba(255,255,255,.15);
}
.cfs-card { cursor: pointer; transition: transform .15s; -webkit-tap-highlight-color: transparent; }
.cfs-card:active { transform: scale(.99); }

/* Skill score suffix /10 */
.skscore-max { font-size: 10px; font-weight: 700; color: rgba(255,255,255,.45); margin-left: 1px; }
/* Бар — сделать заметнее (8px вместо 6) */
.skbar { height: 8px !important; background: rgba(255,255,255,.12) !important; border-radius: 99px; overflow: hidden; }
.skb { height: 100% !important; border-radius: 99px; box-shadow: 0 0 10px rgba(251,146,60,.35); }

/* History marker (вместо status) */
.history-marker {
  font-size: 10px; font-weight: 700; letter-spacing: .3px;
  padding: 3px 8px; border-radius: 99px; flex-shrink: 0;
  text-transform: uppercase;
}
.history-marker.current { background: rgba(34,197,94,.22); color: #86efac; border: 1px solid rgba(34,197,94,.4); }
.history-marker.past { background: rgba(255,255,255,.06); color: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.12); }
.history-marker.future { background: rgba(167,139,250,.22); color: #c4b5fd; border: 1px solid rgba(167,139,250,.4); }

/* ══════════════════════════════════════
   Dark bottom sheet (для rank и shift-detail)
══════════════════════════════════════ */
.bottom-sheet-dark {
  background: linear-gradient(150deg, #1f0a02 0%, #2e1208 100%);
  border: 1px solid rgba(255,255,255,.10);
  color: #fff;
}
.bottom-sheet-dark .sheet-handle { background: rgba(255,255,255,.24); }

/* DDL bottom sheet — deep emerald glass (no indigo) */
.bottom-sheet-ddl {
  background: rgba(8,22,16,0.96);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255,255,255,.10);
  color: #fff;
}
/* Global overrides for inline light-theme styles inside DDL sheets/screens */
.bottom-sheet-ddl [style*="background:var(--bg)"],
.bottom-sheet-ddl [style*="background:white"],
.bottom-sheet-ddl [style*="background:#fff"],
#screen-ddl-shifts [style*="background:var(--bg)"],
#screen-ddl-staff [style*="background:var(--bg)"],
#screen-ddl-venues [style*="background:var(--bg)"],
#screen-ddl-checklists [style*="background:var(--bg)"] {
  background: rgba(255,255,255,.06) !important;
}
.bottom-sheet-ddl [style*="color:var(--muted)"],
#screen-ddl-shifts [style*="color:var(--muted)"],
#screen-ddl-staff [style*="color:var(--muted)"],
#screen-ddl-venues [style*="color:var(--muted)"],
#screen-ddl-checklists [style*="color:var(--muted)"] {
  color: rgba(255,255,255,.7) !important;
}
.bottom-sheet-ddl [style*="color:var(--dark)"],
#screen-ddl-shifts [style*="color:var(--dark)"],
#screen-ddl-staff [style*="color:var(--dark)"],
#screen-ddl-venues [style*="color:var(--dark)"],
#screen-ddl-checklists [style*="color:var(--dark)"] {
  color: #fff !important;
}
.bottom-sheet-ddl [style*="background:var(--green-lt)"],
.bottom-sheet-ddl [style*="background:var(--bg-soft)"] {
  background: rgba(20,232,142,.10) !important;
  border: 1px solid rgba(20,232,142,.25);
}
.bottom-sheet-ddl [style*="background:var(--border)"] {
  background: rgba(255,255,255,.10) !important;
}
.bottom-sheet-ddl .sheet-handle { background: rgba(255,255,255,.24); }
.bottom-sheet-ddl .sheet-title { color: #fff; }
.bottom-sheet-ddl .input-light,
.bottom-sheet-ddl .select-light,
.bottom-sheet-ddl input[type="text"],
.bottom-sheet-ddl input[type="number"],
.bottom-sheet-ddl input[type="date"],
.bottom-sheet-ddl input[type="email"],
.bottom-sheet-ddl input[type="tel"],
.bottom-sheet-ddl input[type="password"],
.bottom-sheet-ddl select,
.bottom-sheet-ddl textarea {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff;
  border-radius: 12px;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
}
.bottom-sheet-ddl .input-light::placeholder,
.bottom-sheet-ddl input::placeholder,
.bottom-sheet-ddl textarea::placeholder { color: rgba(255,255,255,.4); }
.bottom-sheet-ddl select option { color: #1a1a2e; background: #fff; }
.bottom-sheet-ddl .btn-primary {
  background: linear-gradient(135deg,#14e88e 0%,#0aa15a 100%);
  color: #060d13;
  border: none;
  font-weight: 700;
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
}
.bottom-sheet-ddl .btn-primary.btn-ghost {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff;
}
.bottom-sheet-ddl .btn-sm {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
}
.bottom-sheet-ddl .badge { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.18); }
.bottom-sheet-ddl .badge-green { background: rgba(20,232,142,.18); color: #14e88e; border-color: rgba(20,232,142,.4); }
.bottom-sheet-ddl .badge-amber { background: rgba(251,191,36,.18); color: #fbbf24; border-color: rgba(251,191,36,.4); }
.bottom-sheet-ddl .badge-gray { background: rgba(255,255,255,.08); color: rgba(255,255,255,.55); border-color: rgba(255,255,255,.12); }
.bottom-sheet-ddl .staff-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.bottom-sheet-ddl .staff-name { color: #fff; }
.bottom-sheet-ddl .staff-meta { color: rgba(255,255,255,.5); }
.bottom-sheet-ddl .empty-state { color: rgba(255,255,255,.55); }

/* DDL screens dark theme — Shifts / Staff / Venues / Checklists */
#screen-ddl-shifts,
#screen-ddl-staff,
#screen-ddl-venues,
#screen-ddl-checklists {
  background: #060d13;
  color: #fff;
}
#screen-ddl-shifts .page-header,
#screen-ddl-staff .page-header,
#screen-ddl-venues .page-header,
#screen-ddl-checklists .page-header {
  background: rgba(8,22,16,0.55);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-bottom: 1px solid rgba(255,255,255,.10);
  color: #fff;
}
#screen-ddl-shifts .page-header h2,
#screen-ddl-staff .page-header h2,
#screen-ddl-venues .page-header h2,
#screen-ddl-checklists .page-header h2 { color: #fff; }
#screen-ddl-shifts .back-btn,
#screen-ddl-staff .back-btn,
#screen-ddl-venues .back-btn,
#screen-ddl-checklists .back-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
#screen-ddl-shifts .btn-sm,
#screen-ddl-staff .btn-sm,
#screen-ddl-venues .btn-sm,
#screen-ddl-checklists .btn-sm {
  background: linear-gradient(135deg,rgba(20,232,142,0.25),rgba(20,232,142,0.10));
  border: 1px solid rgba(20,232,142,0.4);
  color: #14e88e;
  padding: 6px 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}
#screen-ddl-shifts .shift-card,
#screen-ddl-staff .staff-card,
#screen-ddl-venues .shift-card,
#screen-ddl-venues .venue-row,
#screen-ddl-checklists .shift-card,
#screen-ddl-checklists .checklist-card {
  background: rgba(255,255,255,.05) !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  border-radius: 14px;
  padding: 12px 14px;
  color: #fff !important;
}
#screen-ddl-shifts .shift-card:active,
#screen-ddl-venues .shift-card:active,
#screen-ddl-checklists .shift-card:active { background: rgba(255,255,255,.10) !important; }
#screen-ddl-shifts .shift-name,
#screen-ddl-staff .staff-name,
#screen-ddl-venues .shift-card,
#screen-ddl-venues .venue-name { color: #fff; font-weight: 700; }
#screen-ddl-venues .shift-card * { color: inherit; }
#screen-ddl-venues .shift-card [style*="color:var(--muted)"],
#screen-ddl-shifts .shift-card [style*="color:var(--muted)"],
#screen-ddl-staff .staff-card [style*="color:var(--muted)"] { color: rgba(255,255,255,.5) !important; }
#screen-ddl-shifts .shift-dates,
#screen-ddl-staff .staff-meta { color: rgba(255,255,255,.55); font-size: 12px; }
#screen-ddl-staff .search-field {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff;
  border-radius: 12px;
}
#screen-ddl-staff .search-field input { color: #fff; background: transparent; border: none; }
#screen-ddl-staff .search-field input::placeholder { color: rgba(255,255,255,.4); }
#screen-ddl-staff .search-field svg { stroke: rgba(255,255,255,.5); }
#screen-ddl-shifts .empty-state,
#screen-ddl-staff .empty-state,
#screen-ddl-venues .empty-state,
#screen-ddl-checklists .empty-state { color: rgba(255,255,255,.55); }
#screen-ddl-shifts .empty-state svg,
#screen-ddl-staff .empty-state svg,
#screen-ddl-venues .empty-state svg,
#screen-ddl-checklists .empty-state svg { stroke: rgba(255,255,255,.3); }
#screen-ddl-shifts .badge,
#screen-ddl-staff .badge,
#screen-ddl-venues .badge,
#screen-ddl-checklists .badge { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.18); }
#screen-ddl-shifts .badge-green,
#screen-ddl-staff .badge-green { background: rgba(20,232,142,.18); color: #14e88e; border-color: rgba(20,232,142,.4); }
#screen-ddl-shifts .badge-amber,
#screen-ddl-staff .badge-amber { background: rgba(251,191,36,.18); color: #fbbf24; border-color: rgba(251,191,36,.4); }
#screen-ddl-shifts .badge-gray,
#screen-ddl-staff .badge-gray { background: rgba(255,255,255,.08); color: rgba(255,255,255,.55); border-color: rgba(255,255,255,.12); }

/* Rank list */
.rank-list { display: flex; flex-direction: column; gap: 6px; }
.rank-row {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px; border-radius: 11px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
}
.rank-row.rank-me {
  background: linear-gradient(135deg, rgba(251,146,60,.22), rgba(234,88,12,.14));
  border-color: rgba(251,146,60,.45);
}
.rank-medal { font-size: 16px; font-weight: 800; min-width: 36px; color: #fbbf24; }
.rank-name { flex: 1; font-size: 13px; font-weight: 600; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-you { font-size: 9px; background: #fbbf24; color: #1a0a02; padding: 2px 6px; border-radius: 99px; font-weight: 800; text-transform: uppercase; letter-spacing: .3px; margin-left: 4px; }
.rank-cnt { font-size: 13px; font-weight: 800; color: #fbbf24; min-width: 20px; text-align: right; }

/* Shift detail sheet */
.sdet-sheet { padding: 0 !important; }
.sdet-sheet .sheet-handle { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); z-index: 3; }
.sdet-photo-wrap {
  position: relative; width: 100%; height: 180px;
  background: linear-gradient(135deg, #c2410c, #ea580c);
  overflow: hidden; border-radius: 18px 18px 0 0;
}
.sdet-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.sdet-photo-wrap.no-photo .sdet-photo { display: none; }
.sdet-photo-fallback {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 64px; z-index: 0;
}
.sdet-photo-gradient {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to bottom, rgba(0,0,0,.1) 0%, rgba(0,0,0,.2) 50%, rgba(30,10,2,.95) 100%);
}
.sdet-title-over {
  position: absolute; bottom: 12px; left: 16px; right: 16px; z-index: 3; color: #fff;
}
.sdet-name { font-size: 20px; font-weight: 800; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.sdet-venue { font-size: 12px; color: rgba(255,255,255,.85); margin-top: 3px; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.sdet-body { padding: 14px 18px 22px; color: #fff; }
.sdet-badge {
  padding: 8px 12px; border-radius: 11px; font-size: 12px; font-weight: 700;
  text-align: center; margin-bottom: 14px;
}
.sdet-badge.reg {
  background: rgba(34,197,94,.20); color: #86efac; border: 1px solid rgba(34,197,94,.4);
}
.sdet-badge.open {
  background: rgba(167,139,250,.20); color: #c4b5fd; border: 1px solid rgba(167,139,250,.4);
}
.sdet-stats { display: flex; gap: 8px; margin-bottom: 16px; }
.sdet-stat {
  flex: 1; text-align: center; padding: 10px 6px; border-radius: 11px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.10);
}
.sdet-stat-val { font-size: 18px; font-weight: 800; color: #fbbf24; line-height: 1; }
.sdet-stat-lbl { font-size: 10px; color: rgba(255,255,255,.6); margin-top: 4px; text-transform: uppercase; letter-spacing: .3px; }
.sdet-section { margin-bottom: 14px; }
.sdet-section-title {
  font-size: 10px; font-weight: 700; color: rgba(255,255,255,.55);
  text-transform: uppercase; letter-spacing: .4px; margin-bottom: 5px;
}
.sdet-text { font-size: 13px; color: #fff; line-height: 1.5; }

/* ══════════════════════════════════════
   PROFILE — dark orange theme for child role
══════════════════════════════════════ */
body[data-role="child"] #screen-profile {
  background: #140802;
  position: relative;
  overflow: hidden;
}
body[data-role="child"] #screen-profile::before,
body[data-role="child"] #screen-profile::after {
  content: ''; position: fixed; pointer-events: none; z-index: 0; border-radius: 50%;
  filter: blur(60px); will-change: transform;
}
body[data-role="child"] #screen-profile::before {
  width: 240px; height: 240px; top: -70px; right: -60px;
  background: rgba(251, 146, 60, 0.55);
  animation: glowSrc 9s ease-in-out infinite;
}
body[data-role="child"] #screen-profile::after {
  width: 160px; height: 160px; bottom: -50px; left: -40px;
  background: rgba(251, 191, 36, 0.32);
  animation: glowBL 8s ease-in-out infinite;
  animation-delay: -2s;
}
body[data-role="child"] #screen-profile:not(.active)::before,
body[data-role="child"] #screen-profile:not(.active)::after { display: none; }

body[data-role="child"] #screen-profile .page-header {
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: relative; z-index: 1;
}
body[data-role="child"] #screen-profile .page-header h2 { color: #fff; }
body[data-role="child"] #screen-profile .back-btn { color: #fff; }
body[data-role="child"] #screen-profile .page-body { position: relative; z-index: 1; }

body[data-role="child"] #screen-profile #profile-role {
  color: #fbbf24 !important; font-weight: 700;
}
body[data-role="child"] #screen-profile .av {
  background: linear-gradient(135deg, #fb923c, #c2410c);
  color: #fff;
  box-shadow: 0 6px 24px rgba(234,88,12,.45), inset 0 1px 0 rgba(255,255,255,.25);
  border: 2px solid rgba(255,255,255,.20);
}
body[data-role="child"] #screen-profile .profile-field label {
  color: rgba(255,255,255,.65) !important;
}
body[data-role="child"] #screen-profile .input-light,
body[data-role="child"] #screen-profile input,
body[data-role="child"] #screen-profile select,
body[data-role="child"] #screen-profile textarea {
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  color: #fff !important;
}
body[data-role="child"] #screen-profile input::placeholder { color: rgba(255,255,255,.4) !important; }
body[data-role="child"] #screen-profile input:focus,
body[data-role="child"] #screen-profile textarea:focus {
  border-color: rgba(251,146,60,.6) !important;
  background: rgba(255,255,255,.10) !important;
}
body[data-role="child"] #screen-profile .btn,
body[data-role="child"] #screen-profile .btn-primary,
body[data-role="child"] #screen-profile button[type="submit"],
body[data-role="child"] #screen-profile #profile-save,
body[data-role="child"] #screen-profile .profile-save-btn {
  background: linear-gradient(135deg, #fb923c, #c2410c) !important;
  color: #fff !important; border: 1px solid rgba(255,255,255,.2) !important;
  box-shadow: 0 6px 22px rgba(234,88,12,.4) !important;
}
body[data-role="child"] #screen-profile label[for]:has(> input[type="file"]),
body[data-role="child"] #screen-profile #profile-photo-input + label,
body[data-role="child"] #screen-profile label > #profile-photo-input {
  /* camera button on avatar */
}
body[data-role="child"] #screen-profile label:has(#profile-photo-input) {
  display: none !important;
}

/* ══════════════════════════════════════
   Forgot password sheet
══════════════════════════════════════ */
.login-forgot {
  text-align: center; margin-top: 12px;
  font-size: 12px; color: rgba(255,255,255,.55);
}
.login-forgot span {
  cursor: pointer; text-decoration: underline;
  -webkit-tap-highlight-color: transparent;
}
.login-forgot span:hover { color: rgba(20,232,142,.9); }

.forgot-sheet { padding: 18px 20px 22px !important; }
.forgot-step { display: flex; flex-direction: column; gap: 10px; }
.forgot-step.hidden { display: none; }
.fgt-title { color: #fff; font-size: 18px; font-weight: 800; text-align: center; margin-top: 6px; }
.fgt-sub { color: rgba(255,255,255,.6); font-size: 12px; text-align: center; margin-bottom: 6px; }
.fgt-role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.fgt-role-btn {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 18px 10px; border-radius: 14px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  color: #fff; font-weight: 700; font-size: 13px; cursor: pointer;
  transition: all .2s; -webkit-tap-highlight-color: transparent;
}
.fgt-role-btn:hover { background: rgba(251,146,60,.14); border-color: rgba(251,146,60,.4); }
.fgt-role-icon { font-size: 28px; }
.fgt-field { display: flex; flex-direction: column; gap: 5px; }
.fgt-field label {
  font-size: 10px; text-transform: uppercase; letter-spacing: .4px;
  color: rgba(255,255,255,.55); font-weight: 700;
}
.fgt-field input {
  padding: 11px 13px; border-radius: 11px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  color: #fff; font: 400 14px 'Montserrat', sans-serif;
  -webkit-tap-highlight-color: transparent;
}
.fgt-field input:focus {
  outline: none; border-color: rgba(251,146,60,.55);
  background: rgba(255,255,255,.10);
}
.fgt-field input::placeholder { color: rgba(255,255,255,.3); }
.fgt-orange {
  background: linear-gradient(135deg, #fb923c, #c2410c) !important;
  color: #fff !important; border: 1px solid rgba(255,255,255,.2) !important;
  box-shadow: 0 6px 22px rgba(234,88,12,.4);
  margin-top: 8px;
}
.crow {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 6px; border-bottom: 1px solid rgba(255,255,255,.12);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.crow:last-child { border-bottom: none; }
.crow .ico  { width: 15px; height: 15px; stroke: rgba(255,255,255,.9); flex-shrink: 0; fill: none; }
.crow span  { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.9); flex: 1; }
.crow .chev { width: 13px; height: 13px; stroke: rgba(255,255,255,.35); fill: none; }

.badge-pill {
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.3); color: white;
  font-size: 10px; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 99px; padding: 0 5px;
}

/* ══════════════════════════════════════
   DETAIL PAGES (shared)
══════════════════════════════════════ */
.page-header {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px 12px; flex-shrink: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.page-header h2 { flex: 1; }

.back-btn {
  background: none; border: none; cursor: pointer; padding: 4px;
  color: var(--dark); -webkit-tap-highlight-color: transparent;
  display: flex; align-items: center;
}

.page-body {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  padding: 16px 16px calc(20px + var(--safe-bottom));
  -webkit-overflow-scrolling: touch;
}
.page-body::-webkit-scrollbar { display: none; }

/* ── Shift card (list) ── */
.shift-card {
  background: white; border: 1px solid var(--border);
  border-radius: 14px; padding: 16px;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background .12s;
}
.shift-card:active { background: var(--bg); }
.shift-card-header { display: flex; align-items: center; justify-content: space-between; }
.shift-name  { font-weight: 700; font-size: 15px; color: var(--dark); }
.shift-dates { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ── Staff card ── */
.staff-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px; background: white;
  border: 1px solid var(--border); border-radius: 14px;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background .12s;
}
.staff-card:active { background: var(--bg); }
.staff-name { font-weight: 600; font-size: 14px; color: var(--dark); }
.staff-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ── Challenge card ── */
.challenge-card {
  display: flex; align-items: flex-start; gap: 14px;
  background: white; border: 1px solid var(--border);
  border-radius: 14px; padding: 14px;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.challenge-status {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--border); flex-shrink: 0; margin-top: 2px;
  display: flex; align-items: center; justify-content: center;
}
.challenge-status.done      { border-color: var(--green); background: var(--green-lt); }
.challenge-status.confirmed { border-color: var(--green); background: var(--green); }

/* ── Diary ── */
.day-tabs {
  display: flex; overflow-x: auto; gap: 8px;
  padding: 4px 0 12px; scrollbar-width: none;
}
.day-tabs::-webkit-scrollbar { display: none; }
.day-chip {
  flex-shrink: 0; padding: 6px 14px; border-radius: 99px;
  font-size: 12px; font-weight: 600;
  background: white; border: 1px solid var(--border);
  cursor: pointer; color: var(--dark); transition: all .15s;
  -webkit-tap-highlight-color: transparent;
}
.day-chip.active { background: var(--green-lt); border-color: var(--green); color: var(--green); }

.diary-entry { background: white; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.diary-section-label { padding: 12px 16px; font-size: 12px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--border); }
.diary-textarea {
  width: 100%; background: transparent; border: none;
  color: var(--dark); font-family: inherit;
  font-size: 14px; line-height: 1.6; padding: 10px 16px 14px;
  resize: none; min-height: 100px; outline: none;
}
.diary-textarea::placeholder { color: #bbb; }

/* ── Skills full list ── */
.skill-row-full {
  display: flex; align-items: center; gap: 12px;
  background: white; border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 14px;
}
.skill-bar-bg   { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; margin-top: 6px; }
.skill-bar-fill { height: 100%; border-radius: 3px; transition: width .6s; }
.skill-score    { font-size: 15px; font-weight: 800; min-width: 32px; text-align: right; }
.skill-name-sm  { font-size: 13px; font-weight: 600; color: var(--dark); }

/* ── DDL Challenges screen — изумрудный glass (наследует тему DDL) ── */
#screen-ddl-challenges {
  background: #060d13;
  color: #fff;
}
#screen-ddl-challenges .page-header {
  background: rgba(8,22,16,0.55);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-bottom: 1px solid rgba(255,255,255,.10);
  color: #fff;
}
#screen-ddl-challenges .page-header h2 { color: #fff; }
#screen-ddl-challenges .back-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  width: 36px; height: 36px;
  border-radius: 12px;
  padding: 0;
  display: flex; align-items: center; justify-content: center;
}
#screen-ddl-challenges .btn-sm {
  background: linear-gradient(135deg,rgba(20,232,142,0.25),rgba(20,232,142,0.10));
  border: 1px solid rgba(20,232,142,0.4);
  color: #14e88e;
  padding: 6px 12px;
  border-radius: 10px;
  font-weight: 700; font-size: 12px;
  cursor: pointer;
}
#screen-ddl-challenges .shift-card {
  background: rgba(255,255,255,.05) !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  border-radius: 14px;
  padding: 14px;
  color: #fff !important;
}
#screen-ddl-challenges .shift-card [style*="color:var(--muted)"] {
  color: rgba(255,255,255,.55) !important;
}
#screen-ddl-challenges .empty-state {
  background: rgba(255,255,255,.03);
  border: 1px dashed rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 24px;
  color: rgba(255,255,255,.55);
  text-align: center;
}

/* ── Profile screen — emerald glass (см. design_system.md) ── */
#screen-profile { color: #fff; }
#screen-profile .page-header h2 { color: #fff; }
#screen-profile .profile-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 5px;
}
#screen-profile .profile-field input,
#screen-profile .profile-field textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  color: #fff;
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color .15s, background .15s;
}
#screen-profile .profile-field input:focus,
#screen-profile .profile-field textarea:focus {
  border-color: rgba(20,232,142,0.5);
  background: rgba(255,255,255,0.07);
}
#screen-profile .profile-field input[type="date"] {
  color-scheme: dark;
}

/* Universal form-error (используется в edit-staff, profile, регистрации, других формах) */
.form-error {
  font-size: 11px;
  color: #ff8a8a;
  margin-top: 4px;
  display: none;
}
.form-error.visible { display: block; }
input.form-invalid,
select.form-invalid,
textarea.form-invalid {
  border-color: rgba(255,138,138,0.6) !important;
  background: rgba(255,138,138,0.08) !important;
}
