*{box-sizing:border-box}
[hidden]{display:none!important}
body{
 margin:0;background:#101b2e;color:#fff;
 font-family:Arial,sans-serif
}
header{
 text-align:center;padding:18px 10px;
 border-bottom:1px solid #34445b;background:#142239
}
.brand{font-size:26px;font-weight:bold;color:#e7c77f}
header small{color:#c8d2e0}
main{max-width:1600px;margin:auto;padding:12px}
button,input,select{
 font:inherit;border-radius:8px;padding:12px;
 border:1px solid #64748b;min-height:44px
}
button{background:#d9b978;color:#172234;cursor:pointer;font-weight:bold}
button:disabled{opacity:.5}
input,select{background:#fff;color:#172234}
a{color:#e7c77f}
.welcome{
 max-width:460px;margin:25px auto;text-align:center;
 background:#1b2b43;padding:25px;border-radius:15px
}
.welcome input,.welcome button{
 display:block;width:100%;margin:12px 0
}
.cross{font-size:65px;color:#e7c77f}
#status{text-align:center;padding:8px;color:#e7c77f}
.meetingbar,nav,.selectors,#controls{
 display:flex;flex-wrap:wrap;gap:8px;
 align-items:center;justify-content:center;margin:10px 0
}
.workspace{display:grid;gap:12px}
.workspace.split{grid-template-columns:1fr 1fr}
.workspace.gallery{grid-template-columns:1fr}
.workspace.gallery #bible{display:none}
.workspace.fullbible{grid-template-columns:1fr}
.workspace.fullbible #videos{display:none}
.video-grid{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
 gap:6px
}
.gallery .video-grid{
 grid-template-columns:repeat(5,minmax(0,1fr))
}
.tile{
 position:relative;aspect-ratio:16/10;
 background:#273b56;border-radius:9px;
 overflow:hidden;display:flex;align-items:center;
 justify-content:center
}
.tile video{width:100%;height:100%;object-fit:cover}
.tile .person{
 position:absolute;bottom:0;left:0;right:0;
 padding:5px;background:#0009;font-size:12px
}
.tile.speaking{outline:2px solid #d9b978}
.tile .avatar{font-size:30px;color:#e7c77f}
#bible{
 background:#fff9eb;color:#253047;padding:18px;
 border-radius:12px;max-height:72vh;overflow:auto
}
.bible-title{color:#8d6b2e;font-weight:bold}
#passage{font-family:Georgia,serif;font-size:19px;line-height:1.7}
#passage p{margin:8px 0}
#passage .selected{background:#f2dfa6;padding:5px}
#passage sup{color:#96702f;font-weight:bold}
.selectors select{max-width:100%;min-width:65px}
#controls{position:sticky;bottom:0;background:#101b2e;padding:10px;z-index:5}
.danger{background:#b83b3b;color:white}
#chatPanel{padding:15px;background:#1b2b43;border-radius:10px}
#messages{height:180px;overflow:auto;padding:8px;background:#101b2e}
#message{width:100%;margin:10px 0}
@media(max-width:750px){
 .workspace.split{grid-template-columns:1fr}
 .video-grid,.gallery .video-grid{
  grid-template-columns:repeat(3,minmax(0,1fr))
 }
 .split .tile{aspect-ratio:16/10}
 #bible{max-height:48vh;padding:12px}
 #passage{font-size:17px}
 header small{font-size:11px}
 button{font-size:13px;padding:9px}
}

.bible-search {
 display:flex;
 flex-wrap:wrap;
 gap:6px;
 margin:12px 0;
}
.bible-search input {
 flex:1;
 min-width:150px;
 width:100%;
}
#searchSummary {
 color:#85632b;
 font-size:13px;
 margin:8px 0;
}
#searchResults {
 max-height:320px;
 overflow-y:auto;
 border:1px solid #d8c69e;
 border-radius:8px;
 margin-bottom:12px;
 padding:6px;
}
.scripture-result {
 display:block;
 width:100%;
 text-align:left;
 background:#fffdf6;
 color:#253047;
 border:1px solid #dfd3b9;
 margin:5px 0;
 padding:10px;
 font-weight:normal;
}
.scripture-result strong {
 display:block;
 color:#8d6b2e;
 margin-bottom:5px;
}
.scripture-result span {
 display:block;
 font-family:Georgia,serif;
 line-height:1.5;
}
.scripture-result:hover {
 background:#f2dfa6;
}

#mic.mic-active {
 background:#238447;
 color:white;
}
#mic.mic-muted {
 background:#b82f35;
 color:white;
}
.mic-indicator {
 position:absolute;
 top:5px;
 right:5px;
 padding:4px 6px;
 border-radius:5px;
 background:#238447;
 color:white;
 font-size:10px;
 font-weight:bold;
 z-index:3;
}
.mic-indicator.muted {
 background:#b82f35;
}

#gtChatPanel[hidden] {
 display:none !important;
}
#gtChatPanel {
 position:fixed;
 right:15px;
 bottom:85px;
 width:420px;
 max-width:calc(100vw - 30px);
 max-height:calc(100dvh - 110px);
 box-sizing:border-box;
 overflow:auto;
 background:#17263c;
 color:white;
 border:2px solid #d9b978;
 border-radius:12px;
 padding:14px;
 z-index:99999;
 box-shadow:0 8px 30px #0008;
}
.gt-chat-header {
 display:flex;
 justify-content:space-between;
 align-items:center;
 gap:8px;
 margin-bottom:12px;
 color:#e7c77f;
}
#gtChatMessages {
 height:260px;
 max-height:35dvh;
 overflow-y:auto;
 background:#101c2d;
 border-radius:8px;
 padding:10px;
 margin-bottom:10px;
}
.gt-chat-welcome {
 color:#d9b978;
 text-align:center;
 padding:15px;
}
.gt-message {
 padding:10px;
 margin-bottom:8px;
 background:#263951;
 border-radius:7px;
 overflow-wrap:anywhere;
}
.gt-message strong {
 color:#e7c77f;
 display:block;
}
.gt-message small {
 color:#b7c1d1;
 display:block;
 margin-bottom:5px;
}
.gt-message div {
 white-space:pre-wrap;
}
.gt-prayer {
 background:#493c24;
 border-left:4px solid #e7c77f;
}
#gtChatInput {
 width:100%;
 box-sizing:border-box;
 resize:vertical;
 background:white;
 color:#17263c;
 padding:10px;
 border-radius:7px;
 font-size:16px;
}
.gt-chat-actions {
 display:flex;
 flex-wrap:wrap;
 gap:8px;
 margin-top:8px;
}
.gt-chat-actions button {
 flex:1;
 background:#d9b978;
 color:#17263c;
}
#gtChatStatus {
 color:#e7c77f;
 font-size:12px;
 margin-top:8px;
}
@media(max-width:600px) {
 #gtChatPanel {
  left:8px;
  right:8px;
  bottom:90px;
  width:auto;
  max-width:none;
 }
}

