:root {
  --gold: #C9A84C;
  --gold-light: #F0D898;
  --gold-dark: #A07820;
  --deep: #080810;
  --text: #FFFFFF;
  --text-dim: #E8E0CC;
  --text-muted: #C0B898;
  --ot-border: #A07830;
  --ot-accent: #D4A040;
  --ot-text: #FFFFFF;
  --ot-dim: #F0C870;
  --nt-border: #2A50A0;
  --nt-accent: #5A90E0;
  --nt-text: #FFFFFF;
  --nt-dim: #90C0F8;
  --reject-border: #6A2828;
  --reject-text: #FFB8A8;
  --bridge-border: #6A9060;
  --bridge-accent: #90C880;
  --bridge-text: #C8F0B8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--deep);
  color: var(--text);
  font-family: 'EB Garamond', serif;
  font-size: 15px;
  line-height: 1.65;
}

.page { max-width: 1300px; margin: 0 auto; padding: 60px 24px 140px; }

/* PASSWORD OVERLAY */
#password-overlay {
  position: fixed;
  inset: 0;
  background: var(--deep);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

#pw-box {
  text-align: center;
  padding: 48px 40px;
  border: 1px solid rgba(201,168,76,0.3);
  background: #0F0E10;
  max-width: 380px;
  width: 100%;
}

.pw-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 9px;
  letter-spacing: 5px;
  color: var(--gold-dark);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.pw-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 12px;
}

.pw-rule {
  width: 120px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  margin: 0 auto 20px;
}

.pw-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

#pw-input {
  font-family: 'EB Garamond', serif;
  font-size: 15px;
  background: #080810;
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--gold-light);
  padding: 8px 16px;
  outline: none;
  border-radius: 1px;
  width: 100%;
  margin-bottom: 12px;
  text-align: center;
  letter-spacing: 3px;
}

#pw-input:focus { border-color: rgba(201,168,76,0.6); }

.pw-btn {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 9px 28px;
  border: 1px solid rgba(201,168,76,0.4);
  background: rgba(201,168,76,0.1);
  color: var(--gold-light);
  cursor: pointer;
  border-radius: 1px;
  transition: background 0.15s;
}

.pw-btn:hover { background: rgba(201,168,76,0.25); }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%  { transform: translateX(-12px); }
  40%  { transform: translateX(10px); }
  60%  { transform: translateX(-8px); }
  80%  { transform: translateX(6px); }
}

.shake { animation: shake 0.5s ease-in-out; }

/* TITLE */
.title-block { text-align: center; margin-bottom: 50px; }
.title-eyebrow { font-family: 'Cinzel', serif; font-size: 10px; letter-spacing: 5px; color: var(--gold-dark); text-transform: uppercase; margin-bottom: 16px; }
.title-main { font-family: 'Cinzel Decorative', serif; font-size: clamp(20px, 3vw, 34px); font-weight: 700; color: var(--gold-light); line-height: 1.3; text-shadow: 0 0 80px rgba(201,168,76,0.3); margin-bottom: 16px; }
.title-rule { width: 220px; height: 1px; background: linear-gradient(to right, transparent, var(--gold), transparent); margin: 0 auto; }

/* FULL WIDTH NODES */
.full-node { display: flex; flex-direction: column; align-items: center; margin-bottom: 0; }

.node-apex {
  background: radial-gradient(ellipse at 50% 0%, rgba(201,168,76,0.18) 0%, transparent 70%), #0F0E08;
  border: 1.5px solid var(--gold); box-shadow: 0 0 70px rgba(201,168,76,0.18);
  width: 100%; max-width: 720px; text-align: center; padding: 24px 32px 20px; border-radius: 1px;
  animation: apexPulse 5s ease-in-out infinite;
}
@keyframes apexPulse {
  0%,100% { box-shadow: 0 0 60px rgba(201,168,76,0.15); }
  50% { box-shadow: 0 0 110px rgba(201,168,76,0.32); }
}

