/* 0.31.0 · Αναίρεση/Επανάληψη, κεφαλίδα φακέλου, ημερολόγιο, λίστες θεμάτων και παρεμβάσεων, Πορεία στο κινητό */

/* ---- Αναίρεση / Επανάληψη ---- */
#therapy-flow header .hdr-undo{display:inline-flex;gap:4px;margin-right:6px}
#therapy-flow header .hdr-undo button{min-height:32px;min-width:34px;padding:2px 8px;border-radius:999px;border:1px solid var(--header-line);background:transparent;color:var(--navy-text);font-size:17px;line-height:1}
#therapy-flow header .hdr-undo button[aria-disabled=true]{opacity:.45;cursor:default}
#therapy-flow header .hdr-undo button:not([aria-disabled=true]):hover{color:#fff;border-color:var(--steel)}
.undo-toast{position:fixed;left:50%;bottom:52px;transform:translateX(-50%);z-index:9000;display:flex;align-items:center;gap:14px;background:var(--navy);color:#fff;padding:10px 14px 10px 18px;border-radius:12px;box-shadow:0 8px 28px #16283a40;max-width:calc(100% - 32px);font-size:15px}
.undo-toast[hidden]{display:none}
.undo-toast button{background:transparent;border:1px solid var(--steel);color:#fff;border-radius:8px;min-height:32px;padding:2px 12px}
html.m-mobile .undo-toast{bottom:96px}

/* ---- Ακυρώσεις και μεταφορές ---- */
.cancel-list summary{cursor:pointer;font-weight:600}
.cancel-list ul{list-style:none;margin:8px 0 4px;padding:0}
.cancel-list li{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:4px 0;border-top:1px solid var(--line-2)}
.cancel-list li:first-child{border-top:0}

/* ---- Κεφαλίδα φακέλου: χρώμα με εικονίδιο και κείμενο ---- */
#therapy-flow .heading .chip.chip-state.on{background:#e6f2ea;border-color:#b8d8c3;color:#24553a}
#therapy-flow .heading .chip.chip-state.off{background:var(--surface-2);color:var(--muted)}
#therapy-flow .heading .chip.chip-code{background:#eef1f3;border-color:#d7dde1;color:#3d4c53;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.03em}
#therapy-flow .heading .chip.chip-count{background:var(--blue-tint);border-color:var(--blue-soft);color:var(--blue-dark)}
#therapy-flow .heading .chip.chip-next{background:#fbf0e1;border-color:#ecd2a8;color:#6b4510}
#therapy-flow .heading .chip.chip-next.is-today{background:#f5dcb4;border-color:#d9a65a;color:#5a3608;font-weight:700}
.new-session-stack{display:inline-flex;flex-direction:column;align-items:flex-end;gap:2px}
.new-session-stack .session-config-link{font-size:13px;color:var(--muted);padding:2px 4px;min-height:auto;border:0;background:transparent}
.new-session-stack .session-config-link:hover{color:var(--blue)}

/* ---- Σημερινά ραντεβού: ακυρωμένα / διαγραμμένα ---- */
#therapy-flow .home29 .day-row.is-struck .who-line b,#therapy-flow .home29 .day-row.is-struck .t-start{text-decoration:line-through;color:var(--muted)}
#therapy-flow .hchip.muted{background:var(--surface-2);color:var(--muted)}
.tidy-row.ignored .tidy-title{color:var(--muted)}

/* ---- Θέματα & παρεμβάσεις ---- */
.tag-picker legend{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.tag-picker .tp-edit{font-size:13px;font-weight:400;color:var(--muted);padding:0;min-height:auto;border:0;background:transparent}
.tp-lab{font-size:12px;color:var(--muted);margin:10px 0 2px;text-transform:none}
.tp-group{border-top:1px solid var(--line-2);padding:4px 0}
.tp-group>summary{cursor:pointer;color:var(--muted);font-size:14px;padding:4px 0}
.tp-group[open]>summary{color:var(--ink);font-weight:600}
.tp-group.tp-couple>summary{color:#5a3f8a}
.tp-sub{font-size:12px;color:var(--muted);margin:8px 0 0}
.theme-suggestion.tp-star{border-color:var(--blue-soft)}
.theme-suggestion.tp-on{opacity:.55;cursor:default}
.carry-preview{margin:2px 0 0 28px;color:var(--muted)}
.carry-row input:disabled+*{color:var(--muted)}

/* ---- Σελίδα επεξεργασίας λιστών ---- */
.tag-editor{max-width:860px!important;width:calc(100% - 32px)}
.te-head{display:flex;justify-content:space-between;align-items:center}
.te-x{border:0;background:transparent;font-size:22px;min-height:auto}
.te-group{border:1px solid var(--line-2);border-radius:12px;padding:10px 12px;margin:10px 0}
.te-ghead{display:flex;gap:10px;align-items:center;margin-bottom:6px}
.te-gname{font-weight:600;max-width:320px}
.te-group ul{list-style:none;margin:0;padding:0}
.te-item{display:grid;grid-template-columns:minmax(140px,1.2fr) auto minmax(110px,.8fr) auto minmax(140px,1.6fr) auto auto;gap:6px;align-items:center;padding:4px 0;border-top:1px solid var(--line-2)}
.te-item:first-child{border-top:0}
.te-item.is-hidden .te-label{color:var(--muted);text-decoration:line-through}
.te-star,.te-hide{display:inline-flex;align-items:center;gap:3px;font-size:13px;white-space:nowrap}
.te-n{white-space:nowrap}
@media (max-width:760px){.te-item{grid-template-columns:1fr auto auto}.te-item .te-def,.te-item .te-move{grid-column:1/-1}}

/* ---- Μόνιμη σύνδεση με τη Google ---- */
.go-dialog{max-width:520px!important}
.go-ok{color:#24553a;font-weight:600}
.go-how ol{padding-left:20px;margin:6px 0}
.go-how li{margin:0 0 6px}

/* ---- Τοπικός βοηθός ---- */
.as-awake{color:var(--muted)}

/* ---- Στην ίδια καταγραφή ---- */
.ins-sentence{background:var(--blue-tint);border-radius:10px;padding:10px 12px;color:var(--blue-dark);margin:8px 0}
.ins-all{margin:4px 0 8px}
.ins-legend span{margin-right:10px;display:inline-block}

/* ---- Πορεία στο κινητό ---- */
.mtl-themes{margin:4px 0 8px}
.mtl-themes summary{cursor:pointer;font-weight:600}
.mtl-themes ul{list-style:none;margin:6px 0;padding:0}
.mtl-themes li button{all:unset;display:block;cursor:pointer;padding:6px 4px;border-bottom:1px solid var(--line-2);width:100%;box-sizing:border-box}
.mtl-themes li button[aria-pressed=true]{background:var(--blue-tint)}
.mtl-filter{margin:4px 0}
.mtl-list{list-style:none;margin:0;padding:0}
.mtl-row{display:grid;grid-template-columns:68px 18px minmax(0,1fr) auto;gap:6px;align-items:start;padding:8px 0;border-top:1px solid var(--line-2)}
.mtl-date{font-size:13px;color:var(--muted)}
.mtl-sym{color:var(--blue);text-align:center}
.mtl-row.is-turning .mtl-sym{color:#a26b14}
.mtl-c .mtl-main{color:var(--muted)}
.mtl-main .tl-chips{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}
.mtl-phase{margin:12px 0 2px;padding:6px 8px;background:var(--surface);border-radius:8px;color:var(--blue-dark)}
html.m-mobile .pv-path{padding-left:0}
html.m-mobile .pv-path::before,html.m-mobile .pv-dot{display:none}
html.m-mobile .pv-card{padding:10px 12px;border-radius:10px}
html.m-mobile .pv-card.pv-current{box-shadow:none}
html.m-mobile .pv-card h4{font-size:15px}
html.m-mobile .pv-row{grid-template-columns:1fr;gap:0;font-size:15px}
html.m-mobile .pv-row b{font-size:13px}
html.m-mobile .pv-now{border:0;padding:0;background:none}
html.m-mobile .pv-now h5{text-transform:none;letter-spacing:0;font-size:15px}
html.m-mobile .pv-step{margin:0 0 10px}
html.m-mobile .pv-collapsed .pv-card>*:not(.pv-head){display:none}
html.m-mobile .pv-step:not(.pv-bridge):not(.pv-start):not(.is-current) .pv-head{cursor:pointer}
html.m-mobile .pv-step:not(.pv-bridge):not(.pv-start):not(.is-current) .pv-head h4::after{content:' ▾';color:var(--muted);font-weight:400}
html.m-mobile .pv-step:not(.pv-collapsed):not(.pv-bridge):not(.pv-start):not(.is-current) .pv-head h4::after{content:' ▴'}
html.m-mobile .pv-legend-wrap summary{cursor:pointer;color:var(--muted);font-size:14px}
html.m-mobile .pv-missing{color:var(--muted);margin:6px 0 0}
.m-ctx:not(:empty)+.m-save:not(:empty)::before{content:' · '}

/* ---- Αρχική: εορτολόγιο, φράση, σαν σήμερα ---- */
.day-info{position:relative;margin:8px 0 0;padding:10px 40px 10px 14px;background:var(--surface);border-radius:12px;max-width:760px}
.di-fest{list-style:none;margin:0 0 6px;padding:0;font-size:15px}
.di-fest li{margin:2px 0}
.di-tag{display:inline-block;font-size:12px;padding:1px 8px;border-radius:999px;background:var(--blue-tint);color:var(--blue-dark);margin-right:4px}
.di-quote{margin:6px 0;padding:0 0 0 12px;border-left:3px solid var(--blue-soft);font-family:var(--notes);font-size:16px;color:var(--ink)}
.di-quote cite{font-style:normal;color:var(--muted);font-size:14px;white-space:nowrap}
.di-otd{margin-top:6px}
.di-otd summary{cursor:pointer;color:var(--blue-dark);font-weight:600;font-size:14px}
.di-otd ul{margin:6px 0 0;padding-left:18px;font-size:14px}
.di-otd li{margin:0 0 4px}
.di-set{position:absolute;top:6px;right:8px;font-size:16px;color:var(--muted);border:0;background:transparent;min-height:auto;padding:4px}

/* ---- Αρχική: ενότητες ως κάρτες ---- */
#therapy-flow .home-nav.nav31{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;margin:18px 0 12px;background:none;padding:0;border:0}
#therapy-flow .home-nav.nav31 .nav-tile{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;text-align:left;padding:14px 16px;border:1px solid var(--line-2);border-radius:12px;background:var(--white);color:var(--ink);min-height:72px;box-shadow:none;width:auto}
#therapy-flow .home-nav.nav31 .nav-tile:hover{border-color:var(--blue-soft);background:var(--surface)}
#therapy-flow .home-nav.nav31 .nav-tile svg{color:var(--blue)}
#therapy-flow .home-nav.nav31 .nav-t{display:flex;flex-direction:column;gap:2px;min-width:0}
#therapy-flow .home-nav.nav31 .nav-t b{font-size:16px;font-weight:600}
#therapy-flow .home-nav.nav31 .nav-t .small{color:var(--muted);white-space:normal}
#therapy-flow .home-nav.nav31 .nav-go{color:var(--muted);font-size:20px}
html.m-mobile #therapy-flow .home-nav.nav31{grid-template-columns:1fr}
.mtl-main .tl-chip{border-radius:8px;white-space:normal;display:inline-block}
/* 0.32.0 · φράση με πρωτότυπο και πηγή · «Οι φράσεις μου» */
.di-quote>span:first-child{display:block}
.di-orig{display:block;font-style:italic;color:var(--muted);font-size:14px;margin-top:2px}
.di-quote cite{display:block;white-space:normal;margin-top:2px}
.di-mine-dialog{max-width:680px;width:calc(100vw - 32px)}
.di-mine-dialog textarea,.di-mine-dialog input{width:100%;box-sizing:border-box}
.di-m-list{list-style:none;padding:0;margin:6px 0 12px;max-height:40vh;overflow:auto}
.di-m-list li{display:flex;gap:10px;justify-content:space-between;align-items:flex-start;padding:6px 0;border-bottom:1px solid var(--line,#e5e5e5)}
.di-m-text{flex:1;min-width:0}
.di-m-btns{display:flex;gap:8px;flex-shrink:0;align-items:center}
.di-m-bank summary{cursor:pointer;font-weight:600;color:var(--blue-dark)}
