/* Fail closed before scripts load, including dynamically rendered Insights controls. */
html:not(.brief-eligible) [data-brief-open]{display:none!important}
/* Daily brief: the top bar button and its email opt-in dialog (Arena page). Veranta Design System tokens from
   veranta-ds.css; loaded after it. */
.topbar .account-wrap{display:flex;align-items:center;gap:8px}

/* ── Button: a pill like the wallet button, with a lime "new" dot until it has been opened once ── */
.brief-btn{position:relative;display:inline-flex;align-items:center;gap:8px;min-height:38px;padding:0 14px 0 12px;cursor:pointer;white-space:nowrap;
  border:1px solid rgba(169,234,25,.35);border-radius:999px;background:rgba(169,234,25,.08);color:var(--grey-50);
  font:500 14px/1 var(--font-sans);transition:background-color .15s,border-color .15s}
.brief-btn:hover{background:rgba(169,234,25,.14);border-color:rgba(169,234,25,.6)}
.brief-btn svg{width:16px;height:16px;flex:none;fill:none;stroke:var(--lime-500);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.brief-btn .brief-dot{position:absolute;top:-2px;right:-2px;width:9px;height:9px;border-radius:50%;background:var(--lime-500);
  box-shadow:0 0 0 2px var(--grey-950);animation:brief-ping 2.4s ease-out infinite}
.brief-btn.is-seen .brief-dot{display:none}
@keyframes brief-ping{0%{box-shadow:0 0 0 2px var(--grey-950),0 0 0 2px rgba(169,234,25,.55)}70%,100%{box-shadow:0 0 0 2px var(--grey-950),0 0 0 9px rgba(169,234,25,0)}}
/* Phones: the logo row only has room for Connect wallet, so the brief moves to an icon at the end of the tab row. */
.brief-btn--nav{display:none}
@media(max-width:640px){
  .brief-btn--bar{display:none}
  .topbar .site-nav .brief-btn--nav{display:inline-flex;width:36px;min-height:36px;height:36px;margin-left:auto;padding:0;justify-content:center;flex:none}
}
@media(prefers-reduced-motion:reduce){.brief-btn .brief-dot{animation:none}}

/* ── Dialog: a dawn hero (the brief is a morning note), then the steps ── */
.brief-dialog{box-sizing:border-box;width:min(480px,calc(100vw - 32px));max-height:calc(100dvh - 32px);margin:auto;padding:0;overflow:auto;
  border:1px solid rgba(255,255,255,.12);border-radius:16px;color:var(--grey-50);background:var(--grey-800);box-shadow:0 30px 90px rgba(0,0,0,.65)}
.brief-dialog::backdrop{background:rgba(0,0,0,.62);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.brief-dialog[open]{animation:brief-in .24s cubic-bezier(.2,.8,.2,1)}
@keyframes brief-in{from{opacity:0;transform:translateY(10px) scale(.98)}}

.brief-hero{position:relative;height:200px;padding:16px;box-sizing:border-box;
  background:linear-gradient(180deg,rgba(16,17,21,0) 62%,var(--grey-800) 100%),linear-gradient(180deg,rgba(0,0,0,.25),rgba(0,0,0,0) 40%),
    url('/images/veranta-hero-archive.webp') 50% 100%/cover no-repeat}
.brief-tag{display:inline-flex;align-items:center;gap:8px;height:28px;padding:0 12px 0 10px;border-radius:999px;
  background:rgba(8,8,16,.45);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-shadow:inset 0 0 0 1px rgba(255,255,255,.14);
  font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--grey-50)}
.brief-tag i{width:6px;height:6px;border-radius:50%;background:var(--lime-500);box-shadow:0 0 0 3px rgba(169,234,25,.2)}
.brief-x{position:absolute;top:14px;right:14px;display:grid;place-items:center;width:32px;height:32px;border:0;border-radius:50%;cursor:pointer;
  background:rgba(8,8,16,.45);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-shadow:inset 0 0 0 1px rgba(255,255,255,.14);color:var(--grey-50)}
.brief-x:hover{background:rgba(8,8,16,.7)}
.brief-x svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}

.brief-in{display:flex;flex-direction:column;gap:22px;padding:4px 24px 22px}
.brief-intro{display:flex;flex-direction:column;gap:10px}
.brief-title{margin:0;font-size:26px;line-height:32px;font-weight:500;letter-spacing:-.02em}
.brief-copy{margin:0;font-size:14px;line-height:21px;color:var(--grey-200)}
.brief-points{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:6px 0 0;padding:0;list-style:none}
.brief-points li{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:12px;border-radius:10px;background:var(--grey-700);
  box-shadow:inset 0 0 0 1px var(--grey-600);font-size:12px;line-height:16px;color:var(--grey-100)}
.brief-points svg{width:18px;height:18px;fill:none;stroke:var(--brand-lilac);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}

