:root {
  --ink:#253735; --muted:#737886; --line:#e0e2ec; --page:#f1f2f8; --paper:#fff;
  --teal:#3e6868; --coral:#fa9774; --apricot:#ffc77c; --lavender:#8987b7;
  --primary:#ed906f; --primary-dark:#7e4a39; --green:#35665c;
  --sage:#e4eeeb; --peach:#fff0e4; --sky:#e6eef4;
  --font:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
*{box-sizing:border-box}
body{margin:0;padding:28px;background:#f69c7d;color:var(--ink);font-family:var(--font);font-size:14px;line-height:1.5}
button,input,select,textarea{font:inherit}
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}
button{cursor:pointer;border:0}button:disabled{cursor:not-allowed;opacity:.5}
a{color:inherit;text-decoration:none}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #686390;outline-offset:3px}
h1,h2,h3,h4,p{margin:0}h1{font-size:27px;line-height:1.22;letter-spacing:-1px;font-weight:620}h2{font-size:17px;font-weight:600;letter-spacing:-.3px}h3{font-size:16px;font-weight:600;letter-spacing:-.2px}small{font-size:12px}
svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}button svg{pointer-events:none}
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip{position:fixed;left:250px;top:-80px;z-index:100;background:var(--coral);padding:12px}.skip:focus{top:8px}
.dashboard-frame{max-width:1680px;margin:0 auto;background:var(--page);border:1px solid #e9eaf2;border-radius:24px;box-shadow:0 22px 50px #69423324;min-height:calc(100vh - 56px)}
.topbar{display:flex;align-items:center;gap:25px;padding:20px 24px;min-height:90px;border-bottom:1px solid #dfe0eb;margin:0 16px}
.brand{display:flex;align-items:center;gap:9px;font-size:23px;letter-spacing:-1.1px;font-weight:650;min-width:178px;color:#305b5a}.brand-light{font-weight:450}.brand-symbol{width:39px;height:39px;border-radius:50%;background:var(--coral);color:#fff;display:grid;place-items:center;font-size:25px;font-weight:500;letter-spacing:-1px}
.quick-search{display:flex;align-items:center;background:white;border-radius:28px;width:min(440px,40%);padding:0 12px 0 20px;min-height:43px;gap:10px;margin-right:auto}
.quick-search input{background:none;border:0;outline:0;min-width:0;flex:1;color:var(--ink);font-size:12px}.quick-search input::placeholder{color:var(--text-muted,#475569);opacity:1}.quick-search button{background:none;display:grid;place-items:center;width:28px;height:32px;color:#5d616d}.quick-search svg{width:17px;height:17px}
.top-actions{display:flex;align-items:center;gap:11px}.round-action{border-radius:50%;background:var(--lavender);color:#fff;width:39px;height:39px;display:grid;place-items:center;position:relative}.round-action:hover{background:#746fa4}.round-action b{position:absolute;top:-3px;right:-3px;border-radius:12px;min-width:17px;background:var(--teal);color:white;border:2px solid var(--page);font-size:9px;padding:1px 3px}.round-action span{display:flex}
.account-button{display:flex;align-items:center;gap:9px;border-radius:28px;background:white;padding:7px 12px 7px 8px;min-width:180px}.account-label{text-align:left;min-width:0;flex:1}.account-label strong{display:block;font-size:12px;font-weight:550}.account-label small{display:block;font-size:10px;color:#787b88}.account-button>svg{width:16px;height:16px;color:#797c89}
.avatar{display:inline-grid;place-items:center;width:41px;height:41px;border-radius:12px;font-size:13px;font-weight:600;flex-shrink:0}.avatar.small{width:32px;height:32px;font-size:11px;border-radius:50%}.avatar.large{width:70px;height:70px;font-size:24px;border-radius:19px}
.sage{background:var(--sage);color:#3e6864}.lavender{background:#eae9f4;color:#625e90}.peach{background:var(--peach);color:#8e5e40}.sky{background:var(--sky);color:#4e748a}
.dashboard-body{display:flex;align-items:stretch;padding:18px 16px 0}.sidebar{width:198px;padding:0 14px 20px 0;flex-shrink:0;border-right:1px solid #dddfeb;display:flex;flex-direction:column;min-height:calc(100vh - 165px)}
.workspace{display:flex;align-items:center;gap:9px;border-radius:24px;padding:9px 11px;background:white;margin-bottom:23px;min-height:51px}.workspace-icon{width:28px;height:28px;border-radius:50%;background:#fae3d9;display:grid;place-items:center;color:#a9654d;font-size:10px;flex-shrink:0}.workspace strong{font-size:11px;font-weight:600;display:block}.workspace small{font-size:9px;color:#797d89;display:block;margin-top:1px}.nav-caption{font-size:9px;letter-spacing:1.5px;color:#828696;margin:0 13px 11px}
nav{display:grid;gap:7px}.nav-item{display:flex;align-items:center;gap:10px;border-radius:24px;padding:12px 13px;background:transparent;color:#5e626f;width:100%;text-align:left;font-size:11px;min-height:41px}.nav-item svg{width:16px;height:16px;flex-shrink:0}.nav-item:hover{background:#e8e8f3}.nav-item.active{background:#fff;color:#305956;box-shadow:0 3px 8px #35305404}.nav-item.active>svg{color:#f09575}.nav-item.active::after{content:'›';font-size:21px;color:#7d818d;margin-left:auto;line-height:12px}.nav-count{margin-left:auto;background:#f9e9e2;color:#97593f;font-size:10px;border-radius:6px;min-width:20px;text-align:center;padding:1px 5px}.nav-item.active:has(.nav-count)::after{display:none}
.sidebar-bottom{margin-top:auto;padding-top:40px}.sidebar-note{padding:17px 12px;background:#e9e9f3;border-radius:16px;margin-bottom:20px}.note-glyph{display:block;color:#8480af;font-size:24px;margin-bottom:10px}.sidebar-note strong{font-size:15px;line-height:1.5;font-weight:500}.sidebar-note p{font-size:11px;line-height:1.8;color:#7d8091;margin-top:9px}.sidebar-link{display:flex;align-items:center;gap:8px;width:100%;padding:13px 10px;background:var(--coral);border-radius:11px;text-align:left;color:#3c3733;font-size:11px}.sidebar-link>span{background:#fff;border-radius:50%;height:18px;width:18px;display:grid;place-items:center;font-size:10px;color:var(--text-muted,#475569)}.local-status{display:flex;gap:6px;align-items:center;font-size:9px;color:#7e8291;padding:17px 7px 0}.local-status i{width:5px;height:5px;border-radius:50%;background:var(--teal)}.local-status span{margin-left:auto;color:var(--text-muted,#475569)}
.app-shell{min-width:0;flex:1;display:flex;flex-direction:column}.demo-strip{display:flex;align-items:center;gap:10px;margin:0 20px 18px;padding:0 0 0 1px;min-height:26px;color:#757b89;font-size:10px}.demo-pill{border-radius:6px;font-size:8px;letter-spacing:.7px;font-weight:650;color:#665d85;background:#e6e5f1;padding:5px 7px;white-space:nowrap}.demo-strip button{margin-left:auto;white-space:nowrap;background:none;font-size:10px;color:#6e6792;text-underline-offset:3px}.demo-strip button+button{margin-left:3px}.demo-strip button:hover{text-decoration:underline}
main{padding:0 20px 28px;width:100%;min-width:0}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:23px}.eyebrow{font-size:9px;font-weight:550;letter-spacing:1.5px;color:#7e8191;margin-bottom:6px}.page-heading p{font-size:12px;color:#787d89;margin-top:7px;line-height:1.7}.heading-action{flex-shrink:0}.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid #e0e0ed;background:#fff;color:#57566e;border-radius:10px;padding:10px 13px;min-height:38px;font-size:11px;font-weight:500;white-space:nowrap;transition:background .15s,transform .15s}.btn:hover{background:#edeaf5}.btn.primary{background:var(--coral);border-color:var(--coral);color:#392c27}.btn.primary:hover{background:#f58d67;transform:translateY(-1px)}.btn.dark{background:var(--teal);border-color:var(--teal);color:white}.btn.danger{background:#fff0e9;border-color:#f1c6b8;color:#924932}.btn.tiny{font-size:10px;min-height:32px;padding:6px 9px}.btn.wide{width:100%}.btn svg{height:15px;width:15px}.text-button{background:none;color:#526d6c;padding:0;font-size:11px;font-weight:500}.text-button:hover{text-decoration:underline;text-underline-offset:3px}
.metric{padding:14px 15px 13px;border-radius:17px;min-height:143px;position:relative;display:flex;flex-direction:column;min-width:0;background:#e8e7f3;color:#29283d}.metric.teal,.metric.sage{background:var(--teal);color:white}.metric.coral{background:var(--coral);color:#352e2a}.metric.apricot,.metric.peach{background:var(--apricot);color:#382f22}.metric.lavender{background:var(--lavender);color:#29283e}.metric-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.metric-dot{width:13px;height:13px;border-radius:50%;background:#fff}.metric-icon{height:21px;width:21px;border:1px solid #ffffff90;border-radius:50%;display:grid;place-items:center;color:inherit}.metric-icon svg{height:12px;width:12px;stroke-width:1.4}.metric-label{font-size:10px;line-height:1.4;min-height:28px}.metric-value{font-size:33px;font-weight:500;letter-spacing:-1.4px;line-height:1.2;margin-top:auto}.metric.lavender .metric-value{color:#fff}.metric-foot{font-size:9px;line-height:1.4;margin-top:4px}.metric.lavender .metric-foot{color:#28263e}
.overview-panel{background:#fff;border-radius:17px;padding:17px 18px 12px;min-width:0;overflow:hidden}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.panel-heading h2{font-size:13px;font-weight:550;letter-spacing:-.15px}.panel-heading>svg{height:16px;width:16px;color:#9693b5}.panel-subtitle{font-size:10px;color:#7e8190;margin-bottom:11px}.chart-legend i,.discipline-legend i{width:7px;height:7px;border-radius:2px;display:inline-block;flex-shrink:0}.chart-legend .coral,.discipline-legend .coral{background:var(--coral)}.chart-legend .lavender{background:var(--lavender)}.discipline-legend .teal{background:var(--teal)}.discipline-legend .apricot{background:var(--apricot)}.discipline-overview{display:grid;grid-template-columns:130px minmax(0,1fr);gap:12px;align-items:center;min-height:140px}.distribution-chart{width:130px;height:130px;display:block;stroke:none}.ring-track{fill:none;stroke:#eeedf7;stroke-width:10}.ring-progress{fill:none;stroke-width:10;stroke-linecap:butt}.ring-progress.teal{stroke:var(--teal)}.ring-progress.coral{stroke:var(--coral)}.ring-progress.apricot{stroke:var(--apricot)}.ring-progress.lavender{stroke:var(--lavender)}.ring-value{stroke:none;fill:#283735;font-size:27px;font-weight:550;letter-spacing:-1px;text-anchor:middle;font-family:var(--font)}.ring-label{stroke:none;fill:#7a7e8d;font-size:10px;text-anchor:middle;font-family:var(--font);letter-spacing:0}.discipline-legend{display:grid;gap:13px;font-size:10px;color:#666b78}.discipline-legend>div{display:flex;justify-content:space-between;align-items:center;gap:7px}.discipline-legend span{display:flex;align-items:center;gap:6px}.discipline-legend strong{font-size:12px;color:#454b5c;font-weight:550}.chart-caption{font-size:9px;color:#85899a;line-height:1.6;margin-top:10px}
.quick-panels{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin-bottom:24px}.quick-card{background:white;border-radius:16px;padding:15px 17px;text-align:left;min-width:0;min-height:118px;display:flex;flex-direction:column;color:var(--ink);transition:box-shadow .15s}.quick-card:hover{box-shadow:0 4px 16px #62627b14}.quick-label{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:11px;font-weight:500;color:#5c6070;margin-bottom:8px}.quick-label svg{width:13px;height:13px;color:#9997b1}.quick-card>strong{font-size:25px;letter-spacing:-1px;font-weight:500;line-height:1.3}.quick-detail{font-size:9px;color:#838899;margin-top:5px;line-height:1.6}.quick-activity{font-size:11px;line-height:1.6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#565d6b}.activity-quick .quick-detail{margin-top:auto;padding-top:8px}
.right-rail{display:grid;gap:15px;border-left:1px solid #dddfea;padding-left:17px}.rail-panel{background:#fff;border-radius:17px;padding:17px 15px}.rail-person{display:flex;align-items:center;gap:10px;margin:15px 0 12px}.rail-person h3{font-size:13px}.rail-person p{font-size:10px;color:#7c8390;margin-top:2px}.rail-panel>.tag{margin-bottom:10px;font-size:9px}.rail-stat-row{background:#f5f5fb;border-radius:7px;display:flex;align-items:center;gap:10px;margin-top:9px;padding:9px}.rail-stat-icon{width:29px;height:32px;display:grid;place-items:center;border-radius:6px}.rail-stat-icon svg{height:18px;width:18px}.rail-stat-row strong{display:block;font-size:18px;font-weight:550;line-height:1.2;color:#414654}.rail-stat-row small{display:block;font-size:9px;color:#767b8d;margin-top:3px}.icon-link{background:none;color:#808398;display:grid;place-items:center;padding:0}.icon-link svg{height:15px;width:15px}.rail-inline-link{font-size:10px;margin-top:13px;display:flex;gap:5px;align-items:center}.rail-inline-link svg{width:13px;height:13px}.discipline-scores{display:grid;gap:8px;margin-top:14px}.discipline-scores>button{display:flex;align-items:center;width:100%;gap:9px;background:#f5f5fb;border-radius:7px;padding:7px;text-align:left;color:#4c5361}.discipline-scores>button:nth-child(even){background:#fcf3ef}.score-box{display:grid;place-items:center;min-width:38px;height:34px;border-radius:5px;font-size:11px;font-weight:500}.discipline-scores strong{display:block;font-size:10px;font-weight:500}.discipline-scores small{display:block;font-size:9px;color:#818597;margin-top:3px}.discipline-scores>button>svg{margin-left:auto;width:12px;height:12px;color:#878b9a}.document-summary{display:flex;gap:8px;align-items:center;padding:13px 0 0;margin-top:13px;border-top:1px solid #efeff5;background:none;color:#666d7c;font-size:10px;text-align:left;width:100%}.document-summary>svg{height:16px;width:16px;color:#9691b7}.document-summary strong{display:block;font-size:9px;color:#888a9a;font-weight:400;margin-top:3px}.document-summary>svg:last-child{width:12px;height:12px;margin-left:auto}.document-summary.needs-update strong{color:#ab6249}.satisfaction-panel{text-align:center}.satisfaction-panel .panel-heading{text-align:left}.ring-summary{font-size:10px;font-weight:500;color:#636979;margin-bottom:16px}.reliability-row{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:9px 0;border-top:1px solid #efeff6;font-size:9px;color:#7b8190;text-align:left}.reliability-row strong{font-size:11px;font-weight:500;color:#585e6e;white-space:nowrap}.rail-footnote{font-size:9px;color:#84899a;line-height:1.7;margin-top:12px}.day-pills{display:flex;justify-content:center;gap:7px;margin:16px 0 0}.day-pills span{display:grid;gap:3px;background:#eeedf7;border-radius:6px;padding:5px 7px;min-width:27px}.day-pills small{font-size:8px;color:#818598}.day-pills strong{font-size:11px;font-weight:500;color:#60677a}
.lessons-section{scroll-margin-top:24px;min-width:0}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.section-heading h2{font-size:16px}.count-label{font-size:10px;color:#7a8092;font-weight:400;margin-left:5px;letter-spacing:0}.section-kicker{font-size:10px;color:#7e8495}.filters{display:grid;grid-template-columns:minmax(130px,1.3fr) repeat(3,minmax(90px,1fr));gap:0;margin-bottom:15px;background:#fff;padding:12px 3px;border-radius:13px}.filter{padding:0 12px;border-right:1px solid #eaeaf2;min-width:0}.filter:last-child{border:0}.filter label{display:flex;gap:5px;align-items:center;font-size:9px;color:#818798;margin-bottom:4px}.filter label svg{width:11px;height:11px}.filter input,.filter select{border:0;width:100%;padding:0;height:24px;color:#545d6e;background:transparent;font-size:11px;min-width:0}.filter input::placeholder{color:var(--text-muted,#475569);opacity:1}.lesson-card:hover{border-color:#d7d3e8;box-shadow:0 4px 16px #57527208}.tag{display:inline-flex;align-items:center;gap:4px;padding:3px 6px;line-height:1.5;font-size:9px;font-weight:500;border-radius:5px;max-width:100%}.tag svg{height:11px;width:11px}.tag.neutral{background:#efedf7;color:#6b678b}.tag.success{background:#e7f0ec;color:#38695b}.tag.warning{background:#fff0d9;color:#8a683a}.tag.error{background:#fde7df;color:#a4563e}.tag.verified{background:#e6eeed;color:#3e6868;font-size:9px}.lesson-title:hover{color:#8c6d9f}.card-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:12px;border-top:1px solid #eeedf5;padding-top:10px;font-size:9px;color:#858b98}.card-bottom strong{font-weight:550;color:#6a6988}.price{font-size:21px;font-weight:550;letter-spacing:-.8px;color:#2d4341;line-height:1.3;white-space:nowrap}.price small{font-size:9px;font-weight:400;letter-spacing:0;color:#7b8293}.card-right .btn{margin-top:auto}.card-status{font-size:9px;color:#6c7d7a;margin-top:8px}.conflict-text{color:#a26f4c}.status-tabs{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:14px}.status-tab{background:#e6e5f1;color:#6e6c85;padding:8px 13px;border-radius:20px;font-size:11px}.status-tab.active{background:var(--teal);color:#fff}
.empty{background:#fff;padding:36px 22px;border:1px dashed #d8d5e5;border-radius:16px;text-align:center;color:#818798}.empty>svg{width:30px;height:30px;color:#9c94b9;margin-bottom:10px}.empty h3{font-size:15px;color:#5b6476;margin-bottom:8px}.empty p{font-size:11px;line-height:1.8;max-width:460px;margin:auto}.empty .btn{margin-top:17px}.loading{padding:80px;text-align:center;color:#858799}.footer{padding:18px 20px 19px;margin-top:auto;font-size:9px;color:#858b98;display:flex;justify-content:space-between;gap:15px}.footer b{font-weight:400;padding:0 4px}.teacher-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.teacher-card .btn{margin-top:15px}.tags{display:flex;flex-wrap:wrap;gap:7px;margin-top:13px}.teacher-card .tags{margin:14px 0}.stars{color:#b07730;letter-spacing:1px;font-size:12px;white-space:nowrap}.rating-text{font-size:12px;font-weight:500;color:#555f70}.rating-text small{font-weight:400;font-size:10px;color:#81899a}
.profile-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:20px}.wide-panel{background:#fff;border-radius:17px;padding:22px;min-width:0}.profile-detail-section{margin-top:23px;padding-top:21px;border-top:1px solid #e9e8f2}.profile-detail-section:first-child{margin-top:0;padding-top:0;border:0}.profile-detail-section h3{margin-bottom:12px}.profile-detail-section p{font-size:12px;line-height:1.9;color:#788191}.profile-detail-section .tags{margin-top:13px}.review-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0}.review-box{background:#f3f2f9;border-radius:10px;padding:15px}.review-box h4{font-size:12px;font-weight:500;margin-bottom:7px}.review-box p{font-size:11px;margin-top:4px}.document-row{display:flex;align-items:center;gap:12px;border:1px solid #e3e1ee;border-radius:11px;padding:14px;margin-top:11px}.document-row>svg{color:#8d87b0}.document-row h4{font-size:12px;font-weight:500}.document-row p{font-size:10px;color:#818798;margin-top:4px}.document-row .tag{margin-top:6px}.document-row .btn{margin-left:auto}.profile-modal-header{display:flex;align-items:center;gap:16px;margin-bottom:22px}.profile-modal-header h3{font-size:23px}.profile-modal-header p{font-size:11px;color:#818799;margin-top:4px}.profile-modal-header .tag{margin-top:8px}
.activity-list{padding:3px 23px;background:#fff;border-radius:17px}.activity{display:flex;gap:14px;padding:19px 0;border-bottom:1px solid #ecebf4}.activity:last-child{border:0}.activity-icon{display:grid;place-items:center;width:33px;height:33px;border-radius:10px;background:#efedf7;color:#9287b2;flex-shrink:0}.activity-icon svg{height:17px;width:17px}.activity p{font-size:12px;line-height:1.8}.activity small{display:block;font-size:10px;color:#858b9b;margin-top:4px}.plan-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;max-width:900px}.plan-card{background:#fff;border-radius:20px;padding:27px;border:1px solid transparent}.plan-card.pro{background:#f8ede7;border-color:#f5c2ad}.plan-card h2{font-size:28px;margin:15px 0 9px}.plan-card>p{font-size:12px;color:#7c7c8c;min-height:40px}.plan-card ul{list-style:none;padding:20px 0;margin:15px 0;border-top:1px solid #e4ddd9;display:grid;gap:13px}.plan-card li{font-size:12px;color:#64716e}.plan-card li::before{content:'✓';margin-right:9px;color:var(--teal)}.plan-card .btn{margin-top:10px}.notice{background:#f1eff8;border:1px solid #e7e2f2;border-radius:10px;padding:13px 15px;margin-bottom:18px;color:var(--text-muted,#475569);font-size:11px;line-height:1.8}.notice.warning{background:#fff2e3;border-color:#f3dfc0;color:#8e683d}.notice.success{background:#edf4ef;border-color:#d6e8dd;color:#4e7665}.notice>svg{height:15px;width:15px;vertical-align:middle;margin-right:4px}.table-wrap{overflow:auto}.message-table{border-collapse:collapse;width:100%;font-size:11px;text-align:left}.message-table th{font-size:9px;font-weight:500;color:#818799;border-bottom:1px solid #e8e7f2;padding:13px 9px}.message-table td{padding:14px 9px;border-bottom:1px solid #f0eff5}.message-table tr:last-child td{border:0}.message-table td small{font-size:10px;color:#868a99}
dialog{width:min(700px,calc(100vw - 30px));padding:0;border:1px solid #e6e1ee;border-radius:21px;max-height:90vh;background:white;color:var(--ink);box-shadow:0 26px 100px #2f2b4933}dialog::backdrop{background:#3836479e;backdrop-filter:blur(5px)}.modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:17px;padding:25px 26px 20px;border-bottom:1px solid #ebe9f2}.modal-header h2{font-size:20px}.modal-header p{font-size:11px;line-height:1.7;color:#818494;margin-top:6px}.modal-close{background:#eeebf5;color:#7a729b;border-radius:50%;width:29px;height:29px;font-size:20px;line-height:1;flex-shrink:0}.modal-body{padding:23px 26px 27px}.modal-footer{display:flex;justify-content:flex-end;align-items:center;gap:9px;padding-top:20px;margin-top:20px;border-top:1px solid #e7e5ef}.modal-label{font-size:10px;text-transform:uppercase;letter-spacing:.9px;color:#858296;margin:20px 0 10px}.modal-label:first-child{margin-top:0}.account-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.account-option{display:flex;align-items:center;gap:10px;text-align:left;border:1px solid #e8e5f1;background:#f6f5fa;padding:13px;border-radius:12px;color:var(--ink)}.account-option:hover{background:#fbeddf;border-color:#f0c5b0}.account-option .avatar{width:34px;height:34px;font-size:10px}.account-option strong{display:block;font-size:12px;font-weight:550}.account-option small{display:block;font-size:9px;color:#818194;margin-top:4px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.field{display:grid;gap:6px}.field.full{grid-column:1/-1}.field label{font-size:11px;color:#697286;font-weight:500}.field input,.field select,.field textarea{width:100%;padding:10px 12px;border:1px solid #ddd9e9;border-radius:9px;background:#fdfcfe;color:#4e5668;font-size:12px}.field textarea{min-height:90px;resize:vertical}.form-error{background:#fff0e9;border:1px solid #f2d2c4;border-radius:9px;color:#a15c44;font-size:11px;padding:11px;margin-top:14px}.form-error:empty{display:none}.lesson-details{display:grid;grid-template-columns:1fr 1fr;gap:17px;margin-bottom:22px}.detail-item small{font-size:9px;color:#8a879a;display:block;margin-bottom:5px}.detail-item strong{font-size:12px;font-weight:500}.detail-item .price{font-size:21px}.detail-description{font-size:12px;line-height:1.9;color:#7b8293}.candidate{border:1px solid #e5e0ef;border-radius:13px;padding:16px;margin-top:13px}.candidate-head{display:flex;align-items:center;gap:10px}.candidate-info{flex:1;min-width:0}.candidate-info strong{font-size:13px;font-weight:550}.candidate-info small{display:block;font-size:9px;color:#85849a;margin-top:3px}.queue-number{font-size:11px;color:#9692a8;width:18px}.candidate-head>.tag{max-width:160px}.candidate-stats{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:10px;color:#7e8194;margin-top:12px}.candidate-stats b{color:#ab763b;font-weight:500}.candidate-foot{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:14px}.candidate-foot .btn:last-child{margin-left:auto}.candidate .notice{padding:8px 10px;margin:10px 0 0;font-size:10px}.message-preview{margin-top:16px;padding:20px;border-radius:13px;background:#f2edf7;color:#6b5a7e;font-size:12px;line-height:1.9;white-space:pre-line}.guide-step{display:flex;gap:13px;margin-bottom:21px}.guide-step>span{display:grid;place-items:center;width:27px;height:27px;border-radius:8px;background:#fbdccb;color:#8c5843;font-size:11px;flex-shrink:0}.guide-step h3{font-size:13px}.guide-step p{font-size:11px;line-height:1.8;color:#818294;margin-top:5px}.certificate{background:#f6f3fa;border:3px double #b6aec9;text-align:center;padding:25px}.certificate .stamp{font-size:38px;color:#9b8db7;margin:15px 0}.certificate h3{font-size:25px;margin:22px 0 8px}.certificate p{font-size:12px;color:#857c99;margin-bottom:10px}.certificate .notice{margin:20px 0 0}.toast{position:fixed;left:50%;bottom:25px;transform:translate(-50%,20px);background:#3e6868;color:#fff;padding:14px 21px;border-radius:13px;box-shadow:0 8px 30px #3b40512b;max-width:min(550px,calc(100vw - 40px));font-size:12px;opacity:0;pointer-events:none;z-index:100;transition:opacity .2s,transform .2s}.toast.show{opacity:1;transform:translate(-50%,0)}.toast.error{background:#984f3b}
@media(min-width:1500px){.sidebar{width:215px}.right-rail{padding-left:20px}.metric{min-height:155px;padding:16px 18px}.metric-label{font-size:11px}.metric-value{font-size:38px}.metric-foot{font-size:10px}.panel-heading h2{font-size:14px}.overview-panel{padding:19px 22px 15px}.rail-panel{padding:18px}.quick-card{min-height:123px}}
@media(max-width:1250px){body{padding:20px}.dashboard-frame{min-height:calc(100vh - 40px)}.topbar{gap:15px;padding:17px 16px;margin:0 12px;min-height:80px}.brand{font-size:21px;min-width:165px}.brand-symbol{width:35px;height:35px;font-size:23px}.quick-search{max-width:350px;font-size:11px}.sidebar{width:176px;padding-right:11px}.workspace{padding:8px}.workspace small{font-size:8px}.nav-item{font-size:10px;padding:11px 10px;gap:8px}.nav-caption{font-size:8px}.sidebar-note{padding:13px 11px}.sidebar-note strong{font-size:14px}.sidebar-note p{font-size:10px}.sidebar-link{font-size:10px}.top-actions{gap:8px}.account-button{min-width:158px}.account-label strong{font-size:11px}.account-label small{font-size:9px}.right-rail{padding-left:13px}.metric{padding:13px 11px;min-height:143px}.metric-value{font-size:30px}.metric-foot{font-size:8px}.metric-label{font-size:10px}.overview-panel{padding:15px 13px 12px}.panel-heading h2{font-size:12px}.discipline-overview{grid-template-columns:110px minmax(0,1fr);gap:7px}.distribution-chart{width:110px;height:110px}.discipline-legend{font-size:9px;gap:12px}.chart-caption{font-size:9px}.quick-panels{gap:10px}.quick-card{padding:14px 12px}.quick-label{font-size:10px}.quick-card>strong{font-size:23px}.quick-detail{font-size:9px}.quick-activity{font-size:10px}.filters{grid-template-columns:minmax(115px,1.2fr) repeat(3,minmax(78px,1fr))}.filter{padding:0 8px}.filter input,.filter select{font-size:10px}.filter label{font-size:8px}.card-right .btn{font-size:10px;padding:9px 11px}.price{font-size:20px}.card-bottom{font-size:8px}.rail-panel{padding:15px 12px}.rail-stat-row{gap:8px;padding:8px}.rail-stat-icon{width:25px}.rail-stat-row strong{font-size:17px}.rail-stat-row small{font-size:8px}.rail-person{gap:7px}.rail-person h3{font-size:12px}.tag.verified{font-size:8px}.discipline-scores small{font-size:8px}.score-box{min-width:34px;font-size:10px}.discipline-scores strong{font-size:9px}.day-pills{gap:5px}.day-pills span{padding:5px;min-width:25px}}
@media(max-width:1100px){body{padding:16px}.dashboard-frame{min-height:calc(100vh - 32px)}.right-rail{border-left:0;border-top:1px solid var(--line);padding:18px 0 0;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start}.brand{min-width:156px}.sidebar{width:165px}.metric{padding:14px 15px;min-height:144px}.metric-label{font-size:11px}.metric-foot{font-size:9px}.overview-panel{padding:18px}.panel-heading h2{font-size:13px}.discipline-overview{grid-template-columns:130px minmax(0,1fr);gap:14px}.distribution-chart{width:130px;height:130px}.discipline-legend{font-size:11px}.quick-label{font-size:11px}.quick-detail{font-size:10px}.quick-activity{font-size:11px}.filters{grid-template-columns:1.2fr 1fr 1fr 1fr}.filter label{font-size:9px}.filter input,.filter select{font-size:11px}.teacher-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.account-button{min-width:150px}.quick-search{max-width:310px}.round-action{width:35px;height:35px}.quick-search input{font-size:11px}.page-heading h1{font-size:25px}}
@media(max-width:860px){body{padding:12px}.dashboard-frame{min-height:calc(100vh - 24px);border-radius:20px}.topbar{gap:14px;flex-wrap:wrap;padding:15px 9px}.brand{min-width:0;margin-right:auto;font-size:21px}.quick-search{order:3;width:100%;max-width:none;min-height:39px}.top-actions{gap:9px}.account-button{min-width:155px}.dashboard-body{padding:15px 12px 0}.sidebar{width:64px;padding-right:9px}.workspace,.nav-caption,.sidebar-note,.sidebar-link,.local-status{display:none}.nav-item{padding:12px 9px;justify-content:center;width:45px;height:45px;border-radius:15px}.nav-item.active{background:var(--coral)}.nav-item.active>svg{color:#493a34}.nav-item.active::after,.nav-text,.nav-count{display:none}.nav-item svg{width:19px;height:19px}nav{gap:10px}.sidebar{min-height:calc(100vh - 195px)}main{padding:0 16px 23px}.demo-strip{margin:0 16px 17px;gap:8px;font-size:9px}.demo-strip button{font-size:9px}.demo-strip #reset-button{display:none}.page-heading{align-items:flex-start;gap:12px}.page-heading h1{font-size:24px}.page-heading p{font-size:11px}.eyebrow{font-size:8px}.heading-action{padding-top:22px}.heading-action .btn{padding:9px 11px;font-size:10px}.metric{padding:14px 12px;min-height:137px}.metric-label{font-size:10px}.metric-foot{font-size:8px}.metric-value{font-size:28px}.overview-panel{padding:15px 12px}.panel-heading h2{font-size:12px}.discipline-overview{grid-template-columns:108px minmax(0,1fr);gap:7px}.distribution-chart{width:108px;height:108px}.discipline-legend{font-size:10px}.quick-card{padding:14px 12px}.quick-label{font-size:10px}.right-rail{gap:12px}.right-rail .rail-person{align-items:start;flex-wrap:wrap}.right-rail .rail-stat-row{gap:5px}.right-rail .rail-stat-icon{width:24px}.right-rail .ring-summary{font-size:9px}.reliability-row{font-size:8px}.right-rail .document-summary{flex-wrap:wrap}.right-rail .document-summary>svg:last-child{display:none}.footer{padding:16px;font-size:8px}.footer>span:last-child{display:none}.profile-layout{grid-template-columns:220px minmax(0,1fr)}}
@media(max-width:650px){body{padding:0;background:var(--page)}.dashboard-frame{border:0;border-radius:0;box-shadow:none;min-height:100vh}.topbar{margin:0 12px;padding:14px 0;gap:13px}.brand{font-size:20px}.brand-symbol{width:32px;height:32px;font-size:22px}.account-button{min-width:0;padding-right:8px}.account-label{display:none}.account-button>svg{width:12px}.top-actions{gap:7px}.round-action{width:32px;height:32px}.round-action svg{width:18px;height:18px}.account-button .avatar{width:27px;height:27px;font-size:10px}.quick-search{padding-left:15px}.dashboard-body{padding:13px 8px 0}.sidebar{width:51px;padding-right:6px}.nav-item{width:39px;height:41px;padding:11px 8px;border-radius:12px}.nav-item svg{width:18px;height:18px}main{padding:0 12px 20px}.demo-strip{margin:0 12px 17px;font-size:9px;align-items:flex-start;line-height:1.7;gap:6px}.demo-pill{font-size:7px;padding:3px 5px;flex-shrink:0}.demo-strip>span:nth-child(2){max-width:280px}.demo-strip #help-button-top{font-size:9px;margin-left:auto;flex-shrink:0;padding:2px 0}.page-heading{display:block;margin-bottom:20px}.page-heading h1{font-size:24px;letter-spacing:-.7px}.page-heading p{font-size:11px;line-height:1.8}.eyebrow{font-size:8px}.heading-action{padding-top:13px}.heading-action .btn{min-height:36px}.metric{min-height:143px;padding:15px}.metric-label{font-size:11px;min-height:28px}.metric-value{font-size:33px}.metric-foot{font-size:9px}.metric-row:not(.four-metrics) .metric{padding:12px 9px;min-height:134px}.metric-row:not(.four-metrics) .metric-value{font-size:26px}.metric-row:not(.four-metrics) .metric-label{font-size:9px}.metric-row:not(.four-metrics) .metric-foot{font-size:8px}.overview-panel{padding:18px}.panel-heading h2{font-size:14px}.panel-subtitle{font-size:11px}.discipline-overview{grid-template-columns:140px minmax(0,1fr);gap:20px;min-height:151px}.distribution-chart{width:140px;height:140px}.discipline-legend{font-size:12px}.discipline-legend strong{font-size:13px}.chart-caption{font-size:10px}.quick-panels{grid-template-columns:1fr;gap:10px;margin-bottom:22px}.quick-card{min-height:99px;padding:16px 18px}.quick-label{font-size:12px}.quick-card>strong{font-size:27px}.quick-detail{font-size:10px}.quick-activity{font-size:12px}.right-rail{grid-template-columns:1fr}.rail-panel{padding:20px}.right-rail .rail-person{flex-wrap:nowrap;align-items:center}.rail-person h3{font-size:15px}.rail-person p{font-size:11px}.rail-panel>.tag{font-size:10px}.rail-stat-row{padding:11px}.rail-stat-row strong{font-size:21px}.rail-stat-row small{font-size:11px}.rail-stat-icon{width:36px!important;height:36px}.discipline-scores strong{font-size:12px}.discipline-scores small{font-size:10px}.score-box{min-width:44px;height:39px;font-size:12px}.document-summary{font-size:12px}.document-summary strong{font-size:10px}.right-rail .document-summary{flex-wrap:nowrap}.right-rail .ring-summary{font-size:12px}.reliability-row{font-size:11px}.reliability-row strong{font-size:12px}.rail-footnote{font-size:10px}.day-pills{gap:9px}.day-pills span{min-width:34px;padding:7px}.day-pills small{font-size:10px}.day-pills strong{font-size:13px}.filters{grid-template-columns:1fr 1fr;gap:11px 0;padding:12px 3px}.filter{padding:0 10px}.filter:nth-child(2){border-right:0}.filter:nth-child(1),.filter:nth-child(2){padding-bottom:9px;border-bottom:1px solid #efedf5}.filter label{font-size:9px}.filter input,.filter select{font-size:11px}.price{font-size:21px}.price small{display:block;font-size:9px;margin-top:2px}.card-right .btn{font-size:10px;padding:9px 10px;min-height:35px}.card-right .btn svg{display:none}.card-status{font-size:8px;max-width:92px;line-height:1.7}.card-bottom{font-size:9px;align-items:flex-start;line-height:1.7}.card-bottom>span:last-child{display:none}.tag{font-size:8px}.section-heading h2{font-size:16px}.count-label{font-size:9px}.section-kicker{display:none}.teacher-grid,.plan-grid,.profile-layout{grid-template-columns:1fr}.teacher-card .tag{font-size:10px}.teacher-card .btn{font-size:12px}.profile-layout>.rail-panel{height:fit-content}.wide-panel{padding:19px}.footer{padding:14px 12px;font-size:8px;line-height:1.8}.account-grid,.form-grid,.review-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.modal-header{padding:21px 19px 17px}.modal-header h2{font-size:19px}.modal-body{padding:20px 19px 23px}.modal-footer{flex-wrap:wrap}.document-row{flex-wrap:wrap}.document-row .btn{margin-left:32px}.lesson-details{gap:14px;grid-template-columns:1fr}.candidate-head{flex-wrap:wrap;gap:8px}.candidate-head>.tag{margin-left:27px;max-width:none}.candidate-info{min-width:130px}.candidate-foot{gap:10px}.candidate-foot>.text-button{width:100%;text-align:left}.candidate-foot .btn:last-child{margin-left:auto}.toast{font-size:11px;bottom:20px}.plan-card{padding:23px}.form-grid{gap:14px}}
@media(max-width:380px){.brand{font-size:18px;gap:6px}.brand-symbol{width:28px;height:28px;font-size:20px}.round-action{width:29px;height:29px}.top-actions{gap:5px}.account-button{padding:5px 7px}.account-button .avatar{width:25px;height:25px}.sidebar{width:44px;padding-right:5px}.nav-item{width:33px;height:39px}.dashboard-body{padding-left:5px;padding-right:5px}main{padding-left:9px;padding-right:9px}.demo-strip{margin-left:9px;margin-right:9px}.metric{padding:13px 11px}.metric-label{font-size:10px}.metric-foot{font-size:8px}.metric-value{font-size:30px}.discipline-overview{grid-template-columns:110px minmax(0,1fr);gap:10px}.distribution-chart{width:110px;height:110px}.discipline-legend{font-size:11px}.overview-panel{padding:15px}.price{font-size:19px}.heading-action .btn{font-size:11px}.page-heading h1{font-size:23px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
@media(min-width:861px){.sidebar{position:sticky;top:18px;align-self:flex-start;height:calc(100vh - 158px);min-height:620px}}
@media(min-width:651px) and (max-width:860px){.metric{min-height:143px;padding:15px 17px}.metric-label{font-size:11px}.metric-value{font-size:33px}.metric-foot{font-size:10px}.overview-panel{padding:19px}.panel-heading h2{font-size:14px}.discipline-overview{grid-template-columns:140px minmax(0,1fr);gap:20px}.distribution-chart{width:140px;height:140px}.discipline-legend{font-size:12px}.right-rail{grid-template-columns:1fr 1fr}.right-rail>.satisfaction-panel{grid-column:1/-1}.quick-panels{grid-template-columns:1fr}.quick-card{min-height:95px;padding:16px 19px}.quick-label{font-size:12px}.quick-detail{font-size:10px}.quick-activity{font-size:12px}}
@media(max-width:860px){.sidebar{position:sticky;top:12px;align-self:flex-start;height:calc(100vh - 24px);min-height:0}}

/* Three local design studies share the same account, data and actions. */











/* Shared dark surfaces, including every secondary page and dialog. */
























































.matrix-0 .lit{fill:#fc789c}.matrix-1 .lit{fill:#19eed6}.matrix-2 .lit{fill:#bca9f2}
.matrix-0 .lit:nth-child(3n){fill:#ffa46b}.matrix-1 .lit:nth-child(3n){fill:#c7ef72}.matrix-2 .lit:nth-child(3n){fill:#4aaddd}

.month-panel .panel-heading h2{text-transform:capitalize}

.month-day.today{outline:1px solid var(--accent);outline-offset:-1px;color:var(--accent)}


/* Reference 1 — violet command desk, segmented gauges and cyan type. */
.segment-gauge .gauge-tick{stroke:#332040;stroke-width:4.5;stroke-linecap:butt}.segment-gauge .gauge-tick.lit{stroke:#06dfd7}.segment-gauge .gauge-tick.lit:nth-child(3n){stroke:#57aadf}.gauge-1 .gauge-tick.lit{stroke:#f876a1}.gauge-1 .gauge-tick.lit:nth-child(3n){stroke:#d891e6}.gauge-2 .gauge-tick.lit{stroke:#d3ed74}.gauge-2 .gauge-tick.lit:nth-child(3n){stroke:#34eecb}
.segment-gauge text{fill:var(--ink);font:300 22px var(--font);text-anchor:middle;stroke:none;letter-spacing:-.5px}

/* Reference 2 — outlined charcoal widgets and glossy, tactile controls. */
.energy-hero-grid>.overview-panel{min-height:300px;padding:25px 27px}

.spotlight-copy .eyebrow{display:block;font-size:9px;letter-spacing:1.4px;margin-bottom:12px}
.spotlight-open:hover{filter:brightness(1.1);transform:translateY(-2px)}


.energy-orb{display:grid;place-items:center;width:108px;height:108px;border-radius:50%;background:linear-gradient(160deg,var(--orb-dark),var(--orb-light));border:4px solid var(--orb-edge);box-shadow:inset 0 -6px 13px #0002,0 6px 14px #0002;transition:transform .18s}
.energy-orb svg{width:47px;height:47px;color:white;stroke-width:1.7}.energy-metric:hover .energy-orb{transform:translateY(-4px);filter:brightness(1.08)}
.energy-counter{display:grid;gap:3px;justify-items:center}

.upcoming-item:hover strong{color:var(--accent)}

@media(min-width:1700px){}
@media(max-width:1250px){.energy-hero-grid>.overview-panel{padding:23px}.energy-orb{width:98px;height:98px}}
@media(max-width:1100px){.energy-orb{width:110px;height:110px}}
@media(max-width:900px){.energy-hero-grid>.overview-panel{min-height:265px}}
@media(max-width:860px){.energy-orb{width:95px;height:95px}}
@media(max-width:700px){.energy-orb{width:105px;height:105px}}
@media(max-width:650px){.energy-hero-grid>.overview-panel{padding:21px 18px;min-height:0}.spotlight-copy .eyebrow{font-size:8px;line-height:1.7;letter-spacing:1px}.energy-orb{width:94px;height:94px}.energy-orb svg{width:39px;height:39px}}
@media(max-width:380px){.energy-orb{width:85px;height:85px}.energy-hero-grid>.overview-panel{padding:18px 14px}}
/* Instructor accounts and editable professional profiles */
.avatar img{width:100%;height:100%;object-fit:cover;border-radius:inherit}.avatar{overflow:hidden;flex-shrink:0}
.local-account-actions{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:28px}
.is-guest .sidebar,.is-guest .quick-search,.is-guest #settings-button,.is-guest #notifications-button,.is-guest .demo-strip,.is-guest .footer{display:none}.is-guest .dashboard-body{display:block}.is-guest .topbar{display:flex;justify-content:space-between}.is-guest .app-shell{width:100%;min-width:0}.is-guest #main{padding:42px}
.access-layout{display:grid;grid-template-columns:1.1fr 1fr;gap:64px;max-width:1100px;margin:0 auto;align-items:center;min-height:640px}.access-story h1{font-size:clamp(36px,4vw,58px);line-height:1.08;letter-spacing:-2px;margin:20px 0}.access-story>p{font-size:16px;line-height:1.7;max-width:440px}.access-card{padding:34px;background:var(--surface,var(--paper));border:1px solid var(--line,#e4e4ee);border-radius:24px;box-shadow:0 20px 60px #0000000b}.access-card h2{font-size:29px;line-height:1.2;letter-spacing:-1px;margin:25px 0 12px}.access-card p{line-height:1.65}.access-card .field{margin-top:17px}.access-card form>.btn{margin-top:24px}.auth-tabs{display:flex;gap:8px;border-bottom:1px solid var(--line,#ddd);padding-bottom:12px}.auth-tabs button{border:0;background:none;color:inherit;padding:9px 16px;border-radius:30px;cursor:pointer}.auth-tabs button.selected{background:var(--coral,#fa9774);color:#1e2630;font-weight:700}.access-orbit{display:flex;gap:20px;align-items:center;margin:32px 0;padding:25px;border:1px solid var(--line,#ddd);border-radius:24px;background:linear-gradient(120deg,#fa977420,#8c87b625)}.access-orbit>svg{width:58px;height:58px;color:var(--coral,#fa9774)}.access-orbit span{font-size:12px;letter-spacing:2px;line-height:2}.access-orbit strong{font-size:17px}.access-orbit i{font-size:34px;color:var(--coral,#fa9774);margin-left:auto}.access-benefits{display:flex;flex-wrap:wrap;gap:14px}.access-benefits span{font-size:12px;display:flex;align-items:center;gap:6px}.access-benefits svg{width:17px;height:17px}.access-note{font-size:12px!important;opacity:.72}.mail-preview>.btn,.mail-preview>.text-button{margin-top:24px}
.profile-editor-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:26px}.editor-summary{padding:28px 10px;align-self:start;position:sticky;top:24px}.editor-summary h2{font-size:30px;line-height:1.2;margin:20px 0 10px}.editor-summary>p{line-height:1.6;opacity:.7}.editor-steps{display:grid;gap:22px;margin:32px 0}.editor-steps span{display:flex;gap:18px;color:var(--coral,#fa9774);font-size:12px}.editor-steps b{color:var(--text,#252832);font-size:13px}.profile-editor{padding:30px}.profile-editor section+section{border-top:1px solid var(--line,#e4e4ee);padding-top:30px;margin-top:30px}.section-kicker{font-size:10px;letter-spacing:1.7px;font-weight:700;color:var(--muted,#777);margin-bottom:10px}.profile-editor h2{font-size:22px;margin:8px 0 20px}.profile-editor h2 small{font-size:12px;opacity:.6;font-weight:400}.profile-editor p,.proposal-panel p{font-size:13px;line-height:1.65}.profile-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px}.profile-editor .field{margin-bottom:18px}.profile-editor input:not([type=checkbox]),.profile-editor textarea,.profile-editor select,.access-card input,.proposal-panel input{width:100%;box-sizing:border-box}.field small{display:block;font-size:11px;opacity:.7;line-height:1.6;margin-top:7px}.photo-editor{display:flex;align-items:center;gap:24px;margin:26px 0}.photo-editor .field{min-width:0;margin:0}.photo-editor input[type=file]{font-size:12px;padding:8px 0;border:0;background:none}.private-email{display:flex;flex-wrap:wrap;gap:8px 24px;padding:14px 18px;border-radius:12px;background:#8888880d;margin:0 0 20px;font-size:13px}.private-email span{font-size:11px;opacity:.7}.discipline-choices{display:flex;flex-wrap:wrap;gap:10px;margin:15px 0}.discipline-choice{cursor:pointer;display:flex;gap:8px;align-items:center;padding:11px 15px;border:1px solid var(--line,#ddd);border-radius:30px;font-size:13px}.discipline-choice:has(input:checked){border-color:var(--coral,#fa9774);background:#fa977418}.discipline-choice input,.inline-check input{accent-color:#de7d5a;width:16px;height:16px}.experience-editor{border:1px solid var(--line,#ddd);padding:22px;border-radius:16px;position:relative;margin:24px 0}.experience-editor legend{font-size:12px;font-weight:700;padding:0 8px}.experience-editor .remove-experience{display:block;margin:0 0 16px auto}.inline-check{display:flex;gap:9px;align-items:center;font-size:12px;margin:0 0 18px}.profile-save{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;padding-top:20px}.proposal-panel{padding:26px 30px;margin-top:22px}.proposal-panel form{display:flex;align-items:end;flex-wrap:wrap;gap:12px}.proposal-panel .field{flex:1;min-width:180px}.proposal-panel .form-error{width:100%}.proposal-list{display:grid;gap:10px;margin-top:16px}.proposal-list span{font-size:13px}.proposal-list small{display:inline-block;opacity:.6;margin-left:12px}.experience-display{padding:18px 0;border-bottom:1px solid var(--line,#ddd)}.experience-display h4{margin:0 0 7px}.experience-display small{opacity:.7}.preserve-lines{white-space:pre-line}

@media(max-width:1050px){.access-layout{gap:28px}.profile-editor-layout{grid-template-columns:185px minmax(0,1fr)}.profile-editor{padding:24px}.editor-summary h2{font-size:25px}}
@media(max-width:760px){.is-guest #main{padding:24px 18px}.access-layout{grid-template-columns:1fr;gap:25px;min-height:0}.access-story h1{font-size:39px}.access-orbit{display:none}.access-story>p{font-size:14px}.access-card{padding:25px}.access-benefits{gap:9px}.access-story .access-note{margin-bottom:5px}.profile-editor-layout{grid-template-columns:1fr}.editor-summary{position:static;display:none}.profile-editor{padding:20px}.profile-fields{grid-template-columns:1fr;gap:0}.photo-editor{gap:15px}.photo-editor .avatar{width:64px;height:64px}.experience-editor{padding:16px}.profile-save>.btn{flex:1}.proposal-panel{padding:22px}.profile-editor h2{font-size:20px}}
.registration-role:hover{border-color:var(--coral);background:#fa977410}.registration-local-note{font-size:11px!important;color:var(--muted);margin:14px 0;line-height:1.6}.registration-selected .tag{display:inline-flex;align-items:center;gap:6px}.registration-selected .text-button{font-size:11px}.registration-selected+.access-card h2{margin-top:18px}.gym-onboarding{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(240px,1fr);gap:26px;max-width:1050px}.gym-onboarding .profile-editor>.private-email{margin-top:20px}.gym-onboarding-note .text-button{margin-top:20px}
@media(max-width:760px){.gym-onboarding{grid-template-columns:1fr}}

@media(max-width:760px){.is-guest .access-card{order:-1}}

/* Additional dashboard directions — same accounts and workflows. */




/* Studio Avorio: warm editorial typography, wine sidebar, quiet ivory canvas. */
/* Club Lime: sport club, oversized numbers and restrained acid accents. */
/* Orizzonte Blu: airy workspace with horizontal navigation and blue surfaces. */

/* Structural alternatives: dedicated task-first markup, without analytics card grid. */



.layout-summary .avatar{width:28px;height:28px;font-size:10px}



.desk-row:hover{background:#f6f8f4}

.desk-course button:hover{text-decoration:underline}
.desk-action .btn{width:100%;justify-content:space-between;text-align:left}.desk-action .btn svg{width:13px}.desk-action .card-status{font-size:9px}

/* Agenda: a paper planner, top navigation, day columns and ticket-shaped lessons. */

.agenda-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:13px;align-items:start}.agenda-day{min-width:0}.agenda-day>header{display:grid;grid-template-columns:1fr auto;align-items:center;border-bottom:1px solid #ccc4b7;padding:0 5px 14px;margin-bottom:15px}.agenda-day>header>span{font-size:10px;text-transform:capitalize;color:var(--muted)}.agenda-day>header>strong{grid-column:1;font-family:Georgia,serif;font-size:38px;font-weight:400;line-height:1.1;margin-top:3px}.agenda-day>header>small{grid-column:2;grid-row:1/3;font-size:8px;color:var(--muted)}.agenda-day.is-today>header{border-bottom:3px solid var(--coral)}.agenda-day.is-today>header>strong{color:#b04425}.day-tickets{display:grid;gap:15px}
.agenda-ticket.sage{background:#e8eee2;border-color:#9cae84}.agenda-ticket.peach{background:#f5e4d8;border-color:#d89977}.agenda-ticket.lavender{background:#e8e4f3;border-color:#aaa0c8}
.ticket-body .btn svg{width:12px;height:12px}.ticket-body .card-status{font-size:9px}.day-clear{border:1px dashed #d5cdbd;border-radius:12px;min-height:100px;padding:20px 12px;font-size:10px;color:#898577;line-height:1.7}
@media(max-width:1300px){}
@media(max-width:1050px){}
@media(max-width:760px){.desk-action .btn{justify-content:center}}
@media(max-width:440px){.day-tickets{grid-template-columns:1fr 1fr;gap:12px}.day-clear{grid-column:1/-1;min-height:0;padding:16px}.day-clear br{display:none}}

/* SOS Pop — bento composition based on the selected visual reference. */



.pop-eyebrow{font-family:monospace;font-size:10px;line-height:1.7;letter-spacing:2px;font-weight:700;margin-bottom:16px}.pop-welcome .pop-eyebrow{color:#6366f1}



.pop-tile:hover{transform:translateY(-3px);filter:brightness(1.04)}.pop-tile:focus-visible{outline-color:white}


.pop-tile.pop-green{background:#00cda0;color:#004d42}
.pop-next{display:flex;align-items:center;gap:16px;width:100%;text-align:left;padding:21px 24px;margin:22px 0 30px;background:#fff;border:1px solid var(--line);border-radius:21px;color:#211d4d}.pop-next>span:nth-child(2){flex:1;min-width:0}.pop-next-icon{display:grid;place-items:center;width:50px;height:50px;border-radius:15px;background:#e9e5ff;flex-shrink:0}.pop-next-icon svg{width:23px}.pop-next small{display:block;font:700 9px monospace;letter-spacing:1.2px;color:#88819c;margin-bottom:5px}.pop-next strong{display:block;font-size:18px;font-weight:750;letter-spacing:-.5px;line-height:1.3}.pop-next>span>span{display:block;font-size:11px;color:var(--muted);margin-top:5px}.pop-next>svg{width:20px}
.pop-workspace{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:24px;align-items:start}.pop-section{min-width:0;padding:26px;background:white;border:1px solid #ecebf1;border-radius:25px}.pop-section .pop-eyebrow{color:#9690b0;font-size:9px;letter-spacing:1.5px;margin-bottom:5px}
.pop-refresh{display:grid;place-items:center;background:#f1eff9;color:#211d4d;border-radius:12px;width:40px;height:40px;flex-shrink:0}.pop-refresh svg{width:18px}
.pop-lessons>.empty{grid-column:1/-1;border-radius:16px}
.pop-lesson{background:#fafaff;border:1px solid #e9e7f4;border-radius:20px;padding:20px;min-width:0;display:flex;flex-direction:column}.pop-card-head{display:flex;gap:8px;justify-content:space-between;align-items:center;flex-wrap:wrap;margin-bottom:18px}.pop-discipline{display:flex;align-items:center;gap:6px;padding:7px 10px;border-radius:10px;font-size:10px;font-weight:650}.pop-discipline svg{width:14px;height:14px}.pop-card-head .tag{font-size:8px;background:transparent;padding:0;color:#8b83a0;white-space:normal}
.pop-lesson-title{display:block;background:none;padding:0;text-align:left;color:#211d4d;font-size:22px;font-weight:800;line-height:1.2;letter-spacing:-.7px;overflow-wrap:anywhere}.pop-lesson-title:hover{color:#7862d3}.pop-location{font-size:11px;color:#817995;line-height:1.7;margin-top:8px}.pop-when{display:flex;gap:10px;align-items:center;justify-content:space-between;margin:22px 0 18px;font-size:10px;flex-wrap:wrap}.pop-when>span{display:flex;align-items:center;gap:6px;color:#817995}.pop-when svg{width:14px;height:14px}.pop-when>strong{color:#514764;font-size:11px;font-weight:600}
.pop-card-footer{display:flex;justify-content:space-between;gap:10px;align-items:end;border-top:1px solid #e8e4f3;padding-top:17px;margin-top:auto}.pop-price{font-size:25px;font-weight:800;letter-spacing:-.7px;color:#211d4d}.pop-price small{font-size:9px;color:#8b829d;font-weight:400;letter-spacing:0}.pop-price>small:last-child{display:block;font-size:9px;margin-top:6px}
.pop-side{display:grid;gap:20px}.pop-profile-note,.pop-activity-note{border-radius:25px;padding:26px;background:#f9d8f0;color:#4e1e4c}.pop-profile-note .pop-note-icon{background:#fa59bf;color:#641143}.pop-note-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;margin-bottom:22px;background:#dfdbf6;color:#47396e}.pop-note-icon svg{width:22px}.pop-side .pop-eyebrow{font-size:9px;letter-spacing:1.3px;margin-bottom:10px}.pop-side h2{font-size:27px;font-weight:800;line-height:1.1;letter-spacing:-1px}.pop-side p:not(.pop-eyebrow){font-size:12px;line-height:1.8;margin:16px 0 21px;color:#875b81}.pop-activity-note{background:#e9e7f6;color:#332454}.pop-activity-note p:not(.pop-eyebrow){color:#807295}.pop-activity-note .text-button svg{width:16px}
@media(max-width:1200px){.pop-workspace{grid-template-columns:minmax(0,1fr) 245px;gap:18px}.pop-side h2{font-size:24px}.pop-profile-note,.pop-activity-note{padding:23px}.pop-section{padding:22px}.pop-card-footer{flex-wrap:wrap}.pop-lesson{padding:18px}}
@media(max-width:950px){.pop-workspace{grid-template-columns:1fr}.pop-side{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.pop-welcome .pop-eyebrow{font-size:8px;letter-spacing:1.5px;margin-bottom:17px}.pop-next{padding:18px 16px;margin:16px 0 23px;gap:12px;border-radius:18px}.pop-next-icon{width:38px;height:38px;border-radius:11px}.pop-next strong{font-size:15px;line-height:1.35}.pop-next small{font-size:8px;letter-spacing:.6px}.pop-next>span>span{font-size:10px}.pop-next>svg{width:15px;flex-shrink:0}.pop-section{padding:19px 15px;border-radius:22px}.pop-refresh{width:34px;height:34px}.pop-lesson{padding:20px}.pop-card-footer{flex-wrap:nowrap}.pop-side{grid-template-columns:1fr}.pop-side h2{font-size:28px}.pop-profile-note,.pop-activity-note{padding:25px}}
@media(prefers-reduced-motion:reduce){.pop-tile{transition:none}.pop-tile:hover{transform:none}}

/* Geometric SOS Pop: one rectangular system throughout the application. */

/* PALESTRA & ISTRUTTORE: Schede con colori differenziati (Apple Tinted Idle) */
/* 1. Home: Indaco Apple */
/* 2. Emergenze & Sostituzioni (Palestra): ROSSO APPLE */
/* 3. Lezioni (Istruttore): Giallo Pop (differente da Home indaco e Candidature azzurro) */
/* 4. Planning (Palestra): Giallo / Amber dorato */
/* 5. Candidature (Istruttore) & Team (Palestra): Azzurro Ciano */
/* 6. Confermate (Istruttore): Verde Smeraldo Apple */
/* 7. Messaggi & Community: Rosa Fucsia */
/* 8. Sede palestra & Profilo istruttore: Viola Pastello */
/* 9. Notifiche (Palestra & Istruttore): ARANCIONE APPLE */

/* STATO ATTIVO: NESSUN NERO O SCURO, COLORI ACCESI APPLE SCOLPITI */

.filters.gym-filters{grid-template-columns:minmax(180px,1.5fr) minmax(130px,1fr) minmax(130px,1fr) auto}
@media(max-width:860px){.filters.gym-filters{grid-template-columns:1fr}}
/* Profile, community, documents, forms, plans and notifications use the same blocks. */

/* Shared discipline tokens live in the stylesheet, respecting the existing CSP. */

/* App refinement: rounded blocks, layered surfaces and a clean, bright canvas. */

/* On phones, primary navigation becomes a thumb-accessible app dock. */

/* Quiet canvas: decorative motifs stay inside the hero, behind readable content. */

/* BENTORNATO IN CIMA GRANDE (Apple Royal Blue luminoso, non troppo scuro) */

.home-page-container > .page-heading,
.home-welcome-banner {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 55%, #3b82f6 100%) !important;
  background-image: linear-gradient(135deg, #1d4ed8 0%, #2563eb 55%, #3b82f6 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 20px !important;
  padding: 24px 28px !important;
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.28) !important;
  margin-bottom: 22px !important;
}


.home-page-container > .page-heading h1,
.home-welcome-banner h1 {
  color: #ffffff !important;
  font-size: 1.6rem !important;
  font-weight: 850 !important;
  letter-spacing: -0.02em !important;
  margin: 4px 0 6px !important;
}


.home-page-container > .page-heading p,
.home-welcome-banner p {
  color: #dbeafe !important;
  font-size: 0.95rem !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}


.home-page-container > .page-heading .eyebrow,
.home-welcome-banner .eyebrow {
  color: #bfdbfe !important;
  font-size: 0.75rem !important;
  font-weight: 850 !important;
  letter-spacing: 1.6px !important;
  text-transform: uppercase !important;
}

/* ============================================================
   REFERENCE POP WELCOME BANNER (Fedele alla reference dell'utente)
   ============================================================ */
.ref-welcome-banner {
  background: linear-gradient(135deg, #181335 0%, #23194c 55%, #2d1e63 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 28px !important;
  padding: 38px 44px !important;
  box-shadow: 0 16px 44px rgba(18, 14, 43, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 32px !important;
  flex-wrap: wrap !important;
  margin-bottom: 24px !important;
  color: #ffffff !important;
  position: relative !important;
  overflow: hidden !important;
}

.ref-welcome-left {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ref-eyebrow {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace !important;
  font-size: 11px !important;
  font-weight: 850 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  color: #9d96db !important;
  margin: 0 !important;
}

.ref-title {
  font-size: clamp(32px, 3.8vw, 50px) !important;
  font-weight: 900 !important;
  line-height: 1.12 !important;
  letter-spacing: -1.6px !important;
  color: #ffffff !important;
  margin: 6px 0 10px !important;
}

.ref-hl-yellow {
  color: #ffd600 !important;
  font-weight: 900 !important;
}

.ref-hl-energy {
  color: #ffffff !important;
  border-bottom: 4px solid #f43f5e !important;
  padding-bottom: 2px !important;
}

.ref-subtitle {
  font-size: 14.5px !important;
  color: #c5c0e9 !important;
  line-height: 1.5 !important;
  margin: 0 !important;
  max-width: 520px !important;
  font-weight: 500 !important;
}

.ref-welcome-right {
  display: flex !important;
  align-items: stretch !important;
  gap: 14px !important;
  flex-wrap: wrap !important;
}

.ref-yellow-tile {
  background: #ffd600 !important;
  color: #1a163a !important;
  border-radius: 22px !important;
  padding: 22px 24px !important;
  width: 195px !important;
  min-height: 195px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  box-shadow: 0 10px 30px rgba(255, 214, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
  cursor: pointer !important;
  transition: transform 0.16s ease, filter 0.16s ease !important;
  user-select: none !important;
}

.ref-yellow-tile:hover {
  transform: translateY(-3px) scale(1.02) !important;
  filter: brightness(1.03) !important;
}

.ref-yellow-sparkle {
  font-size: 26px !important;
  line-height: 1 !important;
  color: #1a163a !important;
}

.ref-yellow-bottom {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

.ref-yellow-num {
  font-size: 60px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  letter-spacing: -2px !important;
  color: #1a163a !important;
}

.ref-yellow-label {
  font-size: 11px !important;
  font-weight: 850 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  line-height: 1.3 !important;
  color: #2a204f !important;
}

.ref-mini-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
}

.ref-mini-tile {
  border-radius: 18px !important;
  padding: 14px 16px !important;
  min-width: 135px !important;
  min-height: 92px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  cursor: pointer !important;
  transition: transform 0.15s ease, filter 0.15s ease !important;
  user-select: none !important;
}

.ref-mini-tile:hover {
  transform: translateY(-2px) !important;
  filter: brightness(1.04) !important;
}

.ref-mini-tile.tile-lavender {
  background: #cfcaff !important;
  color: #1c183b !important;
  box-shadow: 0 4px 16px rgba(207, 202, 255, 0.25) !important;
}

.ref-mini-tile.tile-mint {
  background: #5eead4 !important;
  color: #064e3b !important;
  box-shadow: 0 4px 16px rgba(94, 234, 212, 0.25) !important;
}

.ref-mini-tile.tile-pink {
  background: #f472b6 !important;
  color: #881337 !important;
  box-shadow: 0 4px 16px rgba(244, 114, 182, 0.25) !important;
}

.ref-mini-tile.tile-coral {
  background: #fca5a5 !important;
  color: #7f1d1d !important;
  box-shadow: 0 4px 16px rgba(252, 165, 165, 0.25) !important;
}

.ref-mini-tile.tile-blue {
  background: #93c5fd !important;
  color: #1e3a8a !important;
  box-shadow: 0 4px 16px rgba(147, 197, 253, 0.25) !important;
}

.ref-mini-icon {
  font-size: 18px !important;
  line-height: 1 !important;
}

.ref-mini-num {
  font-size: 26px !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.5px !important;
}

.ref-mini-label {
  font-size: 9.5px !important;
  font-weight: 850 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  line-height: 1.25 !important;
}

@media (max-width: 960px) {
  .ref-welcome-banner {
    padding: 28px 24px !important;
    gap: 24px !important;
  }
  .ref-welcome-right {
    width: 100% !important;
  }
  .ref-yellow-tile {
    width: 100% !important;
    min-height: 140px !important;
  }
  .ref-mini-grid {
    width: 100% !important;
  }
}

/* --- SOS Pop: Apple-Style Relief & Multi-Discipline Scattered Textures --- */

/* 1. Trame di Sfondo Selezionabili: Collage Organico Sparso con Tutte le Discipline */

/* Texture Switcher Toolbar: Apple Glass Capsule */

/* 2. Topbar Apple Glassmorphism */

/* 3. Apple Spring Micro-Interactions */

/* 4. Master Hero Card: Apple Relief & Bandieratura a Sinistra Spaziosa e Coerente */

/* Nessun riquadro interno artificiale: allineamento laser e distanza naturale */

/* Responsive padding per tablet e mobile */

/* 5. Bento Action & Metric Tiles (Apple Relief) */

/* Apple Cushion Relief: Tile Gialla (Metriche / Attivita) */

/* Apple Cushion Relief: Tile Verde (Accettate) */

/* Apple Cushion Relief: Tile Rosa (Candidature) */

/* Apple Cushion Relief: Tile Muted Lilla (Palestre) */

/* Apple Cushion Relief: Tile Azzurra (Crediti) */

/* 6. Prossimo Incarico: iOS Widget Pearl Relief */

/* 7. Intestazione Sezione Lezioni */

/* 8. Filtri Discipline: Chips a Scorrimento con Rilievo Apple */

/* 9. Card Lezione: Frosted Glass & Apple Sculpted Relief */

/* 10. Bottom Sheet nativo per smartphone e schermi stretti */
@media(max-width: 680px) {
  @keyframes popSheetSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }
}


/* --- 11. View Switcher & Multiple Lesson Views (Schede, Lista, Mappa) --- */
.heading-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.view-mode-switch {
  display: inline-flex;
  align-items: center;
  background: rgba(226, 229, 242, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 3px;
  box-shadow: inset 0 1px 2px rgba(33, 29, 77, 0.06), 0 2px 6px rgba(33, 29, 77, 0.03);
}

.view-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #5d5774;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.25, 1, 0.5, 1);
  -webkit-tap-highlight-color: transparent;
}

.view-mode-btn > svg {
  width: 14px;
  height: 14px;
  stroke-width: 2;
}

.view-mode-btn:hover {
  color: #211d4d;
}

.view-mode-btn.active {
  background: #ffffff;
  color: #211d4d;
  box-shadow: 0 2px 8px rgba(33, 29, 77, 0.12), inset 0 1px 0 #ffffff;
}

/* --- A. Vista a Schede (Grid) --- */
.pop-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}

/* --- B. Vista a Lista (Apple High-Density Row) --- */
.pop-list-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.pop-list-header {
  display: grid;
  grid-template-columns: 140px 1.4fr 1.2fr 110px 130px;
  gap: 16px;
  padding: 8px 20px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #7b7593;
  text-transform: uppercase;
}

.pop-list-row {
  display: grid;
  grid-template-columns: 140px 1.4fr 1.2fr 110px 130px;
  gap: 16px;
  align-items: center;
  padding: 14px 20px;
  background: linear-gradient(170deg, #ffffff 0%, #fafbff 100%);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 2px 6px rgba(33, 29, 77, 0.02),
    0 8px 20px -2px rgba(33, 29, 77, 0.05),
    inset 0 1.5px 0.5px #ffffff,
    inset 0 -1px 0.5px rgba(33, 29, 77, 0.03);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.2s ease;
}

.pop-list-row:hover {
  transform: translateY(-2px) scale(1.004);
  box-shadow:
    0 4px 12px rgba(33, 29, 77, 0.04),
    0 14px 28px -4px rgba(33, 29, 77, 0.08),
    inset 0 1.5px 0.5px #ffffff;
}

.pop-list-row:active {
  transform: scale(0.985);
}

.pop-list-row .col-time {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pop-row-day {
  font-size: 10.5px;
  color: #ff59be;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pop-row-hours {
  font-size: 13.5px;
  font-weight: 800;
  color: #211d4d;
  letter-spacing: -0.2px;
}

.pop-list-row .col-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-width: 0;
}

.pop-row-title {
  font-size: 15px;
  font-weight: 800;
  color: #211d4d;
  letter-spacing: -0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.pop-list-row .col-gym {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.pop-row-gym-name {
  font-size: 13px;
  font-weight: 750;
  color: #211d4d;
}

.pop-row-district {
  font-size: 11px;
  color: #78728d;
  display: flex;
  align-items: center;
  gap: 4px;
}

.pop-row-district > svg {
  width: 12px;
  height: 12px;
  color: #ff59be;
}

.pop-list-row .col-price strong {
  font-size: 15.5px;
  font-weight: 850;
  color: #211d4d;
}

.pop-list-row .col-price small {
  font-size: 9.5px;
  color: #7b748f;
}

.pop-list-row .col-action {
  display: flex;
  justify-content: flex-end;
}

.pop-row-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 750;
  background: #f1eff8;
  color: #5b5575;
}

.pop-row-status.pending {
  background: #fff4d1;
  color: #6d4b00;
}

.pop-row-status.accepted {
  background: #dcf7ec;
  color: #0b6140;
}

@media(max-width: 768px) {
  .pop-list-header {
    display: none;
  }
  .pop-list-row {
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 13px 15px;
  }
  .pop-list-row .col-time {
    grid-column: 1 / 2;
  }
  .pop-list-row .col-price {
    grid-column: 2 / 3;
    text-align: right;
  }
  .pop-list-row .col-info {
    grid-column: 1 / 3;
  }
  .pop-list-row .col-gym {
    grid-column: 1 / 2;
  }
  .pop-list-row .col-action {
    grid-column: 2 / 3;
  }
}

/* --- C. Vista a Mappa (Apple Vector Map) --- */
.pop-map-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.map-canvas-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 440px;
  max-height: 580px;
  border-radius: 26px;
  overflow: hidden;
  background: #eaf0f6;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 4px 14px rgba(33, 29, 77, 0.04),
    0 18px 40px -6px rgba(33, 29, 77, 0.08),
    inset 0 1.5px 0.5px #ffffff;
}

/* OpenLayers Viewport & Tiles */
.ol-map-viewport {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: #eef2f7;
  background-image:
    radial-gradient(circle at 45% 45%, rgba(182, 214, 242, 0.45) 0%, rgba(238, 242, 247, 0) 60%),
    linear-gradient(rgba(33, 29, 77, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33, 29, 77, 0.04) 1px, transparent 1px);
  background-size: 100% 100%, 36px 36px, 36px 36px;
  overflow: hidden;
}

.ol-layer canvas {
  filter: contrast(102%) brightness(98%) saturate(88%);
}

/* OpenLayers Controls (Apple Relief) */
.ol-control.ol-zoom {
  position: absolute;
  bottom: 24px;
  left: 18px;
  top: auto;
  display: flex;
  flex-direction: column;
  gap: 7px;
  background: transparent;
  padding: 0;
  border-radius: 0;
  z-index: 25;
}

.ol-control.ol-zoom button {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 12px rgba(33, 29, 77, 0.12), inset 0 1px 0 #ffffff;
  color: #211d4d;
  font-size: 19px;
  font-weight: 800;
  cursor: pointer;
  display: grid;
  place-items: center;
  margin: 0;
  line-height: 1;
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.ol-control.ol-zoom button:hover {
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(33, 29, 77, 0.18), inset 0 1px 0 #ffffff;
}

.ol-control.ol-zoom button:active {
  transform: translateY(1px) scale(0.96);
}

/* Instructor Position Radar Pulse */
.instructor-radar-pin {
  position: relative;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  pointer-events: auto;
  cursor: pointer;
  z-index: 15;
}

.radar-pulse {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(71, 64, 170, 0.22);
  animation: radarPing 2.4s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.radar-pulse.outer {
  width: 58px;
  height: 58px;
  animation: radarPingOuter 2.8s cubic-bezier(0.1, 0.2, 0.7, 1) infinite;
}

.radar-pulse.inner {
  width: 38px;
  height: 38px;
  animation: radarPingInner 2.0s cubic-bezier(0.1, 0.2, 0.7, 1) 0.5s infinite;
}

.instructor-radar-pin.is-live .radar-pulse {
  background: rgba(0, 122, 255, 0.25);
}
.instructor-radar-pin.is-live .radar-pulse.outer {
  background: rgba(0, 122, 255, 0.28);
}
.instructor-radar-pin.is-live .radar-pulse.inner {
  background: rgba(0, 122, 255, 0.40);
}

@keyframes radarPing {
  0% { transform: scale(0.3); opacity: 1; }
  100% { transform: scale(1.7); opacity: 0; }
}

@keyframes radarPingOuter {
  0% { transform: scale(0.25); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

@keyframes radarPingInner {
  0% { transform: scale(0.3); opacity: 0.95; }
  100% { transform: scale(1.45); opacity: 0; }
}

.radar-core {
  position: relative;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #2e2868;
  border: 2.5px solid #ffffff;
  box-shadow: 0 2px 8px rgba(33, 29, 77, 0.35);
  z-index: 2;
  transition: all 0.25s ease;
}

.radar-core.is-live {
  background: radial-gradient(circle at 35% 35%, #5ac8fa 0%, #007aff 100%);
  border-color: #ffffff;
  box-shadow:
    0 0 16px rgba(0, 122, 255, 0.75),
    0 2px 8px rgba(0, 0, 0, 0.35);
}

.radar-label {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  background: rgba(33, 29, 77, 0.94);
  color: #ffffff;
  font-size: 10px;
  font-weight: 750;
  padding: 2.5px 8px;
  border-radius: 7px;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}

.radar-label.is-live {
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(0, 122, 255, 0.45);
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.live-dot {
  display: inline-block;
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  background: #34c759;
  box-shadow: 0 0 8px #34c759;
  margin-right: 5px;
  animation: liveDotPulse 1.4s ease-in-out infinite;
}

@keyframes liveDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

/* Map Real-Time GPS Control */
.map-gps-control {
  position: relative;
  display: flex;
  align-items: center;
  z-index: 25;
}

.map-gps-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 12px 0 10px;
  border-radius: 12px 0 0 12px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-right: none;
  box-shadow: 0 4px 14px rgba(33, 29, 77, 0.12), inset 0 1px 0 #ffffff;
  color: #211d4d;
  font-size: 11.5px;
  font-weight: 750;
  cursor: pointer;
  transition: all 0.18s ease;
}

.map-gps-btn svg {
  width: 17px;
  height: 17px;
  color: #55508a;
  transition: color 0.18s ease, transform 0.18s ease;
}

.map-gps-btn:hover {
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(33, 29, 77, 0.16), inset 0 1px 0 #ffffff;
}

.map-gps-btn:active {
  transform: translateY(1px) scale(0.98);
}

.map-gps-btn.active {
  background: #ffffff;
  color: #007aff;
  box-shadow: 0 4px 16px rgba(0, 122, 255, 0.22), inset 0 1px 0 #ffffff;
}

.map-gps-btn.active svg {
  color: #007aff;
  animation: gpsPulseIcon 2s infinite ease-in-out;
}

@keyframes gpsPulseIcon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.map-gps-btn.loading svg {
  animation: spin 1s linear infinite;
  color: #007aff;
}

.map-gps-menu-toggle {
  width: 26px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 0 12px 12px 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-left: 1px solid rgba(33, 29, 77, 0.08);
  box-shadow: 0 4px 14px rgba(33, 29, 77, 0.12), inset 0 1px 0 #ffffff;
  color: #55508a;
  cursor: pointer;
  transition: all 0.18s ease;
}

.map-gps-menu-toggle:hover {
  background: #ffffff;
  color: #211d4d;
}

/* Map GPS Dropdown */
.map-gps-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 230px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 14px;
  box-shadow:
    0 6px 20px rgba(33, 29, 77, 0.16),
    0 18px 40px -8px rgba(33, 29, 77, 0.22);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  z-index: 30;
  animation: fadeInPop 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.map-gps-dropdown[hidden] {
  display: none !important;
}

.gps-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border-radius: 9px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease;
  width: 100%;
}

.gps-menu-item:hover {
  background: rgba(71, 64, 170, 0.08);
}

.gps-menu-icon {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: rgba(71, 64, 170, 0.1);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #4740aa;
}

.gps-menu-icon.live {
  background: rgba(0, 122, 255, 0.12);
  color: #007aff;
}

.gps-menu-icon svg {
  width: 14px;
  height: 14px;
}

.gps-menu-item div {
  display: flex;
  flex-direction: column;
}

.gps-menu-item strong {
  font-size: 11.5px;
  color: #211d4d;
  line-height: 1.25;
}

.gps-menu-item small {
  font-size: 10px;
  color: #6a64a3;
  margin-top: 1px;
}

.gps-menu-sep {
  padding: 5px 8px 2px;
  font-size: 9.5px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #928cb5;
}

/* Distance Badges */
.pop-dist-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 750;
  color: #4740aa;
  background: rgba(161, 152, 231, 0.18);
  padding: 2.5px 8px;
  border-radius: 999px;
  margin-left: 6px;
}

.pop-dist-badge svg {
  width: 11px;
  height: 11px;
  color: #ff59be;
}

.pop-dist-chip {
  display: inline-block;
  font-size: 10px;
  font-weight: 750;
  color: #4740aa;
  background: #f1effd;
  padding: 1.5px 7px;
  border-radius: 999px;
  margin-left: 6px;
}

.map-callout-distance {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 5px 0 3px;
  font-size: 12px;
  color: #4740aa;
  font-weight: 750;
}

.map-callout-distance svg {
  width: 12px;
  height: 12px;
  color: #ff59be;
}







/* --- Apple / Airbnb Style Map Pill Pin --- */
.map-pill-pin {
  position: relative;
  cursor: pointer;
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: bottom center;
  z-index: 12;
  transition: z-index 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.map-pill-pin:hover,
.map-pill-pin.active {
  z-index: 35;
}

.pill-pin-body {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px 5px 6px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  box-shadow:
    0 3px 10px rgba(33, 29, 77, 0.14),
    0 8px 22px -4px rgba(33, 29, 77, 0.18),
    inset 0 1px 0 #ffffff;
  color: #211d4d;
  font-family: inherit;
  white-space: nowrap;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.22s ease,
              border-color 0.22s ease,
              background 0.22s ease,
              color 0.22s ease;
}

.map-pill-pin:hover .pill-pin-body {
  transform: translateY(-2px) scale(1.04);
  box-shadow:
    0 6px 16px rgba(33, 29, 77, 0.18),
    0 14px 28px -4px rgba(33, 29, 77, 0.24),
    inset 0 1px 0 #ffffff;
  background: #ffffff;
}

.map-pill-pin.active .pill-pin-body {
  transform: translateY(-2px) scale(1.05);
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #ffffff;
  border-color: #4f46e5;
  box-shadow:
    0 6px 20px rgba(99, 102, 241, 0.35),
    0 18px 36px -4px rgba(99, 102, 241, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* Tip / Arrow pointing to exact location */
.pill-pin-tip {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid rgba(255, 255, 255, 0.95);
  margin-top: -1.5px;
  filter: drop-shadow(0 2px 2px rgba(33, 29, 77, 0.16));
  transition: border-top-color 0.22s ease;
}

.map-pill-pin:hover .pill-pin-tip {
  border-top-color: #ffffff;
}

.map-pill-pin.active .pill-pin-tip {
  border-top-color: #211d4d;
}

/* Single lesson pill pin elements */






.pill-pin-price {
  font-size: 12.5px;
  font-weight: 850;
  letter-spacing: -0.2px;
}

.pill-pin-dist {
  font-size: 10px;
  font-weight: 700;
  color: #726b89;
}

.map-pill-pin.active .pill-pin-dist {
  color: rgba(255, 255, 255, 0.82);
}

/* Cluster pill pin elements (>1 lessons) */
.map-pill-pin.is-cluster .pill-pin-body {
  padding: 4.5px 12px 4.5px 5.5px;
  gap: 8px;
}

.pill-pin-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #007aff 0%, #5856d6 100%);
  color: #ffffff;
  font-size: 11px;
  font-weight: 850;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0, 122, 255, 0.35);
}

.map-pill-pin.active .pill-pin-badge {
  background: #ffffff;
  color: #211d4d;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.pill-pin-info {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pill-pin-name {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.pill-pin-meta {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.pill-pin-meta strong {
  font-size: 11.5px;
  font-weight: 850;
  color: #4740aa;
}

.map-pill-pin.active .pill-pin-meta strong {
  color: #5ac8fa;
}

/* Fallback / Legacy Pin Styles */


.map-pin:hover,
.map-pin.active {
  transform: scale(1.18);
  z-index: 30;
}









/* --- Top Bar & Distance Radius Selector --- */
.map-top-bar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  z-index: 25;
  min-width: 0;
}

.map-info-pill {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(33, 29, 77, 0.08);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #211d4d;
  width: fit-content;
}

.map-info-pill > svg {
  width: 13px;
  height: 13px;
  color: #ff59be;
}

.map-radius-bar {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 3.5px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 2px 8px rgba(33, 29, 77, 0.08),
    0 8px 18px -4px rgba(33, 29, 77, 0.12);
  width: fit-content;
}

.radius-bar-title {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #726b89;
  padding: 0 4px 0 6px;
}

.radius-pill {
  border: none;
  background: transparent;
  color: #555070;
  font-size: 11px;
  font-weight: 750;
  padding: 4px 9px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.16s ease;
  white-space: nowrap;
}

.radius-pill:hover {
  background: rgba(33, 29, 77, 0.06);
  color: #211d4d;
}

.radius-pill.active {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.28);
}

/* Floating Apple Callout Card */
.map-callout-slot {
  position: absolute;
  top: 16px;
  right: 18px;
  bottom: 16px;
  width: min(350px, calc(100% - 36px));
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  align-items: start;
  z-index: 35;
  pointer-events: none;
}

.map-callout-card {
  pointer-events: auto;
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 22px;
  padding: 18px 20px;
  box-shadow:
    0 4px 16px rgba(33, 29, 77, 0.08),
    0 20px 40px -6px rgba(33, 29, 77, 0.16),
    inset 0 1.5px 0.5px #ffffff;
  position: relative;
  animation: popScaleIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.map-callout-slot .map-callout-card {
  max-height: 100%;
  display: flex;
  flex-direction: column;
}

.map-callout-slot .map-callout-card:has(.map-callout-body) {
  padding-top: 48px;
}

.map-callout-body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.map-callout-slot .map-callout-body .cluster-callout-list {
  max-height: none;
  overflow: visible;
}

.map-callout-card.empty-card {
  text-align: left;
}

@keyframes popScaleIn {
  from { transform: scale(0.92) translateY(6px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.map-callout-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(33, 29, 77, 0.06);
  color: #555070;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease;
}

.map-callout-close:hover {
  background: rgba(33, 29, 77, 0.14);
  color: #211d4d;
}

.map-callout-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.map-callout-time {
  font-size: 11px;
  font-weight: 700;
  color: #726b89;
}

.map-callout-title {
  font-size: 17px;
  font-weight: 850;
  color: #211d4d;
  letter-spacing: -0.3px;
  margin: 0 0 4px;
}

.map-callout-gym {
  font-size: 12px;
  color: #555070;
  margin-bottom: 12px;
  line-height: 1.4;
}

.map-callout-gym small {
  display: block;
  color: #8b859e;
  font-size: 10.5px;
}

.map-callout-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(220, 223, 237, 0.8);
  padding-top: 10px;
  margin-top: 4px;
}

.map-callout-price strong {
  font-size: 18px;
  font-weight: 850;
  color: #211d4d;
}

.map-callout-price small {
  font-size: 10px;
  color: #7b748f;
}

/* --- Cluster Gym Callout Card --- */
.cluster-callout-head {
  padding-bottom: 4px;
}

.cluster-badge {
  display: inline-block;
  background: rgba(0, 122, 255, 0.12);
  color: #007aff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 6px;
  width: fit-content;
}

.cluster-callout-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  max-height: 250px;
  padding-right: 4px;
  margin-top: 4px;
  border-top: 1px solid rgba(220, 223, 237, 0.7);
  padding-top: 10px;
  scrollbar-width: thin;
}

.cluster-lesson-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 14px;
  background: #f8f9fc;
  border: 1px solid rgba(33, 29, 77, 0.06);
  transition: all 0.16s ease;
  cursor: pointer;
}

.cluster-lesson-row:hover,
.cluster-lesson-row.is-active {
  background: #ffffff;
  border-color: #211d4d;
  box-shadow: 0 3px 10px rgba(33, 29, 77, 0.08);
}

.cluster-lesson-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.cluster-lesson-top {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cluster-lesson-time {
  font-size: 10px;
  font-weight: 700;
  color: #726b89;
  white-space: nowrap;
}

.cluster-lesson-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #211d4d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
}

.cluster-lesson-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.cluster-lesson-price {
  font-size: 12px;
  font-weight: 850;
  color: #211d4d;
}

/* Horizontal Quick-Rail under map */
.map-bottom-rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.map-rail-item {
  flex: 0 0 215px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: linear-gradient(170deg, #ffffff 0%, #fafbff 100%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  box-shadow: 0 2px 6px rgba(33, 29, 77, 0.04), inset 0 1px 0 #ffffff;
  cursor: pointer;
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.map-rail-item:hover,
.map-rail-item.active {
  transform: translateY(-2px);
  border-color: #211d4d;
  box-shadow: 0 4px 12px rgba(33, 29, 77, 0.12), inset 0 1px 0 #ffffff;
}

.map-rail-disc {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}

.map-rail-content strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #211d4d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.map-rail-content small {
  display: block;
  font-size: 10.5px;
  color: #78728f;
  margin: 1px 0 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.map-rail-content span {
  font-size: 11px;
  font-weight: 750;
  color: #ff59be;
}

/* Responsive Map Styles */
@media (max-width: 768px) {
  .map-radius-bar {
    overflow-x: auto;
    max-width: 100%;
    scrollbar-width: none;
  }
  .map-radius-bar::-webkit-scrollbar {
    display: none;
  }
  .map-callout-slot {
    right: 12px;
    left: 12px;
    top: 12px;
    bottom: 12px;
    width: auto;
    align-items: end;
  }
  .map-callout-card {
    padding: 14px 16px;
  }
  .map-callout-slot .map-callout-card:has(.map-callout-body) {
    padding-top: 62px;
  }
  .ol-control.ol-zoom {
    bottom: 16px;
    left: 12px;
  }
}

/* ==========================================================================
   Travel Times Strip & External Navigation Launcher
   ========================================================================== */
.travel-times-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}

.travel-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(0, 0, 0, 0.06);
  line-height: 1.2;
}

.travel-chip.car {
  background: rgba(79, 70, 229, 0.08);
  color: #4338ca;
  border-color: rgba(79, 70, 229, 0.22);
}

.travel-chip.transit {
  background: rgba(14, 165, 233, 0.08);
  color: #0284c7;
  border-color: rgba(14, 165, 233, 0.22);
}

.travel-chip.walk {
  background: rgba(16, 185, 129, 0.08);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.22);
}

.parking-chip {
  margin-left: 2px;
  font-size: 10px;
  font-weight: 800;
  color: #15803d;
}

.nav-launcher-wrapper {
  position: relative;
  display: inline-block;
}

.nav-launcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-size: 11px;
  font-weight: 750;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.35);
  transition: all 0.15s ease;
  line-height: 1.2;
}

.nav-launcher-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.45);
}

.nav-launcher-btn:active {
  transform: translateY(0);
}

.nav-chevron {
  font-size: 9px;
  opacity: 0.85;
  margin-left: 1px;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  z-index: 1050;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
  min-width: 145px;
  padding: 5px;
  display: none;
  flex-direction: column;
  gap: 2px;
}

.nav-dropdown-menu.is-open {
  display: flex !important;
  animation: navDropdownFadeIn 0.15s ease-out;
}

@keyframes navDropdownFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  border-radius: 8px;
  text-decoration: none;
  color: #1e293b;
  font-size: 12px;
  font-weight: 600;
  transition: background 0.12s ease;
}

.nav-dropdown-item:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #0f172a;
}

.nav-item-icon {
  font-size: 13px;
}

/* ==========================================================================
   Lesson Level & Parking Badges
   ========================================================================== */
.lesson-level-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10.5px;
  font-weight: 750;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.lesson-level-badge.level-all {
  background: #e0e7ff;
  color: #3730a3;
}

.lesson-level-badge.level-beginner {
  background: #dcfce7;
  color: #166534;
}

.lesson-level-badge.level-intermediate {
  background: #fef3c7;
  color: #92400e;
}

.lesson-level-badge.level-advanced {
  background: #fee2e2;
  color: #991b1b;
}

.parking-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 750;
  padding: 2px 7px;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  border: 1px solid rgba(34, 197, 94, 0.3);
  line-height: 1.2;
}

.parking-badge.mini {
  padding: 1px 5px;
  font-size: 10px;
  margin-left: 4px;
  vertical-align: middle;
}

.callout-gym-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 3px;
}

.callout-tags, .pop-card-tags, .pop-row-badges {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

/* ==========================================================================
   🚨 SOS Urgente Last-Minute Badges & Pin Glow
   ========================================================================== */
.urgent-card-pill, .urgent-callout-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 6px;
  background: #ff3b30;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(255, 59, 48, 0.4);
  line-height: 1.2;
}

.pop-lesson.is-urgent-card {
  border: 2px solid rgba(255, 59, 48, 0.55) !important;
  box-shadow: 0 4px 18px rgba(255, 59, 48, 0.16) !important;
}

.pop-list-row.is-urgent-row {
  border-left: 4px solid #ff3b30 !important;
  background: linear-gradient(90deg, rgba(255, 59, 48, 0.05) 0%, rgba(255, 255, 255, 0) 35%);
}

.map-pill-pin.is-urgent .pill-pin-body {
  border: 2px solid #ff3b30 !important;
  animation: urgentPinGlow 2s infinite ease-in-out;
}

.map-pill-pin.is-urgent .pill-pin-tip {
  border-top-color: #ff3b30 !important;
}

.pill-pin-badge.urgent-badge {
  background: #ff3b30 !important;
  color: var(--text-primary,#0f172a) !important;
  font-weight: 850;
}



@keyframes urgentPinGlow {
  0%, 100% {
    box-shadow: 0 4px 14px rgba(255, 59, 48, 0.4), 0 0 0 2px rgba(255, 59, 48, 0.25);
  }
  50% {
    box-shadow: 0 6px 24px rgba(255, 59, 48, 0.75), 0 0 0 6px rgba(255, 59, 48, 0.35);
  }
}

@keyframes urgentHaloExpand {
  0% {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0.8;
    box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.6);
  }
  100% {
    transform: translate(-50%, -50%) scale(1.4);
    opacity: 0;
    box-shadow: 0 0 0 16px rgba(255, 59, 48, 0);
  }
}

.map-callout-card.is-urgent-callout {
  border-color: rgba(255, 59, 48, 0.5);
  box-shadow: 0 10px 30px rgba(255, 59, 48, 0.18);
}

/* ==========================================================================
   Modals: Urgent Banner, Travel & Parking Box
   ========================================================================== */
.urgent-modal-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(255, 59, 48, 0.12), rgba(255, 149, 0, 0.08));
  border: 1.5px solid #ff3b30;
  border-radius: 12px;
  margin-bottom: 14px;
  color: #b91c1c;
}

.urgent-modal-banner strong {
  font-size: 13px;
  font-weight: 800;
  display: block;
}

.urgent-modal-banner p {
  font-size: 11.5px;
  margin: 2px 0 0;
  color: #7f1d1d;
}

.urgent-pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff3b30;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7);
  animation: pulseDot 1.6s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(255, 59, 48, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); }
}

.modal-travel-box {
  background: var(--surface-2, #f8fafc);
  border-radius: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  margin: 12px 0;
}

.modal-travel-header {
  font-size: 11.5px;
  color: #64748b;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.modal-travel-header strong {
  color: #1e293b;
}

.modal-parking-box {
  border-radius: 12px;
  padding: 12px 14px;
  margin: 12px 0;
  border: 1px solid;
}

.modal-parking-box.has-parking {
  background: rgba(34, 197, 94, 0.07);
  border-color: rgba(34, 197, 94, 0.3);
}

.modal-parking-box.no-parking {
  background: rgba(100, 116, 139, 0.05);
  border-color: rgba(100, 116, 139, 0.18);
}

.parking-box-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.parking-box-icon {
  font-size: 18px;
  line-height: 1.2;
}

.parking-box-header strong {
  font-size: 12.5px;
  font-weight: 750;
  color: #1e293b;
  display: block;
}

.parking-box-header small {
  font-size: 11px;
  color: #64748b;
  display: block;
  margin-top: 1px;
}

.parking-notes-content {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
  font-size: 11.5px;
}

.parking-notes-content .notes-badge {
  font-weight: 750;
  color: #15803d;
}

.parking-notes-content p {
  margin: 2px 0 0;
  color: #1e293b;
}

/* ==========================================================================
   CLEAR FILTERS, SEARCH CLEAR & MOBILE UX ENHANCEMENTS
   ========================================================================== */
.quick-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 320px;
}

.search-clear-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  font-size: 13px;
  color: var(--muted, #64748b);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.search-clear-btn:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--ink, #1e293b);
}

.btn-clear-filters {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.06);
  color: #dc2626;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-clear-filters:hover {
  background: rgba(239, 68, 68, 0.14);
  border-color: #dc2626;
}

.mobile-filter-bar-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line, rgba(0, 0, 0, 0.08));
}





.btn-toggle-filters-mobile {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--line, #cbd5e1);
  background: var(--surface, #ffffff);
  color: var(--ink, #1e293b);
  cursor: pointer;
}



/* Mobile Floating View Switcher Pill Bar */
.mobile-floating-view-switch {
  display: none;
  position: fixed;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 9990;
  background: rgba(30, 41, 59, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 5px;
  border-radius: 30px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28), 0 2px 6px rgba(0, 0, 0, 0.12);
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.mobile-floating-view-switch .floating-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  min-height: 40px;
  border-radius: 24px;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 12.5px;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.mobile-floating-view-switch .floating-view-btn.active {
  background: var(--accent, #ff5e3a);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(255, 94, 58, 0.4);
}

@media (max-width: 768px) {
  .mobile-floating-view-switch {
    display: flex;
  }
  .mobile-filter-bar-header {
    display: flex;
  }
  .filters.is-collapsible .filters-body {
    display: none;
  }
  .filters.is-collapsible.is-open .filters-body {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    margin-top: 8px;
  }
  /* Ensure 44px min touch targets for key mobile buttons */
  .status-tab,
  .view-mode-btn,
  .btn,
  button.pop-lesson-title {
    min-height: 44px;
  }
  .btn.tiny {
    min-height: 36px;
    padding: 6px 12px;
  }
}

/* ==========================================================================
   4-STAR REVIEW & GRADIMENTO SYSTEM (1-4 STARS)
   ========================================================================== */
.stars-gold {
  color: #f59e0b;
  letter-spacing: 2px;
  font-size: 15px;
  line-height: 1;
}

.rating-label-pill,
.rating-label-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
}

.rating-label-badge.pos {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}

.rating-label-badge.neutral {
  background: rgba(148, 163, 184, 0.16);
  color: #475569;
}

/* Profile Review Section & Statistics Card */














/* Discipline breakdown table */








/* Review Item Card in Profile */


.review-item-card {
  background: var(--surface, #ffffff);
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 12px;
  padding: 16px;
  transition: transform 0.15s ease;
}









/* Instructor Reply Box */
.instructor-reply-box {
  margin-top: 12px;
  padding: 12px 14px;
  background: rgba(99, 102, 241, 0.06);
  border-left: 3px solid #6366f1;
  border-radius: 0 8px 8px 0;
  font-size: 12.5px;
}

.reply-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.reply-header strong {
  font-weight: 700;
  color: #4f46e5;
  font-size: 11.5px;
}

.reply-text {
  margin: 4px 0 0;
  color: var(--ink, #1e293b);
  line-height: 1.45;
}

.reply-actions-bar,
.review-actions-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.review-lock-hint,
.review-expired-hint {
  font-size: 11px;
  color: var(--muted, #64748b);
  font-style: italic;
}

/* Completed Lesson Modal Review Section */
.completed-review-section {
  border-top: 1px solid var(--line, #e2e8f0);
  padding-top: 16px;
  margin-top: 16px;
}

.completed-review-box {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 10px;
  padding: 14px;
}

.review-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.review-box-text {
  font-size: 13px;
  line-height: 1.5;
  margin: 6px 0;
  color: var(--ink, #1e293b);
}

.no-review-prompt,
.reply-prompt-box {
  background: rgba(245, 158, 11, 0.06);
  border: 1px dashed rgba(245, 158, 11, 0.4);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
}

.no-review-prompt p,
.reply-prompt-box p {
  font-size: 12.5px;
  margin: 0 0 10px;
  color: var(--ink, #1e293b);
}

/* Review Modal Interactive Star Selector (1 to 4) */
.star-selector-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  margin: 8px 0;
}

.star-rating-radio {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  border-radius: 10px;
  border: 2px solid var(--line, #cbd5e1);
  background: var(--surface, #ffffff);
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.star-rating-radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.star-rating-radio .star-icon {
  font-size: 24px;
  color: #cbd5e1;
  line-height: 1;
  margin-bottom: 4px;
  transition: color 0.15s ease;
}

.star-rating-radio .star-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink, #1e293b);
  display: block;
}

.star-rating-radio .star-percent {
  font-size: 10px;
  color: var(--muted, #64748b);
  display: block;
  margin-top: 2px;
}

.star-rating-radio.selected {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
}

.star-rating-radio.selected .star-icon {
  color: #f59e0b;
}

.selected-rating-feedback {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted, #64748b);
}

.selected-rating-feedback strong {
  color: #b45309;
}

.editorial-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 11.5px;
  margin-top: 14px;
}

.editorial-notice svg {
  width: 18px;
  height: 18px;
  color: #2563eb;
  flex-shrink: 0;
  margin-top: 2px;
}

.editorial-notice strong {
  color: #1d4ed8;
  display: block;
  margin-bottom: 2px;
}

.editorial-notice p {
  margin: 0;
  color: var(--ink, #1e293b);
  line-height: 1.4;
}

.char-count {
  font-size: 10.5px;
  color: var(--muted, #64748b);
  text-align: right;
  margin-top: 4px;
}

.review-modal-header-info {
  margin-bottom: 14px;
}

.review-target-instructor {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reply-modal-review-summary {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 14px;
}

.quoted-review {
  margin: 6px 0 0;
  font-style: italic;
  font-size: 12.5px;
  color: var(--ink, #334155);
}

/* ==========================================================================
   Punto 2: Affidabilità & Contatori Rinunce (Regola Approdata SOS Fitness)
   ========================================================================== */

.reliability-profile-section {
  margin-top: 24px;
}

.reliability-summary-banner {
  background: var(--surface-sunken, #f8fafc);
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 16px;
  padding: 20px;
  margin-top: 12px;
}

.reliability-formula-lead {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.reliability-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3e6868 0%, #253735 100%);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37, 55, 53, 0.15);
}

.reliability-badge-icon svg {
  width: 22px;
  height: 22px;
}

.reliability-formula-quote {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink, #1e293b);
  letter-spacing: -0.2px;
  line-height: 1.35;
}

.reliability-formula-caption {
  font-size: 12px;
  color: var(--muted, #64748b);
  margin-top: 4px;
}

.reliability-boxes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.reliability-stat-tile {
  background: var(--paper, #fff);
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.reliability-stat-tile .tile-val {
  font-size: 22px;
  font-weight: 750;
  color: var(--ink, #0f172a);
  line-height: 1.1;
}

.reliability-stat-tile .tile-lbl {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 5px;
}

.reliability-stat-tile .tile-subdetail {
  font-size: 10.5px;
  color: var(--muted, #64748b);
  margin-top: 6px;
  line-height: 1.3;
}

.reliability-stat-tile.good .tile-val {
  color: #059669;
}

.reliability-stat-tile.warning .tile-val {
  color: #d97706;
}

.reliability-stat-tile.alert .tile-val {
  color: #dc2626;
}

.reliability-legal-note {
  font-size: 11.5px;
  color: var(--muted, #64748b);
  margin-top: 16px;
  line-height: 1.45;
  font-style: italic;
  border-top: 1px dashed var(--line, #e2e8f0);
  padding-top: 12px;
}

/* Incident Management & Alert Cards */
.incident-mgmt-section {
  margin-top: 16px;
}

.incident-alert-card {
  border-radius: 14px;
  padding: 16px 18px;
  border: 1px solid transparent;
  margin-bottom: 12px;
}

.incident-alert-card.is-pending {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

.incident-alert-card.is-confirmed {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

.incident-alert-card.is-disputed {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e40af;
}

.incident-alert-card.is-needs-review {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.incident-alert-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.incident-badge-pending,
.incident-badge-confirmed,
.incident-badge-disputed,
.incident-badge-needs-review {
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.incident-deadline-badge {
  font-size: 11px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.07);
  padding: 3px 8px;
  border-radius: 6px;
}

.incident-note-text {
  font-size: 12.5px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 8px;
  padding: 8px 12px;
  margin: 10px 0;
  line-height: 1.4;
}

.incident-info-foot {
  font-size: 11.5px;
  opacity: 0.9;
  margin: 8px 0 0;
  line-height: 1.4;
}

.incident-prompt-box {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 12px;
}

.incident-btn-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

/* Urgent Notification Banner for Instructor */
.pending-incident-alert {
  background: #fff7ed;
  border: 1.5px solid #f97316;
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.12);
}

.pending-incident-alert .alert-icon {
  font-size: 26px;
  flex-shrink: 0;
}

.pending-incident-alert .alert-body {
  flex: 1;
  font-size: 12.5px;
  line-height: 1.45;
  color: #7c2d12;
}

.pending-incident-alert .alert-body strong {
  color: #c2410c;
  display: block;
  margin-bottom: 2px;
}

.pending-incident-alert .alert-body p {
  margin: 0;
}

.pending-incident-alert .btn {
  flex-shrink: 0;
}

/* Radio Choices for Incident Report */
.incident-radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.incident-radio-choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 10px;
  cursor: pointer;
  background: var(--paper, #fff);
  transition: all 0.15s ease;
}

.incident-radio-choice:hover {
  border-color: var(--teal, #3e6868);
  background: rgba(62, 104, 104, 0.02);
}

.incident-radio-choice input {
  width: auto;
  flex-shrink: 0;
  margin-top: 3px;
  cursor: pointer;
}

.incident-radio-choice strong {
  display: block;
  font-size: 13px;
  color: var(--ink, #0f172a);
}

.incident-radio-choice small {
  display: block;
  font-size: 11.5px;
  color: var(--muted, #64748b);
  margin-top: 2px;
}

/* ==========================================================================
   Punto 3: Compensi & Chiarezza Economica
   ========================================================================== */

.direct-payment-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 11.5px;
  margin-top: 14px;
}

.direct-payment-notice svg {
  width: 18px;
  height: 18px;
  color: #059669;
  flex-shrink: 0;
  margin-top: 2px;
}

.direct-payment-notice strong {
  color: #047857;
  display: block;
  margin-bottom: 2px;
}

.direct-payment-notice p {
  margin: 0;
  color: var(--ink, #1e293b);
  line-height: 1.4;
}

.comp-default-check {
  margin-top: 6px;
}

/* ==========================================================================
   Punto 4: Collaboratori & Permessi Granulari Palestra
   ========================================================================== */

/* Operator Switcher in Demo Strip */




.operator-switcher-select {
  background: transparent;
  border: none;
  color: #211d4d;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  padding-right: 2px;
}

.operator-switcher-select option {
  background: #fff;
  color: #211d4d;
}

/* Delegated Operator Sticky Banner */
.impersonation-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: #eef2ff;
  color: #312e81;
  border-radius: 12px;
  margin-bottom: 18px;
  font-size: 12.5px;
  border: 1px solid #c7d2fe;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.12);
  box-shadow: 0 4px 14px rgba(30, 27, 75, 0.2);
}

.impersonation-bar.is-revoked {
  background: #450a0a;
  border-color: #dc2626;
  color: #fee2e2;
}

.impersonation-tag {
  background: #4f46e5;
  color: #fff;
  font-size: 10px;
  font-weight: 750;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.impersonation-bar.is-revoked .impersonation-tag {
  background: #b91c1c;
}

/* Collaborators Page Workspace */
.collaborators-workspace {
  margin-top: 14px;
}

.collaborators-intro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.collab-info-tile {
  background: var(--paper, #fff);
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 14px;
  padding: 18px 20px;
}

.collab-info-tile h4 {
  margin: 0 0 10px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink, #0f172a);
}

.collab-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
  color: var(--ink, #334155);
}

.collab-features-list li {
  margin-bottom: 4px;
}

.owner-boundary-tile {
  background: rgba(99, 102, 241, 0.04);
  border-color: rgba(99, 102, 241, 0.25);
}

.owner-boundary-tile p {
  font-size: 12px;
  color: var(--ink, #334155);
  line-height: 1.5;
  margin: 0;
}

.operator-demo-hint {
  margin-top: 14px;
  font-size: 11.5px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 8px;
  padding: 8px 12px;
  color: #3730a3;
  line-height: 1.45;
}

.collaborators-list-header {
  margin-bottom: 14px;
}

.collaborators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.collab-card {
  background: var(--paper, #fff);
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.2s ease;
}

.collab-card.is-revoked {
  background: var(--surface-sunken, #f8fafc);
  border-style: dashed;
  opacity: 0.75;
}

.collab-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.collab-card-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.collab-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fa9774 0%, #ed906f 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13.5px;
  flex-shrink: 0;
}

.collab-card-identity strong {
  display: block;
  font-size: 14px;
  color: var(--ink, #0f172a);
}

.collab-card-identity small {
  display: block;
  font-size: 11.5px;
  color: var(--muted, #64748b);
  margin-top: 1px;
}

.collab-perms-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.collab-perms-label {
  font-size: 11px;
  font-weight: 650;
  color: var(--muted, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.collab-badges-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.collab-perm-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(59, 130, 246, 0.09);
  color: #1d4ed8;
  border: 1px solid rgba(59, 130, 246, 0.25);
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

.collab-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line, #e2e8f0);
  flex-wrap: wrap;
}

/* Permissions Modal Stack */




.perm-check-item:hover {
  border-color: var(--teal, #3e6868);
  background: rgba(62, 104, 104, 0.02);
}







.danger-outline {
  border: 1px solid #ef4444 !important;
  color: #dc2626 !important;
  background: transparent !important;
}

.danger-outline:hover {
  background: #fee2e2 !important;
}

/* Theme Adjustments for Dark / Neon / Energy */



/* ==========================================================================
   FAVORITE INSTRUCTORS & DIRECT LESSON INVITATIONS (PUNTO 1)
   ========================================================================== */

/* Community Filter Tabs */
.community-filter-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.community-filter-tabs .tab-pill {
  border: 1px solid var(--line, #e2e8f0);
  background: var(--surface, #ffffff);
  color: var(--ink, #334155);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 550;
  cursor: pointer;
  transition: all 0.15s ease;
}

.community-filter-tabs .tab-pill:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.community-filter-tabs .tab-pill.active {
  background: var(--brand-accent, #6366f1);
  color: #ffffff;
  border-color: var(--brand-accent, #6366f1);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}

/* Teacher Card Favorite Button */


.teacher-card-fav-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #94a3b8;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
  z-index: 2;
}

.teacher-card-fav-btn:hover {
  transform: scale(1.1);
  color: #f59e0b;
  border-color: #f59e0b;
}

.teacher-card-fav-btn.active {
  background: #fef3c7;
  color: #d97706;
  border-color: #f59e0b;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.25);
}

/* Profile Modal Favorite Bar */
.profile-fav-action-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 14px;
  margin: 12px 0 16px 0;
}

.profile-fav-action-bar .fav-action-hint {
  font-size: 12px;
  color: #64748b;
  line-height: 1.35;
}

.btn.fav-active {
  background: #fef3c7 !important;
  color: #b45309 !important;
  border-color: #f59e0b !important;
  font-weight: 600;
}

/* Priority Invitation Banner (Instructor Dashboard) */
.priority-invitation-banner {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1.5px solid #f59e0b;
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 22px;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.12);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.inv-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.inv-badge {
  background: #f59e0b;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.inv-time {
  font-size: 11px;
  color: #92400e;
  font-weight: 500;
}

.inv-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.inv-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 4px 0;
}

.inv-details {
  font-size: 13px;
  color: #475569;
  margin: 0 0 4px 0;
  line-height: 1.4;
}

.inv-comp {
  font-size: 13px;
  color: #0f172a;
  margin: 0;
}

.inv-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.inv-fineprint {
  font-size: 11px;
  color: #92400e;
  border-top: 1px dashed rgba(245, 158, 11, 0.35);
  padding-top: 8px;
  line-height: 1.4;
}

/* Favorite Selector Chips in Modals */
.fav-chips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.fav-chip-choice {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 8px 10px;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.fav-chip-choice:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.fav-chip-choice input[type="checkbox"] {
  cursor: pointer;
  accent-color: var(--brand-accent, #6366f1);
  width: 16px;
  height: 16px;
}

.fav-chip-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  font-size: 12px;
  line-height: 1.3;
}

.fav-chip-body strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #1e293b;
}

.fav-chip-body small {
  font-size: 11px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fav-chip-choice.disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: #f1f5f9;
}

/* Theme Adjustments for Dark / Neon / Energy */

/* Telegram Bot Integration Box */
.telegram-integration-box {
  margin: 1rem 0;
  padding: 1rem;
  background: rgba(0, 136, 204, 0.08);
  border: 1px solid rgba(0, 136, 204, 0.28);
  border-radius: var(--radius-sm, 10px);
  box-shadow: 0 2px 8px rgba(0, 136, 204, 0.05);
}


/* ==========================================================================
   APPLE DESIGN SYSTEM: PLANNING, TEAM & EMERGENCIES (Sculpted Relief & Vibrant Pastels)
   ========================================================================== */

/* Apple Relief Action Buttons */
.apple-relief-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: 14px;
  font-size: 0.85rem;
  font-weight: 750;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.apple-relief-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.apple-relief-btn:active {
  transform: scale(0.98);
}

/* Apple Subtab Switch (Segmented Control Pill) */
.apple-subtab-switch-wrap {
  margin: 1rem 0 1.5rem;
}

.apple-subtab-switch {
  display: inline-flex;
  align-items: center;
  background: rgba(226, 229, 242, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 4px;
  box-shadow: inset 0 1.5px 3px rgba(33, 29, 77, 0.05), 0 2px 8px rgba(33, 29, 77, 0.02);
}

.apple-subtab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748b;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.apple-subtab-btn:hover {
  color: #211d4d;
}

.apple-subtab-btn.active {
  background: #ffffff;
  color: #211d4d;
  box-shadow: 0 2px 10px rgba(33, 29, 77, 0.12), inset 0 1px 0 #ffffff;
  font-weight: 800;
}

/* --- PLANNING SETTIMANALE (Apple Calendar Grid) --- */

.planning-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 0.85rem 1.25rem;
  box-shadow: 0 4px 18px rgba(33, 29, 77, 0.04), 0 1px 3px rgba(33, 29, 77, 0.02), inset 0 1.5px 0.5px #ffffff;
  margin-bottom: 1.25rem;
}

.planning-week-nav {
  display: flex;
  align-items: center;
  background: rgba(226, 229, 242, 0.7);
  border-radius: 999px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 1px 2px rgba(33, 29, 77, 0.04);
}

.planning-btn-nav {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: transparent;
  color: #64748b;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.planning-btn-nav:hover {
  background: rgba(255, 255, 255, 0.8);
  color: #211d4d;
}

.planning-week-label {
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  background: #eef2ff;
  color: #4338ca;
  border: 1px solid rgba(99, 102, 241, 0.2);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.12);
  letter-spacing: -0.01em;
}

.planning-filters-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.planning-filter-select {
  padding: 0.5rem 0.95rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  background: #ffffff;
  color: #211d4d;
  border: 1px solid rgba(203, 213, 225, 0.9);
  box-shadow: inset 0 1px 2px rgba(33, 29, 77, 0.03);
  cursor: pointer;
  outline: none;
}

.planning-filter-select:focus {
  border-color: #211d4d;
  box-shadow: 0 0 0 3px rgba(33, 29, 77, 0.1);
}

/* 7-DAY COLUMN GRID */
.planning-grid-mount {
  overflow-x: auto;
  padding-bottom: 1.25rem;
}

.planning-7day-grid {
  min-width: 980px;
  display: grid;
  grid-template-columns: repeat(7, minmax(132px, 1fr));
  gap: 0.85rem;
  background: rgba(241, 243, 249, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.95rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 24px -4px rgba(33, 29, 77, 0.04), inset 0 1.5px 0.5px #ffffff;
}

.planning-day-col {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 18px;
  padding: 8px;
  box-shadow: 0 2px 8px rgba(33, 29, 77, 0.02), inset 0 1px 0 #ffffff;
}

.planning-day-col.is-sunday-col {
  background: linear-gradient(180deg, rgba(255, 248, 238, 0.95) 0%, rgba(255, 255, 255, 0.8) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.07), inset 0 1px 0 #ffffff;
}

.planning-day-header {
  text-align: center;
  padding: 0.6rem 0.35rem 0.5rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.75);
  border-radius: 12px;
}

.planning-day-header.is-today {
  background: rgba(33, 29, 77, 0.06);
}

.planning-day-header.is-today .day-name {
  color: #211d4d;
  font-weight: 850;
}

.planning-day-header .day-name {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.is-sunday-col .planning-day-header .day-name {
  color: #b45309;
}

.planning-day-header .day-date {
  font-size: 0.8rem;
  font-weight: 750;
  color: #211d4d;
  margin-top: 0.15rem;
}

.is-sunday-col .planning-day-header .day-date {
  color: #92400e;
}

.planning-lessons-stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
  min-height: 480px;
}

/* LESSON CARD: Apple Calendar Event Tile */
.planning-card {
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  box-shadow: 0 2px 6px rgba(33, 29, 77, 0.04), inset 0 1px 0 #ffffff;
}

.planning-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px -2px rgba(33, 29, 77, 0.09), inset 0 1px 0 #ffffff;
  border-color: rgba(33, 29, 77, 0.25);
}

.planning-card.is-alert {
  border-color: #f59e0b;
  background: #fffbeb;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15), inset 0 1px 0 #ffffff;
}

.planning-card.is-cancelled {
  border-color: #fca5a5;
  background: #fef2f2;
  opacity: 0.75;
}

.planning-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.planning-card-time {
  font-size: 0.78rem;
  font-weight: 800;
  color: #211d4d;
  letter-spacing: -0.01em;
}

.planning-card-edit-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(241, 245, 249, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.85);
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  cursor: pointer;
  transition: all 0.15s ease;
  color: #475569;
}

.planning-card-edit-btn:hover {
  background: #6366f1;
  color: #ffffff;
  border-color: #6366f1;
}

/* APPLE DISCIPLINE BADGES (Vibrant Translucent Tints) */
.discipline-chip-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.discipline-chip-badge.disc-teal {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.discipline-chip-badge.disc-cyan {
  background: #f0f9ff;
  color: #0284c7;
  border: 1px solid #bae6fd;
}

.discipline-chip-badge.disc-orange {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.discipline-chip-badge.disc-rose {
  background: #fff1f2;
  color: #e11d48;
  border: 1px solid #fecdd3;
}

.discipline-chip-badge.disc-indigo {
  background: #f5f3ff;
  color: #7c3aed;
  border: 1px solid #ddd6fe;
}

.discipline-chip-badge.disc-amber {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.discipline-chip-badge.disc-blue {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.discipline-chip-badge.disc-emerald {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.planning-card-teacher {
  font-size: 0.72rem;
  color: #475569;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.planning-card-teacher .sub-arrow {
  color: #8b5cf6;
  font-weight: 800;
  margin: 0 0.15rem;
}

.planning-card-teacher .sub-name {
  color: #6d28d9;
  font-weight: 800;
}

.btn-add-slot-col {
  width: 100%;
  padding: 0.5rem;
  margin-top: auto;
  border-radius: 12px;
  border: 1.5px dashed #cbd5e1;
  background: rgba(255, 255, 255, 0.6);
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-add-slot-col:hover {
  border-color: #211d4d;
  color: #211d4d;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(33, 29, 77, 0.08);
}

/* --- TEAM & ISTRUTTORI DIRECTORY (Apple 3-Column Grid) --- */

.instructors-crud-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 0.85rem 1.25rem;
  box-shadow: 0 4px 18px rgba(33, 29, 77, 0.04), inset 0 1.5px 0.5px #ffffff;
  margin-bottom: 1.5rem;
}

.search-and-pills {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex: 1;
  min-width: 280px;
}

.crud-search-wrap {
  position: relative;
  flex: 1;
  max-width: 380px;
}

.crud-search-input {
  width: 100%;
  padding: 0.55rem 0.95rem 0.55rem 2.3rem;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  background: #ffffff;
  color: #211d4d;
  border: 1px solid rgba(203, 213, 225, 0.9);
  box-shadow: inset 0 1px 2px rgba(33, 29, 77, 0.04);
}

.crud-search-input:focus {
  outline: none;
  border-color: #211d4d;
  box-shadow: 0 0 0 3px rgba(33, 29, 77, 0.1);
}

.crud-search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  color: #94a3b8;
}

.type-filter-pills {
  display: inline-flex;
  align-items: center;
  background: rgba(226, 229, 242, 0.75);
  border-radius: 999px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 1px 2px rgba(33, 29, 77, 0.04);
}

.type-pill {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: transparent;
  color: #64748b;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.type-pill:hover {
  color: #211d4d;
}

.type-pill.active {
  background: #ffffff;
  color: #211d4d;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(33, 29, 77, 0.12), inset 0 1px 0 #ffffff;
}

.instructors-crud-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 1200px) {
  .instructors-crud-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .instructors-crud-grid {
    grid-template-columns: 1fr;
  }
}

.instructor-crud-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 20px;
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.15rem;
  box-shadow: 0 4px 16px -2px rgba(33, 29, 77, 0.04), 0 1px 3px rgba(33, 29, 77, 0.02), inset 0 1.5px 0.5px #ffffff;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.instructor-crud-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -4px rgba(33, 29, 77, 0.09), inset 0 1.5px 0.5px #ffffff;
  border-color: rgba(33, 29, 77, 0.18);
}

.instructor-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.instructor-name-title {
  font-size: 1.1rem;
  font-weight: 850;
  color: #211d4d;
  letter-spacing: -0.015em;
}

.badge-tipo {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-top: 0.35rem;
}

.badge-tipo.interno {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.badge-tipo.esterno {
  background: #faf5ff;
  color: #7e22ce;
  border: 1px solid #e9d5ff;
}

.instructor-card-contacts {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: #64748b;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.contact-row .val {
  font-weight: 600;
  color: #334155;
}

.contact-row .val.telegram {
  color: #0284c7;
  font-weight: 700;
}

.contact-row .val.muted {
  color: #94a3b8;
  font-weight: 500;
}

.instructor-card-disciplines {
  margin-top: 0.45rem;
}

.disciplines-heading {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin-bottom: 0.5rem;
}

.disciplines-chips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.crud-disc-chip {
  padding: 0.25rem 0.65rem;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.instructor-card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  padding-top: 0.85rem;
  border-top: 1px solid #f1f5f9;
}

.btn-card-edit {
  padding: 0.45rem 0.95rem;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  background: #f8fafc;
  color: #334155;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.btn-card-edit:hover {
  background: #ffffff;
  border-color: #211d4d;
  color: #211d4d;
  box-shadow: 0 2px 8px rgba(33, 29, 77, 0.08);
}

.btn-card-delete {
  padding: 0.45rem 0.95rem;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
}

.btn-card-delete:hover {
  background: #fee2e2;
  border-color: #f87171;
}

/* KPI CARDS FOR EMERGENCIES (Apple Sculpted Relief) */




.gym-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -4px rgba(33, 29, 77, 0.08), inset 0 1.5px 0.5px #ffffff;
  border-color: rgba(33, 29, 77, 0.15);
}








/* --- SOS POP Registration Landing: Two Dedicated Forms & Sculpted Pop Relief --- */
.pop-access-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.05fr);
  gap: 36px;
  max-width: 1240px;
  margin: 20px auto 40px;
  align-items: start;
}
@media (max-width: 960px) {
  .pop-access-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 10px auto;
  }
}

.pop-accent-text {
  color: #6366f1;
  font-weight: 850;
  display: inline-block;
}

.pop-orbit {
  background: #ffda29;
  color: #211d4d;
  border-radius: 20px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 28px 0;
  box-shadow: 0 8px 24px rgba(255, 218, 41, 0.35), inset 0 1.5px 0.5px rgba(255, 255, 255, 0.7);
}
.pop-orbit>svg {
  width: 44px;
  height: 44px;
  color: #211d4d;
  flex-shrink: 0;
}
.pop-orbit span {
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: 0.5px;
}
.pop-orbit span strong {
  font-size: 18px;
  font-weight: 850;
  letter-spacing: -0.5px;
}
.pop-orbit i {
  margin-left: auto;
  font-size: 26px;
  color: #211d4d;
}

.pop-bento-features {
  display: grid;
  gap: 12px;
  margin: 24px 0 28px;
}
.pop-bento-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px 20px;
  border-radius: 18px;
  background: #f8f8fd;
  border: 1px solid rgba(33, 29, 77, 0.08);
  transition: transform 0.18s ease;
}
.pop-bento-item:hover {
  transform: translateX(4px);
  background: #ffffff;
  border-color: rgba(33, 29, 77, 0.18);
}
.bento-badge-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bento-yellow .bento-badge-icon { background: #ffda29; color: #211d4d; }
.bento-mint .bento-badge-icon { background: #55dfb1; color: #211d4d; }
.bento-pink .bento-badge-icon { background: #ff75c9; color: #211d4d; }
.pop-bento-item strong {
  display: block;
  font-size: 14px;
  font-weight: 750;
  color: #211d4d;
  margin-bottom: 2px;
}
.pop-bento-item small {
  display: block;
  font-size: 12px;
  color: #64748b;
  line-height: 1.35;
}

.access-demo-shortcut {
  margin-top: 18px;
  color: #4338ca;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.access-demo-shortcut:hover {
  text-decoration: underline;
}

/* Right Card: The Registration Card */

/* Top Segmented Tabs: Crea Account / Accedi */
.pop-auth-tabs {
  display: flex;
  gap: 8px;
  background: #f1eff9;
  padding: 6px;
  border-radius: 999px;
  margin-bottom: 28px;
  box-shadow: inset 0 1.5px 3px rgba(33, 29, 77, 0.06);
}
.pop-auth-tabs button {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #554e70;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: all 0.16s ease;
}
.pop-auth-tabs button.selected {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.28);
}

/* The Two Dedicated Role Buttons (Istruttore / Palestra) */
.pop-role-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
@media (max-width: 520px) {
  .pop-role-selector {
    grid-template-columns: 1fr;
  }
}
.pop-role-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 20px;
  border: 2px solid transparent;
  background: #f6f5fb;
  color: #211d4d;
  cursor: pointer;
  text-align: left;
  position: relative;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 6px rgba(33, 29, 77, 0.04), inset 0 1px 0 #ffffff;
  min-width: 0;
}
.pop-role-tab:hover {
  transform: translateY(-2px);
  background: #eeeaf8;
  box-shadow: 0 6px 16px rgba(33, 29, 77, 0.08);
}
.pop-role-tab.active {
  border-color: #211d4d;
  box-shadow: 0 6px 18px rgba(33, 29, 77, 0.16), inset 0 1.5px 0.5px #ffffff;
  transform: scale(1.02);
}
.pop-role-tab:first-child.active {
  background: #ffda29;
}
.pop-role-tab:last-child.active {
  background: #55dfb1;
}
.role-icon {
  font-size: 26px;
  line-height: 1;
  flex-shrink: 0;
}
.role-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}
.role-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.role-title {
  font-size: 15px;
  font-weight: 850;
  color: #211d4d;
  line-height: 1.2;
  white-space: nowrap;
}
.role-pill {
  font-size: 9px;
  font-weight: 850;
  padding: 3px 6px;
  border-radius: 6px;
  background: #eef2ff;
  color: #4338ca;
  border: 1px solid rgba(99, 102, 241, 0.2);
  letter-spacing: 0.5px;
  line-height: 1.1;
  white-space: nowrap;
  flex-shrink: 0;
}
.role-pill.pill-gym {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid rgba(5, 150, 105, 0.2);
}
.role-sub {
  font-size: 11px;
  color: #554e70;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Form Intros */
.auth-form-intro {
  margin-bottom: 20px;
}
.pop-form-kicker {
  display: inline-block;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 1.2px;
  color: #ff75c9;
  margin-bottom: 6px;
}
.pop-form-kicker.gym {
  color: #047857;
}
.auth-form-intro h2 {
  font-size: 26px;
  font-weight: 850;
  letter-spacing: -0.6px;
  color: #211d4d;
  line-height: 1.15;
  margin: 0 0 8px;
}
.auth-form-intro p {
  font-size: 13px;
  color: #645f78;
  line-height: 1.5;
  margin: 0;
}

/* Fields & Inputs */

/* Submit Buttons in Apple Pop Relief */
.pop-submit-btn {
  height: 52px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 800;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #ffffff;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.28), inset 0 1.5px 0.5px rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all 0.16s ease;
}
.pop-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(99, 102, 241, 0.35);
  background: linear-gradient(135deg, #4f46e5, #4338ca);
}
.pop-submit-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}
.pop-submit-btn.instructor-submit {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #ffffff;
}
.pop-submit-btn.instructor-submit:hover {
  background: linear-gradient(135deg, #4f46e5, #4338ca);
}
.pop-submit-btn.gym-submit {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
}
.pop-submit-btn.gym-submit:hover {
  background: linear-gradient(135deg, #059669, #047857);
}

/* Simulated Email Verification Card (SOS Pop) */
.pop-verify-card {
  text-align: center;
  padding: 24px 12px;
}
.pop-verify-badge {
  display: inline-block;
  background: #e1d9fc;
  color: #211d4d;
  font-size: 10px;
  font-weight: 850;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}
.pop-verify-card h2 {
  font-size: 28px;
  font-weight: 850;
  color: #211d4d;
  margin-bottom: 12px;
}
.pop-verify-box {
  background: #f6f5fb;
  border: 2px dashed #b9a2ff;
  border-radius: 18px;
  padding: 22px;
  margin: 22px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pop-verify-box strong {
  font-size: 17px;
  color: #211d4d;
  word-break: break-all;
}
.pop-verify-box small {
  font-size: 12px;
  color: #645f78;
}
.pop-confirm-btn {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: #ffffff !important;
}
  color: #ffffff !important;

/* Document Management in Profile Editor (Attestati, Tesserini, Diplomi) */
.documents-editor-section {
  margin-top: 24px;
}
.documents-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0 20px;
}
.document-item-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(33, 29, 77, 0.08);
  box-shadow: 0 3px 8px rgba(33, 29, 77, 0.04);
}
.doc-icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}
.doc-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.doc-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.doc-title-row strong {
  font-size: 15px;
  font-weight: 800;
  color: #211d4d;
}
.doc-badge-pill {
  font-size: 11px;
  font-weight: 750;
  padding: 3px 8px;
  border-radius: 8px;
  background: var(--discipline-color, #e2ddf8);
  color: #211d4d;
}
.doc-meta-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #554e70;
  flex-wrap: wrap;
}
.doc-meta-info b {
  color: #211d4d;
}
.doc-filename {
  font-size: 11px;
  color: #7b7596;
  font-family: monospace;
}
.doc-actions {
  flex-shrink: 0;
}
.empty-docs-box {
  background: #f6f5fb;
  border: 2px dashed #d5cff0;
  border-radius: 18px;
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #554e70;
}
.empty-docs-box .empty-icon {
  font-size: 32px;
}
.empty-docs-box p {
  margin: 0;
  font-weight: 750;
  font-size: 14px;
  color: #211d4d;
}
.add-document-box {
  background: #faf9fd;
  border: 1.5px solid #e5e0f6;
  border-radius: 20px;
  padding: 20px;
  margin-top: 14px;
}
.add-document-box h3 {
  font-size: 16px;
  font-weight: 850;
  color: #211d4d;
  margin: 0 0 14px 0;
}
.doc-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.doc-form-grid .wide-col {
  grid-column: 1 / -1;
}
@media (max-width: 650px) {
  .doc-form-grid {
    grid-template-columns: 1fr;
  }
}
/* Watermark styling for preview modal */
.doc-watermark-diag {
  position: relative;
  text-align: center;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 1.5px;
  color: rgba(33, 29, 77, 0.45);
  border-top: 1px dashed rgba(33, 29, 77, 0.2);
  border-bottom: 1px dashed rgba(33, 29, 77, 0.2);
  padding: 10px;
  margin: 18px 0;
  text-transform: uppercase;
}
.doc-file-preview-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  max-height: 480px;
  display: flex;
  justify-content: center;
  background: #111;
}
.doc-preview-img {
  max-width: 100%;
  max-height: 480px;
  object-fit: contain;
}
.doc-watermark-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-25deg);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.6);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
  pointer-events: none;
}

/* Planning Import Modal Styling */




.file-drop-zone:hover {
  border-color: #4f46e5;
  background: rgba(99, 102, 241, 0.07);
  transform: translateY(-1px);
}








@media (max-width: 680px) {

}


.recurrence-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-1px);
}
.recurrence-card.active {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.05);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.12);
}



















/* ========================================================
   EMERGENZE & SOSTITUZIONI (REF1 - THE BRIDGE STYLE)
   ======================================================== */
.gym-substitutions-view-v2 {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.sub-day-selector-card {
  background: #ffffff;
  border: 1px solid rgba(33, 29, 77, 0.12);
  border-radius: 18px;
  padding: 16px 20px;
  box-shadow: 0 4px 16px rgba(33, 29, 77, 0.05);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sub-day-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sub-day-header-title {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.sub-day-reset-link {
  background: none;
  border: none;
  color: #4338ca;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  transition: color 0.15s ease;
}

.sub-day-reset-link:hover {
  color: #211d4d;
}

.sub-day-pills-row {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.sub-day-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  background: #f8f8fd;
  color: #475569;
  border: 1px solid rgba(33, 29, 77, 0.12);
  cursor: pointer;
  transition: all 0.15s ease;
}

.sub-day-pill:hover {
  color: #211d4d;
  background: #ffffff;
  border-color: rgba(33, 29, 77, 0.25);
}

.sub-day-pill.is-active {
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  font-weight: 750;
  box-shadow: 0 3px 10px rgba(239, 68, 68, 0.35);
}

.sub-day-pill-count {
  font-weight: 700;
  color: inherit;
  opacity: 0.9;
}

.sub-day-pill-pending-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 6px #f59e0b;
  display: inline-block;
}

/* Controls Toolbar */
.sub-controls-card {
  background: #ffffff;
  border: 1px solid rgba(33, 29, 77, 0.12);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 4px 16px rgba(33, 29, 77, 0.05);
}

.sub-controls-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.sub-search-wrap {
  flex: 1;
  min-width: 200px;
}

.sub-search-input {
  width: 100%;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  background: #f8f8fd;
  color: #211d4d;
  border: 1px solid rgba(33, 29, 77, 0.15);
  outline: none;
  transition: border-color 0.15s ease;
}

.sub-search-input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

.sub-filter-select {
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  background: #f8f8fd;
  color: #211d4d;
  border: 1px solid rgba(33, 29, 77, 0.15);
  outline: none;
  cursor: pointer;
}

.sub-scope-select {
  color: #047857;
  border-color: rgba(16, 185, 129, 0.4);
  font-weight: 600;
}

.sub-view-mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f1f3f9;
  padding: 3px;
  border-radius: 10px;
  border: 1px solid rgba(33, 29, 77, 0.1);
  margin-left: auto;
}

.sub-view-btn {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  background: transparent;
  color: #64748b;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sub-view-btn.is-active {
  background: #ffffff;
  color: #211d4d;
  font-weight: 750;
  box-shadow: 0 1px 4px rgba(33, 29, 77, 0.12);
}

/* Cards Grid (4 columns on desktop) */
.gym-sub-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

@media (min-width: 640px) and (max-width: 1023px) {
  .gym-sub-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .gym-sub-cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gym-sub-card {
  background: #ffffff;
  border: 1px solid rgba(33, 29, 77, 0.12);
  border-radius: 18px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 4px 16px rgba(33, 29, 77, 0.05);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.gym-sub-card:hover {
  border-color: rgba(33, 29, 77, 0.25);
  box-shadow: 0 8px 24px rgba(33, 29, 77, 0.09);
  transform: translateY(-2px);
}

.gym-sub-card.is-open-sos {
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.25), 0 4px 16px rgba(245, 158, 11, 0.1);
}

.gym-sub-card.is-cancelled {
  border-color: rgba(244, 63, 94, 0.4);
  background: rgba(244, 63, 94, 0.04);
}

.gym-sub-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gym-sub-card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}

.sub-discipline-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
}

/* Specific Badge Variants */
.sub-discipline-badge.disc-teal { background: rgba(20, 184, 166, 0.15); color: #2dd4bf; border: 1px solid rgba(20, 184, 166, 0.3); }
.sub-discipline-badge.disc-cyan { background: rgba(6, 182, 212, 0.15); color: #22d3ee; border: 1px solid rgba(6, 182, 212, 0.3); }
.sub-discipline-badge.disc-orange { background: rgba(249, 115, 22, 0.15); color: #fb923c; border: 1px solid rgba(249, 115, 22, 0.3); }
.sub-discipline-badge.disc-emerald { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.sub-discipline-badge.disc-amber { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.sub-discipline-badge.disc-pink { background: rgba(236, 72, 153, 0.15); color: #f472b6; border: 1px solid rgba(236, 72, 153, 0.3); }
.sub-discipline-badge.disc-rose { background: rgba(244, 63, 94, 0.15); color: #fb7185; border: 1px solid rgba(244, 63, 94, 0.3); }
.sub-discipline-badge.disc-blue { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.sub-discipline-badge.disc-indigo { background: rgba(99, 102, 241, 0.15); color: #818cf8; border: 1px solid rgba(99, 102, 241, 0.3); }
.sub-discipline-badge.disc-purple { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }

.sub-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
}

.sub-status-confirmed {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.sub-status-open {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.sub-status-cancelled {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.ping-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 6px #f59e0b;
  animation: pulse-ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes pulse-ping {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

.gym-sub-card-mid-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
}

.gym-sub-time-block {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sub-card-date {
  font-size: 14px;
  font-weight: 750;
  color: #211d4d;
}

.sub-card-time {
  font-size: 12px;
  color: #64748b;
}

.gym-sub-teacher-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.sub-teacher-label {
  font-size: 11px;
  color: #64748b;
}

.sub-teacher-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #211d4d;
}

.role-pill {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
}

.role-pill-interno {
  background: rgba(16, 185, 129, 0.15);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.role-pill-esterno {
  background: rgba(59, 130, 246, 0.15);
  color: #0369a1;
  border: 1px solid rgba(59, 130, 246, 0.3);
}



.sub-phone-link:hover {
  background: rgba(16, 185, 129, 0.2);
  color: #065f46;
}

.sub-assigned-box {
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sub-assigned-label {
  font-size: 11px;
  color: #6d28d9;
  font-weight: 600;
}

.sub-assigned-person {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sub-assigned-name {
  font-size: 12px;
  font-weight: 700;
  color: #4c1d95;
}

/* Actions Row */
.gym-sub-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(33, 29, 77, 0.08);
}

.btn-sub-action-main {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  min-width: 0;
  transition: all 0.15s ease;
}

.btn-sub-ask {
  background: rgba(245, 158, 11, 0.15);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.btn-sub-ask:hover {
  background: rgba(245, 158, 11, 0.25);
  border-color: rgba(245, 158, 11, 0.6);
  color: #78350f;
  transform: translateY(-1px);
}

.btn-sub-active-sos {
  background: rgba(239, 68, 68, 0.15);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.btn-sub-active-sos:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #b91c1c;
}

.btn-sub-reopen {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.btn-sub-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 10px;
  font-size: 12px;
  background: #f8f8fd;
  color: #475569;
  border: 1px solid rgba(33, 29, 77, 0.12);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-sub-icon-btn:hover {
  color: #211d4d;
  border-color: rgba(33, 29, 77, 0.25);
  background: #ffffff;
}

.btn-sub-cancel-btn {
  color: #dc2626;
}

.btn-sub-cancel-btn:hover {
  color: #b91c1c;
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.1);
}

.sub-cancelled-notice {
  flex: 1;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  color: #dc2626;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Table View */
.gym-sub-table-container {
  background: #ffffff;
  border: 1px solid rgba(33, 29, 77, 0.12);
  border-radius: 18px;
  overflow-x: auto;
  box-shadow: 0 4px 16px rgba(33, 29, 77, 0.05);
}

.gym-sub-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}

.gym-sub-table th {
  padding: 12px 16px;
  background: #f8f8fd;
  color: #64748b;
  font-weight: 700;
  border-bottom: 1px solid rgba(33, 29, 77, 0.1);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gym-sub-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(33, 29, 77, 0.08);
  color: #211d4d;
  vertical-align: middle;
}

.gym-sub-table tr:hover td {
  background: #f8f8fd;
}

.sub-table-day {
  font-weight: 700;
  color: #211d4d;
}

.sub-table-time {
  font-size: 11px;
  color: #64748b;
}

.sub-table-substitute {
  font-size: 11px;
  color: #7c3aed;
}

.sub-table-actions-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-sub-table-act {
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
}

.sub-empty-panel {
  background: #ffffff;
  border: 1px solid rgba(33, 29, 77, 0.12);
  border-radius: 18px;
  padding: 32px;
  text-align: center;
  color: #64748b;
}

/* ============================================================
   GYM HEADER BANNER (Apple Royal Blue luminoso, non troppo scuro)
   ============================================================ */


















.ping-dot-green {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
  display: inline-block;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}











.gym-banner-license-pill:hover {
  background: rgba(255, 255, 255, 0.28) !important;
}









.gym-banner-operator-pill:hover {
  background: rgba(255, 255, 255, 0.28) !important;
}





.gym-banner-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.28) !important;
  color: #ffffff !important;
}



.gym-banner-btn-report:hover {
  background: linear-gradient(135deg, #059669, #047857);
}



.gym-banner-btn-sheets:hover {
  background: linear-gradient(135deg, #f5c71a, #eab308);
}



.gym-banner-btn-csv:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* ============================================================
   PLANNING CRUD MODAL (Apple Clean Relief)
   ============================================================ */
dialog.planning-crud-dialog {
  border: 1px solid rgba(33, 29, 77, 0.15) !important;
  background: #ffffff !important;
  border-radius: 20px !important;
  color: #211d4d !important;
  max-width: 620px !important;
  width: 95vw !important;
  padding: 24px 28px !important;
  box-shadow: 0 25px 60px rgba(33, 29, 77, 0.18) !important;
  overflow-y: auto !important;
  max-height: 88vh !important;
}

dialog.planning-crud-dialog header,
dialog.planning-crud-dialog .modal-header {
  border-bottom: 1px solid rgba(33, 29, 77, 0.08) !important;
  padding-bottom: 12px !important;
  margin-bottom: 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: transparent !important;
}

dialog.planning-crud-dialog .modal-close {
  background: #f1f3f9 !important;
  border: none !important;
  color: #64748b !important;
  font-size: 1.3rem !important;
  cursor: pointer !important;
  padding: 4px 10px !important;
  border-radius: 8px !important;
  transition: all 0.15s ease !important;
}

dialog.planning-crud-dialog .modal-close:hover {
  color: #211d4d !important;
  background: #e2e8f0 !important;
}

dialog.planning-crud-dialog header h2,
dialog.planning-crud-dialog #modal-title {
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  color: #211d4d !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.crud-planning-modal-wrapper {
  width: 100%;
}

.crud-modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.crud-field-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.crud-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
}

.crud-input-dark,
.crud-select-dark {
  width: 100%;
  box-sizing: border-box;
  background: #f8f8fd !important;
  border: 1px solid rgba(33, 29, 77, 0.15) !important;
  border-radius: 10px !important;
  color: #211d4d !important;
  padding: 10px 14px !important;
  font-size: 0.95rem !important;
  font-family: inherit !important;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.crud-input-dark:focus,
.crud-select-dark:focus {
  outline: none;
  border-color: #6366f1 !important;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15) !important;
}

.crud-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.crud-recurrence-box {
  background: #f8f8fd !important;
  border: 1px solid rgba(33, 29, 77, 0.12) !important;
  border-radius: 14px !important;
  padding: 14px !important;
  margin-top: 4px !important;
}

.crud-recur-header {
  font-size: 0.82rem;
  font-weight: 800;
  color: #211d4d;
  display: block;
  margin-bottom: 8px;
}

.crud-recur-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.crud-radio-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: #334155;
  cursor: pointer;
}

.crud-radio-row input[type="radio"] {
  accent-color: #6366f1;
  cursor: pointer;
}

.crud-footer-row {
  display: flex;
  align-items: center;
  margin-top: 14px;
  padding-top: 10px;
}

.crud-footer-row.is-edit {
  justify-content: space-between;
}

.crud-footer-row.is-create {
  justify-content: flex-end;
  gap: 10px;
}

.crud-footer-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-crud-delete {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #dc2626;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-crud-delete:hover {
  background: rgba(239, 68, 68, 0.22);
  color: #b91c1c;
}

.btn-crud-cancel {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border: 1px solid rgba(33, 29, 77, 0.12);
  border-radius: 10px;
  background: #f8f8fd;
  color: #475569;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-crud-cancel:hover {
  color: #211d4d;
  background: #ffffff;
  border-color: rgba(33, 29, 77, 0.25);
}

.btn-crud-save {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: 10px;
  background: linear-gradient(135deg, #10b981, #059669);
  border: 1px solid #059669;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.btn-crud-save:hover {
  background: linear-gradient(135deg, #059669, #047857);
}

.btn-crud-save:disabled,
#collaborator-crud-form button[type="submit"]:disabled {
  background: #e2e8f0 !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
  box-shadow: none !important;
  opacity: 1 !important;
  cursor: not-allowed !important;
}

/* --- THEME POP APPLE LIGHT TEAM & SUBTABS --- */

.apple-subtab-switch {
  background: #f1f3f9 !important;
  border: 1px solid rgba(33, 29, 77, 0.1) !important;
  box-shadow: inset 0 2px 4px rgba(33, 29, 77, 0.04) !important;
  border-radius: 12px !important;
  padding: 4px !important;
}


.apple-subtab-btn {
  color: #64748b !important;
  font-weight: 600 !important;
  border-radius: 9px !important;
}


.apple-subtab-btn:hover {
  color: #211d4d !important;
}


.apple-subtab-btn.active {
  background: #ffffff !important;
  color: #211d4d !important;
  border: 1px solid rgba(33, 29, 77, 0.12) !important;
  box-shadow: 0 2px 8px rgba(33, 29, 77, 0.08) !important;
  font-weight: 800 !important;
}


.instructors-crud-toolbar {
  background: #ffffff !important;
  border: 1px solid rgba(33, 29, 77, 0.1) !important;
  border-radius: 16px !important;
  padding: 14px 18px !important;
  box-shadow: 0 4px 14px rgba(33, 29, 77, 0.04) !important;
}


.crud-search-input {
  background: #f8f8fd !important;
  border: 1px solid rgba(33, 29, 77, 0.14) !important;
  color: #211d4d !important;
  border-radius: 10px !important;
}


.type-pill {
  background: #f8f8fd !important;
  border: 1px solid rgba(33, 29, 77, 0.12) !important;
  color: #64748b !important;
  border-radius: 10px !important;
}


.type-pill.active {
  background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  font-weight: 750 !important;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3) !important;
}


.instructor-crud-card {
  background: #ffffff !important;
  border: 1px solid rgba(33, 29, 77, 0.12) !important;
  border-radius: 18px !important;
  color: #211d4d !important;
  box-shadow: 0 4px 16px rgba(33, 29, 77, 0.05) !important;
}


.instructor-crud-card:hover {
  border-color: rgba(33, 29, 77, 0.25) !important;
  box-shadow: 0 8px 24px rgba(33, 29, 77, 0.09) !important;
}


.instructor-name-title {
  color: #211d4d !important;
}


.disciplines-chips-list .crud-disc-chip {
  background: #eef2ff !important;
  color: #4338ca !important;
  border: 1px solid rgba(99, 102, 241, 0.25) !important;
}


.collab-info-tile {
  background: #ffffff !important;
  border: 1px solid rgba(33, 29, 77, 0.12) !important;
  border-radius: 16px !important;
  color: #211d4d !important;
  box-shadow: 0 4px 14px rgba(33, 29, 77, 0.04) !important;
}


.collab-info-tile h4 {
  color: #211d4d !important;
}


.collab-features-list {
  color: #475569 !important;
}


.owner-boundary-tile {
  background: #f8f8fd !important;
  border: 1px solid rgba(33, 29, 77, 0.12) !important;
  border-radius: 14px !important;
}


.owner-boundary-tile p {
  color: #475569 !important;
}


.operator-demo-hint {
  background: #eef2ff !important;
  border: 1px solid rgba(99, 102, 241, 0.25) !important;
  color: #4338ca !important;
}


.collab-card {
  background: #ffffff !important;
  border: 1px solid rgba(33, 29, 77, 0.12) !important;
  border-radius: 18px !important;
  color: #211d4d !important;
  box-shadow: 0 4px 16px rgba(33, 29, 77, 0.05) !important;
}


.collab-card-identity strong {
  color: #211d4d !important;
}

.collab-role-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.collab-role-pill.role-manager {
  background: #fef08a;
  color: #854d0e;
  border: 1px solid #fde047;
}

.collab-role-pill.role-responsabile {
  background: rgba(59, 130, 246, 0.12);
  color: #0369a1;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.collab-role-pill.role-desk {
  background: rgba(168, 85, 247, 0.12);
  color: #7c3aed;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.collab-role-pill.role-custom {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}


.collab-perm-badge {
  background: #f8f8fd !important;
  border: 1px solid rgba(33, 29, 77, 0.12) !important;
  color: #4338ca !important;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
}

/* Emergenze & Sostituzioni Vibrant Accent */
.btn-sub-ask {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(234, 88, 12, 0.22)) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(245, 158, 11, 0.5) !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}

.btn-sub-ask:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.35), rgba(234, 88, 12, 0.35)) !important;
  border-color: #fbbf24 !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* --- HOME DASHBOARD STYLES (GYM & INSTRUCTOR) --- */
.home-page-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}





.home-bento-card:hover {
  transform: translateY(-3px);
  filter: brightness(1.02);
}

/* 1. CORAL (Emergenze Scoperte / Incarichi Confermati) */





/* 2. TEAL / VERDE PETROLIO (Lezioni in Programma / Candidature Inviate) */





/* 3. APRICOT / AL albicocca solare (Candidature Ricevute / Lezioni Disponibili) */





/* 4. LAVENDER / Pervinca pastello (Istruttori nel Team / Recensioni) */













.home-panels-split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 960px) {
  .home-panels-split-row {
    grid-template-columns: 1fr;
  }
}

/* --- SPLIT PANELS (APPLE WHITE SCULPTED PANELS) --- */
.home-dark-panel {
  background: #ffffff;
  border: 1px solid rgba(33, 29, 77, 0.12);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 8px 30px rgba(33, 29, 77, 0.07);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.home-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(33, 29, 77, 0.08);
}

.home-panel-title {
  font-size: 16px;
  font-weight: 850;
  color: #211d4d;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-panel-action-link {
  font-size: 12.5px;
  font-weight: 750;
  color: #4338ca;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.home-panel-action-link:hover {
  color: #211d4d;
  text-decoration: underline;
}

/* --- ITEM CARDS INSIDE SPLIT PANELS --- */
.home-item-card {
  background: #f8f8fd;
  border: 1px solid rgba(33, 29, 77, 0.08);
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 0 2px 6px rgba(33, 29, 77, 0.03);
  transition: all 0.15s ease;
}

.home-item-card:hover {
  filter: brightness(0.97);
  box-shadow: 0 6px 18px rgba(33, 29, 77, 0.12);
  transform: translateY(-1px);
}

.home-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.home-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(33, 29, 77, 0.1);
  box-shadow: 0 2px 6px rgba(33, 29, 77, 0.05);
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}

.home-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.home-item-title {
  font-size: 14px;
  font-weight: 800;
  color: #211d4d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-item-sub {
  font-size: 12px;
  color: #64748b;
  font-weight: 550;
  margin-top: 2px;
}

.home-item-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.home-item-card .btn-sub-ask {
  background: #fa9774 !important;
  color: #211d4d !important;
  border: 1px solid rgba(33, 29, 77, 0.15) !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 8px rgba(250, 151, 116, 0.35) !important;
  border-radius: 10px !important;
}

.home-item-card .btn-sub-ask:hover {
  background: #f77f54 !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.home-item-card .sub-status-confirmed {
  background: #ecfdf5 !important;
  color: #047857 !important;
  border: 1px solid #a7f3d0 !important;
  font-weight: 750 !important;
}

.home-item-card .sub-status-open {
  background: #fffbeb !important;
  color: #b45309 !important;
  border: 1px solid #fde68a !important;
  font-weight: 750 !important;
}

/* --- QUICK ACTIONS BAR (APPLE WHITE RELIEF) --- */
.home-quick-actions-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid rgba(33, 29, 77, 0.12);
  border-radius: 18px;
  padding: 14px 20px;
  box-shadow: 0 4px 18px rgba(33, 29, 77, 0.05);
}

.home-quick-actions-title {
  font-size: 12px;
  font-weight: 850;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-right: 4px;
}

.home-quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 750;
  background: #f8f8fc;
  border: 1px solid rgba(33, 29, 77, 0.1);
  color: #211d4d;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(33, 29, 77, 0.03);
  transition: all 0.15s ease;
}

.home-quick-btn:hover {
  background: #ffffff;
  border-color: #211d4d;
  color: #211d4d;
  box-shadow: 0 4px 12px rgba(33, 29, 77, 0.12);
  transform: translateY(-1px);
}

/* ============================================================
   PLANNING HIGHLIGHT ACTION BAR (Carica Planning & Invia/Schedula PDF)
   ============================================================ */
.planning-primary-actions-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 18px !important;
  padding: 16px 20px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 16px !important;
  flex-wrap: wrap !important;
  margin-bottom: 16px !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05) !important;
}

.planning-primary-left {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
}

.planning-primary-icon-wrap {
  width: 44px !important;
  height: 44px !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%) !important;
  color: #3730a3 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 22px !important;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.15) !important;
}

.planning-primary-title {
  margin: 0 !important;
  font-size: 15px !important;
  font-weight: 850 !important;
  color: #1e1b4b !important;
  letter-spacing: -0.3px !important;
}

.planning-primary-sub {
  margin: 2px 0 0 !important;
  font-size: 12px !important;
  color: #64748b !important;
}

.planning-primary-btns {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}

.btn-import-planning-highlight {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 9px 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  cursor: pointer !important;
  font-family: inherit !important;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.28) !important;
  transition: transform 0.15s ease, filter 0.15s ease !important;
}

.btn-import-planning-highlight:hover {
  transform: translateY(-2px) !important;
  filter: brightness(1.06) !important;
}

.btn-share-planning-highlight {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 9px 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  cursor: pointer !important;
  font-family: inherit !important;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.28) !important;
  transition: transform 0.15s ease, filter 0.15s ease !important;
}

.btn-share-planning-highlight:hover {
  transform: translateY(-2px) !important;
  filter: brightness(1.06) !important;
}

.btn-highlight-icon {
  font-size: 20px !important;
  line-height: 1 !important;
}

.btn-highlight-text {
  display: flex !important;
  flex-direction: column !important;
  text-align: left !important;
}

.btn-highlight-label {
  font-size: 13px !important;
  font-weight: 850 !important;
  line-height: 1.2 !important;
}

.btn-highlight-badge {
  font-size: 10px !important;
  opacity: 0.9 !important;
  font-weight: 650 !important;
  letter-spacing: 0.3px !important;
}

/* Instructor Community: Connected Gyms Cards */
.connected-gym-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.connected-gym-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border-color: rgba(99, 102, 241, 0.3) !important;
}

/* Gym Profile & Settings Page */
.gym-profile-top-banner {
  background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
  border: 1.5px solid rgba(99, 102, 241, 0.18);
  border-radius: 20px;
  padding: 22px 26px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.05);
}
.gym-profile-top-banner .top-banner-main {
  display: flex;
  align-items: center;
  gap: 18px;
}
.gym-profile-top-banner .top-banner-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.gym-profile-top-banner .top-banner-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.gym-profile-top-banner .top-banner-stat {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 10px 16px;
  text-align: center;
  min-width: 105px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.gym-profile-top-banner .top-banner-stat small {
  display: block;
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted, #64748b);
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}
.gym-profile-top-banner .top-banner-stat strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink, #1e293b);
}

.gym-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.95fr);
  gap: 24px;
}
@media (max-width: 980px) {
  .gym-profile-grid {
    grid-template-columns: 1fr;
  }
}

.plan-item-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}


/* ==========================================================================
   Gym Subscription & Invoicing Hub
   ========================================================================== */
.gym-billing-hub {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.gym-trial-banner {
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.6) 0%, rgba(255, 237, 213, 0.5) 100%);
  border: 1.5px solid #fcd34d;
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.gym-trial-banner .gym-trial-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gym-trial-banner .gym-trial-icon {
  font-size: 24px;
  line-height: 1;
}

.gym-trial-banner strong {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  color: #92400e;
  margin-bottom: 2px;
}

.gym-trial-banner p {
  margin: 0;
  font-size: 12px;
  color: #78350f;
  line-height: 1.4;
}

.gym-trial-banner .gym-trial-pill {
  background: #f59e0b;
  color: var(--text-primary,#0f172a);
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.turnkey-setup-card {
  background: linear-gradient(135deg, #ffffff 0%, #fbfcfe 100%);
  border: 1.5px solid rgba(99, 102, 241, 0.25);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.04);
}

.turnkey-setup-card h4 {
  color: var(--ink, #1e293b);
}

.turnkey-deliverables-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.turnkey-deliverables-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: #334155;
  line-height: 1.45;
}

.turnkey-deliverables-list .check-icon {
  color: #059669;
  font-weight: 900;
  flex-shrink: 0;
}

.turnkey-active-badge {
  background: #ecfdf5;
  border: 1.5px solid #a7f3d0;
  color: #065f46;
  font-size: 12px;
  font-weight: 800;
  padding: 10px 14px;
  border-radius: 10px;
  text-align: center;
}

.invoices-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: #ffffff;
}

.invoices-history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}

.invoices-history-table th {
  background: #f8fafc;
  padding: 10px 12px;
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

.invoices-history-table td {
  padding: 12px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: middle;
}

.invoices-history-table tr:last-child td {
  border-bottom: none;
}

.invoices-history-table tr:hover td {
  background: #fafbfe;
}

/* ==========================================================================
   Applications Unified View (Pending & Confirmed Sections)
   ========================================================================== */
.applications-unified-view {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.app-summary-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.app-kpi-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}
.app-kpi-icon {
  font-size: 22px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--page, #f1f2f8);
  flex-shrink: 0;
}
.app-kpi-card.kpi-pending .app-kpi-icon {
  background: #fff7ed;
  color: #ea580c;
}
.app-kpi-card.kpi-confirmed .app-kpi-icon {
  background: #ecfdf5;
  color: #10b981;
}
.app-kpi-card.kpi-completed .app-kpi-icon {
  background: #f5f3ff;
  color: #8b5cf6;
}
.app-kpi-info {
  display: flex;
  flex-direction: column;
}
.app-kpi-num {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--ink, #1e293b);
  letter-spacing: -0.5px;
}
.app-kpi-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted, #737886);
  margin-top: 3px;
}

.next-confirmed-banner {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
  border: 1.5px solid #a7f3d0;
  border-radius: 18px;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.08);
}
.next-confirmed-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.next-confirmed-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #047857;
  text-transform: uppercase;
}
.next-confirmed-title {
  font-size: 18px;
  font-weight: 800;
  color: #064e3b;
  margin: 0;
}
.next-confirmed-details {
  font-size: 12px;
  color: #065f46;
  margin: 0;
}
.next-confirmed-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.next-confirmed-amount {
  font-size: 20px;
  font-weight: 800;
  color: #047857;
}

.applications-block {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e9eaf2;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.03);
  margin-bottom: 24px;
}
.applications-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid #f1f2f8;
  background: #fafafc;
}
.block-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.block-badge-icon {
  font-size: 20px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
}
.block-badge-icon.pending {
  background: #fff7ed;
}
.block-badge-icon.confirmed {
  background: #ecfdf5;
}
.block-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink, #1e293b);
  margin: 0;
}
.block-desc {
  font-size: 11px;
  color: var(--muted, #737886);
  margin: 2px 0 0;
}
.applications-block-body {
  padding: 18px 20px;
}

/* Profile Reviews Access & Subnav */
.profile-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.profile-reviews-btn {
  background: #fdf4ff !important;
  border-color: #f0abfc !important;
  color: #a21caf !important;
  font-weight: 700 !important;
}
.profile-reviews-btn:hover {
  background: #fae8ff !important;
}
.profile-subnav {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  border-bottom: 1px solid #e9e8f2;
  padding-bottom: 12px;
}
.profile-subnav-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted, #737886);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}
.profile-subnav-btn:hover {
  background: #f1f2f8;
  color: var(--ink, #1e293b);
}
.profile-subnav-btn.active {
  background: #ffffff;
  border-color: #e2e8f0;
  color: var(--ink, #1e293b);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  font-weight: 700;
}
.profile-subnav-btn .subnav-pill {
  background: #fdf4ff;
  color: #a21caf;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 700;
}
.clickable-rail-stat {
  width: 100%;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  text-align: left;
}
.clickable-rail-stat:hover {
  background: #ededf8;
  border-color: #dcdbe9;
  transform: translateX(2px);
}
.clickable-rail-stat .rail-arrow-hint {
  margin-left: auto;
  font-size: 14px;
  color: #8b8da1;
  font-weight: bold;
}
.highlight-pulse {
  animation: pulseReviews 1.8s ease-in-out;
}
@keyframes pulseReviews {
  0% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.6); }
  70% { box-shadow: 0 0 0 12px rgba(168, 85, 247, 0); }
  100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0); }
}

@media (max-width: 768px) {
  .app-summary-kpis {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .next-confirmed-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .next-confirmed-right {
    width: 100%;
    justify-content: space-between;
  }
  .applications-block-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* ==========================================================================
   UNIFIED FRONTEND CHECKOUT ENGINE & PRINTABLE INVOICES (TASK 3)
   ========================================================================== */

/* Dialog container sizing */
dialog:has(.checkout-modal-wrap) {
  width: min(720px, calc(100vw - 32px)) !important;
  max-height: 92vh !important;
  background: #ffffff !important;
  color: #111827 !important;
  border-radius: 20px !important;
}

dialog:has(.invoice-modal-printable) {
  width: min(840px, calc(100vw - 32px)) !important;
  max-height: 94vh !important;
  background: #ffffff !important;
  color: #111827 !important;
}

.checkout-modal-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--ink);
}

/* Order Summary Card */
.checkout-summary-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.checkout-item-badge {
  display: inline-block;
  background: #e0e7ff;
  color: #4338ca;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
}

.checkout-cycle-switch {
  display: inline-flex;
  background: #e2e8f0;
  padding: 3px;
  border-radius: 8px;
  gap: 2px;
}

.cycle-switch-btn {
  background: transparent;
  border: none;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cycle-switch-btn.active {
  background: #ffffff;
  color: #1e293b;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.checkout-item-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin: 10px 0 4px;
}

.checkout-item-sub {
  font-size: 12px;
  color: #64748b;
  margin: 0 0 14px;
  line-height: 1.5;
}

.checkout-summary-breakdown {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid #e2e8f0;
  padding-top: 12px;
}

.checkout-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #475569;
}

.checkout-summary-row strong {
  font-weight: 700;
  color: #1e293b;
}

.checkout-summary-row.discount-row {
  color: #059669;
  font-weight: 600;
}

.checkout-summary-row.discount-row .discount-val {
  color: #059669;
  font-weight: 700;
}

.checkout-tag-free {
  display: inline-block;
  background: #d1fae5;
  color: #065f46;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.checkout-summary-row.subtle {
  font-size: 11px;
  color: #64748b;
}

.checkout-summary-divider {
  height: 1px;
  background: #cbd5e1;
  margin: 4px 0;
}

.checkout-summary-row.total-row {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  padding-top: 4px;
}

.checkout-summary-row.total-row .total-amount {
  font-size: 19px;
  font-weight: 900;
  color: #4f46e5;
}

/* Sections */
.checkout-section-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 18px;
  margin-top: 4px;
}

.checkout-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.checkout-step-num {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #4f46e5;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.checkout-section-title h4 {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.checkout-step-sub {
  font-size: 11px;
  color: #64748b;
  margin: 2px 0 0;
}

/* Fiscal selector */
.checkout-fiscal-selector {
  margin-bottom: 14px;
}

.checkout-tax-toggle {
  display: inline-flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 10px;
  gap: 4px;
  width: 100%;
}

.checkout-tax-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  border: none;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.checkout-tax-btn.active {
  background: #ffffff;
  color: #1e293b;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}

/* Payment tabs */
.payment-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.payment-tab {
  flex: 1;
  min-width: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  transition: all 0.15s ease;
}

.payment-tab:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.payment-tab.active {
  background: #eef2ff;
  border-color: #6366f1;
  color: #4338ca;
  box-shadow: 0 0 0 1px #6366f1;
}

/* Card Inputs */
.card-fields-grid,
.sepa-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.input-with-card-icons {
  position: relative;
}

.input-with-card-icons input {
  padding-right: 95px;
}

.card-brands {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #94a3b8;
  pointer-events: none;
}

/* PayPal Button */
.paypal-panel-content {
  text-align: center;
  padding: 16px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.paypal-badge-box {
  margin-bottom: 12px;
}

.paypal-pill {
  display: inline-block;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 4px;
}

.paypal-badge-box p {
  font-size: 11px;
  color: #64748b;
  margin: 4px 0 0;
}

.paypal-button-mock {
  width: 100%;
  max-width: 340px;
  height: 44px;
  background: #ffc439;
  border: none;
  border-radius: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(255, 196, 57, 0.4);
  transition: transform 0.15s ease, background 0.15s ease;
}

.paypal-button-mock:hover {
  background: #f4b400;
  transform: scale(1.02);
}

.paypal-logo-wrap {
  font-size: 14px;
  color: #003087;
  display: flex;
  align-items: center;
  gap: 2px;
}

.paypal-logo-wrap i {
  font-style: italic;
  font-weight: 900;
}

.paypal-logo-wrap i:last-of-type {
  color: #0079c1;
  margin-left: -3px;
  margin-right: 4px;
}

.paypal-pay-action {
  font-size: 13px;
  font-weight: 700;
  color: #003087;
}

.checkout-security-notice {
  font-size: 11px;
  color: #64748b;
  margin: 12px 0 0;
  line-height: 1.5;
}

.checkout-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  margin-top: 10px;
  border-top: 1px solid #e2e8f0;
}

.checkout-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 220px;
  font-size: 13px;
  font-weight: 700;
  padding: 11px 20px;
}

/* Keep checkout actions inside narrow phone dialogs. */
@media (max-width: 520px) {
  .checkout-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .checkout-footer > .btn,
  .checkout-submit-btn {
    width: 100%;
    min-width: 0;
  }
}

/* Printable Invoice Modal Layout */
.invoice-modal-printable {
  width: 100%;
  background: #ffffff;
  color: #111827;
}

.invoice-preview-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 24px;
  color: #111827;
  font-family: inherit;
}

.invoice-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 18px;
  margin-bottom: 18px;
}

.invoice-brand-title {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #1e1b4b;
  margin-bottom: 4px;
}

.invoice-company-sub {
  font-size: 11px;
  line-height: 1.6;
  color: #4b5563;
  margin: 0;
}

.invoice-doc-meta {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.invoice-type-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.invoice-type-pill.vat-pill {
  background: #dbeafe;
  color: #1e40af;
}

.invoice-type-pill.receipt-pill {
  background: #fef3c7;
  color: #92400e;
}

.invoice-doc-number {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin: 2px 0 4px;
}

.invoice-meta-row {
  font-size: 11px;
  color: #64748b;
}

.invoice-meta-row strong {
  color: #1e293b;
  font-weight: 600;
}

.invoice-stamp-paid {
  margin-top: 6px;
  display: inline-block;
  padding: 3px 10px;
  background: #ecfdf5;
  border: 1px solid #10b981;
  border-radius: 6px;
  color: #047857;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.invoice-client-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 20px;
}

.invoice-client-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 8px;
}

.invoice-client-grid {
  font-size: 12px;
  line-height: 1.6;
  color: #1e293b;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.invoice-client-grid code {
  background: #e2e8f0;
  padding: 1px 4px;
  border-radius: 4px;
  font-size: 11px;
  font-family: inherit;
}

.invoice-detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-bottom: 16px;
}

.invoice-detail-table th {
  background: #f1f5f9;
  color: #334155;
  font-weight: 700;
  padding: 10px 12px;
  border-bottom: 1px solid #cbd5e1;
  text-align: left;
}

.invoice-detail-table td {
  padding: 12px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: top;
  color: #1e293b;
}

.invoice-detail-table tfoot td {
  padding: 6px 12px;
  border-bottom: none;
  color: #475569;
}

.invoice-grand-total-row td {
  border-top: 2px solid #0f172a !important;
  color: #0f172a !important;
  padding-top: 10px !important;
}

.invoice-legal-note {
  border-top: 1px solid #e2e8f0;
  padding-top: 12px;
  margin-bottom: 18px;
}

.invoice-legal-note p {
  font-size: 10px;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

.invoice-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}

/* Print Rules */
@media print {
  body * {
    visibility: hidden;
  }
  .invoice-modal-printable,
  .invoice-modal-printable *,
  .register-printable-sheet,
  .register-printable-sheet * {
    visibility: visible;
  }
  .invoice-modal-printable {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 20mm;
    box-shadow: none !important;
    border: none !important;
    background: #ffffff !important;
    color: #111827 !important;
  }
  .register-printable-sheet {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 10mm;
    background: #fff !important;
    color: #111827 !important;
    box-shadow: none !important;
    border: none !important;
  }
  .invoice-preview-card {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  dialog {
    position: static !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    max-height: none !important;
    width: 100% !important;
  }
  .modal-header,
  .modal-close,
  .no-print {
    display: none !important;
  }
  tr {
    page-break-inside: avoid;
  }
}

/* ==========================================================================
   Instructor Verification & Referral Program Hub
   ========================================================================== */

.instructor-verification-hub {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.verification-status-banner {
  padding: 20px;
  border-radius: 14px;
  border: 1.5px solid;
  transition: all 0.2s ease;
}

.verification-status-banner.verified {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(5, 150, 105, 0.04) 100%);
  border-color: rgba(16, 185, 129, 0.35);
}

.verification-status-banner.pending {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(217, 119, 6, 0.04) 100%);
  border-color: rgba(245, 158, 11, 0.3);
}

.verification-status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.albo-badge-active {
  background: #10b981;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.albo-badge-pending {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
  padding: 4px 10px;
  border-radius: 20px;
}

.verification-validity {
  font-size: 12px;
  font-weight: 700;
  color: #065f46;
}

.verification-free-note {
  font-size: 11px;
  font-weight: 700;
  color: #b45309;
}

.verification-status-title {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--ink, #1e293b);
}

.verification-status-desc {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-muted, #64748b);
  margin: 0;
}

.verification-service-card {
  padding: 22px;
  border-radius: 16px;
  border: 1.5px solid rgba(99, 102, 241, 0.25);
  background: var(--surface, #ffffff);
}

.verification-checklist {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.verification-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink, #334155);
  line-height: 1.45;
}

.verification-pricing-breakdown {
  border: 1px solid var(--line, rgba(0, 0, 0, 0.08));
}

.referral-program-card {
  padding: 22px;
  border-radius: 16px;
  border: 1.5px solid rgba(245, 158, 11, 0.3);
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.2) 0%, rgba(255, 255, 255, 1) 100%);
}

.referral-discount-badge {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
}

.referral-discount-badge.unlocked {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

.referral-link-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.referral-link-input {
  flex: 1 1 240px;
  font-family: monospace;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1.5px solid var(--line, #cbd5e1);
  background: var(--surface-2, #f8fafc);
  color: var(--ink, #1e293b);
}

.whatsapp-share-btn {
  background: #25d366 !important;
  color: #ffffff !important;
  border-color: #25d366 !important;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.whatsapp-share-btn:hover {
  background: #1ebc57 !important;
}

.btn.btn-copied {
  background: #10b981 !important;
  color: #fff !important;
  border-color: #10b981 !important;
}

.referral-progress-wrap {
  background: var(--surface-2, #f8fafc);
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line, rgba(0, 0, 0, 0.08));
}

.referral-progress-track {
  height: 10px;
  border-radius: 6px;
  background: #e2e8f0;
  overflow: hidden;
}

.referral-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #6366f1 0%, #10b981 100%);
  border-radius: 6px;
  transition: width 0.4s ease-in-out;
}

.rail-verification-stat .rail-stat-icon.gold {
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
}

/* Dark Themes (Neon / Energy) adjustments */


/* Shared lesson views: keyboard access, local-map context and narrow layouts. */
.pop-row-title { text-align:left; color:inherit; font:inherit; font-weight:750; }
.map-demo-note { font-size:12px; line-height:1.6; color:var(--ink); margin:0; }
button.map-pill-pin { padding:0; border:0; background:transparent; color:#211d4d; text-align:left; }
.view-mode-btn:focus-visible, .floating-view-btn:focus-visible,
.pop-row-title:focus-visible, .map-pill-pin:focus-visible, .map-rail-item:focus-visible {
  outline:3px solid #6366f1; outline-offset:4px;
}
.cluster-lesson-price small { display:block; font-size:10px; font-weight:500; }
@media (min-width:769px) and (max-width:1200px) {
  .pop-list-header, .pop-list-row { grid-template-columns:110px minmax(100px,1.4fr) minmax(90px,1fr) 95px 95px; gap:10px; padding:12px; }
}
.pop-list-row > div { min-width:0; overflow-wrap:anywhere; }
@media (max-width:768px) {
  .map-canvas-frame { min-height:620px; max-height:none; }
  .map-info-pill { border-radius:12px; flex-wrap:wrap; }
}

@media (max-width:768px) {
  #lessons-section .heading-controls .view-mode-switch { display:none; }
}
.lesson-list.is-map { grid-template-columns:minmax(0,1fr); }
.pop-map-container, .map-bottom-rail { min-width:0; max-width:100%; }
#lessons-section > .section-heading { flex-wrap:wrap; }

/* Local Premium messaging and instructor-owned channels. */
.messaging-contact-fields { border:1px solid var(--line,#ddd9e9); border-radius:14px; padding:16px; margin:18px 0; min-width:0; }
.messaging-contact-fields legend { padding:0 6px; font-weight:700; font-size:13px; }
.messaging-contact-fields p,.messaging-contact-fields small,.contact-explanation { font-size:12px; line-height:1.7; margin:8px 0 14px; }
.premium-contact-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr)); gap:14px; margin-top:20px; }
.premium-contact-card { border:1px solid var(--line,#ddd9e9); border-radius:14px; padding:18px; display:grid; gap:12px; min-width:0; }
.premium-contact-card h3 { overflow-wrap:anywhere; }
.contact-inline-form { display:flex; gap:12px; flex-wrap:wrap; align-items:end; margin-top:16px; }
.contact-inline-form .field { flex:1; min-width:min(100%,220px); }
.contact-inline-form .form-error { flex-basis:100%; }
#contact-message-form { display:grid; gap:14px; }
#contact-preview { margin:0; }
@media(max-width:600px){.messaging-contact-fields .profile-fields{grid-template-columns:1fr}.contact-inline-form>.btn{width:100%}}

.prelaunch-notice { display:block; margin-bottom:24px; }
.prelaunch-notice p { margin:8px 0; }
.registration-local-note { display:block; margin:16px 0; font-size:13px; line-height:1.6; }
.registration-local-note input { width:auto; margin-right:8px; }

.is-prelaunch #quick-search-form, .is-prelaunch #notifications-button, .is-prelaunch #help-button-top, .is-prelaunch #operator-switcher-host { display:none !important; }

.email-delivery-preview { margin:20px 0; padding:14px; border:1px solid var(--line); text-align:left; overflow-wrap:anywhere; }
.email-delivery-preview summary { cursor:pointer; font-weight:700; }
.email-delivery-preview p { margin:12px 0; font-size:13px; }
.email-delivery-preview pre { white-space:pre-wrap; overflow-wrap:anywhere; font-family:inherit; font-size:12px; line-height:1.6; }

.registration-local-note small{display:block;margin-top:6px;overflow-wrap:anywhere}.registration-local-note p{margin:8px 0 0}

.title-count{display:inline-block;font-size:.78rem;font-weight:650;padding:4px 8px;background:#ece9ff;color:#29214d;border-radius:8px;margin:4px 0;white-space:normal}.roster-actions{display:flex;gap:8px;flex-wrap:wrap}.roster-request{display:flex;gap:14px;align-items:center;justify-content:space-between;padding:16px 0;border-bottom:1px solid #dcd9e9;overflow-wrap:anywhere}.roster-request p{margin:4px 0}.roster-request>div{min-width:0}.roster-connections{margin-bottom:20px}.premium-contact-card{overflow-wrap:anywhere;min-width:0}#roster-results{margin:16px 0}@media(max-width:600px){.roster-request{align-items:flex-start;flex-direction:column}.roster-request button,.roster-actions .btn{max-width:100%}}

.premium-old-price{display:inline-block;font-size:.7em;font-weight:650;color:var(--text-muted,#64748b);margin-right:.45em;text-decoration:line-through;text-decoration-thickness:2px;text-decoration-color:var(--coral,#e46472)}.premium-offer-label{display:inline-block;padding:4px 9px;margin:5px 0;border-radius:999px;background:#fff0b9;color:#4f3900;font-size:11px;font-weight:800}.premium-price-offer{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}

.premium-price-offer .premium-old-price{font-size:1.05rem}.premium-current-price{font-size:1.8rem;font-weight:900;color:#bd6500}.premium-price-offer strong{line-height:1.15}

/* Candidature: ciano come la navigazione, ambra per attesa, verde per incarichi. */

/* Home: prova antracite richiesta dal proprietario. */

/* Profilo: prova verde salvia richiesta dal proprietario. */

/* Palette approvata: Community petrolio e Notifiche arancione acceso. */
}
