/* DM Creator dashboard, rich layer: dark sidebar, hero bands, receipts, funnels, flow strips and all the motion.
   Loaded after app.css. Everything that moves is switched off for people who ask for reduced motion (bottom of file). */
.dk { --paper: #0e0e0c; --card: #151512; --soft: #1d1d19; --line: #2c2c27; --ink: #f2efe7; --ink-2: #bcb8ad; --ink-3: #85827a; --ok: #5fcb8f; --red: #f0745d; --amber: #e0a84a; background: var(--paper); color: var(--ink); }
.ic { width: 18px; height: 18px; flex: none; }
.btn .ic { width: 15px; height: 15px; }
.btn { transition: background .14s, color .14s, border-color .14s, scale .18s cubic-bezier(.3, 1.6, .5, 1), translate .2s cubic-bezier(.2, .8, .2, 1); }
.btn:hover { scale: 1.04; }
.btn:active { scale: .96; }
.main > * + * { margin-top: 14px; }
.main > .head + * { margin-top: 0; }

/* ---------- page curtain */
.curtain { position: fixed; inset: 0; z-index: 300; background: var(--accent); color: #11110f; display: grid; place-items: center; overflow: hidden; pointer-events: none; animation: curtain .82s cubic-bezier(.76, 0, .24, 1) forwards; }
.curtain span { font-family: var(--display); font-weight: 800; font-size: min(19vw, 250px); letter-spacing: -.07em; line-height: .8; text-transform: lowercase; white-space: nowrap; animation: cword .82s cubic-bezier(.76, 0, .24, 1) forwards; }
.curtain span i { font-family: var(--serif); font-style: italic; font-weight: 600; font-variation-settings: "opsz" 26; letter-spacing: -.04em; }
@keyframes curtain { 0%, 34% { transform: translateY(0); } 100% { transform: translateY(-102%); } }
@keyframes cword { 0% { transform: translateY(46%) skewY(7deg); opacity: 0; } 34% { transform: none; opacity: 1; } 100% { transform: translateY(70%); opacity: 1; } }

/* ---------- entrance: things rise, bars grow, numbers count */
@keyframes riseIn { from { opacity: 0; transform: translateY(38px) scale(.985); } }
@keyframes rise { from { transform: translateY(112%); } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.9); } }
@keyframes growx { from { transform: scaleX(0); } }
@keyframes growy { from { transform: scaleY(0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { from { opacity: 0; } }
.main.enter > * { animation: riseIn .75s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(.34s + var(--n, 0) * .08s); }
.main.enter > *:nth-child(2) { --n: 1; } .main.enter > *:nth-child(3) { --n: 2; } .main.enter > *:nth-child(4) { --n: 3; } .main.enter > *:nth-child(5) { --n: 4; } .main.enter > *:nth-child(n+6) { --n: 5; }
.enter .list > * { animation: riseIn .5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(.7s + var(--n, 0) * .05s); }
.enter .list > *:nth-child(2) { --n: 1; } .enter .list > *:nth-child(3) { --n: 2; } .enter .list > *:nth-child(4) { --n: 3; } .enter .list > *:nth-child(5) { --n: 4; } .enter .list > *:nth-child(6) { --n: 5; } .enter .list > *:nth-child(n+7) { --n: 6; }
.enter .meter i { animation: growx 1s cubic-bezier(.2, .8, .2, 1) .7s both; transform-origin: 0 50%; }
.enter .badge { animation: pop .4s cubic-bezier(.3, 1.6, .5, 1) .9s both; }

/* ---------- pointer toys */
.spot { position: relative; overflow: hidden; }
.spot::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(360px circle at var(--mx, 78%) var(--my, 24%), rgba(201, 242, 60, .17), transparent 62%); }
.spot > * { position: relative; z-index: 1; }
[data-tilt] { transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .3s cubic-bezier(.2, .8, .2, 1), border-color .15s, background .15s, color .15s; will-change: transform; }

/* ---------- dark sidebar with a sliding marker */
.side { border-right-color: #2c2c27; }
.side .logo { color: #f2efe7; }
.nav { position: relative; }
.nav::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 38px; background: var(--accent); border-radius: 7px; transform: translateY(calc(var(--i) * 38px)); }
.nav.move::before { animation: navmove .6s cubic-bezier(.3, 1.4, .4, 1); }
@keyframes navmove { from { transform: translateY(calc(var(--p) * 38px)) scaleY(.6); } }
.nav a { position: relative; height: 38px; padding: 0 11px; gap: 11px; border-radius: 7px; transition: color .15s, padding .2s; }
.nav a::before { display: none; }
.nav a:hover { background: transparent; padding-left: 16px; }
.nav a .ico { display: grid; }
.nav a.on { color: #11110f; font-weight: 700; }
.nav a.on .count { background: #11110f; color: #f2efe7; }
.nav a .count { background: var(--accent); color: #11110f; }
.pace { border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px 12px; display: grid; gap: 9px; color: var(--ink-2); }
.pace .meter { background: #2c2c27; height: 5px; }
.pace .meter i { background: var(--accent); }
.acct { border-top: 0; padding: 4px 4px 0; }
.side .avatar { background: var(--accent); color: #11110f; border-color: var(--accent); }
.side .input { background: #151512; }

/* ---------- hero band (home, auth art) */
.hero-band { position: relative; border-radius: 14px; padding: 30px 32px 58px; display: grid; grid-template-columns: minmax(0, 1fr) 288px; gap: 34px; align-items: center; }
.hero-band::before, .auth-art::before, .band::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5; z-index: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 80% 30%, #000, transparent 72%); mask-image: radial-gradient(ellipse 70% 90% at 80% 30%, #000, transparent 72%); }
.hb-live { display: flex; align-items: center; gap: 9px; color: var(--ink-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: ping 1.6s infinite; flex: none; }
.dot.off { background: var(--amber); animation: none; }
@keyframes ping { from { box-shadow: 0 0 0 0 rgba(201, 242, 60, .7); } to { box-shadow: 0 0 0 11px rgba(201, 242, 60, 0); } }
.hb-title { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 5.6vw, 80px); line-height: .9; letter-spacing: -.06em; text-transform: lowercase; margin: 14px 0 14px; }
.hb-title.big { font-size: clamp(44px, 6.2vw, 96px); }
.hb-title .ln { display: block; white-space: nowrap; overflow: hidden; padding: .05em .12em .16em; margin: -.05em -.12em -.16em; }
.hb-title .ln > span { display: inline-block; }
.enter .hb-title .ln > span { animation: rise .95s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(.42s + var(--d, 0) * .11s); }
.hb-title em { position: relative; z-index: 0; font-family: var(--serif); font-style: italic; font-weight: 500; font-variation-settings: "opsz" 30; letter-spacing: -.035em; color: #11110f; padding: 0 .12em .04em; display: inline-block; }
.hb-title em::before { content: ''; position: absolute; inset: .06em 0 0; background: var(--accent); transform: rotate(-1.6deg); transform-origin: 0 50%; z-index: -1; }
.enter .hb-title em::before { animation: swipe .6s cubic-bezier(.6, 0, .2, 1) .95s both; }
@keyframes swipe { from { transform: rotate(-1.6deg) scaleX(0); } }
.hero-band p { color: var(--ink-2); max-width: 34em; margin: 0 0 20px; font-size: 16px; }
.hero-band p b { color: var(--ink); }
.hb-ticker { position: absolute; left: 0; right: 0; bottom: 0; border-top: 1px solid var(--line); padding: 10px 0; overflow: hidden; white-space: nowrap; color: var(--ink-3); z-index: 1; }
.hb-ticker div { display: inline-flex; gap: 38px; padding-left: 38px; animation: slide 34s linear infinite; }
.hb-ticker span:nth-child(3n) { color: var(--accent); }
@keyframes slide { to { transform: translateX(-50%); } }

/* the receipt */
.rc { --s: 6px; background: #fbfaf5; color: #11110f; font-family: var(--mono); font-size: 10.5px; line-height: 1.5; padding: 16px 15px 24px; rotate: 2.5deg;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--s)) 100%; mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--s)) 100%; }
.rc .top { display: flex; justify-content: space-between; align-items: baseline; }
.rc .top .logo { color: #11110f; font-size: 16px; }
.rc .cut { border-top: 1px dashed #11110f66; margin: 8px 0; }
.rc .r { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 6px; padding: 1.5px 0; }
.rc .r span:first-child { color: #11110f88; }
.rc .r span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc .r span:last-child { text-align: right; text-transform: lowercase; }
.rc .sum { display: flex; justify-content: space-between; font-weight: 500; font-size: 11.5px; }
.rc .sum b { background: #c9f23c; padding: 0 6px; font-weight: 500; }
.enter .rc { animation: print .9s cubic-bezier(.2, .8, .2, 1) .5s both; }
@keyframes print { from { clip-path: inset(0 0 100% 0); translate: 0 -30px; } to { clip-path: inset(0 0 -20px 0); } }
.enter .rc .r { animation: fadein .3s both; animation-delay: calc(.9s + var(--k, 0) * .12s); }

/* ---------- stat tiles */
.stat { position: relative; }
.stat .k { display: flex; justify-content: space-between; align-items: center; }
.stat .k .ic { width: 16px; height: 16px; color: var(--ink-3); }
a.stat:hover { background: var(--accent); color: #11110f; border-color: #11110f; }
a.stat:hover .k, a.stat:hover .s, a.stat:hover .ic { color: #11110f; }
.minibars { display: flex; align-items: flex-end; gap: 3px; height: 34px; margin-top: 12px; }
.minibars i { flex: 1; background: var(--ink); min-height: 2px; height: var(--h); transform-origin: 50% 100%; }
.minibars i:last-child { background: var(--accent); outline: 1px solid var(--ink); }
.enter .minibars i { animation: growy .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(.8s + var(--k) * .035s); }
.seg { display: grid; grid-template-columns: repeat(20, 1fr); gap: 3px; margin-top: 12px; height: 34px; align-items: end; }
.seg i { height: 16px; background: var(--soft); border: 1px solid var(--line); }
.seg i.on { background: var(--ink); border-color: var(--ink); height: 24px; }
.enter .seg i { animation: pop .3s both; animation-delay: calc(.8s + var(--k) * .025s); }

/* ---------- funnel */
.funnel { display: grid; gap: 12px; margin-top: 18px; }
.fn { display: grid; grid-template-columns: 104px 1fr 70px; gap: 12px; align-items: center; }
.fn .lab { color: var(--ink-3); }
.fn .bar { height: 30px; background: var(--soft); position: relative; overflow: hidden; }
.fn .bar i { position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--ink); transform-origin: 0 50%; }
.fn:last-child .bar i { background: var(--accent); outline: 1px solid var(--ink); outline-offset: -1px; }
.fn b { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -.05em; text-align: right; }
.enter .fn .bar i { animation: growx 1s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(.7s + var(--k) * .13s); }

/* ---------- queue lanes */
.qcard h3 { color: var(--ink); }
.q-top { display: flex; align-items: baseline; gap: 12px; margin: 16px 0 10px; color: var(--ink-3); }
.qn { font-family: var(--display); font-weight: 700; font-size: 62px; letter-spacing: -.06em; line-height: .85; color: var(--ink); }
.lane { position: relative; height: 19px; border-block: 1px solid var(--line); overflow: hidden; margin: 0 0 8px; }
.lane i { position: absolute; top: 5px; left: -12px; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); animation: flow 1.1s linear infinite; animation-delay: calc(var(--k) * -.085s); }
.lane.idle i { animation-play-state: paused; opacity: .25; }
.lane.slow i { background: var(--accent); width: 9px; height: 9px; top: 4px; animation-duration: 4.4s; animation-delay: calc(var(--k) * -1.1s); }
@keyframes flow { to { left: 100%; } }
.qcard p { color: var(--ink-2); margin: 12px 0 0; }
.item.top { text-decoration: none; align-items: center; transition: background .15s, padding .2s; }
.item.top:hover { background: var(--soft); padding-left: 26px; }
.item.top .bar { height: 5px; background: var(--soft); margin-top: 8px; overflow: hidden; }
.item.top .bar i { display: block; height: 100%; width: var(--w); background: var(--ink); transform-origin: 0 50%; }
.enter .item.top .bar i { animation: growx .9s cubic-bezier(.2, .8, .2, 1) 1s both; }

/* ---------- bands of big numbers */
.band { position: relative; border-radius: 14px; padding: 24px 28px 26px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 0; }
.band .k { font: 500 10.5px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.band .v { font-family: var(--display); font-weight: 700; font-size: clamp(38px, 4.6vw, 62px); letter-spacing: -.06em; line-height: .9; margin-top: 12px; }
.band .v small { font: 500 11px/1 var(--mono); letter-spacing: .06em; color: var(--ink-3); margin-left: 5px; }
.band > div:nth-child(4) .v { color: var(--accent); }

/* ---------- automations */
.types { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.type { position: relative; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 10px; text-align: left; padding: 16px 16px 18px; cursor: pointer; display: grid; gap: 9px; align-content: start; font-family: inherit; }
.type .ic { width: 22px; height: 22px; }
.type b { font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: -.035em; line-height: 1.05; text-transform: lowercase; }
.type small { color: var(--ink-3); font-size: 12.5px; line-height: 1.35; }
.type .go { position: absolute; top: 12px; right: 12px; width: 24px; height: 24px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; transition: rotate .35s cubic-bezier(.3, 1.6, .5, 1); }
.type .go .ic { width: 12px; height: 12px; }
.type:hover { background: var(--accent); color: #11110f; border-color: #11110f; }
.type:hover small { color: #2e2e24; }
.type:hover .go { rotate: 90deg; background: #11110f; color: var(--accent); }
.acards { display: grid; gap: 12px; }
.acard { padding: 20px 22px; display: grid; gap: 16px; transition: border-color .15s, translate .25s cubic-bezier(.2, .8, .2, 1); }
.acard:hover { border-color: var(--ink); translate: 0 -3px; }
.acard.off { opacity: .55; }
.acard-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.acard h3 { font-size: 24px; letter-spacing: -.04em; margin-top: 7px; }
.acard .mono .ic { width: 14px; height: 14px; }
.flow { display: flex; flex-wrap: wrap; gap: 8px 0; align-items: center; }
.node { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--ink); border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 600; background: var(--paper); margin-right: 6px; }
.node .ic { width: 14px; height: 14px; }
.node.key { background: var(--ink); color: var(--paper); font: 500 11px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.node.end { background: var(--accent); color: #11110f; border-color: #11110f; margin-right: 0; }
.wire { width: 26px; height: 1px; background: var(--ink); position: relative; margin-right: 6px; transform-origin: 0 50%; }
.wire::after { content: ''; position: absolute; right: 0; top: -3px; width: 6px; height: 6px; border-top: 1px solid var(--ink); border-right: 1px solid var(--ink); rotate: 45deg; }
.enter .flow > * { animation: pop .4s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(.75s + var(--k) * .07s); }
.enter .flow > .wire { animation-name: growx; }
.acard .nums { margin-top: 0; }

/* ---------- chart */
.chart { height: auto; }
.enter .chart .ln { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.5s cubic-bezier(.5, 0, .2, 1) .7s forwards; }
.enter .chart .area, .enter .chart .pt { animation: fadein .6s 1.8s both; }
.enter .bar-row .bar i { animation: growx .9s cubic-bezier(.2, .8, .2, 1) .8s both; transform-origin: 0 50%; }

/* ---------- link in bio preview */
.bio-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 26px; align-items: start; }
.bio-prev { position: sticky; top: 20px; }
.bio-prev iframe { display: block; width: 100%; height: 540px; border: 0; background: var(--paper); }

/* ---------- plans */
.plan.pick { background: var(--accent); --ink: #11110f; --ink-2: #2e2e24; --ink-3: #4b4b3c; --paper: #c9f23c; --line: #11110f44; color: #11110f; border-color: #11110f; }
.plan { transition: translate .25s cubic-bezier(.2, .8, .2, 1), border-color .15s; }
.plan:hover { translate: 0 -5px; border-color: var(--ink); }

/* ---------- auth: art on the left, form on the right */
.auth2 { min-height: 100vh; display: grid; grid-template-columns: 1.15fr 1fr; }
.auth-art { position: relative; overflow: hidden; padding: 34px 44px 30px; display: flex; flex-direction: column; justify-content: space-between; gap: 30px; }
.auth-art p { color: var(--ink-2); font-size: 18px; max-width: 26em; margin: 0; }
.auth-art .rc { width: 270px; align-self: flex-end; rotate: -3deg; margin-top: -10px; }
.auth-form { display: grid; place-items: center; padding: 28px 18px; }
.auth-form .auth-card { padding: 0; max-width: 380px; }
.auth-form .logo { display: none; }
.auth2.enter .auth-form { animation: riseIn .8s cubic-bezier(.2, .8, .2, 1) .5s both; }

/* ---------- small moves */
.toast { animation: toastin .5s cubic-bezier(.3, 1.6, .5, 1); border-radius: 999px; padding: 12px 20px; }
@keyframes toastin { from { opacity: 0; transform: translate(-50%, 40px) scale(.8); } }
.switch span::after { transition: transform .3s cubic-bezier(.3, 1.8, .5, 1), background .15s; }
.chip, .badge { transition: scale .15s; }
.voice { transition: border-color .15s; position: relative; }
.mic { transition: rotate .4s cubic-bezier(.3, 1.6, .5, 1), background .15s, color .15s; }
.mic:hover { rotate: -14deg; }
.fab { animation: bob 3.2s ease-in-out infinite; }
@keyframes bob { 50% { translate: 0 -6px; } }
.drawer { animation: drawerin .5s cubic-bezier(.2, .9, .2, 1); }
@keyframes drawerin { from { transform: translateX(100%); } }
.drawer-bg { animation: fadein .3s; }
.bub { animation: pop .3s cubic-bezier(.3, 1.5, .5, 1) both; }
.thread-body .bub, .phone-body .bub { animation: none; }
#sim-body .bub:last-child { animation: pop .35s cubic-bezier(.3, 1.5, .5, 1) both; }
.desk-item { transition: background .15s; }
.desk-item:hover { background: var(--soft); }
.person { transition: background .15s, padding .2s; }
.person:hover { padding-left: 20px; }
.mobile-bar a .ico { display: block; margin: 0 auto 4px; width: 20px; height: 20px; }
.mobile-bar a .ico .ic { width: 20px; height: 20px; }

@media (max-width: 1100px) { .types { grid-template-columns: repeat(3, 1fr); } .hero-band { grid-template-columns: 1fr; } .hero-band .rc { max-width: 300px; } .bio-grid { grid-template-columns: 1fr; } .bio-prev { position: static; max-width: 320px; margin: 0 auto; width: 100%; } }
@media (max-width: 860px) { .auth2 { grid-template-columns: 1fr; } .auth-art { display: none; } .auth-form .logo { display: inline-flex; margin-bottom: 22px; } }
@media (max-width: 760px) {
  .hero-band { padding: 24px 18px 54px; }
  .band { grid-template-columns: 1fr 1fr; padding: 20px 18px; }
  .types { grid-template-columns: 1fr 1fr; }
  .fn { grid-template-columns: 78px 1fr 56px; }
  .fn b { font-size: 21px; }
  .mobile-bar a { padding: 9px 0 8px; }
  .acard { padding: 18px 16px; }
  .curtain span { font-size: 20vw; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01s !important; }
  .curtain { display: none; }
  .hb-ticker div { animation: none !important; }
  [data-tilt] { transform: none !important; }
}

/* late fixes */
.acard .nums { display: flex; gap: 18px; font-size: 13px; color: var(--ink-3); }
.acard .nums b { color: var(--ink); }
.desk-item > .row:first-child { flex-wrap: wrap; row-gap: 8px; }
.desk-item > .row:first-child .grow { min-width: min(100%, 220px); }
@media (max-width: 1000px) {
  .inbox { grid-template-columns: 1fr; height: auto; }
  .inbox.open .people { display: none; }
  .inbox:not(.open) .thread { display: none; }
  .thread { height: calc(100vh - 250px); min-height: 380px; }
}
