/* Fontes servidas pelo proprio site (nada vai para o Google: LGPD) */
@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/inter-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/inter-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/jetbrains-mono-latin-500-normal.woff2) format("woff2"); }

:root {
  --bg: #0e0e13;
  --panel: #16161d;
  --panel-2: #1d1d26;
  --line: #2a2a36;
  --text: #ececf3;
  --muted: #8d8da3;
  --accent: #f472b6;

  --vocals: #f472b6;
  --drums: #fbbf24;
  --bass: #818cf8;
  --guitar: #fb923c;
  --piano: #34d399;
  --other: #38bdf8;

  --radius: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { margin: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 Inter, system-ui, sans-serif;
  min-height: 100vh;
}

button, input { font: inherit; color: inherit; }
button { cursor: pointer; }

kbd {
  font: 500 11px "JetBrains Mono", monospace;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
}

/* ---------- topbar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand h1 { font-size: 18px; margin: 0; letter-spacing: -0.01em; }
.subtitle { margin: 0; color: var(--muted); font-size: 13px; }
.logo { display: flex; align-items: center; gap: 3px; height: 32px; }
.logo i { width: 4px; border-radius: 2px; background: var(--accent); }
.logo i:nth-child(1) { height: 12px; background: var(--vocals); }
.logo i:nth-child(2) { height: 26px; background: var(--drums); }
.logo i:nth-child(3) { height: 18px; background: var(--bass); }
.logo i:nth-child(4) { height: 30px; background: var(--piano); }
.device {
  font-size: 12px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px;
  white-space: nowrap;
}
.device:empty { display: none; }

/* ---------- layout ---------- */
.layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  padding: 24px 28px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.sidebar { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.dropzone {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  text-align: center;
  padding: 26px 16px;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.dropzone svg { color: var(--accent); margin-bottom: 4px; }
.dropzone span { color: var(--muted); font-size: 13px; }
.dropzone small { color: var(--muted); font-size: 11px; opacity: .7; }
.dropzone:hover, .dropzone.over { border-color: var(--accent); background: var(--panel-2); }

.upload-status {
  font-size: 13px; color: var(--muted);
  background: var(--panel); border-radius: 10px; padding: 10px 12px;
}
.upload-status.error { color: #fca5a5; }

.section-title {
  font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); margin: 10px 0 0;
}

.library { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.library li {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 10px 10px 12px;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid transparent;
  cursor: pointer;
}
.library li:hover { background: var(--panel-2); }
.library li.active { border-color: var(--accent); }
.lib-info { flex: 1; min-width: 0; }
.lib-name { font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib-status { font-size: 12px; color: var(--muted); }
.lib-status.error { color: #fca5a5; }
.lib-status.processing { color: var(--drums); }
.lib-del {
  border: 0; background: transparent; color: var(--muted);
  width: 28px; height: 28px; border-radius: 8px; flex: none;
  display: grid; place-items: center; opacity: 0;
}
.library li:hover .lib-del, .lib-del:focus-visible { opacity: 1; }
.lib-del:hover { background: #3a1d24; color: #fca5a5; }
.empty { color: var(--muted); font-size: 13px; margin: 0; }

/* ---------- stage ---------- */
.stage {
  background: var(--panel);
  border-radius: 18px;
  border: 1px solid var(--line);
  padding: 28px;
  min-height: 480px;
  min-width: 0;
}

.placeholder {
  height: 100%; min-height: 420px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 8px;
}
.placeholder h2 { margin: 18px 0 0; font-size: 20px; }
.placeholder p { margin: 0; color: var(--muted); max-width: 420px; }
.placeholder-art { display: flex; gap: 8px; align-items: center; height: 80px; }
.placeholder-art span {
  width: 10px; border-radius: 5px; background: var(--c);
  animation: bounce 1.6s ease-in-out infinite;
}
.placeholder-art span:nth-child(1) { height: 40px; animation-delay: 0s; }
.placeholder-art span:nth-child(2) { height: 70px; animation-delay: .15s; }
.placeholder-art span:nth-child(3) { height: 50px; animation-delay: .3s; }
.placeholder-art span:nth-child(4) { height: 76px; animation-delay: .45s; }
.placeholder-art span:nth-child(5) { height: 36px; animation-delay: .6s; }
.placeholder-art span:nth-child(6) { height: 58px; animation-delay: .75s; }
@keyframes bounce { 50% { transform: scaleY(.45); } }
@media (prefers-reduced-motion: reduce) { .placeholder-art span { animation: none; } }

.processing {
  min-height: 420px;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; gap: 6px;
}
.processing h2 { margin: 0; font-size: 20px; max-width: 100%; overflow-wrap: anywhere; }
.proc-stage { color: var(--muted); margin: 0 0 12px; }
.proc-pct { font: 500 13px "JetBrains Mono", monospace; color: var(--muted); margin: 6px 0 0; }
.bar { width: min(460px, 100%); height: 8px; border-radius: 999px; background: var(--panel-2); overflow: hidden; }
.bar-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--vocals), var(--drums), var(--piano), var(--other));
  transition: width .4s ease;
}

/* ---------- player ---------- */
.player-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.player-head h2 { margin: 0; font-size: 22px; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.song-meta { margin: 2px 0 0; color: var(--muted); font-size: 13px; }

.ghost {
  background: transparent; border: 1px solid var(--line); border-radius: 10px;
  padding: 7px 12px; font-size: 13px; color: var(--muted); white-space: nowrap;
}
.ghost:hover { color: var(--text); border-color: var(--muted); }

.transport {
  display: flex; align-items: center; gap: 14px;
  margin: 22px 0 18px;
  padding: 12px 16px 12px 12px;
  background: var(--panel-2);
  border-radius: var(--radius);
}
.play {
  width: 48px; height: 48px; flex: none;
  border-radius: 50%; border: 0;
  background: var(--text); color: var(--bg);
  display: grid; place-items: center;
  transition: transform .1s;
}
.play:hover:not(:disabled) { transform: scale(1.05); }
.play:disabled { opacity: .35; cursor: default; }
.play svg { width: 22px; height: 22px; fill: currentColor; }
.play .i-pause, .play.playing .i-play { display: none; }
.play.playing .i-pause { display: block; }

.time { font: 500 13px "JetBrains Mono", monospace; color: var(--muted); min-width: 42px; text-align: center; }

input[type=range] { accent-color: var(--text); cursor: pointer; }
.seek { flex: 1; min-width: 60px; }
.master { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.master input { width: 90px; }

.loading-tracks { color: var(--muted); font-size: 13px; margin-bottom: 10px; }

.tracks { display: flex; flex-direction: column; gap: 8px; }

.track {
  --c: var(--accent);
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: stretch;
  background: var(--bg);
  border-radius: 12px;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: opacity .15s;
}
.track.off .lane { opacity: .28; }
.track.off .toggle .name { color: var(--muted); }

.track-ctrl {
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: 10px 12px;
  border-right: 1px solid var(--line);
}

.toggle {
  display: flex; align-items: center; gap: 10px;
  background: transparent; border: 0; padding: 4px 0; text-align: left;
}
.toggle .dot {
  width: 14px; height: 14px; border-radius: 50%; flex: none;
  border: 2px solid var(--c); background: var(--c);
  transition: background .15s;
}
.toggle[aria-pressed=false] .dot { background: transparent; }
.toggle .name { font-weight: 600; flex: 1; }
.toggle .key {
  font: 500 11px "JetBrains Mono", monospace; color: var(--muted);
  border: 1px solid var(--line); border-radius: 5px; padding: 0 5px;
}

.tag {
  align-self: flex-start;
  font-size: 11px; color: var(--muted);
  border: 1px dashed var(--line); border-radius: 999px; padding: 0 8px;
}

.track-actions { display: flex; align-items: center; gap: 8px; }
.solo {
  width: 28px; height: 26px; flex: none;
  border-radius: 7px; border: 1px solid var(--line); background: transparent;
  font-size: 12px; font-weight: 700; color: var(--muted);
}
.solo[aria-pressed=true] { background: var(--c); border-color: var(--c); color: #111; }
.vol { flex: 1; min-width: 0; accent-color: var(--c); }
.dl {
  width: 28px; height: 26px; flex: none;
  display: grid; place-items: center;
  color: var(--muted); border-radius: 7px;
}
.dl:hover { color: var(--text); background: var(--panel-2); }

.lane { position: relative; height: 84px; cursor: pointer; transition: opacity .15s; }
.lane canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.wave-clip { position: absolute; inset: 0 auto 0 0; width: 0; overflow: hidden; border-right: 2px solid var(--text); }
.wave-clip canvas { width: var(--lane-w, 100%); }

.hint { color: var(--muted); font-size: 12px; margin: 16px 0 0; }

button:focus-visible, a:focus-visible, input:focus-visible, .dropzone:focus-within {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

/* ---------- responsivo ---------- */
@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; padding: 16px; }
  .track { grid-template-columns: 1fr; }
  .track-ctrl { border-right: 0; border-bottom: 1px solid var(--line); flex-direction: row; flex-wrap: wrap; align-items: center; }
  .toggle { flex: 1; }
  .track-actions { flex-basis: 100%; }
}
@media (max-width: 560px) {
  .topbar { padding: 14px 16px; flex-wrap: wrap; }
  .subtitle { display: none; }
  .stage { padding: 16px; }
  .transport { flex-wrap: wrap; gap: 10px; }
  .seek { order: 5; flex-basis: 100%; }
  .master { margin-left: auto; }
  .hint { display: none; }
}

/* ---------- versao estatica ---------- */
.about {
  background: var(--panel); border-radius: var(--radius);
  padding: 14px 16px; font-size: 13px; color: var(--muted);
}
.about h2 { font-size: 13px; color: var(--text); margin: 0 0 6px; }
.about p { margin: 0 0 8px; }
.about p:last-child { margin: 0; }
.about a { color: var(--text); }
.proc-detail { color: var(--muted); font-size: 13px; margin: 10px 0 0; max-width: 460px; }
.cancel { margin-top: 18px; }
.warn { color: var(--drums); }
button.dl { border: 0; background: transparent; padding: 0; }

.app-download {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text); text-decoration: none;
}
.app-download:hover { border-color: var(--other); background: var(--panel-2); }
.app-download svg { color: var(--other); flex: none; }
.app-download span { display: flex; flex-direction: column; line-height: 1.3; }
.app-download strong { font-size: 14px; }
.app-download small { font-size: 12px; color: var(--muted); }
.app-hint {
  margin: -6px 0 0; padding: 10px 12px;
  font-size: 12px; color: var(--muted);
  background: var(--panel); border-radius: 10px;
}
.app-hint strong, .app-hint em { color: var(--text); }

/* ---------- conta e biblioteca ---------- */
.topbar-right { display: flex; align-items: center; gap: 12px; min-width: 0; }
.account { display: flex; align-items: center; }
.account-user { display: flex; align-items: center; gap: 10px; min-width: 0; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--bass); color: #111; font-weight: 700; font-size: 13px;
  text-transform: uppercase;
}
.account-email { font-size: 13px; color: var(--muted); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.btn-primary {
  border: 0; border-radius: 10px; padding: 8px 14px;
  background: var(--text); color: var(--bg);
  font-size: 13px; font-weight: 600; white-space: nowrap;
}
.btn-primary:hover:not(:disabled) { background: #fff; }
.btn-primary:disabled { opacity: .5; cursor: default; }
.ghost { display: inline-flex; align-items: center; gap: 6px; }
.ghost:disabled { opacity: .5; cursor: default; }

.library-section { display: flex; flex-direction: column; gap: 10px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.section-head .section-title { margin: 0; }
.usage { font-size: 11px; color: var(--muted); }
.lib-status.saving { color: var(--drums); }

.login-prompt {
  display: flex; flex-direction: column; gap: 8px; align-items: flex-start;
  padding: 14px 16px; border-radius: var(--radius);
  background: linear-gradient(135deg, color-mix(in srgb, var(--bass) 18%, var(--panel)), var(--panel));
  border: 1px solid var(--line);
}
.login-prompt strong { font-size: 14px; }
.login-prompt p { margin: 0; font-size: 13px; color: var(--muted); }

.head-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.save-status { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.save-status.ok { color: var(--piano); }
.save-status.error { color: #fca5a5; }
.save-status button { background: none; border: 0; padding: 0; color: var(--text); text-decoration: underline; font-size: 13px; }

/* ---------- janela de login ---------- */
.auth-dialog {
  width: min(400px, calc(100vw - 32px));
  padding: 0; border: 1px solid var(--line); border-radius: 18px;
  background: var(--panel); color: var(--text);
}
.auth-dialog::backdrop { background: rgba(0, 0, 0, .6); backdrop-filter: blur(2px); }
.auth-dialog form { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 26px 24px 24px; }
.auth-dialog h2 { margin: 0; font-size: 20px; }
.dialog-close {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; border-radius: 8px; border: 0;
  background: transparent; color: var(--muted); font-size: 22px; line-height: 1;
}
.dialog-close:hover { background: var(--panel-2); color: var(--text); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); border-radius: 10px; padding: 3px; }
.auth-tabs button {
  border: 0; border-radius: 8px; padding: 7px; background: transparent;
  color: var(--muted); font-size: 13px; font-weight: 600;
}
.auth-tabs button[aria-selected=true] { background: var(--panel-2); color: var(--text); }
.auth-dialog label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.auth-dialog input {
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font-size: 15px; color: var(--text);
}
.auth-dialog input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.auth-hint { margin: -4px 0 0; font-size: 12px; color: var(--muted); }
.auth-error { margin: 0; font-size: 13px; color: #fca5a5; }
.auth-submit { padding: 11px; font-size: 14px; }

@media (max-width: 560px) {
  .topbar-right { width: 100%; justify-content: space-between; }
  .account-email { display: none; }
  .player-head { flex-direction: column; }
  .head-actions { justify-content: flex-start; }
}


/* ---------- senha com mostrar/ocultar ---------- */
.password-field { position: relative; display: block; }
.password-field input { width: 100%; padding-right: 44px; }
.pw-toggle {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  width: 34px; height: 34px; border: 0; border-radius: 8px;
  background: transparent; color: var(--muted);
  display: grid; place-items: center;
}
.pw-toggle:hover { color: var(--text); background: var(--panel-2); }
.pw-toggle svg { width: 18px; height: 18px; }

.check { flex-direction: row !important; align-items: flex-start; gap: 10px !important; font-size: 13px; line-height: 1.4; }
.check input { width: 16px; height: 16px; margin: 2px 0 0; padding: 0; accent-color: var(--accent); flex: none; }
.check a, .auth-dialog a { color: var(--text); }

.rights-note { margin: -4px 0 0; font-size: 12px; line-height: 1.45; color: var(--muted); }
.rights-note a { color: var(--text); }

/* ---------- minha conta ---------- */
.account-info { margin: 0; font-size: 14px; color: var(--muted); }
.account-info strong { color: var(--text); }
.danger-zone {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 4px; padding: 14px; border-radius: 12px;
  border: 1px solid #5b2330; background: #1f1216;
}
.danger-zone h3 { margin: 0; font-size: 15px; color: #fca5a5; }
.danger-zone p { margin: 0; font-size: 13px; color: var(--muted); }
.btn-danger {
  border: 0; border-radius: 10px; padding: 10px 14px;
  background: #dc2626; color: #fff; font-size: 14px; font-weight: 600;
}
.btn-danger:hover:not(:disabled) { background: #ef4444; }
.btn-danger:disabled { opacity: .5; cursor: default; }

/* ---------- conteudo (SEO) ---------- */
.info { max-width: 1000px; margin: 0 auto; padding: 24px 28px 8px; }
.info h2 { font-size: 24px; letter-spacing: -0.01em; margin: 32px 0 12px; }
.info h2:first-child { margin-top: 8px; }
.info-lead { color: var(--muted); font-size: 16px; line-height: 1.6; margin: 0 0 22px; max-width: 760px; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.info-grid article { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.info-grid h3 { font-size: 15px; margin: 10px 0 6px; }
.info-grid p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
.info-dot { display: block; width: 10px; height: 26px; border-radius: 5px; background: var(--c); }
.steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; color: var(--muted); line-height: 1.55; }
.steps strong { color: var(--text); }
.faq { display: flex; flex-direction: column; gap: 8px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style-position: outside; }
.faq details p { margin: 0 0 14px; color: var(--muted); line-height: 1.55; font-size: 14px; }

/* ---------- rodape ---------- */
.site-footer { max-width: 1000px; margin: 40px auto 0; padding: 24px 28px 120px; border-top: 1px solid var(--line); }
.footer-notice p { margin: 0 0 10px; font-size: 13px; color: var(--muted); line-height: 1.55; }
.footer-notice strong { color: var(--text); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 16px 0 10px; }
.footer-links a, .link-btn { color: var(--text); font-size: 13px; }
.link-btn { background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
.footer-copy { margin: 0; font-size: 12px; color: var(--muted); }
.footer-copy a { color: var(--muted); }

/* ---------- aviso de cookies ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50;
  max-width: 760px; margin: 0 auto;
  display: flex; align-items: center; gap: 16px;
  padding: 14px 16px; border-radius: 14px;
  background: var(--panel-2); border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
}
.cookie-banner p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.cookie-banner strong { color: var(--text); }
.cookie-banner a { color: var(--text); }
@media (max-width: 560px) {
  .cookie-banner { flex-direction: column; align-items: stretch; }
  .info, .site-footer { padding-left: 16px; padding-right: 16px; }
  .info h2 { font-size: 20px; }
}

/* ---------- paginas de texto (termos, privacidade, contato) ---------- */
.doc-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 28px; border-bottom: 1px solid var(--line); }
.doc-top a.brand { color: var(--text); text-decoration: none; }
.doc { max-width: 760px; margin: 0 auto; padding: 32px 28px 24px; line-height: 1.65; }
.doc h1 { font-size: 30px; letter-spacing: -0.02em; margin: 0 0 6px; }
.doc .updated { color: var(--muted); font-size: 13px; margin: 0 0 28px; }
.doc h2 { font-size: 19px; margin: 34px 0 10px; scroll-margin-top: 16px; }
.doc h3 { font-size: 15px; margin: 20px 0 6px; }
.doc p, .doc li { color: #c9c9d6; font-size: 15px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc a { color: var(--text); }
.doc strong { color: var(--text); }
.doc table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 14px; }
.doc th, .doc td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; color: #c9c9d6; }
.doc th { color: var(--text); font-weight: 600; }
.doc code { font: 500 13px "JetBrains Mono", monospace; background: var(--panel-2); padding: 1px 5px; border-radius: 5px; }
.callout { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; padding: 12px 16px; margin: 16px 0; }
.callout p { margin: 0; }
.table-wrap { overflow-x: auto; }

.contact-form { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.contact-form input, .contact-form select, .contact-form textarea {
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font: inherit; font-size: 15px; color: var(--text);
}
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin: 0; font-size: 14px; }
.form-msg.ok { color: var(--piano); }
.form-msg.error { color: #fca5a5; }
@media (max-width: 560px) {
  .doc, .doc-top { padding-left: 16px; padding-right: 16px; }
  .doc h1 { font-size: 24px; }
}

/* cabecalho em telas medias: sem rolagem horizontal */
.topbar { flex-wrap: wrap; row-gap: 10px; }
@media (max-width: 1100px) {
  .account-email { display: none; }
}
@media (max-width: 960px) {
  .device { display: none; }
}

/* ---------- termos no cadastro ---------- */
.auth-dialog:has(.terms-block:not([hidden])) { width: min(560px, calc(100vw - 32px)); }
.terms-block { display: flex; flex-direction: column; gap: 8px; }
.terms-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; }
.terms-head a { font-size: 12px; color: var(--muted); }
.terms-box {
  max-height: 210px; overflow-y: auto;
  padding: 4px 14px; border-radius: 10px;
  background: var(--bg); border: 1px solid var(--line);
  font-size: 13px; line-height: 1.55; color: #c9c9d6;
}
.terms-box:focus-visible { outline: 2px solid var(--accent); }
.terms-box h2 { font-size: 14px; margin: 14px 0 4px; color: var(--text); }
.terms-box h3 { font-size: 13px; margin: 10px 0 4px; color: var(--text); }
.terms-box p, .terms-box li { font-size: 13px; margin: 6px 0; }
.terms-box ul { padding-left: 18px; margin: 6px 0; }
.terms-box a { color: var(--text); }
.terms-box .callout { margin: 10px 0; padding: 8px 12px; }
.terms-loading { color: var(--muted); }
.terms-progress { margin: 0; font-size: 12px; color: var(--drums); }
.terms-progress.done { color: var(--piano); }
.check input:disabled + span { opacity: .55; }
.check input:disabled { cursor: not-allowed; }

.login-prompt-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.placeholder-cta { margin-top: 10px; padding: 10px 18px; font-size: 14px; }
.dropzone.locked { opacity: .75; }

/* ---------- aceite de cada documento ---------- */
.auth-dialog:has(.consents:not([hidden])) { width: min(580px, calc(100vw - 32px)); }
.consents { display: flex; flex-direction: column; gap: 12px; }
.consents-intro { margin: 0; font-size: 13px; color: var(--muted); }
.consent {
  display: flex; flex-direction: column; gap: 8px;
  padding: 12px; border-radius: 12px;
  border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 60%, var(--panel));
}
.consent .terms-box { max-height: 180px; }
.accept-btn {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 14px; background: var(--panel-2); color: var(--text);
  font-size: 13px; font-weight: 600;
}
.accept-btn:hover:not(:disabled) { border-color: var(--piano); }
.accept-btn:disabled { opacity: .45; cursor: not-allowed; }
.consent.accepted { border-color: color-mix(in srgb, var(--piano) 55%, var(--line)); }
.consent.accepted .terms-box, .consent.accepted .terms-progress { display: none; }
.consent.accepted .accept-btn { background: color-mix(in srgb, var(--piano) 18%, var(--panel)); border-color: var(--piano); color: var(--piano); }

/* ---------- anuncios ---------- */
.ad-slot { display: block; min-height: 120px; padding: 6px 0 0; }
.ad-label { display: block; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.info .ad-slot { margin: 24px 0 4px; }
.ad-wrap { max-width: 1000px; margin: 24px auto 0; padding: 0 28px; }
.cookie-actions { display: flex; gap: 8px; flex: none; }
@media (max-width: 560px) {
  .ad-wrap { padding: 0 16px; }
  .cookie-actions { justify-content: flex-end; }
}
