/*
 * Style «Неон» (neon) — dark vivid: a night-blue HUD, a glowing violet→cyan→lime ring, a dense
 * timeline. Motion is electric: nodes pulse, a scan sweeps the card, segments light up.
 */

.style-neon {
  --night: #0b0d1a;
  --text: #e8eaf6;
  --muted: #8a8fb0;
  --dim: #9297bb; /* ≥ 4.5:1 on the cards, like --muted */
  --edge: rgb(255 255 255 / 0.08);
  --glass: rgb(255 255 255 / 0.035);
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --lime: #a3e635;
  --pink: #f472b6;
  --amber: #fbbf24;

  min-height: 100vh;
  background:
    radial-gradient(50rem 35rem at 0% 0%, rgb(139 92 246 / 0.22), transparent 60%),
    radial-gradient(45rem 35rem at 100% 100%, rgb(34 211 238 / 0.14), transparent 60%),
    linear-gradient(rgb(255 255 255 / 0.025) 1px, transparent 1px) 0 0 / 2.5rem 2.5rem,
    linear-gradient(90deg, rgb(255 255 255 / 0.025) 1px, transparent 1px) 0 0 / 2.5rem 2.5rem,
    var(--night);
  color: var(--text);
  font-family: "Manrope", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Header */
.style-neon .app-nav { border-bottom: 1px solid var(--edge); background: rgb(9 11 23 / 0.6); backdrop-filter: blur(8px); }
.style-neon .app-nav__brand {
  font-family: "Unbounded", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  background-clip: text;
  color: transparent;
}
.style-neon .app-nav__link { color: var(--dim); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.style-neon .app-nav__link.is-active { color: var(--cyan); text-shadow: 0 0 12px rgb(34 211 238 / 0.7); }
.style-neon .app-nav__badge { background: var(--pink); color: var(--night); box-shadow: 0 0 10px rgb(244 114 182 / 0.6); }
.style-neon .app-nav__add,
.style-neon .app-nav__signout { color: var(--muted); font-size: 0.85rem; }
.style-neon .app-nav__add:hover,
.style-neon .app-nav__signout:hover { color: var(--text); }
.style-neon .app-nav__dot { border: 1px solid var(--edge); color: var(--muted); font-family: "Unbounded", sans-serif; font-size: 0.7rem; }
.style-neon .app-nav__dot.is-active { border-color: var(--cyan); background: var(--cyan); color: var(--night); box-shadow: 0 0 14px rgb(34 211 238 / 0.6); }

/* The selected day (overview/neon/_day, _plan) in «Обзор»'s centre: the HUD above the timeline; with
   room to spare (a wide day panel) the HUD stands beside it. */
.style-neon .neon__main { display: grid; gap: 1.75rem; }
@container (min-width: 60rem) {
  .style-neon .neon__main { grid-template-columns: 19rem minmax(0, 1fr); gap: 2.5rem; align-items: start; }
}

/* The HUD panel: the date and message beside the ring, the meter below; stacked when narrow. */
.style-neon .neon__hud {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  border: 1px solid var(--edge);
  border-radius: 1.5rem;
  background: var(--glass);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.05);
  text-align: center;
  transition: border-color 0.6s, box-shadow 0.6s;
}
.style-neon .day.is-complete .neon__hud { border-color: rgb(163 230 53 / 0.5); box-shadow: 0 0 40px -10px rgb(163 230 53 / 0.5); }
.style-neon .neon__kicker { color: var(--cyan); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; }
.style-neon .neon__date { margin-top: 0.5rem; font-family: "Unbounded", sans-serif; font-size: 1.9rem; font-weight: 600; letter-spacing: -0.02em; }
.style-neon .neon__hud-text { width: 100%; }
.style-neon .neon__meter { width: 100%; }
@container (min-width: 34rem) {
  .style-neon .neon__hud { grid-template-columns: minmax(0, 1fr) 11.5rem; grid-template-areas: "text ring" "meter meter"; align-items: center; text-align: left; }
  .style-neon .neon__hud-text { grid-area: text; }
  .style-neon .neon__ring { grid-area: ring; }
  .style-neon .neon__meter { grid-area: meter; }
}
@container (min-width: 60rem) {
  .style-neon .neon__hud { position: sticky; top: calc(var(--nav-h) + 1rem); grid-template-columns: minmax(0, 1fr); grid-template-areas: "text" "ring" "meter"; justify-items: center; text-align: center; }
}

.style-neon .neon__ring { position: relative; width: min(11.5rem, 52vw); }
.style-neon .neon__ring svg { display: block; width: 100%; height: auto; overflow: visible; }
.style-neon .neon__ring circle { fill: none; }
.style-neon .neon__ring-ticks { stroke: rgb(255 255 255 / 0.14); stroke-width: 2; stroke-dasharray: 0.4 2.1; }
.style-neon .neon__ring-track { stroke: rgb(255 255 255 / 0.07); stroke-width: 9; }
.style-neon .neon__ring-bar {
  stroke-width: 9;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: calc(100 - var(--progress));
  filter: drop-shadow(0 0 6px rgb(34 211 238 / 0.75));
  transition: stroke-dashoffset 0.9s cubic-bezier(.2, .8, .2, 1);
}
.style-neon .neon__ring-bar[data-progress="0"] { opacity: 0; }
.style-neon .day.is-complete .neon__ring-bar { animation: neon-flare 1.6s ease-in-out infinite alternate; }
.style-neon .neon__ring-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.35rem; }
.style-neon .neon__percent { font-family: "Unbounded", sans-serif; font-size: 2.6rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.style-neon .neon__percent small { font-size: 0.4em; color: var(--muted); }
.style-neon .neon__mood { color: var(--lime); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; text-shadow: 0 0 10px rgb(163 230 53 / 0.6); }

/* One segment per task; a long day wraps onto more rows instead of overflowing a phone. */
.style-neon .neon__segments { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.style-neon .neon__segment { flex: 1 0 0.6rem; height: 0.5rem; border-radius: 0.15rem; background: rgb(255 255 255 / 0.08); transition: background 0.4s, box-shadow 0.4s; }
.style-neon .neon__segment.is-lit { background: linear-gradient(90deg, var(--violet), var(--cyan)); box-shadow: 0 0 10px rgb(34 211 238 / 0.55); }
.style-neon .day.is-complete .neon__segment.is-lit { background: var(--lime); box-shadow: 0 0 10px rgb(163 230 53 / 0.7); }
.style-neon .neon__count { margin-top: 0.6rem; color: var(--muted); font-size: 0.8rem; }

.style-neon .neon__message {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-left: 2px solid var(--cyan);
  border-radius: 0 0.75rem 0.75rem 0;
  background: rgb(34 211 238 / 0.06);
  color: #c9cde8;
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: left;
}
.style-neon .day.is-complete .neon__message { border-color: var(--lime); background: rgb(163 230 53 / 0.08); }
.style-neon .neon__message.is-swapping { animation: neon-glitch 0.5s steps(2) both; }

/* The timeline */
.style-neon .neon__group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 2rem 0 0.75rem;
  color: var(--muted);
  font-family: "Unbounded", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.style-neon .neon__group:first-child { margin-top: 0; }
.style-neon .neon__group span { padding: 0.1rem 0.45rem; border: 1px solid var(--edge); border-radius: 0.4rem; color: var(--cyan); }

.style-neon .neon__list { position: relative; display: grid; gap: 0.55rem; }
.style-neon .neon__list::before {
  content: "";
  position: absolute;
  top: 0.75rem;
  bottom: 0.75rem;
  left: calc(3.6rem + 0.75rem + 0.8rem - 1px);
  width: 2px;
  background: linear-gradient(var(--violet), var(--cyan), transparent);
  opacity: 0.45;
}

.style-neon .neon-task {
  position: relative;
  display: grid;
  grid-template-columns: 3.6rem 1.6rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
}
.style-neon .neon-task__time {
  color: var(--muted);
  font-family: "Unbounded", sans-serif;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.style-neon .neon-task__node { position: relative; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; cursor: pointer; }
.style-neon .neon-task__node:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.style-neon .neon-task__node-shape {
  width: 0.95rem;
  height: 0.95rem;
  border: 2px solid var(--violet);
  border-radius: 50%;
  background: var(--night);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.style-neon .neon-task.is-recurring .neon-task__node-shape { border-color: var(--cyan); border-radius: 0.15rem; transform: rotate(45deg); }
.style-neon .neon-task__node:hover .neon-task__node-shape { box-shadow: 0 0 12px var(--cyan); }
.style-neon .neon-task.is-done .neon-task__node-shape { border-color: var(--lime); background: var(--lime); box-shadow: 0 0 14px rgb(163 230 53 / 0.85); }
.style-neon .neon-task.is-checking .neon-task__node-shape { animation: neon-pulse 0.8s ease-out; }

.style-neon .neon-task__card {
  position: relative;
  overflow: hidden;
  padding: 0.7rem 1rem;
  border: 1px solid rgb(255 255 255 / 0.06);
  border-radius: 0.9rem;
  background: var(--glass);
  transition: opacity 0.4s, border-color 0.4s;
}
.style-neon .neon-task.is-recurring .neon-task__card { border-color: rgb(34 211 238 / 0.18); }
.style-neon .neon-task.is-done .neon-task__card { border-color: rgb(163 230 53 / 0.18); background: rgb(255 255 255 / 0.015); }
.style-neon .neon-task.is-checking .neon-task__card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgb(163 230 53 / 0.28), transparent);
  animation: neon-scan 0.7s ease-out forwards;
}
.style-neon .neon-task__title { display: block; font-size: 0.98rem; font-weight: 600; line-height: 1.4; }
.style-neon .neon-task.is-done .neon-task__title { color: var(--muted); text-decoration: line-through 1px var(--lime); }

.style-neon .neon-task__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.6rem; margin-top: 0.35rem; font-size: 0.75rem; }
.style-neon .neon-task__chip { padding: 0.05rem 0.5rem; border: 1px solid var(--edge); border-radius: 0.4rem; color: var(--muted); }
.style-neon .neon-task__chip--repeat { border-color: rgb(34 211 238 / 0.35); color: var(--cyan); }
.style-neon .neon-task__chip--postponed { border-color: rgb(244 114 182 / 0.45); color: var(--pink); }
.style-neon .neon-task__streak {
  font-family: "Unbounded", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--amber);
  text-shadow: 0 0 10px rgb(251 191 36 / 0.65);
}
.style-neon .neon-task.is-checking .neon-task__streak { animation: neon-heat 0.8s ease-out; }
.style-neon .neon-task__tag { color: var(--dim); }

