:root {
  --navy:#0B1F3B;
  --navy-2:#102B46;
  --navy-3:#17354E;
  --graphite:#3A3F46;
  --mist:#D9DDE2;
  --gold:#C9B895;
  --teal:#438F92;
  --teal-strong:#54B7B1;
  --paper:#132A42;
  --line:rgba(217,221,226,.20);
  --ink:#EDF2F5;
  --muted:#B5C4CC;
  color-scheme:dark;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  font-synthesis:none;
}
* { box-sizing:border-box; }
html,body {margin:0;min-width:320px;min-height:100%;background:#07182B;color:var(--ink);}
body {line-height:1.4;-webkit-font-smoothing:antialiased;}
button,input,select {font:inherit;}
button {cursor:pointer;color:inherit;border:0;background:none;touch-action:manipulation;}
button:focus-visible,input:focus-visible,select:focus-visible {outline:2px solid #80DCDA;outline-offset:3px;}
button:disabled {opacity:.45;cursor:not-allowed;}
button svg {pointer-events:none;}
h1,h2,h3,p {margin:0;}
.icon {width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;}
#app {min-height:100dvh;}
.app-shell {min-height:100dvh;background:linear-gradient(170deg,#061A2B 0%,#0B1F3B 70%,#061626 100%);position:relative;display:flex;flex-direction:column;}
.app-shell.home-shell {background:radial-gradient(circle at 82% 6%,#294052 0%,transparent 30%),linear-gradient(135deg,#06172B,#092A42 49%,#07192B);}
.nav-bar {min-height:60px;display:flex;align-items:center;gap:24px;padding:10px clamp(16px,4vw,64px);background:rgba(2,17,31,.76);border-bottom:1px solid var(--line);}
.logo-inline {font-size:18px;font-weight:700;letter-spacing:.08em;white-space:nowrap;}
.logo-inline em {font-weight:400;color:var(--gold);letter-spacing:0;font-style:italic;}
.nav-links {display:flex;gap:12px;}
.nav-links button {color:var(--muted);border-radius:8px;padding:8px 12px;}
.nav-links button:hover {background:#284052;color:white;}
.nav-spacer {flex:1;}
.nav-mode {border:1px solid var(--gold);color:var(--gold);border-radius:100px;padding:5px 12px;font-size:12px;white-space:nowrap;}
.view {width:min(1180px,100%);margin:0 auto;padding:28px clamp(15px,3vw,32px) 72px;flex:1;}
.view-home {width:min(1440px,100%);padding:0 clamp(20px,4vw,52px) 36px;}
.home-wrap {max-width:1330px;margin:0 auto;}
.hero-header {height:245px;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;isolation:isolate;}
.hero-header::before {content:'';position:absolute;z-index:-2;inset:0;background:radial-gradient(ellipse 34% 44% at 91% 66%,rgba(211,171,112,.4),transparent 68%),linear-gradient(90deg,transparent 45%,rgba(255,255,255,.025));}
.hero-sky {position:absolute;right:0;bottom:0;width:42%;height:92%;z-index:-1;opacity:.62;background:linear-gradient(120deg,transparent 25%,rgba(26,54,75,.4)),url('../assets/horizon_demo_crop.png') no-repeat right center / contain;mask-image:linear-gradient(to right,transparent,black 24%);}
.brand-reference {width:min(540px,66%);height:auto;object-fit:contain;filter:drop-shadow(0 16px 26px rgba(0,0,0,.25));}
.mode-tag {position:absolute;bottom:15px;border:1px solid rgba(201,184,149,.8);border-radius:999px;padding:4px 20px;color:var(--mist);background:rgba(12,33,54,.8);font-size:14px;}
.featured {display:grid;grid-template-columns:270px minmax(0,1fr);gap:clamp(22px,4vw,45px);min-height:278px;padding:28px;border:1px solid var(--gold);border-radius:25px;background:linear-gradient(110deg,rgba(49,74,94,.65),rgba(23,48,69,.84));box-shadow:0 18px 35px rgba(0,0,0,.2),inset 0 1px 0 rgba(255,255,255,.13);}
.featured-image {border-radius:20px;background:linear-gradient(150deg,transparent 60%,rgba(0,0,0,.2)),url('../assets/camp_demo_crop.png') center / cover no-repeat;min-height:220px;box-shadow:inset 0 0 0 1px rgba(217,221,226,.3);}
.featured-info {display:flex;flex-direction:column;min-width:0;justify-content:center;gap:12px;}
.eyebrow {color:var(--gold);display:flex;align-items:center;gap:8px;font-size:16px;font-weight:600;letter-spacing:.02em;}
.featured h1 {font-size:clamp(24px,3.2vw,40px);line-height:1.17;overflow-wrap:anywhere;}
.featured-details {color:var(--mist);font-size:clamp(14px,1.6vw,18px);display:flex;flex-direction:column;gap:4px;}
.featured-details p {display:flex;align-items:center;gap:12px;}
.featured-actions {display:flex;gap:14px;margin-top:8px;}
.featured-actions button {flex:1;}
button.primary,button.secondary,button.danger-button {min-height:47px;border-radius:99px;font-weight:650;display:inline-flex;justify-content:center;align-items:center;gap:10px;padding:12px 19px;text-align:center;}
button.primary {background:linear-gradient(110deg,#2B777A,#459E99);border:1px solid #75C7C1;color:#fff;box-shadow:0 3px 12px rgba(5,74,78,.25);}
button.primary:hover {background:linear-gradient(110deg,#35898B,#4BA7A0);}
button.secondary {background:rgba(11,31,59,.25);border:1px solid var(--gold);color:#f6f3ec;}
button.secondary:hover {background:rgba(201,184,149,.12);}
button.danger-button {background:#842C36;border:1px solid #E59CA2;color:white;}
button.compact {min-height:40px;border-radius:12px;padding:8px 15px;font-size:14px;}
button.button-ghost {padding:10px;display:inline-flex;align-items:center;gap:8px;color:var(--muted);border-radius:10px;}
button.button-ghost:hover {background:rgba(255,255,255,.08);}
.home-cards {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;margin-top:28px;}
.smart-card {display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;gap:10px;min-height:125px;padding:18px 14px;background:linear-gradient(160deg,rgba(61,79,96,.7),rgba(26,47,69,.9));border:1px solid rgba(217,221,226,.3);border-radius:20px;text-align:center;box-shadow:inset 0 -3px 0 rgba(67,143,146,.85);transition:transform .14s ease,background .14s ease;}
.smart-card:hover {transform:translateY(-2px);background:#27485E;}
.smart-card:active {transform:translateY(0);}
.smart-card.home-card {min-height:190px;}
.smart-icon {color:var(--gold);}
.smart-icon .icon {width:32px;height:32px;}
.smart-title {font-size:clamp(14px,1.6vw,18px);font-weight:650;line-height:1.23;overflow-wrap:anywhere;}
.smart-detail {font-size:13px;color:var(--mist);line-height:1.32;}
.home-footer {text-align:center;color:#C5CFD5;font-size:13px;letter-spacing:.03em;margin:34px 0 8px;}
.home-footer span {color:var(--gold);padding:0 10px;}
.demo-ribbon {position:fixed;bottom:4px;left:12px;font-size:9px;letter-spacing:.08em;opacity:.56;pointer-events:none;}
.page-head {display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin:8px 0 24px;}
.page-head h1 {font-size:clamp(23px,3vw,31px);}
.page-head p {margin-top:5px;color:var(--muted);font-size:14px;}
.head-actions {display:flex;align-items:center;gap:8px;}
.tile-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;}
.collection-tile {position:relative;border:1px solid var(--line);border-radius:18px;background:linear-gradient(160deg,rgba(55,75,94,.6),rgba(20,48,70,.8));min-height:170px;display:flex;}
.tile-main {display:flex;flex:1;min-width:0;flex-direction:column;align-items:flex-start;gap:10px;text-align:left;padding:24px 50px 20px 22px;}
.tile-main>.icon {width:27px;height:27px;color:var(--gold);}
.tile-main strong {font-size:17px;line-height:1.2;overflow-wrap:anywhere;}
.tile-main small {font-size:13px;color:var(--muted);}
.tile-main:hover {background:rgba(255,255,255,.035);border-radius:18px;}
.tile-more {position:absolute;right:11px;top:12px;width:41px;height:41px;border-radius:12px;color:var(--mist);background:rgba(10,27,48,.4);display:flex;align-items:center;justify-content:center;}
.tile-more:hover {background:rgba(255,255,255,.1);}
.icon-button {width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);background:rgba(255,255,255,.04);border-radius:12px;}
.icon-button:hover {background:rgba(255,255,255,.1);}
.sub-actions {display:flex;justify-content:space-between;gap:10px;margin:-10px 0 18px;}
.clipboard-items {display:flex;flex-direction:column;gap:10px;}
.playlist-row {border:1px solid var(--line);border-radius:15px;background:#17364C;display:flex;align-items:center;justify-content:space-between;gap:8px;}
.row-main {display:flex;align-items:center;gap:18px;flex:1;text-align:left;padding:15px 18px;min-width:0;}
.row-main:hover {background:rgba(255,255,255,.04);}
.row-text {display:flex;flex:1;flex-direction:column;gap:3px;min-width:0;}
.row-text strong {font-size:17px;}
.row-text small {font-size:12px;color:var(--muted);}
.order-number {font-weight:700;color:var(--gold);font-size:15px;}
.row-arrow {color:var(--muted);}
.row-tools {display:flex;gap:5px;padding:10px;}
.small-button {min-height:40px;padding:8px 10px;border:1px solid var(--line);border-radius:10px;}
.danger-subtle {color:#EE9AA3;}
.empty-state {border:1px dashed rgba(217,221,226,.3);padding:45px 20px;text-align:center;color:var(--muted);border-radius:18px;}
.locked-feature {max-width:720px;margin:40px auto;border:1px solid var(--line);background:rgba(20,45,64,.85);border-radius:18px;padding:35px;text-align:center;display:flex;align-items:center;flex-direction:column;gap:15px;}
.locked-feature>.icon {width:42px;height:42px;color:var(--gold);}
.locked-feature p {line-height:1.65;}
.muted {color:var(--muted);font-size:14px;line-height:1.5;}
.settings-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.toast {position:fixed;left:50%;transform:translateX(-50%);bottom:26px;background:#264C57;color:#fff;border:1px solid #6DA8AC;border-radius:14px;padding:11px 17px;z-index:50;max-width:90%;box-shadow:0 6px 18px rgba(0,0,0,.3);font-size:14px;}
.toast .button-text {text-decoration:underline;margin-left:8px;}
.reader-shell .toast {bottom:78px;}
/* Leitor musical — barra Deep Navy e superfície de leitura escura aprovada. */
.reader-shell {height:100dvh;min-height:420px;background:#061627;display:flex;flex-direction:column;overflow:hidden;}
.reader-topbar,.reader-bottom {background:var(--navy);display:flex;align-items:center;gap:8px;flex-shrink:0;padding:7px clamp(8px,2.2vw,26px);min-height:56px;border-color:#29465A;}
.reader-topbar {border-bottom:1px solid #28485A;}
.reader-bottom {border-top:1px solid #28485A;}
.reader-stretch {flex:1;min-width:0;}
.reader-key,.reader-mode {width:46px;height:43px;border:1px solid var(--teal);background:#183750;border-radius:9px;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:21px;flex-shrink:0;}
.reader-mode .icon {width:22px;height:22px;}
.reader-arrow,.reader-control {width:43px;height:43px;display:flex;align-items:center;justify-content:center;border-radius:9px;flex-shrink:0;color:var(--mist);}
.reader-arrow:hover,.reader-control:hover {background:#22425B;}
.reader-song-card {min-width:0;max-width:35%;background:#1B3855;border:1px solid #436077;border-radius:10px;padding:5px 16px;display:flex;flex-direction:column;align-items:center;line-height:1.2;gap:4px;}
.reader-song-card strong {font-size:clamp(13px,1.4vw,17px);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:100%;}
.reader-song-card small {color:var(--gold);font-size:11px;}
.reader-body {flex:1;overflow-y:auto;overscroll-behavior:contain;background:#132A42;padding:clamp(14px,3vw,44px) clamp(16px,5vw,70px);}
.reading-paper {max-width:1180px;margin:0 auto;padding:2px 0 80px;}
.reading-paper.two-columns {column-count:2;column-gap:6%;}
.song-section {break-inside:avoid-column;margin:0 0 38px;border-radius:7px;scroll-margin-top:15px;}
.song-section h3 {text-transform:uppercase;letter-spacing:.15em;color:#A8BCC6;font-weight:600;font-size:13px;margin:0 0 18px;}
.song-line {display:flex;flex-wrap:wrap;gap:15px 21px;margin:0 0 15px;align-items:start;}
.lyric-segment {display:flex;flex-direction:column;min-width:0;max-width:100%;white-space:normal;gap:2px;}
.lyric-segment>.chord {font-size:var(--font-chords,19px);font-weight:700;color:var(--gold);white-space:nowrap;}
.lyric-segment>.lyric {font-size:var(--font-lyrics,21px);font-weight:500;color:#EDF2F5;line-height:1.3;}
.reader-body.density-compacta .song-line {margin-bottom:8px;}
.reader-body.density-compacta .song-section {margin-bottom:23px;}
.reader-body.density-ampla .song-line {margin-bottom:26px;}
.reader-body.density-ampla .song-section {margin-bottom:53px;}
.harmony-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(112px,1fr));gap:9px;margin-bottom:27px;}
.harmony-cell {min-height:65px;display:flex;align-items:center;justify-content:center;color:var(--gold);font-weight:700;font-size:var(--font-chords,19px);border:1px solid #455D70;background:#1F3950;border-radius:10px;}
.reader-section {border:1px solid #36556A;background:#1B3855;color:var(--mist);border-radius:10px;min-height:41px;min-width:90px;padding:6px 12px;font-size:13px;}
.reader-demo {height:19px;flex-shrink:0;background:#061627;color:#738DA0;font-size:9px;letter-spacing:.1em;text-align:center;}
/* Painéis Smart Card: sobreposição, sem fechamento por clique externo. */
.modal-scrim {position:fixed;inset:0;z-index:100;background:rgba(1,10,20,.75);display:flex;align-items:center;justify-content:center;padding:clamp(10px,2vw,28px);}
.modal {width:min(700px,100%);max-height:min(88dvh,840px);display:flex;flex-direction:column;background:linear-gradient(155deg,#16344C,#0C223B);border:1px solid #4E7180;border-radius:20px;box-shadow:0 22px 70px rgba(0,0,0,.65);overflow:hidden;}
.modal-head {min-height:58px;padding:12px 18px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:15px;}
.modal-head h2 {font-size:17px;line-height:1.2;font-weight:700;}
.modal-head .icon-button {width:38px;height:38px;}
.modal-content {padding:22px;overflow-y:auto;display:flex;flex-direction:column;gap:18px;}
.modal-footer {padding:13px 20px;border-top:1px solid var(--line);display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;}
.modal-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;}
.modal-grid.three {grid-template-columns:repeat(3,minmax(0,1fr));}
.modal-grid .smart-card {min-height:92px;padding:14px;gap:7px;border-radius:13px;}
.modal-grid .smart-title {font-size:15px;}
.modal-grid .smart-icon .icon {width:23px;height:23px;}
.modal-grid .smart-detail {font-size:12px;}
.modal-grid.key-choices {grid-template-columns:repeat(4,minmax(0,1fr));}
.modal-grid.key-choices .smart-card {min-height:65px;}
.dialog-tools {margin-top:14px;}
.keyboard {border:1px solid rgba(217,221,226,.25);border-radius:13px;background:#112C42;padding:11px;display:flex;flex-direction:column;gap:6px;}
.kbd-value {min-height:47px;border:1px solid #497082;border-radius:9px;background:#0B1F3B;padding:11px 14px;font-size:18px;overflow-wrap:anywhere;}
.placeholder {color:#AAB9C3;}
.caret {color:#7EE1D6;animation:blink 1s steps(2,start) infinite;}
@keyframes blink {to{visibility:hidden}}
.keyboard-row {display:flex;gap:5px;justify-content:center;}
.keycap {flex:1;min-width:0;min-height:40px;background:#29485F;border:1px solid #49677B;border-radius:7px;font-weight:650;font-size:14px;padding:4px;}
.keycap:active {background:var(--teal);}
.keyboard-tools .keycap {font-size:12px;}
.keyboard-tools .key-space {flex:3;}
.accent-head {display:flex;justify-content:space-between;color:var(--gold);padding:5px;}
.accent-head button {padding:5px;}
.accent-grid {display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;}
.field-label {display:flex;flex-direction:column;gap:9px;font-weight:650;font-size:14px;}
.field-label input {min-height:50px;background:#0D263B;border:1px solid #53768A;border-radius:10px;padding:13px;color:white;font-size:21px;}
.key-selected {display:flex;justify-content:center;align-items:center;gap:25px;}
.key-selected strong {font-size:39px;color:var(--gold);min-width:66px;text-align:center;}
.key-step {width:52px;height:52px;border:1px solid #5D8290;border-radius:11px;display:flex;align-items:center;justify-content:center;}
.settings-form {display:flex;flex-direction:column;gap:24px;}
.settings-form label {display:flex;flex-direction:column;gap:10px;}
.settings-form input[type="range"] {width:100%;accent-color:var(--teal);}
.settings-form select {background:#173A51;color:white;padding:10px;border-radius:10px;border:1px solid #658396;}
@media(max-width:850px){
 .featured {grid-template-columns:175px minmax(0,1fr);padding:18px;gap:20px;min-height:230px;}
 .featured-image {min-height:190px;}
 .home-cards {gap:8px;}
 .smart-card.home-card {min-height:150px;padding:12px 7px;}
 .smart-card.home-card .smart-title {font-size:14px;}
 .smart-card.home-card .smart-detail {font-size:11px;}
 .tile-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
 .reader-body {padding-inline:25px;}
}
@media(max-width:600px){
 .nav-bar {gap:10px;padding:8px 12px;}
 .nav-links {display:none;}
 .view {padding:18px 14px 62px;}
 .view-home {padding:0 14px 30px;}
 .hero-header {height:175px;}
 .brand-reference {width:min(410px,85%);}
 .featured {grid-template-columns:1fr;gap:13px;padding:16px;}
 .featured-image {display:none;}
 .featured h1 {font-size:24px;}
 .featured-actions {flex-wrap:wrap;}
 .featured-actions button {min-width:125px;font-size:13px;}
 .home-cards {grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:17px;}
 .smart-card.home-card {min-height:135px;}
 .home-footer {font-size:11px;line-height:1.7;}
 .page-head {align-items:flex-start;}
 .page-head h1 {font-size:22px;}
 .tile-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;}
 .collection-tile {min-height:145px;}
 .tile-main {padding:17px 38px 14px 12px;gap:7px;}
 .tile-main strong {font-size:14px;}
 .tile-main small {font-size:11px;}
 .tile-more {right:4px;top:4px;width:34px;height:34px;}
 .reader-song-card {max-width:48%;padding:4px 8px;}
 .reader-topbar,.reader-bottom {gap:2px;padding:5px;}
 .reader-arrow,.reader-control {width:36px;height:40px;}
 .reader-key,.reader-mode {width:39px;height:39px;}
 .reading-paper.two-columns {column-count:1;}
 .reader-body {padding:14px;}
 .reader-section {min-width:68px;padding:5px 7px;}
 .modal-content {padding:14px;}
 .modal-grid .smart-card {padding:9px;min-height:90px;}
 .modal-grid .smart-title {font-size:13px;}
 .modal-grid .smart-detail {font-size:11px;}
 .keycap {font-size:12px;min-height:38px;}
}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;}}

/* Consulta manual de versão; não altera a grade oficial de 4 categorias. */
.version-panel {margin-top:24px;border:1px solid var(--line);border-radius:16px;padding:18px 22px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;background:rgba(19,42,66,.76)}
.version-panel>div:first-child {min-width:180px;flex:1}.version-panel strong {font-size:16px}
.version-panel p {color:var(--gold);font-size:13px;margin:5px 0}.version-panel small{color:var(--muted);line-height:1.4}
.version-actions {display:flex;gap:8px;flex-wrap:wrap}.disabled-look{opacity:.55;cursor:wait}
.version-panel>small {flex-basis:100%}

/* GW-E1-BUILD001: aplicação da tela inicial aprovada com cabeçalho à esquerda. */
.hero-header {justify-content:flex-start;padding-left:clamp(10px,3.4vw,52px);height:245px;}
.brand-reference {position:relative;z-index:1;width:min(540px,49%);max-height:174px;align-self:flex-start;margin-top:22px;}
.mode-tag {left:clamp(16px,4vw,65px);bottom:13px;min-width:188px;text-align:center;}
.hero-sky {width:47%;height:98%;right:-5px;bottom:0;opacity:.95;background:linear-gradient(90deg,rgba(11,31,59,.9),transparent 35%),url('../assets/paisagem_cabecalho_aprovada.webp') no-repeat right center / cover;mask-image:linear-gradient(90deg,transparent,black 31%);}
.featured {border-color:#C9B895;box-shadow:0 12px 32px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.15),0 0 13px rgba(201,184,149,.12);}
/* Splash: imagem autorizada da composição aprovada, sem efeito sobre a área de cifras. */
#startup-splash {position:fixed;inset:0;z-index:9999;background:#0B1F3B;display:grid;place-items:center;pointer-events:none;animation:worship-splash-exit .36s ease 1.18s forwards;}
#startup-splash img {width:100%;height:100%;object-fit:cover;object-position:center;}
@keyframes worship-splash-exit {from{opacity:1;visibility:visible}to{opacity:0;visibility:hidden}}
@media(max-width:850px){.hero-header{height:195px}.brand-reference{width:min(460px,59%);max-height:145px;margin-top:10px}.hero-sky{width:52%;}.mode-tag{bottom:8px;left:20px}}
@media(max-width:600px){.hero-header{height:155px;padding-left:8px}.brand-reference{width:min(330px,76%);max-height:115px;margin-top:4px}.mode-tag{min-width:130px;font-size:11px;left:14px;bottom:3px}.hero-sky{width:48%;opacity:.62}}
