/* =====================================================================
   Louvor — identidade visual
   Quase preto neutro, luz da cor da igreja vindo do topo, vidro e bordas finas.
   Uma família só (Sora): títulos encorpados, textos em peso regular.
   ===================================================================== */
/* fontes hospedadas no próprio app (licença OFL em app/fonts) — funcionam também sem internet */
@font-face { font-family: "Sora"; src: url("fonts/sora.woff") format("woff"); font-weight: 100 900; font-style: normal; font-display: swap; }
:root {
  --ink: #0c0c0f; --ink-2: #121216; --surface: #151519; --raised: #1b1b20; --raised-2: #232329;
  --glass: rgba(255, 255, 255, .055); --glass-2: rgba(255, 255, 255, .09);
  --line: rgba(255, 255, 255, .07); --line-2: rgba(255, 255, 255, .12);
  --text: #f4f4f6; --muted: #9b9ba5; --dim: #66666f;
  --accent: rgb(61, 139, 255); --accent-rgb: 61, 139, 255;
  --champ: var(--accent); --champ-rgb: var(--accent-rgb);
  --ok: #5fcf9f; --warn: #e5b45a; --danger: #ef7b7b;
  --r-lg: 22px; --r: 16px; --r-sm: 11px; --nav-h: 72px;
  --serif: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--ink); color: var(--text); font: 400 14.5px/1.5 var(--sans); letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
body.noscroll { overflow: hidden; }
a { color: var(--accent); text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: var(--text); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.02em; }
p { margin: 0; }
:focus-visible { outline: 2px solid rgba(var(--accent-rgb), .8); outline-offset: 2px; border-radius: 8px; }
.ic { width: 20px; height: 20px; flex: none; }

/* fundo: uma única luz fria vinda do alto, quase imperceptível */
.backdrop { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(140% 55% at 70% -12%, rgba(var(--accent-rgb), .42), transparent 62%),
              radial-gradient(90% 40% at 0% -5%, rgba(var(--accent-rgb), .16), transparent 60%),
              linear-gradient(180deg, color-mix(in srgb, var(--accent) 10%, var(--ink)) 0%, var(--ink) 45%); }
.backdrop svg { display: none; }

/* ------------------------------------------------------------- utilitários */
.muted { color: var(--muted); } .dim { color: var(--dim); } .small { font-size: 13.5px; } .tiny { font-size: 12px; }
.accent { color: var(--accent); } .ok { color: var(--ok); } .warn { color: var(--warn); } .danger-t { color: var(--danger); }
.row { display: flex; align-items: center; } .col { display: flex; flex-direction: column; } .wrap { flex-wrap: wrap; }
.gap { gap: 10px; } .gap-s { gap: 6px; } .gap-l { gap: 18px; } .between { justify-content: space-between; } .end { justify-content: flex-end; }
.grow { flex: 1; min-width: 0; } .mt { margin-top: 18px; } .mt-s { margin-top: 8px; } .mb { margin-bottom: 18px; } .center { text-align: center; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ------------------------------------------------------------- estrutura */
.shell { max-width: 1120px; margin: 0 auto; padding: 0 20px calc(var(--nav-h) + 44px + env(safe-area-inset-bottom)); }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 4px; margin: 0 -20px;
  padding: calc(12px + env(safe-area-inset-top)) 20px 12px;
  background: linear-gradient(180deg, rgba(12, 12, 15, .55), rgba(12, 12, 15, 0));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; text-align: left; }
