/* route: Movimento — Blocco 8 · B7B5. Estratto da movimento.html inline.
   Usa i token di bf-home.css (--ink/--green/--green-soft/--line/--muted). */
[data-route="movimento"] [hidden] { display: none !important; }
[data-route="movimento"] .lead { margin: 0 2px 16px; }

[data-route="movimento"] .musica-link {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 14px; margin-bottom: 12px; color: var(--ink);
  box-shadow: 0 6px 20px rgba(60, 90, 60, .06);
}
[data-route="movimento"] .musica-link:active { opacity: .7; }
[data-route="movimento"] .musica-link .ml-ic { font-size: 1.35rem; flex: none; }
[data-route="movimento"] .musica-link .ml-txt { flex: 1; line-height: 1.3; }
[data-route="movimento"] .musica-link .ml-txt b { font-size: .9rem; display: block; }
[data-route="movimento"] .musica-link .ml-txt small { font-size: .74rem; color: var(--muted); }
[data-route="movimento"] .musica-link .ml-go { color: var(--green); font-weight: 700; flex: none; }

[data-route="movimento"] details.sez {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  margin-bottom: 12px; overflow: hidden; box-shadow: 0 6px 20px rgba(60, 90, 60, .06);
}
[data-route="movimento"] details.sez > summary {
  list-style: none; cursor: pointer; padding: 14px 16px;
  font-weight: 600; font-size: .96rem; display: flex; align-items: center; gap: 8px;
}
[data-route="movimento"] details.sez > summary::-webkit-details-marker { display: none; }
[data-route="movimento"] details.sez > summary::after {
  content: "▾"; margin-left: auto; color: var(--muted); transition: transform .2s;
}
[data-route="movimento"] details.sez[open] > summary::after { transform: rotate(180deg); }
[data-route="movimento"] .sez-in { padding: 4px 16px 18px; border-top: 1px solid var(--line); }

