/* Sakina – stile.
   Giorno: sabbia chiara con verde profondo. Notte: marrone caldo e scuro con oro spento (poca luce blu, per la sera). */

:root {
  --bg: #F1EDE2;
  --surf: #FAF7EF;
  --surf2: #E5DFCF;
  --ink: #26261F;
  --ink2: #58564A;
  --line: #D3CBB6;
  --deep: #35614F;
  --on-deep: #FFFFFF;
  --sage: #A9BFA9;
  --dusk: #6B6A99;
  --warm: #B58A3A;
  --warn: #9C4F2A;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --arabic: "Geeza Pro", "Noto Naskh Arabic", "Amiri", "Traditional Arabic", "Segoe UI", serif;
}

[data-theme="night"] {
  --bg: #16140F;
  --surf: #211E17;
  --surf2: #2D2A20;
  --ink: #E9E2CF;
  --ink2: #AFA78F;
  --line: #3A3629;
  --deep: #CDB47A;
  --on-deep: #19160C;
  --sage: #6F7F5F;
  --dusk: #A9A7D6;
  --warm: #D2A957;
  --warn: #E8A982;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
  -webkit-tap-highlight-color: transparent;
  padding-top: env(safe-area-inset-top);
  transition: background-color .4s, color .4s;
}

.skip { position: absolute; left: -999px; top: 0; background: var(--deep); color: var(--on-deep); padding: 10px 14px; z-index: 100; border-radius: 0 0 10px 0; }
.skip:focus { left: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.005em; line-height: 1.2; margin: 0; }
h1 { font-size: 2rem; margin: 0 0 .35rem; }
h2 { font-size: 1.3rem; margin: 2rem 0 .5rem; }
h3 { font-size: 1.1rem; margin: 1.3rem 0 .4rem; }
.panel h2 { margin-top: 0; }
p { margin: 0 0 .9rem; max-width: 36em; }
ul { margin: 0 0 .9rem; padding-left: 1.2rem; max-width: 36em; }
li { margin-bottom: .35rem; }
a { color: var(--deep); }
:focus-visible { outline: 3px solid var(--dusk); outline-offset: 3px; border-radius: 8px; }

/* ---- struttura ---- */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 18px 6px;
  max-width: 600px; margin: 0 auto;
}
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
.brand svg { color: var(--deep); }
.top-actions { display: flex; gap: 4px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: transparent; border: 0; color: var(--ink2); cursor: pointer; text-decoration: none;
}
.icon-btn:hover { background: var(--surf2); }

main { max-width: 600px; margin: 0 auto; padding: 8px 18px calc(110px + env(safe-area-inset-bottom)); outline: none; }
.lede { font-family: var(--serif); font-size: 1.15rem; color: var(--ink2); margin-bottom: 1.4rem; }
.sub { color: var(--ink2); font-size: .98rem; }
.hint { color: var(--ink2); font-size: .94rem; min-height: 1.2em; margin: .5rem 0 0; }
.fine { color: var(--ink2); font-size: .88rem; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); }

/* ---- saluto ---- */
.greet-wrap { margin: .4rem 0 1.1rem; }
.greet { font-family: var(--serif); font-size: 1.7rem; line-height: 1.25; margin: 0; max-width: none; overflow-wrap: anywhere; }
input[type="text"] {
  width: 100%; font: inherit; color: var(--ink); background: var(--surf);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 48px;
}
.name-form { display: flex; gap: 10px; align-items: center; }
.name-form .btn { flex: none; }
::placeholder { color: var(--ink2); opacity: .75; }

/* ---- pannelli: nessuna ombra, differenza di tono ---- */
.panel { background: var(--surf); border-radius: 22px 22px 22px 8px; padding: 20px 20px 18px; margin: 1.1rem 0; }

/* ---- bottoni e controlli ---- */
.btn {
  appearance: none; border: 0; cursor: pointer;
  background: var(--deep); color: var(--on-deep);
  font: inherit; font-weight: 600; font-size: 1.02rem;
  padding: 14px 22px; min-height: 48px; border-radius: 999px;
  transition: transform .15s, background-color .25s;
}
.btn:active { transform: scale(.98); }
.btn.secondary { background: transparent; color: var(--deep); box-shadow: inset 0 0 0 2px var(--deep); }
.btn[disabled] { opacity: .5; cursor: default; }

