:root{--navy:#101d35;--navy-deep:#0b172b;--gold:#c9a865;--gold-light:#efe4ca;--paper:#f7f8fa;--ink:#1b283c;--muted:#788195;--line:#e9ecf1;--shadow:0 16px 60px rgba(15,33,54,.04)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);background:var(--paper);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:14px;-webkit-font-smoothing:antialiased}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}a{color:inherit;text-decoration:none}.hidden{display:none!important}h1,h2,h3,p{margin-top:0}h1{letter-spacing:-1.5px}h2{letter-spacing:-.5px}p{line-height:1.65}.mini{font-size:12px}.muted{color:var(--muted)}.eyebrow{color:var(--gold);font-size:10px;font-weight:800;letter-spacing:2.1px}.emblem{width:43px;height:43px;border:1px solid rgba(201,168,101,.58);border-radius:12px;display:flex;align-items:center;justify-content:center;position:relative;color:#e8cb8d;font-family:Georgia,serif;font-size:29px}.emblem span{position:absolute;font-family:sans-serif;font-size:10px;right:3px;top:2px}.emblem.large{width:55px;height:55px;font-size:38px}.emblem.large span{font-size:12px}.gold-dot{color:var(--gold)}
/* Authentication */
.auth-body{min-height:100vh;color:#fff;background:radial-gradient(circle at 79% 24%,#1d3650 0,transparent 36%),linear-gradient(145deg,#08172b,#142541 62%,#0c1829);display:grid;place-items:center;overflow:hidden}.auth-glow{position:fixed;width:700px;height:700px;border:1px solid rgba(201,168,101,.09);border-radius:50%;right:-190px;bottom:-330px;box-shadow:0 0 0 90px rgba(201,168,101,.025),0 0 0 200px rgba(201,168,101,.017);pointer-events:none}.login-shell{position:relative;width:min(100%,510px);padding:32px 24px}.login-brand{display:flex;align-items:center;gap:14px;margin-bottom:37px}.login-brand strong{font-size:19px;letter-spacing:3px}.login-brand small{display:block;color:#aab7c8;font-size:10px;letter-spacing:2px;margin-top:7px;text-transform:uppercase}.brand-light{font-weight:400}.login-card{background:#fff;border:1px solid #f1ecdf;box-shadow:0 30px 110px rgba(0,0,0,.22);border-radius:19px;padding:40px;color:var(--ink)}.login-card h1{font:400 39px/1.12 Georgia,"Times New Roman",serif;letter-spacing:-1.7px;margin:15px 0}.login-card p{color:var(--muted);margin-bottom:25px}.login-card .mini{margin:24px 0 0}.auth-footer{text-align:center;color:#a2adc0;letter-spacing:2px;font-size:10px;padding-top:30px}.auth-footer span{color:var(--gold);padding:0 8px}.notice{border-radius:11px;padding:14px 15px;margin:14px 0;background:#f4f6fb}.notice.error{background:#fff1ef;color:#a3413c}.notice.warning{background:#fffaec;color:#735c20}.notice code{white-space:normal}
/* Shell */
.app-shell{display:grid;grid-template-columns:235px minmax(500px,1fr) 310px;min-height:100vh}.sidebar{background:var(--navy-deep);color:#e1e6ee;padding:29px 17px 24px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh;overflow-y:auto}.logo-line{display:flex;gap:12px;align-items:center;padding:0 6px 32px}.logo-text b{display:block;font-size:15px;letter-spacing:2.2px}.logo-text small{color:#b5a27d;font-size:10px;letter-spacing:2.9px;display:block;padding-top:4px}.sidebar-label{padding:12px 17px;color:#74869f;letter-spacing:1.7px;font-weight:800;font-size:10px}.sidebar-label.more{margin-top:26px}.nav-group{display:grid;gap:4px}.nav-item{height:43px;display:flex;align-items:center;gap:13px;border:0;border-radius:10px;padding:0 14px;color:#a9b8cd;background:transparent;text-align:left;font-size:12.5px;font-weight:600;transition:background .18s,color .18s}.nav-item:hover{background:#192c47;color:#fff}.nav-item.active{background:#253955;color:#f5f5f5;box-shadow:inset 3px 0 var(--gold)}.nav-icon{width:20px;flex:none;font-size:20px;color:var(--gold);font-weight:300;text-align:center}.sidebar-bottom{margin-top:auto;padding:30px 12px 0}.sidebar-verse{color:#c1c8d6;line-height:1.65;font:italic 13px/1.6 Georgia,serif;padding:18px 10px 26px;border-top:1px solid #2e3c51}.sidebar-verse small{display:block;color:var(--gold);font:normal 10px sans-serif;margin-top:8px}.version{font-size:9px;color:#647991;letter-spacing:1.6px}.workspace{min-width:0}.topbar{height:75px;border-bottom:1px solid var(--line);background:rgba(255,255,255,.88);display:flex;align-items:center;justify-content:space-between;padding:0 36px;gap:14px}.breadcrumb{display:flex;gap:13px;align-items:center;font-size:12px;min-width:0}.breadcrumb span{color:#a4acba;font-weight:800;font-size:10px;letter-spacing:1.4px}.breadcrumb b{font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.top-actions{display:flex;gap:9px;align-items:center}.connected{color:#547762;font-size:10px;font-weight:700;white-space:nowrap;margin-right:8px}.connected i,.onair i,.projector-status i{display:inline-block;background:#4ba879;width:7px;height:7px;border-radius:100%;margin-right:5px;box-shadow:0 0 0 4px rgba(75,168,121,.1)}.connected.offline{color:#b65042}.connected.offline i{background:#b65042}.content{padding:37px 36px 72px;max-width:1180px;margin:auto}.tab{display:none}.tab.active{display:block}.section-intro{margin-bottom:29px}.section-intro h1{font:400 41px/1.2 Georgia,"Times New Roman",serif;margin:12px 0 10px}.section-intro p{color:var(--muted);font-size:13px;max-width:610px;margin:0}.section-heading{font-size:17px;letter-spacing:-.35px;margin:32px 0 15px}.hero-cards{display:grid;grid-template-columns:1.26fr 1fr;gap:15px}.hero-card{border-radius:14px;min-height:203px;padding:29px;position:relative;overflow:hidden;box-shadow:var(--shadow)}.hero-card.dark{color:#fff;background:linear-gradient(116deg,#13253e,#203853)}.hero-card.light{color:var(--navy);background:#fff;border:1px solid var(--line)}.hero-overline{font-size:10px;letter-spacing:1.7px;color:var(--gold);font-weight:800;margin-bottom:25px}.hero-card .hero-title{font:400 30px/1.16 Georgia,serif;letter-spacing:-.7px;max-width:360px}.hero-card .hero-title.smaller{font-size:25px}.hero-detail{color:#b4c2d7;font-size:12px;margin-top:13px}.hero-lines{height:170px;width:170px;position:absolute;right:-52px;bottom:-77px;border:1px solid rgba(201,168,101,.28);border-radius:50%;box-shadow:0 0 0 28px rgba(201,168,101,.055),0 0 0 61px rgba(201,168,101,.035)}.hero-card.light p{color:var(--muted);font-size:12px}.inline-link{font-weight:750;color:#927647;font-size:12px;border-bottom:1px solid #d3ba86;padding-bottom:4px}.quick-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.quick-card{border:1px solid var(--line);border-radius:13px;min-height:135px;background:#fff;display:flex;flex-direction:column;align-items:flex-start;text-align:left;padding:20px;transition:transform .2s,box-shadow .2s}.quick-card:hover{transform:translateY(-3px);box-shadow:0 15px 26px rgba(17,33,52,.08)}.quick-symbol{color:#ad8b49;font-size:27px;line-height:1;margin-bottom:21px}.quick-card b{font-size:12px;color:#1b2c43}.quick-card small{font-size:10px;color:var(--muted);margin-top:7px}.panel-card{background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);padding:26px;border-radius:15px;margin-top:18px}.panel-card h2{font-size:17px;font-weight:700;margin-bottom:8px}.panel-card p{color:var(--muted);font-size:12px}.panel-card-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.hint-pill{border:1px solid #e7ddc4;padding:9px;border-radius:8px;color:#917447;font-size:9px;font-weight:800;letter-spacing:1px;white-space:nowrap}.custom-text{display:grid;grid-template-columns:1fr 1.1fr;gap:24px;padding-top:32px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;align-items:end;margin-top:18px}.form-stack{display:flex;flex-direction:column;gap:20px}.form-grid label,.form-stack label{display:flex;flex-direction:column;gap:8px;font-size:11px;font-weight:750;color:#4b5870}.form-grid label.full{grid-column:1/-1}input,textarea,select{width:100%;border:1px solid #dfe4ec;background:#fbfcfd;border-radius:9px;outline:none;color:#26364d;padding:12px 13px;min-height:43px;transition:border-color .18s,box-shadow .18s}input:focus,textarea:focus,select:focus{border-color:#bfa575;box-shadow:0 0 0 3px rgba(201,168,101,.12)}textarea{resize:vertical;line-height:1.5}input[type=color]{height:46px;padding:5px;cursor:pointer}.btn{border-radius:9px;border:1px solid transparent;font-size:12px;font-weight:750;padding:12px 16px;display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:40px;white-space:nowrap}.btn span{font-size:16px}.btn-primary{background:#182c47;color:#fff}.btn-primary:hover{background:#293e5b}.btn-secondary{background:#fff;color:#22334b;border-color:#e0e5ed}.btn-secondary:hover{border-color:#b6c4d4}.btn-minimal{background:transparent;color:#516177}.btn-small{font-size:11px;padding:9px 12px;min-height:35px}.wide{width:100%}.section-meta,.legal-note{display:block;color:#8a94a3;font-size:11px;margin-top:13px;line-height:1.5}.empty-state{text-align:center;border:1px dashed #dce2eb;border-radius:12px;padding:35px 15px;color:#8893a1;font-size:12px;background:#fff}.scripture-list{margin-top:18px;max-height:590px;overflow:auto}.verse-item{display:flex;gap:17px;padding:16px 19px;border-bottom:1px solid #f0f1f3;background:white;align-items:flex-start;cursor:pointer;transition:background .15s}.verse-item:first-child{border-radius:12px 12px 0 0}.verse-item:hover,.verse-item.selected{background:#fffaf1}.verse-item .verse-number{min-width:28px;color:#b59862;font-size:12px;font-weight:750}.verse-text{line-height:1.65;font-family:Georgia,serif;font-size:15px;flex:1}.verse-item .project-action{background:#edf1f5;color:#43556f;border:0;border-radius:7px;padding:7px 9px;font-size:10px;white-space:nowrap}.segment-actions{display:flex;gap:12px;justify-content:space-between;align-items:center;margin-top:14px}.segment-actions span{font-size:11px;color:#808b9a}.collection{display:grid;gap:10px}.collection-item{padding:18px 20px;display:flex;gap:16px;align-items:center;justify-content:space-between;background:#fff;border:1px solid var(--line);border-radius:12px}.collection-primary{min-width:0}.collection-title{font-weight:700;font-size:13px;margin-bottom:6px}.collection-body{color:#8a94a3;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:470px}.collection-actions{display:flex;gap:6px;flex-shrink:0}.collection-actions button{border:1px solid #e4e8ee;background:#f8fafc;color:#495b72;border-radius:7px;padding:8px 9px;font-size:11px}.collection-actions .present{background:#172e4a;color:#fff;border-color:#172e4a}.collection-actions .danger{color:#a74e47}.index-circle{border:1px solid #dbc79c;background:#fcf8ef;color:#a68a58;min-width:38px;height:38px;border-radius:50%;display:grid;place-items:center;font-family:Georgia,serif;font-size:14px}.liturgy-list .collection-item{gap:14px}.liturgy-list .collection-primary{flex:1}.stanza-preview{padding:23px;background:#f5f7fb;border:1px solid #e7eaf0;border-radius:10px;font:19px/1.6 Georgia,serif;white-space:pre-wrap;margin:17px 0}.toast{position:fixed;bottom:22px;right:28px;background:#172c44;color:#fff;border:1px solid #3c5165;border-radius:10px;box-shadow:0 18px 40px #07172a33;padding:13px 18px;font-size:12px;opacity:0;transform:translateY(10px);pointer-events:none;transition:all .22s;z-index:30;max-width:350px}.toast.show{opacity:1;transform:translateY(0)}.toast.error{background:#903f35}
/* Preview */
.live-sidebar{background:#fff;border-left:1px solid var(--line);padding:35px 23px;position:sticky;top:0;height:100vh;overflow-y:auto}.preview-header{display:flex;align-items:center;justify-content:space-between;margin:8px 0 19px;gap:8px}.onair{font-size:9px;color:#4b8a6d;font-weight:800;letter-spacing:.5px;white-space:nowrap}.mini-projector{padding:9px;background:#0c1930;border-radius:12px;aspect-ratio:16/10;box-shadow:0 18px 35px rgba(5,23,50,.18)}.mini-projection-art{height:100%;background:radial-gradient(ellipse at 50% 20%,#294565,#0e203b 75%);border:1px solid #516079;border-radius:6px;color:#fff;display:flex;align-items:center;flex-direction:column;justify-content:center;text-align:center;padding:22px;overflow:hidden}.mini-star{font-size:22px;color:var(--gold);margin-bottom:10px}.mini-projection-art span{font-size:7px;letter-spacing:2px;color:#d2b986;font-weight:700}.mini-projection-art h2{font:20px/1.2 Georgia,serif;margin:10px 0;max-width:95%;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.mini-projection-art p{font-size:9px;line-height:1.5;color:#c4ccda;max-width:90%;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}.mini-projection-art small{font-size:6px;letter-spacing:1px;color:#c1a979;margin-top:auto}.preview-tip{color:#8792a0;font-size:11px;margin:17px 0}.divider-line{height:1px;background:var(--line);margin:25px 0}.live-tip{display:grid;grid-template-columns:28px 1fr;gap:6px}.live-tip>span{grid-row:1/3;font-size:20px;color:var(--gold)}.live-tip b{font-size:12px}.live-tip p{font-size:11px;color:#909baa;margin:0}
/* Projector */
.projector-body{margin:0;overflow:hidden;background:#08182a;color:white}.projector-screen{min-height:100vh;height:100vh;display:flex;flex-direction:column;justify-content:center;align-items:center;background:radial-gradient(circle at 50% 32%,#203854 0,#111f38 53%,#081427 100%);position:relative;overflow:hidden;padding:7vh 7vw 6vh}.projector-orbit{position:absolute;border:1px solid rgba(201,168,101,.105);border-radius:50%;pointer-events:none}.projector-orbit.one{width:68vw;height:68vw;top:-47vw;right:-29vw}.projector-orbit.two{width:83vw;height:83vw;bottom:-66vw;left:-36vw;box-shadow:0 0 0 70px rgba(201,168,101,.018),0 0 0 170px rgba(201,168,101,.013)}.stage{z-index:2;display:flex;justify-content:center;align-items:center;flex-direction:column;text-align:center;max-width:87vw;width:100%;max-height:75vh}.stage-emblem{font-size:clamp(30px,4.2vw,70px);color:#d4b778;margin-bottom:2.5vh}.stage-eyebrow{font-size:clamp(12px,1.3vw,24px);font-weight:700;letter-spacing:.35em;color:#d2b579;text-transform:uppercase;margin-bottom:3vh}.stage-title{font:400 clamp(40px,5.5vw,112px)/1.13 Georgia,serif;letter-spacing:-.035em;max-width:82vw;margin:0;text-wrap:balance;text-shadow:0 15px 40px #0002}.stage-body{font:400 clamp(22px,2.3vw,46px)/1.45 Georgia,serif;max-width:82vw;color:#e0e5ea;margin:4vh auto 0;white-space:pre-wrap;text-wrap:pretty}.stage-credit{font:400 clamp(10px,.95vw,19px)/1.4 sans-serif;color:#b8b3ab;margin-top:3vh;max-width:80vw}.stage-countdown{font:300 clamp(85px,15vw,260px)/1.1 ui-monospace,Consolas,monospace;letter-spacing:-.07em;color:#fff;margin:4vh 0 0;font-variant-numeric:tabular-nums}.stage-video{width:min(82vw,1450px);aspect-ratio:16/9;max-height:70vh;border-radius:13px;overflow:hidden;border:1px solid #42516b;background:#02050c;box-shadow:0 16px 55px rgba(0,0,0,.4)}.stage-video iframe{border:0;display:block;width:100%;height:100%}.stage-footer{position:absolute;bottom:4.3vh;left:5vw;right:5vw;z-index:3;display:flex;align-items:center;justify-content:space-between;color:#b6c5d6;gap:30px}.stage-brand{display:flex;align-items:center;gap:13px;font-size:clamp(10px,.95vw,16px);letter-spacing:.2em;font-weight:750}.stage-brand-mark{border:1px solid #c5ac71;color:#c5ac71;width:32px;height:32px;display:grid;place-items:center;border-radius:50%;font-size:17px}.stage-tagline{font:italic clamp(11px,1vw,17px) Georgia,serif;color:#d2b782}.projector-controls{position:absolute;top:3vh;right:3vw;display:flex;gap:15px;align-items:center;opacity:.16;transition:opacity .2s;z-index:4}.projector-controls:hover{opacity:1}.projector-controls button{border:1px solid #718298;background:#152842;color:white;padding:9px 15px;border-radius:8px}.projector-status{font-size:12px}.projector-screen.is-black{background:#000}.projector-screen.is-black .projector-orbit,.projector-screen.is-black .stage-footer{display:none}.projector-screen.is-video .projector-orbit{opacity:.25}.projector-screen.is-video .stage-title{font-size:clamp(22px,3vw,46px);margin-bottom:2vh}.projector-screen.is-verse .stage-title{font:400 clamp(17px,1.75vw,30px)/1.4 sans-serif;color:#dbbb7e;letter-spacing:.12em;text-transform:uppercase}.projector-screen.is-verse .stage-body{font:400 clamp(36px,4.3vw,90px)/1.35 Georgia,serif;margin:4vh auto 0;color:white;max-height:59vh;overflow:auto}.projector-screen.is-hymn .stage-title{font-size:clamp(24px,3.4vw,55px);color:#e6cc95}.projector-screen.is-hymn .stage-body{font-size:clamp(31px,3.6vw,67px);line-height:1.42;max-height:52vh;overflow:auto}.projector-screen.is-birthday .stage-emblem{font-size:clamp(50px,8vw,125px)}.projector-screen.is-birthday .stage-title{color:#f3deaf}.projector-screen.is-liturgy .stage-title{font-size:clamp(35px,5vw,82px)}.projector-screen.is-liturgy .stage-body{font-size:clamp(22px,3.2vw,54px)}
@media(max-width:1450px){.app-shell{grid-template-columns:218px minmax(460px,1fr) 268px}.content{padding-left:25px;padding-right:25px}.topbar{padding:0 25px}.quick-card{padding:15px}.live-sidebar{padding:30px 17px}}
@media(max-width:1150px){.app-shell{grid-template-columns:215px minmax(0,1fr)}.live-sidebar{display:none}}
@media(max-width:750px){.app-shell{display:block}.sidebar{height:auto;position:relative;padding:12px 12px 0}.logo-line{padding:5px 6px 14px}.sidebar-label,.sidebar-label.more,.sidebar-bottom{display:none}.nav-group{display:flex;overflow-x:auto;padding-bottom:12px;gap:2px}.nav-item{flex:0 0 auto;height:41px;padding:0 11px;font-size:11px}.nav-icon{width:14px;font-size:14px}.topbar{padding:0 13px;height:66px}.breadcrumb{display:none}.connected{display:none}.top-actions{width:100%;justify-content:flex-end}.content{padding:25px 16px 60px}.section-intro h1{font-size:32px}.hero-cards{grid-template-columns:1fr}.hero-card{min-height:165px;padding:24px}.quick-grid{grid-template-columns:repeat(2,1fr)}.custom-text{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.form-grid label.full{grid-column:auto}.panel-card{padding:20px}.collection-item{align-items:flex-start;flex-wrap:wrap}.collection-actions{width:100%;justify-content:flex-start}.verse-item{padding:12px;gap:9px}.verse-text{font-size:14px}.verse-item .project-action{font-size:9px}.segment-actions{flex-wrap:wrap}.projector-screen{padding:5vh 5vw}.stage-footer{bottom:3vh}.stage-tagline{display:none}}

/* V1.1: liturgia operacional e restauracao segura da projecao */
.restore-button{position:relative;z-index:2;border:1px solid #62728a;background:rgba(255,255,255,.09);color:#fff;border-radius:8px;margin-top:22px;padding:10px 13px;font-size:11px;font-weight:700}
.restore-button:hover:not(:disabled){background:#ffffff22}
.live-liturgy-card{margin-top:22px;border-color:#e7dfcf}
.live-liturgy-card .panel-card-heading{align-items:center}
.live-liturgy-card .eyebrow{display:block;margin-bottom:10px}
.live-liturgy-list{display:grid;gap:7px;margin-top:24px}
.live-liturgy-step{display:flex;align-items:center;gap:11px;padding:10px 12px;background:#fcfcfd;border:1px solid #e9edf2;border-radius:10px}
.live-liturgy-step.active-step{border-color:#cfb882;background:#fffaf0;box-shadow:inset 3px 0 #c9a865}
.live-liturgy-step.done-step .step-number{background:#edf5ed;color:#42764e;border-color:#d1e8d5}
.step-number{flex:none;width:31px;height:31px;display:grid;place-items:center;border-radius:50%;background:#f4f5f8;border:1px solid #e6e8ed;color:#6f7a90;font-weight:800;font-size:11px}
.step-description{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.step-description strong{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:12px}
.step-description small{color:#8a95a5;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:10px}
.step-project,.step-complete{flex:none;border-radius:7px;padding:9px 10px;border:1px solid #dfe5ee;background:white;color:#3b4c65;font-size:10px;font-weight:750}
.step-project{background:#182c47;color:#fff;border-color:#182c47}
.live-liturgy-actions{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-top:16px;flex-wrap:wrap}
@media(max-width:750px){.live-liturgy-step{gap:7px;flex-wrap:wrap}.step-description{flex-basis:calc(100% - 50px)}.step-project,.step-complete{flex:1}.live-liturgy-card .panel-card-heading{flex-wrap:wrap}}

/* SC13: telão controlado pelas setas; indicadores discretos no canto. */
.stage-arrow-controls{display:flex;gap:6px;align-items:center}
.stage-arrow-controls[hidden]{display:none !important}
.stage-arrow-controls button{font-size:24px;padding:4px 17px;min-width:52px;cursor:pointer}
.projector-nav-message{position:absolute;top:11vh;right:4vw;max-width:33vw;color:#fff;background:#542e28e8;border-radius:9px;padding:12px 18px;font:14px/1.45 sans-serif;z-index:6}
.projector-nav-message:empty{display:none}
.harp-search-card{display:grid;gap:14px}
.harp-search-card label{display:grid;gap:8px;font-weight:700;font-size:12px;color:#42536b}
.harp-pager{display:flex;gap:18px;align-items:center;justify-content:space-between;color:#65738a;font-size:12px;flex-wrap:wrap}
.harp-page-controls{display:flex;align-items:center;gap:12px}
.harp-page-controls button:disabled{opacity:.4;cursor:not-allowed}


/* SC13.1 - Harpa legivel sem rolagem + setas operacionais no proprio telao. */
.projector-screen.is-hymn .stage,
.projector-screen.is-verse .stage {
  width: min(84vw, 1440px);
  max-width: 84vw;
  max-height: none;
  min-height: 0;
}
.projector-screen.is-hymn .stage-emblem,
.projector-screen.is-verse .stage-emblem {font-size:clamp(25px,3vw,47px);margin-bottom:1.2vh;line-height:1}
.projector-screen.is-hymn .stage-eyebrow,
.projector-screen.is-verse .stage-eyebrow {font-size:clamp(12px,1.2vw,19px);margin-bottom:1.5vh;line-height:1.35;letter-spacing:.22em}
.projector-screen.is-hymn .stage-title {
  font-size:clamp(24px,3vw,50px);line-height:1.12;
  margin-bottom:0;max-width:78vw
}
.projector-screen.is-hymn .stage-body {
  font-size:clamp(24px,3.3vw,55px);line-height:1.22;
  max-height:none;overflow:visible;margin:2vh auto 0;
  padding:0;max-width:76vw;white-space:pre-line;
  overflow-wrap:break-word;word-break:normal;
}
.projector-screen.is-verse .stage-body {
  font-size:clamp(34px,4.3vw,78px);line-height:1.24;
  max-height:none;overflow:visible;margin:2vh auto 0;
  padding:0;max-width:76vw;
  overflow-wrap:break-word;word-break:normal;
}
.projector-screen.is-verse .stage-credit {font-size:clamp(10px,.85vw,14px);margin-top:2vh}
.stage-arrow-controls {
  position:absolute;z-index:9;left:1.6vw;right:1.6vw;top:50%;transform:translateY(-50%);
  display:flex;justify-content:space-between;align-items:center;
  pointer-events:none;
}
.stage-arrow-controls[hidden]{display:none!important}
.stage-arrow-controls button {
  display:flex;flex-direction:column;gap:2px;align-items:center;justify-content:center;
  min-width:76px;min-height:82px;padding:9px 12px;
  border:1px solid rgba(218,189,130,.65);border-radius:14px;
  background:rgba(10,24,45,.88);color:#fff;
  opacity:.78;box-shadow:0 9px 35px rgba(0,0,0,.24);
  pointer-events:auto;cursor:pointer;touch-action:manipulation;
  transition:opacity .16s,background .16s,transform .16s;
  font-size:20px;
}
.stage-arrow-controls button span {font:400 41px/1 Georgia,serif;color:#edd3a0}
.stage-arrow-controls button small {font:650 11px/1.25 sans-serif;letter-spacing:.2px}
.stage-arrow-controls button:hover,
.stage-arrow-controls button:focus-visible {opacity:1;background:#203955;transform:scale(1.04);outline:2px solid #e6c989;outline-offset:2px}
.stage-arrow-controls button:disabled {opacity:.28;cursor:not-allowed;transform:none}
.projector-screen.is-hymn .projector-controls,
.projector-screen.is-verse .projector-controls {opacity:.52}
.projector-screen.is-hymn .projector-controls:hover,
.projector-screen.is-verse .projector-controls:hover {opacity:1}
.projector-nav-message {top:13vh;left:50%;right:auto;transform:translateX(-50%);max-width:min(650px,78vw);text-align:center}
@media(max-width:800px){
  .stage-arrow-controls {left:.7vw;right:.7vw}
  .stage-arrow-controls button {min-width:42px;min-height:54px;padding:6px;border-radius:9px}
  .stage-arrow-controls button span {font-size:30px}
  .stage-arrow-controls button small {font-size:9px}
  .projector-screen.is-hymn .stage-body,.projector-screen.is-verse .stage-body{max-width:79vw}
}

/* SC14: louvores com pesquisa oficial YouTube, sem copiar links */
.youtube-search-card{border-top:3px solid var(--gold);padding-top:22px}
.youtube-search-form{margin-top:23px}
.youtube-search-form label,.youtube-config-form label{display:block;color:#4b5870;font-size:11px;font-weight:750;margin-bottom:9px}
.youtube-search-row{display:flex;align-items:center;gap:10px}
.youtube-search-row input{flex:1;min-width:0}
.youtube-search-row .btn{flex:0 0 auto}
.youtube-help{color:#8490a0;font-size:11px;line-height:1.65;margin:12px 0}
.youtube-settings{border-top:1px solid #e6e9ef;margin-top:20px;padding-top:15px;color:#53657b;font-size:12px}
.youtube-settings summary,.youtube-manual-entry summary{cursor:pointer;color:#365170;font-size:12px;font-weight:750}
.youtube-settings p{margin:15px 0;line-height:1.6}
.youtube-settings .youtube-config-form{margin-top:14px}
.youtube-status-ready{background:#f4faf5;color:#437355;border-color:#dae9da}
.youtube-result-section{margin-top:17px}
.youtube-result-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.youtube-video-card{display:flex;align-items:flex-start;gap:13px;padding:15px;background:#fff;border:1px solid var(--line);border-radius:12px;min-width:0}
.youtube-video-card img{flex:0 0 120px;width:120px;height:75px;object-fit:cover;border-radius:8px;background:#eef1f5}
.youtube-video-detail{min-width:0;display:flex;flex-direction:column;gap:7px;flex:1}
.youtube-video-detail strong{font-size:12px;line-height:1.45;color:#1a2e47;overflow-wrap:anywhere}
.youtube-video-detail small{font-size:10px;line-height:1.45;color:#78869a}
.youtube-video-actions{display:flex;flex-wrap:wrap;gap:5px;margin-top:3px}
.youtube-video-actions .btn{font-size:10px;min-height:31px;padding:6px 9px}
.youtube-preview-frame{margin-top:15px;width:100%;aspect-ratio:16/9;border-radius:12px;overflow:hidden;background:#091525}
.youtube-preview-frame iframe{border:0;width:100%;height:100%;display:block}
.youtube-manual-entry{margin-top:20px}
@media(max-width:1250px){.youtube-result-grid{grid-template-columns:1fr}}
@media(max-width:750px){.youtube-search-row{flex-direction:column;align-items:stretch}.youtube-video-card img{width:100px;height:70px;flex-basis:100px}.youtube-video-actions{gap:5px}}

/* SC141: aniversario brasileiro sem digitacao manual de data */
.birthday-date-fields{display:grid;grid-template-columns:minmax(80px,1fr) minmax(120px,1.65fr);gap:10px;width:100%;}
.birthday-date-fields select{min-width:0;width:100%;cursor:pointer;background-color:#fbfcfd;}
.birthday-date-fields select:invalid{color:#8995a5;}
@media(max-width:430px){.birthday-date-fields{grid-template-columns:minmax(76px,1fr) minmax(105px,1.45fr);gap:8px;}}

/* Semear Cultos V1.4.2 R2 - identidade oficial enviada pela igreja */
:root{--navy:#0e2140;--navy-deep:#071b32;--gold:#d1a03c;--gold-light:#f8ecd0;--paper:#f7f5f1;--ink:#12263f;--muted:#69798d;--line:#e9e4dc}
.official-logo{display:block;max-width:100%;height:auto;object-fit:contain}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
/* Brand presentation: exact logo silhouette; reverse lettering only on navy. */
.sidebar{background:linear-gradient(180deg,#071b32 0%,#091d38 59%,#08213c 100%);border-right:1px solid #17334e}
.logo-line-official{display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 2px 22px;margin:0 0 12px;border-bottom:1px solid rgba(214,169,73,.32)}
.official-logo-sidebar{width:198px;height:101px;object-fit:contain;filter:drop-shadow(0 4px 8px rgba(0,0,0,.16))}
.official-sidebar-caption{font-size:10px;letter-spacing:3px;font-weight:750;color:#e5ba60;text-align:center;margin-top:-8px}
.sidebar-label{color:#839bb7}
.nav-item.active{background:linear-gradient(120deg,#1e3d60,#20334d);box-shadow:inset 3px 0 #e9bc61,0 8px 20px #00000012;color:#fff}
.nav-icon{color:#e5b65a}
.sidebar-verse{border-top-color:#416182;color:#e2e9f2}
.topbar{border-bottom-color:#ddcb9c;background:rgba(255,254,252,.92)}
.section-intro{position:relative;overflow:visible;padding-right:9%;z-index:0}
.section-intro::after{content:"";position:absolute;right:0;top:-30px;width:125px;height:162px;background:url('/static/brand/semear-trigo.webp?v=1.4.2-r2') center/contain no-repeat;opacity:.17;z-index:-1;pointer-events:none}
.section-intro h1{color:#10243e}
.hero-card.dark{background:linear-gradient(115deg,#0d2649,#1b395b 100%)}
.hero-card.dark::after{content:"";position:absolute;right:4%;top:15%;width:95px;height:160px;background:url('/static/brand/semear-trigo.webp?v=1.4.2-r2') center/contain no-repeat;opacity:.32;pointer-events:none}
.hero-card.light{background:linear-gradient(120deg,#fff,#fffcf5);border-color:#eadfc7}
.hero-card .hero-title{position:relative;z-index:1}
.mini-projection-art{position:relative;background:radial-gradient(ellipse at 45% 20%,#24456b,#0a1f3c 84%);border-color:#486184}
.mini-projection-art::after{content:"";position:absolute;bottom:0;right:0;width:55px;height:82px;background:url('/static/brand/semear-trigo.webp?v=1.4.2-r2') center/contain no-repeat;opacity:.65;pointer-events:none}
.mini-projector{border:1px solid rgba(207,166,76,.35)}
.live-sidebar{background:#fffefc}
.live-liturgy-card{border-color:#e8ddc4;background:linear-gradient(160deg,#fff,#fffdf9)}
.panel-card{box-shadow:0 11px 40px rgba(9,33,65,.045)}
.btn-primary{background:linear-gradient(135deg,#0d2c52,#0a2141);border-color:#b88c32aa}
.btn-primary:hover{background:linear-gradient(135deg,#21466d,#113358)}
.btn:focus-visible,.nav-item:focus-visible{outline:3px solid #dfb351;outline-offset:2px}
.official-identity-card{display:grid;grid-template-columns:minmax(180px,1fr) 1.5fr;align-items:center;gap:24px;background:linear-gradient(130deg,#fff,#fffcf5);border-color:#eadfc7}
.official-identity-preview{padding:17px;background:#fcf9f3;border-radius:13px;border:1px solid #f1e9d9;display:flex;align-items:center;justify-content:center;min-height:142px}
.official-identity-preview img{max-width:300px;width:100%;height:auto;max-height:160px}
.official-identity-card h2{font:400 24px/1.2 Georgia,serif;margin:7px 0 8px}
.official-identity-card p{max-width:450px;margin:0 0 10px}
.official-identity-motto{font:italic 15px/1.5 Georgia,serif;color:#986d26}
/* Login redesigned to light ivory without changing its existing password-only login form. */
.auth-body{color:#142d4a;background:radial-gradient(ellipse at 50% 18%,#ffffff 5%,transparent 60%),linear-gradient(145deg,#ece5da 0%,#faf7f0 45%,#ecddc4 100%);overflow:auto;min-height:100vh}
.auth-glow{width:480px;height:580px;right:-140px;bottom:-140px;border:0;border-radius:0;box-shadow:none;background:url('/static/brand/semear-trigo.webp?v=1.4.2-r2') center/contain no-repeat;opacity:.15;transform:rotate(-17deg)}
.login-shell{width:min(100%,600px);padding:26px 24px 22px;margin:auto}
.brand-semeared{display:flex;flex-direction:column;align-items:center;gap:2px;text-align:center;margin:0 0 18px}
.official-logo-login{width:min(100%,365px);height:170px;object-fit:contain;filter:drop-shadow(0 9px 20px rgba(9,25,50,.06))}
.brand-login-caption strong{display:block;color:#986c24;font-size:16px;letter-spacing:5px}
.brand-login-caption small{display:block;color:#50657c;font-size:10px;letter-spacing:2px;margin-top:8px}
.login-card{background:#fffdfa;border:1px solid #ecddbc;border-top:3px solid #d7ab57;box-shadow:0 28px 84px rgba(28,45,61,.13);border-radius:20px;padding:30px 35px 25px;color:#152b47}
.login-card h1{font:400 35px/1.18 Georgia,serif;letter-spacing:-1.4px;margin:12px 0 11px}
.login-card p{margin-bottom:17px}
.login-card .form-stack{gap:15px}
.login-card .btn-primary{min-height:49px;font-size:14px}
.login-card .mini{margin:18px 0 0}
.auth-footer{color:#59738c;text-align:center;letter-spacing:1.3px;font-size:9px;line-height:1.6;padding-top:18px}
/* Projector: faithful reversed logo on navy, wheat decoration avoids scriptures and hymns. */
.projector-screen{background:radial-gradient(ellipse at 50% 24%,#20446b 0%,#0c284a 54%,#081c37 100%)}
.stage-official-logo{display:block;width:clamp(105px,13vw,185px);height:auto;max-height:82px;object-fit:contain;object-position:left center;filter:drop-shadow(0 2px 10px rgba(0,0,0,.18))}
.stage-brand{min-width:0}
.projector-screen:not(.is-verse):not(.is-hymn):not(.is-video):not(.is-black) .stage-official-logo{width:clamp(160px,20vw,300px);max-height:140px}
.stage-footer{bottom:2.8vh}
.projector-screen:not(.is-verse):not(.is-hymn):not(.is-video):not(.is-black) .stage-brand{position:fixed;top:4.7vh;left:5.1vw;z-index:5}
.projector-screen:not(.is-verse):not(.is-hymn):not(.is-video):not(.is-black)::after{content:"";position:absolute;bottom:-1vh;right:-2vw;width:clamp(115px,20vw,330px);height:clamp(180px,43vh,410px);background:url('/static/brand/semear-trigo.webp?v=1.4.2-r2') center/contain no-repeat;opacity:.44;pointer-events:none;z-index:0}
.stage-emblem{font-size:0!important;width:clamp(28px,3.7vw,55px);height:clamp(44px,5.8vw,75px);margin-bottom:2vh;background:url('/static/brand/semear-trigo.webp?v=1.4.2-r2') center/contain no-repeat;opacity:.83}
.projector-screen.is-video .stage-emblem{display:none}
.projector-screen.is-hymn .stage-emblem,.projector-screen.is-verse .stage-emblem{height:clamp(30px,4vw,53px);margin-bottom:1.2vh}
.projector-screen.is-video .stage-official-logo{opacity:.45}
@media(max-width:900px){.official-logo-sidebar{width:160px;height:85px}.official-sidebar-caption{font-size:9px;letter-spacing:2px}.official-identity-card{grid-template-columns:1fr}.section-intro::after{opacity:.1}.stage-official-logo{max-height:68px}}
@media(max-width:750px){.login-shell{padding:18px}.official-logo-login{height:135px}.login-card{padding:24px 21px}.login-card h1{font-size:29px}.official-logo-sidebar{width:135px;height:73px}.logo-line-official{align-items:flex-start}.official-sidebar-caption{font-size:8px;letter-spacing:1.5px}.stage-official-logo{width:110px;max-height:56px}.projector-screen:not(.is-verse):not(.is-hymn):not(.is-video):not(.is-black)::after{opacity:.25}}
@media(prefers-reduced-motion:reduce){.nav-item,.btn,.quick-card{transition:none!important}}
