/* Titanio Transfer — tema vinho sobre copyparty (marca real: #a30018 + preto + branco + Inter) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap');

:root, html, html.z, html.a, html.b {
  --fg: #f3eef0; --fg-max: #ffffff;
  --bg: #0e0b0c; --bg-d1: #171214; --bg-d2: #171214; --bg-d3: #0e0b0c;
  --bg-u1: #1b1517; --bg-u2: #221a1d; --bg-u3: #2a2024; --bg-u5: #38282e;
  --a: #e0475f; --a-b: #ff6b81; --a-hil: #a30018;
  --btn-bg: #a30018; --btn-fg: #ffffff;
  --u2-b1-bg: #a30018; --u2-b2-bg: #7d0013;
  --font-main: 'Inter', -apple-system, sans-serif;
}
html, body {
  background: #0e0b0c !important;
  font-family: 'Inter', -apple-system, sans-serif !important;
}

/* hero injetado pelo titanio.js */
#tt-hero { padding: 34px 16px 8px; text-align: center; }
#tt-hero .tt-barca { height: 54px; width: auto; margin: 0 auto 14px; display: block; opacity: .96;
  filter: drop-shadow(0 4px 18px rgba(163,0,24,.35)); }
#tt-hero .tt-logo { font-weight: 800; font-size: 30px; letter-spacing: .16em; color: #fff; }
#tt-hero .tt-logo span { color: #e0475f; }
#tt-hero .tt-sub { color: #b9a8ad; font-size: 14px; margin-top: 6px; letter-spacing: .02em; }
#tt-hero .tt-rule { width: 64px; height: 3px; background: #a30018; margin: 16px auto 0; border-radius: 2px; }

/* ===== TELA 1: gate de e-mail — esconde TODA a UI do copyparty ate identificar ===== */
html.tt-gate #ops, html.tt-gate #op_up2k, html.tt-gate #wrap,
html.tt-gate #path, html.tt-gate #srv_info, html.tt-gate #widget,
html.tt-gate #goh { display: none !important; }
#tt-gate { max-width: 520px; margin: 18px auto 0; padding: 0 20px; text-align: center;
  animation: tt-in .35s ease both; }
@keyframes tt-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
#tt-gate .tt-lbl { color: #f3eef0; font-size: 16px; font-weight: 600; margin-bottom: 14px; }
#tt-gate .tt-row { display: flex; gap: 10px; }
#tt-gate #tt-email {
  flex: 1; min-width: 0; height: 52px; padding: 0 16px; font-size: 16px;
  color: #fff; background: #171214; border: 1.5px solid #38282e; border-radius: 12px;
  font-family: 'Inter', sans-serif; outline: none; transition: border-color .15s, box-shadow .15s;
}
#tt-gate #tt-email::placeholder { color: #6f5f64; }
#tt-gate #tt-email:focus { border-color: #a30018; box-shadow: 0 0 0 3px rgba(163,0,24,.25); }
#tt-gate #tt-go {
  height: 52px; padding: 0 22px; font-size: 15px; font-weight: 700; white-space: nowrap;
  color: #fff !important; background: #a30018 !important; border: 0 !important; border-radius: 12px !important;
  cursor: pointer; font-family: 'Inter', sans-serif; transition: background .15s, transform .1s;
}
#tt-gate #tt-go:hover { background: #c40a26 !important; }
#tt-gate #tt-go:active { transform: translateY(1px); }
#tt-gate #tt-go:disabled { opacity: .6; cursor: default; }
#tt-gate .tt-err { color: #ff6b81; font-size: 13px; min-height: 18px; margin-top: 10px; text-align: left; }
#tt-gate .tt-hint { color: #8a787e; font-size: 12.5px; margin-top: 6px; line-height: 1.5; text-align: left; }

/* ===== TELA 2: barra "enviando como" ===== */
#tt-who { max-width: 720px; margin: 4px auto 18px; padding: 11px 16px; text-align: center;
  color: #d8cace; font-size: 13.5px; background: #171214; border: 1px solid #2a2024; border-radius: 12px; }