input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 36px; background: transparent; margin: 0;
}
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: var(--line); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--line); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 28px; height: 28px; margin-top: -11px;
  border-radius: 50%; background: var(--deep); border: 4px solid var(--surf);
  box-shadow: 0 0 0 1px var(--deep);
}
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--deep); border: 4px solid var(--surf); }

.check { display: flex; gap: 12px; align-items: flex-start; margin: .9rem 0; cursor: pointer; font-size: .98rem; }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--deep); flex: none; }

.chip {
  appearance: none; font: inherit; font-size: .98rem; cursor: pointer;
  background: var(--bg); color: var(--ink); border: 1.5px solid var(--line);
  border-radius: 999px; padding: 9px 15px; min-height: 44px;
  transition: background-color .2s, border-color .2s;
}
.chip.on { background: var(--deep); color: var(--on-deep); border-color: var(--deep); }

.list { display: grid; gap: 10px; }

/* ---- finestra «Su Sakina» ---- */
.sheet { position: fixed; inset: 0; z-index: 60; background: rgba(10,10,6,.55); display: flex; align-items: flex-end; justify-content: center; }
.sheet[hidden] { display: none; }
.sheet-card {
  width: 100%; max-width: 600px; max-height: 92vh; overflow-y: auto; background: var(--bg);
  border-radius: 28px 28px 0 0; padding: 24px 22px calc(28px + env(safe-area-inset-bottom)); outline: none;
}
.sheet-card h2 { margin-top: 0; }
.sheet-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 1rem; }

@media (min-width: 700px) {
  body { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---- Recitazioni coraniche ---- */
.q-reciter-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 1rem 0 .4rem; }
.q-reciter-chips .chip { font-family: var(--sans); font-size: .92rem; line-height: 1.25; padding: 8px 6px; text-align: center; border-radius: 16px; min-height: 52px; }
.q-reciter-desc { margin: .2rem 0 .8rem; font-size: .92rem; }

.q-player-card {
  background: var(--surf); border: 2px solid var(--sage); border-radius: 20px;
  padding: 20px; margin: 1.2rem 0;
}
.q-now-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.q-now-info { display: flex; align-items: center; gap: 14px; }
.q-badge-num {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--surf2); color: var(--deep); font-weight: 700; font-size: .9rem; flex: none;
}
.q-now-title { font-size: 1.25rem; margin: 0 0 2px; }
.q-ar { font-family: var(--arabic); font-size: 1.3rem; margin-left: 8px; font-weight: normal; }

.q-timeline { margin: 10px 0 6px; }
.q-time-row { display: flex; justify-content: space-between; font-size: .86rem; color: var(--ink2); margin-top: 0; font-variant-numeric: tabular-nums; }

/* barra di avanzamento: traccia colorata fino al punto raggiunto, area di tocco alta 36 px */
.q-range {
  -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 36px; margin: 0; padding: 0;
  background: transparent; cursor: pointer; --rt: var(--line); --rf: var(--deep); --th: var(--deep);
}
.q-range:focus-visible { outline: 2px solid var(--deep); outline-offset: 2px; border-radius: 8px; }
.q-range:disabled { opacity: .5; cursor: default; }
.q-range::-webkit-slider-runnable-track {
  height: 8px; border-radius: 4px;
  background: linear-gradient(to right, var(--rf) var(--p, 0%), var(--rt) var(--p, 0%));
}
.q-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 24px; height: 24px; margin-top: -8px; border-radius: 50%;
  background: var(--th); border: 3px solid var(--surf); box-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.q-range::-moz-range-track { height: 8px; border-radius: 4px; background: var(--rt); }
.q-range::-moz-range-progress { height: 8px; border-radius: 4px; background: var(--rf); }
.q-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--th); border: 3px solid var(--surf); box-shadow: 0 1px 4px rgba(0,0,0,.3); }

.q-controls { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 8px 0 10px; }
.q-play-btn {
  flex: none; display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 50%;
  background: var(--deep); color: var(--on-deep); border: 0; cursor: pointer;
  box-shadow: 0 4px 14px rgba(53,97,79,.25); transition: transform .15s;
}
.q-play-btn:active { transform: scale(.95); }
.q-nav {
  display: grid; place-items: center; width: 46px; height: 56px; background: none; border: 0; border-radius: 14px;
  color: var(--ink2); cursor: pointer;
}
.q-nav:active { background: var(--surf2); }
.q-nav:disabled { opacity: .3; cursor: default; }
.q-spin { animation: q-turn 1s linear infinite; transform-origin: center; }
@keyframes q-turn { to { transform: rotate(360deg); } }

