:root {
  --base-deep: #030712;
  --navy-panel: #071226;
  --blue-depth: #0b1d46;
  --primary-text: #eef4ff;
  --soft-text: #c9d6f2;
  --muted-text: #92a6cf;
  --action-blue: #4ea1ff;
  --indigo: #6f7cff;
  --vocal-purple: #d67cff;
  --cyan: #69e9ff;
  --mint: #63f0a9;
  --master-gold: #ffd34d;
  --bass-amber: #ffb35c;
  --rose-danger: #ff6fae;
  --warm-coral: #ff8a7a;
  --surface-1: linear-gradient(180deg, rgba(15, 28, 70, 0.92), rgba(7, 18, 38, 0.94));
  --surface-2: linear-gradient(180deg, rgba(21, 35, 81, 0.92), rgba(10, 20, 47, 0.92));
  --border-soft: rgba(255, 255, 255, 0.08);
  --shadow-soft: 0 18px 38px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(78, 161, 255, 0.18), transparent 32%),
    radial-gradient(circle at top right, rgba(214, 124, 255, 0.12), transparent 28%),
    linear-gradient(180deg, var(--base-deep), var(--navy-panel) 48%, #08122f);
  color: var(--primary-text);
}

button, input, select {
  font: inherit;
}

.app-shell {
  max-width: 1520px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 28px;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 22px;
}

.app-shell.auth-locked {
  max-width: none;
  min-height: 100vh;
  padding: 0;
  grid-template-columns: 1fr;
  gap: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(42, 195, 255, 0.16), transparent 26%),
    radial-gradient(circle at 86% 82%, rgba(111, 124, 255, 0.14), transparent 28%),
    linear-gradient(135deg, #040814, #08142d 54%, #091736 100%);
}

.app-shell.auth-pending {
  opacity: 0;
  pointer-events: none;
}

.app-shell.auth-locked .main-column,
.app-shell.auth-locked .sidebar-nav {
  display: none !important;
}

.app-shell.auth-locked .sidebar {
  min-height: 100vh;
  border: none;
  border-radius: 0;
  padding: 40px;
  background: transparent;
  box-shadow: none;
  display: grid;
  place-items: center;
}

.app-shell.auth-locked .profile-card {
  width: min(100%, 1360px);
  min-height: calc(100vh - 80px);
  position: relative;
  border-radius: 34px;
  border: 1px solid rgba(255,255,255,.08);
  background:
    linear-gradient(90deg, rgba(10, 20, 52, 0.92) 0%, rgba(10, 20, 52, 0.92) 60%, rgba(7, 14, 34, 0.98) 60%, rgba(7, 14, 34, 0.98) 100%);
  box-shadow: 0 34px 90px rgba(0,0,0,.40);
  display: grid;
  grid-template-columns: minmax(0, 1.34fr) minmax(420px, 540px);
  align-items: stretch;
  text-align: left;
  padding: 0;
  overflow: hidden;
}

.app-shell.auth-locked .profile-card > * {
  position: relative;
  z-index: 1;
}

.app-shell.auth-locked .profile-card::before {
  content: none;
  position: absolute;
  top: 56px;
  left: 56px;
  right: auto;
  bottom: auto;
  inset: auto;
  background: none;
  pointer-events: none;
  color: rgba(42,195,255,.98);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .14em;
  z-index: 2;
}

.app-shell.auth-locked .auth-brand-logo {
  display: block;
  grid-column: 1;
  width: 180px;
  height: 180px;
  object-fit: contain;
  margin: 134px 0 26px 56px;
  filter:
    drop-shadow(0 26px 54px rgba(0, 0, 0, 0.34))
    drop-shadow(0 0 22px rgba(42, 195, 255, 0.12));
}

.app-shell.auth-locked .avatar-shell {
  display: none;
}

.app-shell.auth-locked .avatar-edit-hint {
  display: none;
}

.app-shell.auth-locked .avatar {
  width: 88px;
  height: 88px;
  margin: 0;
  box-shadow: 0 14px 34px rgba(42,195,255,.18);
}

.app-shell.auth-locked .profile-name,
.app-shell.auth-locked .profile-role {
  grid-column: 1;
  margin-left: 56px;
  max-width: 520px;
}

.app-shell.auth-locked .profile-name {
  font-size: clamp(52px, 7vw, 82px);
  line-height: .92;
  letter-spacing: -.05em;
  color: rgba(42,195,255,.98);
}

.app-shell.auth-locked .profile-name::before {
  content: "";
  display: none;
}

.app-shell.auth-locked .profile-name::after {
  content: "Web";
  display: block;
  margin-top: 8px;
  color: #f3f7ff;
  font-size: 1em;
  letter-spacing: -.05em;
  font-weight: 900;
}

.app-shell.auth-locked .profile-role {
  margin-top: 10px;
  color: #d8e3f2;
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 480px;
}

.app-shell.auth-locked .profile-verse {
  display: block;
  grid-column: 1;
  align-self: end;
  margin: 0 56px 56px auto;
  padding-top: 18px;
  max-width: 420px;
  border-top: 1px solid rgba(255,255,255,.10);
  color: rgba(216, 227, 242, 0.82);
  font-size: .88rem;
  line-height: 1.75;
  text-align: left;
}

.app-shell.auth-locked .cloud-auth-card {
  grid-column: 2;
  grid-row: 1 / span 4;
  align-self: center;
  width: min(100%, 440px);
  justify-self: center;
  margin: 0 auto;
  padding: 36px 34px 24px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.09);
  background:
    radial-gradient(circle at top right, rgba(105,233,255,.08), transparent 30%),
    linear-gradient(180deg, rgba(23,33,67,.95), rgba(10,18,40,.98));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 24px 60px rgba(0,0,0,.26);
  gap: 14px;
}

.app-shell.auth-locked .cloud-auth-head {
  display: grid;
  gap: 10px;
  margin-bottom: 4px;
}

.app-shell.auth-locked .cloud-auth-head h2 {
  margin: 0;
  color: #eef4fb;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -.03em;
  text-align: center;
}

.app-shell.auth-locked .cloud-auth-head p {
  margin: 0;
  color: #c0cad6;
  font-size: .98rem;
  line-height: 1.6;
  text-align: center;
}

.app-shell.auth-locked .cloud-auth-status {
  margin-top: 18px;
  text-align: center;
}

.app-shell.auth-locked .cloud-auth-field {
  gap: 7px;
  font-size: .82rem;
}

.app-shell.auth-locked .cloud-auth-field input {
  min-height: 54px;
  border-radius: 18px;
  padding: 0 18px;
  background: rgba(3, 9, 22, 0.72);
  color: #edf3fb;
  -webkit-text-fill-color: #edf3fb;
  caret-color: #edf3fb;
}

.app-shell.auth-locked .cloud-team-name,
.app-shell.auth-locked .cloud-user-email {
  text-align: left;
}

.app-shell.auth-locked .cloud-auth-hint {
  margin-top: 22px;
}

.app-shell.auth-locked .cloud-auth-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 18px;
}

.app-shell.auth-locked .cloud-auth-actions .btn {
  flex: 1 1 0;
  min-width: 0;
  min-height: 52px;
  border-radius: 16px;
}

.app-shell.auth-locked .cloud-login-credit {
  grid-column: 2;
  align-self: start;
  justify-self: center;
  margin: 16px auto 0;
  padding-bottom: 22px;
  width: min(100%, 440px);
  display: block;
  text-align: center;
  color: rgba(198, 210, 224, 0.62);
  font-size: 12px;
  letter-spacing: .04em;
}

.sidebar,
.hero-card,
.services-panel,
.rail-card,
.service-card,
.profile-card {
  border: 1px solid var(--border-soft);
  background: var(--surface-1);
  box-shadow: var(--shadow-soft);
}

.sidebar {
  border-radius: 28px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-card {
  border-radius: 24px;
  padding: 18px 16px;
  text-align: center;
}

.avatar-shell {
  position: relative;
  width: fit-content;
  margin: 0 auto 14px;
}

.avatar {
  width: 82px;
  height: 82px;
  margin: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 800;
  color: #e8f7ff;
  background: linear-gradient(180deg, rgba(78, 161, 255, 0.4), rgba(20, 83, 156, 0.26));
  border: 1px solid rgba(105, 233, 255, 0.42);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}

.avatar.avatar-has-photo {
  color: transparent;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.avatar-edit-hint {
  position: absolute;
  right: -6px;
  bottom: -4px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(111, 124, 255, 0.95), rgba(70, 80, 170, 0.95));
  color: #f7fbff;
  font-size: .9rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0,0,0,.24);
}

.profile-name {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .02em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.profile-role {
  margin-top: 8px;
  margin-bottom: 14px;
  color: var(--soft-text);
  font-size: .93rem;
}

.profile-verse {
  display: none;
}

.cloud-auth-card {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  text-align: left;
}

.cloud-auth-status {
  border: 1px solid rgba(105, 233, 255, 0.18);
  border-radius: 12px;
  padding: 9px 10px;
  color: var(--soft-text);
  background: rgba(255,255,255,.04);
  font-size: .82rem;
  line-height: 1.3;
}

.cloud-auth-status[data-status="ok"] {
  color: #dfffee;
  border-color: rgba(99, 240, 169, 0.34);
  background: rgba(99, 240, 169, 0.09);
}

.cloud-auth-status[data-status="warning"] {
  color: #fff5d6;
  border-color: rgba(255, 211, 77, 0.36);
  background: rgba(255, 211, 77, 0.08);
}

.cloud-auth-status[data-status="error"] {
  color: #ffe4ef;
  border-color: rgba(255, 111, 174, 0.38);
  background: rgba(255, 111, 174, 0.09);
}

.cloud-auth-form,
.cloud-session-panel {
  display: grid;
  gap: 9px;
}

.cloud-auth-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 4px;
}

.cloud-auth-mode {
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: var(--muted-text);
  font-weight: 800;
  cursor: pointer;
}

.cloud-auth-mode.is-active {
  color: #eef7ff;
  border-color: rgba(105, 233, 255, 0.32);
  background: linear-gradient(180deg, rgba(78, 161, 255, 0.20), rgba(49, 111, 235, 0.14));
}

.cloud-invite-entry {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(140px, .8fr) auto;
  gap: 10px;
  align-items: end;
}

.cloud-invitations-list {
  display: grid;
  gap: 10px;
}

.cloud-invitation-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
}

.cloud-invitation-copy {
  display: grid;
  gap: 4px;
}

.cloud-invitation-copy strong {
  color: var(--primary-text);
}

.cloud-invitation-copy span {
  color: var(--muted-text);
  font-size: .82rem;
}

.cloud-invitation-actions {
  display: flex;
  gap: 8px;
}

.cloud-mini-btn {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  color: var(--primary-text);
  cursor: pointer;
  font-weight: 700;
}

.cloud-empty-state {
  padding: 16px;
  border-radius: 16px;
  border: 1px dashed rgba(255,255,255,.10);
  color: var(--muted-text);
  text-align: center;
}

.app-shell:not(.auth-locked) .profile-verse,
.app-shell:not(.auth-locked) .cloud-session-panel,
.app-shell:not(.auth-locked) .cloud-auth-status,
.app-shell:not(.auth-locked) .cloud-login-credit {
  display: none !important;
}

.cloud-auth-field {
  display: grid;
  gap: 5px;
  color: var(--muted-text);
  font-size: .78rem;
  font-weight: 700;
}

.cloud-auth-field input {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--primary-text);
  background: rgba(3, 7, 18, 0.46);
  outline: none;
}

.cloud-auth-field input:focus {
  border-color: rgba(105, 233, 255, 0.42);
}

.app-shell.auth-locked .cloud-auth-field input:focus {
  background: rgba(3, 9, 22, 0.82);
  border-color: rgba(105, 233, 255, 0.34);
  box-shadow: 0 0 0 4px rgba(105, 233, 255, 0.10);
}

.app-shell.auth-locked .cloud-auth-field input:-webkit-autofill,
.app-shell.auth-locked .cloud-auth-field input:-webkit-autofill:hover,
.app-shell.auth-locked .cloud-auth-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: #edf3fb;
  caret-color: #edf3fb;
  box-shadow: 0 0 0 1000px rgba(3, 9, 22, 0.82) inset;
  transition: background-color 9999s ease-out 0s;
}

.auth-brand-logo,
.cloud-auth-head,
.cloud-auth-hint,
.cloud-auth-actions,
.cloud-login-credit{
  display: none;
}

.cloud-auth-field input.is-invalid {
  border-color: rgba(255, 111, 174, 0.48);
  box-shadow: 0 0 0 4px rgba(255, 111, 174, 0.14);
  animation: cloudFieldShake .24s ease-in-out 0s 2;
}

.cloud-auth-hint{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:14px;
  padding:12px 14px;
  border-radius:20px;
  background:linear-gradient(180deg, rgba(42,195,255,.12), rgba(27,139,198,.07));
  border:1px solid rgba(42,195,255,.20);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
  color:#dbeffd;
}

.cloud-auth-hint-dot{
  width:14px;
  height:14px;
  border-radius:50%;
  background:#2ac3ff;
  margin-top:3px;
  box-shadow:0 0 0 6px rgba(42,195,255,.12);
}

.cloud-auth-hint strong{
  display:block;
  margin-bottom:4px;
  font-size:15px;
  font-weight:800;
}

.cloud-auth-actions{
  display:flex;
  gap:12px;
  align-items:center;
}

.cloud-auth-actions .btn{
  flex:1 1 0;
  min-width:0;
}

@keyframes cloudFieldShake{
  0%{ transform:translateX(0); }
  25%{ transform:translateX(-4px); }
  50%{ transform:translateX(4px); }
  75%{ transform:translateX(-3px); }
  100%{ transform:translateX(0); }
}
.cloud-team-name {
  color: var(--primary-text);
  font-weight: 800;
  font-size: .9rem;
}

.cloud-user-email {
  color: var(--muted-text);
  font-size: .78rem;
  word-break: break-word;
}

.btn {
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  min-height: 48px;
  padding: 0 18px;
  background: rgba(255,255,255,.04);
  color: var(--primary-text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: .01em;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(180deg, rgba(78, 161, 255, 0.96), rgba(49, 111, 235, 0.82));
  color: #f7fbff;
  border-color: rgba(105, 233, 255, 0.26);
}

.btn-secondary {
  background: linear-gradient(180deg, rgba(111, 124, 255, 0.18), rgba(36, 45, 90, 0.22));
  color: #e8efff;
}

#refreshServicesBtn {
  background: linear-gradient(180deg, rgba(255, 138, 122, 0.26), rgba(126, 52, 45, 0.20));
  border-color: rgba(255, 138, 122, 0.34);
  color: #fff0eb;
}

.btn-disabled {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  color: var(--muted-text);
  border-color: rgba(255,255,255,.06);
  cursor: not-allowed;
}

#goToSectionsBtn {
  background: linear-gradient(180deg, #ffd86a, #ffd34d);
  border-color: rgba(255, 211, 77, 0.58);
  color: #101521;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    0 0 18px rgba(255, 211, 77, 0.16);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-item {
  min-height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(111, 124, 255, 0.18);
  background: linear-gradient(180deg, rgba(111, 124, 255, 0.14), rgba(46, 56, 108, 0.14));
  color: var(--primary-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  cursor: pointer;
}

.nav-item.is-active {
  background: linear-gradient(180deg, rgba(111, 124, 255, 0.32), rgba(58, 67, 140, 0.30));
  border-color: rgba(111, 124, 255, 0.34);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 0 0 1px rgba(111, 124, 255, 0.14);
}

.nav-item-future {
  justify-content: center;
  font-weight: 800;
}

.nav-item-services,
.nav-item-team,
.nav-item-preparation,
.nav-item-profile {
  justify-content: center;
  font-weight: 800;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.03),
    0 0 18px rgba(0, 0, 0, 0.12);
}

.nav-item-services {
  background: linear-gradient(180deg, rgba(67, 214, 255, 0.22), rgba(28, 78, 164, 0.22));
  border-color: rgba(67, 214, 255, 0.34);
  color: #ecfbff;
}

.nav-item-services.is-active {
  background: linear-gradient(180deg, rgba(88, 229, 255, 0.36), rgba(57, 110, 255, 0.34));
  border-color: rgba(88, 229, 255, 0.48);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.05),
    0 0 22px rgba(88, 229, 255, 0.16);
}

.nav-item-team {
  background: linear-gradient(180deg, rgba(68, 255, 209, 0.20), rgba(22, 112, 103, 0.20));
  border-color: rgba(68, 255, 209, 0.32);
  color: #eafff9;
}

.nav-item-team.is-active {
  background: linear-gradient(180deg, rgba(86, 255, 219, 0.34), rgba(31, 151, 132, 0.30));
  border-color: rgba(86, 255, 219, 0.44);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.05),
    0 0 22px rgba(68, 255, 209, 0.14);
}

.nav-item-media {
  background: linear-gradient(180deg, rgba(111, 124, 255, 0.20), rgba(45, 53, 120, 0.20));
  border-color: rgba(111, 124, 255, 0.28);
  color: #eef0ff;
}

.nav-item-dance {
  background: linear-gradient(180deg, rgba(214, 124, 255, 0.18), rgba(95, 42, 124, 0.18));
  border-color: rgba(214, 124, 255, 0.28);
  color: #faedff;
}

.nav-item-charts {
  background: linear-gradient(180deg, rgba(255, 211, 77, 0.18), rgba(133, 92, 19, 0.18));
  border-color: rgba(255, 211, 77, 0.28);
  color: #fff4cf;
}

.nav-item-preparation {
  background: linear-gradient(180deg, rgba(195, 92, 255, 0.22), rgba(96, 43, 178, 0.20));
  border-color: rgba(195, 92, 255, 0.34);
  color: #f8eeff;
}

.nav-item-preparation.is-active {
  background: linear-gradient(180deg, rgba(214, 124, 255, 0.36), rgba(112, 57, 218, 0.32));
  border-color: rgba(214, 124, 255, 0.46);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.05),
    0 0 22px rgba(195, 92, 255, 0.16);
}

.nav-item-sermons {
  background: linear-gradient(180deg, rgba(99, 240, 169, 0.18), rgba(28, 98, 74, 0.18));
  border-color: rgba(99, 240, 169, 0.28);
  color: #e9fff4;
}

.nav-item-panel {
  background: linear-gradient(180deg, rgba(42, 195, 255, 0.18), rgba(18, 79, 124, 0.18));
  border-color: rgba(42, 195, 255, 0.28);
  color: #e9fbff;
}

#sidebarSignOutBtn {
  margin-top: 10px;
  justify-content: center;
  background: linear-gradient(180deg, rgba(255, 138, 122, 0.18), rgba(92, 39, 69, 0.20));
  border-color: rgba(255, 138, 122, 0.22);
  color: #ffe9f2;
  font-weight: 800;
}

.sidebar-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.06);
  color: var(--muted-text);
  font-size: .85rem;
  line-height: 1.5;
  text-align: center;
}

.sidebar-note {
  padding: 10px 12px 0;
  color: var(--muted-text);
  font-size: .83rem;
  line-height: 1.5;
  text-align: center;
}

.main-column {
  display: grid;
  gap: 18px;
  align-content: start;
}

.view-stack {
  display: grid;
  gap: 18px;
  align-content: start;
  align-items: start;
}

.is-hidden {
  display: none !important;
}

.hero-card {
  border-radius: 28px;
  padding: 24px 28px;
}

.eyebrow {
  color: var(--cyan);
  font-size: .84rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.hero-top {
  margin-top: 10px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 18px;
  align-items: start;
}

.hero-copy h1 {
  margin: 0;
  font-size: 3rem;
  line-height: .98;
  letter-spacing: -.04em;
}

.hero-copy .accent {
  color: var(--cyan);
}

.hero-copy p {
  margin: 14px 0 0;
  max-width: 720px;
  color: var(--soft-text);
  font-size: 1.02rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.hero-bottom-actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-metrics {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.metric-pill {
  min-height: 40px;
  border-radius: 999px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--soft-text);
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.metric-blue .dot { background: var(--action-blue); }
.metric-green .dot { background: var(--mint); }
.metric-amber .dot { background: var(--master-gold); }
.metric-rose .dot { background: var(--rose-danger); }

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
}

.section-subtitle {
  margin-top: 6px;
  color: var(--muted-text);
  font-size: 0.92rem;
  line-height: 1.5;
}

.services-panel,
.rail-card {
  border-radius: 24px;
  padding: 18px;
}

.team-members-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.team-member-card {
  border: 1px solid rgba(105, 233, 255, 0.12);
  border-radius: 24px;
  padding: 14px 16px;
  background:
    linear-gradient(90deg, rgba(25, 40, 92, 0.52), rgba(14, 26, 58, 0.82));
}

.team-member-card.is-inactive {
  border-color: rgba(255, 179, 92, 0.18);
  opacity: 0.88;
}

.team-member-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.team-member-headline {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.team-member-name {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.team-member-skills {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.team-skill-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(105, 233, 255, 0.18);
  background: rgba(42, 195, 255, 0.10);
  color: #e9fbff;
  font-size: 0.76rem;
  font-weight: 700;
}

.team-member-notes {
  margin-top: 10px;
  color: var(--soft-text);
  line-height: 1.45;
  font-size: 0.84rem;
}

.empty-state.compact {
  min-height: auto;
  padding: 18px;
}

.team-member-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.team-skills-builder {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.team-skills-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.team-skill-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  cursor: pointer;
}

.team-skill-option-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.team-skill-option-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.team-skill-option-icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  font-size: 0.92rem;
  font-weight: 900;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.05);
}

.team-skill-option-title {
  font-weight: 800;
  font-size: 0.84rem;
}

.team-skill-option-meta {
  color: var(--muted-text);
  font-size: 0.7rem;
}

.team-skill-toggle {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.team-skill-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.team-skill-toggle-track {
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.12);
  position: relative;
}

.team-skill-toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #f2f7ff;
  box-shadow: 0 2px 8px rgba(0,0,0,.24);
  transition: transform .18s ease;
}

.team-skill-toggle input:checked + .team-skill-toggle-track {
  background: rgba(42, 195, 255, 0.28);
  border-color: rgba(42, 195, 255, 0.38);
}

.team-skill-toggle input:checked + .team-skill-toggle-track .team-skill-toggle-knob {
  transform: translateX(16px);
}

.team-member-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.team-member-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.team-member-toggle-track {
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.12);
  position: relative;
  transition: background .18s ease, border-color .18s ease;
}

.team-member-toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f2f7ff;
  box-shadow: 0 2px 8px rgba(0,0,0,.24);
  transition: transform .18s ease;
}

.team-member-toggle input:checked + .team-member-toggle-track {
  background: rgba(99, 240, 169, 0.28);
  border-color: rgba(99, 240, 169, 0.44);
}

.team-member-toggle input:checked + .team-member-toggle-track .team-member-toggle-knob {
  transform: translateX(18px);
}

.team-member-toggle-label {
  color: var(--soft-text);
  font-size: 0.78rem;
  font-weight: 700;
}

.team-member-edit-btn {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  flex: 0 0 auto;
}

.team-skill-option-icon--preach,
.team-skill-option-icon--minister,
.team-skill-option-icon--present {
  background: rgba(99, 240, 169, 0.12);
  color: #eafff1;
}

.team-skill-option-icon--lead_voice,
.team-skill-option-icon--choir {
  background: rgba(214, 124, 255, 0.14);
  color: #fdefff;
}

.team-skill-option-icon--guitar,
.team-skill-option-icon--bass,
.team-skill-option-icon--drums,
.team-skill-option-icon--piano,
.team-skill-option-icon--keys {
  background: rgba(255, 211, 77, 0.14);
  color: #fff4d1;
}

.team-skill-option-icon--tracks,
.team-skill-option-icon--sound,
.team-skill-option-icon--projection {
  background: rgba(78, 161, 255, 0.14);
  color: #eef5ff;
}

.team-skill-option-icon--dance {
  background: rgba(255, 111, 174, 0.14);
  color: #ffeef5;
}

.team-skill-chip--preach {
  border-color: rgba(99, 240, 169, 0.3);
  background: rgba(99, 240, 169, 0.12);
  color: #e8fff2;
}

.team-skill-chip--minister {
  border-color: rgba(255, 179, 92, 0.3);
  background: rgba(255, 179, 92, 0.12);
  color: #fff1dc;
}

.team-skill-chip--present {
  border-color: rgba(105, 233, 255, 0.32);
  background: rgba(105, 233, 255, 0.12);
}

.team-skill-chip--lead_voice {
  border-color: rgba(214, 124, 255, 0.34);
  background: rgba(214, 124, 255, 0.14);
  color: #fceeff;
}

.team-skill-chip--choir {
  border-color: rgba(111, 124, 255, 0.34);
  background: rgba(111, 124, 255, 0.14);
}

.team-skill-chip--guitar,
.team-skill-chip--bass,
.team-skill-chip--drums,
.team-skill-chip--piano,
.team-skill-chip--keys {
  border-color: rgba(255, 211, 77, 0.28);
  background: rgba(255, 211, 77, 0.12);
  color: #fff5d5;
}

.team-skill-chip--tracks,
.team-skill-chip--sound,
.team-skill-chip--projection {
  border-color: rgba(78, 161, 255, 0.32);
  background: rgba(78, 161, 255, 0.12);
  color: #edf5ff;
}

.team-skill-chip--dance {
  border-color: rgba(255, 111, 174, 0.3);
  background: rgba(255, 111, 174, 0.12);
  color: #ffeaf3;
}

#songEditorView .song-panel {
  position: relative;
  overflow: hidden;
}

#songEditorView .song-panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 4px;
  border-radius: 999px;
  opacity: 0.95;
}

#songEditorView .song-panel-identity {
  background:
    radial-gradient(circle at top right, rgba(105, 233, 255, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(19,34,78,.98), rgba(10,20,47,.99));
  border-color: rgba(105, 233, 255, 0.18);
}

#songEditorView .song-panel-identity::before {
  background: var(--cyan);
}

#songEditorView .song-panel-mode {
  background:
    radial-gradient(circle at top right, rgba(255, 211, 77, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(44,37,59,.98), rgba(18,20,39,.99));
  border-color: rgba(255, 211, 77, 0.18);
}

