:root{--navy:#12304a;--ink:#183044;--muted:#667887;--paper:#fff;--bg:#f4f7fa;--line:#dce6ec;--coral:#ef7f78;--coral2:#ff9c8d;--aqua:#63d4c3;--yellow:#ffd36e;--blue:#e9f5fb;--shadow:0 18px 50px rgba(18,48,74,.11);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;min-width:320px;background:linear-gradient(135deg,#fdf7f2 0,#f4fbfa 55%,#f1f5fb 100%);min-height:100vh}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:inherit}.hidden{display:none!important}
.login-shell{min-height:100vh;display:grid;grid-template-columns:1.05fr .95fr}.login-brand{padding:clamp(32px,6vw,88px);display:flex;flex-direction:column;justify-content:space-between;background:var(--navy);color:#fff;position:relative;overflow:hidden}.login-brand:before,.login-brand:after{content:"";position:absolute;border-radius:50%;filter:blur(1px)}.login-brand:before{width:320px;height:320px;background:rgba(99,212,195,.17);right:-90px;top:-70px}.login-brand:after{width:260px;height:260px;border:60px solid rgba(239,127,120,.15);left:-130px;bottom:-120px}.brand{display:flex;align-items:center;gap:13px;position:relative;z-index:1}.brand-mark{width:48px;height:48px;border-radius:16px;background:linear-gradient(145deg,var(--aqua),#fff);display:grid;place-items:center;color:var(--navy);font-weight:1000;font-size:25px;box-shadow:0 8px 24px #0002}.brand b{font-size:1.12rem;display:block}.brand small{opacity:.72}.login-copy{position:relative;z-index:1;max-width:560px}.eyebrow{text-transform:uppercase;letter-spacing:.14em;font-size:.75rem;font-weight:900;color:var(--coral)}.login-brand .eyebrow{color:var(--yellow)}.login-copy h1{font-size:clamp(2.4rem,5vw,5.4rem);line-height:.94;letter-spacing:-.055em;margin:.5rem 0 1.25rem}.login-copy p{font-size:1.05rem;line-height:1.65;max-width:48ch;color:#dce9f0}.privacy-note{font-size:.78rem;color:#b9cad5;position:relative;z-index:1}.login-panel{display:grid;place-items:center;padding:32px}.login-card{width:min(100%,470px);background:#fff;border:1px solid rgba(18,48,74,.08);border-radius:30px;padding:clamp(24px,5vw,46px);box-shadow:var(--shadow)}.login-card h2{font-size:2rem;letter-spacing:-.04em;margin:.35rem 0 .4rem}.login-card>p{color:var(--muted);line-height:1.5;margin:0 0 28px}.field{display:grid;gap:7px;margin:0 0 16px}.field label{font-weight:800;font-size:.9rem}.field input,.field select,.field textarea{width:100%;border:1px solid var(--line);background:#f9fbfc;border-radius:14px;padding:13px 14px;color:var(--ink);outline:none}.field textarea{min-height:100px;resize:vertical}.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--aqua);box-shadow:0 0 0 4px rgba(99,212,195,.16)}.primary,.secondary,.ghost,.danger{border:0;border-radius:14px;padding:12px 16px;font-weight:900}.primary{color:#fff;background:linear-gradient(135deg,var(--coral),var(--coral2));box-shadow:0 8px 18px rgba(239,127,120,.23)}.secondary{color:var(--navy);background:#e7f8f5}.ghost{color:var(--navy);background:#eef3f6}.danger{color:#9c2931;background:#ffedef}.wide{width:100%;padding:15px}.demo-box{margin-top:22px;padding:17px;border-radius:18px;background:#f4f8fa;border:1px dashed #b9cbd5}.demo-box p{font-size:.82rem;margin:0 0 10px;color:var(--muted)}.demo-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.demo-role{border:1px solid var(--line);background:#fff;border-radius:12px;padding:10px 6px;font-size:.77rem;font-weight:850;color:var(--navy)}
.app-shell{min-height:100vh;display:grid;grid-template-columns:250px 1fr}.sidebar{background:var(--navy);color:#fff;padding:24px 18px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.sidebar .brand{padding:0 8px 24px}.user-card{background:#ffffff12;border:1px solid #ffffff18;border-radius:17px;padding:14px;margin:5px 0 22px}.user-card b{display:block}.user-card span{font-size:.8rem;color:#bfd0db}.nav{display:grid;gap:7px}.nav button{display:flex;align-items:center;gap:11px;border:0;background:transparent;color:#d5e3ea;border-radius:12px;padding:12px 13px;text-align:left;font-weight:750}.nav button.active,.nav button:hover{background:#fff;color:var(--navy)}.nav-icon{width:22px;text-align:center}.sidebar-bottom{margin-top:auto}.sidebar-bottom button{width:100%}.content{min-width:0}.topbar{padding:22px clamp(18px,4vw,54px);display:flex;align-items:center;justify-content:space-between;gap:18px;background:#ffffffc9;backdrop-filter:blur(18px);border-bottom:1px solid #ffffff;position:sticky;top:0;z-index:5}.topbar h1{font-size:1.15rem;margin:0}.topbar p{font-size:.8rem;color:var(--muted);margin:2px 0 0}.status{display:flex;align-items:center;gap:8px;background:#e8f8f4;color:#166153;border-radius:999px;padding:8px 12px;font-size:.78rem;font-weight:850}.status:before{content:"";width:8px;height:8px;border-radius:50%;background:#36a684}.page{padding:clamp(20px,4vw,52px);max-width:1400px;margin:auto}.hello{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:28px}.hello h2{font-size:clamp(2rem,4vw,3.8rem);letter-spacing:-.055em;margin:.25rem 0}.hello p{color:var(--muted);margin:0}.date-pill{background:#fff;border:1px solid var(--line);border-radius:17px;padding:12px 16px;font-weight:800;white-space:nowrap}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:24px}.stat{background:#fff;border:1px solid #e9eef2;border-radius:22px;padding:20px;box-shadow:0 10px 30px #12304a0a}.stat strong{display:block;font-size:2rem;letter-spacing:-.04em}.stat span{color:var(--muted);font-size:.82rem}.stat.coral{background:linear-gradient(145deg,#fff5f2,#fff);border-color:#ffdcd6}.stat.aqua{background:linear-gradient(145deg,#e9fbf7,#fff);border-color:#c8eee7}.grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(290px,.75fr);gap:22px}.panel{background:#fff;border:1px solid #e8eef2;border-radius:24px;padding:22px;box-shadow:0 12px 32px #12304a0a;min-width:0}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:17px}.panel-head h3{margin:0;font-size:1.05rem}.panel-head button{font-size:.78rem}.list{display:grid;gap:10px}.appointment{display:grid;grid-template-columns:68px minmax(0,1fr) auto;align-items:center;gap:14px;padding:13px;border-radius:17px;background:#f7fafb;border:1px solid #edf2f4}.time{font-size:.9rem;font-weight:950;color:var(--navy)}.appointment b{display:block}.appointment small{display:block;color:var(--muted);margin-top:3px}.badge{display:inline-flex;align-items:center;border-radius:999px;padding:6px 9px;font-size:.7rem;font-weight:900;background:#e6f8f4;color:#17695a}.badge.wait{background:#fff4d7;color:#7d5b00}.badge.done{background:#edf1f4;color:#52616c}.empty{padding:24px;text-align:center;color:var(--muted);background:#f8fafb;border-radius:17px}.message{padding:14px 0;border-bottom:1px solid #edf1f4}.message:last-child{border-bottom:0}.message b{font-size:.87rem}.message p{margin:5px 0;color:var(--ink);line-height:1.45}.message small{color:var(--muted)}.quick-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.quick{border:1px solid var(--line);background:#fff;border-radius:17px;padding:16px;text-align:left;color:var(--navy);font-weight:900}.quick span{display:block;font-size:1.35rem;margin-bottom:10px}.section-title{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:18px}.section-title h2{font-size:2rem;letter-spacing:-.045em;margin:0}.section-title p{margin:.3rem 0 0;color:var(--muted)}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.person-card,.therapy-card{background:#fff;border:1px solid #e7edf1;border-radius:22px;padding:19px}.avatar{width:48px;height:48px;border-radius:16px;background:linear-gradient(145deg,var(--aqua),#dff7f3);display:grid;place-items:center;font-weight:950;color:var(--navy);margin-bottom:15px}.person-card h3,.therapy-card h3{margin:0 0 5px}.person-card p,.therapy-card p{color:var(--muted);line-height:1.5;margin:.4rem 0}.progress{height:9px;background:#edf2f4;border-radius:99px;overflow:hidden;margin:15px 0 7px}.progress i{display:block;height:100%;background:linear-gradient(90deg,var(--aqua),#4eb9d3);border-radius:inherit}.calendar-list{display:grid;gap:12px}.day-row{display:grid;grid-template-columns:74px 1fr;gap:14px}.day-label{font-weight:900;color:var(--navy);padding-top:14px}.day-events{display:grid;gap:8px}.event{background:#fff;border-left:5px solid var(--aqua);border-radius:14px;padding:13px 15px;box-shadow:0 8px 22px #12304a0a}.event.coral{border-left-color:var(--coral)}.event b{display:block}.event small{color:var(--muted)}.chat{display:grid;grid-template-rows:1fr auto;min-height:520px}.chat-feed{display:grid;align-content:start;gap:12px;overflow:auto}.bubble{max-width:78%;background:#fff;border:1px solid var(--line);padding:12px 14px;border-radius:16px 16px 16px 4px}.bubble.mine{justify-self:end;background:#e8f8f4;border-color:#c9eee7;border-radius:16px 16px 4px 16px}.bubble b{font-size:.76rem}.bubble p{margin:4px 0;line-height:1.45}.bubble small{color:var(--muted)}.composer{display:grid;grid-template-columns:1fr auto;gap:10px;margin-top:18px}.composer input{border:1px solid var(--line);border-radius:14px;padding:13px}.modal-backdrop{position:fixed;inset:0;background:#12304a88;z-index:30;display:grid;place-items:center;padding:20px}.modal{width:min(100%,540px);max-height:90vh;overflow:auto;background:#fff;border-radius:26px;padding:24px;box-shadow:0 30px 80px #0003}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.modal-head h2{margin:0}.close{border:0;background:#eef3f5;border-radius:50%;width:38px;height:38px;font-size:1.2rem}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.toast{position:fixed;right:20px;bottom:20px;background:var(--navy);color:#fff;padding:13px 17px;border-radius:14px;box-shadow:var(--shadow);z-index:50;transform:translateY(120px);opacity:0;transition:.25s}.toast.show{transform:translateY(0);opacity:1}.mobile-nav{display:none}.install-btn{display:none}
@media(max-width:980px){.stats{grid-template-columns:repeat(2,1fr)}.cards{grid-template-columns:repeat(2,1fr)}.grid{grid-template-columns:1fr}.login-shell{grid-template-columns:1fr}.login-brand{min-height:340px}.privacy-note{display:none}}
@media(max-width:720px){body{padding-bottom:76px}.login-shell{display:block}.login-brand{min-height:auto;padding:30px 24px}.login-copy h1{font-size:2.7rem}.login-copy p{font-size:.95rem}.login-panel{padding:18px}.login-card{border-radius:24px;padding:25px}.demo-actions{grid-template-columns:1fr}.app-shell{display:block}.sidebar{display:none}.topbar{padding:15px 18px;top:0}.topbar h1{font-size:1rem}.status{padding:7px 9px}.page{padding:22px 16px}.hello{display:block}.hello h2{font-size:2.35rem}.date-pill{display:inline-block;margin-top:15px}.stats{grid-template-columns:1fr 1fr;gap:10px}.stat{padding:16px}.stat strong{font-size:1.65rem}.cards{grid-template-columns:1fr}.panel{padding:17px;border-radius:20px}.appointment{grid-template-columns:58px minmax(0,1fr);gap:10px}.appointment .badge{grid-column:2;justify-self:start}.quick-actions{grid-template-columns:1fr 1fr}.section-title{display:block}.section-title button{margin-top:12px}.day-row{grid-template-columns:58px 1fr}.chat{min-height:calc(100vh - 230px)}.mobile-nav{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;z-index:20;left:0;right:0;bottom:0;padding:8px 7px calc(8px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--line);box-shadow:0 -10px 30px #12304a12}.mobile-nav button{border:0;background:transparent;color:var(--muted);font-size:.66rem;font-weight:800;padding:5px 2px}.mobile-nav button span{display:block;font-size:1.2rem;margin-bottom:2px}.mobile-nav button.active{color:var(--coral)}.install-btn{display:inline-flex}.bubble{max-width:90%}.composer{grid-template-columns:1fr}.composer button{width:100%}}
@media(max-width:390px){.stats{grid-template-columns:1fr}.quick-actions{grid-template-columns:1fr}.login-copy h1{font-size:2.35rem}.topbar p{display:none}}
@media(display-mode:standalone){.install-btn{display:none!important}}
.compact{padding:7px 10px!important;border-radius:10px!important;font-size:.74rem}.row-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:13px}.card-title{margin-top:14px!important}.text-danger{display:block;border:0;background:transparent;color:#a53a42;font-weight:800;font-size:.7rem;margin:8px 0 0 auto;padding:0}.settings-grid{display:grid;grid-template-columns:1fr 1.35fr;gap:18px}.wide-panel{grid-column:1/-1}.admin-list{display:grid;gap:9px}.admin-list article{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:12px;padding:12px;border:1px solid var(--line);border-radius:15px;background:#f9fbfc}.admin-list b,.admin-list small{display:block}.admin-list small{color:var(--muted);margin-top:3px}.person-card>small{display:block;color:var(--muted);margin:4px 0 12px;overflow-wrap:anywhere}
@media(max-width:980px){.settings-grid{grid-template-columns:1fr}.wide-panel{grid-column:auto}}
@media(max-width:720px){.mobile-nav{overflow-x:auto}.mobile-nav.six{grid-template-columns:repeat(6,minmax(62px,1fr))}.mobile-nav.six button{font-size:.6rem}.admin-list article{grid-template-columns:1fr auto}.admin-list .row-actions{grid-column:1/-1;margin-top:0}}
.composer{grid-template-columns:minmax(0,1fr) auto auto}.voice-button{border:0;width:46px;border-radius:14px;background:#e7f8f5;color:var(--navy);font-size:1.15rem}.voice-button.recording{background:#ffedef;color:#a52d38;animation:pulse 1s infinite}.recording-status{grid-column:1/-1;color:#a52d38;font-size:.8rem}.voice-message{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:8px 0}.voice-message audio{max-width:100%;height:38px}.team-event p{margin:.45rem 0;color:var(--muted)}@keyframes pulse{50%{box-shadow:0 0 0 7px rgba(239,127,120,.18)}}
@media(max-width:720px){.mobile-nav.six{grid-template-columns:repeat(7,minmax(62px,1fr))}.composer{grid-template-columns:minmax(0,1fr) auto}.composer .primary{grid-column:1/-1;width:100%}.voice-button{width:46px}.recording-status{grid-column:1/-1}}
.login-switch{display:grid;grid-template-columns:1fr 1fr;gap:6px;background:#eef3f6;padding:5px;border-radius:15px;margin:18px 0}.login-switch button{border:0;background:transparent;border-radius:11px;padding:10px;font-weight:900;color:var(--muted)}.login-switch button.active{background:#fff;color:var(--navy);box-shadow:0 4px 12px #12304a12}.credentials-box{display:grid;gap:5px;padding:18px;border-radius:18px;background:#e8f8f4;border:1px solid #c9eee7;margin:18px 0}.credentials-box span{font-size:.75rem;color:var(--muted);margin-top:8px}.credentials-box b{font-size:1.1rem;overflow-wrap:anywhere}

/* ===== A Piccoli Passi 2026 UI refresh ===== */
:root{--app-pink:#f36f91;--app-pink-soft:#fff0f4;--app-blue:#70c8ef;--app-blue-soft:#eef9ff;--app-green:#68cda4;--app-green-soft:#effbf6;--app-yellow:#efc75d;--app-yellow-soft:#fff8df;--app-purple:#a58ae9;--app-purple-soft:#f5f0ff;--app-ink:#25243a;--app-muted:#7f8296}
body{background:#f8f9fc;color:var(--app-ink)}
.modern-shell{grid-template-columns:270px 1fr;background:#f8f9fc}.modern-sidebar{background:#fff;color:var(--app-ink);border-right:1px solid #eef0f5;padding:14px 14px 20px;box-shadow:8px 0 30px rgba(31,36,66,.035)}
.studio-logo-wrap{height:175px;border-radius:24px;background:#fff;display:grid;place-items:center;overflow:hidden;margin-bottom:12px}.studio-logo{width:100%;height:100%;object-fit:contain;padding:8px 2px}
.modern-nav{gap:6px}.modern-nav button{color:#44465b;padding:12px 14px;font-weight:700;position:relative}.modern-nav button:hover,.modern-nav button.active{background:#fff0f4;color:#c63d61}.modern-nav button.active{box-shadow:inset 3px 0 0 var(--app-pink)}.modern-nav .nav-icon{font-size:1.18rem;color:#68738b}.modern-nav button.active .nav-icon{color:#d64268}.nav-count{margin-left:auto;background:#ef6d8e;color:#fff;border-radius:999px;min-width:22px;height:22px;display:grid;place-items:center;font-size:.7rem}
.sidebar-quote{margin-top:auto;border-radius:22px;background:linear-gradient(145deg,#fff7f3,#f7fbff);padding:16px 18px;color:#7f8296;position:relative;overflow:hidden}.sidebar-quote:before{content:"";position:absolute;width:160px;height:28px;left:-25px;bottom:4px;transform:rotate(-8deg);background:linear-gradient(90deg,#f7a29b,#f6d46f,#9fe1b4,#9fdcec,#cbb9ee);opacity:.45;filter:blur(1px)}.sidebar-quote span{font-size:1.4rem;color:#ef8da4}.sidebar-quote p{position:relative;margin:6px 0 0;font:italic 600 .88rem/1.45 Georgia,serif}.modern-sidebar .sidebar-bottom{margin-top:10px}.modern-sidebar .sidebar-bottom .ghost{background:#f7f7fa;color:#5e6174}
.modern-content{background:#f8f9fc}.modern-topbar{background:#fbfbfded;border-bottom:1px solid #eef0f4;padding:14px 28px;min-height:74px}.global-search{width:min(560px,55vw);display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #eceef4;border-radius:18px;padding:0 16px;box-shadow:0 8px 24px rgba(37,36,58,.035)}.global-search span{font-size:1.35rem;color:#8990a5}.global-search input{border:0;outline:0;background:transparent;width:100%;height:44px;color:#404256}.topbar-user{display:flex;align-items:center;gap:10px}.icon-button{width:42px;height:42px;border:0;background:#fff;border-radius:14px;position:relative;color:#646a7f;font-size:1.2rem}.icon-button i{position:absolute;width:8px;height:8px;border-radius:50%;background:#ed6483;top:8px;right:8px}.profile-dot{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#ffdce3;color:#7a3749;font-weight:900}.profile-copy{display:grid;line-height:1.2}.profile-copy b{font-size:.9rem}.profile-copy small{color:#9295a4;margin-top:4px}
.calendar-page{padding:20px 26px 30px;max-width:1600px;margin:auto}.quick-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:18px}.quick-card{border:0;border-radius:18px;padding:16px 18px;display:grid;grid-template-columns:46px 1fr auto;align-items:center;gap:14px;text-align:left;box-shadow:0 10px 25px rgba(39,42,70,.04)}.quick-card.pink{background:linear-gradient(110deg,#ffe4ec,#fff4f7)}.quick-card.green{background:linear-gradient(110deg,#e4f8ef,#f4fcf8)}.quick-card.purple{background:linear-gradient(110deg,#eee7ff,#f8f5ff)}.quick-card>span{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;color:#fff;font-size:1.45rem}.quick-card.pink>span{background:#e54f76}.quick-card.green>span{background:#54b98f}.quick-card.purple>span{background:#9b79e0}.quick-card b{display:block;font:700 1rem Georgia,serif;color:#343247}.quick-card small{display:block;color:#85889b;margin-top:4px}.quick-card i{font-style:normal;font-size:1.7rem;color:#777b8f}.calendar-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:16px}.calendar-card,.side-card{background:#fff;border:1px solid #eef0f5;border-radius:22px;box-shadow:0 10px 28px rgba(39,42,70,.035)}.calendar-card{padding:18px 16px 12px;min-width:0}.calendar-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:14px}.calendar-head h2{font:700 2rem Georgia,serif;margin:0;color:#29273c}.calendar-head p{margin:4px 0 0;color:#838799}.calendar-controls{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end}.calendar-controls>b{font-size:.82rem;padding:0 4px}.view-pill{background:#fff;border:1px solid #e6e9ef;border-radius:11px;padding:8px 12px;font-size:.78rem}.week-scroller{overflow-x:auto;border:1px solid #eef0f4;border-radius:16px}.week-board{display:grid;grid-template-columns:58px repeat(7,minmax(118px,1fr));grid-template-rows:48px auto;min-width:930px;background:#fff}.week-corner,.week-day-head{border-bottom:1px solid #eceef3;border-right:1px solid #eceef3;display:grid;place-items:center}.week-corner{font-size:.72rem;color:#8e92a2}.week-day-head{text-align:center}.week-day-head b{font:700 .8rem Georgia,serif;text-transform:capitalize}.week-day-head small{color:#9699a8;font-size:.67rem}.week-day-head.current{background:#fff5f7;color:#bd3f61}.hours-col{height:638px;display:grid;grid-template-rows:repeat(11,58px);border-right:1px solid #eceef3}.hours-col span{font-size:.68rem;color:#8f93a2;padding-top:8px;text-align:center;border-bottom:1px solid #f0f2f5}.day-column{height:638px;position:relative;border-right:1px solid #eceef3;background:#fff}.day-column.current{background:linear-gradient(#fff8fa,#fff)}.hour-line{height:58px;border-bottom:1px solid #f0f2f5}.calendar-event{position:absolute;left:6px;right:6px;height:52px;border:0;border-radius:10px;padding:6px 8px;text-align:left;overflow:hidden;color:#454355;box-shadow:0 3px 8px rgba(40,40,70,.035)}.calendar-event b,.calendar-event span,.calendar-event small{display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.calendar-event small{font-size:.59rem}.calendar-event b{font-size:.72rem;margin:2px 20px 0 0}.calendar-event span{font-size:.58rem;color:#66697a}.calendar-event em{position:absolute;right:5px;top:5px;width:20px;height:20px;border-radius:50%;display:grid;place-items:center;background:#ffffffb8;border:1px solid #fff;font-style:normal;font-size:.52rem;font-weight:900}.calendar-event.pink{background:#ffe0e8}.calendar-event.blue{background:#def3ff}.calendar-event.green{background:#ddf5ea}.calendar-event.yellow{background:#fff2c7}.calendar-event.purple{background:#eee5ff}.calendar-legend{display:flex;gap:8px;flex-wrap:wrap;padding:12px 4px 0}.calendar-legend span{font-size:.68rem;border-radius:999px;padding:7px 10px}.calendar-legend .pink{background:#fff1f5;color:#d65877}.calendar-legend .blue{background:#eef9ff;color:#3298c9}.calendar-legend .green{background:#effbf6;color:#39966e}.calendar-legend .yellow{background:#fff8df;color:#9b7a16}.calendar-legend .purple{background:#f5f0ff;color:#7959c4}.calendar-side{display:grid;gap:14px;align-content:start}.side-card{padding:16px}.mini-month-title{display:flex;justify-content:space-between;text-transform:capitalize;font:700 1rem Georgia,serif;margin-bottom:12px}.mini-weekdays,.mini-days{display:grid;grid-template-columns:repeat(7,1fr);gap:5px;text-align:center}.mini-weekdays b{font-size:.65rem;color:#767b90}.mini-days span{height:28px;display:grid;place-items:center;border-radius:50%;font-size:.7rem;position:relative}.mini-days .today{background:#ee6b8b;color:#fff;font-weight:800}.mini-days .has-event:not(.today):after{content:"";position:absolute;width:4px;height:4px;background:#70c8ef;border-radius:50%;bottom:1px}.side-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.side-title h3{font:700 1rem Georgia,serif;margin:0}.side-title button{border:0;background:transparent;color:#6c64d8;font-size:.68rem}.therapist-today,.upcoming-list{display:grid;gap:9px}.therapist-today article,.upcoming-list article{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:9px}.therapist-avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;font-size:.66rem;font-weight:900;background:#ffe0e8}.therapist-avatar.c1{background:#def3ff}.therapist-avatar.c2{background:#ddf5ea}.therapist-avatar.c3{background:#fff2c7}.therapist-avatar.c4{background:#eee5ff}.therapist-today b,.upcoming-list b{display:block;font-size:.7rem}.therapist-today small,.upcoming-list small{display:block;color:#9699aa;font-size:.62rem;margin-top:2px}.therapist-today time{font-size:.62rem;color:#85899b}.upcoming-list time{font-size:.68rem;font-weight:800;padding:7px 8px;border-radius:8px}.upcoming-list time.pink{background:#ffe0e8;color:#b83e60}.upcoming-list time.blue{background:#def3ff;color:#237ca5}.upcoming-list time.green{background:#ddf5ea;color:#2e7f5d}.upcoming-list time.yellow{background:#fff2c7;color:#846914}.upcoming-list time.purple{background:#eee5ff;color:#6748b4}.upcoming-list>article>span{font-size:.59rem;color:#999baa}.login-logo-card{width:min(420px,90%);background:#fff;border-radius:28px;padding:14px;position:relative;z-index:1}.login-logo-card img{width:100%;display:block}.child-cards .person-card{box-shadow:0 8px 20px rgba(39,42,70,.035)}
@media(max-width:1200px){.calendar-layout{grid-template-columns:1fr}.calendar-side{grid-template-columns:repeat(3,1fr)}.modern-shell{grid-template-columns:230px 1fr}.studio-logo-wrap{height:150px}}
@media(max-width:900px){.quick-strip{grid-template-columns:1fr}.calendar-side{grid-template-columns:1fr}.profile-copy{display:none}.global-search{width:70vw}}
@media(max-width:720px){.modern-content{padding-bottom:10px}.calendar-page{padding:14px 12px}.modern-topbar{padding:10px 12px}.global-search{width:calc(100vw - 90px)}.topbar-user .profile-dot,.topbar-user .icon-button{display:none}.calendar-head{display:block}.calendar-controls{justify-content:flex-start;margin-top:12px}.quick-card{padding:13px}.week-scroller{border-radius:12px}.calendar-side{display:grid}.mobile-nav.six{grid-template-columns:repeat(6,minmax(70px,1fr))}}
/* Calendario operativo v1.6 */
.calendar-event[draggable="true"]{cursor:grab}.calendar-event.dragging{opacity:.45;cursor:grabbing}.day-column.drop-target{background:#f0fbf7!important;box-shadow:inset 0 0 0 2px #78c8aa}.calendar-event span{padding-right:2px}.schedule-check{border-radius:12px;padding:10px 12px;background:#effbf6;color:#2f7f60;font-size:.78rem;font-weight:700;margin-top:4px}.schedule-check.conflict{background:#fff0f2;color:#b83e60}.modal-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.availability-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px}.availability-card{border:1px solid #edf0f4;border-radius:16px;padding:14px;background:#fbfcfe}.availability-card>b{display:block;margin-bottom:8px}.availability-card>small{color:#9396a7}.availability-row{width:100%;border:0;background:#f4f7fa;border-radius:10px;margin-top:6px;padding:9px 10px;display:flex;justify-content:space-between;gap:8px;color:#55596d}.availability-row:hover{background:#eef4f7}.availability-row span{font-size:.72rem}.availability-row strong{font-size:.72rem}.settings-grid{align-items:start}
@media(max-width:600px){.modal-grid{grid-template-columns:1fr}.availability-grid{grid-template-columns:1fr}}

/* ===== Terapie e raccolta dati v2.0 ===== */
.therapy-overview-cards .therapy-card{display:flex;flex-direction:column;gap:10px}.therapy-card-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:4px 0 6px}.therapy-card-stats span{background:#f7f9fb;border:1px solid #edf0f3;border-radius:13px;padding:9px 8px;color:var(--muted);font-size:.68rem;text-align:center}.therapy-card-stats b{display:block;color:var(--navy);font-size:1rem;margin-bottom:2px}.therapy-data-page{max-width:1500px;margin:0 auto}.therapy-data-head{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:18px;align-items:center;margin-bottom:18px}.therapy-title-block h2{font-size:2rem;margin:3px 0 2px;letter-spacing:-.035em}.therapy-title-block p{margin:0;color:var(--muted)}.therapy-actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}.therapy-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:16px}.therapy-kpis article{background:#fff;border:1px solid #e8edf1;border-radius:18px;padding:15px 17px;box-shadow:0 8px 22px #12304a08}.therapy-kpis small,.therapy-kpis span{display:block;color:var(--muted);font-size:.68rem}.therapy-kpis strong{display:block;font-size:1.7rem;line-height:1.1;margin:6px 0;color:var(--navy)}.data-sheet-panel,.therapy-chart-panel,.therapy-results{margin-bottom:16px}.data-sheet-panel .panel-head p,.therapy-chart-panel .panel-head p,.therapy-results .panel-head p{margin:.25rem 0 0;color:var(--muted);font-size:.78rem}.code-mini-legend{display:flex;gap:8px;align-items:center}.code-mini-legend span{font-size:.66rem;background:#f7f9fb;border-radius:999px;padding:6px 9px}.data-sheet-scroller{overflow:auto;border:1px solid #dce3e8;border-radius:14px;background:#fff}.data-sheet{border-collapse:collapse;min-width:980px;width:100%;font-size:.68rem}.data-sheet th,.data-sheet td{border:1px solid #cfd8df;padding:0;text-align:center;vertical-align:middle}.data-sheet thead th{background:#f7f9fb;color:#24394d;font-weight:800;padding:7px 5px}.data-sheet .op-col{width:112px;min-width:112px}.data-sheet .target-col{width:260px;min-width:260px;text-align:left;padding-left:10px}.data-sheet .session-date{min-width:106px;background:#f4f8f9}.data-sheet .session-date small{display:block;color:#8a949e;font-weight:500;font-size:.56rem;margin-top:2px;max-width:95px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.data-sheet tbody tr{height:54px}.data-sheet .op-cell{padding:5px}.data-sheet .target-cell{text-align:left;padding:7px 9px}.data-sheet .target-cell b{display:block;font-size:.69rem;line-height:1.25;color:#24394d}.data-sheet .target-cell small{display:block;font-size:.56rem;color:#8c949b;margin-top:3px;line-height:1.25}.target-edit-link{width:100%;border:0;background:transparent;color:#294c61;font-weight:800;font-size:.65rem;cursor:pointer;padding:5px;border-radius:7px}.target-edit-link:hover{background:#edf7f4}.data-code{width:100%;height:52px;border:0;background:#fff;text-align:center;font-weight:900;color:#68717a;appearance:none;padding:0 5px;cursor:pointer}.data-code:focus{outline:2px solid #7cc9ba;outline-offset:-2px}.data-code.filled{background:#f2fbf8;color:#153f39}.data-legend{display:flex;align-items:center;gap:8px 14px;flex-wrap:wrap;padding:12px 3px 2px;font-size:.68rem}.data-legend>span{color:#525f68}.data-legend strong{color:var(--navy)}.data-setup-empty{padding:34px;text-align:center;background:#f8fafb;border-radius:14px}.data-setup-empty h3{margin:0 0 6px}.data-setup-empty p{margin:0;color:var(--muted)}.therapy-chart-wrap{padding-top:4px}.therapy-chart{width:100%;height:auto;display:block;max-height:300px}.chart-grid{stroke:#e7edf1;stroke-width:1}.chart-axis{fill:#87919a;font-size:10px}.chart-line{fill:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.chart-line.first{stroke:#f28a82}.chart-line.last{stroke:#48ac9e}.chart-dot{stroke:#fff;stroke-width:2}.chart-dot.first{fill:#f28a82}.chart-dot.last{fill:#48ac9e}.chart-legend{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:0 8px 4px;font-size:.68rem;color:#69757e}.chart-legend span{display:flex;align-items:center;gap:6px;font-weight:800}.chart-legend small{margin-left:auto;color:#929aa1}.legend-line{width:22px;height:3px;border-radius:99px;display:inline-block}.legend-line.first{background:#f28a82}.legend-line.last{background:#48ac9e}.chart-empty{padding:40px;text-align:center;color:var(--muted);background:#f8fafb;border-radius:14px}.results-list{display:grid;gap:8px}.results-list article{display:grid;grid-template-columns:minmax(0,1fr) 62px 70px 128px;gap:10px;align-items:center;padding:11px 12px;border:1px solid #edf0f2;border-radius:13px}.results-list article>div:first-child small{display:block;color:#8b949c;font-size:.58rem;text-transform:uppercase;letter-spacing:.07em}.results-list article>div:first-child b{display:block;margin-top:2px;font-size:.76rem}.code-pill{display:grid;place-items:center;height:32px;background:#eef7f5;border-radius:9px;font-weight:950;color:#25594f}.trend-value{text-align:center;font-weight:900;color:#69757e}.trend-value.up{color:#21896e}.trend-value.down{color:#c45b5b}.modal-context{background:#f7f9fb;border-radius:12px;padding:9px 11px;color:var(--muted);font-size:.75rem;margin:-5px 0 15px}
@media(max-width:1050px){.therapy-kpis{grid-template-columns:repeat(2,1fr)}.therapy-data-head{grid-template-columns:1fr}.therapy-data-head>.ghost{justify-self:start}.therapy-actions{justify-content:flex-start}.chart-legend small{width:100%;margin-left:0}.results-list article{grid-template-columns:minmax(0,1fr) 54px 60px}.results-list article .badge{grid-column:1/-1;justify-self:start}}
@media(max-width:650px){.therapy-kpis{grid-template-columns:1fr 1fr}.therapy-kpis strong{font-size:1.35rem}.therapy-title-block h2{font-size:1.55rem}.therapy-actions{display:grid;grid-template-columns:1fr 1fr}.therapy-card-stats{grid-template-columns:1fr 1fr 1fr}.data-sheet .op-col{width:90px;min-width:90px}.data-sheet .target-col{width:205px;min-width:205px}.therapy-chart{min-width:620px}.therapy-chart-wrap{overflow-x:auto}}

/* Calendario cliccabile v2.0.2 */
.day-column.admin-clickable{cursor:cell}
.day-column.admin-clickable:hover{background:linear-gradient(#fbfffd,#fff)!important}
.day-column.admin-clickable .hour-line{position:relative}
.day-column.admin-clickable .hour-line:hover{background:rgba(84,185,143,.08)}
.day-column.admin-clickable .hour-line:hover:after{content:'+ nuova terapia';position:absolute;left:8px;top:6px;font-size:.58rem;font-weight:800;color:#3b8f6d;background:#effbf6;border:1px solid #d8f2e6;border-radius:999px;padding:3px 7px;pointer-events:none}

/* ===== v2.1 Agende visive e chat ===== */
.notice-card{background:#fff8e8;border:1px solid #f3dfac;border-radius:16px;padding:14px 16px;margin:0 0 18px;color:#5c4a21}
.agenda-products{display:grid;gap:14px}
.agenda-product{display:grid;grid-template-columns:64px 1fr auto;gap:16px;align-items:center;background:#fff;border:1px solid #e7edf2;border-radius:20px;padding:18px;box-shadow:0 10px 30px rgba(24,55,77,.05)}
.agenda-icon{width:54px;height:54px;border-radius:16px;background:linear-gradient(135deg,#fce1e4,#e9dcff);display:grid;place-items:center;font-size:26px}
.agenda-product-main h3{margin:5px 0 6px}.agenda-product-main p{margin:0 0 7px;color:#627184}.agenda-meta{display:flex;gap:8px;align-items:center;font-size:12px;color:#758395}.agenda-price{display:flex;flex-direction:column;gap:8px;align-items:flex-end;min-width:155px}.agenda-price strong{font-size:18px;color:#17364e}
.chat-workspace{display:grid;grid-template-columns:280px minmax(0,1fr);gap:16px;min-height:620px}.conversation-list{background:#fff;border:1px solid #e7edf2;border-radius:20px;padding:14px;box-shadow:0 10px 30px rgba(24,55,77,.05);overflow:auto}.conversation-list h3{margin:4px 6px 12px}.conversation-item{width:100%;display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left;border:0;background:transparent;border-radius:14px;padding:12px;color:#17364e;cursor:pointer}.conversation-item:hover,.conversation-item.active{background:#f2f7fa}.conversation-item small{color:#7a8896}.modern-chat{display:flex;flex-direction:column;min-width:0}.chat-title{display:flex;justify-content:space-between;gap:12px;align-items:center;border-bottom:1px solid #edf1f4;padding:0 0 14px;margin-bottom:10px}.chat-title h3{margin:0}.admin-oversight{font-size:11px;background:#eef4f7;border-radius:999px;padding:7px 10px;color:#34556b}.attachment-chip{border:1px solid #dce6ec;background:#f7fafb;border-radius:12px;padding:8px 10px;cursor:pointer;text-align:left;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-composer{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;gap:8px;align-items:center}.attach-button{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:#eef3f6;cursor:pointer}.file-selected{grid-column:1/-1;font-size:12px;color:#68788a;min-height:16px}.hidden{display:none!important}
@media(max-width:900px){.agenda-product{grid-template-columns:52px 1fr}.agenda-price{grid-column:1/-1;align-items:stretch}.chat-workspace{grid-template-columns:1fr}.conversation-list{max-height:220px}.chat-composer{grid-template-columns:minmax(0,1fr) auto auto}.chat-composer .primary{grid-column:1/-1}.agenda-price strong{text-align:left}}