#gtDownloadApp {
 margin:20px 0 8px;
 padding-top:18px;
 border-top:1px solid #ffffff30;
 text-align:center;
}
#gtDownloadApp .gt-download-button {
 display:block;
 padding:14px 20px;
 background:#d9b978;
 color:#142239;
 border:1px solid #e7c77f;
 border-radius:8px;
 text-decoration:none;
 font-size:17px;
 font-weight:bold;
 box-sizing:border-box;
}
#gtDownloadApp .gt-download-button:hover {
 background:#f0d596;
}
#gtDownloadApp p {
 color:#e7c77f;
 font-size:13px;
 margin:10px 0 5px;
}
#gtDownloadApp small {
 color:#c4cddd;
 font-size:12px;
}

.leader-option{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:8px!important;padding:8px!important;margin:10px 0!important;font-size:14px!important;background:transparent!important}.leader-option input#leaderCheck{appearance:auto!important;width:18px!important;height:18px!important;min-width:18px!important;min-height:18px!important;padding:0!important;margin:0!important;flex:0 0 18px!important;accent-color:#d9b978}.leader-option span{font-size:14px!important;font-weight:normal!important}

.leader-option {
 display:flex;
 align-items:center;
 gap:8px;
 font-size:14px;
}
#leaderCheck {
 width:18px!important;
 height:18px!important;
 min-width:18px!important;
 padding:0!important;
 flex:0 0 18px!important;
}
.gt-leader-tile {
 border:3px solid #d9b978!important;
}
.gt-leader-tile .person {
 background:#d9b978!important;
 color:#142239!important;
 font-weight:bold;
}
#leaderPasswordBox[hidden] {
 display:none!important;
}

#leaderPasswordBox{display:none!important}

/* FAST SCRIPTURE DISPLAY */
.gt-current-scripture,
.verse.selected,
.verse.highlighted {
 background:rgba(217,185,120,.22)!important;
 border-left:4px solid #d9b978!important;
 scroll-margin-top:25px;
 scroll-margin-bottom:25px;
}
#passage {
 scroll-behavior:auto!important;
}

/* GT_LEADER_LAYOUT_V1 */

* {
 box-sizing:border-box;
}

#grid {
 min-width:0;
 align-content:start;
}

#grid:has(.gt-leader-tile) {
 display:grid!important;
 grid-template-columns:repeat(3,minmax(0,1fr))!important;
 gap:7px!important;
}

#grid .tile {
 min-width:0;
 min-height:0;
 overflow:hidden;
 aspect-ratio:16/10;
}

