.fc-tpl{font-family:Inter,system-ui,-apple-system,sans-serif;color:#1c303c;background:#f3f6f7;font-size:14px}.fc-tpl, .fc-tpl *{box-sizing:border-box}.fc-tpl{margin:0}.fc-tpl button,.fc-tpl input,.fc-tpl select,.fc-tpl textarea{font:inherit}.fc-tpl button{cursor:pointer}.fc-tpl button:focus-visible,.fc-tpl input:focus-visible,.fc-tpl select:focus-visible,.fc-tpl textarea:focus-visible{outline:3px solid #94d8ce}.fc-tpl button:disabled{cursor:not-allowed;opacity:.5}.fc-tpl .shell{display:flex;min-height:100vh}.fc-tpl .sidebar{width:240px;flex:none;background:#122b35;color:#d3e3e3;display:flex;flex-direction:column;padding:25px 15px;position:sticky;top:0;height:100vh;overflow:auto}.fc-tpl .brand{padding:0 12px 24px;border-bottom:1px solid #34505a}.fc-tpl .brand strong{font-size:16px;letter-spacing:.08em;color:#fff}.fc-tpl .brand small{display:block;color:#91b2b5;margin-top:5px}.fc-tpl .nav-label{padding:22px 12px 8px;font-size:10px;letter-spacing:.12em;color:#83a4a9}.fc-tpl .navbtn{background:none;color:#bcd0d2;border:0;border-radius:7px;text-align:left;padding:10px 12px;width:100%;display:flex;justify-content:space-between}.fc-tpl .navbtn:hover,.fc-tpl .navbtn.active{background:#244b53;color:white}.fc-tpl .subnav{padding-left:13px}.fc-tpl .subnav .navbtn{font-size:12px;padding:7px 12px}.fc-tpl .dot{color:#f1ba63}.fc-tpl .bottom{margin-top:auto;padding:25px 12px 0;color:#9ab5b7}.fc-tpl .main{min-width:0;flex:1}.fc-tpl .top{height:64px;background:white;border-bottom:1px solid #dfe8e9;display:flex;align-items:center;padding:0 32px;gap:20px}.fc-tpl .top input{max-width:370px;background:#f5f8f8}.fc-tpl .top .spacer{flex:1}.fc-tpl .content{max-width:1500px;margin:auto;padding:32px}.fc-tpl .eyebrow{font-size:11px;font-weight:700;letter-spacing:.12em;color:#46827c;text-transform:uppercase}.fc-tpl .heading{display:flex;justify-content:space-between;align-items:start;gap:16px;margin-bottom:24px}.fc-tpl h1{font-size:26px;margin:6px 0;color:#183440;letter-spacing:-.03em}.fc-tpl h2{font-size:17px;margin:0 0 8px}.fc-tpl h3{font-size:14px;margin:0 0 8px}.fc-tpl p{line-height:1.5;color:#667c83}.fc-tpl small,.fc-tpl .muted{color:#758b91}.fc-tpl .card{background:#fff;border:1px solid #dce7e8;border-radius:10px;padding:20px;box-shadow:0 2px 8px #18344008}.fc-tpl .grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.fc-tpl .stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:22px}.fc-tpl .stat strong{display:block;font-size:26px;margin:8px 0}.fc-tpl .badge{display:inline-block;background:#edf3f3;color:#526b70;border-radius:20px;padding:4px 8px;font-size:11px;font-weight:700}.fc-tpl .badge.warn{background:#fff4df;color:#99630b}.fc-tpl .badge.good{background:#e3f4ed;color:#24745d}.fc-tpl .btn{border:1px solid #d4e1e2;background:#fff;color:#28454c;padding:9px 13px;border-radius:7px;font-weight:600}.fc-tpl .btn:hover{background:#f2f8f7}.fc-tpl .primary{background:#177e73;color:white;border-color:#177e73}.fc-tpl .primary:hover{background:#126b62}.fc-tpl .danger{color:#ae403d}.fc-tpl .toolbar{display:flex;gap:10px;align-items:center;margin-bottom:16px;flex-wrap:wrap}.fc-tpl .toolbar input{max-width:330px}.fc-tpl input,.fc-tpl select,.fc-tpl textarea{width:100%;background:#fff;border:1px solid #cadbdd;border-radius:6px;padding:9px 10px;color:#243e46}.fc-tpl textarea{min-height:110px;resize:vertical;line-height:1.5}.fc-tpl label{display:block;font-weight:600;color:#39555d;font-size:12px}.fc-tpl label input,.fc-tpl label select,.fc-tpl label textarea{display:block;margin-top:7px;font-weight:400;font-size:14px}.fc-tpl .fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.fc-tpl .full{grid-column:1/-1}.fc-tpl .tablewrap{overflow:auto}.fc-tpl table{width:100%;border-collapse:collapse;text-align:left}.fc-tpl th{color:#738c90;font-size:10px;text-transform:uppercase;letter-spacing:.06em;white-space:nowrap}.fc-tpl td,.fc-tpl th{padding:13px 10px;border-bottom:1px solid #edf2f2}.fc-tpl td button.link,.fc-tpl .link{background:none;border:0;color:#167e73;text-align:left;padding:0;font-weight:650}.fc-tpl .empty{text-align:center;padding:48px 20px;color:#71878c}.fc-tpl .notice{background:#eef7f6;border:1px solid #cee9e4;border-radius:8px;padding:12px 14px;color:#3d6965;margin-bottom:16px}.fc-tpl .warning{background:#fff7e9;border-color:#f1dfbb;color:#8b621f}.fc-tpl .tabs{display:flex;gap:4px;border-bottom:1px solid #dce6e6;margin-bottom:20px}.fc-tpl .tab{border:0;background:none;color:#657f85;padding:12px 16px;border-bottom:2px solid transparent}.fc-tpl .tab.active{color:#167e73;border-color:#167e73;font-weight:700}.fc-tpl .editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:18px}.fc-tpl .stack>*+*{margin-top:16px}.fc-tpl .section-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.fc-tpl .actions{display:flex;gap:8px;flex-wrap:wrap}.fc-tpl .rowgrid{display:grid;grid-template-columns:2fr 1fr 100px 1.5fr 100px auto;gap:8px;margin-bottom:10px;align-items:end}.fc-tpl .inline-input{display:flex;gap:8px;align-items:center}.fc-tpl .inline-input input[type=checkbox]{width:auto}.fc-tpl .toast{position:fixed;right:20px;bottom:20px;background:#163d42;color:white;padding:13px 18px;border-radius:8px;z-index:20}.fc-tpl .login{min-height:100vh;display:grid;place-items:center;background:#edf4f4;padding:20px}.fc-tpl .login .card{width:min(420px,100%);padding:35px}.fc-tpl .login label{margin:18px 0}.fc-tpl .login .btn{width:100%}.fc-tpl .error{color:#a93434;font-size:13px}.fc-tpl .mention-list{border:1px solid #cfe1df;border-radius:6px;max-height:190px;overflow:auto;background:#fff}.fc-tpl .mention-list button{display:block;text-align:left;width:100%;border:0;background:white;padding:8px}.fc-tpl .mention-list button:hover{background:#eef8f6}.fc-tpl .token{background:#e4f4f1;color:#196f66;border-radius:4px;padding:3px 6px;display:inline-block;margin:3px}.fc-tpl .category{margin-bottom:20px}.fc-tpl .category h2{margin:0 0 12px}.fc-tpl .dirty{color:#a76d10}.fc-tpl .modal{position:fixed;inset:0;background:#152e38aa;display:grid;place-items:center;z-index:10;padding:20px}.fc-tpl .modal>.card{max-width:700px;width:100%;max-height:85vh;overflow:auto}@media(max-width:700px){.fc-tpl .stats{grid-template-columns:repeat(2,1fr)}.fc-tpl .grid{grid-template-columns:1fr 1fr}.fc-tpl .editor-layout{grid-template-columns:1fr}.fc-tpl .rowgrid{grid-template-columns:1fr 1fr 1fr}.fc-tpl .sidebar{width:200px}.fc-tpl .content{padding:22px}.fc-tpl .top{padding:0 20px}}@media(max-width:650px){.fc-tpl .shell{display:block}.fc-tpl .sidebar{position:static;width:auto;height:auto}.fc-tpl .nav-label,.fc-tpl .subnav,.fc-tpl .bottom{display:none}.fc-tpl .sidebar nav{display:flex;overflow:auto}.fc-tpl .navbtn{white-space:nowrap;width:auto}.fc-tpl .brand{padding-bottom:12px}.fc-tpl .stats,.fc-tpl .grid,.fc-tpl .fields{grid-template-columns:1fr}.fc-tpl .top{height:auto;padding:12px}.fc-tpl .content{padding:16px}.fc-tpl .rowgrid{grid-template-columns:1fr 1fr}}.fc-tpl .ai-evidence label+label{margin-top:16px}.fc-tpl .ai-evidence textarea[readonly]{background:#f6f9f9;color:#39555d;cursor:default}.fc-tpl .ai-evidence-status{margin-bottom:0;font-size:12px}.fc-tpl .simulation-section{border-top:1px solid #e7eeee;padding:13px 0}.fc-tpl .simulation-section summary{cursor:pointer;color:#36565d}.fc-tpl .simulation-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;padding:16px 0}.fc-tpl .simulation-grid label small{display:block;font-size:10px;overflow-wrap:anywhere;margin-top:4px}@media(max-width:700px){.fc-tpl .simulation-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.fc-tpl .simulation-grid{grid-template-columns:1fr}}.fc-tpl .profile-list{display:grid;gap:12px}.fc-tpl .profile-card{display:flex;align-items:center;justify-content:space-between;gap:18px}.fc-tpl .profile-card h3{margin:0}.fc-tpl .profile-card p{margin:7px 0 0}.fc-tpl .profile-year-tabs{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:16px 0}.fc-tpl .profile-calendar{display:grid;grid-template-columns:repeat(3,minmax(220px,1fr));gap:18px}.fc-tpl .calendar-month{min-width:0}.fc-tpl .calendar-month h3{text-transform:capitalize;margin:0 0 8px;font-size:15px}.fc-tpl .calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}.fc-tpl .calendar-grid>span{font-size:11px;text-align:center;color:#6b858b;padding:4px 0}.fc-tpl .calendar-blank{min-height:37px}.fc-tpl .calendar-day{display:flex;min-width:0;min-height:39px;flex-direction:column;justify-content:center;align-items:center;gap:1px;padding:2px;border:1px solid #e1e9ea;border-radius:6px;background:#fff;color:#29444c;cursor:pointer}.fc-tpl .calendar-day span{font-size:12px}.fc-tpl .calendar-day small{font-size:8px;color:#789096}.fc-tpl .calendar-day:hover{border-color:#16877d;background:#f2faf8}.fc-tpl .calendar-day.selected{border-color:#087f73;background:#087f73;color:#fff}.fc-tpl .calendar-day.selected small{color:#d9f2ee}.fc-tpl .calendar-day.has-observation:not(.selected){box-shadow:inset 0 -3px #c78224}.fc-tpl .profile-raw-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:14px 0}.fc-tpl .profile-raw-field{display:flex;flex-direction:column;justify-content:space-between;gap:9px;padding:12px;border:1px solid #e2eaea;border-radius:9px;background:#fbfdfd;min-width:0}.fc-tpl .profile-raw-field>span{display:flex;flex-direction:column;gap:5px}.fc-tpl .profile-raw-field small{font-size:10px;color:#71868b;overflow-wrap:anywhere}.fc-tpl .profile-raw-field input,.fc-tpl .profile-raw-field select{width:100%}.fc-tpl .profile-raw-field[hidden]{display:none}@media(max-width:700px){.fc-tpl .profile-calendar{grid-template-columns:repeat(2,minmax(220px,1fr))}.fc-tpl .profile-raw-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.fc-tpl .profile-calendar{grid-template-columns:1fr}.fc-tpl .profile-raw-grid{grid-template-columns:1fr}.fc-tpl .profile-card{align-items:flex-start;flex-direction:column}.fc-tpl .profile-card .actions{flex-wrap:wrap}}.fc-tpl .template-switch{display:flex;align-items:center;gap:8px;border-bottom:1px solid #dce6e6;margin:0 0 18px;flex-wrap:wrap}.fc-tpl .template-switch .spacer{flex:1}.fc-tpl .protocol-list{display:grid;gap:14px}.fc-tpl .protocol-card{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.fc-tpl .protocol-card h2{margin:12px 0 4px}.fc-tpl .protocol-card p{margin:0 0 10px}.fc-tpl .protocol-section{margin-top:14px}.fc-tpl .template-entries{display:grid;gap:10px;margin:14px 0}.fc-tpl .template-entry{border:1px solid #e4ecec;background:#fbfdfd;border-radius:8px;padding:14px;margin:12px 0}.fc-tpl .template-entry-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.fc-tpl .template-entry .fields{align-items:start}.fc-tpl .template-entry textarea{min-height:62px}.fc-tpl .protocol-card .actions{flex-wrap:wrap;justify-content:flex-end}@media(max-width:700px){.fc-tpl .protocol-card{flex-direction:column}.fc-tpl .protocol-card .actions{justify-content:flex-start;width:100%}}.fc-tpl .template-home-card{min-height:140px}.fc-tpl .template-home-card h2{margin:0}.fc-tpl .template-media-preview{display:block;max-width:100%;max-height:260px;margin:12px 0;border:1px solid #dce7e8;border-radius:8px;object-fit:contain;background:#f6f9f9}.fc-tpl .template-set{border-top:1px solid #e7eeee;padding-top:12px}.fc-tpl .template-entry small{display:block;margin-top:5px}.fc-tpl .modifier-value-list{display:grid;gap:10px}.fc-tpl .modifier-value{display:flex;align-items:center;justify-content:space-between;gap:14px;border-top:1px solid #edf2f2;padding:12px 0}.fc-tpl .modifier-value>div:first-child{display:grid;gap:5px}.fc-tpl .modifier-choice{border:1px solid #dce7e8;border-radius:8px;padding:13px;min-width:0}.fc-tpl .modifier-choice legend{padding:0 6px;font-weight:700;color:#39555d}.fc-tpl .modifier-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.fc-tpl .modifier-checks label{display:flex;align-items:flex-start;gap:8px;padding:7px;border-radius:6px;background:#f8fbfb;font-weight:400}.fc-tpl .modifier-checks input{width:auto;margin:2px 0 0}.fc-tpl .modifier-checks span{min-width:0;overflow-wrap:anywhere}@media(max-width:700px){.fc-tpl .modifier-value{align-items:flex-start;flex-direction:column}.fc-tpl .modifier-checks{grid-template-columns:1fr}}.fc-tpl .modifier-group{padding:0;overflow:hidden}.fc-tpl .modifier-group>summary{padding:18px 20px;cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between}.fc-tpl .modifier-group>summary::-webkit-details-marker{display:none}.fc-tpl .modifier-group>summary::after{content:'+';color:#66818a;font-weight:700}.fc-tpl .modifier-group[open]>summary::after{content:'−'}.fc-tpl .modifier-group>summary h2{margin:0}.fc-tpl .modifier-group-content{padding:0 20px 20px}.fc-tpl .nested-effects{margin:14px 0 4px;padding:16px;border:1px solid #d8e8e7;border-left:4px solid #4aa99f;border-radius:8px;background:#f5faf9}.fc-tpl .nested-effects .section-title{align-items:flex-start}.fc-tpl .nested-effects .template-entry{background:#fff}.fc-tpl .nested-effects h3{color:#236e68}.fc-tpl .raw-subnav-group{margin:2px 0 7px}.fc-tpl .subnav-group-title{display:block;padding:8px 12px 2px;color:#83a4a9;font-size:9px;font-weight:700;letter-spacing:.1em;text-transform:uppercase}.fc-tpl .navbtn.nested{padding-left:26px;font-size:13px}.fc-tpl .sport-filters{flex-wrap:wrap;gap:10px}.fc-tpl .inline-filter{display:inline-flex;align-items:center;gap:6px;font-size:12px}.fc-tpl .inline-filter select{width:auto}.fc-tpl .subtree{display:grid;gap:6px;margin-top:10px}.fc-tpl .subtree-node{border:1px solid #e4ecec;background:#fbfdfd;border-radius:8px;padding:8px 12px}.fc-tpl .subtree-node>summary{cursor:pointer}.fc-tpl .subtree-children{margin:8px 0 0 14px;display:grid;gap:6px;border-left:2px solid #d8e8e7;padding-left:10px}.fc-tpl .subtree-detail{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:4px 14px;margin:10px 0}.fc-tpl .subtree-detail dt{font-weight:600;color:#39555d;font-size:12px}.fc-tpl .subtree-detail dd{margin:0;color:#34505a;line-height:1.5}.fc-tpl .subtree-sources ul{margin:6px 0;padding-left:20px;font-size:12px;color:#667c83}.fc-tpl{min-height:0}.fc-tpl .shell{min-height:70vh;gap:0;border:1px solid #dce7e8;border-radius:10px;overflow:hidden}.fc-tpl .sidebar{position:static;height:auto;max-height:80vh}.fc-tpl .content{padding:24px}.fc-toast{position:fixed;right:24px;bottom:24px;background:#122b35;color:#fff;border-radius:8px;padding:12px 16px;z-index:9999}
/* Nell area admin la regola globale «.hx-role-admin .sidebar/.shell» nasconde il menu laterale: dentro «Template condivisi» il menu delle sezioni resta visibile. */
.hx-role-admin .fc-tpl .shell{display:flex}.hx-role-admin .fc-tpl .sidebar{display:flex}
@media(max-width:650px){.hx-role-admin .fc-tpl .shell{display:block}}
/* Errore accanto al campo (alimenti ed esercizi): messaggio in rosso e bordo rosso. */
.fc-tpl .field-error{display:block;margin-top:5px;font-size:12px;line-height:1.4;color:#b3261e;font-weight:600}.fc-tpl .field-error[hidden]{display:none}.fc-tpl [aria-invalid="true"]{border-color:#b3261e}
.fc-tpl .antagonist-chips{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 14px}.fc-tpl .antagonist-chip{display:inline-flex;align-items:center;gap:8px;padding:6px 10px;font-size:12px}.fc-tpl .antagonist-chip .link{font-size:11px}.fc-tpl .antagonist-options{display:grid;gap:2px;margin-top:8px}.fc-tpl .antagonist-option{display:block;text-align:left;width:100%;border:0;background:#fff;padding:8px 10px;border-radius:5px}.fc-tpl .antagonist-option:hover,.fc-tpl .antagonist-option:focus-visible{background:#eef8f6}.fc-tpl .antagonist-option[hidden]{display:none}.fc-tpl .antagonist-line{display:block}