.brand img { height: 34px; width: auto; max-width: 150px; object-fit: contain; }
.brand .wm { line-height: 1; min-width: 0; }
.brand .wm b { display: block; font: 700 18px/1.15 var(--sans); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand .wm small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 5px; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand .eq { display: none; }
.brand .chev { color: var(--dim); width: 15px; height: 15px; }
.iconbtn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; position: relative; color: var(--text); transition: background .2s;
  background: var(--glass); box-shadow: inset 0 0 0 1px var(--line-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.iconbtn:hover { background: var(--glass-2); }
.topbar .iconbtn + .iconbtn { margin-left: 6px; }
.iconbtn .ic { width: 21px; height: 21px; stroke-width: 1.5; }
.iconbtn .dot { position: absolute; top: 8px; right: 8px; width: 7px; height: 7px; border-radius: 7px; background: var(--champ); font-size: 0; }
.iconbtn .dot.n { width: auto; min-width: 16px; height: 16px; top: 4px; right: 3px; font-size: 10px; font-weight: 700; color: #1a1408; display: grid; place-items: center; padding: 0 4px; }

/* navegação inferior: cápsula flutuante com botões redondos de vidro */
.bottomnav { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 40;
  display: flex !important; gap: 8px; padding: 8px; border-radius: 99px; background: rgba(28, 28, 33, .62);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 18px 44px rgba(0, 0, 0, .55);
  backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4); }
.bottomnav a { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #d9d9de; position: relative;
  background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); transition: background .2s, color .2s, box-shadow .2s; }
.bottomnav a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.bottomnav a .ic { width: 22px; height: 22px; stroke-width: 1.5; }
.bottomnav a.on { color: #fff; background: rgba(var(--accent-rgb), .22); box-shadow: inset 0 0 0 1.5px rgba(var(--accent-rgb), .85), 0 0 18px rgba(var(--accent-rgb), .25); }
.bottomnav .fab { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: var(--accent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 8px 20px rgba(var(--accent-rgb), .35); transition: transform .2s var(--ease); }
.bottomnav .fab:active, .bottomnav a:active { transform: scale(.94); }
.bottomnav .fab .ic { width: 24px; height: 24px; stroke-width: 2; }

@media (min-width: 980px) {
  .shell { display: grid; grid-template-columns: 216px minmax(0, 1fr); column-gap: 56px; padding-bottom: 60px; }
  .topbar { grid-column: 1 / -1; padding-top: 22px; padding-bottom: 18px; }
  .bottomnav { position: sticky; top: 92px; transform: none; left: auto; bottom: auto; width: auto; height: auto; grid-row: 2; align-self: start;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 0; border-radius: 0; background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .bottomnav a span { position: static; width: auto; height: auto; clip: auto; overflow: visible; }
  .bottomnav a { display: flex; width: auto; flex-direction: row; justify-content: flex-start; gap: 14px; padding: 11px 14px; font-size: 14.5px; border-radius: 14px; height: auto; background: none; box-shadow: none; color: var(--muted); }
  .bottomnav a:hover { background: rgba(255, 255, 255, .035); color: var(--text); }
  .bottomnav a.on { background: var(--glass); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text); }
  .bottomnav a.on .ic { color: var(--accent); }
  .bottomnav a.on::after { display: none; }
  .bottomnav .fab { width: 100%; height: 46px; border-radius: 14px; margin: 0 0 14px; order: -1; display: flex; gap: 8px; font-weight: 600; font-size: 14px; }
  .bottomnav .fab::after { content: "Adicionar"; }
  .bottomnav .fab .ic { width: 20px; height: 20px; }
  main.view { grid-row: 2; min-width: 0; max-width: 760px; }
}

/* ------------------------------------------------------------- títulos */
.view { animation: enter .35s var(--ease) both; }
@keyframes enter { from { opacity: 0; } }
.pagehead { display: flex; align-items: center; gap: 12px; margin: 8px 0 18px; }
.pagehead h1 { font: 700 32px/1.1 var(--serif); letter-spacing: -.03em; flex: 1; min-width: 0; }
.pagehead .small { font-size: 13px; }
.back { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; margin-left: -10px; color: var(--muted); }
.back:hover { color: var(--text); }
.sec { display: flex; align-items: baseline; gap: 12px; margin: 34px 0 10px; }
.sec h2 { font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; flex: 1; color: var(--text); }
.sec > .ic { display: none; }
.sec a, .sec .more { color: var(--muted); font-size: 13.5px; font-weight: 500; display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; transition: color .2s; }
.sec a:hover, .sec .more:hover { color: var(--text); }
.sec a .ic, .sec .more .ic { width: 16px; height: 16px; }

/* ------------------------------------------------------------- avatar e selos */
.av { --s: 44px; width: var(--s); height: var(--s); border-radius: 50%; flex: none; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(160deg, #1d2838, #111926); color: #c9d4e6; font-weight: 600; font-size: calc(var(--s) * .34); letter-spacing: .02em; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av.ring { box-shadow: 0 0 0 2px var(--ink), 0 0 0 3.5px rgba(255, 255, 255, .55); }
.tbadge { --s: 44px; --tc: var(--accent); width: var(--s); height: var(--s); border-radius: calc(var(--s) * .32); flex: none; display: grid; place-items: center; overflow: hidden;
  background: color-mix(in srgb, var(--tc) 22%, #0f1622); color: #fff; font: 500 calc(var(--s) * .34) / 1 var(--sans);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tc) 40%, transparent); }
.tbadge img { width: 100%; height: 100%; object-fit: cover; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, .06);
  font-size: 12.5px; font-weight: 500; color: #d6deea; white-space: nowrap; }
.pill .ic { width: 15px; height: 15px; }
.tag { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 600; letter-spacing: .01em;
  background: rgba(var(--accent-rgb), .16); color: #a9cbff; }
.tag.soft { background: rgba(var(--accent-rgb), .13); color: #a9cbff; }
.tag.gray { background: rgba(255, 255, 255, .07); color: var(--muted); }
.tag.warn { background: rgba(229, 180, 90, .14); color: var(--warn); } .tag.err { background: rgba(239, 123, 123, .14); color: var(--danger); }
.tag.ok { background: rgba(95, 207, 159, .13); color: var(--ok); }
.tag.champ { background: rgba(255, 255, 255, .1); color: #e6e6ea; }

/* ------------------------------------------------------------- início */
.hero { display: flex; align-items: center; gap: 18px; margin: 18px 0 6px; }
.hero .hello { color: var(--muted); font-size: 15.5px; font-weight: 500; }
.hero h1 { font: 700 46px/1.02 var(--serif); letter-spacing: -.04em; margin-top: 4px; }
.hero .roles { color: var(--muted); font-size: 14px; margin-top: 12px; max-width: 46ch; }
.hero-av { position: relative; flex: none; border-radius: 50%; }
.hero-av .cam { position: absolute; right: -2px; bottom: -2px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; box-shadow: 0 0 0 3px var(--ink); }
.hero-av .cam .ic { width: 15px; height: 15px; }
.photo-hint { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; margin-top: 20px; padding: 14px 16px; border-radius: var(--r);
  background: var(--glass); border: 1px solid var(--line-2); }
.photo-hint > .ic { color: var(--accent); width: 22px; height: 22px; }
.photo-hint b { display: block; font-weight: 600; font-size: 14.5px; } .photo-hint small { color: var(--muted); font-size: 13px; }
.shortcuts { display: none; }

.carousel { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -20px; padding: 2px 20px; }
.carousel::-webkit-scrollbar { display: none; }
.notice { flex: none; width: 100%; scroll-snap-align: center; display: grid; grid-template-columns: 112px 1fr auto; align-items: center; gap: 16px;
  padding: 12px; border-radius: var(--r-lg); background: var(--glass); border: 1px solid var(--line-2); text-align: left; }
.notice .art { width: 112px; height: 112px; border-radius: 15px; background-size: cover; background-position: center; display: grid; place-items: center;
  background-color: var(--raised); background-image: radial-gradient(120% 90% at 20% 0%, rgba(var(--accent-rgb), .35), transparent 60%); }
.notice .art .ic { width: 30px; height: 30px; color: rgba(255, 255, 255, .7); stroke-width: 1.4; }
.notice h3 { font: 600 20px/1.2 var(--serif); margin: 8px 0 6px; letter-spacing: -.02em; }
.notice .meta { color: var(--muted); font-size: 13px; }
.notice .meta .ic { display: none; }
.notice .go { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--dim); margin-right: 4px; }
.dots { display: flex; justify-content: center; gap: 6px; margin: 12px 0 0; }
.dots i { width: 5px; height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .2); transition: .25s var(--ease); }
.dots i.on { width: 16px; background: var(--text); }

/* escala: data em numerais leves, sem caixa; a próxima ganha o cartão na cor da igreja */
#ups, .schedlist { border-top: 1px solid var(--line); }
.sched { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 16px; padding: 16px 2px; border-bottom: 1px solid var(--line);
  color: inherit; width: 100%; text-align: left; transition: background .2s; }
.sched:hover { background: rgba(255, 255, 255, .015); }
.sched .date { text-align: center; line-height: 1; color: var(--muted); font-size: 12px; }
.sched .date b { display: block; font: 700 30px/1 var(--serif); font-variant-numeric: tabular-nums; color: var(--text); margin: 4px 0 3px; letter-spacing: -.02em; }
.sched .info { min-width: 0; }
.sched .info h3 { font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sched .info .meta { color: var(--muted); font-size: 13.5px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sched .side { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 9px; }
.sched .seen { display: inline-flex; align-items: center; gap: 4px; color: var(--ok); font-size: 12.5px; }
.sched .seen .ic { width: 14px; height: 14px; }
.sched > .chev { color: var(--dim); width: 18px; }
.sched.draft .date b { color: var(--muted); }
.sched.feature { grid-template-columns: 76px 1fr auto; margin: 0 0 8px; padding: 22px 18px; border-radius: var(--r-lg); border: 1px solid rgba(255, 255, 255, .16);
  background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 62%, #1a1a20) 0%, color-mix(in srgb, var(--accent) 28%, #141418) 60%, color-mix(in srgb, var(--accent) 42%, #18181c) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 16px 34px rgba(0, 0, 0, .35); }
.sched.feature .info .meta, .sched.feature .date { color: rgba(255, 255, 255, .72); }
.sched.feature .pill { background: rgba(0, 0, 0, .22); color: #fff; }
.sched.feature .tag.soft { background: rgba(255, 255, 255, .2); color: #fff; }
.sched.feature > .chev { color: rgba(255, 255, 255, .7); }
.sched.feature + .sched { border-top: 0; }
.sched.feature .date { border-right: 1px solid rgba(255, 255, 255, .2); padding-right: 14px; }
.sched.feature .date b { font-size: 42px; font-weight: 700; color: #fff; letter-spacing: -.04em; }
.sched.feature .info h3 { font: 600 22px/1.15 var(--serif); white-space: normal; letter-spacing: -.02em; color: #fff; }
#ups:has(.sched.feature) { border-top: 0; }
#ups > .empty, .schedlist > .empty { border-bottom: 1px solid var(--line); }

.bdays { display: flex; gap: 18px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 6px 20px 2px; }
.bdays::-webkit-scrollbar { display: none; }
.bday { flex: none; width: 74px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.bday .av { margin-bottom: 8px; }
.bday b { font-size: 13.5px; font-weight: 600; } .bday .when { color: var(--muted); font-size: 12px; }

/* ------------------------------------------------------------- listas (linhas sobre o fundo) */
.list { border-top: 1px solid var(--line); }
.li { display: flex; align-items: center; gap: 14px; padding: 13px 2px; border-bottom: 1px solid var(--line); width: 100%; text-align: left; min-height: 60px; color: inherit; transition: background .2s; }
button.li:hover, a.li:hover { background: rgba(255, 255, 255, .02); }
.li .t { font-weight: 600; font-size: 15px; } .li .s { color: var(--muted); font-size: 13px; margin-top: 2px; display: block; }
.li .ic.chev { color: var(--dim); width: 17px; }
.li > .ic { color: var(--muted); }
.card { border-radius: var(--r-lg); background: var(--glass); border: 1px solid var(--line-2); padding: 18px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.card h3 { font-size: 16px; }
.grid { display: grid; gap: 0; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.teamcard { display: flex; align-items: center; gap: 16px; padding: 16px 2px; border-bottom: 1px solid var(--line); position: relative; }
.teamcard h3 { font: 600 19px/1.2 var(--serif); letter-spacing: -.02em; }
.teamcard::before { content: ""; position: absolute; left: -20px; top: 22px; bottom: 22px; width: 2px; border-radius: 2px; background: var(--tc, var(--accent)); opacity: .9; }
.empty { text-align: center; padding: 34px 18px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty .ic { width: 30px; height: 30px; color: var(--dim); stroke-width: 1.3; }
.empty b { color: var(--text); font-size: 15.5px; font-weight: 600; } .empty p { max-width: 360px; font-size: 14px; }
.card > .empty { padding: 18px 8px; }

/* ------------------------------------------------------------- botões e formulários */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 13px;
  font-weight: 600; font-size: 14.5px; letter-spacing: -.005em; transition: background .2s, transform .15s, opacity .2s; white-space: nowrap; }
.btn:active { transform: scale(.985); }
.btn .ic { width: 18px; height: 18px; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: color-mix(in srgb, var(--accent) 88%, #fff); }
.btn.ghost { background: rgba(255, 255, 255, .055); color: var(--text); }
.btn.ghost:hover { background: rgba(255, 255, 255, .09); }
.btn.danger { background: rgba(239, 123, 123, .1); color: var(--danger); }
.btn.sm { height: 36px; padding: 0 14px; font-size: 13.5px; border-radius: 11px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn.loading { position: relative; color: transparent !important; }
.btn.loading::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .3); border-top-color: #fff; animation: spin .7s linear infinite; }
.link { color: var(--accent); font-weight: 500; }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 7px; }
.input, .field input:not([type=checkbox]):not([type=radio]):not([type=color]), .field select, .field textarea {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; background: var(--ink-2); border: 1px solid var(--line-2); outline: 0;
  transition: border-color .2s, background .2s; -webkit-appearance: none; appearance: none; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a95a7' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.field textarea { height: auto; min-height: 104px; padding: 13px 14px; resize: vertical; line-height: 1.5; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: rgba(var(--accent-rgb), .7); background: #0b1320; }
.field input:disabled { color: var(--muted); }
.field .hint { display: block; font-size: 12.5px; color: var(--dim); margin-top: 6px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.two > *, .three > * { min-width: 0; }
.search { position: relative; display: block; }
.search .ic { position: absolute; left: 14px; top: 14px; color: var(--dim); width: 19px; height: 19px; }
.search input { padding-left: 42px !important; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 34px; padding: 0 13px; border-radius: 99px; background: rgba(255, 255, 255, .05); font-size: 13.5px; font-weight: 500; color: var(--muted);
  display: inline-flex; align-items: center; gap: 6px; transition: background .2s, color .2s; cursor: pointer; }
.chip:hover { color: var(--text); }
.chip.on { background: var(--text); color: var(--ink); }
.chip.on .ic { color: var(--ink); }
.chip .ic { width: 15px; height: 15px; }
.switch { position: relative; width: 46px; height: 28px; flex: none; }
.switch input { opacity: 0; position: absolute; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 99px; background: rgba(255, 255, 255, .13); transition: .2s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: .25s var(--ease); }
.switch input:checked + i { background: var(--accent); } .switch input:checked + i::after { left: 21px; }
.check { display: flex; align-items: center; gap: 12px; padding: 10px 0; cursor: pointer; }
.check input { width: 19px; height: 19px; accent-color: var(--accent); }
.seg2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg2 label { position: relative; cursor: pointer; }
.seg2 input { position: absolute; opacity: 0; }
.seg2 span { display: block; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--ink-2); transition: border-color .2s, background .2s; height: 100%; }
.seg2 b { display: block; font-size: 14px; font-weight: 600; color: var(--text); } .seg2 small { color: var(--muted); font-size: 12.5px; }
.seg2 input:checked + span { border-color: rgba(var(--accent-rgb), .8); background: rgba(var(--accent-rgb), .08); }
.seg2 input:focus-visible + span { outline: 2px solid rgba(var(--accent-rgb), .8); outline-offset: 2px; }
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin: 4px 0 18px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button { flex: none; padding: 12px 0; font-weight: 500; font-size: 14.5px; color: var(--muted); position: relative; display: flex; gap: 7px; align-items: center; }
.tabs .ic { display: none; }
.tabs .on { color: var(--text); }
.tabs .on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1.5px; background: var(--text); }
.colors { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.colors label { width: 30px; height: 30px; border-radius: 50%; cursor: pointer; position: relative; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.colors input { position: absolute; opacity: 0; }
.colors input:checked + i { position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--text); }
.colors input[type=color] { opacity: 1; width: 30px; height: 30px; border: 0; padding: 0; border-radius: 50%; background: none; position: static; }

/* ------------------------------------------------------------- folha inferior e aviso */
.sheet-wrap { position: fixed; inset: 0; z-index: 100; background: rgba(2, 4, 8, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: flex-end; justify-content: center; animation: fade .2s; }
.sheet-wrap.out { opacity: 0; transition: opacity .2s; }
.sheet { width: 100%; max-width: 600px; max-height: 92vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--line-2); border-bottom: 0;
  border-radius: 26px 26px 0 0; padding: 10px 22px calc(26px + env(safe-area-inset-bottom)); animation: up .3s var(--ease); }
.sheet.wide { max-width: 880px; }
.sheet .grab { width: 36px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .16); margin: 0 auto 16px; }
.sheet h3 { font: 700 23px/1.2 var(--serif); margin-bottom: 14px; letter-spacing: -.01em; }
.sheet .list { border-top: 0; }
@media (min-width: 700px) { .sheet-wrap { align-items: center; } .sheet { border-radius: 24px; border-bottom: 1px solid var(--line-2); } }
@keyframes fade { from { opacity: 0; } } @keyframes up { from { transform: translateY(28px); opacity: .5; } }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + 26px + env(safe-area-inset-bottom)); z-index: 200;
  background: #f2f5fa; color: #0b1220; padding: 12px 18px; border-radius: 14px; font-weight: 500; font-size: 14px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .45); max-width: calc(100% - 32px); animation: up .25s var(--ease); transition: opacity .3s; }
.toast.err { background: #ffe0e0; color: #3a0d0d; } .toast.out { opacity: 0; }
.spin { width: 24px; height: 24px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .1); border-top-color: var(--text); animation: spin .8s linear infinite; margin: 48px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.menu .li > .ic { color: var(--text); }
.menu .li.danger, .menu .li.danger .ic { color: var(--danger); }

/* ------------------------------------------------------------- calendário */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal .dow { text-align: center; font-size: 12px; color: var(--dim); font-weight: 500; padding: 6px 0 8px; }
.cal .d { aspect-ratio: 1 / 1; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; position: relative; min-height: 38px; transition: background .2s; }
.cal button.d:hover { background: rgba(255, 255, 255, .05); }
.cal .d.out { opacity: 0; pointer-events: none; }
.cal .d.today { color: var(--accent); font-weight: 700; }
.cal .d.sel { background: var(--text); color: var(--ink); }
.cal .d.blk { background: rgba(239, 123, 123, .14); color: #ffc4c4; }
.cal .d .marks { display: flex; gap: 2px; height: 4px; }
.cal .d .marks i { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.cal .d .marks i.u { background: var(--danger); }
.calhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.calhead b { font: 700 19px/1 var(--serif); }

/* ------------------------------------------------------------- músicas */
.song { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; padding: 12px 2px; border-bottom: 1px solid var(--line); width: 100%; text-align: left; }
.list > .song:last-child { border-bottom: 1px solid var(--line); }
.cover { width: 52px; height: 52px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; flex: none; color: rgba(255, 255, 255, .6);
  background: var(--raised); background-image: radial-gradient(110% 90% at 15% 0%, rgba(var(--accent-rgb), .3), transparent 65%); }
.cover img { width: 100%; height: 100%; object-fit: cover; } .cover .ic { width: 22px; height: 22px; stroke-width: 1.4; }
.song .t { font-weight: 600; font-size: 15.5px; }
.song .s { color: var(--muted); font-size: 13px; display: flex; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
.song .ind { display: flex; gap: 5px; margin-top: 7px; flex-wrap: wrap; }
.playbtn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--glass-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); transition: transform .2s var(--ease); }
.playbtn:active { transform: scale(.94); }
.playbtn .ic { width: 16px; height: 16px; margin-left: 2px; }
.playbtn.dis { background: rgba(255, 255, 255, .06); color: var(--dim); }
.selbox { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line-2); display: grid; place-items: center; flex: none; }
.selbox.on { background: var(--accent); border-color: var(--accent); } .selbox .ic { width: 14px; height: 14px; color: #fff; }

/* ------------------------------------------------------------- chat */
.chatwrap { display: flex; flex-direction: column; height: calc(100dvh - 140px - env(safe-area-inset-top)); }
@media (max-width: 979px) { body.in-chat .bottomnav { display: none !important; } body.in-chat .shell { padding-bottom: 0; } .chatwrap { height: calc(100dvh - 66px - env(safe-area-inset-top)); } }
.chatwrap .pagehead { margin-bottom: 0; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.chatwrap .pagehead b { font: 700 20px/1.2 var(--serif); }
.msgs { flex: 1; overflow-y: auto; padding: 14px 2px; display: flex; flex-direction: column; gap: 6px; }
.msg { max-width: 80%; align-self: flex-start; display: flex; gap: 8px; align-items: flex-end; }
.msg.me { align-self: flex-end; flex-direction: row-reverse; }
.bubble { background: var(--raised); border-radius: 18px 18px 18px 6px; padding: 9px 13px; overflow-wrap: anywhere; min-width: 0; }
.msg.me .bubble { background: var(--accent); color: #fff; border-radius: 18px 18px 6px 18px; }
.msg.me .bubble a { color: #fff; text-decoration: underline; }
.bubble .who { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
.bubble .when { font-size: 10.5px; color: var(--muted); margin-top: 3px; text-align: right; font-variant-numeric: tabular-nums; }
.msg.me .bubble .when { color: rgba(255, 255, 255, .7); }
.bubble img.att { border-radius: 12px; max-height: 280px; margin: 2px 0; cursor: zoom-in; }
.day-sep { align-self: center; font-size: 12px; color: var(--muted); padding: 4px 12px; margin: 10px 0; }
.composer { display: flex; align-items: flex-end; gap: 8px; padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.composer textarea { flex: 1; resize: none; max-height: 140px; min-height: 44px; padding: 11px 16px; border-radius: 22px; background: var(--raised); border: 0; outline: 0; line-height: 1.4; }
.composer .send { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; }
.attgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.attgrid button { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 6px; border-radius: 14px; background: var(--raised); font-size: 13px; font-weight: 500; }
.attgrid .ic { width: 24px; height: 24px; color: var(--text); stroke-width: 1.4; }
.pollbox { min-width: 230px; } .pollbox .q { font-weight: 600; margin-bottom: 8px; }
.pollopt { display: block; width: 100%; text-align: left; position: relative; border-radius: 10px; padding: 8px 10px; margin-top: 6px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.msg.me .pollopt { background: rgba(255, 255, 255, .16); }
.pollopt .bar { position: absolute; inset: 0 auto 0 0; background: rgba(var(--champ-rgb), .22); transition: width .4s var(--ease); }
.pollopt span { position: relative; display: flex; justify-content: space-between; gap: 8px; }
.pollopt.mine { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); }
.songmsg { display: flex; gap: 10px; align-items: center; min-width: 220px; text-align: left; }

/* ------------------------------------------------------------- player (palco) */
.player { position: fixed; inset: 0; z-index: 90; background: var(--ink); display: flex; flex-direction: column; overflow: hidden; }
.player .backdrop { z-index: 0; }
.player > * { position: relative; z-index: 1; }
.ph { display: flex; align-items: center; gap: 12px; padding: calc(12px + env(safe-area-inset-top)) 18px 10px; }
.ph .cover { width: 46px; height: 46px; }
.ph h2 { font: 700 22px/1.1 var(--serif); letter-spacing: -.01em; } .ph .s { color: var(--muted); font-size: 13px; margin-top: 2px; }
.pmeta { display: flex; gap: 5px; flex-wrap: wrap; padding: 0 18px; }
.ptabs { display: flex; gap: 22px; padding: 12px 18px 0; border-bottom: 1px solid var(--line); }
.ptabs button { padding: 10px 0; font-weight: 500; color: var(--muted); display: flex; align-items: center; gap: 7px; position: relative; font-size: 14.5px; }
.ptabs button .ic { width: 17px; height: 17px; }
.ptabs button.on { color: var(--text); }
.ptabs button.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1.5px; background: var(--text); }
.pbody { flex: 1; overflow-y: auto; padding: 8px 18px 14px; }
.timeline { position: relative; height: 34px; margin: 8px 18px 0; cursor: pointer; touch-action: none; }
.timeline .rail { position: absolute; left: 0; right: 0; top: 23px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .1); }
.timeline .prog { position: absolute; left: 0; top: 23px; height: 3px; border-radius: 3px; background: var(--accent); }
.timeline .head { position: absolute; top: 18px; width: 13px; height: 13px; margin-left: -6.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .12); }
.timeline .mk { position: absolute; top: 0; height: 30px; border-left: 1px solid rgba(255, 255, 255, .22); font-size: 10.5px; color: var(--muted); padding-left: 4px; white-space: nowrap; overflow: hidden; }
.timeline .rg { position: absolute; top: 0; height: 17px; background: rgba(var(--champ-rgb), .1); border-left: 1.5px solid var(--champ); font-size: 10.5px; color: var(--champ); padding-left: 5px; border-radius: 0 4px 4px 0; white-space: nowrap; overflow: hidden; }
.timeline .rg.on { background: rgba(var(--champ-rgb), .28); color: #fff; }
.times { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; padding: 3px 18px 0; font-variant-numeric: tabular-nums; }
.transport { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px calc(16px + env(safe-area-inset-bottom)); flex-wrap: wrap; }
.transport button { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: var(--text); background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); }
.transport button:hover { background: rgba(255, 255, 255, .05); }
.transport button.on { color: var(--champ); }
.transport .pp { width: 66px; height: 66px; background: var(--accent); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 10px 24px rgba(var(--accent-rgb), .35); }
.transport .pp:hover { background: color-mix(in srgb, var(--accent) 88%, #fff); }
.transport .pp .ic { width: 26px; height: 26px; }
.transport .master { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 380px; color: var(--muted); margin-top: 4px; }
.transport .master input { flex: 1; }
.trk { display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.trk .nm { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 6px; min-width: 0; }
.trk .nm .ellipsis { flex: 1; }
.trk .nm .ic { width: 15px; height: 15px; color: var(--muted); }
.trk .ctl { display: flex; gap: 5px; align-items: center; margin-top: 7px; }
.trk.child .nm { padding-left: 14px; }
.trk.folder .wave { opacity: .45; }
.ms { width: 28px; height: 24px; border-radius: 7px; font-size: 11px; font-weight: 700; background: rgba(255, 255, 255, .07); color: var(--muted); }
.ms.m.on { background: #e2a03f; color: #1a1000; } .ms.s.on { background: var(--champ); color: #1a1408; }
.wave { height: 50px; position: relative; border-radius: 8px; overflow: hidden; background: rgba(255, 255, 255, .025); }
.wave canvas { width: 100%; height: 100%; display: block; }
.wave .ph-line { position: absolute; top: 0; bottom: 0; width: 1px; background: #fff; }
.trk.silent .wave canvas { opacity: .25; }
input[type=range].fader { -webkit-appearance: none; appearance: none; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .14); outline: 0; width: 100%; }
input[type=range].fader::-webkit-slider-thumb { -webkit-appearance: none; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
input[type=range].fader::-moz-range-thumb { width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 0; }
.mixer { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 8px; min-height: 100%; }
.strip { flex: none; width: 80px; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 6px; border-radius: 18px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); }
.strip.master { background: rgba(var(--champ-rgb), .07); box-shadow: inset 0 0 0 1px rgba(var(--champ-rgb), .3); }
.strip .nm { font-size: 12px; font-weight: 600; width: 100%; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.strip .vfader { writing-mode: vertical-lr; direction: rtl; -webkit-appearance: slider-vertical; appearance: slider-vertical; width: 28px; height: 200px; accent-color: var(--text); }
.strip .db { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.strip .meter { width: 5px; height: 200px; border-radius: 4px; background: rgba(255, 255, 255, .06); position: relative; overflow: hidden; }
.strip .meter i { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(0deg, #4fbf8f, #d9c27a 75%, #e8796f); height: 0; transition: height .06s linear; }
.strip .fz { display: flex; gap: 5px; align-items: flex-end; }
.lyr { max-width: 680px; margin: 0 auto; padding: 18px 0 40px; }
.lyr .blk { padding: 14px 4px; margin-bottom: 8px; transition: opacity .35s, transform .35s var(--ease); cursor: pointer; }
.lyr .blk h4 { margin: 0 0 8px; font-size: 12.5px; font-weight: 500; color: var(--champ); letter-spacing: .02em; }
.lyr .blk p { font: 600 26px/1.35 var(--serif); white-space: pre-line; letter-spacing: -.02em; }
.lyr.playing .blk { opacity: .28; }
.lyr.playing .blk.on { opacity: 1; transform: translateX(6px); }
.lyr .blk .tm { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.loadbar { height: 2px; background: rgba(255, 255, 255, .06); margin: 0 18px; border-radius: 2px; overflow: hidden; transition: opacity .6s; }
.loadbar i { display: block; height: 100%; background: var(--champ); transition: width .3s; }

/* ------------------------------------------------------------- entrada (login, convite) */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 28px 22px; }
.auth .box { width: 100%; max-width: 400px; }
.auth .logo { display: flex; justify-content: flex-start; margin-bottom: 40px; }
.brandmark { display: inline-flex; align-items: center; gap: 10px; }
.brandmark img { width: 40px; height: 40px; border-radius: 12px; }
.brandmark b { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.auth .logo .tbadge { --s: 46px !important; border-radius: 14px !important; background: var(--raised); box-shadow: inset 0 0 0 1px var(--line-2); }
.auth .logo .tbadge .ic { width: 22px; height: 22px; color: var(--accent); }
.auth h1 { font: 700 42px/1.05 var(--serif); letter-spacing: -.035em; }
.auth .sub { color: var(--muted); margin: 12px 0 30px; font-size: 15px; max-width: 34ch; }
.auth .center { text-align: left; }
.invitecard { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r-lg); background: var(--glass); border: 1px solid var(--line-2); margin-bottom: 26px; }
.invitecard b { font: 500 19px/1.2 var(--sans); }

@media (max-width: 520px) {
  .shell { padding-left: 16px; padding-right: 16px; }
  .topbar { margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
  .carousel, .bdays { margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
  .teamcard::before { left: -16px; }
  .hero h1 { font-size: 42px; }
  .notice { grid-template-columns: 88px 1fr auto; gap: 14px; } .notice .art { width: 88px; height: 88px; } .notice h3 { font-size: 19px; }
  .sched { grid-template-columns: 48px 1fr auto; gap: 12px; } .sched .date b { font-size: 27px; }
  .sched.feature { grid-template-columns: 64px 1fr; padding: 18px 16px; } .sched.feature > .chev { display: none; } .sched.feature .date b { font-size: 38px; }
  .two { grid-template-columns: 1fr; }
  .three { grid-template-columns: 1.3fr 1fr 1fr; gap: 8px; } .three input { padding: 0 9px !important; }
  .trk { grid-template-columns: 112px 1fr; }
  .transport { gap: 4px; } .transport button { width: 42px; height: 42px; } .transport .pp { width: 60px; height: 60px; }
  .pagehead h1 { font-size: 27px; }
  .seg2 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
