/* ═══ Card sblocco livello (mockup-sblocco-livello-v2, 11 giu 2026) ═══
   SOLO STUDENTI: appare una volta sola alla prima apertura dopo che il coach
   approva una diagnosi che supera un livello. Palette = variabili :root del tool.
   Scoped .sk-* — render in js/sblocco.js */

.sk-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.78); z-index: 9998; display: flex; align-items: center; justify-content: center; padding: 1rem; overflow-y: auto; }

.sk-card { width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; background: linear-gradient(160deg, #14201a 0%, var(--card) 60%); border: 1px solid rgba(34,197,94,.25); border-radius: 18px; padding: 2rem; position: relative; }
.sk-card::before { content: ''; position: absolute; top: -40px; left: -40px; width: 200px; height: 200px; background: radial-gradient(circle, rgba(34,197,94,.07) 0%, transparent 70%); pointer-events: none; }

.sk-header { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.sk-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(34,197,94,.08); border: 1px solid rgba(34,197,94,.25); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--green); font-size: 1.2rem; font-weight: 700; }
.sk-kicker { font-size: .67rem; text-transform: uppercase; letter-spacing: .1em; color: var(--green); margin-bottom: .3rem; font-weight: 700; }
.sk-title { font-size: 1.2rem; font-weight: 700; line-height: 1.3; }
.sk-sub { font-size: .78rem; color: var(--muted); margin-top: .2rem; }

/* score prima/dopo */
.sk-score { display: flex; align-items: center; gap: 1rem; background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 1rem 1.2rem; margin-bottom: 1.2rem; }
.sk-score-block { display: flex; flex-direction: column; align-items: center; gap: .2rem; flex: 1; }
.sk-score-num { font-size: 2rem; font-weight: 600; line-height: 1; }
.sk-score-num.old { color: #6e6a8a; }
.sk-score-num.new { color: var(--green); }
.sk-score-date { font-size: .67rem; color: #6e6a8a; }
.sk-arrow { display: flex; flex-direction: column; align-items: center; gap: .2rem; color: var(--green); font-size: 1.2rem; }
.sk-delta { font-size: .75rem; color: var(--green); font-weight: 600; }

/* nota coach */
.sk-note { background: rgba(153,10,63,.10); border: 1px solid rgba(153,10,63,.32); border-radius: 10px; padding: .9rem 1rem; margin-bottom: 1.2rem; }
.sk-note-label { font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; color: #d46c8a; margin-bottom: .4rem; font-weight: 700; }
.sk-note-text { font-size: .82rem; color: var(--text2); line-height: 1.65; font-style: italic; }

/* separatore */
.sk-sep { font-size: .63rem; text-transform: uppercase; letter-spacing: .1em; color: #6e6a8a; display: flex; align-items: center; gap: .6rem; margin: 1.2rem 0 1rem; }
.sk-sep::before, .sk-sep::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* best post (solo con dati PostForMe) */
.sk-post { background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-bottom: 1.2rem; }
.sk-post-head { display: flex; align-items: center; justify-content: space-between; padding: .8rem 1rem; border-bottom: 1px solid var(--border); }
.sk-post-title { font-size: .78rem; font-weight: 600; }
.sk-post-pfm { font-size: .62rem; color: #6e6a8a; display: flex; align-items: center; gap: .3rem; }
.sk-post-pfm .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.sk-post-body { padding: .9rem 1rem; display: flex; flex-direction: column; gap: .5rem; }
.sk-post-text { font-size: .75rem; color: var(--muted); line-height: 1.55; font-style: italic; }
.sk-metrics { display: flex; gap: .5rem; flex-wrap: wrap; }
.sk-metric { display: flex; flex-direction: column; align-items: center; background: var(--card); border: 1px solid var(--border); border-radius: 6px; padding: .3rem .6rem; min-width: 48px; }
.sk-metric-val { font-size: .82rem; font-weight: 600; color: var(--green); line-height: 1.2; }
.sk-metric-key { font-size: .6rem; color: #6e6a8a; text-transform: uppercase; letter-spacing: .06em; }
.sk-post-why { padding: .7rem 1rem; border-top: 1px solid var(--border); background: rgba(153,10,63,.04); }
.sk-post-why-label { font-size: .63rem; text-transform: uppercase; letter-spacing: .08em; color: #d46c8a; margin-bottom: .3rem; font-weight: 700; }
.sk-post-why-text { font-size: .75rem; color: var(--muted); line-height: 1.6; }

/* previsione prossimo livello */
.sk-forecast { background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 1rem 1.1rem; margin-bottom: 1.2rem; }
.sk-forecast-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .7rem; gap: .5rem; flex-wrap: wrap; }
.sk-forecast-title { font-size: .78rem; font-weight: 600; }
.sk-forecast-badge { font-size: .65rem; color: var(--yellow); background: rgba(234,179,8,.08); border: 1px solid rgba(234,179,8,.2); border-radius: 20px; padding: .15rem .5rem; white-space: nowrap; }
.sk-timeline { display: flex; align-items: center; margin-bottom: .7rem; }
.sk-tnode { display: flex; flex-direction: column; align-items: center; gap: .3rem; flex-shrink: 0; z-index: 1; }
.sk-tdot { width: 10px; height: 10px; border-radius: 50%; }
.sk-tdot.now { background: var(--green); box-shadow: 0 0 6px rgba(34,197,94,.4); }
.sk-tdot.mid { background: #6e6a8a; }
.sk-tdot.target { background: var(--brand); box-shadow: 0 0 6px rgba(153,10,63,.4); }
.sk-tlabel { font-size: .63rem; color: #6e6a8a; white-space: nowrap; }
.sk-tlabel.now { color: var(--green); }
.sk-tlabel.target { color: var(--yellow); }
.sk-tline { flex: 1; height: 1px; margin-bottom: 1.1rem; }
.sk-tline.solid { background: var(--green); }
.sk-tline.dashed { background: repeating-linear-gradient(90deg, #6e6a8a 0px, #6e6a8a 4px, transparent 4px, transparent 8px); }
.sk-forecast-cond { font-size: .75rem; color: var(--muted); line-height: 1.55; padding-top: .3rem; border-top: 1px solid var(--border); }
.sk-forecast-cond b { color: var(--text); font-weight: 600; }

/* prossimo step + azioni */
.sk-next { display: flex; align-items: center; gap: .8rem; background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: .8rem 1rem; margin-bottom: 1.5rem; }
.sk-next-icon { width: 32px; height: 32px; border-radius: 8px; background: rgba(153,10,63,.10); border: 1px solid rgba(153,10,63,.32); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #d46c8a; font-weight: 700; }
.sk-next-text { flex: 1; font-size: .8rem; color: var(--muted); line-height: 1.5; }
.sk-next-text b { color: var(--text); font-weight: 600; }
.sk-actions { display: flex; gap: .6rem; }
.sk-btn { flex: 1; background: var(--brand); color: #fff; border: none; border-radius: 8px; padding: .65rem 1.2rem; font-size: .82rem; font-weight: 600; cursor: pointer; font-family: inherit; }
.sk-btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--border2); border-radius: 8px; padding: .65rem 1rem; font-size: .82rem; cursor: pointer; font-family: inherit; white-space: nowrap; }