.node-logic {
  background: linear-gradient(135deg, #0C0C18 0%, #080810 100%);
  border: 1px solid rgba(201,168,76,0.25);
  width: 100%; max-width: 720px; padding: 20px 28px; border-radius: 1px; margin-bottom: 0;
}

.node-creation {
  background: radial-gradient(ellipse at 50% 100%, rgba(201,168,76,0.08) 0%, transparent 70%), #0F0E08;
  border: 1px solid rgba(201,168,76,0.45);
  width: 100%; max-width: 720px; text-align: center; padding: 20px 28px; border-radius: 1px;
}

.node-bridge {
  background: linear-gradient(135deg, #0A120A 0%, #080C08 100%);
  border: 1.5px solid var(--bridge-border); box-shadow: 0 0 30px rgba(144,200,128,0.08);
  width: 100%; max-width: 720px; text-align: center; padding: 20px 28px; border-radius: 1px;
}

/* LOGIC NODE INTERNALS */
.logic-label {
  font-family: 'Cinzel', serif;
  font-size: 9px;
  letter-spacing: 4px;
  color: var(--gold-dark);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.logic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.logic-footer {
  font-size: 12px;
  color: var(--text-dim);
  border-top: 1px solid rgba(201,168,76,0.12);
  padding-top: 10px;
}

/* CONNECTORS */
.conn-center { display: flex; justify-content: center; }
.conn-v { width: 2px; background: linear-gradient(to bottom, var(--gold-dark), var(--gold)); position: relative; flex-shrink: 0; }
.conn-v::after { content: '▼'; position: absolute; bottom: -9px; left: 50%; transform: translateX(-50%); color: var(--gold); font-size: 9px; }
.conn-h40 { height: 40px; } .conn-h28 { height: 28px; } .conn-h20 { height: 20px; }

/* SPLIT LEAD-IN */
.split-lead { display: flex; justify-content: center; width: 100%; margin-top: 0; }
.split-lead-inner { display: flex; width: 100%; }
.split-lead-ot, .split-lead-nt { flex: 1; display: flex; justify-content: center; }
.split-lead-gap { width: 32px; }
.split-lead-line { width: 2px; height: 36px; }
.split-lead-line-ot { background: linear-gradient(to bottom, var(--gold-dark), var(--ot-accent)); }
.split-lead-line-nt { background: linear-gradient(to bottom, var(--gold-dark), var(--nt-accent)); }

/* SPLIT LAYOUT */
.split-row { display: grid; grid-template-columns: 1fr 32px 1fr; width: 100%; align-items: stretch; }
.track-col { display: flex; flex-direction: column; align-items: stretch; }
.spine { display: flex; flex-direction: column; align-items: center; }
.spine-line { width: 1px; background: rgba(255,255,255,0.04); flex: 1; }

/* TRACK HEADERS */
.track-header { text-align: center; padding: 18px 22px 14px; border-radius: 1px; }
.th-ot { background: linear-gradient(135deg, #1E1608 0%, #141004 100%); border: 1.5px solid var(--ot-border); box-shadow: 0 0 30px rgba(212,160,64,0.08); }
.th-nt { background: linear-gradient(135deg, #080E1C 0%, #050A14 100%); border: 1.5px solid var(--nt-border); box-shadow: 0 0 30px rgba(90,144,224,0.08); }
.th-eyebrow { font-family: 'Cinzel', serif; font-size: 9px; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 5px; }
.th-title { font-family: 'Cinzel', serif; font-size: clamp(13px, 1.6vw, 17px); font-weight: 600; margin-bottom: 6px; }
.th-sub { font-size: 12px; }
.th-ot .th-eyebrow { color: var(--ot-dim); } .th-ot .th-title { color: var(--ot-text); } .th-ot .th-sub { color: var(--ot-dim); }
.th-nt .th-eyebrow { color: var(--nt-dim); } .th-nt .th-title { color: var(--nt-text); } .th-nt .th-sub { color: var(--nt-dim); }

/* TRACK CONNECTORS */
.tc-wrap-ot, .tc-wrap-nt { display: flex; justify-content: center; flex: 1; min-height: 20px; }
.tc-ot { width: 2px; background: linear-gradient(to bottom, var(--ot-border), var(--ot-accent)); position: relative; align-self: stretch; }
.tc-ot::after { content: '▼'; position: absolute; bottom: -9px; left: 50%; transform: translateX(-50%); color: var(--ot-accent); font-size: 9px; }
.tc-nt { width: 2px; background: linear-gradient(to bottom, var(--nt-border), var(--nt-accent)); position: relative; align-self: stretch; }
.tc-nt::after { content: '▼'; position: absolute; bottom: -9px; left: 50%; transform: translateX(-50%); color: var(--nt-accent); font-size: 9px; }

/* NODE BASE */
.node { border-radius: 1px; padding: 14px 18px; }
.node-ot { background: linear-gradient(135deg, #181208 0%, #100C04 100%); border: 1px solid var(--ot-border); }
.node-nt { background: linear-gradient(135deg, #060C1A 0%, #040810 100%); border: 1px solid var(--nt-border); }
.node-ot-primary { background: linear-gradient(135deg, #201808 0%, #181204 100%); border: 1.5px solid var(--ot-accent); box-shadow: 0 0 18px rgba(212,160,64,0.1); }
.node-nt-primary { background: linear-gradient(135deg, #060C1C 0%, #040A14 100%); border: 1.5px solid var(--nt-accent); box-shadow: 0 0 18px rgba(90,144,224,0.1); }

.node-num { font-family: 'Cinzel', serif; font-size: 9px; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 3px; }
.node-ot .node-num, .node-ot-primary .node-num { color: var(--ot-dim); }
.node-nt .node-num, .node-nt-primary .node-num { color: var(--nt-dim); }

.node-title { font-family: 'Cinzel', serif; font-size: clamp(11px, 1.3vw, 14px); font-weight: 600; line-height: 1.3; margin-bottom: 5px; }
.node-ot .node-title, .node-ot-primary .node-title { color: var(--ot-text); }
.node-nt .node-title, .node-nt-primary .node-title { color: var(--nt-text); }

.node-verse { font-size: 12px; margin-bottom: 4px; }
.node-ot .node-verse, .node-ot-primary .node-verse { color: var(--ot-dim); }
.node-nt .node-verse, .node-nt-primary .node-verse { color: var(--nt-dim); }

.node-body { font-size: 12px; line-height: 1.6; color: var(--text); }

/* TRACK GAP */
.track-gap { height: 18px; }

/* TAGS / VERSE BUTTONS */
.tags { margin-top: 7px; display: flex; flex-wrap: wrap; gap: 4px; }
a.vtag { font-family: 'Cinzel', serif; font-size: 9px; padding: 2px 8px; text-decoration: none; border-radius: 1px; cursor: pointer; display: inline-block; transition: opacity 0.15s, transform 0.1s; }
a.vtag:hover { opacity: 0.8; transform: translateY(-1px); }
.vtag-gold { background: rgba(201,168,76,0.15); border: 1px solid rgba(201,168,76,0.4); color: var(--gold-light); }
.vtag-ot { background: rgba(212,160,64,0.15); border: 1px solid rgba(212,160,64,0.4); color: var(--ot-text); }
.vtag-nt { background: rgba(90,144,224,0.15); border: 1px solid rgba(90,144,224,0.4); color: var(--nt-text); }
.vtag-bridge { background: rgba(144,200,128,0.12); border: 1px solid rgba(144,200,128,0.35); color: var(--bridge-text); }

/* POPOVER BUTTON */
.pop-btn { font-family: 'Cinzel', serif; font-size: 9px; padding: 3px 10px; border-radius: 1px; cursor: pointer; display: inline-block; margin-top: 8px; transition: opacity 0.15s; border: none; }
.pop-btn-ot { background: rgba(212,160,64,0.15); border: 1px solid rgba(212,160,64,0.4); color: var(--ot-dim); }
.pop-btn-nt { background: rgba(90,144,224,0.15); border: 1px solid rgba(90,144,224,0.4); color: var(--nt-dim); }
.pop-btn:hover { opacity: 0.8; }

/* FLOATING OVERLAY */
.overlay-bg { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.75); z-index: 200; align-items: center; justify-content: center; padding: 20px; }
.overlay-bg.active { display: flex; }
.overlay-card { background: #0F0E14; border: 1px solid rgba(201,168,76,0.35); max-width: 760px; width: 100%; max-height: 85vh; overflow-y: auto; padding: 28px 32px; border-radius: 2px; position: relative; }
.overlay-close { position: absolute; top: 14px; right: 18px; cursor: pointer; font-family: 'Cinzel', serif; font-size: 11px; color: var(--gold-dark); letter-spacing: 2px; background: none; border: none; }
.overlay-close:hover { color: var(--gold-light); }
.overlay-title { font-family: 'Cinzel', serif; font-size: 14px; font-weight: 600; color: var(--gold-light); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid rgba(201,168,76,0.2); }
.overlay-body { font-size: 13px; line-height: 1.7; color: var(--text); }
.overlay-body h4 { font-family: 'Cinzel', serif; font-size: 11px; color: var(--gold-dim, #C0A060); margin: 14px 0 4px; letter-spacing: 1px; }
.overlay-body p { margin-bottom: 10px; }
.overlay-body table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 12px; }
.overlay-body th { font-family: 'Cinzel', serif; font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-dark); padding: 6px 8px; border-bottom: 1px solid rgba(201,168,76,0.2); text-align: left; }
.overlay-body td { padding: 6px 8px; border-bottom: 1px solid rgba(255,255,255,0.05); vertical-align: top; }
.overlay-body td:first-child { color: var(--gold-light); font-family: 'Cinzel', serif; font-size: 11px; white-space: nowrap; }

/* TABLES IN NODES */
.node-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 11px; }
.node-table th { font-family: 'Cinzel', serif; font-size: 9px; letter-spacing: 1px; text-transform: uppercase; padding: 5px 6px; border-bottom: 1px solid; text-align: left; }
.node-ot .node-table th, .node-ot-primary .node-table th { color: var(--ot-dim); border-color: rgba(212,160,64,0.2); }
.node-nt .node-table th, .node-nt-primary .node-table th { color: var(--nt-dim); border-color: rgba(90,144,224,0.2); }
.node-table td { padding: 5px 6px; border-bottom: 1px solid rgba(255,255,255,0.04); vertical-align: top; line-height: 1.5; }
.node-table td:first-child { font-family: 'Cinzel', serif; font-size: 10px; white-space: nowrap; padding-right: 10px; }
.node-ot .node-table td:first-child, .node-ot-primary .node-table td:first-child { color: var(--ot-dim); }
.node-nt .node-table td:first-child, .node-nt-primary .node-table td:first-child { color: var(--nt-dim); }

/* CMD GRID */
.cmd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 10px; }
.cmd-item { background: rgba(212,160,64,0.06); border: 1px solid rgba(212,160,64,0.18); padding: 7px 9px; }
.cmd-num { font-family: 'Cinzel', serif; font-size: 9px; letter-spacing: 2px; color: var(--ot-dim); margin-bottom: 2px; }
.cmd-name { font-family: 'Cinzel', serif; font-size: 10px; color: var(--ot-text); margin-bottom: 2px; line-height: 1.3; }
.cmd-body { font-size: 10px; color: var(--text); line-height: 1.4; }

/* SERMON GRID */
.sermon-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 10px; }
.sermon-item { background: rgba(90,144,224,0.06); border: 1px solid rgba(90,144,224,0.18); padding: 7px 9px; }
.sermon-num { font-family: 'Cinzel', serif; font-size: 9px; letter-spacing: 2px; color: var(--nt-dim); margin-bottom: 2px; }
.sermon-name { font-family: 'Cinzel', serif; font-size: 10px; color: var(--nt-text); margin-bottom: 2px; line-height: 1.3; }
.sermon-ref { font-size: 10px; color: var(--nt-dim); margin-bottom: 2px; }
.sermon-body { font-size: 10px; color: var(--text); line-height: 1.4; }

/* SAC GRID */
.sac-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 10px; }
.sac-item { padding: 9px 11px; border-radius: 1px; }
.sac-primary { background: rgba(90,144,224,0.1); border: 1.5px solid rgba(90,144,224,0.45); }
.sac-secondary { background: rgba(90,144,224,0.04); border: 1px solid rgba(90,144,224,0.2); }
.sac-name { font-family: 'Cinzel', serif; font-size: 11px; margin-bottom: 3px; }
.sac-primary .sac-name { color: var(--nt-text); } .sac-secondary .sac-name { color: #B0D0F8; }
.sac-ref { font-size: 10px; color: var(--nt-dim); margin-bottom: 2px; }
.sac-body { font-size: 10px; color: var(--text); line-height: 1.4; }
.sac-subtitle { font-size: 12px; color: var(--nt-dim); text-align: center; border-bottom: 1px solid rgba(90,144,224,0.2); padding-bottom: 8px; margin-bottom: 10px; }

/* PSALM LABELS */
.psalm-label { color: var(--ot-dim); font-family: 'Cinzel', serif; font-size: 10px; }

/* CONVERGENCE */
.converge-wrap { display: flex; justify-content: center; align-items: flex-start; width: 100%; }
.converge-arm-left { flex: 1; height: 2px; background: linear-gradient(to right, transparent 0%, var(--ot-accent) 60%, var(--gold) 100%); margin-top: 20px; }
.converge-arm-right { flex: 1; height: 2px; background: linear-gradient(to left, transparent 0%, var(--nt-accent) 60%, var(--gold) 100%); margin-top: 20px; }
.converge-drop { width: 2px; height: 40px; background: linear-gradient(to bottom, var(--gold), var(--gold-dark)); position: relative; flex-shrink: 0; }
.converge-drop::after { content: '▼'; position: absolute; bottom: -9px; left: 50%; transform: translateX(-50%); color: var(--gold); font-size: 9px; }

/* DANGER SECTION */
.danger-section { max-width: 860px; margin: 0 auto; background: linear-gradient(135deg, #14080A 0%, #0E0608 100%); border: 1px solid rgba(160,40,40,0.35); padding: 28px 32px; border-radius: 1px; }
.danger-title { font-family: 'Cinzel', serif; font-size: 13px; font-weight: 600; color: #E08080; margin-bottom: 8px; }
.danger-sub { font-family: 'Cinzel', serif; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: #904040; margin-bottom: 12px; }
.danger-intro { font-size: 13px; color: var(--text); margin-bottom: 20px; line-height: 1.65; }
.danger-h3 { font-family: 'Cinzel', serif; font-size: 11px; font-weight: 600; color: #D07070; margin-bottom: 10px; letter-spacing: 1px; }
.danger-body { font-size: 13px; color: var(--text); line-height: 1.65; margin-bottom: 16px; }
.danger-criterion { background: rgba(160,40,40,0.08); border: 1px solid rgba(160,40,40,0.25); padding: 12px 16px; margin-top: 14px; font-size: 13px; color: var(--text); }
.danger-divider { border: none; border-top: 1px solid rgba(160,40,40,0.2); margin: 20px 0; }

/* CLOSING */
.closing-wrap { max-width: 900px; margin: 0 auto; }
.closing-header { text-align: center; font-family: 'Cinzel', serif; font-size: 10px; letter-spacing: 4px; color: var(--gold-dark); text-transform: uppercase; margin-bottom: 18px; }
.closing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 34px; }
.closing-col { padding: 18px 20px; border-radius: 1px; }
.closing-ot { background: linear-gradient(135deg, #181208 0%, #100C04 100%); border: 1px solid var(--ot-border); }
.closing-nt { background: linear-gradient(135deg, #060C1A 0%, #040810 100%); border: 1px solid var(--nt-border); }
.closing-col-title { font-family: 'Cinzel', serif; font-size: 10px; letter-spacing: 3px; text-transform: uppercase; padding-bottom: 10px; border-bottom: 1px solid; margin-bottom: 12px; }
.closing-ot .closing-col-title { color: var(--ot-dim); border-color: rgba(212,160,64,0.2); }
.closing-nt .closing-col-title { color: var(--nt-dim); border-color: rgba(90,144,224,0.2); }
.cv-item { margin-bottom: 9px; padding-bottom: 9px; border-bottom: 1px solid; }
.closing-ot .cv-item { border-color: rgba(212,160,64,0.08); }
.closing-nt .cv-item { border-color: rgba(90,144,208,0.08); }
.cv-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.cv-ref { font-family: 'Cinzel', serif; font-size: 10px; letter-spacing: 0.5px; margin-bottom: 2px; }
.closing-ot .cv-ref { color: var(--ot-dim); }
.closing-nt .cv-ref { color: var(--nt-dim); }
.cv-text { font-size: 12px; line-height: 1.5; color: var(--text); }

/* FINAL NODE */
.final-wrap { display: flex; justify-content: center; }
.node-final { background: radial-gradient(ellipse at 50% 100%, rgba(201,168,76,0.14) 0%, transparent 70%), #0F0E08; border: 1.5px solid var(--gold); box-shadow: 0 0 70px rgba(201,168,76,0.18); max-width: 620px; width: 100%; text-align: center; padding: 28px 34px; animation: apexPulse 5s ease-in-out infinite 2.5s; }
.final-eyebrow { font-family: 'Cinzel', serif; font-size: 9px; letter-spacing: 4px; color: var(--gold-dark); text-transform: uppercase; margin-bottom: 12px; }
.final-verse { font-size: clamp(15px, 2vw, 20px); color: var(--gold-light); line-height: 1.55; margin-bottom: 12px; }
.final-ref { font-family: 'Cinzel', serif; font-size: 11px; color: var(--gold-dark); letter-spacing: 2px; margin-bottom: 12px; }

/* TRANSLATION BAR */
.translation-bar { background: linear-gradient(135deg, #0F0E08 0%, #0A0A14 100%); border: 1px solid rgba(201,168,76,0.3); border-radius: 2px; padding: 22px 30px; margin: 50px auto 0; max-width: 680px; text-align: center; }
.translation-bar-title { font-family: 'Cinzel', serif; font-size: 10px; letter-spacing: 4px; color: var(--gold-dark); text-transform: uppercase; margin-bottom: 12px; }
.translation-bar-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }
.translation-select-wrap { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.translation-label { font-family: 'Cinzel', serif; font-size: 12px; color: var(--gold-light); letter-spacing: 1px; }
select#versionSelect { font-family: 'EB Garamond', serif; font-size: 15px; background: #0F0E08; color: var(--gold-light); border: 1px solid rgba(201,168,76,0.4); padding: 7px 36px 7px 14px; border-radius: 1px; cursor: pointer; outline: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C9A84C' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
select#versionSelect option { background: #0F0E08; color: var(--gold-light); }

/* LOGIC ITEMS */
.logic-item { margin-bottom: 8px; }
.logic-item strong { color: var(--gold-light); font-family: 'Cinzel', serif; font-size: 11px; letter-spacing: 1px; }
.logic-desc { color: var(--text); font-size: 13px; display: inline; }

/* REJECT NODE */
.reject-node { background: #180C0C; border: 1px solid var(--reject-border); padding: 9px 18px; font-size: 12px; color: var(--reject-text); margin-top: 12px; display: inline-block; }

/* APEX TEXT */
.apex-eyebrow { font-family: 'Cinzel', serif; font-size: 9px; letter-spacing: 4px; color: var(--gold-dark); text-transform: uppercase; margin-bottom: 7px; }
.apex-title { font-family: 'Cinzel', serif; font-size: clamp(18px, 2.5vw, 28px); font-weight: 700; color: var(--gold-light); margin-bottom: 9px; }
.apex-sub { font-size: 14px; color: var(--text-dim); margin-bottom: 12px; }
.apex-verses { font-size: 13px; color: var(--text-dim); border-top: 1px solid rgba(201,168,76,0.18); padding-top: 10px; margin-bottom: 12px; }

/* BRIDGE TEXT */
.bridge-eyebrow { font-family: 'Cinzel', serif; font-size: 9px; letter-spacing: 4px; color: #6A9060; text-transform: uppercase; margin-bottom: 6px; }
.bridge-title { font-family: 'Cinzel', serif; font-size: clamp(13px, 1.6vw, 17px); font-weight: 600; color: var(--bridge-text); margin-bottom: 8px; }
.bridge-verse { font-size: 13px; color: #90C880; margin-bottom: 6px; }
.bridge-body { font-size: 13px; color: var(--text); }

/* CREATION TEXT */
.creation-label { font-family: 'Cinzel', serif; font-size: 9px; letter-spacing: 3px; color: var(--gold-dark); text-transform: uppercase; margin-bottom: 5px; }
.creation-title { font-family: 'Cinzel', serif; font-size: clamp(14px, 1.8vw, 20px); font-weight: 600; color: var(--gold-light); margin-bottom: 7px; }
.creation-body { font-size: 13px; color: var(--text); }

/* TRACK SUMMARY NODES */
.track-summary { text-align: center; padding: 12px 18px; border-radius: 1px; }
.ts-ot { border: 1px solid var(--ot-accent); }
.ts-nt { border: 1px solid var(--nt-accent); }
.ts-text { font-size: 12px; color: var(--text-dim); }

@keyframes fadeDown { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 760px) {
  .split-row { grid-template-columns: 1fr; }
  .spine { display: none; }
  .cmd-grid, .sermon-grid, .sac-grid, .closing-grid { grid-template-columns: 1fr; }
}

/* ═══ EDITOR STYLES ═══ */
.editor-unlocked [data-editable] {
  position: relative;
  cursor: pointer;
  transition: outline 0.15s;
}
.editor-unlocked [data-editable]:hover {
  outline: 1.5px dashed rgba(201,168,76,0.6);
  outline-offset: 3px;
  background: rgba(201,168,76,0.04);
}
.editor-unlocked [data-editable].edited {
  outline: 1px solid rgba(90,200,90,0.4);
}
.editor-unlocked [data-editable]:hover::after {
  content: 'click to edit';
  position: absolute;
  top: -18px;
  right: 0;
  font-family: 'Cinzel', serif;
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--gold-dark);
  background: var(--deep);
  padding: 1px 6px;
  pointer-events: none;
  z-index: 10;
  white-space: nowrap;
}

/* Edit modal */
.edit-modal-bg {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.edit-modal-bg.active { display: flex; }
.edit-modal {
  background: #0F0E14;
  border: 1px solid rgba(201,168,76,0.5);
  max-width: 680px;
  width: 100%;
  padding: 24px 28px;
  border-radius: 2px;
}
.edit-modal-label {
  font-family: 'Cinzel', serif;
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--gold-dark);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.edit-modal-id {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  color: rgba(201,168,76,0.4);
  margin-bottom: 12px;
}
.edit-modal textarea {
  width: 100%;
  background: #080810;
  border: 1px solid rgba(201,168,76,0.3);
  color: #FFFFFF;
  font-family: 'EB Garamond', serif;
  font-size: 14px;
  line-height: 1.6;
  padding: 12px 14px;
  resize: vertical;
  min-height: 120px;
  outline: none;
  border-radius: 1px;
}
.edit-modal textarea:focus { border-color: rgba(201,168,76,0.6); }
.edit-modal-hint { font-size: 11px; color: var(--text-muted); margin-top: 6px; }
.edit-modal-btns {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  justify-content: flex-end;
}
.edit-btn {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 7px 18px;
  border: none;
  cursor: pointer;
  border-radius: 1px;
}
.edit-btn-save { background: rgba(201,168,76,0.2); border: 1px solid rgba(201,168,76,0.5); color: var(--gold-light); }
.edit-btn-save:hover { background: rgba(201,168,76,0.35); }
.edit-btn-revert { background: rgba(180,60,60,0.15); border: 1px solid rgba(180,60,60,0.4); color: #D09090; }
.edit-btn-revert:hover { background: rgba(180,60,60,0.3); }
.edit-btn-cancel { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15); color: var(--text-muted); }
.edit-btn-cancel:hover { background: rgba(255,255,255,0.12); }

/* Editor bar */
.editor-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(8,8,16,0.97);
  border-top: 1px solid rgba(201,168,76,0.2);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 300;
  flex-wrap: wrap;
}
.editor-bar-label {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--gold-dark);
  text-transform: uppercase;
  white-space: nowrap;
}
.editor-bar input[type=password] {
  font-family: 'EB Garamond', serif;
  font-size: 14px;
  background: #080810;
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--gold-light);
  padding: 5px 12px;
  outline: none;
  border-radius: 1px;
  width: 160px;
}
.editor-bar-btn {
  font-family: 'Cinzel', serif;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border: 1px solid rgba(201,168,76,0.4);
  background: rgba(201,168,76,0.1);
  color: var(--gold-light);
  cursor: pointer;
  border-radius: 1px;
  white-space: nowrap;
}
.editor-bar-btn:hover { background: rgba(201,168,76,0.25); }
.editor-bar-btn.export-btn { border-color: rgba(90,144,224,0.4); background: rgba(90,144,224,0.1); color: var(--nt-dim); }
.editor-bar-btn.export-btn:hover { background: rgba(90,144,224,0.25); }
.editor-bar-btn.lock-btn { border-color: rgba(160,40,40,0.4); background: rgba(160,40,40,0.1); color: #D09090; }
.editor-bar-btn.lock-btn:hover { background: rgba(160,40,40,0.25); }
.editor-status {
  font-family: 'Cinzel', serif;
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-left: auto;
}
.editor-status.saved { color: #80C880; }
.editor-status.error { color: #D08080; }