#songEditorView .song-panel-mode::before {
  background: var(--master-gold);
}

#songEditorView .song-panel-vocals {
  background:
    radial-gradient(circle at top right, rgba(214, 124, 255, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(35,26,68,.98), rgba(13,18,39,.99));
  border-color: rgba(214, 124, 255, 0.18);
}

#songEditorView .song-panel-vocals::before {
  background: var(--vocal-purple);
}

#songEditorView .song-panel-guide {
  background:
    radial-gradient(circle at top right, rgba(255, 138, 122, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(43,26,44,.98), rgba(15,18,37,.99));
  border-color: rgba(255, 138, 122, 0.18);
}

#songEditorView .song-panel-guide::before {
  background: var(--warm-coral);
}

#songEditorView .song-panel-lyrics {
  background:
    radial-gradient(circle at top right, rgba(185, 255, 106, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(28,44,40,.98), rgba(11,19,39,.99));
  border-color: rgba(185, 255, 106, 0.18);
}

#songEditorView .song-panel-lyrics::before {
  background: var(--lime-accent, #b9ff6a);
}

.section-head {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(105,233,255,.18);
  margin-bottom: 18px;
}

.section-head-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.section-title,
.rail-title {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.rail-title {
  padding-bottom: 12px;
}

.section-copy {
  margin-top: 8px;
  color: var(--muted-text);
}

.services-list {
  display: grid;
  gap: 16px;
}

.service-card {
  border-radius: 24px;
  padding: 20px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 18px;
}

.service-card.is-active {
  box-shadow:
    var(--shadow-soft),
    0 0 0 1px rgba(78,161,255,.18),
    inset 0 0 0 1px rgba(105,233,255,.06);
}

.service-main {
  min-width: 0;
}

.service-name {
  margin: 0;
  font-size: 1.9rem;
  line-height: 1.02;
  letter-spacing: -.04em;
}

.service-meta {
  margin-top: 10px;
  color: var(--soft-text);
  line-height: 1.6;
}

.service-pills {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pill {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
}

.pill-blue { color: #dff0ff; border-color: rgba(78,161,255,.34); background: rgba(78,161,255,.12); }
.pill-green { color: #d5ffec; border-color: rgba(99,240,169,.30); background: rgba(99,240,169,.12); }
.pill-amber { color: #ffefc1; border-color: rgba(255,211,77,.32); background: rgba(255,211,77,.11); }

.service-side {
  width: 290px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.state-box,
.active-service-card,
.mini-summary-item {
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
}

.state-box {
  padding: 16px;
}

.state-title {
  font-size: 1rem;
  font-weight: 800;
}

.state-copy {
  margin-top: 6px;
  color: var(--soft-text);
  line-height: 1.55;
}

.service-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.service-actions .btn {
  background: linear-gradient(180deg, rgba(185, 255, 106, 0.22), rgba(84, 121, 29, 0.18));
  border-color: rgba(185, 255, 106, 0.28);
  color: #f3ffd8;
}

.side-rail {
  display: grid;
  gap: 16px;
  align-content: start;
}

.field-stack {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field-label {
  font-size: .88rem;
  color: var(--soft-text);
  font-weight: 700;
}

.field-input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(5, 12, 29, 0.86), rgba(12, 19, 42, 0.92));
  color: var(--primary-text);
  outline: none;
}

select.field-input option {
  background: #182130;
  color: var(--primary-text);
}

.field-input:-webkit-autofill,
.field-input:-webkit-autofill:hover,
.field-input:-webkit-autofill:focus,
.field-textarea:-webkit-autofill,
.field-textarea:-webkit-autofill:hover,
.field-textarea:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--primary-text);
  -webkit-box-shadow: 0 0 0 1000px #0c1430 inset;
  transition: background-color 9999s ease-in-out 0s;
  caret-color: var(--primary-text);
}

.field-input:focus {
  border-color: rgba(105,233,255,.36);
  box-shadow: 0 0 0 3px rgba(78,161,255,.12);
}

.field-textarea {
  width: 100%;
  min-height: 170px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(5, 12, 29, 0.86), rgba(12, 19, 42, 0.92));
  color: var(--primary-text);
  resize: vertical;
  outline: none;
}

#editorServiceNotes {
  font-family: "Segoe UI", "Segoe UI Variable Text", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

.field-textarea:focus {
  border-color: rgba(105,233,255,.36);
  box-shadow: 0 0 0 3px rgba(78,161,255,.12);
}

.btn-vocal {
  background: linear-gradient(180deg, rgba(214, 124, 255, 0.26), rgba(120, 56, 160, 0.20));
  border-color: rgba(214, 124, 255, 0.34);
  color: #f8e7ff;
}

.field-input-color {
  padding: 4px;
  min-height: 44px;
  width: 68px;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex: 0 0 auto;
  appearance: none;
  -webkit-appearance: none;
  overflow: hidden;
  border-radius: 14px;
}

.service-editor-color-shell {
  padding: 8px 10px;
}

#serviceEditorView .service-editor-color-shell .field-input-color {
  width: 100%;
  min-height: 40px;
}

.color-input-shell {
  min-height: 56px;
  padding: 6px 8px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(10, 18, 42, 0.96), rgba(16, 25, 55, 0.94));
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02);
}

.color-input-shell:focus-within {
  border-color: rgba(105,233,255,.36);
  box-shadow: 0 0 0 3px rgba(78,161,255,.12);
}

.color-input-value {
  color: var(--primary-text);
  font-family: "Segoe UI", "Segoe UI Variable Text", system-ui, sans-serif;
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.field-input-color::-webkit-color-swatch-wrapper {
  padding: 0;
}

.field-input-color::-webkit-color-swatch {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
}

.active-service-card {
  min-height: 132px;
  padding: 20px 16px 16px;
  color: var(--soft-text);
  line-height: 1.55;
}

.active-service-card.is-empty {
  color: var(--muted-text);
}

.active-service-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-text);
}

.active-service-meta {
  margin-top: 10px;
}

.active-service-pills {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-status-chip-wrap {
  display: flex;
  justify-content: flex-end;
}

.mini-summary-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-bottom: 4px;
}

.mini-summary-item {
  min-height: 56px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mini-summary-label {
  color: var(--soft-text);
}

.status-chip {
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  font-weight: 700;
}

.status-ready {
  color: #d9ffed;
  background: rgba(99,240,169,.16);
  border: 1px solid rgba(99,240,169,.24);
}

.status-progress {
  color: #fff0c5;
  background: rgba(255,211,77,.16);
  border: 1px solid rgba(255,211,77,.24);
}

.empty-state {
  border-radius: 22px;
  border: 1px dashed rgba(105,233,255,.18);
  padding: 28px 24px;
  text-align: center;
  color: var(--muted-text);
  background: linear-gradient(180deg, rgba(7,18,38,.56), rgba(7,18,38,.72));
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(3, 7, 18, 0.72);
  backdrop-filter: blur(10px);
  overflow: auto;
  overscroll-behavior: contain;
}

.overlay.is-hidden {
  display: none;
}

.modal-card {
  width: min(100%, 580px);
  max-height: calc(100vh - 56px);
  max-height: min(calc(100dvh - 56px), calc(100vh - 56px));
  border-radius: 28px;
  border: 1px solid var(--border-soft);
  background:
    linear-gradient(180deg, rgba(12, 22, 54, 0.98), rgba(7, 18, 38, 0.96));
  box-shadow: 0 24px 68px rgba(0, 0, 0, 0.42);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-card-wide {
  width: min(100%, 1080px);
}

.modal-card-compact {
  width: min(100%, 520px);
}

#teamMemberOverlay .modal-card {
  width: min(100%, 560px);
}

#teamMemberOverlay .modal-body {
  padding-top: 18px;
}

#teamMemberOverlay .service-editor-notes {
  min-height: 96px;
}

.modal-head {
  padding: 22px 24px 18px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  background:
    linear-gradient(90deg, rgba(105, 233, 255, 0.12), rgba(214, 124, 255, 0.14));
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.modal-title {
  margin: 8px 0 0;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -.04em;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: var(--primary-text);
  cursor: pointer;
  font-size: 1.4rem;
}

.modal-body {
  padding: 22px 24px 18px;
  display: grid;
  gap: 14px;
  min-height: 0;
  overflow: auto;
}

.modal-actions {
  padding: 0 24px 24px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.publish-progress-card {
  border-color: rgba(105, 233, 255, 0.18);
  background:
    radial-gradient(circle at top right, rgba(105, 233, 255, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(17, 31, 79, 0.98), rgba(8, 16, 42, 0.98));
}

.publish-progress-step {
  color: #eef6ff;
  font-size: 1.02rem;
  font-weight: 700;
}

.publish-progress-file {
  margin-top: 10px;
  color: #c9d6e8;
  font-size: .96rem;
  line-height: 1.45;
  word-break: break-word;
}

.publish-progress-bar-shell {
  margin-top: 18px;
  width: 100%;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(105,233,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

.publish-progress-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2ac3ff, #5b95ff 48%, #8d6bff 100%);
  box-shadow: 0 0 18px rgba(91,149,255,.22);
  transition: width .18s ease;
}

.publish-progress-percent {
  margin-top: 12px;
  color: #f8fbff;
  font-size: .95rem;
  font-weight: 700;
  text-align: right;
}

.publish-result-card {
  border-color: rgba(105, 233, 255, 0.18);
  background:
    radial-gradient(circle at top right, rgba(105, 233, 255, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(17, 31, 79, 0.98), rgba(8, 16, 42, 0.98));
}

.publish-result-card.is-success {
  border-color: rgba(99, 240, 169, 0.24);
}

.publish-result-card.is-warning {
  border-color: rgba(255, 211, 77, 0.24);
}

.publish-result-card.is-error {
  border-color: rgba(255, 111, 174, 0.28);
}

.publish-result-status {
  width: 86px;
  height: 86px;
  margin: 4px auto 18px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 2.4rem;
  font-weight: 900;
  color: #f7fbff;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(99, 240, 169, 0.2), rgba(25, 72, 56, 0.28));
  box-shadow: 0 0 0 1px rgba(255,255,255,.02), 0 18px 34px rgba(0,0,0,.24);
  animation: publishResultPop .32s ease;
}

.publish-result-card.is-warning .publish-result-status {
  background: linear-gradient(180deg, rgba(255, 211, 77, 0.2), rgba(92, 70, 18, 0.28));
}

.publish-result-card.is-error .publish-result-status {
  background: linear-gradient(180deg, rgba(255, 111, 174, 0.22), rgba(92, 28, 60, 0.30));
}

.publish-result-lead {
  color: #eef6ff;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.55;
  text-align: center;
}

.publish-result-list {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.publish-result-item {
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  padding: 12px 14px;
  color: #c9d6e8;
  font-size: .92rem;
  line-height: 1.5;
}

.practice-mix-card {
  border-color: rgba(105, 233, 255, 0.18);
  background:
    radial-gradient(circle at top right, rgba(105, 233, 255, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(17, 31, 79, 0.98), rgba(8, 16, 42, 0.98));
}

.practice-mix-summary {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}

.practice-mix-service-label {
  color: var(--muted-text);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.practice-mix-service-name {
  color: #eef6ff;
  font-size: 1.16rem;
  font-weight: 800;
}

.practice-mix-lead {
  color: #c9d6e8;
  font-size: .94rem;
  line-height: 1.55;
}

.practice-mix-progress-banner {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(105, 233, 255, 0.22);
  background: linear-gradient(180deg, rgba(26, 58, 123, 0.44), rgba(11, 25, 67, 0.52));
}

.practice-mix-progress-title {
  color: #eef6ff;
  font-size: .92rem;
  font-weight: 800;
}

.practice-mix-progress-message {
  color: #d5e7ff;
  font-size: .9rem;
  line-height: 1.5;
}

.practice-mix-progress-track {
  position: relative;
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
}

.practice-mix-progress-fill {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #49d3ff 0%, #64f0c0 100%);
  box-shadow: 0 0 18px rgba(73, 211, 255, 0.25);
  transition: width .18s ease;
}

.practice-mix-progress-percent {
  color: #9fe7ff;
  font-size: .84rem;
  font-weight: 800;
  letter-spacing: .03em;
  justify-self: end;
}

.practice-mix-songs-list {
  display: grid;
  gap: 12px;
}

.practice-mix-song-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(14, 25, 61, 0.96), rgba(8, 16, 39, 0.98));
}

.practice-mix-song-card.is-ready {
  border-color: rgba(99, 240, 169, 0.24);
}

.practice-mix-song-card.is-error {
  border-color: rgba(255, 179, 92, 0.26);
}

.practice-mix-song-card.is-working {
  border-color: rgba(105, 233, 255, 0.26);
}

.practice-mix-song-main {
  display: grid;
  gap: 6px;
}

.practice-mix-song-title {
  color: #eef6ff;
  font-size: 1rem;
  font-weight: 800;
}

.practice-mix-song-meta {
  color: var(--soft-text);
  font-size: .88rem;
}

.practice-mix-song-detail,
.practice-mix-song-link {
  color: #c9d6e8;
  font-size: .9rem;
  line-height: 1.5;
}

.practice-mix-song-side {
  display: grid;
  gap: 10px;
  justify-items: end;
}

@keyframes publishResultPop {
  0% {
    opacity: 0;
    transform: scale(.86);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-body-wide {
  padding-right: 24px;
  min-height: 0;
}

.lyrics-bank-grid {
  display: grid;
  grid-template-columns: minmax(320px, .92fr) minmax(0, 1.08fr);
  gap: 18px;
  min-height: 0;
}

.lyrics-bank-panel {
  display: grid;
  gap: 14px;
  align-content: start;
  min-height: 0;
}

.lyrics-bank-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.lyrics-bank-toolbar {
  display: flex;
  justify-content: flex-start;
}

.lyrics-bank-results {
  min-height: 280px;
  max-height: min(420px, calc(100vh - 320px));
  overflow: auto;
  display: grid;
  gap: 10px;
  padding-right: 4px;
}

.lyrics-bank-item {
  width: 100%;
  text-align: left;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(17,29,71,.96), rgba(9,18,43,.98));
  padding: 14px 16px;
  color: var(--primary-text);
}

.lyrics-bank-item.is-selected {
  border-color: rgba(214, 124, 255, .34);
  box-shadow: 0 0 0 2px rgba(214, 124, 255, .12);
  background: linear-gradient(180deg, rgba(92, 49, 145, .30), rgba(13, 21, 49, .98));
}

.lyrics-bank-item-title {
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 6px;
}

.lyrics-bank-item-meta {
  color: var(--soft-text);
  font-size: .9rem;
}

.lyrics-bank-item-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.lyrics-bank-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.lyrics-bank-badge.reviewed {
  border-color: rgba(185,255,106,.34);
  background: rgba(185,255,106,.12);
  color: #eaffc9;
}

.lyrics-bank-badge.source {
  border-color: rgba(255,211,77,.30);
  background: rgba(255,211,77,.10);
  color: #ffe7a8;
}

.lyrics-bank-badge.warning {
  border-color: rgba(255,138,122,.30);
  background: rgba(255,138,122,.10);
  color: #ffd6cf;
}

.lyrics-bank-preview {
  min-height: 280px;
  max-height: min(420px, calc(100vh - 320px));
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(6,12,29,.96), rgba(9,16,38,.98));
  color: var(--primary-text);
  padding: 18px;
  white-space: pre-wrap;
  font: 500 1rem/1.65 "Consolas", "Courier New", monospace;
}

.compact-section-head {
  gap: 0;
  margin-bottom: 4px;
}

.service-card,
.nav-item,
.btn,
.field-input,
.icon-btn {
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease;
}

.service-card:hover,
.nav-item:hover,
.btn:hover,
.icon-btn:hover {
  transform: translateY(-1px);
}

.service-card:hover {
  border-color: rgba(105, 233, 255, 0.18);
}

.editor-grid {
  align-items: start;
}

#serviceEditorView .content-grid.editor-grid {
  grid-template-columns: minmax(0, 1fr);
}

#sectionsView .content-grid.editor-grid {
  grid-template-columns: minmax(0, 1fr);
}

#songEditorView .content-grid.editor-grid {
  grid-template-columns: minmax(0, 1fr);
}

#mtReviewView .content-grid.editor-grid {
  grid-template-columns: minmax(0, 1fr);
}

#publishReviewView .content-grid.editor-grid {
  grid-template-columns: minmax(0, 1fr);
}

.editor-main {
  display: grid;
  gap: 18px;
}

.editor-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.editor-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  gap: 18px;
}

.section-head-tight {
  padding-bottom: 12px;
  margin-bottom: 16px;
}

#mtAddTrackBtn {
  margin-top: 12px;
}

.editor-summary-card,
.editor-status-stack {
  display: grid;
  gap: 12px;
}

.field-span-2 {
  grid-column: span 2;
}

.service-editor-wizard {
  margin-top: 6px;
  border-radius: 30px;
  border: 1px solid rgba(78, 161, 255, 0.12);
  background:
    radial-gradient(circle at top right, rgba(78, 161, 255, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(11, 29, 70, 0.98), rgba(7, 18, 38, 0.98));
  box-shadow:
    0 24px 42px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255,255,255,.04);
  padding: 24px 34px 28px;
}

.service-editor-topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
  flex-wrap: wrap;
}

#backToServicesBtn {
  background: linear-gradient(180deg, rgba(78, 48, 89, 0.92), rgba(58, 36, 74, 0.92));
  color: #ffd8f0;
  border-color: rgba(255, 111, 174, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 8px 18px rgba(58, 36, 74, 0.20);
}

.service-editor-current {
  color: var(--master-gold);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -.01em;
  margin-left: auto;
}

.service-editor-current strong {
  color: #fff5ce;
  font-size: 1.34rem;
  font-weight: 800;
}

#editorStatusPill.service-editor-status {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

#editorStatusPill.service-editor-status .pill {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.service-editor-steps {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.service-editor-step {
  position: relative;
  overflow: hidden;
  min-height: 58px;
  border-radius: 16px;
  border: 1px solid rgba(78, 161, 255, 0.10);
  background: linear-gradient(180deg, rgba(25, 37, 82, 0.92), rgba(15, 27, 63, 0.92));
  color: rgba(238, 244, 255, 0.74);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

.service-editor-step::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 8px;
  height: 4px;
  border-radius: 999px;
  background: rgba(125, 149, 209, 0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.service-editor-step.is-done {
  color: #eef8ff;
  border-color: rgba(105, 233, 255, 0.18);
  background:
    radial-gradient(circle at top center, rgba(111, 124, 255, 0.24), transparent 55%),
    linear-gradient(180deg, rgba(38, 67, 141, 0.94), rgba(29, 51, 118, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 14px 24px rgba(28, 57, 132, 0.18);
}

.service-editor-step.is-done::after {
  background: linear-gradient(90deg, rgba(111, 124, 255, 0.95), rgba(105, 233, 255, 0.95));
  box-shadow:
    0 0 12px rgba(105, 233, 255, 0.18),
    inset 0 1px 0 rgba(255,255,255,.22);
}

.service-editor-step.is-active {
  color: #f5fbff;
  border-color: rgba(105, 233, 255, 0.20);
  background: linear-gradient(180deg, rgba(78, 161, 255, 0.94), rgba(65, 132, 241, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    0 16px 28px rgba(30, 80, 180, 0.22);
}

.service-editor-step.is-active::after {
  background: linear-gradient(90deg, rgba(111, 124, 255, 0.98), rgba(105, 233, 255, 0.98));
  box-shadow:
    0 0 14px rgba(105, 233, 255, 0.24),
    inset 0 1px 0 rgba(255,255,255,.24);
}

.service-editor-card {
  margin-top: 22px;
  background: linear-gradient(180deg, rgba(28, 39, 82, 0.96), rgba(22, 33, 71, 0.96));
  border-color: rgba(105, 233, 255, 0.08);
  padding: 24px;
  box-shadow:
    0 24px 40px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255,255,255,.04);
}

.service-editor-basic-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
}

.service-editor-advanced-toggle {
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--master-gold);
  font-size: 1rem;
  cursor: pointer;
  transition: filter 140ms ease, transform 140ms ease;
}

.service-editor-advanced-toggle:hover {
  filter: brightness(1.06);
  transform: translateX(1px);
}

.service-editor-advanced-fields {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.06);
}

.service-editor-advanced-fields.is-hidden {
  display: none;
}

.service-editor-notes {
  min-height: 116px;
}

.service-editor-actions {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.service-editor-actions-left {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

#saveServiceDraftBtn {
  background: linear-gradient(180deg, rgba(31, 68, 82, 0.96), rgba(28, 60, 72, 0.96));
  color: #bff7d8;
  border-color: rgba(99, 240, 169, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 8px 18px rgba(28, 60, 72, 0.20);
}

#goToSectionsBtn {
  min-width: 152px;
  background: linear-gradient(180deg, rgba(255, 211, 77, 1), rgba(255, 199, 62, .98));
  color: #10151f;
  border-color: rgba(255, 211, 77, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    0 10px 24px rgba(255, 211, 77, 0.18);
}

.service-editor-support-panel {
  margin-top: 20px;
  background: linear-gradient(180deg, rgba(16, 28, 66, 0.92), rgba(10, 19, 48, 0.94));
}

.service-editor-support-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.service-editor-summary-card {
  margin-top: 16px;
}

.sections-editor-wizard {
  margin-top: 6px;
  border-radius: 30px;
  border: 1px solid rgba(78, 161, 255, 0.12);
  background:
    radial-gradient(circle at top right, rgba(78, 161, 255, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(11, 29, 70, 0.98), rgba(7, 18, 38, 0.98));
  box-shadow:
    0 24px 42px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255,255,255,.04);
  padding: 24px 34px 28px;
}

.sections-editor-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.sections-editor-current {
  color: var(--master-gold);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -.01em;
}

.sections-editor-current strong {
  color: #fff5ce;
  font-size: 1.34rem;
  font-weight: 800;
}

#sectionsStatusPill.sections-editor-status {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

#sectionsStatusPill.sections-editor-status .pill {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.sections-editor-card {
  margin-top: 22px;
  background: linear-gradient(180deg, rgba(28, 39, 82, 0.96), rgba(22, 33, 71, 0.96));
  border-color: rgba(105, 233, 255, 0.08);
  padding: 24px;
  box-shadow:
    0 24px 40px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255,255,255,.04);
}

.sections-editor-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.sections-editor-copy {
  margin-top: 6px;
  color: var(--soft-text);
}

.sections-editor-actions {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

#backToEditorBtn {
  background: linear-gradient(180deg, rgba(78, 48, 89, 0.92), rgba(58, 36, 74, 0.92));
  color: #ffd8f0;
  border-color: rgba(255, 111, 174, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 8px 18px rgba(58, 36, 74, 0.20);
}

#saveSectionsBtn {
  background: linear-gradient(180deg, rgba(31, 68, 82, 0.96), rgba(28, 60, 72, 0.96));
  color: #bff7d8;
  border-color: rgba(99, 240, 169, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 8px 18px rgba(28, 60, 72, 0.20);
}

.songs-editor-wizard {
  margin-top: 6px;
  border-radius: 30px;
  border: 1px solid rgba(78, 161, 255, 0.12);
  background:
    radial-gradient(circle at top right, rgba(78, 161, 255, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(11, 29, 70, 0.98), rgba(7, 18, 38, 0.98));
  box-shadow:
    0 24px 42px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255,255,255,.04);
  padding: 24px 34px 28px;
}

.songs-editor-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.songs-editor-current {
  color: var(--master-gold);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -.01em;
}

.songs-editor-current strong {
  color: #fff5ce;
  font-size: 1.34rem;
  font-weight: 800;
}

#songsStatusPill.songs-editor-status {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

#songsStatusPill.songs-editor-status .pill {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.songs-editor-layout {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.songs-editor-sidebar,
.songs-editor-main {
  background: linear-gradient(180deg, rgba(28, 39, 82, 0.96), rgba(22, 33, 71, 0.96));
  border-color: rgba(105, 233, 255, 0.08);
  box-shadow:
    0 24px 40px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255,255,255,.04);
}

.song-nav-list {
  display: grid;
  gap: 12px;
}

.song-nav-item {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(19, 31, 74, 0.92), rgba(13, 24, 58, 0.92));
  padding: 14px 14px 12px;
  text-align: left;
  color: var(--primary-text);
  display: grid;
  gap: 8px;
}

.song-nav-item.is-active {
  border-color: rgba(105, 233, 255, 0.28);
  background: linear-gradient(180deg, rgba(44, 83, 166, 0.96), rgba(27, 56, 126, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 0 0 1px rgba(78, 161, 255, 0.12),
    0 14px 28px rgba(23, 48, 106, 0.24);
}

.song-nav-title {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.1;
}

.song-nav-meta {
  color: rgba(238, 244, 255, 0.72);
  font-size: .92rem;
}

.song-nav-status {
  display: flex;
  gap: 8px;
}

.song-dot-label {
  min-width: 34px;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .78rem;
  font-weight: 800;
  border: 1px solid rgba(255,255,255,.08);
}

.song-dot-label.is-pending {
  background: rgba(255, 211, 77, 0.12);
  border-color: rgba(255, 211, 77, 0.24);
  color: #ffe8a2;
}

.song-dot-label.is-ok {
  background: rgba(99, 240, 169, 0.12);
  border-color: rgba(99, 240, 169, 0.24);
  color: #cbffe1;
}

.song-dot-label.is-na {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.08);
  color: rgba(238, 244, 255, 0.62);
}

.song-tab-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.song-tab-btn {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(19, 31, 74, 0.92), rgba(13, 24, 58, 0.92));
  color: var(--primary-text);
}

.song-tab-btn.is-active {
  background: linear-gradient(180deg, rgba(46, 159, 222, 0.96), rgba(36, 124, 192, 0.94));
  border-color: rgba(105, 233, 255, 0.20);
  color: #f7fcff;
}

.song-tab-btn.is-recommended:not(.is-active):not(.is-disabled) {
  border-color: rgba(255, 211, 77, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 0 0 1px rgba(255, 211, 77, 0.08),
    0 0 18px rgba(255, 211, 77, 0.10);
}

.song-tab-btn.is-disabled {
  opacity: 0.58;
  border-color: rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(18, 26, 55, 0.88), rgba(12, 18, 42, 0.90));
  color: rgba(231,238,246,.62);
}

