/* planners — «Ещё расписания». The layer colours and the dot pattern are glass_now's (app.css: --layer-N,
   .lc-N, .lp); the fallbacks here keep the swatch readable if a client lacks them. */

.planners .pl-layer { display: flex; align-items: center; padding: 0; }
.planners .pl-main {
  display: flex; align-items: center; flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 10px 0 10px 16px;
  border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.planners .pl-main .row-main { min-width: 0; }
.planners .pl-swatch, .planners .pl-colour {
  flex: none; border-radius: 9px;
  background-color: rgb(var(--layer-rgb, 175 82 222) / 0.14);
  background-image: radial-gradient(rgb(var(--layer-rgb, 175 82 222) / 0.55) 1px, transparent 1.4px);
  background-size: 6px 6px;
  box-shadow: inset 0 0 0 1.5px rgb(var(--layer-rgb, 175 82 222) / 0.9);
}
.planners .pl-swatch { width: 28px; height: 28px; margin-right: 12px; }
.planners .pl-off .pl-swatch { opacity: .45; }

.planners .pl-toggle {
  flex: none; display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px;
  padding: 0 16px 0 8px; border: 0; background: none; cursor: pointer;
}
.planners .pl-switch {
  position: relative; display: block; width: 51px; height: 31px; border-radius: 16px;
  background: rgb(var(--text-rgb) / 0.16); transition: background .2s ease;
}
.planners .pl-switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 4px rgb(0 0 0 / .2); transition: transform .25s cubic-bezier(.2, .8, .2, 1);
}
.planners .pl-toggle[aria-checked="true"] .pl-switch { background: var(--accent); }
.planners .pl-toggle[aria-checked="true"] .pl-switch::after { transform: translateX(20px); }

.planners .pl-undone .row-title { text-decoration: line-through; color: var(--hint); }
.planners .pl-pad { padding: 12px 16px; }
.planners .pl-hint, .pl-form .pl-hint { margin: 0; font-size: 13px; line-height: 1.35; color: var(--hint); }

/* sheets (they live outside the screen: no .planners prefix) */
.pl-form { display: grid; gap: 12px; }
.pl-input {
  width: 100%; box-sizing: border-box; min-height: 44px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--sep); background: var(--bg); color: var(--text); font: inherit; font-size: 16px;
}
.pl-results:empty { display: none; }
.pl-colours { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pl-colour {
  display: flex; align-items: center; justify-content: center; min-height: 52px; border: 0; cursor: pointer;
  color: var(--text); border-radius: 12px;
  background-color: rgb(var(--layer-rgb, 175 82 222) / 0.14);
  background-image: radial-gradient(rgb(var(--layer-rgb, 175 82 222) / 0.55) 1px, transparent 1.4px);
  background-size: 6px 6px;
  box-shadow: inset 0 0 0 1.5px rgb(var(--layer-rgb, 175 82 222) / 0.9);
}
.pl-colour.chosen { box-shadow: inset 0 0 0 3px rgb(var(--layer-rgb, 175 82 222)); }
.pl-colour .ico { width: 22px; height: 22px; }
.pl-pick { display: grid; gap: 14px; }
.pl-subject-name { font-weight: 600; margin: 0 2px 6px; }
.pl-pick .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pl-pick .chip { min-height: 44px; }

@media (prefers-reduced-motion: reduce) {
  .planners .pl-switch, .planners .pl-switch::after { transition: none; }
}
@media (prefers-contrast: more) {
  .planners .pl-switch { box-shadow: inset 0 0 0 1px var(--text); }
  .planners .pl-swatch, .pl-colour { box-shadow: inset 0 0 0 2px rgb(var(--layer-rgb, 175 82 222)); }
}
