:root{--blue:#1e90ff;--blue-deep:#0a6bc6;--blue-pale:#eaf5ff;--ink:#142743;--muted:#7889a1;--line:#e5edf7;--canvas:#f5f8fd;--card:#fff;--green:#0ea777;--shadow:0 12px 42px rgba(25,64,110,.055);--rad:20px;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);font-synthesis:none}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-height:100vh;background:var(--canvas);font-size:15px;line-height:1.5}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}input,select,textarea{color:var(--ink)}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}img{max-width:100%}.ico{width:20px;height:20px;display:inline-block;vertical-align:middle;flex-shrink:0;stroke-width:1.9}.hidden{display:none!important}.sr-only{position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden}.muted{color:var(--muted)}.sm{font-size:13px}.xs{font-size:12px}.b{font-weight:700}.caps{font-size:11px;letter-spacing:.12em;text-transform:uppercase;font-weight:800;color:var(--muted)}.blue{color:var(--blue)}.center{text-align:center}.line{height:1px;background:var(--line);width:100%}.flex{display:flex;align-items:center;gap:12px}.between{display:flex;align-items:center;justify-content:space-between;gap:16px}.stack{display:flex;flex-direction:column;gap:12px}.wrap{flex-wrap:wrap}.w100{width:100%}.mt8{margin-top:8px}.mt16{margin-top:16px}.mt24{margin-top:24px}.mb0{margin-bottom:0}
.btn{appearance:none;border:1px solid transparent;display:inline-flex;align-items:center;justify-content:center;gap:9px;border-radius:11px;padding:11px 16px;min-height:43px;font-size:13.5px;font-weight:750;white-space:nowrap;transition:background .16s,color .16s,border .16s,transform .16s}.btn:hover:not(:disabled){transform:translateY(-1px)}.btn .ico{width:17px;height:17px}.btn-primary{background:var(--blue);color:white;box-shadow:0 7px 18px rgba(30,144,255,.22)}.btn-primary:hover{background:var(--blue-deep)}.btn-soft{background:var(--blue-pale);color:var(--blue-deep)}.btn-ghost{background:#fff;border-color:var(--line);color:var(--ink)}.btn-ghost:hover{background:#f7faff}.btn-outline{border-color:var(--blue);color:var(--blue);background:white}.btn-danger{color:#cd3f55;background:#fff2f5}.btn-small{font-size:12.5px;min-height:35px;padding:7px 11px;border-radius:9px}.btn-round{border-radius:50%;width:43px;height:43px;padding:0;flex-shrink:0}.btn-round .ico{width:19px;height:19px}.btn-link{border:0;background:none;color:var(--blue);padding:5px}.badge{font-size:11px;font-weight:750;border-radius:9px;background:#eaf5ff;color:#1574cb;padding:6px 9px;display:inline-flex;align-items:center;gap:4px;white-space:nowrap}.badge.orange{background:#fff3e4;color:#c67a21}.badge.green{background:#e6f7ef;color:#16815e}.badge.purple{background:#f0ebff;color:#7a57c9}.badge.grey{background:#f1f4f8;color:#6c7c91}.card{background:var(--card);border:1px solid var(--line);border-radius:var(--rad);box-shadow:var(--shadow)}.card-pad{padding:22px}.section-title{font-size:18px;line-height:1.35;letter-spacing:-.35px;font-weight:800;margin:0}.section-subtitle{font-size:13px;color:var(--muted);margin:3px 0 0}.page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin:0 0 25px}.page-title{margin:0;font-size:29px;letter-spacing:-1.25px;line-height:1.25;font-weight:850}.page-subtitle{color:var(--muted);font-size:14px;margin:7px 0 0}
.shell{display:grid;grid-template-columns:256px minmax(0,1fr);min-height:100vh}.sidebar{background:white;border-right:1px solid var(--line);min-height:100vh;padding:29px 17px 18px;display:flex;flex-direction:column;gap:30px;position:sticky;top:0;height:100vh;z-index:6}.brand{display:flex;align-items:center;gap:11px;padding:0 11px;text-decoration:none!important;color:var(--ink)}.brand img{width:44px;height:44px;filter:drop-shadow(0 3px 8px rgba(30,144,255,.08))}.brand strong{font-size:18px;line-height:1.12;font-weight:860;letter-spacing:-.6px;display:block}.brand span{font-size:11px;color:var(--muted)}.choir-pick{margin:0 5px}.choir-pick>label{display:block;margin:0 5px 8px}.choir-switch{width:100%;border:1px solid #dfeafa;border-radius:14px;background:#f7fbff;padding:11px;display:flex;align-items:center;gap:9px;text-align:left}.choir-switch strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:145px;font-size:12.8px}.choir-switch small{color:var(--muted);font-size:11px}.choir-switch .ico:last-child{margin-left:auto;width:15px}.avatar-choir{background:linear-gradient(135deg,#d8eeff,#f5f9ff);border:1px solid #c9e6ff;color:var(--blue);border-radius:11px;width:38px;height:38px;display:grid;place-items:center;flex-shrink:0}.nav{display:flex;flex-direction:column;gap:5px}.nav .nav-heading{margin:4px 14px 9px}.nav-link{display:flex;align-items:center;gap:12px;text-decoration:none!important;color:#6e7e95;font-weight:680;padding:12px 14px;border-radius:11px;transition:background .15s,color .15s;font-size:13.8px}.nav-link:hover{background:#f6faff;color:#1d77c5}.nav-link.active{color:var(--blue-deep);background:#eaf5ff}.nav-link .ico{width:19px;height:19px}.sidebar-bottom{margin-top:auto}.help-card{background:linear-gradient(135deg,#eaf6ff,#f3f9ff);border-radius:15px;padding:17px;margin-bottom:17px}.help-card .ico{color:var(--blue)}.help-card strong{font-size:13px;display:block;margin:8px 0 3px}.help-card p{font-size:12px;color:var(--muted);margin:0}.account-chip{display:flex;gap:10px;align-items:center;padding:11px;border-top:1px solid var(--line)}.account-circle{background:linear-gradient(135deg,#1e90ff,#71ccff);border-radius:11px;width:38px;height:38px;color:white;display:grid;place-items:center;font-weight:800}.account-chip strong{font-size:12px;display:block}.account-chip small{font-size:10.5px;color:var(--muted);display:block;max-width:145px;overflow:hidden;text-overflow:ellipsis}.main{min-width:0}.topbar{height:80px;background:rgba(255,255,255,.90);border-bottom:1px solid var(--line);padding:0 40px;display:flex;align-items:center;justify-content:space-between;gap:16px;position:sticky;top:0;z-index:5;backdrop-filter:blur(12px)}.breadcrumbs{display:flex;align-items:center;gap:9px;font-size:12.5px;color:#8291a5}.breadcrumbs strong{color:var(--ink)}.top-actions{display:flex;gap:10px;align-items:center}.top-actions .date{font-size:12px;color:var(--muted);margin-right:12px}.top-circle{width:38px;height:38px;border:1px solid var(--line);border-radius:50%;display:grid;place-items:center;color:var(--muted);background:white}.content{max-width:1300px;margin:0 auto;padding:36px 40px 72px}.mobile-top,.bottom-nav{display:none}
.hero{background:linear-gradient(110deg,#0a77d9,#1e90ff 54%,#64bdff);color:white;border:0;padding:29px 34px 30px;min-height:210px;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between}.hero:after{content:"";position:absolute;right:-65px;bottom:-185px;width:440px;height:440px;border:72px solid rgba(255,255,255,.11);border-radius:50%}.hero:before{content:"♫";position:absolute;right:120px;top:-42px;font-size:230px;font-family:Georgia,serif;color:rgba(255,255,255,.14);transform:rotate(-10deg)}.hero-copy{max-width:490px;z-index:1}.hero .kicker{font-size:12px;font-weight:700;opacity:.85;letter-spacing:.08em;text-transform:uppercase}.hero h2{font-size:30px;line-height:1.2;letter-spacing:-1.1px;margin:11px 0}.hero p{opacity:.9;margin:0 0 18px;font-size:14px}.hero .btn{background:white;color:var(--blue-deep);box-shadow:0 8px 16px rgba(3,83,157,.18)}.hero-illustration{width:220px;height:150px;position:relative;z-index:2}.hero-disc{position:absolute;border-radius:50%;background:rgba(255,255,255,.14);width:145px;height:145px;right:20px;top:-4px;display:grid;place-items:center}.hero-disc .ico{width:95px;height:95px;color:white;stroke-width:1}.hero-note{position:absolute;font-size:36px;color:rgba(255,255,255,.72);left:16px;top:22px}.quick-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:20px 0 25px}.stat{display:flex;align-items:center;gap:15px;padding:20px}.stat-icon{display:grid;place-items:center;width:48px;height:48px;flex-shrink:0;border-radius:14px;background:#e9f5ff;color:var(--blue)}.stat-icon.green{background:#e6f8f2;color:#0a9b70}.stat-icon.purple{background:#f0edff;color:#8b65d9}.stat strong{font-size:26px;line-height:1.1;display:block;font-weight:850}.stat span{font-size:12px;color:var(--muted)}.two-column{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(285px,1fr);gap:20px}.section-bar{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px;gap:12px}.song-list,.setlist-compact{display:flex;flex-direction:column}.song-list-row{display:flex;align-items:center;gap:13px;padding:14px 0;border-top:1px solid var(--line);cursor:pointer;transition:background .15s}.song-list-row:hover{background:#fbfdff}.song-list-row:first-child{border-top:0}.song-list-row .song-art{width:43px;height:43px;border-radius:12px;display:grid;place-items:center;flex-shrink:0;background:linear-gradient(140deg,#d6eeff,#f1f7ff);color:var(--blue)}.song-list-row .song-art .ico{width:22px;height:22px}.song-list-row h4{margin:0 0 4px;font-size:13.5px;line-height:1.3;font-weight:800}.song-list-row p{font-size:11.5px;color:var(--muted);margin:0}.song-list-row .row-end{margin-left:auto;display:flex;align-items:center;gap:14px}.song-list-row .row-end>.ico{color:#9ba9bb;width:16px}.quick-item{display:flex;align-items:center;gap:12px;border-top:1px solid var(--line);padding:15px 0;cursor:pointer}.quick-item:first-child{border-top:0}.quick-item .datebox{display:grid;place-items:center;border-radius:10px;background:var(--blue-pale);color:var(--blue-deep);min-width:48px;min-height:49px;font-size:11px;font-weight:800;text-transform:uppercase}.quick-item .datebox strong{font-size:20px;line-height:1}.quick-item h4{font-size:13.5px;margin:0 0 4px}.quick-item p{margin:0;color:var(--muted);font-size:11px}.quick-item>.ico{margin-left:auto;color:#aab8c8;width:18px}.empty{text-align:center;padding:52px 16px}.empty .empty-icon{display:grid;place-items:center;background:var(--blue-pale);color:var(--blue);border-radius:22px;width:70px;height:70px;margin:0 auto 15px}.empty h3{margin:0 0 8px;font-size:19px}.empty p{color:var(--muted);font-size:13px;margin:0 auto 18px;max-width:300px}.blank-hint{padding:12px;color:var(--muted);font-size:13px}
.toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:20px}.search-wrap{position:relative;flex:1;min-width:210px}.search-wrap .ico{position:absolute;left:15px;top:50%;transform:translateY(-50%);color:#9ca9bb;width:18px}.input,.select,.textarea{display:block;width:100%;background:white;border:1px solid #dce6f2;border-radius:11px;outline:none;padding:12px 13px;transition:border-color .15s,box-shadow .15s;min-height:45px}.input:focus,.select:focus,.textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(30,144,255,.10)}.search-wrap .input{padding-left:43px}.textarea{min-height:165px;resize:vertical;line-height:1.6}.select{padding-right:28px}.chips{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-bottom:18px}.chip{font-size:12px;font-weight:650;padding:8px 13px;border-radius:99px;border:1px solid #e1eaf6;color:#63758d;background:white}.chip.selected{background:var(--blue);color:#fff;border-color:var(--blue)}.song-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.song-card{background:white;border:1px solid var(--line);border-radius:17px;padding:20px;display:flex;flex-direction:column;gap:17px;box-shadow:var(--shadow);cursor:pointer;transition:transform .16s,box-shadow .16s}.song-card:hover{transform:translateY(-3px);box-shadow:0 15px 35px rgba(25,64,110,.10)}.song-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:9px}.music-icon{width:49px;height:49px;border-radius:14px;display:grid;place-items:center;color:var(--blue);background:linear-gradient(130deg,#d8f0ff,#edf7ff)}.music-icon .ico{width:26px;height:26px}.song-card h3{font-size:16px;margin:0 0 5px;letter-spacing:-.3px}.song-card p{font-size:12px;color:var(--muted);margin:0}.song-meta{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding-top:13px;font-size:11.5px;color:var(--muted)}.song-meta .ico{width:14px;height:14px}.song-meta b{color:#405875}.feature-label{color:var(--blue-deep);font-size:10.5px;font-weight:850;letter-spacing:.1em;text-transform:uppercase}.setlist-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.setlist-card{padding:23px;cursor:pointer;transition:transform .16s}.setlist-card:hover{transform:translateY(-2px)}.setlist-card h3{font-size:17px;letter-spacing:-.3px;margin:17px 0 6px}.setlist-card p{font-size:12px;color:var(--muted);margin:0}.setlist-card-foot{display:flex;justify-content:space-between;align-items:center;margin-top:23px;padding-top:15px;border-top:1px solid var(--line)}.date-pill{font-size:11px;color:var(--blue-deep);background:var(--blue-pale);padding:7px 10px;border-radius:8px;display:inline-flex;gap:5px}.setlist-detail{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:22px}.setlist-item{display:flex;align-items:center;gap:13px;border-bottom:1px solid var(--line);padding:14px 3px;cursor:pointer}.setlist-item:last-child{border:0}.setlist-item .num{width:31px;height:31px;background:#edf4fc;border-radius:9px;display:grid;place-items:center;color:#6a83a4;font-size:12px;font-weight:800;flex-shrink:0}.setlist-item h4{margin:0 0 3px;font-size:14px}.setlist-item p{margin:0;color:var(--muted);font-size:12px}.setlist-item>.ico{margin-left:auto;color:var(--blue)}.side-info{padding:23px}.side-info h3{margin:0 0 13px;font-size:15px}.side-info p{font-size:12px;color:var(--muted)}
/* reader */
.reader-shell{display:flex;flex-direction:column;gap:17px}.reader-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.reader-head h1{font-size:28px;margin:7px 0 3px;letter-spacing:-.95px}.reader-head p{font-size:12px;color:var(--muted);margin:0}.reader-head-actions{display:flex;align-items:center;gap:8px}.reader-control-card{padding:21px 25px}.reader-row{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap}.tempo-group,.transport-group,.transpose-group{display:flex;align-items:center;gap:8px}.tempo-number{min-width:85px;text-align:center}.tempo-number strong{font-size:27px;font-weight:860;color:var(--blue-deep);line-height:1.05;display:block}.tempo-number small{font-size:10px;color:var(--muted)}.tempo-group .btn-round{width:32px;height:32px;min-height:32px;font-size:12px;font-weight:850}.tempo-group .btn-small{min-height:31px}.play-btn{border:0;background:var(--blue);color:white;border-radius:50%;width:50px;height:50px;display:grid;place-items:center;box-shadow:0 7px 20px rgba(30,144,255,.24)}.play-btn .ico{width:25px;height:25px}.toggle{display:inline-flex;align-items:center;gap:8px;color:#546c87;font-size:12px;font-weight:650;cursor:pointer;user-select:none}.toggle input{appearance:none;width:37px;height:22px;border-radius:50px;background:#cbd7e7;position:relative;transition:background .2s;cursor:pointer}.toggle input:before{content:"";position:absolute;left:3px;top:3px;border-radius:50%;background:white;width:16px;height:16px;transition:transform .2s}.toggle input:checked{background:var(--blue)}.toggle input:checked:before{transform:translateX(15px)}.beat-group{display:flex;align-items:center;justify-content:center;gap:10px;border-top:1px solid var(--line);margin-top:17px;padding-top:15px;min-height:38px}.beat{width:12px;height:12px;border-radius:50%;background:#d6e1ed;transition:background .08s,box-shadow .08s,transform .08s}.beat.current{background:var(--blue);box-shadow:0 0 0 6px rgba(30,144,255,.12),0 0 14px rgba(30,144,255,.65);transform:scale(1.16)}.beat.first{width:15px;height:15px}.beat.first.current{background:#0a75d4;box-shadow:0 0 0 7px rgba(30,144,255,.17),0 0 18px rgba(30,144,255,.75)}.beat-info{font-size:11px;color:var(--muted);margin-left:12px}.score-layout{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:18px;align-items:start}.score-card{overflow:hidden}.score-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 23px;border-bottom:1px solid var(--line);background:#fcfdff}.score-toolbar .tag{font-size:11px;color:var(--blue-deep);font-weight:800}.score-toolbar .hint{font-size:10.5px;color:var(--muted)}.score-scroll{height:480px;overflow-y:auto;scroll-behavior:auto;padding:22px 42px 100px;overscroll-behavior:contain;scrollbar-color:#bfdbf5 transparent}.score-scroll:focus{outline:3px solid rgba(30,144,255,.15)}.score-line{margin:0;min-height:40px;display:flex;flex-wrap:wrap;align-items:end;column-gap:0;font-size:20px;line-height:1.45;font-weight:500;white-space:pre-wrap}.score-line.has-chords{padding-top:9px;min-height:53px}.score-line.plain{padding:10px 0 5px}.score-line.section{padding:18px 0 9px;color:#6b819c;font-size:12.5px;font-weight:850;letter-spacing:.07em;text-transform:uppercase;min-height:0}.score-line.blank{min-height:23px}.chord-segment{display:inline-flex;vertical-align:bottom;flex-direction:column;white-space:pre;flex-shrink:0;max-width:100%}.chord-label{color:#0784ef;font-weight:800;font-size:13px;letter-spacing:.1px;min-height:19px;line-height:19px}.text-label{min-height:29px}.score-end{border-top:1px dashed #d9e8f5;margin-top:30px;padding-top:18px}.score-end .end-label{display:flex;align-items:center;gap:8px;font-size:13px;color:#71a0cd;font-weight:750;margin-bottom:17px}.score-end .end-label .ico{width:17px}.suggestion-stack{display:flex;flex-direction:column;gap:9px}.suggestion-btn{text-align:left;width:100%;display:flex;align-items:center;gap:12px;background:#f6faff;border:1px solid #daedff;border-radius:12px;padding:12px 14px;color:var(--ink)}.suggestion-btn:hover{background:#eaf5ff}.suggestion-btn .ico:last-child{margin-left:auto;color:var(--blue)}.suggestion-btn strong{display:block;font-size:13px}.suggestion-btn small{display:block;font-size:11px;color:var(--muted)}.reader-aside .card{padding:21px}.reader-aside h3{font-size:15px;margin:0 0 5px}.reader-aside p{color:var(--muted);font-size:12px;margin:0}.quick-nav{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:17px}.quick-nav button{min-height:76px;background:#f8fbff;border:1px solid #e2edf8;border-radius:12px;display:flex;align-items:center;gap:8px;text-align:left;color:var(--ink);padding:12px}.quick-nav button:last-child{text-align:right;justify-content:flex-end}.quick-nav button strong{display:block;font-size:11px}.quick-nav button small{display:block;font-size:11px;color:var(--muted);max-width:115px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.quick-nav .ico{color:var(--blue)}.reader-aside .tips{background:#eaf5ff;color:#28618e;padding:13px;border-radius:10px;margin-top:15px;font-size:11px}.reader-aside .tips .ico{width:15px}.reader-nav-mobile{display:none}.range-input{accent-color:var(--blue)}.setlist-context{background:#eaf5ff;color:var(--blue-deep);border-radius:10px;padding:9px 12px;font-weight:750;font-size:11.5px;display:inline-flex;align-items:center;gap:7px}.reader-lectern{position:fixed;inset:0;z-index:90;background:#071524;color:white;padding:14px 24px 20px;display:flex;flex-direction:column;gap:12px}.reader-lectern .reader-head{align-items:center}.reader-lectern .reader-head h1{font-size:22px;color:white}.reader-lectern .reader-head p,.reader-lectern .reader-head .muted{color:#c6d8eb}.reader-lectern .reader-control-card{background:#0c223b;border:1px solid #25435e;box-shadow:none;padding:11px 18px;border-radius:13px}.reader-lectern .tempo-number strong{color:#83cbff}.reader-lectern .beat-group{margin:0;padding:0;border:0}.reader-lectern .score-layout{flex:1;min-height:0;display:flex}.reader-lectern .score-card{background:#06111e;border:1px solid #25435e;box-shadow:none;flex:1;min-height:0;display:flex;flex-direction:column}.reader-lectern .score-toolbar{background:#071524;border-color:#25435e}.reader-lectern .score-scroll{height:auto;flex:1;min-height:0;color:white;font-size:26px;padding:20px 7vw 110px}.reader-lectern .score-line{font-size:clamp(23px,2.5vw,37px);line-height:1.55;min-height:60px}.reader-lectern .chord-label{font-size:17px;color:#68bbff;min-height:23px}.reader-lectern .score-line.section{font-size:14px;color:#93a9bd}.reader-lectern .reader-aside{display:none}.reader-lectern .reader-nav-mobile{display:flex;gap:10px;justify-content:space-between}.reader-lectern .reader-nav-mobile .btn{background:#102b4b;color:white;border-color:#284a6b}.reader-lectern .suggestion-btn{background:#10253f;border-color:#244568;color:white}.reader-lectern .score-end{border-color:#295073}.reader-lectern .score-end .end-label{color:#8dc9f3}.reader-lectern .toggle{color:#cfe1ef}.reader-lectern .btn-ghost{background:#102b4b;color:#cfe9ff;border-color:#274a68}.reader-lectern .btn-soft{background:#123c63;color:#afdcff}.reader-lectern .reader-head .btn-ghost{color:#fff}
/* forms / dialog */
.field{display:flex;flex-direction:column;gap:6px}.field label{font-size:12px;font-weight:780;color:#4e627b}.field small{font-size:11px;color:var(--muted)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.form-grid .span2{grid-column:1/-1}.field-row{display:flex;gap:12px}.modal-overlay{position:fixed;inset:0;z-index:100;background:rgba(8,25,46,.54);display:grid;place-items:center;padding:20px;backdrop-filter:blur(5px)}.modal{width:min(100%,690px);max-height:min(92vh,980px);overflow:auto;background:white;border-radius:22px;box-shadow:0 24px 90px rgba(0,22,58,.25)}.modal.wide{width:min(100%,840px)}.modal-heading{display:flex;justify-content:space-between;align-items:start;gap:12px;border-bottom:1px solid var(--line);padding:23px 26px 19px;position:sticky;top:0;background:white;z-index:2}.modal-heading h2{font-size:21px;letter-spacing:-.5px;margin:0}.modal-heading p{font-size:12px;color:var(--muted);margin:5px 0 0}.modal-body{padding:24px 26px}.modal-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;border-top:1px solid var(--line);padding:16px 26px;position:sticky;bottom:0;background:white}.hint-box{background:#f0f8ff;border:1px solid #dceeff;color:#456d8e;border-radius:12px;padding:13px 15px;font-size:12px}.editor-lyrics{min-height:310px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:13px;line-height:1.8}.choose-song{display:flex;align-items:center;gap:10px;padding:9px 11px;border:1px solid var(--line);border-radius:10px;margin-bottom:8px;font-size:12.5px}.choose-song select{flex:1}.choose-song button{margin-left:auto}.reorder-item{display:flex;align-items:center;gap:12px;background:#f9fbfe;border:1px solid var(--line);border-radius:11px;padding:9px 11px;margin:7px 0}.reorder-item strong{font-size:12.5px;flex:1}.reorder-item .btn{width:31px;height:31px;padding:0;min-height:31px}.checkbox-song{display:flex;align-items:center;gap:11px;padding:9px 10px;border-bottom:1px solid var(--line);font-size:13px}.checkbox-song input{accent-color:var(--blue);width:17px;height:17px}.checkbox-song small{color:var(--muted);margin-left:auto}.member-row{display:flex;align-items:center;gap:10px;padding:13px 0;border-bottom:1px solid var(--line)}.member-row strong{display:block;font-size:13px}.member-row small{color:var(--muted);display:block;font-size:11px}.member-row select{font-size:11px;padding:7px;width:auto;min-height:30px;margin-left:auto}.invite-code{padding:14px 16px;border:1px dashed var(--blue);color:var(--blue-deep);background:var(--blue-pale);border-radius:12px;font-size:25px;letter-spacing:.18em;text-align:center;font-weight:850;font-family:ui-monospace,monospace}.toast{position:fixed;right:23px;bottom:25px;z-index:120;background:#112c4b;color:white;border-radius:13px;box-shadow:0 15px 35px #09214235;padding:14px 20px;display:flex;align-items:center;gap:10px;font-size:13px;max-width:min(90vw,450px)}.toast.error{background:#9c2537}
/* onboarding */
.auth-screen{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:white}.auth-art{background:linear-gradient(145deg,#086ac2,#1e90ff 56%,#76c8ff);color:#fff;padding:57px 8vw;position:relative;overflow:hidden;display:flex;flex-direction:column}.auth-art:before,.auth-art:after{content:"";position:absolute;border-radius:50%;border:90px solid rgba(255,255,255,.07);width:480px;height:480px;bottom:-255px;right:-250px}.auth-art:after{width:340px;height:340px;top:-250px;left:-200px}.auth-brand{display:flex;align-items:center;gap:14px;font-size:23px;font-weight:850;letter-spacing:-.6px;z-index:1}.auth-brand img{width:56px;height:56px}.auth-art .auth-message{margin:auto 0;z-index:1}.auth-art h1{font-size:clamp(36px,4vw,57px);letter-spacing:-2px;line-height:1.12;max-width:520px;margin:0 0 20px}.auth-art p{font-size:16px;line-height:1.7;max-width:440px;opacity:.88}.auth-features{display:flex;flex-direction:column;gap:14px;margin-top:36px}.auth-feature{display:flex;align-items:center;gap:11px;font-size:13px}.auth-feature .ico{background:rgba(255,255,255,.17);border-radius:10px;width:37px;height:37px;padding:9px}.auth-form-side{display:flex;align-items:center;justify-content:center;padding:35px}.auth-card{width:min(100%,410px)}.auth-card h2{font-size:30px;letter-spacing:-.95px;margin:10px 0 8px}.auth-card>p{color:var(--muted);margin:0 0 30px;font-size:13px}.auth-card form{display:flex;flex-direction:column;gap:15px}.auth-card .btn{margin-top:7px}.auth-swap{font-size:13px;text-align:center;margin:22px 0;color:var(--muted)}.auth-footer{position:absolute;bottom:20px;right:30px;color:var(--muted);font-size:11px}.onboard-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;max-width:820px;margin:45px auto}.onboard-option{padding:30px;min-height:270px;display:flex;flex-direction:column;align-items:flex-start;gap:13px}.onboard-option .music-icon{width:60px;height:60px}.onboard-option h3{margin:4px 0 0;font-size:18px}.onboard-option p{color:var(--muted);font-size:13px;margin:0;flex:1}
@media(max-width:1250px){.content{padding:30px 30px 70px}.topbar{padding:0 30px}.song-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.score-layout{grid-template-columns:minmax(0,1fr) 245px}.score-scroll{padding:24px 25px 85px}.reader-control-card{padding:17px}}
@media(max-width:980px){.shell{grid-template-columns:210px minmax(0,1fr)}.sidebar{padding:22px 10px}.brand{padding:0 8px}.brand strong{font-size:15px}.brand img{width:40px}.help-card{display:none}.quick-stats{gap:10px}.stat{padding:14px;gap:10px}.stat-icon{width:38px;height:38px}.stat strong{font-size:22px}.two-column{grid-template-columns:1fr}.score-layout{grid-template-columns:1fr}.reader-aside{display:grid;grid-template-columns:1fr 1fr;gap:12px}.score-scroll{height:450px}.setlist-detail{grid-template-columns:1fr}.hero-illustration{display:none}.auth-art{padding:45px 5vw}}
@media(max-width:690px){:root{--rad:17px}body{font-size:14px}.shell{display:block;padding-bottom:70px}.sidebar,.topbar{display:none}.mobile-top{height:66px;background:white;border-bottom:1px solid var(--line);padding:0 17px;display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:6}.mobile-top .brand{padding:0;gap:8px}.mobile-top .brand img{width:39px;height:39px}.mobile-top .brand strong{font-size:16px}.mobile-top .brand span{font-size:10px}.mobile-top .account-circle{width:35px;height:35px;font-size:11px}.bottom-nav{position:fixed;bottom:0;left:0;right:0;z-index:25;height:calc(67px + env(safe-area-inset-bottom));display:flex;align-items:flex-start;justify-content:space-around;background:white;border-top:1px solid var(--line);padding:7px 4px env(safe-area-inset-bottom);box-shadow:0 -8px 25px rgba(25,64,110,.04)}.bottom-nav a{font-size:10px;font-weight:750;color:#92a1b5;display:flex;flex-direction:column;align-items:center;gap:3px;flex:1;text-decoration:none!important}.bottom-nav a.active{color:var(--blue)}.bottom-nav .ico{width:22px;height:22px}.content{padding:22px 16px 35px}.page-heading{align-items:center;gap:8px;margin-bottom:20px}.page-title{font-size:25px}.page-heading .btn{padding:9px 12px;font-size:12px;min-height:39px}.page-subtitle{font-size:12px}.hero{padding:23px;min-height:180px}.hero h2{font-size:26px}.hero p{font-size:12px;max-width:265px}.quick-stats{gap:8px;margin:15px 0 23px}.stat{border-radius:14px;flex-direction:column;text-align:center;padding:14px 5px;gap:7px}.stat-icon{width:37px;height:37px;border-radius:12px}.stat strong{font-size:21px}.stat span{font-size:10px;line-height:1.3}.two-column{gap:17px}.card-pad{padding:18px}.song-grid{grid-template-columns:1fr;gap:10px}.song-card{flex-direction:row;align-items:center;flex-wrap:wrap;padding:15px;gap:10px}.song-card-head{width:53px}.song-card h3{font-size:15px}.song-card-main{flex:1}.song-card .song-meta{border-top:0;padding:0;margin:0 0 0 auto;min-width:auto;gap:9px}.song-card .song-meta>span:last-child{display:none}.music-icon{width:45px;height:45px}.chips{flex-wrap:nowrap;overflow-x:auto;padding-bottom:7px;scrollbar-width:none;margin-right:-16px}.chips::-webkit-scrollbar{display:none}.chip{white-space:nowrap}.setlist-grid{grid-template-columns:1fr;gap:11px}.setlist-card{padding:18px}.setlist-card h3{margin-top:10px}.setlist-card-foot{margin-top:15px}.onboard-grid{grid-template-columns:1fr;margin:18px auto}.onboard-option{min-height:210px}.reader-head h1{font-size:22px}.reader-head-actions{gap:5px}.reader-head-actions .btn span{display:none}.reader-head-actions .btn{min-width:36px;width:36px;padding:0;min-height:36px}.reader-control-card{padding:15px}.reader-row{gap:10px}.tempo-group{gap:5px;flex:1}.tempo-number{min-width:62px}.tempo-number strong{font-size:24px}.tempo-group .btn-small{padding:6px;min-height:30px}.reader-row .transport-group{order:1}.transpose-group{order:2;margin-left:auto}.toggle{font-size:11px}.beat-group{margin-top:14px;padding-top:13px}.score-toolbar{padding:11px 14px}.score-scroll{padding:25px 17px 100px;height:calc(100dvh - 365px);min-height:330px}.score-line{font-size:18px}.score-line.has-chords{min-height:53px}.reader-aside{grid-template-columns:1fr}.reader-nav-mobile{display:flex;gap:8px}.reader-nav-mobile button{flex:1}.reader-lectern{padding:11px 9px 13px;gap:9px}.reader-lectern .reader-head{padding:0 5px}.reader-lectern .reader-head h1{font-size:19px}.reader-lectern .reader-head p{display:none}.reader-lectern .reader-control-card{padding:9px}.reader-lectern .reader-row{gap:4px}.reader-lectern .beat-group{padding:6px 0 3px;margin:0}.reader-lectern .score-toolbar{padding:6px 11px}.reader-lectern .score-scroll{min-height:0;height:auto;padding:17px 16px 100px}.reader-lectern .score-line{font-size:24px;line-height:1.5;min-height:50px}.reader-lectern .chord-label{font-size:15px}.reader-lectern .reader-nav-mobile .btn{font-size:11px;padding:7px 8px}.modal-overlay{padding:0;align-items:end}.modal,.modal.wide{max-height:97dvh;width:100%;border-radius:20px 20px 0 0}.modal-heading{padding:18px}.modal-body{padding:19px}.modal-actions{padding:13px 18px}.form-grid{grid-template-columns:1fr;gap:12px}.form-grid .span2{grid-column:auto}.modal .reader-row{flex-direction:column}.auth-screen{display:block;min-height:100dvh}.auth-art{min-height:190px;padding:25px 25px 20px;display:block}.auth-brand{font-size:18px}.auth-brand img{width:44px}.auth-art .auth-message{margin-top:20px}.auth-art h1{font-size:26px;margin:0 0 6px}.auth-art p{font-size:12px;margin:0}.auth-features{display:none}.auth-form-side{padding:28px 22px}.auth-card h2{font-size:27px}.auth-footer{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;scroll-behavior:auto!important;animation:none!important}}
.boot{min-height:100vh;display:flex;align-items:center;justify-content:center;gap:16px;flex-direction:column;color:#7d94ac;font-size:13px}.boot img{filter:drop-shadow(0 12px 24px #1e90ff33)}
/* Keep the lectern score within the viewport, independently scrollable. */
.reader-lectern .score-layout{align-items:stretch;min-height:0}
.reader-lectern .score-card{height:100%;min-height:0}

/* CSP-compatible static presentation utilities */
[data-uistyle="ui1"]{flex:1}
[data-uistyle="ui2"]{font-size:12px;min-width:30px;text-align:center}
[data-uistyle="ui3"]{gap:0}
[data-uistyle="ui4"]{gap:5px}
[data-uistyle="ui5"]{gap:8px}
[data-uistyle="ui6"]{margin-bottom:5px}
[data-uistyle="ui7"]{margin-top:0}
[data-uistyle="ui8"]{margin:0 0 15px}
[data-uistyle="ui9"]{margin:12px 0}
[data-uistyle="ui10"]{margin:17px 0}
[data-uistyle="ui11"]{margin:40px 0 24px}
[data-uistyle="ui12"]{min-height:65px}
[data-uistyle="ui13"]{min-width:0;flex:1}
[data-uistyle="ui14"]{opacity:.7;z-index:1}
[data-uistyle="ui15"]{text-transform:uppercase;letter-spacing:.1em}
[data-uistyle="ui16"]{width:38px;height:38px;border-radius:11px}

/* Verification, recovery and seasonal repertoire filters */
.auth-help{display:flex;flex-wrap:wrap;justify-content:center;gap:9px;align-items:center;margin-top:12px}
.auth-notice{display:flex;gap:12px;align-items:flex-start;padding:18px;border-radius:14px;border:1px solid #bcdfff;background:#eff8ff;color:#245274;font-size:13px;line-height:1.6}
.auth-notice .ico{width:22px;height:22px;color:var(--blue);flex-shrink:0}
.liturgical-select{display:flex;align-items:center;gap:9px;background:white;border:1px solid var(--line);padding:6px 9px 6px 12px;border-radius:12px}
.liturgical-select label{font-size:12px;font-weight:750;display:flex;gap:6px;align-items:center;white-space:nowrap;color:#55718e}
.liturgical-select label .ico{width:17px;height:17px;color:var(--blue)}
.liturgical-select .select{min-height:35px;padding:6px 27px 6px 10px;font-size:12px;border-radius:9px;max-width:230px}
.liturgical-badge{color:#7551ab;background:#f3edff}
.song-card-main .liturgical-badge{margin-left:5px}
.song-list-row .liturgical-badge{margin-right:5px}
@media(max-width:690px){
 .toolbar .search-wrap{flex:1 1 100%}
 .liturgical-select{order:2;flex:1 1 auto;justify-content:space-between}
 .liturgical-select label{font-size:11px}
 .liturgical-select .select{max-width:180px}
 .toolbar>.badge{order:1}
 .song-card-main .badge{font-size:10px}
}

/* Stato della sincronizzazione: fisso e visibile anche nel leggio. */
#sync-status:empty{display:none}
#sync-status{position:fixed;right:20px;bottom:18px;z-index:50;font-size:12px;pointer-events:none;max-width:calc(100vw - 28px)}
.sync-pill{pointer-events:auto;display:flex;align-items:center;gap:9px;background:#ffffff;color:#1b548b;border:1px solid #cfe8fc;box-shadow:0 9px 32px rgba(11,57,104,.18);border-radius:999px;padding:6px 7px 6px 14px;min-height:42px;white-space:nowrap}
.sync-pill strong{font-weight:750;font-size:12px}
.sync-dot{width:9px;height:9px;border-radius:50%;flex:0 0 9px;background:#15a56e;box-shadow:0 0 0 3px rgba(21,165,110,.10)}
.sync-pill button{border:0;border-radius:50%;display:grid;place-items:center;background:#e9f5ff;color:#0e72d2;width:30px;height:30px;cursor:pointer}
.sync-pill button:disabled{opacity:.5;cursor:wait}
.sync-pill button .ico{width:16px;height:16px}
.sync-pill.offline{color:#8d571b;border-color:#f3d9a9;background:#fff9ee}
.sync-pill.offline .sync-dot,.sync-pill.in-attesa .sync-dot{background:#f0a534;box-shadow:0 0 0 3px #f0a53420}
.sync-pill.conflitti{color:#a42d35;border-color:#f5caca;background:#fff5f5}
.sync-pill.conflitti .sync-dot{background:#d94750}
.sync-pill.sincronizzazione .sync-dot{background:#1e90ff;animation:cit-pulse 1s ease-in-out infinite}
@keyframes cit-pulse{50%{opacity:.3;transform:scale(.8)}}
.conflict-compare{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px}
.conflict-compare>div{padding:14px;background:#f6faff;border:1px solid #deebfa;border-radius:12px;min-width:0;overflow-wrap:anywhere}
.conflict-compare h3{font-size:15px;margin:10px 0 5px}
.conflict-compare p{font-size:12px;color:#586b7c;max-height:95px;overflow:auto}
@media(max-width:690px){#sync-status{right:12px;bottom:calc(77px + env(safe-area-inset-bottom));font-size:11px}.sync-pill strong{font-size:11px}.sync-pill{min-height:38px}.conflict-compare{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.sync-pill.sincronizzazione .sync-dot{animation:none}}

/* Media di corredo al canto: immagini di diteggiatura, partiture e audio. */
.song-media-section{margin:24px 0 30px;padding:24px 0;border-top:1px solid #deebf8;border-bottom:1px solid #deebf8}
.media-section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:17px}
.media-section-head h3{display:flex;align-items:center;gap:9px;color:#21496e;font-size:17px;margin:0 0 5px}
.media-section-head h3 .ico{color:var(--blue);width:21px;height:21px}
.media-section-head p{margin:0}
.media-section-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.media-photos{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,215px),1fr));gap:14px;margin:13px 0 23px}
.media-photo{margin:0;border:1px solid #d5e7f6;border-radius:15px;overflow:hidden;background:#f8fbff}
.media-photo button{width:100%;padding:0;background:transparent;border:0;cursor:zoom-in}
.media-image-box{height:225px;background:#fff;display:flex;align-items:center;justify-content:center;position:relative}
.media-image-box img{display:block;max-height:100%;max-width:100%;width:100%;height:100%;object-fit:contain;padding:10px;color:transparent}
.media-photo figcaption{font-size:13px;font-weight:650;color:#365c7e;padding:12px 14px;word-break:break-word}
.media-audio-list{display:grid;gap:12px}
.media-audio{padding:15px;border-radius:15px;border:1px solid #dce9f7;background:#f5faff}
.media-audio-title{display:grid;grid-template-columns:25px 1fr;column-gap:9px;row-gap:3px;margin-bottom:12px}
.media-audio-title .ico{grid-row:span 2;color:var(--blue);width:21px;height:21px}
.media-audio-title strong{font-size:14px;color:#205176;word-break:break-word}
.media-audio-title small{grid-column:2;color:#6f869f;font-size:11px}
.media-audio audio{display:block;width:100%;max-height:50px}
.media-unavailable{display:block;color:#8a5a24;font-size:12px;padding:9px 5px}
.media-unavailable[hidden]{display:none}
.media-offline-help{font-size:12px;color:#5d7894;margin:16px 0 0}
.media-lightbox-image{max-width:100%;max-height:68dvh;object-fit:contain;display:block;margin:auto;border-radius:12px}
.media-upload-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:22px}
.media-upload-box{display:grid;align-content:start;gap:11px;padding:18px;border:1px solid #dceafa;background:#f8fbff;border-radius:15px}
.media-upload-box h3{display:flex;align-items:center;gap:8px;font-size:16px;color:#285579;margin:0}
.media-upload-box h3 .ico{color:var(--blue)}
.media-upload-box p{margin:0}
.media-upload-box input[type=file]{height:auto;min-height:45px;max-width:100%;font-size:12px;padding:9px}
.media-edit-row{display:flex;align-items:flex-start;gap:10px;border-bottom:1px solid #e0edf8;padding:13px 0}
.media-edit-icon{color:var(--blue);background:#edf6ff;border-radius:12px;padding:9px}
.media-edit-content{display:grid;flex:1;min-width:0;gap:6px}
.media-edit-content strong{font-size:13px;word-break:break-all}
.media-edit-content small{color:#6c8296}
.media-edit-buttons{display:flex;gap:5px;flex-wrap:wrap}
@media(max-width:690px){.media-section-head{align-items:flex-start}.song-media-section{margin:20px 0;padding:17px 0}.media-photos{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.media-image-box{height:160px}.media-photo figcaption{font-size:12px;padding:9px}.media-upload-grid{grid-template-columns:1fr}.media-edit-row{flex-wrap:wrap}.media-edit-buttons{margin-left:auto}.media-audio{padding:12px}.media-section-actions .btn{font-size:11px}}
.reader-lectern .song-media-section{margin:16px 0;padding:16px 0}
.reader-lectern .media-image-box{height:245px}

/* Lettore essenziale: l'intera pagina lascia spazio al testo del canto. */
[hidden]{display:none!important}
.shell-reader{display:block;height:100dvh;min-height:0;overflow:hidden;background:#fff}
.shell-reader>.sidebar,.shell-reader .topbar,.shell-reader .mobile-top,.shell-reader>.bottom-nav{display:none!important}
.shell-reader>.main{height:100%;display:flex;flex-direction:column;min-height:0;min-width:0}
.shell-reader .content{width:100%;max-width:none;margin:0;flex:1;min-height:0;display:flex;flex-direction:column;padding:7px 14px 7px}
.shell-reader .reader-shell{flex:1;min-height:0;width:100%;gap:7px}
.shell-reader .reader-head{align-items:center;flex:0 0 auto;min-height:46px;gap:5px}
.reader-heading{display:flex;align-items:center;gap:10px;min-width:0;overflow:hidden}
.reader-heading>div{min-width:0}
.reader-heading h1{margin:0;font-size:19px;letter-spacing:-.4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.23}
.reader-heading p{margin:1px 0 0;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.reader-back{display:grid;place-items:center;color:#1e90ff;width:30px;height:36px;flex-shrink:0}
.reader-back .ico{width:19px}
.reader-head-actions{gap:3px;flex-shrink:0}
.reader-head-actions .btn{min-width:33px;width:33px;min-height:33px;padding:0;border:0}
.reader-head-actions .ico{width:17px}
.reader-controls{flex:0 0 auto;padding:2px 10px!important;border:1px solid #e5ebf2;border-radius:10px;background:#f7faff;box-shadow:none}
.reader-compact{display:flex;align-items:center;gap:9px;min-height:43px}
.reader-drawer-handle{border:0;background:transparent;display:flex;align-items:center;gap:4px;padding:3px 0;color:#355978;font-size:12px;min-width:0;flex:1;text-align:left}
.reader-drawer-handle>.ico{width:14px;height:14px;color:#4196df;flex-shrink:0;transition:transform .15s}
.reader-controls.expanded .reader-drawer-handle>.ico{transform:rotate(180deg)}
.drawer-grip{width:17px;height:4px;border-radius:99px;background:#99c7ee;margin-right:3px;flex-shrink:0}
.reader-mini-data{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.reader-mini-data b{font-weight:760;color:#155a9f}
.reader-mini-data small{font-size:10px;color:#7895ae}
.mini-beats{display:flex;align-items:center;gap:3px;padding:0;min-height:0;margin:0;border:0;flex-shrink:0}
.mini-beats .beat,.mini-beats .beat.first{width:7px;height:7px}
.mini-beats .beat.current{box-shadow:0 0 0 3px #1e90ff24,0 0 9px #1e90ff99;transform:scale(1.15)}
.reader-compact .play-btn{width:34px;height:34px;flex-shrink:0;box-shadow:none}
.reader-compact .play-btn .ico{width:19px;height:19px}
.reader-zoom{display:flex;align-items:center;gap:2px;border-left:1px solid #e0eaf5;padding-left:6px;flex-shrink:0}
.reader-zoom .btn{width:28px;height:29px;min-height:29px;padding:0;border:0}
.reader-zoom .btn .ico{width:16px;height:16px}
.reader-zoom output{display:block;min-width:36px;text-align:center;color:#4b6d8d;font-size:11px;font-variant-numeric:tabular-nums}
.reader-control-expanded{border-top:1px solid #dbe7f4;padding:9px 4px 10px;display:grid;gap:10px}
.reader-settings-row{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.reader-settings-row .reader-label{font-size:12px;font-weight:750;color:#365c7c;width:125px;display:flex;flex-direction:column;line-height:1.2;margin-right:4px}
.reader-settings-row .reader-label small{font-size:10px;color:#8295ac;font-weight:400}
.reader-settings-row .btn{min-height:30px;padding:4px 9px}
.reader-settings-row .btn .ico{width:15px;height:15px}
.reader-value{min-width:90px;text-align:center;font-size:15px;color:#1768ad;font-variant-numeric:tabular-nums}
.reader-value small{font-size:11px;color:#6f89a2;margin-left:4px}
.reader-options{justify-content:start;gap:16px}
.reader-options .select{min-height:31px;width:auto;padding:3px 26px 3px 8px;font-size:12px}
.reader-options>label:not(.toggle){font-size:12px;font-weight:700}
.shell-reader .score-layout{flex:1;min-height:0;display:flex;grid-template-columns:none;gap:0;align-items:stretch}
.shell-reader .score-card{flex:1;min-height:0;overflow:hidden;border:0;border-radius:7px;display:flex;flex-direction:column;box-shadow:none;background:white}
.shell-reader .score-scroll{flex:1;min-height:0;height:auto;padding:14px 13px 90px;overflow:auto;overscroll-behavior:contain}
.shell-reader .reader-aside,.shell-reader .score-toolbar,.shell-reader .reader-nav-mobile{display:none!important}
.shell-reader .score-line.lyric{font-size:calc(20px * var(--score-zoom,1));line-height:1.4;min-height:calc(39px * var(--score-zoom,1))}
.shell-reader .score-line.has-chords{padding-top:8px;min-height:calc(51px * var(--score-zoom,1))}
.shell-reader .score-line.plain{padding:5px 0 2px}
.shell-reader .score-line.section{font-size:calc(12px * var(--score-zoom,1));padding:12px 0 5px;min-height:0}
.shell-reader .score-line.blank{min-height:calc(19px * var(--score-zoom,1))}
.shell-reader .chord-label{font-size:calc(14px * var(--score-zoom,1));min-height:calc(18px * var(--score-zoom,1));line-height:1.25}
.shell-reader .text-label{min-height:1.4em}
.shell-reader .chord-segment{max-width:100%}
.score-comment,.shell-reader .score-comment,.reader-lectern .score-comment{color:#0784ef!important;font-weight:400!important;font-style:italic!important;letter-spacing:normal;text-transform:none}
.shell-reader .score-line.intro-chords{display:flex;flex-wrap:wrap;align-items:center;gap:9px 11px;min-height:0;padding:8px 0 14px}
.intro-chord{display:inline-flex;justify-content:center;align-items:center;color:#057ed9;font-weight:750;font-size:calc(16px * var(--score-zoom,1));border:1px solid #b9def9;background:#edf7ff;border-radius:9px;padding:5px 12px;white-space:nowrap}
.reader-bottom-nav{flex:0 0 auto;display:grid;grid-template-columns:minmax(0,1fr) 50px minmax(0,1fr);align-items:stretch;gap:4px;border-top:1px solid #e6eff8;background:#fff;min-height:49px}
.reader-bottom-nav button{background:transparent;color:#156eaf;border:0;display:flex;align-items:center;gap:5px;min-width:0;padding:3px 7px;text-align:left}
.reader-bottom-nav button:last-child{justify-content:flex-end;text-align:right}
.reader-bottom-nav button .ico{width:17px;height:17px;flex-shrink:0}
.reader-bottom-nav button span{min-width:0}
.reader-bottom-nav button small{display:block;font-size:10px;color:#8aa1b7;line-height:1.2}
.reader-bottom-nav button strong{display:block;font-size:12px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.reader-position{display:grid;place-items:center;font-size:10px;color:#9aacbc}
.reader-lectern .reader-controls{background:#0b2237!important;border-color:#294a65!important;color:#e3f5ff}
.reader-lectern .reader-drawer-handle,.reader-lectern .reader-mini-data b,.reader-lectern .reader-zoom output,.reader-lectern .reader-value,.reader-lectern .reader-settings-row .reader-label{color:#d9f1ff}
.reader-lectern .reader-settings-row .reader-label small{color:#90b0cd}
.reader-lectern .reader-bottom-nav{background:#071524;border-color:#25435e}
.reader-lectern .reader-bottom-nav button{color:#b1dcff}
.reader-lectern .reader-back{color:#b1dcff}
.reader-lectern .score-line.lyric{font-size:calc(28px * var(--score-zoom,1));min-height:calc(53px * var(--score-zoom,1))}
.reader-lectern .score-line.section{font-size:calc(15px * var(--score-zoom,1))}
.reader-lectern .chord-label{font-size:calc(17px * var(--score-zoom,1))}
.reader-lectern .intro-chord{background:#102b4b;border-color:#315c83;color:#a9ddff}
.onboard-simple{max-width:760px}.onboard-simple .onboard-grid{margin:14px 0}.onboard-only-join{grid-template-columns:1fr}.onboard-simple .onboard-option{min-height:0;padding:25px}.onboard-simple .onboard-option h3{margin-top:0}
.page-subtitle:empty{display:none}.auth-card>.center.sm:empty{display:none}
body:has(.shell-reader) #sync-status{bottom:auto;top:4px;right:130px;transform:scale(.72);transform-origin:top right}
@media(max-width:690px){
 .shell-reader{padding:0;height:100dvh;overflow:hidden}
 .shell-reader .content{padding:4px 7px calc(5px + env(safe-area-inset-bottom))}
 .shell-reader .reader-shell{gap:5px}
 .shell-reader .reader-head{min-height:43px}
 .reader-heading{gap:6px}
 .reader-heading h1{font-size:17px}
 .reader-heading p{font-size:10px}
 .reader-compact{gap:4px;min-height:42px}
 .reader-drawer-handle{font-size:11px;gap:3px}
 .mini-beats{gap:2px}
 .mini-beats .beat,.mini-beats .beat.first{width:6px;height:6px}
 .reader-zoom{padding-left:2px;gap:0}
 .reader-zoom .btn{width:25px;min-width:25px}
 .reader-zoom output{min-width:32px;font-size:10px}
 .reader-controls{padding:2px 5px!important}
 .reader-settings-row .reader-label{width:91px}
 .reader-settings-row .btn{padding:4px 7px}
 .reader-value{min-width:70px;font-size:13px}
 .shell-reader .score-scroll{height:auto;min-height:0;padding:10px 8px 90px}
 .shell-reader .score-line.lyric{font-size:calc(19px * var(--score-zoom,1));min-height:calc(38px * var(--score-zoom,1))}
 .shell-reader .chord-label{font-size:calc(13px * var(--score-zoom,1))}
 .reader-bottom-nav{min-height:49px}
 .reader-bottom-nav button strong{font-size:11px}
 .reader-lectern .score-line.lyric{font-size:calc(23px * var(--score-zoom,1))}
 .reader-lectern .chord-label{font-size:calc(15px * var(--score-zoom,1))}
 body:has(.shell-reader) #sync-status{right:48px;top:3px;transform:scale(.62)}
}

.reader-drawer-handle{touch-action:pan-x}
.reader-head-actions .btn span{display:none}

.shell-reader .score-line.annotation{min-height:0;font-size:calc(19px * var(--score-zoom,1));padding:12px 0 4px}
.reader-lectern .score-line.annotation{font-size:calc(23px * var(--score-zoom,1))}

/* Multi-select momenti / periodi: mobile-friendly native checkboxes. */
.classification-field{margin:0;border:0;padding:0;min-width:0}
.classification-field legend{padding:0;margin-bottom:5px;font-size:12px;font-weight:780;color:#4e627b}
.classification-field>small{display:block;margin-bottom:9px;color:var(--muted);font-size:11px}
.classification-options,.filter-choices{display:flex;flex-wrap:wrap;gap:7px}
.classification-choice{display:inline-flex;align-items:center;gap:7px;cursor:pointer;border:1px solid #d8e5f3;border-radius:9px;background:white;padding:8px 10px;color:#294b6d;font-size:12px;font-weight:620;line-height:1.2;user-select:none}
.classification-choice:has(input:checked){background:#e7f4ff;border-color:#1e90ff;color:#075fba}
.classification-choice:focus-within{outline:2px solid #1e90ff;outline-offset:2px}
.classification-choice input{appearance:auto;width:15px;height:15px;margin:0;accent-color:#1e90ff;flex-shrink:0}
.filter-group-label{font-size:12px;font-weight:720;color:#667c93;margin:0 0 9px}
.class-badges{display:inline-flex;gap:4px;flex-wrap:wrap;align-items:center;min-width:0}
.song-card-main .class-badges{margin-top:4px}
.song-list-row .class-badges{max-width:60%;justify-content:flex-end}
.song-list-row .row-end{gap:7px}
.song-card-main .class-badges .badge{margin:0}
@media(max-width:690px){
 .classification-options{gap:6px}
 .classification-choice{font-size:11.5px;padding:8px}
 .song-list-row .class-badges{max-width:70%}
}


/* Canti in tasca 1.0 - typography-first player and compact song index */
.song-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.song-card.song-card-compact{min-height:56px;padding:9px 12px;display:flex;align-items:center;flex-direction:row;gap:10px;border-radius:11px;flex-wrap:nowrap}
.song-card-compact .song-card-head{width:31px;min-width:31px;flex:0 0 31px}
.song-card-compact .music-icon{width:30px;height:30px;border-radius:8px}
.song-card-compact .music-icon .ico{width:17px;height:17px}
.song-card-compact .song-card-main{min-width:0;flex:1;display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.song-card-compact h3{font-size:14px;line-height:1.16;margin:0;font-weight:750;min-width:0;overflow-wrap:anywhere}
.song-card-compact .compact-classifications{display:inline-flex;align-items:center;gap:3px;flex:0 0 auto}
.song-card-compact .compact-classifications .badge{font-size:9px;padding:2px 6px;line-height:1.15;margin:0}
.song-card-compact .compact-class-count{font-size:10px;color:#54718a;font-weight:700}
.song-card-compact .song-card-arrow{margin-left:auto;display:grid;place-items:center;flex-shrink:0;color:#7fa7ca}
.song-card-compact .song-card-arrow .ico{width:16px;height:16px}
/* Dense score: lyric-only lines never reserve a chord row. */
.shell-reader .score-line.lyric{font-size:calc(20px * var(--score-zoom,1));line-height:1.13;min-height:0;padding:1px 0;margin:0}
.shell-reader .score-line.plain{padding:1px 0;margin:0;min-height:0;align-items:baseline}
.shell-reader .score-line.has-chords{padding:4px 0 1px;min-height:0;align-items:baseline}
.shell-reader .chord-segment{line-height:1.12}
.shell-reader .chord-label{font-size:calc(14px * var(--score-zoom,1));line-height:1.06;min-height:0;margin-bottom:2px}
.shell-reader .text-label{min-height:0;line-height:1.13}
.shell-reader .score-line.blank{height:calc(11px * var(--score-zoom,1));min-height:0;padding:0}
.shell-reader .score-line.section{min-height:0;padding:9px 0 3px}
.shell-reader .score-line.annotation{min-height:0;padding:4px 0 1px;line-height:1.14}
.shell-reader .score-line.intro-chords{display:flex;flex-wrap:wrap;align-items:baseline;gap:5px 17px;padding:2px 0 3px;min-height:0;line-height:1.13}
.shell-reader .intro-chord{font-size:inherit;font-weight:750;line-height:inherit;display:inline;color:#0784ef;border:0;background:transparent;box-shadow:none;border-radius:0;padding:0;margin:0}
/* Chorus marker ||: vertical blue bar and emphasis on the whole line. */
.shell-reader .score-line.refrain{border-left:5px solid #1e90ff;padding-left:10px;font-weight:800;margin:3px 0}
.shell-reader .score-line.refrain .text-label,.shell-reader .score-line.refrain .chord-label{font-weight:800}
/* Suggested performer transposition is intentionally prominent and red. */
.recommended-transpose{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;color:#b91c1c;background:#fff1f2;border:1px solid #fecaca;box-shadow:0 0 0 2px rgba(185,28,28,.08);padding:4px 9px;border-radius:9px;font-size:19px;font-weight:900;line-height:1.15;font-variant-numeric:tabular-nums}
.transpose-live-alert{color:#ba1616!important;font-weight:900!important;font-size:1.18em!important}
/* The lectern has no dark theme. All text and controls remain legible on white. */
.reader-lectern{background:#fff!important;color:#162e45!important}
.reader-lectern .reader-head h1{color:#162e45!important}
.reader-lectern .reader-head p,.reader-lectern .reader-head .muted{color:#637d93!important}
.reader-lectern .reader-heading,.reader-lectern .reader-back,.reader-lectern .reader-head-actions .btn{color:#2e628a!important}
.reader-lectern .reader-controls{background:#f7faff!important;border-color:#dbe7f4!important;color:#243d55!important}
.reader-lectern .reader-drawer-handle,.reader-lectern .reader-mini-data b,.reader-lectern .reader-zoom output,.reader-lectern .reader-value,.reader-lectern .reader-settings-row .reader-label{color:#155a9f!important}
.reader-lectern .reader-settings-row .reader-label small,.reader-lectern .reader-mini-data small{color:#748ba2!important}
.reader-lectern .score-card{background:#fff!important;border:1px solid #e1ebf4!important}
.reader-lectern .score-scroll,.reader-lectern .score-line,.reader-lectern .text-label{background:#fff!important;color:#162e45!important}
.reader-lectern .chord-label,.reader-lectern .intro-chord{color:#0784ef!important}
.reader-lectern .score-line.section{color:#617c99!important}
.reader-lectern .reader-bottom-nav{background:#fff!important;border-color:#e1ebf4!important}
.reader-lectern .reader-bottom-nav button,.reader-lectern .reader-back{color:#1768ad!important}
.reader-lectern .reader-bottom-nav small{color:#73889d!important}
.reader-lectern .reader-value .transpose-live-alert,.reader-lectern .reader-mini-data .transpose-live-alert{color:#b91c1c!important}
.reader-lectern .reader-options .toggle,.reader-lectern .reader-settings-row label{color:#355978!important}
.reader-lectern .reader-control-expanded{border-color:#dbe7f4!important}
.reader-lectern .reader-head .btn-ghost,.reader-lectern .reader-settings-row .btn-ghost{background:#f2f8ff!important;color:#156eaf!important;border-color:#e1ebf4!important}
.reader-lectern .suggestion-btn{background:#f6faff!important;color:#152d45!important;border-color:#daeaff!important}
.reader-lectern .score-end{border-color:#dbe7f4!important}
.reader-lectern .score-line.lyric{font-size:calc(25px * var(--score-zoom,1));line-height:1.13;min-height:0}
.reader-lectern .score-line.plain,.reader-lectern .score-line.has-chords{min-height:0}
.reader-lectern .chord-label{font-size:calc(17px * var(--score-zoom,1));line-height:1.08;min-height:0}
.reader-lectern .intro-chord{font-size:inherit!important;border:0!important;padding:0!important;background:transparent!important}
@media (max-width:690px){
 .song-grid{grid-template-columns:1fr;gap:5px}
 .song-card.song-card-compact{min-height:49px;padding:7px 9px;gap:8px}
 .song-card-compact h3{font-size:13px}
 .song-card-compact .song-card-head{width:27px;min-width:27px;flex-basis:27px}
 .song-card-compact .music-icon{width:27px;height:27px}
 .song-card-compact .song-card-main{gap:5px}
 .song-card-compact .compact-classifications .badge{font-size:9px}
 .shell-reader .score-line.lyric{font-size:calc(19px * var(--score-zoom,1));line-height:1.12}
 .shell-reader .score-line.blank{height:calc(10px * var(--score-zoom,1))}
 .reader-lectern .score-line.lyric{font-size:calc(22px * var(--score-zoom,1));line-height:1.14;min-height:0}
 .reader-lectern .chord-label{font-size:calc(15px * var(--score-zoom,1));min-height:0}
}


/* 2026-10-15: reader fixes (consistent musical notation across every screen size). */
.shell-reader .score-scroll {
  --chord-font-size: calc(14px * var(--score-zoom, 1));
}
.shell-reader .chord-label,
.shell-reader .intro-chord {
  font-size: var(--chord-font-size) !important;
  font-weight: 800;
  line-height: 1.06;
  color: #0784ef;
}
/* Reserve the existing chord row for text placed before a later chord.
   This does not affect a lyric-only line, which has no chord-segment. */
.shell-reader .chord-label.chord-placeholder {
  visibility: hidden;
  pointer-events: none;
}
/* All consecutive ||-marked lines share this SINGLE vertical bar. */
.shell-reader .refrain-group {
  border-left: 5px solid #1e90ff;
  margin: 2px 0;
  padding-left: 10px;
  background: #fff;
}
.shell-reader .refrain-group .score-line.refrain {
  border-left: 0 !important;
  padding-left: 0 !important;
  margin: 0 !important;
  font-weight: 800;
}
.shell-reader .refrain-group .text-label,
.shell-reader .refrain-group .chord-label:not(.chord-placeholder) {
  font-weight: 800;
}
.reader-lectern .score-scroll {
  --chord-font-size: calc(17px * var(--score-zoom, 1));
}
@media (max-width: 690px) {
  .shell-reader .score-scroll {
    --chord-font-size: calc(13px * var(--score-zoom, 1));
  }
  .reader-lectern .score-scroll {
    --chord-font-size: calc(15px * var(--score-zoom, 1));
  }
}

/* Portable song backup buttons live at the end of the score; no lost lyric height. */
.reader-file-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:22px;padding-top:13px;border-top:1px solid #e2ecf6}
.reader-file-actions .btn{font-size:12px;min-height:35px}
.reader-file-actions .btn:disabled{opacity:.48;cursor:not-allowed}
.portable-preview{border:1px solid #e1ebf4;border-radius:10px;margin-top:14px;padding:15px;background:#f7fbff;font-size:13px}
.portable-preview p{margin:5px 0 0;color:#617a91;font-size:12px}
.portable-preview.error-text{color:#b91c1c}
/* One red capo marker (near transpose only), with a large-to-small circular animation. */
#mini-transpose.transpose-capo-badge{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;width:34px;height:34px;min-width:34px;padding:0;background:#dc2626;color:white!important;border:2px solid #b91c1c;box-shadow:0 1px 6px rgba(220,38,38,.26);font-size:12px!important;font-weight:900;line-height:1;font-variant-numeric:tabular-nums}
#mini-transpose.capo-alert-pending{opacity:0}
.transpose-capo-intro{position:fixed;z-index:125;pointer-events:none;background:#dc2626;color:white;box-shadow:0 0 0 8px rgba(220,38,38,.16),0 14px 60px rgba(164,20,20,.25);border:6px solid #b91c1c;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:900;line-height:1;font-variant-numeric:tabular-nums;transform-origin:center center}
@media(prefers-reduced-motion:reduce){.transpose-capo-intro{display:none}}

/* On Canti, keep + Importa immediately to the right of + Nuovo canto. */
.song-list-actions{display:flex;align-items:center;gap:8px;flex-wrap:nowrap}
.song-list-actions .btn{white-space:nowrap}
@media(max-width:690px){
  .song-list-heading{flex-wrap:wrap}
  .song-list-heading .song-list-actions{margin-left:auto}
  .song-list-actions .btn{padding:9px 10px;gap:5px;font-size:12px;min-height:39px}
  .song-list-actions .btn .ico{width:15px;height:15px}
}

/* Recovery view works even when the application JS fails before rendering. */
.boot-recovery{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;box-sizing:border-box;min-height:75vh;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:12px;padding:28px;max-width:540px;margin:auto;color:#182f49;background:#fff}
.boot-recovery h1{font-size:1.45rem;margin:4px 0;color:#162f4a}
.boot-recovery p{margin:0;line-height:1.5}
.boot-recovery-note{font-size:.92rem;color:#47617c}
.boot-recovery small{font-size:.75rem;color:#65798d;margin-top:8px}
.boot-recovery-button{background:#1e90ff;color:white;border:0;border-radius:10px;padding:12px 18px;font-weight:700;cursor:pointer;font-size:1rem}
.boot-recovery-button:disabled{opacity:.5;cursor:wait}
#cit-repair-info{color:#b13e2f;font-size:.92rem;max-width:480px;overflow-wrap:anywhere}