.song-tab-panel {
  display: none;
}

.song-tab-panel.is-active {
  display: block;
}

.song-data-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  align-items: start;
}

.song-data-field-note {
  color: var(--muted-text);
  font-size: 0.82rem;
  line-height: 1.5;
}

.song-mt-toggle {
  min-height: 42px;
  padding: 4px 12px 4px 4px;
  border-radius: 999px;
  gap: 10px;
  align-self: start;
}

.song-mt-toggle.is-off {
  border-color: rgba(255, 111, 174, 0.26);
  background: linear-gradient(180deg, rgba(255, 111, 174, 0.12), rgba(93, 33, 69, 0.14));
}

.song-mode-kpis {
  margin-top: 6px;
}

.song-inline-toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.song-inline-summary {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.songs-editor-actions {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  position: sticky;
  bottom: 14px;
  z-index: 18;
  padding: 14px 16px;
  border-radius: 22px;
  border: 1px solid rgba(120, 221, 255, 0.10);
  background:
    linear-gradient(180deg, rgba(12, 25, 60, 0.94), rgba(8, 18, 42, 0.96));
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255,255,255,.04);
  backdrop-filter: blur(10px);
}

.songs-editor-actions-left {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.publish-editor-wizard {
  margin-top: 6px;
  border-radius: 30px;
  border: 1px solid rgba(78, 161, 255, 0.12);
  background:
    radial-gradient(circle at top right, rgba(78, 161, 255, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(11, 29, 70, 0.98), rgba(7, 18, 38, 0.98));
  box-shadow:
    0 24px 42px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255,255,255,.04);
  padding: 24px 34px 28px;
}

.publish-editor-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.publish-editor-current {
  color: var(--master-gold);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -.01em;
}

.publish-editor-current strong {
  color: #fff5ce;
  font-size: 1.34rem;
  font-weight: 800;
}

#publishStatusPill.publish-editor-status {
  display: flex;
  align-items: center;
}

#publishStatusPill.publish-editor-status .pill {
  font-size: .92rem;
  padding: 10px 16px;
  border-radius: 999px;
}

.publish-editor-grid {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.publish-editor-actions {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

#backToEditorFromPublishBtn {
  background: linear-gradient(180deg, rgba(126, 61, 108, 0.80), rgba(72, 38, 82, 0.88));
  border-color: rgba(255, 182, 211, 0.18);
  color: #ffe8f4;
}

#savePublishDraftBtn {
  background: linear-gradient(180deg, rgba(46, 93, 84, 0.90), rgba(27, 66, 67, 0.94));
  border-color: rgba(175, 255, 229, 0.14);
  color: #dfffee;
}

#publishServiceBtn {
  background: linear-gradient(180deg, #ffd86a, #ffd34d);
  color: #1d1705;
  border-color: rgba(255, 211, 77, 0.12);
  box-shadow:
    0 14px 28px rgba(255, 211, 77, 0.16),
    inset 0 1px 0 rgba(255,255,255,.28);
}

#backToSectionsBtn {
  background: linear-gradient(180deg, rgba(126, 61, 108, 0.80), rgba(72, 38, 82, 0.88));
  border-color: rgba(255, 182, 211, 0.18);
  color: #ffe8f4;
}

#saveSongBtn {
  background: linear-gradient(180deg, rgba(46, 93, 84, 0.90), rgba(27, 66, 67, 0.94));
  border-color: rgba(175, 255, 229, 0.14);
  color: #dfffee;
}

#goToSongsBtn,
#goToReviewBtn {
  background: linear-gradient(180deg, #ffd86a, #ffd34d);
  border-color: rgba(255, 211, 77, 0.58);
  color: #101521;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    0 0 18px rgba(255, 211, 77, 0.16);
}

#songLyricsSearchBtn {
  background: linear-gradient(180deg, rgba(46, 93, 84, 0.90), rgba(27, 66, 67, 0.94));
  border-color: rgba(175, 255, 229, 0.14);
  color: #dfffee;
}

#previewLyricsBtn {
  background: linear-gradient(180deg, rgba(78, 60, 58, 0.92), rgba(58, 45, 49, 0.96));
  border-color: rgba(255, 211, 168, 0.14);
  color: #ffd9b0;
}

#songEditorView .hero-actions {
  display: none;
}

#songEditorView .content-grid.editor-grid {
  display: block;
}

.service-actions {
  flex-wrap: wrap;
}

.service-actions .btn-danger-soft {
  background: linear-gradient(180deg, rgba(255, 111, 174, 0.20), rgba(112, 32, 70, 0.20));
  border-color: rgba(255, 111, 174, 0.28);
  color: #ffe0ee;
}

#serviceEditorView .hero-bottom-actions {
  display: none;
}

#serviceEditorView .content-grid.editor-grid {
  display: block;
}

#sectionsView .hero-actions {
  display: none;
}

#sectionsView .content-grid.editor-grid {
  display: block;
}

.summary-kpis {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.summary-block,
.status-box {
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  padding: 14px 15px;
}

.status-box-title {
  font-size: .88rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary-text);
}

.status-box-copy {
  margin-top: 6px;
  color: var(--soft-text);
  line-height: 1.55;
}

.voice-pills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

#songEditorView .field {
  gap: 6px;
  align-content: start;
  align-self: start;
}

#songEditorView .field-input {
  min-height: 44px;
}

#songEditorView #songLeadSelect,
#songEditorView #songPresenterSelect,
#songEditorView #songMinisterSelect,
#songEditorView #songChoirsSelect,
#songEditorView #songSectionSelect,
#songEditorView #songKeySelect {
  height: 44px;
  min-height: 44px;
}

#songEditorView .field-textarea {
  min-height: 116px;
  padding: 12px 14px;
}

#songEditorView .song-inline-summary {
  margin-top: 10px;
}

#songEditorView .services-panel.songs-editor-main {
  padding: 16px;
}

#songEditorView .song-tab-row {
  margin-bottom: 10px;
}

#songEditorView #songUsesMtToggle {
  margin-bottom: 0;
}

#songEditorView .song-lyrics-workspace {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#songEditorView .song-lyrics-top-split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

#songEditorView .song-lyrics-bottom-panels {
  gap: 14px;
}

#songEditorView .song-lyrics-workspace .surface,
#songEditorView .song-lyrics-workspace .panelCard {
  min-height: auto;
}

#songEditorView .song-lyrics-workspace .fieldLabel {
  font-size: 1rem;
  letter-spacing: .08em;
}

#songEditorView .song-lyrics-workspace .fieldLabelRow {
  min-height: auto;
}

#songEditorView .song-mt-toggle .toggleBox {
  width: 42px;
  min-width: 42px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(61, 84, 118, 0.85);
  display: inline-flex;
  align-items: center;
  padding: 2px;
}

#songEditorView .song-mt-toggle .toggleKnob {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0,0,0,.24);
  transform: translateX(0);
  transition: transform 140ms ease;
}

#songEditorView .song-mt-toggle.active .toggleBox {
  background: linear-gradient(180deg, rgba(68, 140, 255, 0.92), rgba(47, 108, 214, 0.96));
  border-color: rgba(105, 233, 255, 0.24);
}

#songEditorView .song-mt-toggle.active .toggleKnob {
  transform: translateX(18px);
}

#songEditorView .song-mt-toggle.active #songUsesMtToggleLabel {
  color: #aaf6d1;
  font-weight: 800;
}

#songEditorView .song-mt-toggle.is-off #songUsesMtToggleLabel {
  color: #ffb7ce;
  font-weight: 800;
}

.choir-chips-grid {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  min-height: 18px;
  margin-top: 2px;
  max-width: 100%;
}

.choir-chip {
  min-height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(67, 227, 196, 0.28);
  background: linear-gradient(180deg, rgba(40, 214, 183, 0.92), rgba(25, 178, 151, 0.96));
  color: #071226;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 800;
  font-size: .76rem;
  letter-spacing: .01em;
}

.choir-chip-remove {
  font-size: .72rem;
  line-height: 1;
}

.voice-pill {
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-text);
  cursor: pointer;
}

.voice-pill.is-selected {
  border-color: rgba(255, 111, 174, 0.34);
  background: linear-gradient(180deg, rgba(255, 111, 174, 0.22), rgba(106, 34, 72, 0.18));
  color: #ffe7f1;
}

.voice-pill-box {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.12);
  display: grid;
  place-items: center;
  font-size: .8rem;
  flex: 0 0 auto;
}

.voice-pill.is-selected .voice-pill-box {
  border-color: rgba(255, 111, 174, 0.48);
  background: rgba(255,255,255,.08);
}

.toggle {
  min-height: 60px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--primary-text);
  cursor: pointer;
}

.toggle.active {
  border-color: rgba(99, 240, 169, 0.26);
  background: linear-gradient(180deg, rgba(99, 240, 169, 0.16), rgba(36, 96, 74, 0.14));
  box-shadow: 0 0 18px rgba(99, 240, 169, 0.08);
}

.toggleBox {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  display: grid;
  place-items: center;
  font-size: .92rem;
  flex: 0 0 auto;
}

.toggle.active .toggleBox {
  border-color: rgba(99, 240, 169, 0.34);
  background: rgba(99, 240, 169, 0.18);
  color: #ecfff4;
}

#songUsesMtToggle {
  margin-bottom: 14px;
}

.song-actions-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.mt-track-list {
  display: grid;
  gap: 12px;
}

.mt-track-row {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.mt-track-meta {
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(18,30,74,.98), rgba(11,23,58,.96));
  padding: 10px 12px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.mt-track-row.is-master .mt-track-meta {
  border-color: rgba(255,111,174,.34);
  background: linear-gradient(180deg, rgba(76,31,72,.94), rgba(28,22,52,.96));
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.02),
    0 0 18px rgba(255,111,174,.08);
}

.mt-control-group {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.mt-control {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: var(--primary-text);
  font-weight: 900;
  cursor: pointer;
}

.mt-control.play {
  border-color: rgba(185,255,106,.34);
  color: #d9ffbf;
  background: linear-gradient(180deg, rgba(185,255,106,.18), rgba(61,96,36,.24));
}

.mt-control.mute {
  border-color: rgba(255,111,174,.34);
  color: #ffd9ea;
  background: linear-gradient(180deg, rgba(255,111,174,.18), rgba(93,33,69,.24));
}

.mt-control.solo {
  border-color: rgba(255,211,77,.36);
  color: #fff1b3;
  background: linear-gradient(180deg, rgba(255,211,77,.18), rgba(104,76,24,.24));
}

.mt-track-name {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.02;
  letter-spacing: -.03em;
  cursor: text;
}

.mt-track-name-wrap {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.mt-track-master-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,211,77,.34);
  background: rgba(255,211,77,.10);
  color: #ffe7a8;
  font-size: .92rem;
  font-weight: 800;
}

.mt-track-wave {
  min-height: 76px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.08);
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(18,33,86,.96), rgba(11,21,54,.96));
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.02),
    0 12px 28px rgba(0,0,0,.22);
}

.mt-track-wave.kind-master {
  border-color: rgba(255,211,77,.28);
  background: linear-gradient(180deg, rgba(45,41,96,.96), rgba(20,19,57,.96));
}

.mt-track-wave.kind-vocal {
  border-color: rgba(214,124,255,.24);
  background: linear-gradient(180deg, rgba(68,41,126,.94), rgba(31,20,74,.96));
}

.mt-track-wave.kind-mix {
  border-color: rgba(99,240,169,.24);
  background: linear-gradient(180deg, rgba(20,77,90,.94), rgba(10,39,49,.96));
}

.mt-track-wave.kind-guitar {
  border-color: rgba(74,161,255,.24);
  background: linear-gradient(180deg, rgba(24,58,128,.94), rgba(12,28,79,.96));
}

.mt-track-wave.kind-bass {
  border-color: rgba(255,179,92,.24);
  background: linear-gradient(180deg, rgba(92,64,71,.94), rgba(43,31,48,.96));
}

.mt-wave-classic {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  top: 12px;
}

.mt-wave-centerline {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  transform: translateY(-50%);
  background: rgba(255,255,255,.12);
  box-shadow: 0 0 10px rgba(255,255,255,.04);
}

.mt-wave-bars {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 3px;
}

.mt-wave-bar {
  flex: 1 1 0;
  min-width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(214,124,255,.98), rgba(214,124,255,.56));
  box-shadow: 0 0 10px rgba(214,124,255,.18);
  transform: translateY(0);
}

.mt-wave-bar.kind-mix {
  background: linear-gradient(180deg, rgba(99,240,169,.98), rgba(99,240,169,.56));
  box-shadow: 0 0 10px rgba(99,240,169,.18);
}

.mt-wave-bar.kind-guitar {
  background: linear-gradient(180deg, rgba(74,161,255,.98), rgba(74,161,255,.56));
  box-shadow: 0 0 10px rgba(74,161,255,.18);
}

.mt-wave-bar.kind-bass {
  background: linear-gradient(180deg, rgba(255,179,92,.98), rgba(255,179,92,.56));
  box-shadow: 0 0 10px rgba(255,179,92,.18);
}

.mt-wave-bar.kind-master {
  background: linear-gradient(180deg, rgba(214,124,255,.98), rgba(214,124,255,.56));
}

.mt-wave-bar.kind-vocal {
  background: linear-gradient(180deg, rgba(214,124,255,.98), rgba(214,124,255,.56));
}

.mt-delete-btn {
  position: absolute;
  right: 12px;
  bottom: 12px;
  min-width: 92px;
  min-height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(255,111,174,.32);
  background: linear-gradient(180deg, rgba(181,67,121,.92), rgba(123,34,83,.96));
  color: #fff0f7;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(67,18,43,.28);
}

.mt-track-row.is-active .mt-track-wave {
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.03),
    0 12px 28px rgba(0,0,0,.22),
    0 0 18px rgba(255,211,77,.10);
}

.mt-control.mute.is-active {
  box-shadow: 0 0 16px rgba(255,111,174,.18);
}

.mt-control.solo.is-active {
  box-shadow: 0 0 16px rgba(255,211,77,.18);
}

.sections-list {
  display: grid;
  gap: 16px;
}

.section-card {
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  padding: 8px 18px 18px;
  display: grid;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.section-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 4px;
  border-radius: 999px;
  background: rgba(105,233,255,.75);
}

.section-drag-handle-wrap {
  display: block;
  margin: 0;
}

.section-drag-handle {
  width: 54px;
  min-width: 54px;
  height: 26px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(19, 31, 74, 0.96), rgba(11, 22, 55, 0.96));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: grab;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  position: absolute;
  left: 50%;
  top: 44px;
  transform: translateX(-50%);
  z-index: 1;
}

.section-drag-handle:active {
  cursor: grabbing;
}

.section-drag-handle span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(238, 244, 255, 0.76);
}

.section-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.section-card-title {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.05;
  letter-spacing: -.03em;
  cursor: text;
}

.section-card-meta {
  margin-top: 6px;
  color: var(--soft-text);
}

.section-card.runtime-preludio::before {
  background: var(--cyan);
}

.section-card.runtime-set::before {
  background: var(--action-blue);
}

.section-card.runtime-set {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.03), transparent 26%),
    linear-gradient(180deg, rgba(15, 25, 56, 0.98), rgba(8, 18, 42, 0.99));
  border-color: rgba(255, 255, 255, 0.10);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.02),
    0 12px 30px rgba(0, 0, 0, 0.26),
    0 0 14px rgba(10, 18, 38, 0.10);
}

.section-card.runtime-ofrenda::before {
  background: var(--master-gold);
}

.section-card.runtime-final::before {
  background: var(--vocal-purple);
}

.section-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.section-card-actions .btn[data-remove-section] {
  background: linear-gradient(180deg, rgba(255, 111, 174, 0.24), rgba(112, 32, 70, 0.18));
  border-color: rgba(255, 111, 174, 0.28);
  color: #ffe5f0;
}

#deleteServiceBtn {
  background: linear-gradient(180deg, rgba(255, 111, 174, 0.24), rgba(112, 32, 70, 0.18));
  border-color: rgba(255, 111, 174, 0.28);
  color: #ffe5f0;
}

.hero-bottom-actions #deleteServiceBtn {
  background: linear-gradient(180deg, rgba(255, 111, 174, 0.28), rgba(112, 32, 70, 0.22));
  border-color: rgba(255, 111, 174, 0.32);
}

.song-placeholder-list {
  display: grid;
  gap: 12px;
}

.song-placeholder {
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(61, 48, 89, 0.96), rgba(49, 38, 73, 0.96));
  padding: 18px 15px 14px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    inset 0 0 22px rgba(255,255,255,.05),
    0 10px 22px rgba(0, 0, 0, 0.16);
  position: relative;
}

.song-placeholder:hover {
  border-color: rgba(255,255,255,.22);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    inset 0 0 24px rgba(255,255,255,.06),
    0 14px 26px rgba(0, 0, 0, 0.18);
}

.song-drag-handle {
  width: 32px;
  min-width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(19, 31, 74, 0.96), rgba(11, 22, 55, 0.96));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: grab;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translateX(-50%);
  z-index: 1;
}

.song-drag-handle:active {
  cursor: grabbing;
}

.song-drag-handle span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(238, 244, 255, 0.76);
}

.song-placeholder-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.song-placeholder.song-tone-1 {
  background: linear-gradient(180deg, rgba(31, 68, 82, 0.96), rgba(28, 60, 72, 0.96));
  border-color: rgba(99, 240, 169, 0.14);
}

.song-placeholder.song-tone-2 {
  background: linear-gradient(180deg, rgba(78, 48, 89, 0.92), rgba(58, 36, 74, 0.92));
  border-color: rgba(255, 111, 174, 0.16);
}

.song-placeholder.song-tone-3 {
  background: linear-gradient(180deg, rgba(70, 60, 68, 0.94), rgba(56, 46, 54, 0.94));
  border-color: rgba(255, 211, 77, 0.14);
}

.song-placeholder.song-tone-4 {
  background: linear-gradient(180deg, rgba(33, 54, 108, 0.94), rgba(24, 43, 92, 0.94));
  border-color: rgba(111, 124, 255, 0.20);
}

.song-placeholder-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: text;
  color: #f7fbff;
}

.song-placeholder-meta {
  margin-top: 4px;
  color: rgba(238, 244, 255, 0.74);
}

.song-placeholder-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}

.icon-action-btn {
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 800;
}

.icon-action-btn.remove {
  background: linear-gradient(180deg, rgba(150, 50, 96, 0.82), rgba(108, 29, 68, 0.86));
  border-color: rgba(255, 182, 211, 0.22);
  color: #fff0f7;
  box-shadow: 0 8px 18px rgba(66, 13, 38, 0.24);
}

.icon-action-btn.drag {
  background: linear-gradient(180deg, rgba(176, 128, 44, 0.84), rgba(120, 84, 18, 0.88));
  border-color: rgba(255, 234, 170, 0.20);
  color: #fff7d8;
  cursor: grab;
  box-shadow: 0 8px 18px rgba(74, 50, 8, 0.22);
}

.icon-action-btn.drag:active {
  cursor: grabbing;
}

.song-placeholder.is-dragging {
  opacity: 0.5;
  border-color: rgba(255, 211, 77, 0.34);
}

.section-card.is-dragging {
  opacity: 0.54;
}

.section-card.is-drop-target {
  border-color: rgba(105, 233, 255, 0.30);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.02),
    0 12px 30px rgba(0, 0, 0, 0.26),
    0 0 0 2px rgba(105, 233, 255, 0.12);
}

.song-placeholder.is-drop-target {
  border-color: rgba(185, 255, 106, 0.34);
  box-shadow: 0 0 0 2px rgba(185, 255, 106, 0.12);
}

.song-placeholder.is-drop-target.drop-after {
  box-shadow:
    0 0 0 2px rgba(185, 255, 106, 0.12),
    inset 0 -3px 0 rgba(185, 255, 106, 0.44);
}

.field-invalid-pulse {
  border-color: rgba(255, 138, 122, 0.52) !important;
  box-shadow:
    0 0 0 3px rgba(255, 138, 122, 0.16),
    0 0 18px rgba(255, 138, 122, 0.14) !important;
  animation: fieldPulseX 320ms ease;
}

@keyframes fieldPulseX {
  0% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
  100% { transform: translateX(0); }
}

.section-add-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.btn-section-create {
  background: linear-gradient(180deg, #ffd86a, #ffd34d);
  border-color: rgba(255, 211, 77, 0.58);
  color: #101521;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    0 0 18px rgba(255, 211, 77, 0.16);
}

.btn-song-add {
  background: linear-gradient(180deg, rgba(111, 124, 255, 0.92), rgba(83, 94, 214, 0.94));
  border-color: rgba(164, 173, 255, 0.20);
  color: #eef2ff;
}

.inline-edit {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid rgba(105,233,255,.22);
  background: linear-gradient(180deg, rgba(5, 12, 29, 0.92), rgba(12, 19, 42, 0.96));
  color: var(--primary-text);
  outline: none;
}

.inline-edit:focus {
  border-color: rgba(105,233,255,.36);
  box-shadow: 0 0 0 3px rgba(78,161,255,.12);
}

.lyrics-workspace {
  display: grid;
  gap: 18px;
}

.lyrics-top-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.lyrics-steps {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.step-card {
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(19,31,74,.96), rgba(10,19,45,.96));
  padding: 14px 14px 12px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02);
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 4px;
  align-items: start;
}

.step-card:nth-child(1) {
  border-color: rgba(173,123,255,.18);
  background: linear-gradient(180deg, rgba(90, 56, 138, .28), rgba(17, 26, 59, .96));
}

.step-card:nth-child(2) {
  border-color: rgba(173,123,255,.24);
  background: linear-gradient(180deg, rgba(109, 66, 168, .32), rgba(17, 26, 59, .96));
}

.step-card:nth-child(3) {
  border-color: rgba(173,123,255,.30);
  background: linear-gradient(180deg, rgba(128, 78, 198, .38), rgba(17, 26, 59, .96));
}

.step-card:nth-child(4) {
  border-color: rgba(173,123,255,.38);
  background: linear-gradient(180deg, rgba(151, 95, 224, .46), rgba(17, 26, 59, .96));
}

.step-index {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  font-size: .78rem;
  font-weight: 800;
  color: #e9f6ff;
  background: rgba(78,161,255,.18);
  border: 1px solid rgba(105,233,255,.28);
  grid-row: 1 / span 2;
  margin-bottom: 0;
}

.step-card h3 {
  margin: 0 0 6px;
  font-size: .96rem;
  line-height: 1.15;
}

.step-card p {
  margin: 0;
  color: var(--soft-text);
  line-height: 1.4;
  font-size: .86rem;
}

.surface {
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(17,29,71,.96), rgba(9,18,43,.98));
  padding: 14px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 540px;
}

.fieldLabelRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  min-height: 74px;
}

.fieldLabel {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.12;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.fieldHint {
  color: var(--soft-text);
  text-align: right;
  line-height: 1.5;
  font-size: .92rem;
}

.rawInput {
  width: 100%;
  min-height: 320px;
  height: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(6,12,29,.96), rgba(9,16,38,.98));
  color: var(--primary-text);
  padding: 18px;
  resize: none;
  outline: none;
  font: 500 1rem/1.65 "Consolas", "Courier New", monospace;
}

.rawInput:focus {
  border-color: rgba(105,233,255,.30);
  box-shadow: 0 0 0 3px rgba(78,161,255,.10);
}

.options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.parser-option {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--soft-text);
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
}

.previewSurface {
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.previewHead .fieldLabel {
  padding-top: 6px;
  padding-left: 4px;
}

.previewCard {
  min-height: 320px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(30,42,72,.94), rgba(24,35,63,.96));
  padding: 18px;
  color: var(--primary-text);
  white-space: pre-wrap;
  overflow: auto;
  font: 500 1rem/1.65 "Consolas", "Courier New", monospace;
}

.previewCard.is-applied {
  border-color: rgba(99, 240, 169, 0.38);
  box-shadow:
    inset 0 0 0 1px rgba(99, 240, 169, 0.14),
    0 0 0 1px rgba(99, 240, 169, 0.08),
    0 0 24px rgba(99, 240, 169, 0.12);
}

.previewStats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.statCard {
  min-height: 92px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(22,35,82,.94), rgba(13,22,55,.96));
}

.statCard:nth-child(1) {
  border-color: rgba(78,161,255,.22);
}

.statCard:nth-child(2) {
  border-color: rgba(111,124,255,.22);
}

.statCard:nth-child(3) {
  border-color: rgba(255,211,77,.22);
  background: linear-gradient(180deg, rgba(55,50,69,.94), rgba(31,28,43,.96));
}

.statLabel {
  color: var(--soft-text);
  font-size: .9rem;
}

.statValue {
  margin-top: 8px;
  font-size: 2rem;
  line-height: 1;
  font-weight: 800;
}

.bottomPanels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.panelCard {
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(15,26,63,.96), rgba(9,18,43,.98));
  padding: 16px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  min-height: 340px;
  align-items: start;
  align-self: start;
}

.panelCardHead {
  display: grid;
  gap: 6px;
}

.panelCardTitle {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.panelCardHint {
  color: var(--soft-text);
  line-height: 1.5;
  font-size: .92rem;
}

.panelCardBody {
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  align-content: flex-start;
  align-self: start;
  gap: 12px;
  padding-top: 0;
  padding-right: 4px;
}

.lyrics-block-item,
.lyrics-order-item {
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  padding: 14px;
}

.lyrics-item-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.lyrics-item-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.lyrics-item-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.lyrics-block-item {
  display: grid;
  gap: 6px;
}

.lyrics-block-label,
.lyrics-order-label {
  font-size: 1rem;
  font-weight: 800;
}

.lyrics-block-copy,
.lyrics-order-copy {
  color: var(--soft-text);
  line-height: 1.5;
  font-size: .92rem;
}

.lyrics-order-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.lyrics-order-item-wide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.lyrics-order-left {
  min-width: 0;
}

.lyrics-order-left-main {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-width: 0;
}

.lyrics-order-copy-wrap {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding-top: 2px;
}

.lyrics-order-index {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: .92rem;
  font-weight: 800;
  color: #eef7ff;
  background: linear-gradient(180deg, rgba(78,161,255,.24), rgba(40,73,156,.18));
  border: 1px solid rgba(78,161,255,.28);
}

.lyrics-order-actions {
  display: flex;
  gap: 6px;
  align-items: start;
  justify-content: flex-end;
  flex-wrap: nowrap;
  flex: 0 0 auto;
}

.lyrics-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 12px;
  align-self: flex-start;
}

