:root{font-family:system-ui,-apple-system,sans-serif;color:#173248;background:#f4f0e7}*{box-sizing:border-box}body{margin:0}header{background:#12344a;color:#fff;display:flex;justify-content:space-between;align-items:center;padding:13px max(18px,calc((100vw - 960px)/2));gap:12px}.brand{display:flex;align-items:center;gap:10px}.brand img{width:43px;height:43px;object-fit:contain}.brand strong{font-size:24px;letter-spacing:2px}.brand small{display:block;letter-spacing:2px;font-size:10px}#network{font-size:12px;padding:6px 10px;border-radius:30px;background:#ffffff22}main{max-width:960px;margin:auto;padding:18px}.panel{background:#fffdf8;border:1px solid #e3ded2;border-radius:15px;padding:19px;margin:0 0 16px;box-shadow:0 2px 9px #132c3e0c}.row{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}h1{font-size:24px}h2{font-size:20px}h1,h2{margin:5px 0 12px}button{background:#f1e8d7;color:#12344a;border:1px solid #d4c9b8;padding:10px 13px;border-radius:9px;font-weight:650;cursor:pointer}button.primary{background:#174f71;color:white;border-color:#174f71}button:disabled{opacity:.55}input,textarea{display:block;width:100%;margin:8px 0 12px;border:1px solid #c7cdd1;border-radius:8px;padding:12px;font:inherit;background:#fff}textarea{resize:vertical;font-family:ui-monospace,monospace}label{display:block;font-weight:600}.muted,footer{color:#667684;font-size:13px}.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:10px}.song{background:#f7f4ee;border:1px solid #e1d8c7;border-radius:11px;padding:13px;text-align:left;min-height:68px}.song small{display:block;color:#607080;margin-top:5px}#state{line-height:1.5}#sheet{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;font-size:18px;color:#152c40}#reader{border:2px solid #174f71}footer{text-align:center;padding:18px} [hidden]{display:none!important}@media(max-width:550px){main{padding:10px}.panel{padding:13px}.cards{grid-template-columns:1fr 1fr}header{padding:10px}#sheet{font-size:16px}}

#livepanel{background:#fff;min-height:100dvh;padding:20px;position:relative}body.live-mode{background:white}body.live-mode>header,body.live-mode main>.panel,body.live-mode footer{display:none}body.live-mode main{max-width:none;padding:0}.livebar{position:sticky;top:0;background:#fff;border-bottom:1px solid #ddd;padding:12px 0;z-index:2}.livetools{padding:12px 0}#livesheet{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;color:#111;font-size:18px}@media(max-width:550px){#livepanel{padding:12px}.livebar{align-items:flex-start}}

/* v1.2.0: identidade visual da NOTTUM principal, preservando lógica offline */
:root{font-family:Inter,system-ui,-apple-system,'Segoe UI',sans-serif;color:#253447;background:#f7f5f0}body{min-height:100vh}header{background:#1c3955;box-shadow:0 3px 18px #182e3c19;padding:15px max(20px,calc((100vw - 1080px)/2))}.brand strong{font-size:24px;letter-spacing:1.1px}.brand small{font-size:10px;color:#c6d8e1;letter-spacing:1px}.header-right{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.header-version{font-size:11px;color:#d4e4e9}main{max-width:1080px;margin:30px auto;padding:0 20px}.panel{background:#fff;border:1px solid #e8e6e0;border-radius:18px;padding:24px;margin-bottom:18px;box-shadow:0 5px 20px #2434480a}h1{font-size:30px}h2{font-size:24px}h1,h2{letter-spacing:-.4px}button{border:0;border-radius:11px;padding:11px 16px;background:#e7eef1;color:#28485e;font:inherit;font-weight:650;transition:filter .15s,transform .15s}button:hover{filter:brightness(.94)}button:active{transform:translateY(1px)}button.primary{background:#26718e;color:white;border:0}input,textarea{border:1px solid #cfd8dc;border-radius:11px}input:focus,textarea:focus{outline:2px solid #9ec3d3;outline-offset:1px}.library-hero{background:linear-gradient(115deg,#e5efef,#f7f1e6);border:1px solid #e0e9e8;border-radius:20px;padding:24px 28px;margin-bottom:24px}.hero-top{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}.hero-top h1{margin:8px 0}.hero-description{color:#536777;margin:0 0 12px}.eyebrow{font-size:11px;letter-spacing:1.6px;font-weight:800;color:#30768b}.library-hero #state{color:#536777;margin:9px 0}.library-hero #identity{margin:5px 0}.library-tabs{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:25px}.library-tabs button{background:#e6edf0;color:#244056}.library-tabs button.selected{background:#203d58;color:white}.collection-panel .row{margin-bottom:14px}.collection-panel h2{margin:6px 0}.cards{grid-template-columns:repeat(auto-fill,minmax(235px,1fr));gap:14px}.song{background:#fff;border:1px solid #e8e6e0;border-radius:17px;min-height:115px;padding:20px;text-align:left;box-shadow:0 5px 20px #2434480a;transition:transform .18s,box-shadow .18s}.song:hover{transform:translateY(-2px);box-shadow:0 9px 22px #24344816}.song small{color:#687d89}#reader{border:1px solid #c9dce4}#livepanel{background:#fff}footer{color:#687d89}@media(max-width:550px){main{padding:0 10px;margin:14px auto}.panel{padding:15px}.library-hero{padding:18px}.hero-top h1{font-size:25px}.cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.song{min-height:90px;padding:12px}.header-version{display:none}}

#group-songs-panel{margin-top:20px;border-top:1px solid #e0e8eb;padding-top:14px}#group-songs-panel h3{margin:0;font-size:18px}

/* v1.2.3 — layout alinhado à plataforma principal */
:root{--nottum-navy:#20384e;--nottum-line:#e7d9c2}body{background:radial-gradient(ellipse at 95% 5%,#efe4d2 0,transparent 37%),#f8f5ee;color:#28394a}header{background:linear-gradient(112deg,#152c40,#27445d);border-bottom:3px solid #b9996a;box-shadow:0 8px 28px #1a31451f;padding:17px max(20px,calc((100vw - 1110px)/2))}.brand small{color:#e5d6bd;letter-spacing:.6px}main{max-width:1150px;margin:32px auto}.library-tabs{background:#fffaf2;border:1px solid #e7d9c2;border-radius:18px;padding:8px;gap:8px;display:flex;box-shadow:0 4px 18px #42301a0a;margin-bottom:25px}.library-tabs button{flex:1;min-width:160px;background:transparent;color:#41586a;border-radius:12px;padding:14px 18px}.library-tabs button.selected{background:#20384e;color:white;box-shadow:0 5px 14px #20384e24}.library-hero{position:relative;overflow:hidden;background:linear-gradient(115deg,#fdfaf3 10%,#eee0c8 100%);border:1px solid #e7d9c2;border-radius:24px;padding:30px 34px;margin-bottom:26px;box-shadow:0 7px 28px #57411f0b}.library-hero:after{content:'♫';position:absolute;right:32px;top:50%;transform:translateY(-50%) rotate(-12deg);font-family:Georgia,serif;font-size:112px;line-height:1;color:#c5a87940;pointer-events:none}.library-hero>*{position:relative;z-index:1}.library-hero h1{font-family:Georgia,'Times New Roman',serif;color:#20384e;font-size:clamp(26px,3.5vw,38px)}.eyebrow{color:#8e6a3d;letter-spacing:2px}.panel{background:#fffefa;border:1px solid #e7d9c2;box-shadow:0 6px 22px #4b38200b;border-radius:20px}.collection-panel{background:transparent;border:0;box-shadow:none;padding:0}.collection-panel .row h2,.all-songs-title{font-family:Georgia,'Times New Roman',serif;color:#20384e;font-size:25px}.collection-panel .row{border-bottom:1px solid #e7ded0;padding-bottom:12px;margin-top:20px}.area-reps{background:#fffefa;border:1px solid #e7ddcf;border-radius:14px;padding:16px;margin:15px 0 26px}.area-reps h3{margin:0 0 10px}.all-songs-title{border-bottom:1px solid #e7ded0;padding-bottom:12px;margin:15px 0}.song{background:#fffefa;border:1px solid #e7ddcf;border-radius:17px;min-height:110px}.song:hover{border-color:#c7aa7c}.header-right #sync{background:#fff6e8;color:#20384e;border:1px solid #dfcdb1}.header-right #sync:hover{background:#f2e5d0}#groups-section{background:transparent;border:0;box-shadow:none;padding:0}#groups-section h2{font-family:Georgia,'Times New Roman',serif;font-size:27px}#groups-section>.cards .song{min-height:115px}.header-version{display:none}@media(max-width:650px){main{margin:16px auto;padding:0 12px}.library-tabs button{min-width:0;padding:12px 8px}.library-hero{padding:22px 19px}.library-hero:after{font-size:74px;right:12px}.header-right #sync{padding:9px 11px;font-size:12px}.collection-panel{padding:0}.collection-panel .row h2,.all-songs-title{font-size:22px}}

/* v1.2.4: grupos como na plataforma, repertórios recolhíveis por área */
#groups-section{background:transparent;border:0;box-shadow:none;padding:0}
#groups-section>.row{border-bottom:1px solid #e5d8c5;padding:0 0 14px;margin-bottom:14px}
#groups-section>.row h2{font-family:Georgia,serif;font-size:28px;margin:0}
#groups .song{font-family:Georgia,serif;font-size:20px;font-weight:700;min-height:95px}
#groups .song small{font-family:system-ui,sans-serif;font-size:13px;font-weight:400;color:#a27855}
.repertoires-toggle{background:#fffaf3;border:1px solid #e5d6bd;border-radius:17px;margin:18px 0 22px;overflow:hidden}
.repertoires-toggle>summary{cursor:pointer;list-style:none;padding:17px 20px;font-weight:700;color:#193951;display:flex;justify-content:space-between;gap:12px}
.repertoires-toggle>summary::-webkit-details-marker{display:none}
.toggle-hint{font-weight:400;font-size:12px;color:#9b6d42}
.repertoires-toggle[open]>summary{border-bottom:1px solid #eadfce}
.repertoires-toggle>div{padding:12px 16px}
.repertoire-item{border:1px solid #e6d9c7;border-radius:11px;margin:8px 0;background:#fff}
.repertoire-item>summary{cursor:pointer;padding:12px 15px;font-weight:700;color:#17374d;display:flex;justify-content:space-between;gap:12px}
.rep-count{font-size:12px;color:#9b6d42;font-weight:400}
.repertoire-songs{padding:12px;}
#group-songs-panel{background:#fffaf5;border:1px solid #e5d6bd;border-radius:18px;padding:20px}
#group-songs-panel .repertoires-toggle{margin-top:20px}

/* v1.2.5 — cartões e ferramentas de biblioteca como na plataforma NOTTUM */
.category-toolbar,.selection-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:#fffaf4;border:1px solid #e7d9c2;border-radius:15px;padding:13px 14px;margin:13px 0}
.category-toolbar label{font-weight:700;font-size:14px;white-space:nowrap}.category-toolbar select{font:inherit;color:#20384e;background:white;border:1px solid #dfd4c5;border-radius:10px;padding:11px 14px;min-width:205px;max-width:100%}.category-toolbar button,.selection-toolbar button,.search-toolbar button{background:#f3e9d9;border:1px solid #e5d6c1;color:#20384e;box-shadow:0 2px 5px #4738200b}.selection-toolbar{min-height:68px}.selection-toolbar span{font-size:13px;color:#7a6a58}.search-toolbar{margin:14px 0;display:flex;align-items:center;gap:10px;flex-wrap:wrap}.search-toolbar input{flex:1;min-width:190px;margin:0}.music-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;align-items:stretch}.music-card{display:flex;flex-direction:column;min-width:0;background:#fffdfa;border:1px solid #e7d9c2;border-radius:17px;overflow:hidden;box-shadow:0 4px 14px #56432809}.music-card:hover{border-color:#c6a779}.music-card-body{display:flex;flex-direction:column;align-items:stretch;flex:1;min-width:0;width:100%;padding:19px 19px 14px;text-align:left;background:transparent;border:0;border-radius:0;box-shadow:none;color:#20384e}.music-card-body:hover{filter:none}.music-card h3{font:700 21px/1.12 Georgia,'Times New Roman',serif;color:#16344b;margin:0 0 13px;overflow-wrap:anywhere}.music-tone{font-size:12px;color:#946d51;margin-bottom:8px}.music-tags{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:12px}.music-tag{font-size:11px;font-weight:400;border:1px solid #e6d8c5;border-radius:18px;padding:3px 9px;background:#f8f2e8;color:#20384e}.music-type{background:#eaf2f7;border-color:#d1e1eb}.music-preview{font-size:14px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere;color:#5a7183;margin:5px 0 0;max-height:118px;overflow:hidden}.music-card-actions{display:flex;justify-content:flex-end;gap:6px;flex-wrap:wrap;padding:9px 10px;background:#fffaf4;border-top:1px solid #eadfce}.music-card-actions button{padding:7px 9px;border:1px solid #e6d6bf;background:#f4eadb;border-radius:10px;font-size:11px;white-space:nowrap}.music-select{display:none}.selecting-songs .music-select{display:block}.music-card.is-selected{outline:3px solid #3c7797;outline-offset:-3px}.pending-indicator{font-size:11px;color:#996124;align-self:center}.repertoire-songs .music-card-body{min-height:175px}#groups .song{min-height:95px}
@media(max-width:1000px){.music-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:700px){.music-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.music-card-body{padding:13px}.music-card h3{font-size:18px}.music-card-actions{padding:7px;gap:4px}.music-card-actions button{font-size:10px;padding:6px 7px}.category-toolbar select{min-width:0;flex:1}.category-toolbar label{width:100%}}@media(max-width:390px){.music-grid{grid-template-columns:1fr}}

/* v1.2.6: mesma hierarquia da biblioteca pessoal */
.group-songs-heading{margin:26px 0 14px;font-family:Georgia,serif;font-size:1.35rem;color:#17364c;}
#group-songs-panel>.repertoires-toggle{margin-top:18px;}

/* v1.2.7: ferramentas locais de grupos */
.group-card-wrap{position:relative;min-width:0}.group-card-wrap .group-entry{width:100%;padding-bottom:48px}.group-pin{position:absolute;bottom:10px;right:12px;border:1px solid #dccab3;border-radius:9px;padding:6px 11px;background:#f5eee4;color:#17364d;font-weight:700;cursor:pointer}.group-filter-toolbar{margin:14px 0 16px;display:flex;align-items:center;flex-wrap:wrap;gap:10px}.group-filter-toolbar input{min-width:190px;flex:1}.group-filter-toolbar input[hidden]{display:none}
