/* Practice mode: the striped bar, the owner's switch on the Shift Pass, and the admin header button. */
.practice-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 14px;
  padding-top: max(10px, env(safe-area-inset-top));
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 14px, #ffe27a 14px 28px);
  border-bottom: 3px solid var(--navy);
  color: var(--navy);
  font-size: 13px;
  line-height: 1.35;
}
.practice-bar-text { min-width: 0; flex: 1 1 220px; }
.practice-bar-text strong { display: block; font-size: 14px; letter-spacing: .02em; }
.practice-bar-meta { display: block; margin-top: 2px; font-size: 11.5px; opacity: .85; }
.practice-bar-meta:empty { display: none; }
.practice-bar-actions { display: flex; gap: 6px; flex: none; }
.practice-bar button {
  font: inherit;
  font-weight: 800;
  font-size: 13px;
  border-radius: 10px;
  padding: 8px 11px;
  cursor: pointer;
  border: 2px solid var(--navy);
  min-height: 38px;
}
.practice-bar .practice-exit { background: var(--navy); color: var(--cream); }
.practice-bar .practice-fresh { background: var(--cream); color: var(--navy); }
.practice-bar .practice-fresh.armed { background: var(--coral); color: var(--cream); border-color: var(--coral-dark); }
.practice-bar button:disabled { opacity: .6; cursor: default; }

/* Owner's switch on the Shift Pass */
.practice-card {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px dashed var(--navy);
  border-radius: 16px;
  background: var(--cream);
}
.practice-entry { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.practice-entry h3 { margin: 0 0 3px; font-size: 15px; }
.practice-entry p { margin: 0; font-size: 13px; color: var(--text-muted); line-height: 1.45; }
.practice-switch {
  flex: none;
  position: relative;
  width: 50px;
  height: 30px;
  border-radius: 999px;
  border: 0;
  background: var(--border);
  cursor: pointer;
}
.practice-switch::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  transition: left .15s;
}
.practice-switch[aria-checked="true"] { background: #1f8a5b; }
.practice-switch[aria-checked="true"]::after { left: 24px; }
.practice-switch:disabled { opacity: .7; }
.practice-entry-status { margin: 8px 0 0; font-size: 12.5px; color: var(--text-muted); }
.practice-entry-status:empty { display: none; }

/* Admin header button */
.practice-btn-on { background: var(--yellow) !important; color: var(--navy) !important; border-color: var(--navy) !important; font-weight: 800; }