#grid .gt-leader-tile {
 order:-100!important;
 grid-column:1/-1!important;
 aspect-ratio:16/9!important;
 width:100%!important;
 max-height:48vh;
 border:3px solid #d9b978!important;
}

#grid .tile video {
 width:100%!important;
 height:100%!important;
 object-fit:contain!important;
}

#grid .person {
 overflow:hidden;
 text-overflow:ellipsis;
 white-space:nowrap;
 max-width:100%;
}

#grid .gt-leader-tile .person {
 font-size:15px!important;
 background:#d9b978!important;
 color:#142239!important;
}

@media(max-width:760px) {

 html,body {
  width:100%;
  max-width:100%;
  overflow-x:hidden;
 }

 #meeting {
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  padding-bottom:85px!important;
 }

 #workspace {
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  grid-template-columns:minmax(0,1fr)!important;
  height:auto!important;
  max-height:none!important;
  overflow:visible!important;
 }

 #workspace > * {
  min-width:0!important;
  max-width:100%!important;
 }

 #grid {
  width:100%!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:5px!important;
  padding:4px!important;
  max-height:48dvh;
  overflow-y:auto;
 }

 #grid .gt-leader-tile {
  max-height:29dvh!important;
 }

 #grid .tile:not(.gt-leader-tile) {
  aspect-ratio:4/3!important;
 }

 #grid .tile:not(.gt-leader-tile) .person {
  font-size:11px!important;
 }

 #passage {
  min-width:0!important;
  width:100%!important;
  max-height:45dvh;
  overflow-y:auto!important;
  font-size:17px!important;
  line-height:1.65!important;
  overflow-wrap:anywhere;
 }

 #book,#chapter,#verse,#bibleSearch {
  min-width:0!important;
  max-width:100%!important;
  font-size:16px!important;
 }

 #controls {
  position:fixed!important;
  bottom:0!important;
  left:0!important;
  right:0!important;
  width:100%!important;
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:4px!important;
  padding:8px 5px!important;
  padding-bottom:calc(8px + env(safe-area-inset-bottom))!important;
  background:#101b2d!important;
  z-index:1000!important;
 }

 #controls button {
  min-width:0!important;
  width:100%!important;
  font-size:11px!important;
  padding:10px 3px!important;
  white-space:normal!important;
  min-height:44px;
 }

 #gtChatPanel {
  max-width:calc(100vw - 16px)!important;
 }

 #gtPoweredBy {
  font-size:11px!important;
 }

}

@media(max-width:760px) and (orientation:landscape) {
 #grid .gt-leader-tile {
  max-height:42dvh!important;
 }
}

/* GT WELCOME MUSIC */
#gtMusicPanel {
 background:#142239;
 border:1px solid #d9b978;
 border-radius:10px;
 padding:10px;
 margin:10px;
 color:#ffffff;
 font-size:13px;
}
#gtMusicPanel[hidden],
#gtMusicLeader[hidden],
#gtMusicListen[hidden] {
 display:none!important;
}
.gt-music-title {
 color:#e7c77f;
 font-weight:bold;
 margin-bottom:5px;
}
#gtMusicStatus {
 color:#d9b978;
 margin-bottom:8px;
}
#gtMusicLeader {
 display:flex;
 flex-wrap:wrap;
 gap:5px;
 margin-bottom:8px;
}
#gtMusicPanel button {
 padding:8px 12px;
 border-radius:6px;
 font-size:12px;
}
#gtMusicStart {
 background:#28613d;
 color:white;
}
#gtMusicStop {
 background:#853737;
 color:white;
}
#gtStudyStart {
 background:#d9b978;
 color:#142239;
 font-weight:bold;
}
.gt-music-volume {
 display:flex;
 align-items:center;
 gap:8px;
}
#gtMusicVolume {
 flex:1;
 min-width:0;
 max-width:150px;
 accent-color:#d9b978;
}
@media(max-width:760px) {
 #gtMusicPanel {
  margin:5px;
  padding:8px;
 }
 #gtMusicLeader button {
  flex:1;
 }
}

/* GT MANUAL SCRIPTURE SHOW */

#gtShowScripture {
 background:#d9b978!important;
 color:#142239!important;
 font-size:15px!important;
 font-weight:800!important;
 border:1px solid #e7c77f!important;
 border-radius:7px!important;
 padding:10px 18px!important;
 min-height:44px;
 cursor:pointer;
}

#gtShowScripture:hover {
 background:#f0d596!important;
}

#gtShowScripture[hidden],
#gtShowStatus[hidden] {
 display:none!important;
}

#gtShowStatus {
 color:#e7c77f;
 font-size:12px;
 padding:5px;
 overflow-wrap:anywhere;
}

@media(max-width:760px) {
 #gtShowScripture {
  font-size:13px!important;
  padding:8px 12px!important;
 }
}
