/* =================================================================
   Metodo — style.css
   Tema: dark forest
   ================================================================= */

/* ----------------------------------------------------------------
   Reset & Base
   ---------------------------------------------------------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Georgia', serif;
    background: #141d18;
    color: #ddeedd;
    min-height: 100vh;
    padding: 40px 20px;
}

/* Body centrato verticalmente (sessione.php, login.php) */
body.centered {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* ----------------------------------------------------------------
   Container
   ---------------------------------------------------------------- */
.container { max-width: 700px; margin: 0 auto; }

/* ----------------------------------------------------------------
   Tipografia
   ---------------------------------------------------------------- */
h1 { font-size: 1.4rem; color: #ddeedd; }
h2 { font-size: 1.4rem; color: #ddeedd; margin-bottom: 24px; line-height: 1.5; }

/* ----------------------------------------------------------------
   Navigazione (top-nav / header)
   ---------------------------------------------------------------- */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}
.top-nav h1 { font-size: 1.3rem; color: #ddeedd; }
.top-nav a { font-size: 0.85rem; color: #6db88a; text-decoration: none; }
.top-nav a:hover { text-decoration: underline; }

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    gap: 12px;
    flex-wrap: wrap;
}
header h1 { font-size: 1.4rem; color: #ddeedd; }
.header-right { display: flex; align-items: center; gap: 16px; }
.user-email { font-size: 0.8rem; color: #7a9e88; }
.logout-link { font-size: 0.8rem; color: #7a9e88; text-decoration: none; }
.logout-link:hover { color: #aac4b0; text-decoration: underline; }

/* ----------------------------------------------------------------
   Card (wrapper centrato — sessione.php, login.php)
   ---------------------------------------------------------------- */
.card {
    background: #1e2d24;
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}

/* ----------------------------------------------------------------
   Link "← Indietro"
   ---------------------------------------------------------------- */
.back { display: inline-block; margin-bottom: 24px; font-size: 0.85rem; color: #6db88a; text-decoration: none; }
.back:hover { text-decoration: underline; }

/* ----------------------------------------------------------------
   Area tag / badge
   ---------------------------------------------------------------- */
.area-tag {
    display: inline-block;
    background: #1e3228;
    border: 1px solid #2e4838;
    border-radius: 4px;
    padding: 1px 7px;
    font-size: 0.72rem;
    color: #6db88a;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 6px;
    vertical-align: middle;
}

/* ----------------------------------------------------------------
   Messaggi di stato
   ---------------------------------------------------------------- */
.error { color: #e07070; font-size: 0.9rem; margin-bottom: 16px; }

.notice { padding: 10px 16px; border-radius: 6px; font-size: 0.9rem; margin-bottom: 20px; }
.notice.ok    { background: #122018; border: 1px solid #2a4832; color: #58c870; }
.notice.error { background: #201414; border: 1px solid #4a2828; color: #e06868; }

/* ----------------------------------------------------------------
   Bottoni
   ---------------------------------------------------------------- */
.btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-primary { background: #6db88a; color: #0e1810; }
.btn-primary:hover { background: #5da87a; }
.btn-secondary { background: #1e3228; color: #aac4b0; }
.btn-secondary:hover { background: #2e4838; }
.btn-group { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 1rem;
    line-height: 1;
    color: #7a9e88;
    transition: color 0.15s, background 0.15s;
}
.btn-icon:hover { background: #1e3228; color: #6db88a; }
.btn-icon.del:hover { background: #201414; color: #e06868; }
.btn-icon:disabled { opacity: 0.3; cursor: default; }
.btn-icon:disabled:hover { background: none; color: #7a9e88; }

.nuova-btn {
    display: inline-block;
    padding: 10px 22px;
    background: #6db88a;
    color: #0e1810;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    text-decoration: none;
    transition: background 0.2s;
}
.nuova-btn:hover { background: #5da87a; }

.delete-btn {
    background: none;
    border: 1px solid #4a2828;
    color: #c47a7a;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.delete-btn:hover { background: #201414; border-color: #c47a7a; color: #e08080; }
.delete-form { margin-top: 14px; }
.delete-voglio-form { margin-top: 12px; }

/* ----------------------------------------------------------------
   Form
   ---------------------------------------------------------------- */
label {
    display: block;
    font-size: 0.82rem;
    color: #7a9e88;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    margin-top: 18px;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
textarea,
select {
    width: 100%;
    border: 1px solid #2e4838;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1rem;
    font-family: inherit;
    color: #ddeedd;
    background: #162019;
    transition: border-color 0.2s;
    resize: vertical;
}
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #6db88a;
    background: #1e2d24;
}
input[type="number"] { max-width: 100px; }
.scale-hint { font-size: 0.85rem; color: #7a9e88; margin-top: 6px; }

/* ----------------------------------------------------------------
   Selezione area (sessione step 1)
   ---------------------------------------------------------------- */
.area-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.area-btn { position: relative; }
.area-btn input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.area-btn label {
    display: block;
    padding: 14px 10px;
    border: 2px solid #2e4838;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    font-size: 0.95rem;
    font-family: inherit;
    color: #aac4b0;
    transition: border-color 0.15s, background 0.15s;
    background: #162019;
    user-select: none;
    margin-top: 0;
    text-transform: none;
    letter-spacing: 0;
}
.area-btn input[type="radio"]:checked + label {
    border-color: #6db88a;
    background: #1e3228;
    color: #ddeedd;
    font-weight: bold;
}
.area-btn label:hover { border-color: #6db88a; background: #1e3228; }

/* ----------------------------------------------------------------
   Triade mini (badge canali)
   ---------------------------------------------------------------- */
.triade-mini { display: flex; gap: 4px; flex-shrink: 0; }
.tm-item {
    font-size: 0.72rem;
    text-transform: uppercase;
    padding: 3px 7px;
    border-radius: 4px;
    white-space: nowrap;
}
.tm-item.has   { background: #1e3228; border: 1px solid #2e4838; color: #6db88a; }
.tm-item.maxed { background: #122018; border: 1px solid #2a4832; color: #58c870; }
.tm-item.none  { background: #162019; border: 1px solid #243c2e; color: #3a5848; }

/* ----------------------------------------------------------------
   Barra di progressione
   ---------------------------------------------------------------- */
.bar-bg { width: 80px; height: 5px; background: #243c2e; border-radius: 3px; overflow: hidden; }
.bar-fill { height: 100%; background: #6db88a; border-radius: 3px; }
.bar-fill.maxed { background: #4ab870; }

/* ----------------------------------------------------------------
   Punteggi (p-val)
   ---------------------------------------------------------------- */
.p-val { background: #1e3228; border: 1px solid #2e4838; border-radius: 4px; padding: 2px 8px; color: #6db88a; font-weight: bold; }
.p-val.final { background: #122018; border-color: #2a4832; color: #58c870; }

/* ----------------------------------------------------------------
   Blocco canale
   ---------------------------------------------------------------- */
.canale-block {
    border: 1px solid #243c2e;
    border-radius: 10px;
    margin-bottom: 16px;
    overflow: hidden;
}
.canale-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #182419;
    border-bottom: 1px solid #243c2e;
}
.canale-header h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: #6db88a; }
.canale-score { font-size: 0.8rem; color: #7a9e88; display: flex; align-items: center; gap: 8px; }
.canale-progression {
    padding: 8px 16px;
    border-bottom: 1px solid #1c2e22;
    font-size: 0.82rem;
    color: #7a9e88;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.ciclo-row { padding: 12px 16px; border-top: 1px solid #1c2e22; }
.ciclo-num { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; color: #5a7a68; margin-bottom: 8px; }
.ciclo-row dl { display: grid; grid-template-columns: 120px 1fr; gap: 6px 12px; font-size: 0.88rem; }
.ciclo-row dt { color: #7a9e88; }
.ciclo-row dd { color: #c8dfc8; line-height: 1.5; }

/* ----------------------------------------------------------------
   Stati vuoti
   ---------------------------------------------------------------- */
.empty     { text-align: center; color: #7a9e88; font-size: 0.95rem; margin-top: 60px; }
.empty a   { color: #6db88a; text-decoration: none; }
.empty a:hover { text-decoration: underline; }
.empty-msg { text-align: center; color: #7a9e88; font-size: 0.95rem; margin-top: 32px; }

/* ----------------------------------------------------------------
   Section title
   ---------------------------------------------------------------- */
.section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #5a7a68;
    margin-bottom: 12px;
    margin-top: 28px;
}

/* ----------------------------------------------------------------
   Footer / row azioni editor
   ---------------------------------------------------------------- */
.footer { display: flex; align-items: center; gap: 14px; margin-top: 20px; flex-wrap: wrap; }
.total-time { font-size: 0.85rem; color: #7a9e88; margin-left: auto; }
.total-time span { color: #6db88a; font-weight: bold; }

/* ================================================================
   PAGE: login.php
   ================================================================ */
.logo { font-size: 1.1rem; color: #6db88a; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 32px; text-align: center; }

.tabs { display: flex; gap: 0; margin-bottom: 28px; border-bottom: 2px solid #243c2e; }
.tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-size: 0.9rem;
    color: #5a7a68;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s;
}
.tab.active { color: #6db88a; border-bottom-color: #6db88a; font-weight: bold; }
.tab:hover  { color: #6db88a; }

/* ================================================================
   PAGE: index.php (lista voglio)
   ================================================================ */
.voglio-item {
    background: #1e2d24;
    border-radius: 10px;
    padding: 18px 22px;
    margin-bottom: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s;
}
.voglio-item:hover { box-shadow: 0 4px 18px rgba(0,0,0,0.6); }
.voglio-info .testo { font-size: 1rem; color: #ddeedd; margin-bottom: 4px; }
.voglio-info .meta  { font-size: 0.8rem; color: #7a9e88; }

/* ================================================================
   PAGE: voglio.php (dettaglio voglio)
   ================================================================ */
.voglio-header {
    background: #1e2d24;
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.voglio-testo {
    font-size: 1.3rem;
    color: #ddeedd;
    font-style: italic;
    border-left: 3px solid #6db88a;
    padding-left: 14px;
    margin-bottom: 16px;
    line-height: 1.5;
}
.voglio-meta { font-size: 0.8rem; color: #5a7a68; margin-bottom: 20px; }

.triade-summary { display: flex; gap: 10px; margin-bottom: 0; }
.triade-card { flex: 1; border-radius: 8px; padding: 12px 10px; text-align: center; }
.triade-card.has-data { background: #1e3228; border: 1px solid #2e4838; }
.triade-card.empty    { background: #162019; border: 1px solid #243c2e; }
.triade-card .label   { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; color: #7a9e88; margin-bottom: 6px; }
.triade-card .prog    { font-size: 0.8rem; color: #5a7a68; display: flex; align-items: center; justify-content: center; gap: 4px; flex-wrap: wrap; }
.triade-card .p-val   { color: #6db88a; font-weight: bold; }
.triade-card .p-val.final { color: #58c870; }
.triade-card .p-arr   { color: #3a5848; }
.triade-card .empty-msg { font-size: 0.8rem; color: #3a5848; }

.sessione-item {
    background: #1e2d24;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s;
}
.sessione-item:hover { box-shadow: 0 4px 18px rgba(0,0,0,0.6); }
.sessione-meta { font-size: 0.8rem; color: #7a9e88; margin-bottom: 4px; }

.chart-wrap { margin-top: 20px; overflow-x: auto; }
.chart-wrap svg { display: block; width: 100%; }
.chart-legend { display: flex; gap: 16px; margin-top: 8px; flex-wrap: wrap; }
.legend-item  { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: #7a9e88; }
.legend-dot   { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* ================================================================
   PAGE: sessione_detail.php
   ================================================================ */
.header-card {
    background: #1e2d24;
    border-radius: 10px;
    padding: 22px 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.oggetto-box {
    background: #1e3228;
    border-left: 3px solid #6db88a;
    padding: 12px 16px;
    margin-bottom: 28px;
    font-style: italic;
    color: #aac4b0;
}
.meta { font-size: 0.8rem; color: #5a7a68; }

.canale-block-detail {
    background: #1e2d24;
    border-radius: 10px;
    margin-bottom: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
    overflow: hidden;
}
.progression {
    padding: 8px 20px;
    border-bottom: 1px solid #1c2e22;
    font-size: 0.82rem;
    color: #7a9e88;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.ciclo-row-detail { padding: 14px 20px; border-top: 1px solid #1c2e22; }
.ciclo-row-detail .ciclo-num { margin-bottom: 10px; }
.ciclo-row-detail dl { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; }
.ciclo-row-detail dt { font-size: 0.85rem; color: #7a9e88; }
.ciclo-row-detail dd { font-size: 0.95rem; color: #c8dfc8; line-height: 1.5; }
.possibilita-bar { display: flex; align-items: center; gap: 10px; }

/* ================================================================
   PAGE: sessione.php (state machine)
   ================================================================ */
.top-nav-end { display: flex; justify-content: flex-end; margin-bottom: 24px; }

.triade-bar { display: flex; align-items: stretch; gap: 6px; margin-bottom: 28px; }
.triade-step {
    flex: 1;
    text-align: center;
    padding: 8px 6px 7px;
    border-radius: 6px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.4;
}
.triade-step.done    { background: #122018; color: #58c870; border: 1px solid #2a4832; }
.triade-step.active  { background: #1e3228; color: #6db88a; border: 2px solid #6db88a; font-weight: bold; }
.triade-step.pending { background: #162019; color: #3a5848; border: 1px solid #243c2e; }
.triade-step .score  { display: block; font-size: 0.9rem; font-weight: bold; letter-spacing: 0; margin-top: 2px; }
.triade-sep { color: #3a5848; font-size: 1rem; display: flex; align-items: center; }

.ciclo-badge { font-size: 12px; color: #7a9e88; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 24px; }

.score-progress { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.score-num { font-size: 1.6rem; font-weight: bold; color: #6db88a; }
.score-num.improved { color: #58c870; }
.score-arrow { color: #3a5848; font-size: 1.2rem; }

.saved-note { margin-top: 20px; font-size: 0.85rem; color: #7a9e88; text-align: center; }
.action-links { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.action-link { display: block; text-align: center; font-size: 0.9rem; color: #6db88a; text-decoration: none; }
.action-link:hover { text-decoration: underline; }
.action-link.muted { color: #7a9e88; }

/* Microfono */
.mic-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    padding: 6px 14px;
    border: 1px solid #2e4838;
    border-radius: 20px;
    background: #162019;
    color: #7a9e88;
    font-size: 0.82rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}
.mic-btn:hover   { border-color: #6db88a; color: #6db88a; background: #1e3228; }
.mic-btn.listening { border-color: #e05050; color: #e05050; background: #201414; animation: mic-active 1s ease-in-out infinite; }
.mic-btn.ready   { border-color: #6db88a; color: #6db88a; background: #1e3228; animation: mic-ready 1.5s ease-in-out infinite; }
.mic-btn.error   { border-color: #d38b58; color: #d38b58; background: #1e2414; }
.mic-status { margin-top: 6px; font-size: 0.82rem; color: #7a9e88; min-height: 1.2em; font-style: italic; }

@keyframes mic-active { 0%,100%{opacity:1} 50%{opacity:0.55} }
@keyframes mic-ready  { 0%,100%{box-shadow:0 0 0 0 rgba(109,184,138,0.4)} 50%{box-shadow:0 0 0 6px rgba(109,184,138,0)} }

/* Grounding */
.ground-station { display: none; text-align: center; padding: 10px 0 4px; }
.ground-station.active { display: block; }
.ground-pulse  { width: 88px; height: 88px; border-radius: 50%; background: #1e3228; border: 3px solid #6db88a; margin: 0 auto 20px; animation: gp-pulse 2.4s ease-in-out infinite; }
.ground-breath { width: 88px; height: 88px; border-radius: 50%; background: #1e3228; border: 3px solid #6db88a; margin: 0 auto 20px; animation: gp-breathe 5s ease-in-out infinite; }
.ground-label  { font-size: 1.5rem; font-weight: bold; color: #ddeedd; margin-bottom: 10px; }
.ground-hint   { color: #7a9e88; font-size: 0.92rem; line-height: 1.65; max-width: 340px; margin: 0 auto; }
.ground-timer  { height: 3px; background: #243c2e; border-radius: 2px; margin: 24px 0 0; overflow: hidden; }
.ground-timer-bar { height: 100%; width: 0%; background: #6db88a; border-radius: 2px; }
.ground-dots   { display: flex; justify-content: center; gap: 8px; margin: 20px 0 4px; }
.ground-dot    { width: 8px; height: 8px; border-radius: 50%; background: #243c2e; transition: background 0.4s; }
.ground-dot.active { background: #6db88a; }
.ground-dot.done   { background: #4a7060; }

.tracking-options { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.tracking-chip {
    border: 1px solid #2e4838;
    background: #162019;
    color: #7a9e88;
    border-radius: 18px;
    padding: 6px 10px;
    font-family: inherit;
    font-size: 0.86rem;
    cursor: pointer;
}
.tracking-chip:hover { border-color: #6db88a; color: #6db88a; background: #1e3228; }

.somatic-note { color: #7a9e88; font-size: 0.92rem; line-height: 1.6; margin-bottom: 16px; }
.closing-pulse { width: 96px; height: 96px; border-radius: 50%; background: #122018; border: 3px solid #4ab870; margin: 0 auto 22px; animation: gp-pulse 2.8s ease-in-out infinite; }

@keyframes gp-pulse {
    0%,100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(109,184,138,0.3); }
    50%     { transform: scale(1.12); box-shadow: 0 0 0 12px rgba(109,184,138,0); }
}
@keyframes gp-breathe {
    0%,100% { transform: scale(1); }
    35%,65% { transform: scale(1.45); box-shadow: 0 0 0 14px rgba(109,184,138,0.1); }
}

/* ================================================================
   PAGE: admin.php
   ================================================================ */
.menu-cards { display: grid; gap: 12px; margin-bottom: 32px; }
.menu-card {
    background: #1e2d24;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 18px 20px;
    gap: 16px;
    transition: box-shadow 0.15s;
}
.menu-card:hover { box-shadow: 0 4px 18px rgba(0,0,0,0.6); }
.card-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #1e3228;
    border: 1px solid #2e4838;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.card-text { flex: 1; }
.card-title { font-size: 1rem; color: #ddeedd; margin-bottom: 3px; }
.card-desc  { font-size: 0.82rem; color: #7a9e88; line-height: 1.5; }
.card-arrow { color: #3a5848; font-size: 1rem; }

.users-panel {
    background: #1e2d24;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
    overflow: hidden;
}
.users-summary {
    padding: 16px 20px;
    border-bottom: 1px solid #243c2e;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.users-summary strong { font-size: 1rem; color: #ddeedd; }
.users-summary span   { font-size: 0.82rem; color: #7a9e88; }

.users-table { width: 100%; border-collapse: collapse; }
.users-table th,
.users-table td { padding: 12px 20px; text-align: left; border-bottom: 1px solid #1c2e22; }
.users-table th { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 1.2px; color: #5a7a68; font-weight: normal; }
.users-table td { font-size: 0.88rem; color: #aac4b0; }
.users-table tr:last-child td { border-bottom: none; }

.role-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    background: #1e3228;
    border: 1px solid #2e4838;
    color: #6db88a;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.empty-users { padding: 24px 20px; color: #7a9e88; font-size: 0.9rem; text-align: center; }

@media (max-width: 620px) {
    .users-summary { align-items: flex-start; flex-direction: column; gap: 4px; }
    .users-table,
    .users-table tbody,
    .users-table tr,
    .users-table td { display: block; width: 100%; }
    .users-table thead { display: none; }
    .users-table tr { padding: 12px 20px; border-bottom: 1px solid #1c2e22; }
    .users-table tr:last-child { border-bottom: none; }
    .users-table td { padding: 3px 0; border-bottom: none; }
    .users-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 2px;
        font-size: 0.66rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: #5a7a68;
    }
}

/* ================================================================
   PAGE: ciclo-editor.php
   ================================================================ */
.step-card { background: #1e2d24; border-radius: 10px; box-shadow: 0 2px 12px rgba(0,0,0,0.4); margin-bottom: 16px; overflow: hidden; }
.step-header {
    background: #182419;
    padding: 10px 18px;
    border-bottom: 1px solid #243c2e;
    display: flex;
    align-items: center;
    gap: 10px;
}
.step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #6db88a;
    color: #0e1810;
    font-size: 0.72rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}
.step-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: #6db88a; }
.step-body { padding: 16px 18px; display: grid; gap: 12px; }
.timer-row { display: flex; align-items: center; gap: 10px; }
.timer-row span { font-size: 0.85rem; color: #7a9e88; }

/* ================================================================
   PAGE: grounding-editor.php
   ================================================================ */
table {
    width: 100%;
    border-collapse: collapse;
    background: #1e2d24;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
thead th {
    background: #182419;
    color: #6db88a;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 12px;
    text-align: left;
    font-weight: normal;
    border-bottom: 1px solid #243c2e;
}
thead th.center { text-align: center; }
tbody tr { border-bottom: 1px solid #1c2e22; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: #1e3228; }
td { padding: 10px 12px; vertical-align: top; color: #aac4b0; }
td.order   { width: 60px; text-align: center; vertical-align: middle; }
td.actions { width: 50px; text-align: center; vertical-align: middle; }
.col-label  { width: 140px; }
.col-tipo   { width: 110px; }
.col-durata { width: 80px; text-align: center; }

/* Modale preview grounding */
#preview-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(12,18,14,0.97);
    z-index: 100;
    align-items: center;
    justify-content: center;
}
#preview-modal.open { display: flex; }
.preview-card {
    background: #1e2d24;
    border-radius: 12px;
    padding: 40px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 4px 24px rgba(0,0,0,0.7);
    position: relative;
}
.preview-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #5a7a68;
    cursor: pointer;
    line-height: 1;
}
.preview-close:hover { color: #aac4b0; }
.preview-label { font-size: 1.5rem; font-weight: bold; color: #ddeedd; margin-bottom: 10px; text-align: center; }
.preview-hint  { color: #7a9e88; font-size: 0.92rem; line-height: 1.65; text-align: center; max-width: 340px; margin: 0 auto; }
.preview-anim  { width: 88px; height: 88px; border-radius: 50%; background: #1e3228; border: 3px solid #6db88a; margin: 0 auto 20px; }
.preview-anim.pulse  { animation: gp-pulse 2.4s ease-in-out infinite; }
.preview-anim.breath { animation: gp-breathe 5s ease-in-out infinite; }
.preview-timer { height: 3px; background: #243c2e; border-radius: 2px; margin: 24px 0 0; overflow: hidden; }
.preview-timer-bar { height: 100%; width: 0%; background: #6db88a; border-radius: 2px; }
.preview-dots { display: flex; justify-content: center; gap: 8px; margin: 18px 0 4px; flex-wrap: wrap; }
.preview-dot  { width: 8px; height: 8px; border-radius: 50%; background: #243c2e; transition: background 0.4s; }
.preview-dot.active { background: #6db88a; }
.preview-dot.done   { background: #4a7060; }
.preview-done { text-align: center; font-size: 1rem; color: #58c870; margin-top: 20px; display: none; }