#tt-who b { color: #fff; }
#tt-who a { color: #e0475f; text-decoration: none; margin-left: 4px; }
#tt-who a:hover { text-decoration: underline; }
#tt-who .tt-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%;
  background: #35c46a; box-shadow: 0 0 0 3px rgba(53,196,106,.18); vertical-align: middle; }

/* zona de upload = protagonista */
#u2btn {
  border: 2px dashed #a30018 !important; border-radius: 16px !important;
  background: linear-gradient(180deg, #171214, #1b1214) !important;
  padding: 2.4em 1em !important; font-size: 1.12em !important; color: #e8dfe2 !important;
}
#u2btn:hover { background: #22151a !important; border-color: #e0475f !important; }

/* botões e links no vinho */
input[type=submit], button, .btn { border-radius: 10px !important; }
a { color: #e0475f; }

/* cliente (área /uploads): esconder navegação técnica e infos de servidor */
html.tt-client #tree, html.tt-client #treeul, html.tt-client #treepar,
html.tt-client #srv_info, html.tt-client #goh, html.tt-client #ops,
html.tt-client #path, html.tt-client #acc_info { display: none !important; }
html.tt-client #wrap { margin-left: 0 !important; }

/* ===== TELA 2: dropzone protagonista — mata TODO controle técnico do copyparty ===== */
html.tt-client:not(.tt-gate) #u2cards,     /* contadores ok/ng/done/busy/que */
html.tt-client:not(.tt-gate) .opview:not(#op_up2k),  /* player e outros painéis */
html.tt-client:not(.tt-gate) #bdoc,        /* doc-viewer */
html.tt-client:not(.tt-gate) #wfp,         /* breadcrumb "anterior/acima/próximo" */
html.tt-client:not(.tt-gate) #repl,        /* botão "π" (config do copyparty) */
html.tt-client:not(.tt-gate) #widget,
html.tt-client:not(.tt-gate) #wtoggle,
html.tt-client:not(.tt-gate) #barpos,
html.tt-client:not(.tt-gate) #barbuf { display: none !important; }
/* no gate também mata o "π" e o breadcrumb, caso apareçam */
html.tt-gate #repl, html.tt-gate #wfp { display: none !important; }
html.tt-client:not(.tt-gate) #op_up2k { max-width: 720px; margin: 0 auto !important; }
/* status de fila ("nenhum upload na fila" / progresso) fica, mas discreto e centrado */
html.tt-client:not(.tt-gate) #u2etaw { max-width: 720px; margin: 8px auto 0 !important; text-align: center; }

/* o botão de upload mora DENTRO do #u2conf — mostrar só ele, esconder os toggles técnicos.
   copyparty dá width expandida + margens NEGATIVAS ao u2conf/u2btn: zerar tudo. */
html.tt-client:not(.tt-gate) #u2conf {
  display: table !important; width: auto !important; max-width: 100% !important;
  margin: 14px auto 0 !important;
}
html.tt-client:not(.tt-gate) #u2conf td:not(#u2btn_cw) { display: none !important; }
html.tt-client:not(.tt-gate) #u2btn_cw { padding: 0 !important; }
html.tt-client:not(.tt-gate) #u2btn {
  margin: 0 !important;
  display: block !important; min-width: 420px; max-width: 640px; padding: 46px 36px;
  background: #17090c; border: 2px dashed #a30018; border-radius: 14px;
  color: #f3eef0; font-family: Inter, system-ui, sans-serif; font-size: 16px; line-height: 1.6;
  cursor: pointer; text-align: center; transition: background .15s, border-color .15s;
}
html.tt-client:not(.tt-gate) #u2btn:hover { background: #220d12; border-color: #c40a26; }
html.tt-client:not(.tt-gate) #u2btn small { color: #8a787e; font-size: 13px; }