.q-opts-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 0; }
.q-opts-row label { display: flex; flex-direction: column; gap: 4px; font-size: .82rem; color: var(--ink2); font-weight: 600; }
.q-opts-row select {
  width: 100%; background: var(--surf2); color: var(--ink); border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 10px; font: inherit; font-size: .92rem; font-weight: 400; min-height: 44px;
}
.q-sleep-left { margin: 6px 0 0; min-height: 1.3em; font-size: .86rem; }
.q-skip {
  display: flex; flex-direction: column; align-items: center; gap: 0; min-width: 64px; min-height: 64px;
  justify-content: center; background: none; border: 0; border-radius: 16px; color: var(--ink2);
  font: inherit; font-size: .74rem; cursor: pointer;
}
.q-skip:active { background: var(--surf2); }

.q-more { border-top: 1px solid var(--line); margin-top: 6px; }
.q-more summary { cursor: pointer; list-style: none; padding: 12px 0 4px; min-height: 44px; font-weight: 600; font-size: .95rem; display: flex; align-items: center; gap: 4px; color: var(--ink2); }
.q-more summary::-webkit-details-marker { display: none; }
.q-more summary::after { content: "+"; margin-left: auto; font-size: 1.4rem; }
.q-more[open] summary::after { content: "−"; }