.lyrics-repeat-stepper {
  min-height: 32px;
  padding: 2px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.lyrics-order-menu {
  position: relative;
}

.lyrics-order-menu summary {
  list-style: none;
}

.lyrics-order-menu summary::-webkit-details-marker {
  display: none;
}

.lyrics-order-menu-list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 2;
  min-width: 140px;
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(17,29,71,.98), rgba(9,18,43,.99));
  box-shadow: 0 14px 30px rgba(0,0,0,.28);
}

.lyrics-order-menu:not([open]) .lyrics-order-menu-list {
  display: none;
}

.lyrics-order-drag {
  width: 38px;
  min-width: 38px;
  height: 38px;
}

.lyrics-order-label,
.lyrics-order-copy {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#applyLyricsBtn {
  background: linear-gradient(180deg, #ffd86a, #ffd34d);
  border-color: rgba(255, 211, 77, 0.58);
  color: #101521;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    0 0 18px rgba(255, 211, 77, 0.16);
}

#songMtReviewBtn {
  background: linear-gradient(180deg, #ffd86a, #ffd34d);
  border-color: rgba(255, 211, 77, 0.58);
  color: #101521;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    0 0 18px rgba(255, 211, 77, 0.16);
}

#songEditorView #mtAddTrackBtn {
  background: linear-gradient(180deg, rgba(111, 124, 255, 0.92), rgba(83, 94, 214, 0.94));
  border-color: rgba(164, 173, 255, 0.20);
  color: #eef2ff;
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  padding: 0 16px;
  align-self: center;
  margin: 0;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#songEditorView #confirmMtReviewBtn {
  background: linear-gradient(180deg, #ffd86a, #ffd34d);
  border-color: rgba(255, 211, 77, 0.58);
  color: #101521;
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  padding: 0 16px;
  line-height: 1;
  align-self: center;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    0 0 18px rgba(255, 211, 77, 0.16);
}

#songEditorView #songMtPanel .song-inline-toolbar {
  margin-bottom: 12px;
  align-items: center;
  display: flex;
  gap: 12px;
}

#songEditorView #songMtPanel .mt-track-list {
  margin-top: 4px;
}

#lyricsOrderList [data-structure-entry].is-dragging {
  opacity: .72;
}

#lyricsOrderList [data-structure-entry].is-drop-target {
  border-color: rgba(214, 124, 255, .38);
  box-shadow: 0 0 0 2px rgba(214, 124, 255, .14);
}

.repeat-value {
  min-width: 20px;
  text-align: center;
  font-size: .84rem;
  font-weight: 800;
}

.btn-mini {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 12px;
}

.icon-mini {
  min-width: 32px;
  padding: 0;
}

.lyrics-remove-btn {
  background: linear-gradient(180deg, rgba(255, 111, 174, 0.24), rgba(112, 32, 70, 0.18));
  border-color: rgba(255, 111, 174, 0.28);
  color: #ffe5f0;
}

.lyrics-block-preview {
  margin: 0;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.06);
  background: linear-gradient(180deg, rgba(8,14,33,.9), rgba(10,17,38,.94));
  color: var(--primary-text);
  white-space: pre-wrap;
  overflow: auto;
  font: 500 .94rem/1.55 "Consolas", "Courier New", monospace;
}

.compact-empty {
  min-height: 140px;
  padding: 18px;
}

.publish-review-list,
.publish-review-songs {
  display: grid;
  gap: 12px;
}

.publish-kpis {
  margin-bottom: 4px;
}

.publish-row,
.publish-song-item {
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  padding: 14px 15px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02);
}

.publish-song-item.has-mt-issues {
  border-color: rgba(255,211,77,.24);
  background:
    radial-gradient(circle at top right, rgba(255,211,77,.14), transparent 34%),
    linear-gradient(180deg, rgba(55,43,24,.96), rgba(18,23,46,.97));
}

.publish-meta-block {
  position: relative;
  overflow: hidden;
}

.publish-meta-primary {
  background:
    radial-gradient(circle at top right, rgba(105,233,255,.16), transparent 34%),
    linear-gradient(180deg, rgba(20,36,88,.96), rgba(12,22,56,.96));
  border-color: rgba(105,233,255,.18);
}

.publish-service-hero {
  display: grid;
  gap: 10px;
}

.publish-service-name {
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -.04em;
  font-weight: 800;
  color: var(--primary-text);
}

.publish-service-date {
  font-size: 1.05rem;
  line-height: 1.4;
  color: #e4ecff;
  font-weight: 700;
}

.publish-service-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.publish-color-pill {
  color: #f7fbff;
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  gap: 0;
  width: 44px;
  justify-content: center;
  padding-inline: 0;
}

.publish-color-swatch {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 0 0 2px rgba(255,255,255,.06);
  display: inline-block;
}

.publish-meta-secondary {
  background:
    radial-gradient(circle at top right, rgba(255,211,77,.18), transparent 34%),
    linear-gradient(180deg, rgba(58,44,26,.94), rgba(28,23,31,.96));
  border-color: rgba(255,211,77,.18);
}

.publish-row-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.publish-row-title {
  font-size: 1rem;
  font-weight: 800;
}

.publish-row-copy {
  margin-top: 6px;
  color: var(--soft-text);
  line-height: 1.5;
}

.publish-song-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.publish-song-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.publish-song-issues {
  margin-top: 10px;
  display: grid;
  gap: 5px;
  color: #ffefc1;
  font-size: .82rem;
  line-height: 1.45;
}

.publish-check.is-ok {
  border-color: rgba(99,240,169,.20);
  background:
    radial-gradient(circle at top right, rgba(99,240,169,.14), transparent 34%),
    linear-gradient(180deg, rgba(18,52,58,.95), rgba(12,24,44,.96));
}

.publish-check.is-warn {
  border-color: rgba(255,211,77,.20);
  background:
    radial-gradient(circle at top right, rgba(255,211,77,.14), transparent 34%),
    linear-gradient(180deg, rgba(53,41,22,.95), rgba(25,22,39,.96));
}

.publish-check.is-error {
  border-color: rgba(255, 111, 174, 0.24);
  background:
    radial-gradient(circle at top right, rgba(255, 111, 174, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(68, 24, 46, 0.96), rgba(28, 16, 34, 0.97));
}

.publish-attention {
  animation: publishAttentionPulse 1.4s ease;
}

@keyframes publishAttentionPulse {
  0%, 100% {
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.02);
  }
  35%, 70% {
    box-shadow: 0 0 0 2px rgba(255,211,77,.36), 0 0 28px rgba(255,211,77,.22);
  }
}

.publish-check-tone-1 {
  box-shadow: 0 0 0 1px rgba(111,124,255,.10), 0 0 18px rgba(111,124,255,.06);
}

.publish-check-tone-2 {
  box-shadow: 0 0 0 1px rgba(214,124,255,.10), 0 0 18px rgba(214,124,255,.06);
}

.publish-check-tone-3 {
  box-shadow: 0 0 0 1px rgba(105,233,255,.10), 0 0 18px rgba(105,233,255,.06);
}

.publish-check-tone-4 {
  box-shadow: 0 0 0 1px rgba(255,211,77,.10), 0 0 18px rgba(255,211,77,.06);
}

.publish-runtime-blue {
  background:
    radial-gradient(circle at top right, rgba(105,233,255,.12), transparent 34%),
    linear-gradient(180deg, rgba(17,39,92,.96), rgba(10,21,52,.97));
  border-color: rgba(105,233,255,.16);
}

.publish-runtime-set {
  background:
    radial-gradient(circle at top right, rgba(214,124,255,.12), transparent 34%),
    linear-gradient(180deg, rgba(32,31,88,.96), rgba(13,20,51,.97));
  border-color: rgba(214,124,255,.16);
}

.publish-runtime-amber {
  background:
    radial-gradient(circle at top right, rgba(255,179,92,.12), transparent 34%),
    linear-gradient(180deg, rgba(58,39,28,.96), rgba(24,20,39,.97));
  border-color: rgba(255,179,92,.16);
}

.publish-runtime-green {
  background:
    radial-gradient(circle at top right, rgba(99,240,169,.12), transparent 34%),
    linear-gradient(180deg, rgba(21,52,54,.96), rgba(12,23,43,.97));
  border-color: rgba(99,240,169,.16);
}

.pill-violet {
  color: #f3ddff;
  border-color: rgba(214,124,255,.32);
  background: rgba(214,124,255,.12);
}

@media (max-width: 1180px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    grid-template-columns: 1fr;
  }

  .service-side {
    width: auto;
  }

  .editor-split {
    grid-template-columns: 1fr;
  }

  .section-add-row {
    grid-template-columns: 1fr;
  }

  .lyrics-top-split,
  .bottomPanels {
    grid-template-columns: 1fr;
  }

  .lyrics-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lyrics-bank-grid {
    grid-template-columns: 1fr;
  }

  .surface {
    min-height: auto;
  }
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-shell.auth-locked .sidebar {
    padding: 18px;
  }

  .app-shell.auth-locked .profile-card {
    width: min(100%, 100%);
    min-height: calc(100vh - 36px);
    grid-template-columns: 1fr;
    background:
      radial-gradient(circle at top, rgba(42,195,255,.10), transparent 26%),
      linear-gradient(180deg, rgba(10,20,52,.94), rgba(7,14,34,.99));
  }

  .app-shell.auth-locked .profile-card::before {
    top: 34px;
    left: 26px;
  }

  .app-shell.auth-locked .auth-brand-logo,
  .app-shell.auth-locked .profile-name,
  .app-shell.auth-locked .profile-role,
  .app-shell.auth-locked .profile-verse {
    margin-left: 26px;
    margin-right: 26px;
  }

  .app-shell.auth-locked .auth-brand-logo {
    width: 150px;
    height: 150px;
    margin-top: 34px;
  }

  .app-shell.auth-locked .profile-name {
    font-size: clamp(42px, 13vw, 66px);
  }

  .app-shell.auth-locked .profile-verse {
    margin-bottom: 18px;
    font-size: .92rem;
  }

  .app-shell.auth-locked .cloud-auth-card {
    grid-column: 1;
    grid-row: auto;
    width: auto;
    margin: 20px 22px 24px;
  }

  .app-shell.auth-locked .cloud-login-credit {
    grid-column: 1;
    width: auto;
    margin: -4px 22px 24px;
  }

  .hero-top {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-wrap: wrap;
  }

  .modal-actions {
    flex-direction: column-reverse;
  }

  .editor-form-grid {
    grid-template-columns: 1fr;
  }

  .field-span-2 {
    grid-column: span 1;
  }

  .service-editor-wizard {
    padding: 18px;
  }

  .sections-editor-wizard {
    padding: 18px;
  }

  .songs-editor-wizard {
    padding: 18px;
  }

  .publish-editor-wizard {
    padding: 18px;
  }

  .service-editor-current {
    margin-left: 0;
  }

  .service-editor-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sections-editor-toolbar {
    align-items: stretch;
  }

  .songs-editor-layout {
    grid-template-columns: 1fr;
  }

  .song-data-grid {
    grid-template-columns: 1fr;
  }

  .service-editor-basic-grid {
    grid-template-columns: 1fr;
  }

  .service-editor-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .sections-editor-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .songs-editor-actions {
    flex-direction: column;
    align-items: stretch;
    bottom: 10px;
  }

  .publish-editor-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .service-editor-actions-left,
  .service-editor-support-actions,
  .songs-editor-actions-left {
    width: 100%;
  }

  #saveServiceDraftBtn,
  #goToSectionsBtn,
  #backToServicesBtn,
  #backToEditorBtn,
  #saveSectionsBtn,
  #goToSongsBtn,
  #newSectionBtn,
  #backToSectionsBtn,
  #saveSongBtn,
  #goToReviewBtn,
  #backToEditorFromPublishBtn,
  #savePublishDraftBtn,
  #publishServiceBtn,
  .service-editor-support-actions .btn {
    width: 100%;
  }
}
#publishReviewView .hero-card {
  padding-top: 20px;
  padding-bottom: 18px;
}

#publishReviewView .hero-copy p {
  margin-top: 10px;
}

.preparation-hero-card {
  width: 100%;
}

.preparation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.preparation-service-card {
  display: grid;
  gap: 16px;
  align-content: start;
}

.preparation-service-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.preparation-card-eyebrow {
  font-size: .78rem;
  margin-bottom: 6px;
}

.preparation-service-title {
  margin: 0;
  font-size: 1.72rem;
  line-height: 1;
}

.preparation-service-date {
  margin-top: 8px;
  color: var(--soft-text);
  font-size: .94rem;
}

.preparation-service-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.preparation-service-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(130, 255, 227, 0.16);
  background:
    linear-gradient(180deg, rgba(120, 89, 255, 0.16), rgba(50, 170, 255, 0.10)),
    rgba(255,255,255,.04);
  color: #eef6ff;
  font-size: .9rem;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 18px rgba(93, 122, 255, 0.08);
}

.preparation-open-btn {
  justify-self: start;
}

.preparation-detail-hero {
  display: grid;
  gap: 16px;
}

.preparation-detail-hero-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.preparation-detail-copy h1 {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 3.7rem);
  line-height: .96;
}

.preparation-detail-copy p {
  margin: 10px 0 0;
  color: var(--soft-text);
  font-size: 1rem;
}

.preparation-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.preparation-songs-btn {
  background: linear-gradient(180deg, rgba(105, 233, 255, 0.96), rgba(68, 135, 255, 0.88));
  color: #041320;
  border-color: rgba(105, 233, 255, 0.36);
}

.preparation-mode-btn {
  background: linear-gradient(180deg, rgba(185, 86, 255, 0.98), rgba(114, 44, 210, 0.94));
  border-color: rgba(214, 124, 255, 0.42);
  box-shadow: 0 0 24px rgba(185, 86, 255, 0.18);
}

.preparation-mode-btn.is-active {
  background: linear-gradient(180deg, rgba(102, 255, 191, 0.98), rgba(16, 174, 119, 0.92));
  color: #031713;
  border-color: rgba(102, 255, 191, 0.34);
}

.preparation-mode-hint {
  color: #efe4ff;
  font-size: .98rem;
  font-weight: 700;
}

.preparation-practice-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(102, 255, 191, 0.28);
  background: linear-gradient(90deg, rgba(48, 255, 176, 0.18), rgba(114, 44, 210, 0.18));
  box-shadow: 0 0 26px rgba(48, 255, 176, 0.10);
}

.preparation-summary-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  border-color: rgba(255, 214, 92, 0.26);
  background: linear-gradient(180deg, rgba(255, 214, 92, 0.14), rgba(56, 39, 11, 0.18));
}

.preparation-summary-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(255, 226, 102, 0.96), rgba(255, 190, 62, 0.92));
  color: #101521;
  font-weight: 900;
  box-shadow: 0 0 22px rgba(255, 214, 92, 0.18);
}

.preparation-summary-copy {
  display: grid;
  gap: 4px;
}

.preparation-summary-copy strong {
  color: #fff7d6;
}

.preparation-summary-copy span {
  color: #f2e9bb;
  font-size: .94rem;
}

.preparation-practice-banner-copy {
  display: grid;
  gap: 4px;
}

.preparation-practice-eyebrow {
  margin: 0;
}

.preparation-practice-banner-copy strong {
  font-size: 1rem;
}

.preparation-practice-banner-copy span {
  color: var(--soft-text);
  font-size: .92rem;
}

.preparation-exit-practice-btn {
  background: linear-gradient(180deg, rgba(255, 111, 174, 0.94), rgba(179, 52, 99, 0.88));
  border-color: rgba(255, 111, 174, 0.28);
  color: #fff5fa;
}

.preparation-practice-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.preparation-detail-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.preparation-detail-shell.is-open {
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
}

.preparation-songs-drawer {
  display: none;
}

.preparation-songs-drawer.is-open {
  display: block;
}

.preparation-song-list {
  display: grid;
  gap: 10px;
}

.preparation-song-item {
  width: 100%;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255,255,255,.03);
  color: var(--primary-text);
  text-align: left;
  cursor: pointer;
}

.preparation-song-item.is-active {
  border-color: rgba(105, 233, 255, 0.34);
  background: linear-gradient(180deg, rgba(78, 161, 255, 0.18), rgba(17, 36, 86, 0.32));
  box-shadow: inset 0 0 0 1px rgba(105, 233, 255, 0.12);
}

.preparation-song-item-title {
  font-weight: 800;
  font-size: 1rem;
}

.preparation-song-item-meta {
  margin-top: 6px;
  color: var(--muted-text);
  font-size: .86rem;
}

.preparation-song-item-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
}

.preparation-song-item-state {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: var(--soft-text);
  font-size: .76rem;
  font-weight: 800;
  flex: 0 0 auto;
}

.preparation-song-item-state.is-ready {
  border-color: rgba(102, 255, 191, 0.26);
  background: rgba(102, 255, 191, 0.12);
  color: #dffff3;
}

.preparation-song-item-state.is-loading {
  border-color: rgba(105, 233, 255, 0.26);
  background: rgba(105, 233, 255, 0.12);
  color: #e7fbff;
}

.preparation-song-item-state.is-error {
  border-color: rgba(255, 111, 174, 0.24);
  background: rgba(255, 111, 174, 0.12);
  color: #ffe6f0;
}

.preparation-song-item-state.is-idle,
.preparation-song-item-state.is-empty {
  border-color: rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: var(--soft-text);
}

.preparation-main-panel {
  display: grid;
  gap: 16px;
  position: relative;
}

.preparation-sticky-stack {
  position: sticky;
  top: 8px;
  z-index: 6;
  display: grid;
  gap: 10px;
  padding: 10px 0 6px;
  background: linear-gradient(180deg, rgba(16, 26, 52, 0.96), rgba(16, 26, 52, 0.92));
  backdrop-filter: blur(14px);
}

.preparation-song-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.preparation-song-title {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1;
}

.preparation-song-meta {
  margin-top: 8px;
  color: var(--soft-text);
  font-size: .96rem;
}

.preparation-tools-toggle {
  min-width: 46px;
  min-height: 46px;
  border-radius: 16px;
  border: 1px solid var(--border-soft);
  background: rgba(255,255,255,.04);
  color: var(--primary-text);
  cursor: pointer;
}

.preparation-tools {
  display: none;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}

.preparation-tools.is-open {
  display: flex;
}

.preparation-tool-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.05);
  color: var(--primary-text);
  cursor: pointer;
  font-weight: 700;
}

.preparation-tool-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: rgba(105, 233, 255, 0.12);
  color: var(--cyan);
  font-size: .72rem;
  font-weight: 900;
}

.preparation-lyrics-sheet {
  display: grid;
  gap: 14px;
}

.preparation-section-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.preparation-reference-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.preparation-reference-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(43, 222, 255, 0.34);
  background:
    linear-gradient(180deg, rgba(18, 50, 86, 0.92), rgba(10, 30, 58, 0.98));
  color: #eefbff;
  cursor: pointer;
  font-weight: 800;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 0 0 1px rgba(43, 222, 255, 0.10),
    0 12px 28px rgba(7, 24, 48, 0.16);
}

.preparation-reference-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: rgba(43, 222, 255, 0.12);
  color: #5fe8ff;
  font-size: .76rem;
  font-weight: 900;
}

.preparation-reference-player {
  position: fixed;
  z-index: 28;
  min-width: 280px;
  min-height: 180px;
  border-radius: 22px;
  border: 1px solid rgba(67, 127, 231, 0.24);
  background:
    radial-gradient(circle at top left, rgba(43, 222, 255, 0.10), transparent 28%),
    linear-gradient(180deg, rgba(11, 24, 56, 0.96), rgba(6, 16, 38, 0.98));
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255,255,255,.06);
  overflow: hidden;
  resize: both;
}

.preparation-reference-player.is-minimized {
  width: 248px;
  min-width: 248px;
  min-height: 0;
  resize: none;
}

.preparation-reference-player-head {
  min-height: 52px;
  padding: 0 10px 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(67, 127, 231, 0.16);
  background:
    linear-gradient(180deg, rgba(25, 49, 102, 0.94), rgba(14, 31, 69, 0.94));
  cursor: move;
}

.preparation-reference-player-title {
  color: #eef8ff;
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.preparation-reference-player-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.preparation-reference-player-btn {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  color: #edf5ff;
  cursor: pointer;
  font-size: 1rem;
}

.preparation-reference-player-body {
  width: 100%;
  height: calc(100% - 52px);
  min-height: 128px;
  background: rgba(3, 9, 24, 0.82);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.preparation-reference-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000000;
}

.preparation-reference-player-footer {
  padding: 10px 12px 12px;
  display: flex;
  justify-content: flex-end;
  background: linear-gradient(180deg, rgba(8, 16, 36, 0.22), rgba(8, 16, 36, 0.72));
}

.preparation-reference-error {
  height: 100%;
  padding: 20px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 12px;
  color: #dce8ff;
}

.preparation-reference-error strong {
  font-size: 0.98rem;
}

.preparation-reference-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(43, 222, 255, 0.28);
  color: #e9fbff;
  text-decoration: none;
  background: rgba(43, 222, 255, 0.08);
  font-weight: 800;
}

@media (max-width: 720px) {
  .preparation-reference-player {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px);
    max-height: 228px;
    resize: none;
  }

  .preparation-reference-player.is-minimized {
    width: min(248px, calc(100vw - 24px));
    min-width: min(248px, calc(100vw - 24px));
  }

  .preparation-reference-player-body {
    min-height: 0;
  }

  .preparation-reference-player-head {
    min-height: 48px;
  }

  .preparation-reference-player-footer {
    padding: 8px 10px 10px;
  }

  .preparation-reference-link {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.82rem;
  }
}

.preparation-section-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color: var(--soft-text);
  font-size: .88rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.preparation-section-chip.is-cyan {
  border-color: rgba(31, 224, 207, 0.40);
  color: #d7fffb;
  box-shadow: inset 0 0 0 1px rgba(31, 224, 207, 0.08);
}

.preparation-section-chip.is-violet {
  border-color: rgba(140, 120, 255, 0.40);
  color: #efe9ff;
  box-shadow: inset 0 0 0 1px rgba(140, 120, 255, 0.08);
}

.preparation-section-chip.is-amber {
  border-color: rgba(255, 200, 60, 0.42);
  color: #fff1c0;
  box-shadow: inset 0 0 0 1px rgba(255, 200, 60, 0.08);
}

.preparation-section-chip.is-active {
  transform: translateY(-1px);
}

.preparation-section-chip.is-cyan.is-active {
  background: rgba(31, 224, 207, 0.18);
  box-shadow: inset 0 0 0 1px rgba(31, 224, 207, 0.12), 0 0 18px rgba(31, 224, 207, 0.16);
}

.preparation-section-chip.is-violet.is-active {
  background: rgba(140, 120, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(140, 120, 255, 0.12), 0 0 18px rgba(140, 120, 255, 0.16);
}

.preparation-section-chip.is-amber.is-active {
  background: rgba(255, 200, 60, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 200, 60, 0.12), 0 0 18px rgba(255, 200, 60, 0.14);
}

.preparation-lyrics-block {
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(3, 8, 20, 0.34);
  scroll-margin-block: 140px;
}

.preparation-lyrics-block.is-cyan {
  border-color: rgba(31, 224, 207, 0.40);
  box-shadow: inset 0 0 0 1px rgba(31, 224, 207, 0.06);
}

.preparation-lyrics-block.is-violet {
  border-color: rgba(140, 120, 255, 0.40);
  box-shadow: inset 0 0 0 1px rgba(140, 120, 255, 0.06);
}

.preparation-lyrics-block.is-amber {
  border-color: rgba(255, 200, 60, 0.40);
  box-shadow: inset 0 0 0 1px rgba(255, 200, 60, 0.06);
}

.preparation-lyrics-viewer-block {
  display: grid;
  gap: 18px;
}

.preparation-lyrics-block-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.preparation-lyrics-block-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  flex: 0 0 11px;
}

.preparation-lyrics-block-dot.is-cyan {
  background: rgba(31, 224, 207, 0.95);
  box-shadow: 0 0 14px rgba(31, 224, 207, 0.36);
}

.preparation-lyrics-block-dot.is-violet {
  background: rgba(140, 120, 255, 0.95);
  box-shadow: 0 0 14px rgba(140, 120, 255, 0.34);
}

.preparation-lyrics-block-dot.is-amber {
  background: rgba(255, 200, 60, 0.95);
  box-shadow: 0 0 14px rgba(255, 200, 60, 0.34);
}

.preparation-lyrics-block-label {
  color: #eef4ff;
  font-size: .98rem;
  font-weight: 800;
  letter-spacing: .02em;
}

.preparation-line-pair {
  display: grid;
  gap: 6px;
}

.preparation-line-chords {
  color: #ffd34d;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: pre-wrap;
}

.preparation-line-chords-only {
  color: #eef4ff;
}

.preparation-line-lyric {
  color: #eef4ff;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.55;
  white-space: pre-wrap;
}

.preparation-lyrics-lines {
  margin: 0;
  color: var(--primary-text);
  white-space: pre-wrap;
  word-break: break-word;
  font: 600 1rem/1.75 "Consolas", "Courier New", monospace;
}

.preparation-empty-state {
  min-height: 220px;
  display: grid;
  place-items: center;
}

.preparation-player-shell {
  display: grid;
  gap: 14px;
}

.preparation-player-shell.is-loading {
  border-color: rgba(105, 233, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(105, 233, 255, 0.08), 0 0 22px rgba(105, 233, 255, 0.08);
}

.preparation-player-shell.is-practice {
  position: sticky;
  bottom: 10px;
  z-index: 7;
  background: linear-gradient(180deg, rgba(16, 24, 45, 0.98), rgba(10, 16, 32, 0.98));
  backdrop-filter: blur(14px);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.24);
}