@media (max-width: 30rem) {
  .style-neon .neon-task { grid-template-columns: 2.9rem 1.6rem minmax(0, 1fr); gap: 0.5rem; }
  .style-neon .neon-task__time { font-size: 0.68rem; }
  .style-neon .neon__list::before { left: calc(2.9rem + 0.5rem + 0.8rem - 1px); }
}

/* The toast: a HUD notice in the header band (base.css places it) */
.style-neon .neon__toast {
  border: 1px solid rgb(34 211 238 / 0.5);
  border-radius: 0.75rem;
  background: rgb(11 13 26 / 0.96);
  color: var(--text);
  box-shadow: 0 0 24px -4px rgb(34 211 238 / 0.5);
  opacity: 0;
  transform: translateY(-0.5rem);
  transition: opacity 0.3s, transform 0.3s cubic-bezier(.2, .8, .2, 1);
}
.style-neon .neon__toast.is-visible { opacity: 1; transform: none; }

@keyframes neon-pulse {
  0% { box-shadow: 0 0 0 0 rgb(163 230 53 / 0.8); }
  100% { box-shadow: 0 0 0 1rem rgb(163 230 53 / 0); }
}
@keyframes neon-scan { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes neon-heat { 40% { transform: scale(1.3); color: #fb923c; } }
@keyframes neon-glitch { 0% { opacity: 0; transform: translateX(-4px); } 50% { opacity: 1; transform: translateX(3px); } }
@keyframes neon-flare {
  from { filter: drop-shadow(0 0 6px rgb(163 230 53 / 0.6)); }
  to { filter: drop-shadow(0 0 16px rgb(163 230 53 / 0.95)); }
}

/* ── Shared pieces in «Неон» ───────────────────────────────────────────────────────────────── */
.style-neon { color-scheme: dark; }
.style-neon .app-nav__add {
  padding: 0.35rem 0.85rem;
  border: 1px solid rgb(34 211 238 / 0.5);
  border-radius: 0.5rem;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 0 14px -4px rgb(34 211 238 / 0.6);
}
.style-neon .app-nav__add:hover { background: rgb(34 211 238 / 0.12); color: var(--text); }
.style-neon .app-nav__dot { background: transparent; cursor: pointer; }

.style-neon .app-flash { border: 1px solid rgb(163 230 53 / 0.5); border-radius: 0.75rem; background: rgb(11 13 26 / 0.94); color: var(--text); box-shadow: 0 0 24px -4px rgb(163 230 53 / 0.5); }
.style-neon .app-flash--alert { border-color: rgb(244 114 182 / 0.6); box-shadow: 0 0 24px -4px rgb(244 114 182 / 0.6); }

.style-neon .neon-task__edit { color: var(--dim); text-decoration: underline dotted; text-underline-offset: 0.2rem; }
.style-neon .neon-task__edit:hover { color: var(--cyan); }
@media (hover: hover) {
  .style-neon .neon-task__edit { opacity: 0; transition: opacity 0.2s; }
  .style-neon .neon-task:hover .neon-task__edit,
  .style-neon .neon-task__edit:focus-visible { opacity: 1; }
}

.style-neon .day-empty { padding: 2rem; border: 1px dashed rgb(34 211 238 / 0.35); border-radius: 1.25rem; background: var(--glass); }
.style-neon .day-empty__title { font-family: "Unbounded", sans-serif; font-size: 1.3rem; font-weight: 600; color: var(--lime); text-shadow: 0 0 12px rgb(163 230 53 / 0.5); }
.style-neon .day-empty__text { color: var(--muted); line-height: 1.6; }
.style-neon .day-empty__add,
.style-neon .neon-form__submit,
.style-neon .neon-inbox__add-submit,
.style-neon .day-picker__confirm {
  padding: 0.65rem 1.3rem;
  border: 0;
  border-radius: 0.6rem;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  color: var(--night);
  font-family: "Unbounded", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 0 20px -4px rgb(34 211 238 / 0.7);
  cursor: pointer;
  transition: box-shadow 0.25s, transform 0.25s;
}
.style-neon .day-empty__add:hover,
.style-neon .neon-form__submit:hover,
.style-neon .neon-inbox__add-submit:hover,
.style-neon .day-picker__confirm:hover { box-shadow: 0 0 28px -2px rgb(34 211 238 / 0.95); transform: translateY(-1px); color: var(--night); }

/* ── The undated list (overview/neon/_list): a glass panel with a command-line quick add ────── */
.style-neon .neon-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; padding: 1.25rem; border: 1px solid var(--edge); border-radius: 1.25rem; background: var(--glass); }
.style-neon .neon-list__head .neon__group { margin: 0; }
.style-neon .neon-list__intro { margin-top: 0.5rem; color: var(--muted); font-size: 0.85rem; line-height: 1.5; }
.style-neon .neon-inbox__add { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; padding: 0.5rem 0.5rem 0.5rem 0.9rem; border: 1px solid rgb(34 211 238 / 0.35); border-radius: 0.8rem; background: rgb(0 0 0 / 0.25); }
.style-neon .neon-inbox__add:focus-within { border-color: var(--cyan); box-shadow: 0 0 18px -6px rgb(34 211 238 / 0.8); }
.style-neon .neon-inbox__prompt { color: var(--lime); font-family: "Unbounded", sans-serif; }
.style-neon .neon-inbox__add-input { flex: 1; min-width: 8rem; padding: 0.45rem 0; border: 0; background: transparent; outline: none; }
.style-neon .neon-inbox__add-input::placeholder { color: var(--dim); }
.style-neon .neon-inbox__empty { padding: 2rem; border: 1px dashed var(--edge); border-radius: 1rem; color: var(--muted); line-height: 1.6; }
.style-neon .neon-inbox__empty-title { margin-bottom: 0.4rem; color: var(--lime); font-family: "Unbounded", sans-serif; font-size: 1.1rem; }

.style-neon .neon-inbox__list { position: relative; display: grid; gap: 0.6rem; }
.style-neon .neon-inbox__list::before {
  content: "";
  position: absolute;
  top: 0.75rem;
  bottom: 0.75rem;
  left: calc(0.8rem - 1px);
  width: 2px;
  background: linear-gradient(var(--pink), var(--violet), transparent);
  opacity: 0.45;
}
.style-neon .neon-inbox-item { position: relative; display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); gap: 0.75rem; align-items: start; }
.style-neon .neon-inbox-item__node { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; margin-top: 0.7rem; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.style-neon .neon-inbox-item__node-shape { width: 0.95rem; height: 0.95rem; border: 2px solid var(--pink); border-radius: 50%; background: var(--night); transition: box-shadow 0.3s, background 0.3s; }
.style-neon .neon-inbox-item__node:hover .neon-inbox-item__node-shape { background: var(--pink); box-shadow: 0 0 12px var(--pink); }
.style-neon .neon-inbox-item__node:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.style-neon .neon-inbox-item__card { padding: 0.75rem 1rem; border: 1px solid rgb(244 114 182 / 0.18); border-radius: 0.9rem; background: var(--glass); }
.style-neon .neon-inbox-item__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 0.6rem; font-size: 0.98rem; font-weight: 600; line-height: 1.4; }
.style-neon .neon-inbox-item__time { color: var(--muted); font-family: "Unbounded", sans-serif; font-size: 0.72rem; }

.style-neon .inbox-actions__button {
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--edge);
  border-radius: 0.4rem;
  background: transparent;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.style-neon .inbox-actions__button:hover { border-color: var(--cyan); box-shadow: 0 0 10px -2px rgb(34 211 238 / 0.7); }
.style-neon .inbox-actions__link { border: 0; background: transparent; color: var(--dim); font-size: 0.75rem; text-decoration: underline dotted; text-underline-offset: 0.2rem; }
.style-neon .inbox-actions__link:hover { color: var(--text); }
.style-neon .inbox-actions__link--danger { color: var(--pink); }

/* ── The day picker: a HUD notice ──────────────────────────────────────────────────────────── */
.style-neon .day-picker { border: 1px solid rgb(34 211 238 / 0.45); border-radius: 1rem; background: rgb(11 13 26 / 0.97); color: var(--text); box-shadow: 0 0 40px -8px rgb(34 211 238 / 0.55); }
.style-neon .day-picker::backdrop { background: rgb(5 6 14 / 0.7); backdrop-filter: blur(4px); }
.style-neon .day-picker[open] { animation: neon-glitch 0.4s steps(2) both; }
.style-neon .day-picker__kicker { color: var(--pink); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.style-neon .day-picker__title { font-family: "Unbounded", sans-serif; font-size: 1.15rem; font-weight: 600; }
.style-neon .day-picker__option { padding: 0.7rem 0.9rem; border: 1px solid var(--edge); border-radius: 0.6rem; background: var(--glass); transition: border-color 0.2s, box-shadow 0.2s; }
.style-neon .day-picker__option:has(input[type="radio"]:checked) { border-color: var(--lime); box-shadow: 0 0 16px -4px rgb(163 230 53 / 0.6); }
.style-neon .day-picker__option input[type="radio"] { accent-color: var(--lime); }
.style-neon .day-picker__date { padding: 0.2rem 0.4rem; border: 1px solid var(--edge); border-radius: 0.4rem; background: rgb(0 0 0 / 0.3); }
.style-neon .day-picker__cancel { padding: 0.65rem 1rem; border: 1px solid var(--edge); border-radius: 0.6rem; background: transparent; color: var(--muted); }

/* ── The task form: a two-column HUD ───────────────────────────────────────────────────────── */
.style-neon .neon-form { width: 100%; max-width: 72rem; margin: 0 auto; padding: 2.5rem 1rem 6rem; }
.style-neon .neon-form__title { margin-top: 0.5rem; font-family: "Unbounded", sans-serif; font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 600; letter-spacing: -0.02em; }
.style-neon .neon-form__form { display: grid; gap: 1.5rem; margin-top: 2rem; }
.style-neon .neon-form__grid { display: grid; gap: 1.5rem; }
@media (min-width: 60rem) { .style-neon .neon-form__grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.style-neon .neon-form__panel { display: grid; gap: 1.25rem; padding: 1.5rem; border: 1px solid var(--edge); border-radius: 1.25rem; background: var(--glass); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.05); }
.style-neon .neon-form__panel-title { color: var(--cyan); font-family: "Unbounded", sans-serif; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.style-neon .neon-form__field { display: grid; gap: 0.4rem; min-width: 0; border: 0; padding: 0; }
.style-neon .neon-form__label { color: var(--muted); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.style-neon .neon-form__input {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--edge);
  border-radius: 0.6rem;
  background: rgb(0 0 0 / 0.3);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.style-neon .neon-form__input:focus { border-color: var(--cyan); box-shadow: 0 0 16px -4px rgb(34 211 238 / 0.8); }
.style-neon .neon-form__input--title { font-size: 1.15rem; font-weight: 600; }
.style-neon .neon-form__input--number { width: 5rem; text-align: center; font-family: "Unbounded", sans-serif; }
.style-neon .neon-form__hint { color: var(--dim); font-size: 0.78rem; line-height: 1.5; }
.style-neon .neon-form__when { display: grid; gap: 1.25rem; }
@media (min-width: 30rem) { .style-neon .neon-form__when { grid-template-columns: 1fr 1fr; } }
.style-neon .neon-form__repeat { display: grid; gap: 1.25rem; }
.style-neon .neon-form__choices { display: grid; gap: 0.4rem; border: 0; padding: 0; }
.style-neon .neon-form__choices legend { margin-bottom: 0.6rem; }
.style-neon .neon-form__choice { position: relative; cursor: pointer; }
.style-neon .neon-form__choice-input,
.style-neon .neon-form__weekday-input { position: absolute; opacity: 0; pointer-events: none; }
.style-neon .neon-form__choice-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--edge);
  border-radius: 0.6rem;
  color: var(--muted);
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.style-neon .neon-form__choice-label::before { content: ""; width: 0.6rem; height: 0.6rem; border: 2px solid var(--violet); border-radius: 0.1rem; transform: rotate(45deg); transition: background 0.2s, border-color 0.2s; }
.style-neon .neon-form__choice:hover .neon-form__choice-label { color: var(--text); }
.style-neon .neon-form__choice:has(input:checked) .neon-form__choice-label { border-color: rgb(34 211 238 / 0.6); color: var(--text); box-shadow: 0 0 16px -6px rgb(34 211 238 / 0.9); }
.style-neon .neon-form__choice:has(input:checked) .neon-form__choice-label::before { border-color: var(--cyan); background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.style-neon .neon-form__choice:has(input:focus-visible) .neon-form__choice-label,
.style-neon .neon-form__weekday:has(input:focus-visible) span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.style-neon .neon-form__weekdays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.3rem; }
.style-neon .neon-form__weekday { position: relative; cursor: pointer; }
.style-neon .neon-form__weekday span {
  display: grid;
  place-items: center;
  height: 2.4rem;
  border: 1px solid var(--edge);
  border-radius: 0.4rem;
  color: var(--muted);
  font-family: "Unbounded", sans-serif;
  font-size: 0.68rem;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.style-neon .neon-form__weekday:has(input:checked) span { border-color: transparent; background: var(--lime); color: var(--night); box-shadow: 0 0 12px rgb(163 230 53 / 0.7); }
.style-neon .neon-form__inline { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--muted); }
.style-neon .neon-form__errors { padding: 0.9rem 1.1rem; border: 1px solid rgb(244 114 182 / 0.5); border-radius: 0.75rem; background: rgb(244 114 182 / 0.08); color: #f9a8d4; font-size: 0.9rem; }
.style-neon .neon-form__errors ul { margin-top: 0.4rem; padding-left: 1.1rem; list-style: disc; }
.style-neon .neon-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border: 1px solid var(--edge); border-radius: 1rem; background: var(--glass); }
.style-neon .neon-form__cancel { color: var(--muted); font-size: 0.85rem; }
.style-neon .neon-form__cancel:hover { color: var(--text); }
.style-neon .neon-form__delete-form { margin-top: 2rem; }
.style-neon .neon-form__delete { padding: 0.5rem 0.9rem; border: 1px solid rgb(244 114 182 / 0.45); border-radius: 0.5rem; background: transparent; color: var(--pink); font-size: 0.8rem; cursor: pointer; }
.style-neon .neon-form__delete:hover { box-shadow: 0 0 14px -4px rgb(244 114 182 / 0.8); }
.style-neon .neon-inbox-item .neon-task__chip { font-size: 0.75rem; font-weight: 500; }

/* ── The calendar (overview/_calendar, _week, _cell) ─────────────────────────────────────────── */
.style-neon .cal { padding: 1rem; border: 1px solid var(--edge); border-radius: 1.25rem; background: var(--glass); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.05); }
.style-neon .cal__title { font-family: "Unbounded", sans-serif; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.style-neon .cal__arrow { border-radius: 50%; color: var(--cyan); transition: background 0.2s, box-shadow 0.2s; }
.style-neon .cal__arrow:hover { background: rgb(34 211 238 / 0.12); box-shadow: 0 0 12px -2px rgb(34 211 238 / 0.6); }
.style-neon .cal__weekdays li { color: var(--dim); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.style-neon .cal__day { border: 1px solid transparent; border-radius: 0.7rem; color: var(--text); font-size: 0.85rem; font-weight: 600; transition: background 0.2s, border-color 0.2s, box-shadow 0.2s; }
.style-neon .cal__day:hover { background: rgb(255 255 255 / 0.06); }
.style-neon .cal__day:focus-visible { outline: 2px solid var(--cyan); outline-offset: 1px; }
.style-neon .cal__cell.is-past .cal__num { color: #c9cde8; }
/* Another month's day: muted text (≥ 4.5:1 on the panel) and a faded mark, still a readable link. */
.style-neon .cal__cell.is-outside .cal__num { color: var(--dim); font-weight: 500; }
.style-neon .cal__cell.is-outside .cal__ring,
.style-neon .cal__cell.is-outside .cal__planned { opacity: 0.45; }
.style-neon .cal__cell.is-today .cal__num { color: var(--cyan); text-shadow: 0 0 10px rgb(34 211 238 / 0.8); }
.style-neon .cal__cell.is-selected .cal__day { border-color: rgb(34 211 238 / 0.7); background: rgb(34 211 238 / 0.1); box-shadow: 0 0 16px -4px rgb(34 211 238 / 0.8); }
/* The % ring: pink when nothing got done, violet → cyan as it fills, lime and glowing at 100%. */
.style-neon .cal__ring { --tone: var(--violet); background: conic-gradient(var(--tone) calc(var(--pct, 0) * 1%), rgb(255 255 255 / 0.1) 0); }
.style-neon .cal__cell.is-level-zero .cal__ring { --tone: var(--pink); background: rgb(244 114 182 / 0.45); }
.style-neon .cal__cell.is-level-high .cal__ring { --tone: var(--cyan); }
.style-neon .cal__cell.is-level-full .cal__ring { --tone: var(--lime); filter: drop-shadow(0 0 4px rgb(163 230 53 / 0.9)); }
.style-neon .cal__cell.is-level-full .cal__day { background: rgb(163 230 53 / 0.08); }
.style-neon .cal__planned { border-radius: 0.6rem; background: #6d28d9; color: #fff; box-shadow: 0 0 8px rgb(139 92 246 / 0.7); } /* white on it ≈ 7:1 */
.style-neon .cal__to-today,
.style-neon .cal__list-jump { color: var(--cyan); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.style-neon .cal__list-jump { padding: 0.25rem 0.6rem; border: 1px solid rgb(244 114 182 / 0.45); border-radius: 0.5rem; color: var(--pink); }

/* A planned (future) day: hollow nodes and dashed cards — not checkable yet. */
.style-neon .neon-task.is-planned .neon-task__node { cursor: default; }
.style-neon .neon-task.is-planned .neon-task__node-shape { border-style: dashed; background: transparent; }
.style-neon .neon-task.is-planned .neon-task__card { border-style: dashed; }
.style-neon .neon__ring-track--plan { stroke: rgb(139 92 246 / 0.35); stroke-dasharray: 2 2; }

/* Drag & drop (move_controller.js): targets outlined in cyan, the one under the task glows lime. */
.style-neon .overview.is-dragging [data-move-day] { outline-color: rgb(34 211 238 / 0.45); border-radius: 0.9rem; }
.style-neon .overview.is-dragging .is-drop-over { outline-color: var(--lime); box-shadow: 0 0 22px -4px rgb(163 230 53 / 0.8); }
.style-neon .move-picker__quick .day-picker__option:hover { border-color: var(--cyan); }
