/* ══════════════════════════════════════════════════
   Lio — demo interattiva (UI app + motore timeline)
   ══════════════════════════════════════════════════ */

.dwrap { position: relative; }
.dstage {
  position: relative; width: 100%; max-width: 1240px; margin: 0 auto;
  aspect-ratio: 1280 / 800; border-radius: 18px; overflow: hidden;
  background: #fff; border: 1px solid var(--n-200);
  box-shadow: 0 40px 90px -50px rgba(10, 25, 60, 0.42), 0 2px 6px rgba(10, 25, 60, 0.05);
}
.dapp {
  position: absolute; top: 0; left: 0; width: 1280px; height: 800px;
  transform-origin: top left; font-family: var(--font-body);
  color: var(--n-950); background: #fff; user-select: none;
}

/* ── browser chrome ───────────────────────────── */
.dchrome { height: 46px; background: #ece9f3; display: flex; align-items: center; gap: 14px; padding: 0 16px; border-bottom: 1px solid #ddd8e6; }
.dchrome__dots { display: flex; gap: 7px; }
.dchrome__dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.dchrome__url { flex: 1; height: 28px; border-radius: 999px; background: #f6f4fa; display: flex; align-items: center; gap: 9px; padding: 0 14px; font-size: 12.5px; color: var(--n-700); }
.dchrome__tab { display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 14px; border-radius: 9px 9px 0 0; background: #fff; font-size: 12.5px; font-weight: 600; color: var(--n-800); }

/* ── shell ────────────────────────────────────── */
.dbody { position: relative; height: 754px; display: flex; background: #fff; }
.dside { width: 62px; flex: none; background: #0a1230; display: flex; flex-direction: column; align-items: center; padding: 16px 0; gap: 14px; }
.dside__logo { width: 34px; height: 34px; display: grid; place-items: center; }
.dside__app { width: 40px; height: 40px; border-radius: 11px; background: var(--blue-500); display: grid; place-items: center; box-shadow: 0 6px 16px -6px rgba(0, 119, 253, 0.8); }
.dside__app .lio-face { width: 22px; height: 23px; filter: brightness(0) invert(1); }
.dside__me { margin-top: auto; width: 34px; height: 34px; border-radius: 50%; background: #2b6dfb; color: #fff; display: grid; place-items: center; font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; }
.dmain { position: relative; flex: 1; min-width: 0; background: #fff; overflow: hidden; }

/* ── screens ──────────────────────────────────── */
.dscreen { position: absolute; inset: 0; display: none; flex-direction: column; }
.dscreen.is-on { display: flex; }

/* home */
.dhome { align-items: center; justify-content: center; padding: 0 80px; }
.dhome__face { width: 58px; height: 60px; margin-bottom: 26px; }
.dhome h1 { font-family: var(--font-display); font-size: 41px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; text-align: center; color: var(--n-950); margin: 0; }
.dhome__sub { margin: 16px 0 34px; font-size: 17px; color: var(--n-600); }
.dhome__list { width: 100%; max-width: 760px; margin-top: 26px; }
.dhome__label, .ddesk__eyebrow { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--n-400); }
.dresume { display: flex; align-items: center; gap: 14px; padding: 13px 4px; border-bottom: 1px solid var(--n-100); }
.dresume__ico { color: var(--n-400); flex: none; }
.dresume b { display: block; font-size: 14.5px; font-weight: 600; color: var(--n-900); }
.dresume small { font-size: 12.5px; color: var(--n-500); }
.dresume__go { margin-left: auto; color: var(--n-300); }

/* input bar */
.dinput { width: 100%; max-width: 760px; background: #fff; border: 1px solid var(--n-200); border-radius: 16px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; box-shadow: 0 10px 28px -20px rgba(10, 25, 60, 0.28); transition: border-color 160ms ease-out, box-shadow 160ms ease-out; }
.dinput.is-focus { border-color: var(--blue-400); box-shadow: 0 0 0 3px rgba(0, 119, 253, 0.1); }
.dinput.is-drop { border: 1.5px dashed var(--blue-400); background: rgba(0, 119, 253, 0.04); }
.dinput__plus { color: var(--n-400); flex: none; }
.dinput__field { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; font-size: 16px; color: var(--n-950); min-height: 24px; }
.dinput__ph { color: var(--n-400); position: relative; overflow: hidden; }
.dinput__ph b { font-weight: 500; display: block; transition: opacity 320ms ease, transform 320ms ease; }
.dinput__ph b.is-out { opacity: 0; transform: translateY(6px); position: absolute; }
.dinput__ph.is-typed { color: var(--n-950); }
.dinput__ph.is-typed b { font-weight: 400; }
.dinput__caret { width: 1.5px; height: 19px; background: var(--n-800); animation: dcaret 1s steps(1) infinite; flex: none; }
@keyframes dcaret { 50% { opacity: 0; } }
.dinput__mic { color: var(--n-400); flex: none; }
.dinput__send { width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--blue-500); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 16px -8px rgba(0, 119, 253, 0.9); }
.dinput__new { position: absolute; top: -9px; right: 44px; font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: 0.1em; color: #fff; background: #0f9b7a; border-radius: 5px; padding: 2px 5px; }
.dinput-wrap { position: relative; width: 100%; max-width: 760px; }
.dinput__note { text-align: center; font-size: 12px; color: var(--n-400); margin: 6px 0 0; }
.dchip { display: inline-flex; align-items: center; gap: 7px; background: var(--blue-50); border-radius: 8px; padding: 5px 9px; font-size: 13px; font-weight: 600; color: var(--blue-600); max-width: 260px; }
.dchip i { font-family: var(--font-mono); font-size: 9.5px; font-weight: 700; background: var(--blue-500); color: #fff; border-radius: 4px; padding: 2px 4px; font-style: normal; }
.dchip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dfile { display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--n-200); border-radius: 10px; padding: 7px 11px; font-size: 13px; font-weight: 600; color: var(--n-800); }
.dfile i { font-family: var(--font-mono); font-size: 9px; font-weight: 700; color: #0f9b7a; background: rgba(15, 155, 122, 0.1); border-radius: 4px; padding: 3px 5px; font-style: normal; }
.dfile small { font-weight: 500; color: var(--n-500); }

/* chat */
.dchat { display: none; flex-direction: column; }
.dchat.is-on { display: flex; }
.dchat__head { height: 62px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 26px; }
.dchat__head .lio-face { width: 22px; height: 23px; }
.dchat__title { font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: -0.02em; color: var(--n-950); }
.dchat__new { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 14.5px; font-weight: 600; color: var(--n-700); }
.dchat__cols { flex: 1; min-height: 0; display: flex; }
.dchat__col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dchat__scroll { flex: 1; min-height: 0; overflow: hidden; padding: 4px 30px 10px; }
.dchat__flow { display: flex; flex-direction: column; gap: 22px; padding-bottom: 20px; }
.dchat__foot { flex: none; padding: 8px 30px 14px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.dfeedback { width: 100%; max-width: 760px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--n-200); border-radius: 14px; padding: 9px 16px; font-size: 14px; color: var(--n-700); background: #fff; }
.dfeedback__stars { margin-left: auto; display: flex; gap: 10px; color: var(--n-300); }
.dfeedback__x { color: var(--n-400); }

/* messages */
.dstep { display: none; }
.dstep.is-in { display: block; animation: dIn 420ms cubic-bezier(.22,.7,.3,1) both; }
@keyframes dIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.dmsg-u { justify-content: flex-end; }
.dstep.is-in.dmsg-u { display: flex; }
.dmsg-u span { background: var(--n-50); border: 1px solid var(--n-150); border-radius: 14px; padding: 12px 18px; font-size: 15.5px; color: var(--n-900); max-width: 620px; }
.dmsg-a { font-size: 15.5px; line-height: 1.66; color: var(--n-800); }
.dmsg-a p { margin: 0 0 14px; }
.dmsg-a p:last-child { margin-bottom: 0; }
.dmsg-a b { color: var(--n-950); font-weight: 700; }
.dmsg-a .neg { color: #d03636; }
.dthink { display: inline-flex; gap: 5px; align-items: center; padding: 4px 0; }
.dthink i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue-300); animation: dbounce 1.1s infinite; }
.dthink i:nth-child(2) { animation-delay: .16s; }
.dthink i:nth-child(3) { animation-delay: .32s; }
@keyframes dbounce { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-5px); opacity: 1; } }

.dmetrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0; }
.dmetric { border: 1px solid var(--n-150); border-radius: 12px; padding: 15px 16px; }
.dmetric span { display: block; font-family: var(--font-mono); font-size: 9.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--n-500); margin-bottom: 9px; }
.dmetric b { font-family: var(--font-display); font-size: 30px; font-weight: 800; letter-spacing: -0.03em; color: var(--n-950); line-height: 1; }
.dmetric em { display: inline-block; margin-top: 9px; font-style: normal; font-size: 11.5px; font-weight: 600; color: #d03636; background: rgba(208, 54, 54, 0.08); border-radius: 6px; padding: 3px 7px; }

.dtable { border: 1px solid var(--n-150); border-radius: 12px; overflow: hidden; margin: 16px 0; }
.dtable__head { display: flex; align-items: center; gap: 9px; padding: 13px 17px; background: rgba(208, 54, 54, 0.05); font-size: 14.5px; font-weight: 700; color: var(--n-950); }
.dtable__head i { width: 7px; height: 7px; border-radius: 50%; background: #d03636; }
.drow { display: flex; align-items: center; gap: 12px; padding: 13px 17px; border-top: 1px solid var(--n-150); }
.drow > b { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; color: var(--n-900); }
.dtag { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; color: var(--n-600); background: var(--n-100); border-radius: 6px; padding: 4px 8px; }
.dcode { font-family: var(--font-mono); font-size: 10.5px; color: var(--n-500); background: var(--n-50); border: 1px solid var(--n-150); border-radius: 6px; padding: 4px 8px; white-space: nowrap; }
.dbullets { margin: 4px 0 14px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.dbullets li { display: flex; gap: 11px; font-size: 15px; color: var(--n-700); }
.dbullets li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue-300); margin-top: 8px; flex: none; }
.dbullets b { font-weight: 700; color: var(--n-950); }
.dsteps-num { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.dsteps-num > li > b { display: flex; align-items: baseline; gap: 10px; font-size: 15.5px; color: var(--n-950); }
.dsteps-num > li > b em { font-family: var(--font-mono); font-style: normal; font-size: 12px; color: var(--blue-500); }
.dsteps-num ul { margin: 8px 0 0 22px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.dsteps-num ul li { font-size: 14.5px; color: var(--n-600); position: relative; padding-left: 16px; }
.dsteps-num ul li::before { content: ""; position: absolute; left: 0; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--blue-200); }
.dsources { display: inline-flex; align-items: center; gap: 9px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--n-150); font-size: 14px; color: var(--n-600); }
.dsources b { color: var(--n-900); }
.dsources s { text-decoration: none; letter-spacing: 2px; color: var(--blue-400); }

/* ── desk panel ───────────────────────────────── */
.ddesk { width: 0; flex: none; border-left: 1px solid var(--n-150); background: #fdfdff; overflow: hidden; transition: width 520ms cubic-bezier(.3,.8,.3,1); }
.ddesk.is-open { width: 480px; }
.ddesk__in { width: 480px; height: 100%; display: flex; flex-direction: column; padding: 18px 22px 22px; box-sizing: border-box; }
.ddesk__head { display: flex; align-items: center; gap: 12px; }
.ddesk__head h3 { font-family: var(--font-display); font-size: 21px; font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.ddesk__head h3 small { font-size: 13px; font-weight: 600; color: var(--n-400); margin-left: 7px; }
.ddesk__add { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--n-800); border: 1px solid var(--n-200); border-radius: 999px; padding: 7px 13px; background: #fff; }
.ddesk__x { color: var(--n-400); }
.ddesk__ws { display: inline-flex; align-items: center; gap: 9px; margin-top: 16px; border: 1px solid var(--n-200); border-radius: 12px; padding: 9px 13px; font-size: 14px; font-weight: 600; color: var(--n-900); background: #fff; }
.ddesk__ws svg:first-child { color: var(--blue-500); }
.ddesk__hint { font-size: 12.5px; color: var(--n-400); margin: 13px 0 14px; }
.ddesk__sec { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--n-950); margin-bottom: 14px; }
.ddesk__sec svg { color: var(--blue-500); }
.ddesk__sec small { font-size: 12.5px; font-weight: 600; color: var(--n-400); }
.ddesk__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; overflow: hidden; }
.dcard { position: relative; background: #fff; border: 1px solid var(--n-150); border-radius: 13px; padding: 13px 14px; box-shadow: 0 6px 18px -14px rgba(10, 25, 60, 0.24); transition: border-color 160ms, box-shadow 160ms, transform 160ms, opacity 160ms; }
.dcard.is-hot { border-color: var(--blue-300); box-shadow: 0 10px 24px -14px rgba(0, 119, 253, 0.45); transform: translateY(-2px); }
.dcard.is-lift { opacity: .32; }
.dcard__kind { display: flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 9.5px; font-weight: 600; letter-spacing: 0.1em; color: var(--n-500); margin-bottom: 9px; }
.dcard__kind svg { color: var(--blue-400); }
.dcard b { display: block; font-family: var(--font-display); font-size: 14.5px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; color: var(--n-950); }
.dcard code { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--n-500); margin-top: 9px; }
.dcard .st { display: block; font-size: 12.5px; font-weight: 600; margin-top: 10px; }
.st--part { color: #c07615; }
.st--no { color: #d03636; }

/* desk detail */
.ddetail { display: none; flex-direction: column; height: 100%; }
.ddetail.is-on { display: flex; }
.ddetail__top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ddetail__back { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 700; color: var(--n-900); border: 1px solid var(--n-200); border-radius: 999px; padding: 7px 14px; background: #fff; }
.ddetail__open { margin-left: auto; font-size: 13.5px; font-weight: 600; color: var(--n-600); display: inline-flex; align-items: center; gap: 5px; }
.ddetail__card { border: 1px solid var(--n-150); border-radius: 15px; background: #fff; padding: 17px 18px; flex: 1; min-height: 0; overflow: hidden; }
.ddetail__meta { display: flex; align-items: center; gap: 10px; }
.dpill { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; border-radius: 999px; padding: 5px 11px; }
.dpill--part { color: #c07615; background: rgba(192, 118, 21, 0.1); }
.dpill--cite { color: var(--n-700); border: 1px solid var(--n-200); }
.ddetail h4 { font-family: var(--font-display); font-size: 25px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.18; margin: 14px 0 8px; }
.ddetail__code { font-family: var(--font-mono); font-size: 12.5px; color: var(--n-500); }
.dtabs { display: flex; gap: 4px; background: var(--n-50); border-radius: 11px; padding: 4px; margin: 16px 0 4px; }
.dtab { flex: 1; text-align: center; font-size: 13.5px; font-weight: 600; color: var(--n-500); border-radius: 8px; padding: 9px 0; transition: background 160ms, color 160ms, box-shadow 160ms; }
.dtab.is-on { background: #fff; color: var(--blue-600); box-shadow: 0 2px 8px -4px rgba(10, 25, 60, 0.25); }
.dpane { display: none; padding-top: 14px; }
.dpane.is-on { display: block; animation: dIn 320ms ease-out both; }
.dpane h5 { font-family: var(--font-display); font-size: 17px; font-weight: 700; margin: 0 0 12px; }
.dfield { display: flex; align-items: baseline; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--n-100); font-size: 13.5px; }
.dfield span { width: 148px; flex: none; color: var(--n-500); }
.dfield b { font-weight: 700; color: var(--n-900); }
.dgap { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--n-100); font-size: 14px; color: var(--n-800); }
.dgap svg { margin-left: auto; color: var(--n-400); flex: none; }
.devid { border: 1px solid var(--n-150); border-radius: 12px; padding: 13px 14px; margin-bottom: 10px; }
.devid__top { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; color: var(--n-900); }
.devid__top svg { color: var(--n-400); flex: none; }
.devid__top span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.devid__cited { font-size: 12px; color: #0f9b7a; white-space: nowrap; }
.devid__ai { font-family: var(--font-mono); font-size: 9.5px; font-weight: 700; color: var(--n-500); border: 1px solid var(--n-200); border-radius: 5px; padding: 2px 5px; }
.devid a { display: inline-block; margin-top: 9px; font-size: 13px; font-weight: 600; color: var(--blue-500); }
.dsub { font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--n-400); }

/* right rail */
.drail { position: absolute; top: 74px; right: 14px; display: flex; flex-direction: column; gap: 10px; }
.drail__btn { position: relative; width: 42px; height: 42px; border-radius: 12px; background: #fff; border: 1px solid var(--n-150); display: grid; place-items: center; color: var(--blue-500); box-shadow: 0 6px 16px -12px rgba(10, 25, 60, 0.3); }
.drail__btn b { position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; border-radius: 999px; background: var(--blue-500); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }

/* ── output panel ─────────────────────────────── */
.doutput { position: absolute; top: 120px; right: 78px; width: 430px; background: #fff; border: 1px solid var(--n-150); border-radius: 16px; padding: 18px 20px 20px; box-shadow: 0 30px 60px -30px rgba(10, 25, 60, 0.4); opacity: 0; transform: translateY(-8px) scale(.98); pointer-events: none; transition: opacity 320ms, transform 320ms; }
.doutput.is-on { opacity: 1; transform: none; }
.doutput h4 { font-family: var(--font-display); font-size: 21px; font-weight: 800; letter-spacing: -0.02em; margin: 8px 0 6px; }
.doutput p { font-size: 13.5px; color: var(--n-500); margin: 0 0 16px; }
.doutput__docs { border-top: 1px solid var(--n-150); padding-top: 14px; }
.ddoc { display: flex; align-items: center; gap: 12px; border: 1px solid var(--n-150); border-radius: 12px; padding: 12px 13px; transition: border-color 160ms, box-shadow 160ms; }
.ddoc.is-hot { border-color: var(--blue-300); box-shadow: 0 8px 20px -12px rgba(0, 119, 253, 0.4); }
.ddoc i { font-family: var(--font-mono); font-size: 9.5px; font-weight: 700; color: var(--blue-600); background: var(--blue-50); border-radius: 6px; padding: 6px 7px; font-style: normal; }
.ddoc b { display: block; font-size: 14px; font-weight: 700; color: var(--n-950); }
.ddoc small { font-size: 12px; color: var(--n-500); }

/* ── document viewer ──────────────────────────── */
.dviewer { position: absolute; inset: 56px 26px 12px 26px; background: #fff; border: 1px solid var(--n-200); border-radius: 16px; box-shadow: 0 50px 90px -40px rgba(10, 25, 60, 0.5); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity 340ms, transform 340ms; display: flex; flex-direction: column; overflow: hidden; }
.dviewer.is-on { opacity: 1; transform: none; }
.dviewer__bar { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--n-150); }
.dviewer__bar .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--blue-50); color: var(--blue-500); display: grid; place-items: center; }
.dviewer__bar b { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
.dviewer__bar small { display: block; font-family: var(--font-mono); font-size: 11.5px; color: var(--n-500); margin-top: 3px; }
.dviewer__acts { margin-left: auto; display: flex; align-items: center; gap: 9px; }
.dbtn { font-size: 13.5px; font-weight: 600; color: var(--n-800); border: 1px solid var(--n-200); border-radius: 999px; padding: 8px 14px; background: #fff; display: inline-flex; align-items: center; gap: 7px; }
.dviewer__page { flex: 1; min-height: 0; background: var(--n-100); display: flex; justify-content: center; padding: 26px 0 0; overflow: hidden; }
.dpaper { width: 620px; background: #fff; border: 1px solid var(--n-200); padding: 54px 62px; }
.dpaper h2 { font-family: var(--font-display); font-size: 31px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.16; text-align: center; margin: 0 0 40px; }
.dpaper h6 { font-size: 16px; font-weight: 500; color: var(--n-700); margin: 0 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--n-200); font-family: var(--font-body); }
.dpaper ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.dpaper ul li { font-size: 15.5px; color: var(--n-800); }
.dviewer__foot { flex: none; display: flex; align-items: center; gap: 20px; padding: 10px 18px; border-top: 1px solid var(--n-150); font-size: 12.5px; color: var(--n-600); }

/* ── cursor + drag ghost ──────────────────────── */
.dcursor { position: absolute; left: 0; top: 0; width: 26px; height: 26px; pointer-events: none; z-index: 40; opacity: 0; transform: translate(640px, 500px); transition: transform 760ms cubic-bezier(.4,.05,.2,1), opacity 300ms; filter: drop-shadow(0 3px 5px rgba(10, 25, 60, 0.35)); }
.dcursor.is-on { opacity: 1; }
.dcursor::after { content: ""; position: absolute; left: -9px; top: -9px; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--blue-500); opacity: 0; }
.dcursor.is-click::after { animation: dclick 480ms ease-out; }
@keyframes dclick { 0% { opacity: .85; transform: scale(.25); } 100% { opacity: 0; transform: scale(1); } }
.dghost { position: absolute; left: 0; top: 0; width: 210px; z-index: 35; pointer-events: none; opacity: 0; transform: translate(0, 0) rotate(-2.5deg); transition: transform 760ms cubic-bezier(.4,.05,.2,1), opacity 220ms; }
.dghost.is-on { opacity: 1; }

/* ── caption + controls ───────────────────────── */
.dcaption { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 45; display: flex; align-items: center; gap: 11px; background: rgba(9, 16, 38, 0.92); color: #fff; border-radius: 999px; padding: 10px 20px; font-size: 14.5px; font-weight: 600; backdrop-filter: blur(6px); box-shadow: 0 18px 40px -20px rgba(9, 16, 38, 0.7); opacity: 0; transition: opacity 260ms; white-space: nowrap; max-width: 90%; }
.dcaption.is-on { opacity: 1; }
.dcaption i { width: 7px; height: 7px; border-radius: 50%; background: #4d9bff; flex: none; animation: dpulse 1.8s infinite; }
@keyframes dpulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.dend { position: absolute; inset: 0; z-index: 50; background: rgba(247, 250, 255, 0.86); backdrop-filter: blur(7px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; opacity: 0; pointer-events: none; transition: opacity 360ms; }
.dend.is-on { opacity: 1; pointer-events: auto; }
.dend h3 { font-family: var(--font-display); font-size: 34px; font-weight: 800; letter-spacing: -0.03em; text-align: center; margin: 0; }
.dend p { font-size: 16.5px; color: var(--n-600); margin: 0; text-align: center; max-width: 46ch; }
.dend__row { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; justify-content: center; }

.dctrl { max-width: 1240px; margin: 18px auto 0; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.dctrl__btn { display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--n-200); background: #fff; font-family: var(--font-body); font-size: 14.5px; font-weight: 600; color: var(--n-900); cursor: pointer; transition: border-color 150ms, box-shadow 150ms; }
.dctrl__btn:hover { border-color: var(--blue-300); box-shadow: 0 8px 20px -14px rgba(0, 119, 253, 0.5); }
.dctrl__btn--go { background: var(--blue-500); border-color: var(--blue-500); color: #fff; }
.dctrl__btn--go:hover { background: var(--blue-600); }
.dctrl__btn:disabled { opacity: .55; cursor: default; box-shadow: none; }
.dctrl__hint { font-size: 13.5px; color: var(--n-400); }

@media (max-width: 900px) {
  .dctrl__hint { width: 100%; }
}
@media (max-width: 560px) {
  .dctrl { justify-content: center; }
  .dctrl__btn { flex: 1 1 auto; justify-content: center; }
  .dctrl__hint { text-align: center; }
}

/* ── phase stepper ────────────────────────────── */
.dphases { display: flex; align-items: center; justify-content: center; max-width: 640px; margin: 0 auto 22px; }
.dphase { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; color: var(--n-400); white-space: nowrap; }
.dphase b { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--n-200); display: grid; place-items: center; font-family: var(--font-mono); font-size: 12px; color: var(--n-400); flex: none; transition: all 200ms; }
.dphase.is-on { color: var(--n-950); }
.dphase.is-on b { border-color: var(--blue-500); color: var(--blue-500); }
.dphase.is-done b { background: var(--blue-500); border-color: var(--blue-500); color: #fff; }
.dphase.is-done { color: var(--n-700); }
.dphase-line { width: 64px; height: 1px; background: var(--n-200); margin: 0 14px; transition: background 200ms; flex: none; }
.dphase-line.is-done { background: var(--blue-300); }
@media (max-width: 760px) {
  .dphases { flex-wrap: wrap; gap: 8px 0; }
  .dphase-line { width: 24px; }
}
@media (max-width: 560px) {
  .dphases { flex-direction: column; align-items: flex-start; gap: 10px; max-width: 280px; margin: 0 auto 26px; }
  .dphase { font-size: 14px; }
  .dphase-line { display: none; }
}

/* ── client picker screen ─────────────────────── */
.cwrap { padding: 34px 44px 0; height: 100%; overflow: hidden; display: flex; flex-direction: column; box-sizing: border-box; }
.cbread { font-size: 13px; color: var(--n-400); margin: 0 0 18px; }
.cbread b { color: var(--n-800); font-weight: 600; }
.chead-row { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; }
.chead-row h1 { font-family: var(--font-display); font-size: 29px; font-weight: 800; letter-spacing: -0.02em; margin: 0; color: var(--n-950); }
.chead-row p { margin: 6px 0 0; font-size: 13.5px; color: var(--n-500); }
.cbtn-solid { background: var(--blue-500); color: #fff; border-radius: 10px; padding: 11px 18px; font-size: 13.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 8px 20px -12px rgba(0, 119, 253, 0.6); }
.ctoolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.csearch { flex: none; width: 220px; height: 38px; border: 1px solid var(--n-200); border-radius: 10px; padding: 0 14px; display: flex; align-items: center; font-size: 13px; color: var(--n-400); background: #fff; }
.cseg { display: flex; gap: 4px; background: var(--n-50); border-radius: 10px; padding: 4px; }
.cseg span { padding: 7px 13px; border-radius: 7px; font-size: 12.5px; font-weight: 600; color: var(--n-500); }
.cseg span.is-on { background: #0a1230; color: #fff; }
.csort { margin-left: auto; display: flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; color: var(--n-400); }
.csort span { font-family: var(--font-body); font-weight: 600; font-size: 12.5px; letter-spacing: 0; color: var(--n-500); border: 1px solid var(--n-200); border-radius: 999px; padding: 6px 12px; }
.csort span.is-on { border-color: var(--blue-300); color: var(--blue-600); background: var(--blue-50); }
.csec { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--n-500); margin-bottom: 10px; }
.csec i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.csec.urgent i { background: #d03636; }
.csec.ok i { background: #1a9c6b; }
.ctable { border: 1px solid var(--n-150); border-radius: 14px; overflow: hidden; background: #fff; }
.ctable-head, .ctrow { display: grid; grid-template-columns: 2.5fr .7fr .85fr .8fr 1.3fr .7fr; align-items: center; gap: 10px; padding: 13px 18px; }
.ctable-head { font-family: var(--font-mono); font-size: 9.5px; font-weight: 700; letter-spacing: 0.06em; color: var(--n-400); border-bottom: 1px solid var(--n-100); }
.ctrow { border-bottom: 1px solid var(--n-100); transition: background 150ms; }
.ctrow:last-child { border-bottom: none; }
.ctrow.is-hot { background: var(--blue-50); }
.ccli { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ccli__av { width: 32px; height: 32px; border-radius: 9px; background: var(--n-100); color: var(--n-700); display: grid; place-items: center; font-size: 10.5px; font-weight: 700; flex: none; }
.ccli b { display: block; font-size: 13.5px; font-weight: 700; color: var(--n-950); }
.ccli__tags { display: flex; gap: 5px; margin-top: 5px; flex-wrap: wrap; max-width: 300px; }
.ccli__tags span { font-family: var(--font-mono); font-size: 8.5px; font-weight: 700; color: var(--n-600); background: var(--n-100); border-radius: 5px; padding: 2px 6px; }
.cscore { font-family: var(--font-display); font-weight: 800; font-size: 15.5px; }
.cscore.red { color: #d03636; }
.cscore.dim { color: var(--n-400); }
.centra { border: 1px solid var(--n-200); border-radius: 999px; padding: 7px 14px; font-size: 12px; font-weight: 700; color: var(--n-800); background: #fff; justify-self: end; }

/* ── documents screen ──────────────────────────── */
.cfilehead { font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--n-400); margin: 4px 0 10px; }
.cfolders { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
.cfolder { border: 1px solid var(--n-150); border-radius: 13px; padding: 15px 16px; display: flex; align-items: center; gap: 12px; background: #fff; color: var(--n-400); }
.cfolder b { display: block; font-size: 13.5px; font-weight: 700; color: var(--n-950); }
.cfolder small { font-size: 11.5px; color: var(--n-500); }
.cfile-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--n-150); border-top: none; background: #fff; color: var(--n-400); }
.cfile-row:first-of-type { border-top: 1px solid var(--n-150); border-radius: 12px 12px 0 0; }
.cfile-row:last-of-type { border-radius: 0 0 12px 12px; }
.cfile-row b { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; color: var(--n-900); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cfiletag { font-size: 11px; font-weight: 600; color: var(--n-700); border: 1px solid var(--n-200); border-radius: 999px; padding: 4px 10px; flex: none; }
.cdrop { position: absolute; top: 48px; right: 0; width: 234px; background: #fff; border: 1px solid var(--n-150); border-radius: 13px; box-shadow: 0 20px 44px -18px rgba(10, 25, 60, 0.4); padding: 8px; opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity 200ms, transform 200ms; z-index: 5; }
.cdrop.is-on { opacity: 1; transform: none; }
.cdrop__item { display: flex; align-items: center; gap: 11px; padding: 9px 9px; border-radius: 9px; transition: background 120ms; }
.cdrop__item.is-hot { background: var(--n-50); }
.cdrop__item svg { color: var(--blue-500); flex: none; }
.cdrop__item b { display: block; font-size: 12.5px; font-weight: 700; color: var(--n-950); }
.cdrop__item small { font-size: 11px; color: var(--n-500); }
.ctoast { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(10px); display: flex; align-items: center; gap: 10px; background: #0a1230; color: #fff; border-radius: 999px; padding: 11px 20px; font-size: 13.5px; font-weight: 600; opacity: 0; transition: opacity 250ms, transform 250ms; z-index: 45; pointer-events: none; }
.ctoast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }
.ctoast svg { color: #4ee1a0; }
