/* TradeOS web (03/12/2026): porta de entrada da Conta DOVYR e avisos de sincronização. Prefixo tosw-. */
.tosw { position: fixed; inset: 0; z-index: 2147483000; background: #07090b; color: var(--bone, #f2f0e9); font-family: var(--font-sans, Inter, -apple-system, BlinkMacSystemFont, sans-serif); -webkit-font-smoothing: antialiased; animation: tosw-in .32s ease both; }
.tosw.out { animation: tosw-out .3s ease both; pointer-events: none; }
@keyframes tosw-in { from { opacity: 0; } }
@keyframes tosw-out { to { opacity: 0; } }
.tosw *, .tosw *::before, .tosw *::after { box-sizing: border-box; }
.tosw-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; filter: saturate(.8) brightness(.62); pointer-events: none; }
.tosw-veil { position: absolute; inset: 0; background: radial-gradient(120% 90% at 20% 30%, rgba(7, 9, 11, .35), rgba(7, 9, 11, .92) 70%), linear-gradient(180deg, rgba(7, 9, 11, .2), rgba(7, 9, 11, .85)); pointer-events: none; }
.tosw-scroll { position: absolute; inset: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; display: flex; padding: max(24px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom)); }
.tosw-card { margin: auto; width: min(560px, 100%); padding: 34px 32px 28px; border: 1px solid rgba(255, 255, 255, .09); border-radius: 22px; background: rgba(12, 14, 17, .78); backdrop-filter: blur(18px) saturate(1.1); -webkit-backdrop-filter: blur(18px) saturate(1.1); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.tosw-logo { display: block; height: 22px; width: auto; }
.tosw-sub { margin: 12px 0 24px; font: 300 11px/1 -apple-system, BlinkMacSystemFont, "SF Pro Display", Inter, sans-serif; letter-spacing: .44em; color: rgba(242, 240, 233, .72); }
.tosw-sub b { font-weight: 600; color: var(--acid, #d8ff3e); }
.tosw-sub span { letter-spacing: .2em; color: rgba(242, 240, 233, .45); }
.tosw h1 { margin: 0 0 10px; font: 600 clamp(26px, 6vw, 32px)/1.12 var(--font-sans, Inter, sans-serif); letter-spacing: -.02em; }
.tosw h1 em { font-style: normal; color: var(--acid, #d8ff3e); }
.tosw-muted { margin: 0 0 14px; color: rgba(242, 240, 233, .66); font-size: 14.5px; line-height: 1.55; }
.tosw-muted b { color: var(--bone, #f2f0e9); font-weight: 600; }
.tosw-form { display: grid; gap: 14px; margin-top: 18px; }
.tosw-g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tosw-f { display: grid; gap: 7px; min-width: 0; }
.tosw-f > span { font: 600 11px/1.2 var(--font-sans, Inter, sans-serif); letter-spacing: .14em; text-transform: uppercase; color: rgba(242, 240, 233, .55); }
.tosw-f small { color: rgba(242, 240, 233, .45); font-size: 12px; }
.tosw input:not([type="checkbox"]) { width: 100%; min-width: 0; height: 48px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; background: rgba(255, 255, 255, .04); color: var(--bone, #f2f0e9); font: 500 16px/1 var(--font-sans, Inter, sans-serif); outline: none; transition: border-color .2s, background-color .2s; color-scheme: dark; }
.tosw input:focus { border-color: var(--acid, #d8ff3e); background: rgba(255, 255, 255, .06); }
.tosw input::placeholder { color: rgba(242, 240, 233, .32); }
.tosw-pass, .tosw-at { position: relative; display: block; }
.tosw .tosw-pass input:not([type="checkbox"]) { padding-right: 48px; }
.tosw-eye { position: absolute; right: 6px; top: 6px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 9px; background: none; color: rgba(242, 240, 233, .5); cursor: pointer; }
.tosw-eye svg { width: 18px; height: 18px; }
.tosw-eye[aria-pressed="true"] { color: var(--acid, #d8ff3e); }
.tosw-at i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-style: normal; color: rgba(242, 240, 233, .45); pointer-events: none; }
.tosw .tosw-at input:not([type="checkbox"]) { padding-left: 32px; }
.tosw-check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: rgba(242, 240, 233, .82); cursor: pointer; }
.tosw-check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--acid, #d8ff3e); }
.tosw-check small { color: rgba(242, 240, 233, .45); font-size: 12.5px; }
.tosw-inline { padding: 0; border: 0; background: none; color: var(--acid, #d8ff3e); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.tosw-err { min-height: 18px; margin: 0; color: #ff8a7a; font-size: 13.5px; line-height: 1.4; }
.tosw-err:empty { min-height: 0; }
.tosw-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 22px; border: 1px solid transparent; border-radius: 13px; background: var(--acid, #d8ff3e); color: var(--on-acid, #050608); font: 600 15px/1 var(--font-sans, Inter, sans-serif); cursor: pointer; transition: filter .2s, opacity .2s; }
.tosw-btn:hover { filter: brightness(1.06); }
.tosw-btn:disabled { opacity: .6; cursor: progress; }
.tosw-btn.full { width: 100%; }
.tosw-btn.ghost { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .14); color: var(--bone, #f2f0e9); }
.tosw-row { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 18px; }
.tosw-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; }
.tosw-links button { padding: 6px 0; border: 0; background: none; color: rgba(242, 240, 233, .78); font: 500 14px/1.2 var(--font-sans, Inter, sans-serif); cursor: pointer; text-decoration: underline; text-decoration-color: rgba(242, 240, 233, .25); text-underline-offset: 4px; }
.tosw-links button:first-child { color: var(--acid, #d8ff3e); text-decoration-color: currentColor; }
.tosw-fine { margin: 18px 0 0; color: rgba(242, 240, 233, .4); font-size: 12.5px; }
.tosw-wait { display: grid; justify-items: start; gap: 6px; }
.tosw-spin { width: 26px; height: 26px; margin-bottom: 10px; border: 2px solid rgba(255, 255, 255, .14); border-top-color: var(--acid, #d8ff3e); border-radius: 50%; animation: tosw-rot .8s linear infinite; }
@keyframes tosw-rot { to { transform: rotate(360deg); } }
.tosw :focus-visible { outline: 2px solid var(--acid, #d8ff3e); outline-offset: 2px; }

.tosw-terms { position: fixed; inset: 0; z-index: 2147483100; display: grid; place-items: center; padding: 18px; background: rgba(0, 0, 0, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-family: var(--font-sans, Inter, sans-serif); color: var(--bone, #f2f0e9); }
.tosw-terms-box { width: min(560px, 100%); max-height: calc(100dvh - 36px); overflow-y: auto; padding: 26px 24px 22px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px; background: #0d1013; }
.tosw-terms-box h2 { margin: 0 0 14px; font-size: 20px; }
.tosw-terms-box p { margin: 0 0 12px; font-size: 14px; line-height: 1.55; color: rgba(242, 240, 233, .78); }
.tosw-terms-box p b { color: var(--bone, #f2f0e9); }
.tosw-terms-box .tosw-btn { margin-top: 8px; }

.tosw-pill { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 2147482000; max-width: min(560px, calc(100vw - 24px)); padding: 11px 16px; border-radius: 12px; background: #2a1714; border: 1px solid rgba(255, 138, 122, .35); color: #ffd6cf; font: 500 13px/1.4 var(--font-sans, Inter, sans-serif); transform: translateX(-50%); transition: opacity .3s, transform .3s; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); }
.tosw-pill.hide { opacity: 0; transform: translate(-50%, 10px); pointer-events: none; }
.tosw-banner { position: fixed; left: 50%; top: max(14px, env(safe-area-inset-top)); z-index: 2147482000; display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 24px); padding: 10px 10px 10px 16px; border-radius: 14px; background: #101418; border: 1px solid rgba(216, 255, 62, .35); color: var(--bone, #f2f0e9); font: 500 14px/1.35 var(--font-sans, Inter, sans-serif); transform: translateX(-50%); box-shadow: 0 16px 40px rgba(0, 0, 0, .45); }
.tosw-banner .tosw-btn { height: 38px; padding: 0 14px; font-size: 13.5px; flex: none; }
html.tos-m .tosw-banner { top: calc(var(--tos-mbar-h, 56px) + 10px); }

/* na web não há perfis locais nem senha deste aparelho: a conta é a Conta DOVYR */
.dvs-access .dvs-profiles { display: none !important; }
.tos-login-test, .tos-plan-sim { display: none !important; }

@media (max-width: 560px) {
  .tosw-card { padding: 26px 20px 22px; border-radius: 18px; }
  .tosw-g2 { grid-template-columns: 1fr; }
  .tosw-scroll { padding-left: 12px; padding-right: 12px; }
  .tosw-banner { flex-direction: column; align-items: stretch; text-align: center; }
}