.preparation-player-shell.is-collapsed {
  gap: 10px;
}

.preparation-player-shell.is-collapsed .preparation-player-top > div:first-child,
.preparation-player-shell.is-collapsed .preparation-player-loading-chip,
.preparation-player-shell.is-collapsed .preparation-player-track-hint,
.preparation-player-shell.is-collapsed .preparation-track-chip-list {
  display: none !important;
}

.preparation-player-shell.is-collapsed .preparation-player-top {
  justify-content: flex-end;
}

.preparation-player-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.preparation-player-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.preparation-player-controls [data-preparation-player-action="rewind"] {
  background: linear-gradient(180deg, rgba(112, 140, 255, 0.24), rgba(55, 76, 168, 0.22));
  border-color: rgba(136, 163, 255, 0.24);
  color: #eef4ff;
}

.preparation-player-controls [data-preparation-player-action="play"] {
  background: linear-gradient(180deg, rgba(88, 224, 255, 0.92), rgba(55, 136, 255, 0.90));
  border-color: rgba(128, 242, 255, 0.36);
  color: #06111f;
  box-shadow: 0 0 18px rgba(88, 224, 255, 0.18);
}

.preparation-player-controls [data-preparation-player-action="pause"] {
  background: linear-gradient(180deg, rgba(155, 113, 255, 0.26), rgba(88, 62, 190, 0.22));
  border-color: rgba(185, 150, 255, 0.24);
  color: #f3ebff;
}

.preparation-player-controls [data-preparation-player-action="stop"] {
  background: linear-gradient(180deg, rgba(255, 160, 106, 0.24), rgba(163, 76, 49, 0.22));
  border-color: rgba(255, 188, 145, 0.24);
  color: #fff0e5;
}

.preparation-player-toggle-btn {
  background: linear-gradient(180deg, rgba(255, 214, 92, 0.24), rgba(163, 119, 34, 0.22));
  border-color: rgba(255, 221, 124, 0.30);
  color: #fff7d4;
}

.preparation-player-note {
  color: var(--muted-text);
  font-size: .9rem;
  line-height: 1.5;
}

.preparation-player-loading-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(105, 233, 255, 0.24);
  background: rgba(105, 233, 255, 0.14);
  color: #e6fbff;
  font-size: .82rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 0 16px rgba(105, 233, 255, 0.10);
}

.preparation-player-loading-chip.is-hidden {
  display: none;
}

.preparation-player-progress {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.preparation-player-time,
.preparation-player-track-hint {
  color: var(--soft-text);
  font-size: .88rem;
  font-weight: 700;
}

.preparation-player-bar {
  appearance: none;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);
  padding: 0;
  cursor: pointer;
}

.preparation-player-bar-fill {
  width: 24%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(105, 233, 255, 0.92), rgba(111, 124, 255, 0.96));
  box-shadow: 0 0 18px rgba(105, 233, 255, 0.16);
}

.preparation-track-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.preparation-track-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(94, 222, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(61, 125, 255, 0.20), rgba(25, 53, 129, 0.16)),
    rgba(255,255,255,.04);
  color: #eef6ff;
  cursor: pointer;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 0 16px rgba(74, 161, 255, 0.06);
}

.preparation-track-chip:hover {
  border-color: rgba(110, 235, 255, 0.34);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 18px rgba(74, 161, 255, 0.12);
}

.preparation-track-chip.is-muted {
  border-color: rgba(255, 124, 184, 0.30);
  background: linear-gradient(180deg, rgba(124, 45, 88, 0.42), rgba(74, 28, 56, 0.34));
  color: #ffd8e8;
}

.preparation-back-to-top {
  position: sticky;
  justify-self: end;
  margin-right: 12px;
  margin-top: -64px;
  bottom: 18px;
  top: auto;
  z-index: 8;
  width: 46px;
  min-width: 46px;
  height: 46px;
  min-height: 46px;
  padding: 0;
  border-radius: 14px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, box-shadow .18s ease;
  border-color: rgba(255, 223, 93, 0.34);
  background: linear-gradient(180deg, rgba(255, 232, 116, 0.96), rgba(255, 198, 63, 0.92));
  color: #111827;
  box-shadow: 0 0 22px rgba(255, 214, 92, 0.22);
}

.preparation-back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.sermons-home-shell {
  border-radius: 30px;
  border: 1px solid rgba(127, 159, 226, 0.18);
  background: rgba(12, 25, 51, 0.92);
  box-shadow: 0 30px 70px rgba(3, 10, 24, 0.45);
  overflow: hidden;
}

.sermons-home-topbar {
  padding: 18px 22px 16px;
  border-bottom: 1px solid rgba(127, 159, 226, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
}

.sermons-home-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #5fdcff;
  font-weight: 800;
}