/* lettore compatto fisso (compare quando quello grande esce dallo schermo) */
.q-dock {
  position: fixed; left: 12px; right: 12px; z-index: 35; max-width: 576px; margin: 0 auto;
  bottom: calc(env(safe-area-inset-bottom) + 12px);
  background: var(--deep); color: var(--on-deep); border-radius: 22px; padding: 4px 8px 6px;
  box-shadow: 0 6px 22px rgba(0,0,0,.22);
  transform: translateY(24px); opacity: 0; visibility: hidden; pointer-events: none;
  transition: transform .25s, opacity .25s, visibility .25s;
}
.q-dock.show { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
.q-dock-prog { height: 28px; --rt: rgba(255,255,255,.3); --rf: var(--on-deep); --th: var(--on-deep); }
.q-dock-prog::-webkit-slider-thumb { border-color: var(--deep); }
.q-dock-prog::-moz-range-thumb { border-color: var(--deep); }
[data-theme="night"] .q-dock-prog { --rt: rgba(0,0,0,.3); }
.q-dock-row { display: flex; align-items: center; gap: 2px; }
.q-dock-info {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; line-height: 1.2; padding: 4px 4px 4px 6px; min-height: 52px;
  background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: 14px;
}
.q-dock-info:active { background: rgba(255,255,255,.12); }
[data-theme="night"] .q-dock-info:active { background: rgba(0,0,0,.15); }
.q-dock-thumb { flex: none; width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: rgba(255,255,255,.15); box-shadow: 0 0 0 1px rgba(255,255,255,.25); }
[data-theme="night"] .q-dock-thumb { box-shadow: 0 0 0 1px rgba(0,0,0,.25); }
.q-dock-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.q-dock-info strong { font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-dock-info small { opacity: .85; font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-dock-btn { width: 48px; height: 48px; border-radius: 50%; border: 0; background: none; color: inherit; display: grid; place-items: center; cursor: pointer; flex: none; }
.q-dock-btn:active { background: rgba(255,255,255,.18); }
.q-dock-main { width: 54px; height: 54px; background: rgba(255,255,255,.2); }
[data-theme="night"] .q-dock-btn:active { background: rgba(0,0,0,.2); }
[data-theme="night"] .q-dock-main { background: rgba(0,0,0,.2); }
#v-recitazioni { padding-bottom: 84px; }

.q-mix-box {
  background: var(--surf2); border-radius: 12px; padding: 12px 14px; margin: 14px 0;
}
.q-mix-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.q-mix-label { font-size: .92rem; font-weight: 600; }
.q-mix-head select {
  background: var(--surf); color: var(--ink); border: 1px solid var(--line); border-radius: 8px;
  padding: 6px 10px; font-size: .9rem;
}
.q-mix-slider-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.q-mix-slider-row input { flex: 1; accent-color: var(--deep); }

.q-offline-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.q-btn-offline { min-height: 40px; }

.q-search-box { margin: 14px 0 18px; }
.q-search-box input {
  width: 100%; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surf); color: var(--ink); font: inherit; font-size: 1rem;
}
.q-level-row { margin: .8rem 0 .2rem; }
.q-level-row small { font-size: .84rem; line-height: 1.35; margin-top: 2px; }
.q-warn { color: var(--warn); margin: .2rem 0 .6rem; }
.q-mix-slider-row small { flex: none; }
#q-bg-rel-o { display: block; margin-top: 4px; }

/* immagine e mini descrizione della Sura */
.q-cover { margin: 0 auto 16px; width: min(100%, 260px); aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: var(--surf2); box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.q-cover[hidden] { display: none; }
.q-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.q-desc { font-size: .96rem; line-height: 1.5; color: var(--ink); margin: 2px 0 12px; }
.q-place { display: block; margin-bottom: 2px; font-size: .82rem; }

/* ricorrenze (venerdì, Ramadan, notti dispari, feste) */
.q-special { background: var(--surf2); border-radius: 20px; padding: 2px 14px 12px; margin: 1.4rem 0 0; }
.q-special h2 { margin-top: 1rem; }
.q-special .q-item { background: var(--surf); }
.q-special-note { font-size: .8rem; margin-top: .6rem; }

.q-voice-tag { color: var(--deep); font-weight: 600; }

/* miniature nelle liste */
.q-th { position: relative; flex: none; width: 52px; height: 52px; border-radius: 12px; background: var(--surf2); }
.q-th .q-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.q-th .q-badge-num { position: absolute; z-index: 1; left: -5px; bottom: -5px; width: 22px; height: 22px; font-size: .7rem; background: var(--bg); box-shadow: 0 0 0 2px var(--surf); }
.q-item-nota { margin-left: 64px !important; }

/* righe delle Sure */
.q-item {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  background: var(--surf); border-radius: 16px; padding: 12px 12px 12px 14px;
  transition: background .15s;
}
.q-item.active { background: var(--surf2); box-shadow: inset 0 0 0 2px var(--deep); }
.q-item .session-main { flex: 1; min-width: 0; }
.q-item .session-meta { display: flex; align-items: center; gap: 12px; }
.q-item .session-meta > div { min-width: 0; }
.q-item .session-meta strong { display: block; line-height: 1.25; }
.q-item .session-meta small { display: block; color: var(--ink2); font-size: .85rem; line-height: 1.3; }
.q-item .q-ar { font-size: 1.1rem; margin-left: 6px; }
.q-item-nota { font-size: .88rem; color: var(--ink2); margin: 6px 0 0 48px; line-height: 1.4; }
.q-item .btn { flex: none; min-width: 88px; }
.piccolo { font-size: .92rem; }
.btn.piccolo { padding: 8px 14px; min-height: 44px; }
.tenue { color: var(--ink2); }

/* versione e data dell'ultimo aggiornamento */
.version { text-align: center; color: var(--ink2); font-size: .88rem; margin: 2rem 0 .4rem; line-height: 1.6; }
.version .love { display: block; font-family: var(--serif); font-size: 1rem; margin-top: .2rem; }
.version .heart { color: var(--warm); }

/* schermi stretti (telefoni): i cinque tasti del lettore devono stare nella scheda */
@media (max-width: 400px) {
  .q-controls { gap: 4px; }
  .q-play-btn { width: 66px; height: 66px; }
  .q-skip { min-width: 56px; }
  .q-nav { width: 40px; }
}
@media (max-width: 350px) {
  .q-player-card { padding: 16px 14px; }
  .q-controls { gap: 2px; }
  .q-play-btn { width: 62px; height: 62px; }
  .q-skip { min-width: 52px; }
  .q-nav { width: 36px; }
  .q-now-title { font-size: 1.1rem; }
}

/* tasto ⋯ sulle righe delle Sure */
.q-more-btn {
  flex: none; width: 40px; height: 44px; margin-left: -6px; border: 0; border-radius: 12px;
  background: none; color: var(--ink2); display: grid; place-items: center; cursor: pointer;
}
.q-more-btn:hover, .q-more-btn:active { background: var(--surf2); }
.q-item.active .q-more-btn:hover { background: var(--bg); }

/* «Coda e liste» sotto il lettore */
.q-queue-row { display: flex; align-items: center; gap: 6px 12px; flex-wrap: wrap; margin: 8px 0 2px; }
.q-queue-btn { display: inline-flex; align-items: center; gap: 8px; }
.q-count {
  display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px;
  background: var(--deep); color: var(--on-deep); font-size: .8rem; line-height: 1;
}
.q-queue-next { font-size: .86rem; min-width: 0; overflow-wrap: anywhere; }

/* menu ⋯ */
.q-menu-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.q-menu-head h2 { margin: 0; font-size: 1.25rem; }
.q-menu-head p { margin: 2px 0 0; }
.q-menu-actions { display: grid; gap: 10px; }
.q-menu-actions .btn { width: 100%; }
.q-menu-close { margin-top: 4px; }
.q-menu-new { margin-top: 14px; }

/* finestra «Coda e liste» */
.q-coda-list { list-style: none; padding: 0; margin: .6rem 0 .8rem; display: grid; gap: 8px; max-width: none; }
.q-ci { display: flex; align-items: center; gap: 2px; background: var(--surf); border-radius: 14px; padding: 4px; margin: 0; }
.q-ci.ora { background: var(--surf2); box-shadow: inset 0 0 0 2px var(--deep); }
.q-ci.fatta .q-ci-main, .q-ci.esclusa .q-ci-main { opacity: .6; }
.q-ci-main {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 4px; min-height: 56px;
  background: none; border: 0; border-radius: 10px; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.q-ci-main:disabled { cursor: default; }
.q-ci-main > span:last-child { min-width: 0; }
.q-ci-main strong { display: block; line-height: 1.25; font-size: .98rem; }
.q-ci-main small { display: block; color: var(--ink2); font-size: .82rem; line-height: 1.3; }
.q-ci-btn {
  flex: none; width: 38px; height: 44px; border: 0; border-radius: 10px; background: none; color: var(--ink2);
  display: grid; place-items: center; cursor: pointer;
}
.q-ci-btn:disabled { opacity: .25; cursor: default; }
.q-ci-btn:hover:not(:disabled), .q-ci-btn:active:not(:disabled) { background: var(--surf2); }
.q-save-form { margin-top: 14px; }
.sheet-card .q-liste-title { margin-top: 1.8rem; }
.q-lista { background: var(--surf); border-radius: 16px; padding: 2px 12px 12px; margin: 0 0 10px; }
.q-lista summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; padding: 10px 0 0; min-height: 44px; font-weight: 600;
}
.q-lista summary::-webkit-details-marker { display: none; }
.q-lista summary span { min-width: 0; overflow-wrap: anywhere; }
.q-lista summary::after { content: "+"; margin-left: auto; font-size: 1.4rem; color: var(--ink2); font-weight: 400; }
.q-lista[open] summary::after { content: "−"; }
.q-lista .q-ci { background: var(--bg); }
.q-lista .name-form { margin: 10px 0; }
.q-danger { color: var(--warn); box-shadow: inset 0 0 0 2px var(--warn) !important; margin-top: 4px; }

/* avviso breve */
.q-toast {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 104px); z-index: 70;
  width: max-content; max-width: min(90vw, 520px); margin: 0; padding: 10px 18px; border-radius: 14px;
  background: var(--ink); color: var(--bg); font-size: .95rem; line-height: 1.35; text-align: center;
  opacity: 0; visibility: hidden; transform: translate(-50%, 10px); pointer-events: none;
  transition: opacity .25s, transform .25s, visibility .25s;
}
.q-toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* Sure escluse (in «Su Sakina») */
.q-escl-voce { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; font-weight: 600; color: var(--ink2); }
.q-escl-voce select {
  width: 100%; background: var(--surf); color: var(--ink); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 10px 12px; font: inherit; font-size: 1rem; font-weight: 400; min-height: 48px;
}
.q-escl-tools { display: flex; gap: 10px; align-items: center; margin: .5rem 0 .6rem; }
.q-escl-tools input {
  flex: 1; min-width: 0; padding: 10px 14px; min-height: 44px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--surf); color: var(--ink); font: inherit; font-size: 1rem;
}
.q-escl-tools .btn { flex: none; }
.q-escl-list { max-height: 46vh; overflow-y: auto; border: 1.5px solid var(--line); border-radius: 14px; padding: 2px 14px; background: var(--surf); }
.q-escl-item { margin: .7rem 0; }
.q-escl-item small { display: block; font-size: .84rem; }
.q-escl-item input:disabled + span { opacity: .65; }

@media (max-width: 400px) {
  .q-item { gap: 8px; padding: 10px 6px 10px 10px; }
  .q-item .session-meta { gap: 10px; }
  .q-item .btn { min-width: 0; padding: 8px 12px; }
  .q-more-btn { width: 36px; margin-left: -4px; }
  .q-item-nota { margin-left: 62px !important; }
}