/* labelled steps; data-progress on the dialog marks how far along the trader is */
.brief-steps{display:flex;align-items:center;gap:0;margin:0;padding:0;list-style:none;counter-reset:none}
.brief-steps li{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--grey-300);white-space:nowrap}
.brief-steps li+li::before{content:'';width:28px;height:1px;margin:0 10px;background:var(--grey-500)}
.brief-steps span{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;font-size:11px;font-weight:600;box-shadow:inset 0 0 0 1px var(--grey-500)}
.brief-dialog[data-progress="1"] [data-n="1"],.brief-dialog[data-progress="2"] [data-n="2"],.brief-dialog[data-progress="3"] [data-n="3"]{color:var(--grey-50)}
.brief-dialog[data-progress="1"] [data-n="1"] span,.brief-dialog[data-progress="2"] [data-n="2"] span,.brief-dialog[data-progress="3"] [data-n="3"] span{background:var(--lime-500);color:#0B0C0F;box-shadow:none}
/* finished steps: a lime ring and a lime connector */
.brief-dialog[data-progress="2"] [data-n="1"] span,.brief-dialog[data-progress="3"] [data-n="1"] span,.brief-dialog[data-progress="3"] [data-n="2"] span{color:var(--lime-500);box-shadow:inset 0 0 0 1px var(--lime-500)}
.brief-dialog[data-progress="2"] [data-n="2"]::before,.brief-dialog[data-progress="3"] [data-n="2"]::before,.brief-dialog[data-progress="3"] [data-n="3"]::before{background:var(--lime-500)}

.brief-step{display:none;flex-direction:column;gap:14px}
.brief-dialog[data-step=signin] [data-for=signin],.brief-dialog[data-step=confirm] [data-for=confirm],.brief-dialog[data-step=done] [data-for=done]{display:flex}
.brief-dialog[data-step=done] .brief-intro,.brief-dialog[data-step=done] .brief-steps,.brief-dialog[data-step=done] .brief-foot{display:none}
.brief-note{margin:0;font-size:14px;line-height:21px;color:var(--grey-100)}
.brief-card{display:flex;flex-direction:column;border-radius:12px;background:var(--grey-900);box-shadow:inset 0 0 0 1px var(--grey-600)}
.brief-row{display:flex;align-items:center;gap:12px;padding:12px 14px}
.brief-row+.brief-row{border-top:1px solid var(--grey-600)}
.brief-ico{display:grid;place-items:center;width:30px;height:30px;flex:none;border-radius:8px;background:var(--grey-700);box-shadow:inset 0 0 0 1px var(--grey-600)}
.brief-ico svg{width:16px;height:16px;fill:none;stroke:var(--grey-200);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.brief-ico--tg{background:rgba(42,171,238,.14);box-shadow:inset 0 0 0 1px rgba(42,171,238,.35)}.brief-ico--tg svg{stroke:#5EC2F2}
.brief-row-k{font-size:13px;color:var(--grey-300)}
.brief-row-v{margin-left:auto;font-size:15px;font-weight:500;color:var(--grey-50);font-variant-numeric:tabular-nums;text-align:right;overflow-wrap:anywhere}
.brief-hint{margin:-4px 0 0;font-size:12px;line-height:16px;color:var(--grey-300)}
.brief-err{overflow-wrap:anywhere;min-width:0;margin:0;font-size:13px;line-height:18px;color:var(--error-500)}
.brief-err:empty{display:none}
.brief-submit{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:48px;border:0;border-radius:999px;cursor:pointer;
  background:var(--lime-500);color:#0B0C0F;font:600 15px var(--font-sans);text-decoration:none;transition:filter .15s,transform .15s}
.brief-submit:hover{filter:brightness(1.08)}.brief-submit:active{transform:scale(.99)}
.brief-submit:disabled{cursor:default;opacity:.6}
.brief-foot{margin:-6px 0 0;text-align:center;font-size:12px;line-height:16px;color:var(--grey-300)}

/* done */
.brief-done{align-items:flex-start;gap:12px;padding-top:4px}
.brief-done h2{margin:4px 0 0;font-size:24px;line-height:30px;font-weight:500}
.brief-done h2:focus{outline:none!important}
.brief-done p{margin:0;font-size:14px;line-height:21px;color:var(--grey-200)}
.brief-check{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:var(--lime-500)}
.brief-check svg{width:22px;height:22px;fill:none;stroke:#0B0C0F;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.brief-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:8px}
.brief-actions .brief-submit{padding:0 22px}
.brief-ghost{height:48px;padding:0 22px;border:1px solid rgba(255,255,255,.16);border-radius:999px;background:none;color:var(--grey-50);font:500 14px var(--font-sans);cursor:pointer}
.brief-ghost:hover{border-color:rgba(255,255,255,.4)}

/* phones: a bottom sheet with a shorter hero */
@media(max-width:640px){
  .brief-dialog{width:100vw;max-width:100vw;max-height:94dvh;margin:auto 0 0;border-radius:18px 18px 0 0;border-bottom:0}
  .brief-dialog[open]{animation:brief-up .28s cubic-bezier(.2,.8,.2,1)}
  .brief-hero{height:180px}
  .brief-in{gap:18px;padding:4px 16px calc(18px + env(safe-area-inset-bottom))}
  .brief-title{font-size:22px;line-height:28px}
  .brief-points li{padding:10px}
}
@keyframes brief-up{from{transform:translateY(40px);opacity:0}}
@media(prefers-reduced-motion:reduce){.brief-dialog[open]{animation:none}}
/* Availability is a quiet feature state, never an animated notification. */
.brief-btn .brief-dot{display:none;animation:none}
.brief-ready{font-size:11px;color:var(--lime-500)}
.brief-btn--nav .brief-ready{position:absolute;top:-4px;right:-4px;font-size:0;width:7px;height:7px;border-radius:50%;background:var(--lime-500)}
.position-brief-page-open .position-brief-button{white-space:normal;text-align:center}
.brief-ready[hidden]{display:none}

.brief-btn.is-ready{border-color:var(--lime-500);background:rgba(169,234,25,.18);box-shadow:0 0 0 2px rgba(169,234,25,.12)}
.brief-btn.is-preparing{border-color:var(--grey-500)}
.brief-btn .brief-label{max-width:185px;overflow:hidden;text-overflow:ellipsis}