.sermons-home-titlebar {
  margin-top: 6px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.sermons-home-btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.sermons-home-btn {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(127, 159, 226, 0.18);
  background: rgba(255,255,255,0.05);
  color: #edf5ff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.sermons-home-btn-primary {
  border: 0;
  background: linear-gradient(180deg, #60caff, #4c88ff);
  color: #ffffff;
  box-shadow: 0 16px 28px rgba(76, 136, 255, 0.26);
}

.sermons-home-btn-secondary {
  background: linear-gradient(180deg, rgba(144, 120, 255, 0.18), rgba(83, 67, 169, 0.22));
  border-color: rgba(144, 120, 255, 0.3);
  color: #efe8ff;
}

.sermons-home-content {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sermons-hero-card {
  border-radius: 26px;
  border: 1px solid rgba(127, 159, 226, 0.18);
  background: linear-gradient(180deg, rgba(20, 37, 73, 0.94), rgba(12, 24, 49, 0.98));
  padding: 20px;
  box-shadow: 0 18px 34px rgba(6, 14, 31, 0.22);
}

.sermons-hero-card h1 {
  margin: 8px 0 10px;
  font-size: 46px;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.sermons-hero-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.sermons-meta-bullet {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #dce8ff;
}

.sermons-meta-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.sermons-meta-dot-draft {
  background: #ffd86a;
  box-shadow: 0 0 0 4px rgba(255, 216, 106, 0.12), 0 0 18px rgba(255, 216, 106, 0.65);
}

.sermons-meta-dot-ready {
  background: #5cf0bb;
  box-shadow: 0 0 0 4px rgba(92, 240, 187, 0.12), 0 0 18px rgba(92, 240, 187, 0.65);
}

.sermons-meta-dot-unlinked {
  background: #9b86ff;
  box-shadow: 0 0 0 4px rgba(155, 134, 255, 0.12), 0 0 18px rgba(155, 134, 255, 0.65);
}

.sermons-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 12px;
}

.sermons-toolbar-input,
.sermons-toolbar-select,
.sermons-modal-input,
.sermons-modal-select {
  width: 100%;
  min-height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(127, 159, 226, 0.18);
  background: rgba(255,255,255,0.04);
  color: #edf5ff;
  padding: 0 14px;
  font: inherit;
  outline: none;
}

.sermons-toolbar-input::placeholder,
.sermons-modal-input::placeholder {
  color: rgba(158, 175, 211, 0.88);
}

.sermons-toolbar-select option,
.sermons-modal-select option {
  color: #102240;
}

.sermons-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.sermons-card {
  border-radius: 24px;
  border: 1px solid rgba(127, 159, 226, 0.18);
  background: linear-gradient(180deg, rgba(20, 37, 73, 0.9), rgba(12, 24, 49, 0.94));
  padding: 18px;
  box-shadow: 0 18px 34px rgba(6, 14, 31, 0.22);
  min-width: 0;
  cursor: pointer;
}

.sermons-card.is-active {
  border-color: rgba(95, 220, 255, 0.34);
  box-shadow: 0 0 0 1px rgba(95,220,255,0.16) inset, 0 0 28px rgba(95,220,255,0.14), 0 18px 34px rgba(6, 14, 31, 0.24);
}

.sermons-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.sermons-card-title {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.sermons-card-subtitle {
  margin: 0;
  color: #9eafd3;
  font-size: 14px;
  line-height: 1.6;
}

.sermons-card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.sermons-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(127, 159, 226, 0.18);
  background: rgba(255,255,255,0.04);
  color: #edf5ff;
  font-size: 12px;
  font-weight: 800;
}

.sermons-badge-verse {
  background: rgba(95, 220, 255, 0.14);
  border-color: rgba(95, 220, 255, 0.24);
  color: #cef2ff;
}

.sermons-badge-blocks {
  background: rgba(144, 120, 255, 0.16);
  border-color: rgba(144, 120, 255, 0.28);
  color: #ece3ff;
}

.sermons-badge-service {
  background: rgba(88, 215, 166, 0.15);
  border-color: rgba(88, 215, 166, 0.24);
  color: #cdf8e7;
}

.sermons-badge-draft {
  background: rgba(240, 200, 87, 0.16);
  border-color: rgba(240, 200, 87, 0.24);
  color: #ffedb2;
}

.sermons-badge-ready {
  background: rgba(255,255,255,0.07);
  color: #eef5ff;
}

.sermons-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.sermons-mini-btn {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(127, 159, 226, 0.18);
  background: rgba(255,255,255,0.04);
  color: #edf5ff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.sermons-mini-btn-primary {
  background: linear-gradient(180deg, rgba(95,220,255,0.18), rgba(76,136,255,0.22));
  border-color: rgba(95,220,255,0.24);
  color: #dff7ff;
}

.sermons-mini-btn-link {
  background: linear-gradient(180deg, rgba(88, 215, 166, 0.16), rgba(39, 135, 104, 0.22));
  border-color: rgba(88, 215, 166, 0.26);
  color: #dcfff0;
}

.sermons-mini-btn-danger {
  background: linear-gradient(180deg, rgba(255, 124, 183, 0.16), rgba(143, 44, 94, 0.22));
  border-color: rgba(255, 124, 183, 0.28);
  color: #ffe3ef;
}

.sermons-empty-state {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.sermons-modal-card {
  width: min(100%, 520px);
}

.sermons-modal-head {
  background: linear-gradient(90deg, rgba(95,220,255,0.12), rgba(144,120,255,0.14));
}

.sermons-modal-title {
  margin-top: 8px;
}

.sermons-modal-body {
  gap: 14px;
}

.sermons-delete-copy {
  margin: 0;
  color: var(--soft-text);
  line-height: 1.7;
}

.sermons-delete-btn {
  background: linear-gradient(180deg, rgba(255, 124, 183, 0.94), rgba(196, 59, 113, 0.9));
  border-color: rgba(255, 124, 183, 0.3);
  color: #ffffff;
}

.sermon-editor-shell {
  border-radius: 30px;
  border: 1px solid rgba(127, 159, 226, 0.18);
  background: rgba(12, 25, 51, 0.92);
  box-shadow: 0 30px 70px rgba(3, 10, 24, 0.45);
}

.editor-full-shell {
  padding: 18px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.editor-hero-card,
.editor-toolbar-card,
.editor-section-card,
.sermon-editor-inspector .panel {
  border-radius: 24px;
  border: 1px solid rgba(127, 159, 226, 0.18);
  background: rgba(19, 35, 69, 0.92);
  padding: 18px;
}

.editor-hero-card {
  background: linear-gradient(180deg, rgba(20, 37, 73, 0.94), rgba(12, 24, 49, 0.98));
  box-shadow: 0 18px 34px rgba(6, 14, 31, 0.22);
}

.editor-toolbar-card {
  position: sticky;
  top: 18px;
  z-index: 12;
  box-shadow: 0 12px 26px rgba(3, 10, 24, 0.2), 0 0 0 1px rgba(127, 159, 226, 0.08) inset;
}

.editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.editor-title {
  margin: 8px 0 0;
  font-size: 42px;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.editor-title-input {
  width: min(760px, 100%);
  margin: 8px 0 0;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #eef5ff;
  font-size: 42px;
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.editor-title-input::placeholder {
  color: rgba(238, 245, 255, 0.42);
}

.is-hidden {
  display: none !important;
}

.hero-meta,
.editor-hero-actions,
.section-button-row,
.format-button-row,
.reference-chip-row,
.note-chip-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-meta {
  margin-top: 24px;
  gap: 18px;
}

.editor-hero-actions {
  justify-content: flex-end;
  align-self: flex-start;
}

.sermon-save-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(111, 124, 255, 0.24);
  background: rgba(255, 255, 255, 0.04);
  color: #dbe9ff;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.sermon-save-status[data-state="pending"] {
  border-color: rgba(255, 211, 77, 0.32);
  color: #ffe08a;
}

.sermon-save-status[data-state="saving"] {
  border-color: rgba(96, 202, 255, 0.34);
  color: #9be8ff;
}

.sermon-save-status[data-state="saved"] {
  border-color: rgba(91, 244, 179, 0.28);
  color: #8ff5cb;
}

.sermon-save-status[data-state="local"] {
  border-color: rgba(173, 123, 255, 0.26);
  color: #d9c0ff;
}

.sermon-save-status[data-state="error"] {
  border-color: rgba(255, 107, 146, 0.34);
  color: #ffb1c5;
}

.meta-bullet {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #dce8ff;
}

.meta-bullet-chip {
  border: 1px solid rgba(96, 240, 255, 0.22);
  background: rgba(96, 240, 255, 0.08);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
}

.meta-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.meta-dot.verse {
  background: #60f0ff;
  box-shadow: 0 0 0 4px rgba(96, 240, 255, 0.12), 0 0 18px rgba(96, 240, 255, 0.65);
}

.meta-dot.status {
  background: #ffd86a;
  box-shadow: 0 0 0 4px rgba(255, 216, 106, 0.12), 0 0 18px rgba(255, 216, 106, 0.65);
}

.meta-dot.count {
  background: #9b86ff;
  box-shadow: 0 0 0 4px rgba(155, 134, 255, 0.12), 0 0 18px rgba(155, 134, 255, 0.65);
}

.meta-dot.service {
  background: #5cf0bb;
  box-shadow: 0 0 0 4px rgba(92, 240, 187, 0.12), 0 0 18px rgba(92, 240, 187, 0.65);
}

.service-link,
.print,
.preview {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(127, 159, 226, 0.18);
  color: #edf5ff;
}

.service-link {
  background: linear-gradient(180deg, rgba(88, 215, 166, 0.16), rgba(39, 135, 104, 0.22));
  border-color: rgba(88, 215, 166, 0.26);
  color: #dcfff0;
}

.print {
  background: linear-gradient(180deg, rgba(255, 216, 106, 0.14), rgba(143, 111, 32, 0.22));
  border-color: rgba(255, 216, 106, 0.28);
  color: #fff0be;
}

.preview {
  background: linear-gradient(180deg, rgba(96, 240, 255, 0.14), rgba(76, 136, 255, 0.22));
  border-color: rgba(96, 240, 255, 0.28);
  color: #d8fbff;
}

.editor-hero-actions .btn.primary {
  border: 0;
  background: linear-gradient(180deg, #60caff, #4c88ff);
  color: #ffffff;
  box-shadow: 0 16px 28px rgba(76, 136, 255, 0.26);
}

.toolbar-chip,
.inline-reference-chip,
.note-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid transparent;
}

.toolbar-chip {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  color: #edf5ff;
  font-size: 13px;
  gap: 8px;
  cursor: pointer;
}

.toolbar-chip.template { background: rgba(92, 240, 187, 0.14); border-color: rgba(92, 240, 187, 0.3); color: #dcfff0; }
.toolbar-chip.intro { background: rgba(96, 240, 255, 0.14); border-color: rgba(96, 240, 255, 0.32); color: #d8fbff; }
.toolbar-chip.point { background: rgba(155, 134, 255, 0.14); border-color: rgba(155, 134, 255, 0.3); color: #ede5ff; }
.toolbar-chip.subpoint { background: rgba(121, 231, 255, 0.12); border-color: rgba(121, 231, 255, 0.28); color: #dcf9ff; }
.toolbar-chip.transition { background: rgba(255, 216, 106, 0.14); border-color: rgba(255, 216, 106, 0.3); color: #fff0be; }
.toolbar-chip.note { background: rgba(255, 145, 205, 0.14); border-color: rgba(255, 145, 205, 0.3); color: #ffe1f3; }
.toolbar-chip.conclusion { background: rgba(92, 240, 187, 0.14); border-color: rgba(92, 240, 187, 0.3); color: #dcfff0; }
.toolbar-chip.application { background: rgba(101, 173, 255, 0.14); border-color: rgba(101, 173, 255, 0.3); color: #def0ff; }
.toolbar-chip.announcements { background: rgba(255, 124, 183, 0.14); border-color: rgba(255, 124, 183, 0.3); color: #ffe2ef; }

.format-button-row {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(127, 159, 226, 0.18);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.editor-toolbar-spacer {
  flex: 1 1 auto;
  min-width: 12px;
}

.editor-options-btn {
  min-height: 42px;
  align-self: center;
}

.format-toolbar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 6px 8px;
  border-radius: 14px;
  border: 1px solid rgba(127, 159, 226, 0.2);
  background: rgba(255,255,255,0.07);
  box-shadow: 0 10px 26px rgba(3, 10, 24, 0.12);
}

.format-select,
.format-size {
  min-height: 30px;
  border: 0;
  outline: none;
  background: rgba(255,255,255,0.08);
  color: #eef6ff;
  border-radius: 10px;
  padding: 0 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.format-select option {
  background: #22385f;
  color: #eef6ff;
}

.format-select {
  color: #eef6ff;
}

.format-size {
  width: 56px;
  text-align: center;
}

.format-step,
.format-tool {
  border: 0;
  background: rgba(255,255,255,0.08);
  color: #f4f8ff;
  border-radius: 9px;
}

.format-step {
  width: 28px;
  height: 28px;
  font-size: 16px;
  font-weight: 800;
}

.format-tool {
  min-width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  padding: 0 8px;
}

.format-tool.bold { color: #d8fbff; }
.format-tool.italic { color: #ece4ff; }
.format-tool.underline { color: #fff0bf; }
.format-tool.color { color: #ffc7e2; }
.format-tool.highlight { color: #ffd86a; }
.format-tool.align { color: #dcfff0; min-width: 34px; }

.format-color-picker {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
  align-items: start;
}

.editor-layout.is-inspector-closed {
  grid-template-columns: minmax(0, 1fr);
}

.editor-main,
.live-structure-list,
.sermon-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.editor-empty-state-card {
  border-radius: 24px;
  border: 1px dashed rgba(127, 159, 226, 0.28);
  background: rgba(255,255,255,0.04);
  padding: 32px 24px;
  text-align: center;
}

.editor-empty-state-title {
  color: #edf5ff;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.editor-empty-state-copy {
  margin-top: 10px;
  color: #9eafd3;
  font-size: 14px;
  line-height: 1.7;
}

.sermon-editor-inspector {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sermon-editor-inspector:not(.is-open) {
  display: none;
}

.editor-section-card {
  background: rgba(255,255,255,0.98);
  border-color: rgba(95, 220, 255, 0.16);
  box-shadow: 0 18px 34px rgba(2, 10, 25, 0.1);
  opacity: 0.9;
  transform: scale(0.985);
  transition: opacity 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.editor-section-card.is-active {
  opacity: 1;
  transform: scale(1.012);
  box-shadow:
    0 0 0 1px rgba(95, 220, 255, 0.16) inset,
    0 0 34px rgba(95, 220, 255, 0.12),
    0 28px 52px rgba(2, 10, 25, 0.14);
}

.subpoint-card {
  margin-left: 32px;
  border-color: rgba(144, 120, 255, 0.28);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-head-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.drag-handle,
.ghost-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(127, 159, 226, 0.18);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.drag-handle {
  color: #b27b15;
  background: rgba(255, 216, 106, 0.18);
  border-color: rgba(255, 216, 106, 0.34);
  box-shadow: 0 0 18px rgba(255, 216, 106, 0.12);
  cursor: grab;
  user-select: none;
}

.drag-handle.is-dragging,
.drag-handle:active {
  cursor: grabbing;
}

.ghost-icon {
  background: rgba(255,255,255,0.96);
  color: #9db2d7;
}

.ghost-icon-delete {
  color: #ff7b9d;
  border-color: rgba(255, 124, 183, 0.28);
}

.ghost-icon-eye {
  color: #9db2d7;
}

.ghost-icon-eye svg {
  width: 18px;
  height: 18px;
  display: block;
}

.section-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 900;
  color: #4cc2ff;
}

.subpoint-card .section-tag {
  color: #a58dff;
}

.section-title-input,
.section-content-input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  color: inherit;
  cursor: text;
  user-select: text;
}

.section-title-input {
  margin: 2px 0 0;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #102240;
  font-weight: 800;
  min-width: 780px;
}

.edit-surface {
  border-radius: 22px;
  background: #ffffff;
  color: #102240;
  border: 0;
  box-shadow: none;
  padding: 18px;
}

.edit-surface.editing-strong {
  box-shadow: none;
  border: 0;
  outline: none;
}

.section-content-input {
  min-height: 160px;
  resize: none;
  overflow: hidden;
  color: #243a5f;
  font-size: 15px;
  line-height: 1.85;
  white-space: pre-wrap;
}

.section-content-editor {
  display: block;
  word-break: break-word;
}

.inline-verse-token {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0.18em;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid rgba(95, 220, 255, 0.38);
  background: rgba(95, 220, 255, 0.16);
  color: #2378a2;
  font-size: 0.92em;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
  vertical-align: baseline;
  cursor: pointer;
  user-select: none;
}

.inline-verse-token::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #5fdcff;
  box-shadow: 0 0 10px rgba(95, 220, 255, 0.45);
  flex: 0 0 auto;
}

.inline-verse-token:focus {
  outline: 2px solid rgba(95, 220, 255, 0.38);
  outline-offset: 2px;
}

.section-content-editor:empty::before {
  content: attr(data-placeholder);
  color: rgba(36, 58, 95, 0.42);
}

.reference-chip-row,
.note-chip-row {
  gap: 14px;
  margin-top: 16px;
}

.inline-reference-chip {
  background: rgba(95, 220, 255, 0.14);
  border-color: rgba(95, 220, 255, 0.3);
  color: #2378a2;
  padding-right: 14px;
  cursor: pointer;
}

.note-chip {
  background: rgba(240, 200, 87, 0.14);
  border-color: rgba(240, 200, 87, 0.3);
  color: #8e6510;
  cursor: pointer;
  padding-right: 10px;
}

.chip-remove {
  width: 16px;
  height: 16px;
  margin-left: 8px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  border: 0;
  background: rgba(16, 34, 64, 0.08);
  color: inherit;
  cursor: pointer;
  font-size: 10px;
  line-height: 1;
  flex: 0 0 auto;
}

.panel-title {
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #ffffff;
  margin-bottom: 12px;
}

.panel-subtitle {
  margin: 0 0 14px;
  color: #9eafd3;
  font-size: 14px;
  line-height: 1.6;
}

.live-structure-item {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  width: 100%;
  border: 0;
  background: transparent;
  color: #edf5ff;
  padding: 0;
  text-align: left;
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-top: 5px;
  flex: 0 0 auto;
  box-shadow: 0 0 0 4px transparent, 0 0 18px currentColor;
}

.live-dot.intro {
  color: #60f0ff;
  background: #60f0ff;
  box-shadow: 0 0 0 4px rgba(96, 240, 255, 0.12), 0 0 18px rgba(96, 240, 255, 0.65);
}

.live-dot.point {
  color: #9b86ff;
  background: #9b86ff;
  box-shadow: 0 0 0 4px rgba(155, 134, 255, 0.12), 0 0 18px rgba(155, 134, 255, 0.65);
}

.live-dot.subpoint {
  color: #67adff;
  background: #67adff;
  box-shadow: 0 0 0 4px rgba(103, 173, 255, 0.12), 0 0 18px rgba(103, 173, 255, 0.65);
}

.live-dot.transition {
  color: #ffd24d;
  background: #ffd24d;
  box-shadow: 0 0 0 4px rgba(255, 210, 77, 0.12), 0 0 18px rgba(255, 210, 77, 0.65);
}

.live-dot.conclusion {
  color: #5cf0bb;
  background: #5cf0bb;
  box-shadow: 0 0 0 4px rgba(92, 240, 187, 0.12), 0 0 18px rgba(92, 240, 187, 0.65);
}

.live-dot.application {
  color: #ff6fb2;
  background: #ff6fb2;
  box-shadow: 0 0 0 4px rgba(255, 111, 178, 0.12), 0 0 18px rgba(255, 111, 178, 0.65);
}

.live-dot.announcements {
  color: #ffa657;
  background: #ffa657;
  box-shadow: 0 0 0 4px rgba(255, 166, 87, 0.12), 0 0 18px rgba(255, 166, 87, 0.65);
}

.live-structure-item strong,
.mini-sermon-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.mini-sermon-card {
  border-radius: 20px;
  border: 1px solid rgba(127, 159, 226, 0.18);
  background: linear-gradient(180deg, rgba(17, 33, 66, 0.84), rgba(12, 24, 49, 0.9));
  padding: 14px 16px;
}

.mini-sermon-card.active {
  border-color: rgba(144, 120, 255, 0.34);
  background: linear-gradient(180deg, rgba(39, 33, 78, 0.94), rgba(26, 23, 58, 0.98));
  box-shadow:
    0 0 0 1px rgba(144,120,255,0.16) inset,
    0 0 28px rgba(144,120,255,0.14),
    0 18px 34px rgba(6, 14, 31, 0.24);
}

.mini-sermon-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 8px;
}

.mini-verse {
  color: #79e7ff;
  text-shadow: 0 0 16px rgba(121, 231, 255, 0.25);
}

.mini-blocks {
  color: #b296ff;
  text-shadow: 0 0 16px rgba(178, 150, 255, 0.24);
}

.sermons-modal-card {
  width: min(560px, 100%);
  border-radius: 28px;
  border: 1px solid rgba(127, 159, 226, 0.18);
  background: linear-gradient(180deg, rgba(17, 34, 69, 0.98), rgba(11, 22, 44, 0.98));
  box-shadow: 0 30px 70px rgba(3, 10, 24, 0.45);
}

.sermons-modal-head {
  padding: 20px 22px 16px;
  border-bottom: 1px solid rgba(127, 159, 226, 0.18);
  background: transparent;
}

.sermons-modal-title {
  margin-top: 0;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.sermons-modal-body {
  padding: 20px 22px 22px;
}

.sermons-modal-input,
.sermons-modal-select,
.sermons-modal-textarea {
  border-radius: 16px;
  border: 1px solid rgba(127, 159, 226, 0.18);
  background: rgba(255,255,255,0.04);
  color: #edf5ff;
  padding: 12px 14px;
}

.sermons-modal-select,
.sermons-modal-input {
  min-height: 48px;
}

.sermons-modal-textarea {
  min-height: 120px;
  resize: vertical;
}

.sermons-delete-copy {
  color: #9eafd3;
  font-size: 14px;
  line-height: 1.7;
}

.sermon-note-view-copy {
  color: #dce8ff;
  font-size: 16px;
  line-height: 1.8;
}

#sermonNoteViewDescription.sermon-note-view-copy,
#sermonVerseText.sermon-note-view-copy {
  color: #edf5ff;
}

.sermons-preview-card {
  width: min(100%, 980px);
}

.sermons-preview-body {
  overflow: auto;
}

.sermon-preview-shell {
  display: grid;
  gap: 20px;
}

.sermon-preview-head {
  border-radius: 24px;
  border: 1px solid rgba(127, 159, 226, 0.18);
  background: rgba(19, 35, 69, 0.92);
  padding: 22px;
}

.sermon-preview-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #5fdcff;
  font-weight: 800;
}

.sermon-preview-sermon-title {
  margin: 8px 0 0;
  font-size: 34px;
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: #edf5ff;
}

.sermon-preview-meta {
  margin-top: 14px;
  color: #79e7ff;
  font-size: 14px;
  font-weight: 700;
}

.sermon-preview-list {
  display: grid;
  gap: 16px;
}

.sermon-preview-block {
  border-radius: 24px;
  border: 1px solid rgba(127, 159, 226, 0.16);
  background: rgba(255,255,255,0.98);
  padding: 22px;
  color: #102240;
}

.sermon-preview-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 900;
  color: #4cc2ff;
}

.sermon-preview-title {
  margin: 8px 0 0;
  font-size: 26px;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #102240;
}

.sermon-preview-copy {
  margin: 16px 0 0;
  color: #243a5f;
  font-size: 15px;
  line-height: 1.85;
}

.sermon-preview-chip-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.sermon-preview-empty {
  border-radius: 24px;
  border: 1px solid rgba(127, 159, 226, 0.18);
  background: rgba(19, 35, 69, 0.92);
  padding: 22px;
  color: #dce8ff;
}

.sermons-modal-textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  border-radius: 16px;
  border: 1px solid rgba(127, 159, 226, 0.18);
  background: rgba(255,255,255,0.04);
  color: #edf5ff;
  padding: 12px 14px;
  font: inherit;
  outline: none;
}

.sermon-live-shell {
  height: calc(100vh - 44px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}

.sermon-live-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
  border-radius: 24px;
  border: 1px solid rgba(127, 159, 226, 0.18);
  background: linear-gradient(180deg, rgba(18, 38, 75, 0.98), rgba(11, 22, 44, 0.98));
  box-shadow: 0 30px 80px rgba(3, 10, 24, 0.42);
  min-height: 68px;
}

.sermon-live-topbar.timer-active {
  justify-content: center;
  position: relative;
}

.sermon-live-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.sermon-live-kicker {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #5fdcff;
  font-weight: 800;
}

.sermon-live-title {
  font-size: 26px;
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: #edf5ff;
}

.sermon-live-subline {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: #9eafd3;
  font-size: 12px;
  font-weight: 700;
}

.sermon-live-subline strong {
  color: #ffffff;
  font-weight: 800;
}

.sermon-live-main-verse-chip {
  min-height: 28px;
  padding: 0 12px;
}

.sermon-live-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.sermon-live-timer-card {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  min-height: 58px;
  padding: 4px 10px;
  border-radius: 18px;
  border: 1px solid rgba(95, 220, 255, 0.22);
  background: rgba(255,255,255,0.05);
}

.sermon-live-timer-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #9eafd3;
  font-weight: 800;
  margin-bottom: 4px;
}

.sermon-live-timer-value {
  font-size: 28px;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: #edf5ff;
}

.sermon-live-topbar.timer-active .sermon-live-timer-card {
  display: flex;
}

.sermon-live-topbar.timer-active .sermon-live-kicker {
  display: none;
}

.sermon-live-topbar.timer-active .sermon-live-title {
  font-size: 24px;
}

.sermon-live-topbar.timer-active .sermon-live-toolbar {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.sermon-live-topbar.timer-active .sermon-live-meta {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.sermon-live-btn {
  min-height: 40px;
  padding: 0 15px;
  border-radius: 14px;
  border: 1px solid rgba(127, 159, 226, 0.18);
  background: rgba(255,255,255,0.05);
  color: #edf5ff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.sermon-live-btn.clean,
.sermon-live-btn.back {
  background: linear-gradient(180deg, rgba(88, 215, 166, 0.16), rgba(39, 135, 104, 0.22));
  border-color: rgba(88, 215, 166, 0.26);
  color: #dcfff0;
}

.sermon-live-btn.timer {
  border: 0;
  background: linear-gradient(180deg, #60caff, #4c88ff);
  color: #ffffff;
  box-shadow: 0 16px 28px rgba(76, 136, 255, 0.26);
}

.sermon-live-stage {
  flex: 1;
  min-height: 0;
  border-radius: 34px;
  border: 1px solid rgba(127, 159, 226, 0.18);
  background: linear-gradient(180deg, rgba(18, 38, 75, 0.98), rgba(11, 22, 44, 0.98));
  box-shadow: 0 30px 80px rgba(3, 10, 24, 0.42);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sermon-live-reading-surface {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.985), rgba(247,249,253,0.975));
  color: #18314f;
  margin: 16px;
  border-radius: 28px;
  padding: 30px 32px 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sermon-live-reading-surface::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.sermon-live-content-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sermon-live-content-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.sermon-live-reading-surface.reading-animate {
  animation: sermonLiveSectionSwap 220ms ease;
}

.sermon-live-block-type {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #52cfff;
  margin-bottom: 14px;
}

.sermon-live-block-title {
  font-size: 44px;
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.05em;
  margin: 0 0 14px;
  color: #18314f;
}

.sermon-live-block-content {
  font-size: 33px;
  line-height: 1.56;
  letter-spacing: -0.025em;
  color: #18314f;
  white-space: normal;
}

.sermon-live-block-content *,
.sermon-live-block-content span,
.sermon-live-block-content font,
.sermon-live-block-content strong,
.sermon-live-block-content em,
.sermon-live-block-content u,
.sermon-live-block-content b,
.sermon-live-block-content i {
  font-size: inherit !important;
  line-height: inherit !important;
}

.sermon-live-inline-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.sermon-live-inline-chip {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.sermon-live-inline-chip.verse {
  background: rgba(95, 220, 255, 0.14);
  border-color: rgba(95, 220, 255, 0.24);
  color: #215da8;
}

.sermon-live-inline-chip.note {
  background: rgba(240, 200, 87, 0.16);
  border-color: rgba(240, 200, 87, 0.28);
  color: #8b6110;
}

.sermon-live-outline {
  position: fixed;
  top: 110px;
  right: 28px;
  width: 300px;
  max-width: calc(100vw - 56px);
  border-radius: 28px;
  border: 1px solid rgba(127, 159, 226, 0.18);
  background: linear-gradient(180deg, rgba(18, 38, 75, 0.98), rgba(11, 22, 44, 0.98));
  box-shadow: 0 30px 80px rgba(3, 10, 24, 0.42);
  overflow: hidden;
  display: none;
  z-index: 80;
}

.sermon-live-outline.is-open {
  display: block;
}

.sermon-live-outline-head {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(127, 159, 226, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: move;
  user-select: none;
}

.sermon-live-outline-title {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #ffffff;
  font-weight: 800;
}

.sermon-live-outline-close {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(127, 159, 226, 0.18);
  background: rgba(255,255,255,0.06);
  color: #ffffff;
  cursor: pointer;
  font-weight: 800;
}

.sermon-live-outline-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  max-height: 60vh;
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sermon-live-outline-list::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.sermon-live-outline-item {
  border-radius: 18px;
  border: 1px solid rgba(127, 159, 226, 0.18);
  background: rgba(255,255,255,0.05);
  color: #ffffff;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.sermon-live-outline-item.active {
  border-color: rgba(95, 220, 255, 0.34);
  background: rgba(95, 220, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(95,220,255,0.16);
}

.sermon-live-outline-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.sermon-live-outline-item.introduction .sermon-live-outline-dot { background: #5fdcff; box-shadow: 0 0 14px rgba(95,220,255,0.6); }
.sermon-live-outline-item.point .sermon-live-outline-dot { background: #9078ff; box-shadow: 0 0 14px rgba(144,120,255,0.62); }
.sermon-live-outline-item.subpoint .sermon-live-outline-dot { background: #65adff; box-shadow: 0 0 14px rgba(101,173,255,0.62); }
.sermon-live-outline-item.transition .sermon-live-outline-dot { background: #f0c857; box-shadow: 0 0 14px rgba(240,200,87,0.62); }
.sermon-live-outline-item.conclusion .sermon-live-outline-dot { background: #58d7a6; box-shadow: 0 0 14px rgba(88,215,166,0.62); }
.sermon-live-outline-item.application .sermon-live-outline-dot { background: #ff7cb7; box-shadow: 0 0 14px rgba(255,124,183,0.62); }
.sermon-live-outline-item.announcements .sermon-live-outline-dot { background: #ff9f52; box-shadow: 0 0 14px rgba(255,159,82,0.62); }

.sermon-live-outline-label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.sermon-live-outline-label strong {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sermon-live-outline-label span {
  font-size: 12px;
  color: #9eafd3;
}

.sermon-live-footer-bar {
  flex: 0 0 auto;
  margin-top: 28px;
  border-radius: 22px;
  background: rgba(10,23,43,0.94);
  color: #ffffff;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  z-index: 3;
}

.sermon-live-footer-nav {
  background: transparent;
  border: 0;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  text-align: left;
}

.sermon-live-footer-nav.right {
  text-align: right;
}

.sermon-live-footer-nav:disabled {
  opacity: 0.46;
  cursor: default;
}

.sermon-live-footer-center {
  text-align: center;
}

.sermon-live-footer-center strong,
.sermon-live-footer-nav strong {
  font-size: 15px;
}

.sermon-live-footer-bar small {
  display: block;
  opacity: 0.72;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.sermon-live-empty-card {
  border-radius: 28px;
  border: 1px solid rgba(127, 159, 226, 0.18);
  background: rgba(19, 35, 69, 0.92);
  box-shadow: 0 30px 80px rgba(3, 10, 24, 0.42);
  padding: 28px 30px;
  text-align: center;
}

.sermon-live-empty-card.inside {
  background: transparent;
  box-shadow: none;
  border-style: dashed;
}

.sermon-live-empty-title {
  color: #ffffff;
  font-size: 24px;
  font-weight: 800;
}

.sermon-live-empty-copy,
.sermon-live-modal-subtitle {
  margin-top: 8px;
  color: #9eafd3;
  font-size: 14px;
}

.sermon-live-modal-body {
  color: #edf5ff;
  font-size: 24px;
  line-height: 1.72;
  white-space: pre-wrap;
}

.sermon-live-modal-subtitle {
  color: #dce8ff;
}

@keyframes sermonLiveSectionSwap {
  from {
    opacity: 0.75;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .sermons-home-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .sermons-toolbar,
  .sermons-grid {
    grid-template-columns: 1fr;
  }

  .editor-layout {
    grid-template-columns: 1fr;
  }

  .sermon-live-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .sermon-live-reading-surface {
    padding: 24px 22px 16px;
  }

  .sermon-live-outline {
    right: 16px;
    left: 16px;
    width: auto;
  }

  .sermon-live-footer-bar {
    grid-template-columns: 1fr;
  }

  .subpoint-card {
    margin-left: 0;
  }

  .preparation-detail-shell.is-open {
    grid-template-columns: 1fr;
  }

  .preparation-practice-banner,
  .preparation-detail-hero-head,
  .preparation-player-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .preparation-back-to-top {
    margin-right: 8px;
    bottom: 14px;
    top: auto;
  }
}

@media print {
  body.sermon-printing {
    background: #ffffff !important;
    color: #111111 !important;
  }

  body.sermon-printing .sidebar,
  body.sermon-printing #sermonsView,
  body.sermon-printing .editor-toolbar-card,
  body.sermon-printing .editor-hero-actions,
  body.sermon-printing .sermon-editor-inspector,
  body.sermon-printing .overlay {
    display: none !important;
  }

  body.sermon-printing .app-shell,
  body.sermon-printing .main-column,
  body.sermon-printing .view-stack,
  body.sermon-printing #sermonEditorView,
  body.sermon-printing .sermon-editor-shell,
  body.sermon-printing .editor-full-shell,
  body.sermon-printing .editor-layout,
  body.sermon-printing .editor-main {
    display: block !important;
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
    background: #ffffff !important;
    box-shadow: none !important;
    border: 0 !important;
  }

  body.sermon-printing .editor-hero-card,
  body.sermon-printing .editor-section-card,
  body.sermon-printing .edit-surface {
    background: #ffffff !important;
    color: #111111 !important;
    box-shadow: none !important;
    border-color: rgba(0, 0, 0, 0.14) !important;
  }

  body.sermon-printing .editor-title,
  body.sermon-printing .meta-bullet,
  body.sermon-printing .section-tag,
  body.sermon-printing .section-title-input,
  body.sermon-printing .section-content-input {
    color: #111111 !important;
  }

  body.sermon-printing .hero-meta {
    margin-top: 14px !important;
  }

  body.sermon-printing .section-head {
    margin-bottom: 10px !important;
  }

  body.sermon-printing .drag-handle,
  body.sermon-printing .section-tools,
  body.sermon-printing .chip-remove {
    display: none !important;
  }

  body.sermon-printing .inline-reference-chip,
  body.sermon-printing .note-chip {
    border-color: rgba(0, 0, 0, 0.12) !important;
    background: rgba(0, 0, 0, 0.03) !important;
    color: #111111 !important;
  }

  body.preparation-printing {
      background: #ffffff !important;
      color: #111111 !important;
    }

  body.preparation-printing .sidebar,
  body.preparation-printing .topbar,
  body.preparation-printing .header-card,
  body.preparation-printing .preparation-detail-hero,
  body.preparation-printing .preparation-songs-drawer,
  body.preparation-printing .preparation-tools,
  body.preparation-printing .preparation-player-shell,
  body.preparation-printing .preparation-back-to-top,
  body.preparation-printing .preparation-practice-banner,
  body.preparation-printing .preparation-detail-hero .eyebrow,
  body.preparation-printing .preparation-detail-actions,
  body.preparation-printing .preparation-mode-hint,
  body.preparation-printing .preparation-tools-toggle,
  body.preparation-printing .preparation-section-chip-row {
    display: none !important;
  }

  body.preparation-printing .app-shell,
  body.preparation-printing .main-column,
  body.preparation-printing .view-stack,
  body.preparation-printing #preparationView,
  body.preparation-printing .preparation-detail-shell,
  body.preparation-printing .preparation-detail-content {
      display: block !important;
      max-width: none !important;
      width: 100% !important;
      margin: 0 !important;
      padding: 0 !important;
    gap: 0 !important;
  }

  body.preparation-printing .preparation-main-panel {
      display: block !important;
      border: 0 !important;
      box-shadow: none !important;
      background: #ffffff !important;
    color: #111111 !important;
    padding: 0 !important;
  }

  body.preparation-printing .preparation-sticky-stack {
    position: static !important;
    background: transparent !important;
    backdrop-filter: none !important;
    padding: 0 0 14px !important;
  }

  body.preparation-printing .preparation-song-head,
  body.preparation-printing .preparation-lyrics-block,
  body.preparation-printing .preparation-lyrics-block-head {
      background: transparent !important;
      color: #111111 !important;
      border-color: rgba(0, 0, 0, 0.18) !important;
      box-shadow: none !important;
    }

  body.preparation-printing .preparation-song-head {
      padding: 0 0 10px !important;
      margin: 0 0 16px !important;
      border-bottom: 1px solid rgba(0, 0, 0, 0.18) !important;
    }

  body.preparation-printing .preparation-lyrics-block {
      page-break-inside: avoid !important;
      break-inside: avoid-page !important;
      margin: 0 0 16px !important;
      padding: 0 0 12px !important;
      border-width: 1px !important;
      border-radius: 0 !important;
    }

  body.preparation-printing .preparation-lyrics-block-head {
      padding-bottom: 8px !important;
      margin-bottom: 10px !important;
    }
  
  body.preparation-printing .preparation-song-title,
  body.preparation-printing .preparation-song-meta,
  body.preparation-printing .preparation-lyrics-block-label,
  body.preparation-printing .preparation-line-lyric {
    color: #111111 !important;
  }

  body.preparation-printing .preparation-line-chords,
  body.preparation-printing .preparation-line-chords-only {
    color: #7a5a00 !important;
  }
}

#publishReviewView .hero-bottom-actions {
  margin-top: 14px;
}

.nav-item-profile {
  background:
    linear-gradient(180deg, rgba(82, 213, 255, 0.22), rgba(42, 96, 186, 0.24)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
  border-color: rgba(82, 213, 255, 0.34);
  color: #eefbff;
}

.nav-item-profile.is-active {
  background:
    linear-gradient(180deg, rgba(92, 229, 255, 0.36), rgba(54, 118, 255, 0.34)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  border-color: rgba(92, 229, 255, 0.46);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.05),
    0 0 22px rgba(92, 229, 255, 0.16);
}

.profile-shell {
  display: grid;
  gap: 20px;
}

.profile-grid {
  display: grid;
  gap: 20px;
}

.profile-grid-top {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-grid-bottom {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-hero {
  position: relative;
  min-height: 340px;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 360px;
  align-items: center;
  gap: 28px;
  padding: 34px 26px 28px;
  border-radius: 28px;
  border: 1px solid rgba(72, 132, 255, 0.24);
  background:
    radial-gradient(circle at 82% 22%, rgba(220, 73, 188, 0.20), transparent 28%),
    radial-gradient(circle at 16% 12%, rgba(29, 232, 255, 0.12), transparent 25%),
    linear-gradient(90deg, rgba(6, 17, 46, 0.98) 0%, rgba(8, 19, 53, 0.96) 48%, rgba(36, 18, 70, 0.84) 100%);
  box-shadow: 0 26px 80px rgba(3, 8, 24, 0.36), inset 0 0 48px rgba(60, 103, 255, 0.10);
  overflow: hidden;
}

.profile-hero.profile-hero-actions-open {
  overflow: visible;
  z-index: 8;
}

.profile-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 30%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02), transparent 20%, transparent 80%, rgba(255, 255, 255, 0.02));
  pointer-events: none;
}

.profile-hero > * {
  position: relative;
  z-index: 1;
}

.profile-hero-kicker {
  position: absolute;
  top: 24px;
  left: 26px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #53e9ff;
}

.profile-hero-photo-wrap {
  display: flex;
  justify-content: center;
  padding-top: 18px;
}

.profile-hero-photo {
  position: relative;
  width: 180px;
  height: 180px;
  padding: 8px;
  border-radius: 999px;
  background: linear-gradient(145deg, #28d7ff, #183782 58%, #6b39ff);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42), 0 0 30px rgba(39, 217, 255, 0.22);
}

.profile-hero-portrait {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.18), transparent 20%),
    linear-gradient(180deg, rgba(220, 232, 248, 0.94), rgba(19, 29, 55, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.profile-hero-initials {
  font-size: 52px;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: #102243;
}

.profile-photo-edit {
  position: absolute;
  right: -2px;
  bottom: 10px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  background: linear-gradient(145deg, #183d8d, #4b22c8);
  color: #ffffff;
  font-size: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.42);
}

.profile-hero-copy {
  display: grid;
  gap: 24px;
  padding-top: 20px;
}

.profile-hero-title h1 {
  margin: 0;
  font-size: 56px;
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.profile-hero-desc {
  max-width: 530px;
  margin: 12px 0 0;
  color: #dce6ff;
  font-size: 15px;
  line-height: 1.5;
}

.profile-hero-name-block {
  display: grid;
  gap: 16px;
}

.profile-hero-name {
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.profile-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-tag {
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(6, 19, 49, 0.72);
  border: 1px solid rgba(82, 130, 238, 0.34);
  color: #e6f2ff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: inset 0 0 18px rgba(0, 108, 255, 0.08);
}

.profile-tag-green {
  color: #67ffcb;
  border-color: rgba(24, 230, 177, 0.42);
}

.profile-tag-amber {
  color: #ffb347;
  border-color: rgba(255, 165, 46, 0.42);
}

.profile-tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}

.profile-hero-side {
  display: grid;
  align-content: space-between;
  gap: 28px;
  height: 100%;
}

.profile-hero-actions {
  position: relative;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.profile-hero-btn {
  min-width: 100%;
}

.profile-actions-toggle {
  min-width: 140px;
  border-color: rgba(105, 233, 255, 0.28);
  background:
    radial-gradient(circle at top left, rgba(105, 233, 255, 0.24), transparent 34%),
    linear-gradient(180deg, rgba(43, 98, 210, 0.94), rgba(24, 52, 126, 0.96));
  color: #f7fbff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 16px 30px rgba(9, 33, 92, 0.22),
    0 0 0 1px rgba(105, 233, 255, 0.08);
}

.profile-actions-toggle:hover,
.profile-actions-toggle:focus-visible {
  border-color: rgba(105, 233, 255, 0.4);
  background:
    radial-gradient(circle at top left, rgba(105, 233, 255, 0.28), transparent 36%),
    linear-gradient(180deg, rgba(58, 126, 235, 0.96), rgba(31, 70, 158, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    0 18px 34px rgba(7, 34, 104, 0.28),
    0 0 22px rgba(105, 233, 255, 0.14);
}

.profile-actions-toggle[aria-expanded="true"] {
  border-color: rgba(25, 230, 177, 0.42);
  background:
    radial-gradient(circle at top left, rgba(25, 230, 177, 0.20), transparent 34%),
    linear-gradient(180deg, rgba(19, 110, 130, 0.96), rgba(12, 63, 85, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    0 18px 34px rgba(4, 32, 36, 0.24),
    0 0 22px rgba(25, 230, 177, 0.12);
}

.profile-actions-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  padding: 10px;
  display: grid;
  gap: 10px;
  border-radius: 18px;
  border: 1px solid rgba(82, 130, 238, 0.28);
  background: rgba(7, 21, 48, 0.96);
  box-shadow: 0 20px 48px rgba(3, 8, 24, 0.38);
  z-index: 24;
}

.profile-menu-btn {
  justify-content: center;
}

.profile-hero-metrics {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.profile-stat-card {
  width: 88px;
  min-height: 78px;
  padding: 12px 10px;
  border-radius: 14px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  text-align: center;
  background: rgba(9, 24, 61, 0.76);
  border: 1px solid rgba(79, 116, 211, 0.34);
  box-shadow: inset 0 0 26px rgba(77, 112, 255, 0.08);
}

.profile-stat-card strong {
  color: #2bdeff;
  font-size: 28px;
  line-height: 1;
}

.profile-stat-card span {
  color: #d8e0f5;
  font-size: 11px;
}

.profile-hero-metrics .profile-stat-card:nth-child(1) {
  border-color: rgba(25, 230, 177, 0.34);
  box-shadow: inset 0 0 26px rgba(25, 230, 177, 0.09), 0 0 18px rgba(25, 230, 177, 0.08);
}

.profile-hero-metrics .profile-stat-card:nth-child(1) strong {
  color: #19e6b1;
  text-shadow: 0 0 14px rgba(25, 230, 177, 0.42);
}

.profile-hero-metrics .profile-stat-card:nth-child(2) {
  border-color: rgba(39, 217, 255, 0.34);
  box-shadow: inset 0 0 26px rgba(39, 217, 255, 0.09), 0 0 18px rgba(39, 217, 255, 0.08);
}

.profile-hero-metrics .profile-stat-card:nth-child(2) strong {
  color: #27d9ff;
  text-shadow: 0 0 14px rgba(39, 217, 255, 0.42);
}

.profile-hero-metrics .profile-stat-card:nth-child(3) {
  border-color: rgba(180, 77, 255, 0.34);
  box-shadow: inset 0 0 26px rgba(180, 77, 255, 0.09), 0 0 18px rgba(180, 77, 255, 0.08);
}

.profile-hero-metrics .profile-stat-card:nth-child(3) strong {
  color: #b44dff;
  text-shadow: 0 0 14px rgba(180, 77, 255, 0.42);
}

.profile-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 18%);
}

.profile-card-service {
  background:
    radial-gradient(circle at 12% 10%, rgba(25, 230, 177, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(7, 34, 56, 0.96), rgba(4, 18, 33, 0.96));
}

.profile-service-box {
  --profile-service-accent: #2ac3ff;
  border-radius: 18px;
  border: 1px solid rgba(72, 132, 255, 0.18);
  background: rgba(7, 21, 48, 0.54);
  padding: 18px 16px 16px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}

.profile-service-box.has-service-color::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 3px;
  border-radius: 999px;
  background: var(--profile-service-accent);
  box-shadow: 0 0 16px rgba(95, 220, 255, 0.16);
}

.profile-service-date {
  font-size: 24px;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.04em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.profile-service-date::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 999px;
  flex: 0 0 12px;
  background: var(--profile-service-accent, #2ac3ff);
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.05),
    0 0 16px rgba(95, 220, 255, 0.18);
}

.profile-service-meta {
  color: #d3dcf1;
  font-size: 14px;
  margin-bottom: 14px;
}

.profile-service-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.profile-service-pill {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  background: rgba(10, 28, 64, 0.84);
  border: 1px solid rgba(72, 132, 255, 0.22);
  color: #ecf4ff;
  font-size: 13px;
  font-weight: 800;
}

.profile-service-pill-green {
  color: #19e6b1;
  border-color: rgba(25, 230, 177, 0.34);
  box-shadow: inset 0 0 18px rgba(25, 230, 177, 0.08);
}

.profile-service-pill-cyan {
  color: #27d9ff;
  border-color: rgba(39, 217, 255, 0.34);
  box-shadow: inset 0 0 18px rgba(39, 217, 255, 0.08);
}

.profile-service-pill-purple {
  color: #b44dff;
  border-color: rgba(180, 77, 255, 0.34);
  box-shadow: inset 0 0 18px rgba(180, 77, 255, 0.08);
}

.profile-service-pill-amber {
  border-color: rgba(255, 165, 46, 0.28);
}

.profile-wide-btn {
  min-height: 54px;
}

.profile-wide-btn-alt {
  background:
    linear-gradient(180deg, rgba(69, 43, 146, 0.92), rgba(32, 76, 180, 0.92)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
  border-color: rgba(104, 149, 255, 0.34);
}

.profile-wide-btn-alt:hover {
  border-color: rgba(134, 190, 255, 0.48);
  box-shadow: 0 0 22px rgba(77, 112, 255, 0.16);
}

.profile-wide-btn-small {
  min-height: 38px;
  margin-top: 16px;
}

.profile-service-nav {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 12px;
  margin: -4px 0 16px;
}

.profile-service-nav.is-hidden {
  display: none;
}

.profile-service-nav-center {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.profile-service-nav-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(92, 156, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(31, 58, 115, 0.92), rgba(12, 24, 57, 0.96));
  color: #eef5ff;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.profile-service-nav-btn:hover {
  border-color: rgba(117, 205, 255, 0.42);
  box-shadow: 0 0 18px rgba(39, 217, 255, 0.12);
}

.profile-service-nav-btn:disabled {
  opacity: 0.4;
  cursor: default;
  box-shadow: none;
}

.profile-service-counter {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 21, 48, 0.54);
  border: 1px solid rgba(72, 132, 255, 0.16);
  color: #d8e3fb;
  font-size: 13px;
  font-weight: 800;
}

.profile-service-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 10px;
}

.profile-service-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.profile-service-dot.is-active {
  background: #27d9ff;
  box-shadow: 0 0 14px rgba(39, 217, 255, 0.34);
  transform: scale(1.08);
}

.profile-mini-btn {
  min-height: 34px;
  padding: 0 14px;
  font-size: 13px;
}

.profile-mini-btn-alt {
  background:
    linear-gradient(180deg, rgba(15, 58, 115, 0.96), rgba(33, 28, 102, 0.92)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
  border-color: rgba(78, 160, 255, 0.28);
}

.profile-mini-btn-alt:hover {
  border-color: rgba(117, 205, 255, 0.42);
  box-shadow: 0 0 18px rgba(39, 217, 255, 0.12);
}

.profile-team-list {
  display: grid;
  gap: 16px;
}

.profile-team-member {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.profile-team-avatar {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #dbe8f4, #5c7186);
  color: #182739;
  font-weight: 900;
}

.profile-team-avatar-cyan {
  background: linear-gradient(180deg, #cfefff, #4f7db7);
}

.profile-team-avatar-green {
  background: linear-gradient(180deg, #d7ffef, #468a74);
}

.profile-team-avatar-amber {
  background: linear-gradient(180deg, #ffe5bf, #8e6c38);
}

.profile-team-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
  justify-self: start;
  text-align: left;
}

.profile-team-copy strong {
  font-size: 16px;
}

.profile-team-copy span {
  color: #aeb9d5;
  font-size: 14px;
}

.profile-role-chip {
  padding: 8px 12px;
  border-radius: 10px;
  color: #e4b4ff;
  background: rgba(126, 55, 202, 0.22);
  border: 1px solid rgba(180, 77, 255, 0.35);
  font-size: 13px;
  font-weight: 800;
}

.profile-role-chip-cyan {
  color: #54ddff;
  background: rgba(19, 123, 255, 0.18);
  border-color: rgba(19, 123, 255, 0.35);
}

.profile-role-chip-green {
  color: #4ff1bd;
  background: rgba(25, 230, 177, 0.13);
  border-color: rgba(25, 230, 177, 0.32);
}

.profile-role-chip-amber {
  color: #ffb347;
  background: rgba(255, 165, 46, 0.12);
  border-color: rgba(255, 165, 46, 0.35);
}

.profile-activity-list {
  display: grid;
  gap: 16px;
  padding-left: 42px;
  max-height: 432px;
  overflow: auto;
  padding-right: 8px;
  align-content: start;
}

.profile-activity-item {
  position: relative;
  display: grid;
  gap: 6px;
  justify-items: start;
  text-align: left;
}

.profile-activity-item::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #19e6b1;
  box-shadow: 0 0 14px rgba(25, 230, 177, 0.88);
}

.profile-activity-item strong {
  font-size: 16px;
  font-weight: 500;
}

.profile-activity-item span {
  color: #9eaad0;
  font-size: 13px;
}

.profile-activity-item-cyan::before {
  background: #27d9ff;
  box-shadow: 0 0 14px rgba(39, 217, 255, 0.88);
}

.profile-activity-item-amber::before {
  background: #ff9b1a;
  box-shadow: 0 0 14px rgba(255, 155, 26, 0.88);
}

.profile-activity-item-purple::before {
  background: #b44dff;
  box-shadow: 0 0 14px rgba(180, 77, 255, 0.88);
}

.profile-info-list {
  display: grid;
}

.profile-info-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(67, 127, 231, 0.10);
  align-items: start;
}

.profile-info-row:last-child {
  border-bottom: none;
}

.profile-info-label {
  color: #9eaad0;
  font-size: 14px;
  justify-self: start;
  text-align: left;
}

.profile-info-value {
  color: #f7fbff;
  font-size: 14px;
  min-width: 0;
  justify-self: start;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.profile-skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.profile-skill-chip {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  color: #5ff2d5;
  background: rgba(25, 230, 177, 0.10);
  border: 1px solid rgba(25, 230, 177, 0.42);
  font-size: 15px;
  font-weight: 700;
}

.profile-skill-chip-purple {
  color: #d86eff;
  background: rgba(180, 77, 255, 0.11);
  border-color: rgba(180, 77, 255, 0.42);
}

.profile-skill-chip-cyan {
  color: #50dbff;
  background: rgba(19, 123, 255, 0.11);
  border-color: rgba(19, 123, 255, 0.42);
}

.profile-skill-chip-amber {
  color: #ffb347;
  background: rgba(255, 155, 26, 0.11);
  border-color: rgba(255, 155, 26, 0.42);
}

.profile-skill-chip-empty {
  color: #7ff8d3;
  background: rgba(25, 230, 177, 0.10);
  border-style: dashed;
  border-color: rgba(25, 230, 177, 0.34);
}

.profile-skill-chip-add {
  cursor: pointer;
  justify-content: center;
  box-shadow: inset 0 0 18px rgba(25, 230, 177, 0.08);
}

.profile-availability-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 10px;
}

.profile-availability-slot {
  min-height: 40px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  border-radius: 10px;
  color: #9eaad0;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(67, 127, 231, 0.16);
  font-size: 14px;
}

.profile-availability-slot-on {
  color: #50f2c0;
  background: rgba(25, 230, 177, 0.11);
  border-color: rgba(25, 230, 177, 0.38);
  font-weight: 800;
}

.profile-wide-btn-activity {
  background:
    linear-gradient(180deg, rgba(48, 34, 112, 0.94), rgba(24, 63, 140, 0.94)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
  border-color: rgba(108, 135, 255, 0.32);
}

.profile-mini-btn-info {
  background:
    linear-gradient(180deg, rgba(12, 74, 115, 0.96), rgba(28, 44, 116, 0.92)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
  border-color: rgba(81, 182, 255, 0.28);
}

.profile-mini-btn-skills {
  background:
    linear-gradient(180deg, rgba(77, 39, 128, 0.96), rgba(30, 61, 132, 0.92)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
  border-color: rgba(198, 110, 255, 0.24);
}

.profile-mini-btn-availability {
  background:
    linear-gradient(180deg, rgba(13, 83, 90, 0.96), rgba(23, 58, 114, 0.92)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
  border-color: rgba(80, 242, 192, 0.24);
}

.profile-activity-modal-list {
  display: grid;
  gap: 16px;
}

.profile-activity-modal-entry {
  padding: 16px 18px 16px 42px;
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(67, 127, 231, 0.18);
  background: rgba(255, 255, 255, 0.03);
}

.profile-activity-modal-entry::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 22px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #19e6b1;
  box-shadow: 0 0 14px rgba(25, 230, 177, 0.88);
}

.profile-activity-modal-entry-cyan::before {
  background: #27d9ff;
  box-shadow: 0 0 14px rgba(39, 217, 255, 0.88);
}

.profile-activity-modal-entry-amber::before {
  background: #ff9b1a;
  box-shadow: 0 0 14px rgba(255, 155, 26, 0.88);
}

.profile-activity-modal-entry-purple::before {
  background: #b44dff;
  box-shadow: 0 0 14px rgba(180, 77, 255, 0.88);
}

.profile-activity-modal-entry strong,
.profile-activity-modal-entry span {
  display: block;
  text-align: left;
}

.profile-activity-modal-entry span {
  margin-top: 8px;
  color: #9eaad0;
  font-size: 13px;
}

.profile-availability-editor {
  display: grid;
  gap: 14px;
}

.profile-availability-editor-row {
  display: grid;
  grid-template-columns: 140px 160px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.profile-modal-card {
  max-width: 1180px;
  border-radius: 28px;
  border: 1px solid rgba(84, 143, 255, 0.18);
  background:
    radial-gradient(circle at top right, rgba(90, 108, 255, 0.22), transparent 22%),
    radial-gradient(circle at top left, rgba(31, 221, 255, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(19, 34, 76, 0.98), rgba(8, 19, 45, 0.98));
  box-shadow:
    0 34px 70px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(120, 170, 255, 0.05),
    inset 0 1px 0 rgba(255,255,255,.06);
}

.profile-modal-intro {
  margin: 10px 0 0;
  max-width: 520px;
  color: #b7c4e6;
  font-size: 15px;
  line-height: 1.55;
}

.profile-modal-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 0;
  min-height: 660px;
  max-height: min(82vh, 760px);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(67, 127, 231, 0.16);
  background:
    linear-gradient(180deg, rgba(5, 18, 42, 0.68), rgba(4, 14, 34, 0.82));
}

.profile-modal-sidebar {
  padding: 26px 22px 24px;
  border-right: 1px solid rgba(67, 127, 231, 0.14);
  background:
    radial-gradient(circle at top left, rgba(44, 208, 255, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(16, 30, 66, 0.86), rgba(11, 21, 49, 0.92));
}

.profile-modal-sidebar-head {
  margin-bottom: 22px;
}

.profile-modal-sidebar-head h3,
.profile-modal-main-head h3,
.profile-stats-chart-card h3,
.profile-stats-note h3 {
  margin: 0 0 6px;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.profile-modal-sidebar-head p,
.profile-modal-main-head p,
.profile-stats-note p {
  margin: 0;
  color: #aeb9d5;
  line-height: 1.5;
}

.profile-message-preview-list {
  display: grid;
  gap: 12px;
  align-content: start;
}

.profile-message-preview {
  position: relative;
  padding: 16px 16px 16px 64px;
  display: grid;
  gap: 6px;
  text-align: left;
  border-radius: 18px;
  border: 1px solid rgba(55, 120, 220, 0.18);
  color: #eff6ff;
  background:
    linear-gradient(180deg, rgba(17, 34, 72, 0.84), rgba(10, 22, 52, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 12px 26px rgba(2, 10, 26, 0.20);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.profile-message-preview::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 16px;
  width: 34px;
  height: 34px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.22), transparent 40%),
    linear-gradient(180deg, rgba(43, 222, 255, 0.92), rgba(41, 119, 255, 0.82));
  box-shadow:
    0 0 0 1px rgba(144, 228, 255, 0.18),
    0 0 20px rgba(43, 222, 255, 0.18);
}

.profile-message-preview:hover {
  transform: translateY(-1px);
  border-color: rgba(80, 156, 255, 0.26);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 18px 30px rgba(1, 12, 30, 0.26);
}

.profile-message-preview.is-active {
  border-color: rgba(57, 222, 255, 0.34);
  background:
    radial-gradient(circle at top right, rgba(40, 204, 255, 0.10), transparent 52%),
    linear-gradient(180deg, rgba(20, 54, 95, 0.94), rgba(11, 32, 70, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 0 0 1px rgba(57, 222, 255, 0.10),
    0 18px 30px rgba(5, 28, 72, 0.26);
}

.profile-message-preview strong {
  font-size: 16px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.profile-message-preview span {
  color: #aab8da;
  font-size: 13px;
  line-height: 1.45;
}

.profile-modal-main {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 0;
  background:
    radial-gradient(circle at top center, rgba(35, 83, 170, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(7, 19, 46, 0.90), rgba(5, 14, 36, 0.98));
}

.profile-modal-main-head {
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid rgba(67, 127, 231, 0.14);
  background:
    linear-gradient(180deg, rgba(18, 33, 73, 0.70), rgba(11, 24, 54, 0.48));
}

.profile-modal-main-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-messages-head-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-modal-main-orb {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 16px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.24), transparent 38%),
    linear-gradient(180deg, rgba(41, 223, 255, 0.92), rgba(28, 141, 255, 0.84));
  box-shadow:
    0 0 0 1px rgba(145, 228, 255, 0.18),
    0 0 22px rgba(41, 223, 255, 0.16);
}

.profile-service-detail-modal {
  max-width: 1160px;
  border-color: rgba(103, 176, 255, 0.32);
  background:
    radial-gradient(circle at 14% 0%, rgba(43, 222, 255, 0.20), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(177, 74, 255, 0.20), transparent 26%),
    linear-gradient(180deg, rgba(14, 27, 70, 0.98), rgba(4, 12, 33, 0.98));
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(119, 189, 255, 0.08),
    inset 0 1px 0 rgba(255,255,255,.08);
}

.profile-service-detail-body {
  display: grid;
  gap: 20px;
}

.profile-service-detail-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(84, 143, 255, 0.22);
  background:
    radial-gradient(circle at top right, rgba(180, 77, 255, 0.20), transparent 24%),
    radial-gradient(circle at top left, rgba(31, 221, 255, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(15, 38, 92, 0.96), rgba(8, 19, 45, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 22px 42px rgba(6, 16, 46, 0.24);
}

.profile-service-detail-copy {
  display: grid;
  gap: 10px;
}

.profile-service-detail-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(132, 191, 255, 0.24);
  color: #eef5ff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.profile-service-detail-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.72;
}

.profile-service-detail-status.status-draft {
  color: #ffd468;
}

.profile-service-detail-status.status-published {
  color: #19e6b1;
}

.profile-service-detail-status.status-dirty {
  color: #ffb347;
}

.profile-service-detail-date {
  color: #d7e1f8;
  font-size: 15px;
  font-weight: 700;
}

.profile-service-detail-swatch-wrap {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.profile-service-detail-swatch-label {
  color: #aeb9d5;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.profile-service-detail-swatch {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.16),
    0 0 18px rgba(43, 222, 255, 0.18),
    0 14px 28px rgba(0, 0, 0, 0.24);
}

.profile-service-detail-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.profile-service-detail-stat {
  padding: 18px 16px;
  border-radius: 18px;
  border: 1px solid rgba(84, 143, 255, 0.18);
  text-align: center;
  background:
    linear-gradient(135deg, rgba(39, 217, 255, 0.18), rgba(126, 55, 202, 0.10)),
    rgba(7, 21, 48, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 16px 28px rgba(3, 11, 31, 0.18);
}

.profile-service-detail-stat:nth-child(1) {
  background:
    linear-gradient(135deg, rgba(39, 217, 255, 0.20), rgba(50, 110, 255, 0.12)),
    rgba(7, 21, 48, 0.58);
}

.profile-service-detail-stat:nth-child(2) {
  background:
    linear-gradient(135deg, rgba(31, 230, 177, 0.18), rgba(39, 217, 255, 0.12)),
    rgba(7, 21, 48, 0.58);
}

.profile-service-detail-stat:nth-child(3) {
  background:
    linear-gradient(135deg, rgba(180, 77, 255, 0.18), rgba(94, 75, 255, 0.12)),
    rgba(7, 21, 48, 0.58);
}

.profile-service-detail-stat:nth-child(4) {
  background:
    linear-gradient(135deg, rgba(255, 185, 77, 0.20), rgba(255, 109, 109, 0.10)),
    rgba(7, 21, 48, 0.58);
}

.profile-service-detail-stat strong {
  display: block;
  font-size: 28px;
  color: #5ce3ff;
  line-height: 1;
  margin-bottom: 8px;
}

.profile-service-detail-stat span {
  color: #b7c4e6;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.profile-service-detail-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
}

.profile-service-detail-panel {
  border-radius: 22px;
  border: 1px solid rgba(84, 143, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(19, 39, 82, 0.92), rgba(9, 21, 52, 0.96));
  padding: 20px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 20px 36px rgba(3, 10, 28, 0.18);
}

.profile-service-detail-order,
.profile-service-detail-team,
.profile-service-detail-songs {
  display: grid;
  gap: 14px;
}

.profile-service-detail-order-card,
.profile-service-detail-song-card {
  border-radius: 18px;
  border: 1px solid rgba(84, 143, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(11, 27, 60, 0.86), rgba(8, 19, 46, 0.94));
  padding: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 16px 30px rgba(2, 10, 28, 0.16);
}

.profile-service-detail-tone-preludio {
  border-color: rgba(39, 217, 255, 0.18);
  background:
    radial-gradient(circle at top right, rgba(39, 217, 255, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(10, 36, 70, 0.92), rgba(7, 24, 51, 0.98));
}

.profile-service-detail-tone-set {
  border-color: rgba(88, 127, 255, 0.18);
  background:
    radial-gradient(circle at top right, rgba(88, 127, 255, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(18, 35, 82, 0.92), rgba(9, 22, 52, 0.98));
}

.profile-service-detail-tone-ofrenda {
  border-color: rgba(255, 185, 77, 0.18);
  background:
    radial-gradient(circle at top right, rgba(255, 185, 77, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(48, 34, 23, 0.88), rgba(20, 18, 34, 0.96));
}

.profile-service-detail-tone-final {
  border-color: rgba(31, 230, 177, 0.18);
  background:
    radial-gradient(circle at top right, rgba(31, 230, 177, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(9, 42, 39, 0.90), rgba(7, 24, 42, 0.98));
}

.profile-service-detail-order-head,
.profile-service-detail-song-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.profile-service-detail-order-head strong,
.profile-service-detail-song-title {
  font-size: 18px;
  line-height: 1.15;
  font-weight: 900;
  color: #f8fbff;
  text-shadow: 0 0 16px rgba(128, 204, 255, 0.16);
}

.profile-service-detail-order-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.profile-service-detail-order-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255,255,255,.05);
}

.profile-service-detail-order-item-copy {
  display: grid;
  gap: 4px;
}

.profile-service-detail-order-item-copy strong {
  font-size: 15px;
}

.profile-service-detail-order-item-copy span,
.profile-service-detail-song-meta {
  color: #aeb9d5;
  font-size: 13px;
}

.profile-service-detail-tag,
.profile-service-detail-pill {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #edf4ff;
  font-size: 12px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.profile-service-detail-pill.is-ok {
  color: #19e6b1;
  border-color: rgba(25, 230, 177, 0.30);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 0 16px rgba(25, 230, 177, 0.10);
}

.profile-service-detail-pill.is-muted {
  color: #f4d38d;
  border-color: rgba(255, 185, 77, 0.24);
}

.profile-service-detail-song-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.profile-service-detail-song-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.profile-service-detail-role {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  padding: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.profile-service-detail-role span,
.profile-service-detail-team-item span {
  display: block;
  color: #aeb9d5;
  font-size: 11px;
  font-weight: 900;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.profile-service-detail-role strong,
.profile-service-detail-team-item strong {
  display: block;
  font-size: 14px;
  line-height: 1.35;
}

.profile-service-detail-team {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-service-detail-team-item {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  padding: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.profile-service-detail-team-item:nth-child(1) {
  border-color: rgba(39, 217, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(39, 217, 255, 0.12), rgba(255, 255, 255, 0.03));
}

.profile-service-detail-team-item:nth-child(2) {
  border-color: rgba(180, 77, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(180, 77, 255, 0.12), rgba(255, 255, 255, 0.03));
}

.profile-service-detail-team-item:nth-child(3) {
  border-color: rgba(31, 230, 177, 0.22);
  background:
    linear-gradient(180deg, rgba(31, 230, 177, 0.12), rgba(255, 255, 255, 0.03));
}

.profile-service-detail-team-item:nth-child(4) {
  border-color: rgba(255, 185, 77, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 185, 77, 0.12), rgba(255, 255, 255, 0.03));
}

.profile-service-detail-team-item-1 strong {
  color: #6deeff;
  text-shadow: 0 0 14px rgba(39, 217, 255, 0.20);
}

.profile-service-detail-team-item-2 strong {
  color: #e9a4ff;
  text-shadow: 0 0 14px rgba(180, 77, 255, 0.18);
}

.profile-service-detail-team-item-3 strong {
  color: #7ff5d0;
  text-shadow: 0 0 14px rgba(31, 230, 177, 0.18);
}

.profile-service-detail-team-item-4 strong {
  color: #ffd88f;
  text-shadow: 0 0 14px rgba(255, 185, 77, 0.16);
}

.profile-service-detail-role-lead {
  border-color: rgba(39, 217, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(39, 217, 255, 0.12), rgba(255, 255, 255, 0.03));
}

.profile-service-detail-role-choirs {
  border-color: rgba(180, 77, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(180, 77, 255, 0.12), rgba(255, 255, 255, 0.03));
}

.profile-service-detail-role-presenter {
  border-color: rgba(255, 185, 77, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 185, 77, 0.12), rgba(255, 255, 255, 0.03));
}

.profile-service-detail-role-minister {
  border-color: rgba(31, 230, 177, 0.22);
  background:
    linear-gradient(180deg, rgba(31, 230, 177, 0.12), rgba(255, 255, 255, 0.03));
}

.profile-service-detail-role-lead strong {
  color: #6deeff;
}

.profile-service-detail-role-choirs strong {
  color: #e9a4ff;
}

.profile-service-detail-role-presenter strong {
  color: #ffd88f;
}

.profile-service-detail-role-minister strong {
  color: #7ff5d0;
}

.profile-service-detail-notes {
  min-height: 74px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 215, 92, 0.24);
  background:
    radial-gradient(circle at top right, rgba(255, 215, 92, 0.10), transparent 35%),
    linear-gradient(180deg, rgba(255, 215, 92, 0.09), rgba(255, 171, 44, 0.06));
  color: #fff1c0;
  line-height: 1.6;
  white-space: pre-wrap;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 14px 24px rgba(35, 18, 3, 0.10);
}

.profile-service-detail-empty {
  padding: 16px;
  border-radius: 16px;
  border: 1px dashed rgba(84, 143, 255, 0.18);
  color: #b7c4e6;
  background: rgba(255, 255, 255, 0.03);
}

#profileServiceDetailOverlay .modal-head {
  background:
    radial-gradient(circle at 18% 0%, rgba(43, 222, 255, 0.16), transparent 34%),
    radial-gradient(circle at 88% 10%, rgba(177, 74, 255, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(21, 44, 99, 0.94), rgba(18, 34, 76, 0.82));
  border-bottom-color: rgba(103, 176, 255, 0.18);
}

#profileServiceDetailOverlay .icon-btn {
  background:
    linear-gradient(180deg, rgba(60, 70, 140, 0.84), rgba(38, 47, 102, 0.92));
  border-color: rgba(145, 194, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 0 20px rgba(95, 124, 255, 0.10);
}

#profileServiceDetailOverlay .icon-btn:hover {
  border-color: rgba(122, 231, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 0 24px rgba(43, 222, 255, 0.16);
}

#profileServiceDetailOverlay .modal-actions .btn-secondary {
  background:
    linear-gradient(180deg, rgba(36, 58, 116, 0.88), rgba(26, 37, 84, 0.96));
  border-color: rgba(105, 164, 255, 0.22);
  color: #eef5ff;
}

#profileServiceDetailOverlay .modal-actions .btn-secondary:hover {
  border-color: rgba(130, 217, 255, 0.34);
  box-shadow: 0 0 20px rgba(39, 217, 255, 0.10);
}

@media (max-width: 980px) {
  .profile-service-detail-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-service-detail-grid,
  .profile-service-detail-song-grid,
  .profile-service-detail-team {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .overlay {
    padding: 0;
    background: rgba(3, 7, 18, 0.82);
  }

  .modal-card,
  .modal-card-wide,
  .modal-card-compact,
  #teamMemberOverlay .modal-card,
  .profile-modal-card,
  .profile-service-detail-modal,
  .profile-edit-modal-card,
  .sermons-modal-card {
    max-height: 100vh;
    max-height: 100dvh;
    border-radius: 22px 22px 0 0;
    border-bottom: none;
  }

  .modal-head {
    padding: 16px 16px 12px;
  }

  .modal-body,
  .modal-body-wide {
    padding: 16px;
  }

  .modal-actions {
    padding: 0 16px calc(16px + env(safe-area-inset-bottom, 0));
  }

  .profile-service-nav {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    gap: 10px;
  }

  .profile-service-nav-btn {
    width: 38px;
    height: 38px;
  }

  .profile-service-detail-hero,
  .profile-service-detail-order-head,
  .profile-service-detail-song-top {
    display: grid;
  }

  .profile-service-detail-swatch-wrap,
  .profile-service-detail-song-badges {
    justify-items: start;
    justify-content: flex-start;
  }

  .profile-service-detail-summary {
    grid-template-columns: 1fr;
  }

  #profileMessagesModal .profile-modal-intro,
  #profileServiceDetailOverlay .profile-modal-intro {
    font-size: 14px;
    line-height: 1.45;
  }

  #profileMessagesModal .profile-modal-sidebar-head {
    margin-bottom: 14px;
  }

  #profileMessagesModal .profile-modal-sidebar-head h3,
  #profileMessagesModal .profile-modal-main-head h3 {
    font-size: 20px;
  }

  #profileMessagesModal .profile-message-preview-list {
    gap: 10px;
    max-height: 148px;
  }

  #profileMessagesModal .profile-message-preview {
    padding: 14px 14px 14px 56px;
    border-radius: 16px;
  }

  #profileMessagesModal .profile-message-preview::before {
    left: 14px;
    top: 14px;
    width: 30px;
    height: 30px;
    border-radius: 12px;
  }

  #profileMessagesModal .profile-message-preview strong {
    font-size: 15px;
  }

  #profileMessagesModal .profile-message-preview span {
    font-size: 12px;
  }

  #profileMessagesModal .profile-messages-head-badges {
    width: 100%;
    gap: 8px;
  }

  #profileMessagesModal .profile-messages-head-badges .profile-tag {
    min-height: 34px;
    padding: 0 12px;
    font-size: 11px;
  }

  #profileMessagesModal .profile-chat-stream {
    min-height: 280px;
    gap: 14px;
  }

  #profileMessagesModal .profile-chat-compose {
    position: sticky;
    bottom: 0;
    z-index: 3;
    flex-direction: row;
    align-items: center;
    padding: 12px 14px calc(14px + env(safe-area-inset-bottom, 0));
    gap: 8px;
  }

  #profileMessagesModal .profile-chat-compose-input {
    flex: 1 1 auto;
    min-width: 0;
  }

  #profileMessagesModal .profile-chat-compose .field-input,
  #profileMessagesModal .profile-chat-compose .btn {
    min-height: 52px;
  }

  #profileMessagesModal .profile-chat-bubble,
  #profileMessagesModal .profile-chat-bubble-system {
    max-width: 92%;
    padding: 14px 16px;
  }

  #profileMessagesModal .profile-chat-bubble strong {
    font-size: 13px;
  }

  #profileMessagesModal .profile-chat-bubble p {
    font-size: 14px;
    line-height: 1.5;
  }

  #profileMessagesModal .profile-chat-compose .btn {
    width: auto;
    min-width: 96px;
    flex: 0 0 auto;
  }

  #profileServiceDetailOverlay .profile-service-detail-hero {
    padding: 18px;
    gap: 12px;
  }

  #profileServiceDetailOverlay .profile-service-detail-date {
    font-size: 14px;
  }

  #profileServiceDetailOverlay .profile-service-detail-stat {
    padding: 16px 14px;
  }

  #profileServiceDetailOverlay .profile-service-detail-stat strong {
    font-size: 24px;
  }

  #profileServiceDetailOverlay .profile-service-detail-panel,
  #profileServiceDetailOverlay .profile-service-detail-order-card,
  #profileServiceDetailOverlay .profile-service-detail-song-card {
    padding: 14px;
  }

  #profileServiceDetailOverlay .profile-service-detail-order-item {
    padding: 10px 12px;
    gap: 10px;
  }

  #profileServiceDetailOverlay .profile-service-detail-order-head strong,
  #profileServiceDetailOverlay .profile-service-detail-song-title {
    font-size: 16px;
  }

  #profileServiceDetailOverlay .profile-service-detail-song-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #profileServiceDetailOverlay .profile-service-detail-role,
  #profileServiceDetailOverlay .profile-service-detail-team-item {
    padding: 10px;
  }
}

@media (max-width: 390px), (max-height: 740px) {
  #profileMessagesModal .modal-head {
    padding: 14px 14px 10px;
  }

  #profileMessagesModal .modal-title {
    margin-top: 6px;
    font-size: 1.9rem;
  }

  #profileMessagesModal .profile-modal-intro {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.4;
  }

  #profileMessagesModal .profile-modal-grid {
    grid-template-rows: auto minmax(0, 1fr);
  }

  #profileMessagesModal .profile-modal-sidebar {
    padding: 14px;
  }

  #profileMessagesModal .profile-modal-sidebar-head {
    margin-bottom: 10px;
  }

  #profileMessagesModal .profile-modal-sidebar-head h3,
  #profileMessagesModal .profile-modal-main-head h3 {
    font-size: 18px;
  }

  #profileMessagesModal .profile-message-preview-list {
    max-height: 112px;
    gap: 8px;
  }

  #profileMessagesModal .profile-message-preview {
    padding: 12px 12px 12px 50px;
  }

  #profileMessagesModal .profile-message-preview::before {
    left: 12px;
    top: 12px;
    width: 26px;
    height: 26px;
  }

  #profileMessagesModal .profile-modal-main-head {
    padding: 14px;
    gap: 10px;
  }

  #profileMessagesModal .profile-messages-head-badges .profile-tag {
    min-height: 32px;
    padding: 0 10px;
    font-size: 10px;
  }

  #profileMessagesModal .profile-chat-stream {
    min-height: 220px;
    padding: 14px;
    gap: 12px;
  }

  #profileMessagesModal .profile-chat-bubble,
  #profileMessagesModal .profile-chat-bubble-system {
    max-width: 94%;
    padding: 12px 14px;
  }

  #profileMessagesModal .profile-chat-compose {
    padding: 12px 14px calc(14px + env(safe-area-inset-bottom, 0));
    gap: 8px;
  }

  #profileMessagesModal .profile-chat-compose .field-input,
  #profileMessagesModal .profile-chat-compose .btn {
    min-height: 48px;
  }

  #profileMessagesModal .profile-chat-compose .btn {
    border-radius: 16px;
  }

  #profileMessagesModal .profile-emoji-btn {
    width: 34px;
    height: 34px;
    left: 9px;
  }

  #profileMessagesModal .profile-chat-compose .field-input {
    padding-left: 50px;
  }
}

@media (max-width: 540px) and (max-height: 740px) {
  #profileMessagesModal .profile-chat-stream {
    min-height: 200px;
  }
}

.profile-chat-stream {
  padding: 28px;
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 0;
  overflow: auto;
  background:
    radial-gradient(circle at 18% 12%, rgba(40, 210, 255, 0.05), transparent 22%),
    radial-gradient(circle at 88% 78%, rgba(145, 74, 255, 0.05), transparent 24%);
}

.profile-chat-stream::-webkit-scrollbar {
  width: 10px;
}

.profile-chat-stream::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(114, 145, 221, 0.34);
  border: 2px solid transparent;
  background-clip: padding-box;
}

.profile-chat-bubble {
  max-width: 78%;
  padding: 16px 18px;
  border-radius: 22px 22px 22px 10px;
  background:
    linear-gradient(180deg, rgba(28, 58, 112, 0.92), rgba(14, 31, 72, 0.96));
  border: 1px solid rgba(93, 136, 238, 0.22);
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255,255,255,.05);
}

.profile-chat-bubble-self {
  margin-left: auto;
  margin-right: 8px;
  border-radius: 22px 22px 10px 22px;
  background:
    linear-gradient(180deg, rgba(18, 89, 113, 0.96), rgba(11, 52, 71, 0.98));
  border-color: rgba(25, 230, 177, 0.28);
  box-shadow:
    0 16px 28px rgba(4, 27, 32, 0.24),
    inset 0 1px 0 rgba(255,255,255,.05),
    0 0 22px rgba(25, 230, 177, 0.08);
}

.profile-chat-bubble-system {
  max-width: 82%;
  background:
    linear-gradient(180deg, rgba(76, 37, 116, 0.82), rgba(44, 23, 79, 0.90));
  border-color: rgba(194, 111, 255, 0.26);
}

.profile-chat-bubble strong {
  display: block;
  margin-bottom: 8px;
  color: #f3f8ff;
  font-size: 14px;
  letter-spacing: .01em;
}

.profile-chat-bubble p {
  margin: 0;
  color: #dce8ff;
  line-height: 1.62;
  font-size: 15px;
}

.profile-chat-compose {
  flex: 0 0 auto;
  padding: 18px 24px 24px;
  display: flex;
  gap: 12px;
  align-items: center;
  border-top: 1px solid rgba(67, 127, 231, 0.14);
  background:
    linear-gradient(180deg, rgba(11, 22, 48, 0.88), rgba(8, 16, 36, 0.96));
}

.profile-chat-compose-input {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.profile-chat-compose .field-input {
  min-height: 56px;
  border-radius: 20px;
  border-color: rgba(65, 198, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(11, 21, 47, 0.96), rgba(7, 16, 36, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(43, 222, 255, 0.06),
    0 0 0 1px rgba(43, 222, 255, 0.06),
    0 0 24px rgba(43, 222, 255, 0.06);
  padding-left: 56px;
}

.profile-chat-compose .field-input:focus {
  border-color: rgba(43, 222, 255, 0.34);
  box-shadow:
    inset 0 0 0 1px rgba(43, 222, 255, 0.08),
    0 0 0 1px rgba(43, 222, 255, 0.12),
    0 0 30px rgba(43, 222, 255, 0.12);
}

.profile-emoji-btn {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  border: 1px solid rgba(67, 127, 231, 0.18);
  background:
    linear-gradient(180deg, rgba(18, 34, 72, 0.96), rgba(11, 23, 49, 0.98));
  color: #dff8ff;
  font-size: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.profile-emoji-btn:hover {
  border-color: rgba(43, 222, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 0 18px rgba(43, 222, 255, 0.10);
}

.profile-emoji-picker {
  position: absolute;
  left: 0;
  bottom: calc(100% + 12px);
  width: 320px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(79, 133, 228, 0.18);
  background:
    radial-gradient(circle at top left, rgba(41, 223, 255, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(16, 30, 66, 0.96), rgba(9, 18, 42, 0.98));
  box-shadow:
    0 24px 40px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255,255,255,.05);
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  z-index: 14;
}

.profile-emoji-picker.is-hidden {
  display: none;
}

.profile-emoji-picker button {
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(67, 127, 231, 0.12);
  background: rgba(255,255,255,0.03);
  color: #f3f8ff;
  font-size: 20px;
}

.profile-emoji-picker button:hover {
  border-color: rgba(43, 222, 255, 0.28);
  background: rgba(43, 222, 255, 0.10);
  box-shadow: 0 0 18px rgba(43, 222, 255, 0.08);
}

.profile-chat-compose .btn {
  min-width: 118px;
  min-height: 56px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(88, 165, 255, 0.96), rgba(50, 116, 228, 0.94));
  box-shadow:
    0 14px 26px rgba(22, 62, 138, 0.26),
    inset 0 1px 0 rgba(255,255,255,.10);
}

.profile-chat-compose .btn:hover {
  transform: translateY(-1px);
}

#profileMessagesChannelBadge.profile-tag {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(13, 64, 62, 0.94), rgba(11, 48, 47, 0.98));
  border-color: rgba(32, 230, 179, 0.24);
  box-shadow:
    0 0 0 1px rgba(32, 230, 179, 0.08),
    0 0 20px rgba(32, 230, 179, 0.08);
}

#profileMessagesMemberBadge.profile-tag {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(17, 57, 81, 0.94), rgba(10, 41, 67, 0.98));
  border-color: rgba(43, 222, 255, 0.24);
  box-shadow:
    0 0 0 1px rgba(43, 222, 255, 0.08),
    0 0 20px rgba(43, 222, 255, 0.08);
}

.profile-stats-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 34px 30px;
}

.profile-stats-summary-card {
  position: relative;
  overflow: hidden;
  min-height: 112px;
  padding: 16px 16px 14px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 12px;
  background:
    radial-gradient(circle at top center, rgba(255,255,255,.06), transparent 34%),
    linear-gradient(180deg, rgba(14, 31, 73, 0.90), rgba(8, 19, 45, 0.96));
  border: 1px solid rgba(89, 127, 223, 0.26);
  box-shadow:
    0 24px 36px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255,255,255,.06);
}

.profile-stats-summary-card::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
}

.profile-stats-summary-glow {
  position: absolute;
  inset: -42% auto auto 50%;
  width: 160px;
  height: 160px;
  transform: translateX(-50%);
  border-radius: 999px;
  filter: blur(28px);
  opacity: .18;
  pointer-events: none;
}

.profile-stats-summary-card strong {
  position: relative;
  z-index: 1;
  color: #2bdeff;
  font-size: 36px;
  line-height: .95;
  letter-spacing: -0.03em;
  text-shadow: 0 0 18px rgba(43, 222, 255, 0.18);
}

.profile-stats-summary-card span {
  position: relative;
  z-index: 1;
  color: #d8e0f5;
  font-size: 13px;
}

.profile-stats-summary-cyan strong {
  color: #40deff;
  text-shadow: 0 0 22px rgba(64, 222, 255, 0.24);
}

.profile-stats-summary-cyan::after {
  background: linear-gradient(90deg, rgba(64, 222, 255, 0.22), rgba(64, 222, 255, 0.92), rgba(64, 222, 255, 0.22));
}

.profile-stats-summary-cyan .profile-stats-summary-glow {
  background: radial-gradient(circle, rgba(64, 222, 255, 0.95), rgba(64, 222, 255, 0));
}

.profile-stats-summary-green strong {
  color: #25f0c2;
  text-shadow: 0 0 22px rgba(37, 240, 194, 0.22);
}

.profile-stats-summary-green::after {
  background: linear-gradient(90deg, rgba(37, 240, 194, 0.18), rgba(37, 240, 194, 0.88), rgba(37, 240, 194, 0.18));
}

.profile-stats-summary-green .profile-stats-summary-glow {
  background: radial-gradient(circle, rgba(37, 240, 194, 0.92), rgba(37, 240, 194, 0));
}

.profile-stats-summary-blue strong {
  color: #6ec0ff;
  text-shadow: 0 0 22px rgba(110, 192, 255, 0.22);
}

.profile-stats-summary-blue::after {
  background: linear-gradient(90deg, rgba(110, 192, 255, 0.18), rgba(110, 192, 255, 0.88), rgba(110, 192, 255, 0.18));
}

.profile-stats-summary-blue .profile-stats-summary-glow {
  background: radial-gradient(circle, rgba(110, 192, 255, 0.92), rgba(110, 192, 255, 0));
}

.profile-stats-summary-purple strong {
  color: #d97cff;
  text-shadow: 0 0 22px rgba(217, 124, 255, 0.24);
}

.profile-stats-summary-purple::after {
  background: linear-gradient(90deg, rgba(217, 124, 255, 0.18), rgba(217, 124, 255, 0.9), rgba(217, 124, 255, 0.18));
}

.profile-stats-summary-purple .profile-stats-summary-glow {
  background: radial-gradient(circle, rgba(217, 124, 255, 0.94), rgba(217, 124, 255, 0));
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 20px;
  padding: 4px 34px 32px;
}

.profile-stats-chart-card {
  position: relative;
  overflow: hidden;
  padding: 22px 22px 20px;
  border-radius: 22px;
  border: 1px solid rgba(80, 132, 231, 0.18);
  background:
    radial-gradient(circle at top left, rgba(43, 222, 255, 0.07), transparent 28%),
    linear-gradient(180deg, rgba(20, 33, 74, 0.90), rgba(11, 20, 48, 0.98));
  box-shadow:
    0 28px 42px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255,255,255,.06);
}

.profile-stats-chart-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 100% 44px;
  opacity: .32;
}

.profile-stats-bars {
  height: 190px;
  display: flex;
  align-items: flex-end;
  gap: 14px;
  width: calc(100% - 20px);
  margin: 24px auto 0;
}

.profile-stats-bars span {
  flex: 1;
  min-height: 16px;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(180deg, #27d9ff, #0c5ca8);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.06),
    0 10px 24px rgba(12, 92, 168, 0.18),
    0 0 22px rgba(39, 217, 255, 0.14);
}

.profile-stats-bars span:nth-child(1),
.profile-stats-bars span:nth-child(6) {
  background: linear-gradient(180deg, #19e6b1, #0f7160);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.06),
    0 10px 24px rgba(15, 113, 96, 0.18),
    0 0 22px rgba(25, 230, 177, 0.14);
}

.profile-stats-bars span:nth-child(3) {
  background: linear-gradient(180deg, #b44dff, #4a1d7a);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.06),
    0 10px 24px rgba(74, 29, 122, 0.18),
    0 0 22px rgba(180, 77, 255, 0.14);
}

.profile-stats-bars span:nth-child(4) {
  background: linear-gradient(180deg, #ff9b1a, #8d4f08);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.06),
    0 10px 24px rgba(141, 79, 8, 0.18),
    0 0 22px rgba(255, 155, 26, 0.14);
}

.profile-stats-sidecards {
  display: grid;
  gap: 16px;
}

.profile-stats-note {
  position: relative;
  overflow: hidden;
  padding: 18px 18px 16px;
  border-radius: 20px;
  border: 1px solid rgba(67, 127, 231, 0.18);
  box-shadow:
    0 24px 34px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255,255,255,.05);
}

.profile-stats-note-green {
  background:
    radial-gradient(circle at top right, rgba(25, 230, 177, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(16, 51, 66, 0.90), rgba(11, 34, 45, 0.96));
  border-color: rgba(25, 230, 177, 0.24);
}

.profile-stats-note-green h3 {
  color: #19e6b1;
  text-shadow: 0 0 18px rgba(25, 230, 177, 0.14);
}

.profile-stats-note-purple {
  background:
    radial-gradient(circle at top right, rgba(180, 77, 255, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(37, 28, 78, 0.92), rgba(22, 18, 52, 0.98));
  border-color: rgba(180, 77, 255, 0.24);
}

.profile-stats-note-purple h3 {
  color: #d97cff;
  text-shadow: 0 0 18px rgba(217, 124, 255, 0.14);
}

.profile-stats-note p {
  color: #d9e5fb;
  line-height: 1.6;
  font-size: 13px;
}

.profile-stats-chart-card h3,
.profile-stats-note h3 {
  font-size: 18px;
}

.profile-stats-head-copy {
  position: relative;
}

.profile-stats-head-copy::after {
  content: "";
  position: absolute;
  left: -22px;
  top: -18px;
  width: 240px;
  height: 120px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(43, 222, 255, 0.12), rgba(43, 222, 255, 0));
  filter: blur(22px);
  pointer-events: none;
}

.profile-edit-modal-card {
  max-width: 760px;
}

.profile-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.profile-edit-textarea {
  min-height: 140px;
  resize: vertical;
}

@media (max-width: 1380px) {
  .profile-hero {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .profile-hero-side {
    grid-column: 1 / -1;
  }

  .profile-grid-top,
  .profile-grid-bottom,
  .profile-stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .overlay {
    place-items: end stretch;
    padding: 14px;
  }

  .modal-card,
  .modal-card-wide,
  .modal-card-compact,
  #teamMemberOverlay .modal-card,
  .profile-modal-card,
  .profile-service-detail-modal,
  .profile-edit-modal-card,
  .sermons-modal-card {
    width: 100%;
    max-width: none;
    max-height: min(calc(100dvh - 28px), calc(100vh - 28px));
    border-radius: 24px;
  }

  .modal-head {
    padding: 18px 18px 14px;
    gap: 14px;
  }

  .modal-title {
    font-size: clamp(1.6rem, 6vw, 1.9rem);
  }

  .modal-body,
  .modal-body-wide {
    padding: 18px;
  }

  .modal-actions {
    padding: 0 18px calc(18px + env(safe-area-inset-bottom, 0));
    flex-wrap: wrap;
    gap: 10px;
  }

  .modal-actions .btn {
    flex: 0 1 auto;
    min-width: 132px;
    max-width: 100%;
    min-height: 44px;
    padding: 0 14px;
  }

  .profile-hero {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .profile-hero-photo-wrap {
    justify-content: flex-start;
    padding-top: 26px;
  }

  .profile-hero-actions,
  .profile-hero-metrics {
    justify-content: flex-start;
  }

  .profile-actions-menu {
    right: auto;
    left: 0;
  }

  .profile-hero-title h1 {
    font-size: 44px;
  }

  .profile-info-row,
  .profile-modal-grid,
  .profile-stats-summary,
  .profile-edit-grid,
  .profile-skills-grid,
  .profile-availability-grid {
    grid-template-columns: 1fr;
  }

  .profile-chat-compose {
    flex-direction: column;
    align-items: stretch;
    padding: 16px 18px calc(18px + env(safe-area-inset-bottom, 0));
    gap: 10px;
  }

  #profileMessagesModal .profile-modal-grid {
    min-height: 0;
    max-height: none;
    grid-template-rows: auto minmax(0, 1fr);
  }

  #profileMessagesModal .profile-modal-sidebar {
    padding: 18px;
    border-right: none;
    border-bottom: 1px solid rgba(67, 127, 231, 0.14);
  }

  #profileMessagesModal .profile-message-preview-list {
    max-height: 180px;
    overflow: auto;
  }

  #profileMessagesModal .profile-modal-main-head {
    padding: 18px;
    align-items: flex-start;
    flex-direction: column;
  }

  #profileMessagesModal .profile-chat-stream {
    padding: 18px;
  }

  #profileMessagesModal .profile-chat-bubble,
  #profileMessagesModal .profile-chat-bubble-system {
    max-width: min(88%, 420px);
  }

  #profileMessagesModal .profile-chat-compose {
    position: sticky;
    bottom: 0;
    z-index: 3;
    flex-direction: row;
    align-items: center;
    padding: 14px 18px calc(18px + env(safe-area-inset-bottom, 0));
    gap: 10px;
  }

  #profileMessagesModal .profile-chat-compose-input {
    flex: 1 1 auto;
    min-width: 0;
  }

  #profileMessagesModal .profile-chat-compose .btn {
    width: auto;
    min-width: 104px;
    flex: 0 0 auto;
  }

  .profile-emoji-picker {
    width: 100%;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    left: 0;
    right: 0;
    bottom: calc(100% + 10px);
    max-width: none;
  }

  #profileServiceDetailOverlay .modal-head {
    padding-bottom: 12px;
  }

  #profileServiceDetailOverlay .modal-body {
    padding: 16px 16px 14px;
  }

  #profileServiceDetailOverlay .modal-actions {
    padding-left: 16px;
    padding-right: 16px;
  }

  .profile-stats-summary {
    margin: 18px 22px 34px;
  }

  .profile-stats-grid {
    padding: 6px 22px 28px;
  }
}