[data-route="movimento"] .lbl { font-size: .74rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 14px 0 8px; }
[data-route="movimento"] .opts { display: grid; gap: 8px; }
[data-route="movimento"] .opts button {
  text-align: left; background: #fbfdfa; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 10px 12px; font: 600 .86rem 'Poppins', Arial, sans-serif; color: var(--ink); cursor: pointer;
  display: flex; flex-direction: column; gap: 2px;
}
[data-route="movimento"] .opts button small { font-weight: 400; font-size: .74rem; color: var(--muted); }
[data-route="movimento"] .opts button.on { border-color: var(--green); background: var(--green-soft); }
[data-route="movimento"] .opts button.on small { color: #4a6a4d; }

[data-route="movimento"] .base-txt {
  margin: 14px 0 0; font-size: .85rem; line-height: 1.55; color: #47564a;
  background: var(--green-soft); border-radius: 12px; padding: 12px 13px;
}
[data-route="movimento"] .hint { font-size: .8rem; color: var(--muted); margin: 4px 0 12px; line-height: 1.45; }

[data-route="movimento"] .macro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
[data-route="movimento"] .macro-tile {
  background: #fbfdfa; border: 1px solid var(--line); border-radius: 14px; padding: 10px;
  cursor: pointer; text-align: center; display: flex; flex-direction: column; gap: 4px;
}
[data-route="movimento"] .macro-tile.on { border-color: var(--green); background: var(--green-soft); }
[data-route="movimento"] .macro-tile img { width: 100%; height: 74px; object-fit: contain; }
[data-route="movimento"] .macro-tile b { font-size: .82rem; }
[data-route="movimento"] .macro-tile span { font-size: .68rem; color: var(--muted); line-height: 1.25; }
[data-route="movimento"] .macro-tile .n { font-size: .66rem; color: var(--green); font-weight: 600; }

[data-route="movimento"] #macro-detail { margin-top: 4px; }
[data-route="movimento"] .detail-back {
  background: none; border: none; color: var(--green); cursor: pointer;
  font: 600 .82rem 'Poppins', Arial, sans-serif; padding: 4px 0 8px;
}
[data-route="movimento"] .detail-head { display: flex; gap: 11px; align-items: center; margin-bottom: 14px; }
[data-route="movimento"] .detail-head img { width: 54px; height: 54px; object-fit: contain; flex: none; }
[data-route="movimento"] .detail-head h3 { margin: 0; font-size: .98rem; }
[data-route="movimento"] .detail-head p { margin: 2px 0 0; font-size: .75rem; color: var(--muted); line-height: 1.3; }
[data-route="movimento"] .tipo {
  border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; margin-bottom: 9px; background: #fff;
}
[data-route="movimento"] .tipo .top { display: flex; align-items: baseline; gap: 8px; }
[data-route="movimento"] .tipo b { font-size: .85rem; }
[data-route="movimento"] .tipo .micro { font-size: .68rem; color: var(--muted); margin-left: auto; flex: none; }
[data-route="movimento"] .tipo p { margin: 6px 0 8px; font-size: .78rem; color: #55635a; line-height: 1.45; }
[data-route="movimento"] .chips { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 9px; }
[data-route="movimento"] .chip {
  font-size: .68rem; background: #f0f4ee; color: #55635a; border-radius: 8px; padding: 2px 7px;
}
[data-route="movimento"] .chip.nota { background: #eef4fb; color: #3f6b8f; width: 100%; line-height: 1.4; padding: 5px 8px; }
[data-route="movimento"] .btn-add {
  background: var(--green); color: #fff; border: none; border-radius: 10px;
  padding: 7px 12px; font: 600 .78rem 'Poppins', Arial, sans-serif; cursor: pointer;
}
[data-route="movimento"] .sessione { border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; margin-bottom: 9px; background: #fafcf9; }
[data-route="movimento"] .sessione summary { font-size: .76rem; font-weight: 600; color: var(--green); cursor: pointer; }
[data-route="movimento"] .sess-desc { margin: 7px 0 4px; font-size: .76rem; color: #55635a; line-height: 1.45; }
[data-route="movimento"] .sess-blocchi { margin: 6px 0 8px; padding-left: 18px; font-size: .76rem; color: #44514a; line-height: 1.5; }
[data-route="movimento"] .sess-blocchi li { margin-bottom: 4px; }
[data-route="movimento"] .sess-note { color: var(--muted); font-size: .72rem; }
[data-route="movimento"] .sess-timer {
  background: #fff; color: var(--green); border: 1px solid var(--green); border-radius: 10px;
  padding: 6px 11px; font: 600 .76rem 'Poppins', Arial, sans-serif; cursor: pointer; margin-bottom: 2px;
}
[data-route="movimento"] .btn-ghost {
  background: #fff; color: var(--green); border: 1px solid var(--green); border-radius: 10px;
  padding: 7px 12px; font: 600 .78rem 'Poppins', Arial, sans-serif; cursor: pointer;
}
[data-route="movimento"] .tipo-azioni { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
[data-route="movimento"] .btn-mus {
  background: #fff; color: var(--green); border: 1px solid var(--line); border-radius: 10px;
  padding: 7px 12px; font: 600 .78rem 'Poppins', Arial, sans-serif; text-decoration: none;
}
[data-route="movimento"] .btn-mus:active { opacity: .6; }

/* giorni programma */
[data-route="movimento"] details.giorno {
  border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; overflow: hidden; background: #fff;
}
[data-route="movimento"] details.giorno > summary {
  list-style: none; cursor: pointer; padding: 11px 13px; font-weight: 600; font-size: .86rem;
  display: flex; align-items: center; gap: 8px;
}
[data-route="movimento"] details.giorno > summary::-webkit-details-marker { display: none; }
[data-route="movimento"] details.giorno > summary .cnt {
  margin-left: auto; font-size: .72rem; font-weight: 600; color: var(--muted);
  background: #f0f4ee; border-radius: 8px; padding: 1px 8px;
}
[data-route="movimento"] details.giorno > summary .cnt.has { color: var(--green); background: var(--green-soft); }
[data-route="movimento"] .giorno-in { padding: 4px 13px 13px; border-top: 1px solid var(--line); }
[data-route="movimento"] .sess-cell { border-bottom: 1px solid var(--line); padding: 6px 0; }
[data-route="movimento"] .sess-cell:last-of-type { border-bottom: none; }
[data-route="movimento"] .sess {
  display: flex; align-items: center; gap: 9px; padding: 2px 0;
  font-size: .82rem;
}
[data-route="movimento"] .sess .tick {
  width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--line);
  display: grid; place-items: center; flex: none; cursor: pointer; font-size: .8rem; color: transparent;
}
[data-route="movimento"] .sess.done .tick { background: var(--green); border-color: var(--green); color: #fff; }
[data-route="movimento"] .sess.done .txt { text-decoration: line-through; color: var(--muted); }
[data-route="movimento"] .sess.skipped .txt { opacity: .6; }
[data-route="movimento"] .sess .txt { flex: 1; line-height: 1.35; cursor: pointer; }
[data-route="movimento"] .sess .txt small { display: block; font-size: .7rem; color: var(--muted); }
[data-route="movimento"] .sess .del {
  background: none; border: none; cursor: pointer; font-size: .95rem; flex: none; opacity: .6;
  font-family: 'Poppins', Arial, sans-serif;
}
[data-route="movimento"] .sess .del.arm { opacity: 1; color: #b4453c; font-size: .72rem; font-weight: 700; }
[data-route="movimento"] .sess-mus { display: flex; align-items: center; gap: 7px; padding: 3px 0 3px 31px; font-size: .74rem; }
[data-route="movimento"] .sess-mus .mus-play {
  width: 20px; height: 20px; border-radius: 50%; border: none; background: var(--green); color: #fff;
  font-size: .6rem; cursor: pointer; flex: none; display: grid; place-items: center;
}
[data-route="movimento"] .sess-mus .mus-tit { flex: 1; color: #55635a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[data-route="movimento"] .sess-mus .mus-link { color: var(--green); text-decoration: none; font-weight: 600; flex: none; }
[data-route="movimento"] .sess-mus .mus-link.add { color: var(--muted); font-weight: 500; }
[data-route="movimento"] .giorno-add {
  margin-top: 10px; width: 100%; background: #fbfdfa; border: 1px dashed var(--line);
  border-radius: 10px; padding: 8px; font: 600 .78rem 'Poppins', Arial, sans-serif;
  color: var(--green); cursor: pointer;
}

[data-route="movimento"] .riepilogo { padding: 15px 16px; }
[data-route="movimento"] .riepilogo h3 { margin: 0 0 4px; font-size: .9rem; }
[data-route="movimento"] .riepilogo .big { font-size: 1.5rem; font-weight: 700; color: var(--green); }
[data-route="movimento"] .riepilogo .row { display: flex; gap: 14px; margin-top: 8px; flex-wrap: wrap; }
[data-route="movimento"] .riepilogo .row div { font-size: .78rem; color: var(--muted); }
[data-route="movimento"] .riepilogo .row b { display: block; font-size: 1rem; color: var(--ink); }
[data-route="movimento"] .riepilogo .bridge { margin-top: 10px; font-size: .76rem; color: #4a6a4d; background: var(--green-soft); border-radius: 10px; padding: 9px 11px; }

/* modal */
[data-route="movimento"] .modal { position: fixed; inset: 0; background: rgba(30, 45, 32, .4); display: grid; place-items: end center; z-index: 50; }
[data-route="movimento"] .modal[hidden] { display: none; }
[data-route="movimento"] .modal-card {
  background: #fff; width: 100%; max-width: 520px; border-radius: 18px 18px 0 0;
  padding: 18px 18px calc(env(safe-area-inset-bottom) + 18px); max-height: 88vh; overflow-y: auto;
}
[data-route="movimento"] .modal-card h3 { margin: 0 0 4px; font-size: 1rem; }
[data-route="movimento"] .m-hint { margin: 0 0 12px; font-size: .76rem; color: var(--muted); line-height: 1.4; }
[data-route="movimento"] #m-role-wrap { margin: 0 0 4px; }
[data-route="movimento"] #m-role-chip { margin: 6px 0 12px; }
[data-route="movimento"] .off-target { color: var(--muted); font-style: italic; }
[data-route="movimento"] .modal-card label { display: block; font-size: .74rem; font-weight: 600; color: var(--muted); margin: 10px 0 4px; }
[data-route="movimento"] .modal-card input, [data-route="movimento"] .modal-card select, [data-route="movimento"] .modal-card textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px;
  font: 400 .88rem 'Poppins', Arial, sans-serif; color: var(--ink); background: #fbfdfa;
}
[data-route="movimento"] .modal-card textarea { resize: vertical; min-height: 46px; }
[data-route="movimento"] .modal-row { display: flex; gap: 10px; }
[data-route="movimento"] .modal-row > div { flex: 1; }
[data-route="movimento"] .modal-actions { display: flex; gap: 10px; margin-top: 18px; }
[data-route="movimento"] .modal-actions button { flex: 1; padding: 11px; border-radius: 12px; font: 600 .86rem 'Poppins', Arial, sans-serif; cursor: pointer; }
[data-route="movimento"] .modal-actions .ok { background: var(--green); color: #fff; border: none; }
[data-route="movimento"] .modal-actions .no { background: #fff; color: var(--muted); border: 1px solid var(--line); }
[data-route="movimento"] .m-del {
  background: none; border: none; color: #b4453c; cursor: pointer;
  font: 600 .8rem 'Poppins', Arial, sans-serif; margin-top: 14px; padding: 4px;
}
[data-route="movimento"] .m-err {
  margin-top: 12px; font-size: .8rem; color: #b4453c;
  background: #fbe9e7; border-radius: 10px; padding: 9px 11px; line-height: 1.4;
}

[data-route="movimento"] .msg { font-size: .82rem; color: var(--muted); padding: 10px 2px; }
[data-route="movimento"] .msg.err { color: #b4453c; }