@media (min-width: 721px) and (max-width: 980px) {
  #profileMessagesModal.overlay {
    place-items: start stretch;
    padding:
      max(14px, calc(14px + env(safe-area-inset-top, 0)))
      14px
      14px;
  }

  #profileMessagesModal .profile-modal-card {
    max-height: min(
      calc(100dvh - 28px - env(safe-area-inset-top, 0)),
      calc(100vh - 28px - env(safe-area-inset-top, 0))
    );
  }
}

@media (max-width: 720px) {
  .overlay {
    padding: 0;
    background: rgba(3, 7, 18, 0.82);
  }

  .modal-card,
  .modal-card-wide,
  .modal-card-compact,
  #teamMemberOverlay .modal-card,
  .profile-modal-card,
  .profile-service-detail-modal,
  .profile-edit-modal-card,
  .sermons-modal-card {
    max-height: 100vh;
    max-height: 100dvh;
    border-radius: 22px 22px 0 0;
    border-bottom: none;
  }

  .modal-head {
    padding: 16px 16px 12px;
  }

  .modal-body,
  .modal-body-wide {
    padding: 16px;
  }

  .modal-actions {
    padding: 0 16px calc(14px + env(safe-area-inset-bottom, 0));
    gap: 8px;
  }

  #profileMessagesModal .profile-modal-intro,
  #profileServiceDetailOverlay .profile-modal-intro {
    font-size: 14px;
    line-height: 1.45;
  }

  #profileMessagesModal .profile-modal-sidebar-head {
    margin-bottom: 14px;
  }

  #profileMessagesModal .profile-modal-sidebar-head h3,
  #profileMessagesModal .profile-modal-main-head h3 {
    font-size: 20px;
  }

  #profileMessagesModal .profile-message-preview-list {
    gap: 10px;
    max-height: 148px;
  }

  #profileMessagesModal .profile-message-preview {
    padding: 14px 14px 14px 56px;
    border-radius: 16px;
  }

  #profileMessagesModal .profile-message-preview::before {
    left: 14px;
    top: 14px;
    width: 30px;
    height: 30px;
    border-radius: 12px;
  }

  #profileMessagesModal .profile-message-preview strong {
    font-size: 15px;
  }

  #profileMessagesModal .profile-message-preview span {
    font-size: 12px;
  }

  #profileMessagesModal .profile-messages-head-badges {
    width: 100%;
    gap: 8px;
  }

  #profileMessagesModal .profile-messages-head-badges .profile-tag {
    min-height: 34px;
    padding: 0 12px;
    font-size: 11px;
  }

  #profileMessagesModal .profile-chat-stream {
    min-height: 280px;
    gap: 14px;
  }

  #profileMessagesModal .profile-chat-compose .field-input,
  #profileMessagesModal .profile-chat-compose .btn {
    min-height: 52px;
  }

  #profileMessagesModal .profile-chat-bubble,
  #profileMessagesModal .profile-chat-bubble-system {
    max-width: 92%;
    padding: 14px 16px;
  }

  #profileMessagesModal .profile-chat-bubble strong {
    font-size: 13px;
  }

  #profileMessagesModal .profile-chat-bubble p {
    font-size: 14px;
    line-height: 1.5;
  }

  #profileServiceDetailOverlay .profile-service-detail-hero {
    padding: 18px;
    gap: 12px;
  }

  #profileServiceDetailOverlay .profile-service-detail-date {
    font-size: 14px;
  }

  #profileServiceDetailOverlay .profile-service-detail-stat {
    padding: 16px 14px;
  }

  #profileServiceDetailOverlay .profile-service-detail-stat strong {
    font-size: 24px;
  }

  #profileServiceDetailOverlay .profile-service-detail-panel,
  #profileServiceDetailOverlay .profile-service-detail-order-card,
  #profileServiceDetailOverlay .profile-service-detail-song-card {
    padding: 14px;
  }

  #profileServiceDetailOverlay .profile-service-detail-order-item {
    padding: 10px 12px;
    gap: 10px;
  }

  #profileServiceDetailOverlay .profile-service-detail-order-head strong,
  #profileServiceDetailOverlay .profile-service-detail-song-title {
    font-size: 16px;
  }

  #profileServiceDetailOverlay .profile-service-detail-song-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #profileServiceDetailOverlay .profile-service-detail-role,
  #profileServiceDetailOverlay .profile-service-detail-team-item {
    padding: 10px;
  }
}
