/* Trip plan */
.tp-back { display: inline-block; font-size: 13px; color: var(--mut); margin-bottom: 6px; }
.tp-back::before { content: "‹ "; } .tp-back:hover { color: var(--ink); }
.tp-src { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--mut); padding: 6px 12px; border: 1px solid var(--ln); border-radius: 999px; background: var(--panel); }
.tp-src i { width: 7px; height: 7px; border-radius: 50%; background: #3fa36b; }
.tp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 18px; }
.tp-tags span { font-size: 12.5px; padding: 4px 11px; border-radius: 999px; background: var(--panel); border: 1px solid var(--ln); color: var(--ink2, var(--ink)); }

.tp-hero { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; padding: 26px 28px; border-radius: 16px; background: var(--panel); border: 1px solid var(--ln); margin-bottom: 18px; position: relative; overflow: hidden; }
.tp-hero::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: #3fa36b; }
.tp-hero.bad::before { background: #c0392b; }
.tp-hero h2 { font-size: 24px; line-height: 1.25; font-weight: 600; letter-spacing: -.02em; margin: 0 0 10px; max-width: 34ch; text-wrap: balance; }
.tp-fix1 { color: var(--ink2, var(--ink)); font-size: 14.5px; line-height: 1.55; margin: 0 0 18px; max-width: 60ch; }
.tp-fix1 b { font-weight: 600; color: var(--acc); }
.tp-h-a { display: flex; gap: 8px; flex-wrap: wrap; }
.tp-h-a .btn.ghost { background: transparent; border-color: transparent; color: var(--mut); }
.tp-h-r { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: center; }
.tp-h-r > div { background: var(--sub); border-radius: 12px; padding: 14px 16px; }
.tp-h-r span { display: block; font-size: 12.5px; color: var(--mut); margin-bottom: 4px; }
.tp-h-r b { font-size: 24px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tp-h-r em { font-style: normal; font-size: 12.5px; font-weight: 600; margin-left: 8px; }
.tp-h-r em.up { color: #2f8a55; } .tp-h-r em.dn { color: #c0392b; }

.tp-leg .bd { padding-top: 6px; }
.tp-ctl { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tp-ctl > span { width: 52px; font-size: 12.5px; color: var(--mut); }
.tp-chip { font: inherit; font-size: 12.5px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--ln); background: var(--panel); color: var(--ink); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; transition: background .15s, border-color .15s; }
.tp-chip:hover { border-color: var(--ink); }
.tp-chip.on { background: var(--ink); color: var(--panel); border-color: var(--ink); }
.tp-chip small { font-size: 10.5px; opacity: .6; }
.tp-chip:disabled { opacity: .4; cursor: not-allowed; }

.tp-trk { margin: 18px 0 6px; }
.tp-lane { position: relative; height: 44px; background: var(--sub); border-radius: 10px; }
.tp-seg { position: absolute; top: 6px; bottom: 6px; border-radius: 7px; display: flex; align-items: center; padding: 0 8px; overflow: hidden; font-size: 11.5px; font-weight: 500; white-space: nowrap; transition: left .35s cubic-bezier(.2,.75,.2,1), width .35s cubic-bezier(.2,.75,.2,1); }
.tp-seg span { overflow: hidden; text-overflow: ellipsis; }
.tp-seg.awake { background: transparent; color: var(--mut); }
.tp-seg.trav { background: repeating-linear-gradient(135deg, #d8dbd4 0 6px, #e6e8e2 6px 12px); color: #3d433b; }
.tp-seg.sleep { background: #2f5d3a; color: #fff; }
.tp-seg.sleep.short { background: #2f5d3a; }
.tp-seg.pre { background: #e3e7f2; color: #3e4f8c; }
.tp-seg.game { background: #141714; color: #fff; }
.tp-seg.commit { background: #e3e7f2; color: #2c3a6b; border: 1px solid #c7cfe6; }
.tp-seg.commit.clash { background: #fbece9; color: #a53a28; border-color: #f0c9c1; }
.tp-need { position: absolute; top: 3px; bottom: 3px; border: 1.5px dashed #c0392b; border-radius: 8px; background: rgba(192,57,43,.07); display: flex; align-items: flex-end; justify-content: center; pointer-events: none; }
.tp-need span { position: absolute; top: -20px; font-size: 11px; font-weight: 600; color: #c0392b; white-space: nowrap; }
.tp-ax { position: relative; height: 18px; margin-top: 6px; }
.tp-ax span { position: absolute; transform: translateX(-50%); font-size: 11px; color: var(--mut); white-space: nowrap; }
.tp-warn { font-size: 13px; color: #a53a28; background: #fbece9; padding: 8px 12px; border-radius: 8px; margin: 8px 0 0; }
.tp-st { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; border-top: 1px solid var(--ln); padding-top: 14px; }
.tp-st span { display: block; font-size: 12.5px; color: var(--mut); }
.tp-st b { font-size: 18px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.tp-st b.lo, .x b.lo, .tp-late { color: #c0392b; }
.tp-st small { display: block; font-size: 12px; color: var(--mut); margin-top: 2px; }

.tp-fx { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-top: 1px solid var(--ln); }
.tp-fx:first-child { border-top: 0; }
.tp-fx > div:first-child { flex: 1; min-width: 0; }
.tp-fx b { display: block; font-weight: 600; font-size: 14px; }
.tp-fx span { display: block; font-size: 12.5px; color: var(--mut); margin-top: 2px; }
.tp-fx-g { font-size: 16px; font-weight: 600; color: #2f8a55; text-align: right; font-variant-numeric: tabular-nums; }
.tp-fx-g small { display: block; font-size: 11px; font-weight: 500; color: var(--mut); }

.tp-tl { position: relative; }
.tp-tx { display: grid; grid-template-columns: 72px 14px 1fr; gap: 10px; padding-bottom: 14px; position: relative; }
.tp-tx:not(:last-child)::after { content: ""; position: absolute; left: 88px; top: 14px; bottom: -2px; width: 1px; background: var(--ln); }
.tp-tt { font-size: 12.5px; color: var(--mut); text-align: right; padding-top: 1px; font-variant-numeric: tabular-nums; }
.tp-tx > i { width: 9px; height: 9px; border-radius: 50%; background: var(--acc); margin-top: 5px; justify-self: center; }
.tp-tx b { font-size: 13px; font-weight: 600; }
.tp-tx p { margin: 3px 0 0; padding: 8px 12px; background: var(--sub); border-radius: 12px 12px 12px 4px; font-size: 13.5px; line-height: 1.45; max-width: 52ch; }

.tp-sig { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--ln); }
.tp-sig:first-child { border-top: 0; }
.tp-sig .av, .tp-orb { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; }
.tp-sig > div { flex: 1; } .tp-sig b { display: block; font-size: 13.5px; font-weight: 600; } .tp-sig span { font-size: 12px; color: var(--mut); }
.tp-sig em { font-style: normal; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--sub); color: var(--mut); }
.tp-sig.ok em { background: #e6f1ea; color: #2f6b45; } .tp-sig.wait em { background: #f6eedf; color: #8a5c17; }
.tp-sig-n { padding: 12px 20px 16px; font-size: 12.5px; color: var(--mut); border-top: 1px solid var(--ln); }
.tp-up { font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--accbg, #e9f0ea); color: var(--acc); }
.tp-plan-btn { margin-top: 14px; }

[data-theme="dark"] .tp-seg.trav { background: repeating-linear-gradient(135deg, #2c302b 0 6px, #353a34 6px 12px); color: #c9cdc5; }
[data-theme="dark"] .tp-seg.game { background: #e9ece6; color: #141714; }
[data-theme="dark"] .tp-seg.pre, [data-theme="dark"] .tp-seg.commit { background: #262c3d; color: #b9c4e6; border-color: #343c55; }

@media (max-width: 900px) { .tp-hero { grid-template-columns: 1fr; } .tp-st { grid-template-columns: 1fr 1fr; } }
.tp-who { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.tp-who > span { font-size: 12.5px; color: var(--mut); margin-right: 4px; }
.tp-who .tp-chip { padding: 4px 12px 4px 4px; }
.tp-who .tp-chip img.face { width: 22px; height: 22px; }
.tp-foot { font-size: 12.5px; color: var(--mut); margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--ln); }

/* Trips hub */
.th-live { display: flex; align-items: center; gap: 8px; padding: 10px 14px; margin-bottom: 14px; border-radius: 10px; background: var(--panel); border: 1px solid var(--ln); font-size: 13.5px; color: var(--ink); }
.th-live i { width: 8px; height: 8px; border-radius: 50%; background: #3fa36b; box-shadow: 0 0 0 4px rgba(63,163,107,.15); }
.th-next { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; padding: 24px 28px; border-radius: 16px; background: var(--panel); border: 1px solid var(--ln); margin-bottom: 14px; position: relative; overflow: hidden; }
.th-next::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: #9aa1ad; }
.th-next.them::before { background: #c0392b; } .th-next.us::before { background: #3fa36b; }
.th-k { display: block; font-size: 12.5px; color: var(--mut); margin-bottom: 4px; }
.th-next h2 { font-size: 24px; font-weight: 600; letter-spacing: -.02em; margin: 0 0 10px; }
.th-next p { margin: 0 0 18px; font-size: 14.5px; line-height: 1.55; max-width: 62ch; color: var(--ink2, var(--ink)); }
.th-a { display: flex; gap: 8px; flex-wrap: wrap; }
.th-nr { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: center; }
.th-nr > div { background: var(--sub); border-radius: 12px; padding: 13px 16px; }
.th-nr span { display: block; font-size: 12.5px; color: var(--mut); margin-bottom: 4px; }
.th-nr b { font-size: 19px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.th-nr b.lo { color: #c0392b; }
.th-k6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 14px; }
.th-k6 > div { background: var(--panel); border: 1px solid var(--ln); border-radius: 12px; padding: 14px 16px; }
.th-k6 b { display: block; font-size: 22px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.th-k6 span { display: block; font-size: 13px; color: var(--ink); margin-top: 2px; }
.th-k6 em { display: block; font-style: normal; font-size: 12px; color: var(--mut); margin-top: 2px; }
.th-t td { vertical-align: middle; }
.th-t td small { display: block; font-size: 11.5px; color: var(--mut); }
.th-g { display: flex; align-items: center; gap: 10px; }
.th-g > div { display: flex; flex-direction: column; }
.th-g b { font-weight: 600; font-size: 13.5px; }
.th-g span:not(.th-i) { font-size: 12px; color: var(--mut); }
.th-i { width: 28px; height: 28px; flex-shrink: 0; border-radius: 8px; background: var(--sub); display: grid; place-items: center; }
.th-i svg { width: 14px; height: 14px; fill: none; stroke: var(--mut); stroke-width: 1.4; stroke-linejoin: round; }
.th-res { font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; }
.th-res.w { color: #2f8a55; } .th-res.l { color: #c0392b; }
.th-t tr.sel td { background: var(--sub); }
.ed { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--mut); white-space: nowrap; background: none !important; padding: 0 !important; border: 0 !important; margin-left: 0; border-radius: 0; }
.ed::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #b4b9c2; }
.ed.us { color: #2f8a55; } .ed.us::before { background: #3fa36b; }
.ed.them { color: #c0392b; } .ed.them::before { background: #c0392b; }

/* Trip page tabs */
.tr-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--ln); margin: -4px 0 18px; }
.tr-tabs a { padding: 9px 14px; font-size: 13.5px; font-weight: 500; color: var(--mut); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tr-tabs a:hover { color: var(--ink); }
.tr-tabs a.on { color: var(--ink); border-bottom-color: var(--ink); }
.gr-in .gr { padding: 4px 0 8px; }

/* Us vs them */
.vs .hd { align-items: center; }
.vs-l { margin: 0 0 14px; font-size: 14px; line-height: 1.55; max-width: 70ch; }
.vs-t { border-top: 1px solid var(--ln); }
.vs-r { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--ln); align-items: baseline; }
.vs-r:last-child { border-bottom: 0; }
.vs-r > span { font-size: 13px; color: var(--mut); }
.vs-r b { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.vs-r b.lo { color: #c0392b; }
.vs-r b small { display: block; font-size: 11.5px; font-weight: 400; color: var(--mut); }
.vs-h b { font-size: 12.5px; color: var(--mut); font-weight: 500; }
@media (max-width: 1100px) { .th-k6 { grid-template-columns: repeat(3, 1fr); } .th-next { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .th-k6 { grid-template-columns: 1fr 1fr; } }
.vs-t { max-width: 760px; }
.tr-emb .gh-t > span, .tr-emb .gh-t h2 { display: none; } .tr-emb .gh-t p { margin-top: 0; }
.th-t tr.sel td, [data-theme="dark"] .th-t tr.sel td { background: var(--sub) !important; color: var(--ink) !important; }

/* Analytics: accuracy */
.acc-r { display: flex; flex-direction: column; gap: 14px; margin-bottom: 12px; }
.acc-b { display: grid; grid-template-columns: 210px 1fr 56px; gap: 14px; align-items: center; }
.acc-b b { display: block; font-size: 13.5px; font-weight: 600; } .acc-b span { font-size: 12px; color: var(--mut); }
.acc-bb { height: 10px; background: var(--sub); border-radius: 999px; overflow: hidden; } .acc-bb i { display: block; height: 100%; border-radius: 999px; background: #9aa1ad; }
.acc-b.hi .acc-bb i { background: #c0392b; }
.acc-v { text-align: right; font-variant-numeric: tabular-nums; font-size: 15px !important; }
.acc-m { padding: 14px 20px; border-top: 1px solid var(--ln); cursor: pointer; } .acc-m:first-child { border-top: 0; } .acc-m:hover { background: var(--sub); }
.acc-mh { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.acc-mh b { font-weight: 600; font-size: 13.5px; } .acc-mh span { font-size: 12px; color: var(--mut); }
.acc-mh em { margin-left: auto; font-style: normal; font-size: 12.5px; font-weight: 600; color: #a5621b; }
.acc-m p { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink2, var(--ink)); }

/* Body clock per player */
.bc-l { margin: 0 0 14px; font-size: 14px; line-height: 1.55; max-width: 72ch; }
.bc-r { display: grid; grid-template-columns: 220px 110px minmax(240px, 360px) 90px 120px; gap: 14px; align-items: center; padding: 9px 0; border-top: 1px solid var(--ln); font-size: 13px; }
.bc-h { border-top: 0; font-size: 12px; color: var(--mut); padding-top: 0; }
.bc-n { display: flex; align-items: center; gap: 8px; color: var(--ink); } .bc-n b { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bc-c { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.bc-c em { font-style: normal; font-size: 11px; color: var(--mut); text-align: center; }
.bc-c i { height: 22px; border-radius: 5px; background: var(--sub); position: relative; overflow: hidden; }
.bc-c i::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--f); background: #9aa1ad; border-radius: 5px; }
.bc-c i.off::after { background: #c0392b; opacity: .8; }
.bc-c i.ok::after { background: #3fa36b; opacity: .55; }
.bc-r b.r { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; } .bc-r b.lo { color: #c0392b; }
.bc-h .r { text-align: right; }
.bc-p { color: var(--ink2, var(--ink)); line-height: 1.45; }
@media (max-width: 1100px) { .bc-r { grid-template-columns: 1fr 1fr; } .bc-c, .bc-p { grid-column: 1 / -1; } }
.bc-gs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.bc-g { background: var(--sub); border-radius: 12px; padding: 13px 15px; border-left: 3px solid transparent; }
.bc-g.hard { border-left-color: #c0392b; }
.bc-gh { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.bc-gh b { font-weight: 600; font-size: 13.5px; } .bc-gh span { font-size: 12px; color: var(--mut); }
.bc-gh em { margin-left: auto; font-style: normal; font-size: 12.5px; font-weight: 600; } .bc-gh em.lo { color: #c0392b; }
.bc-g p { margin: 6px 0 0; font-size: 13px; line-height: 1.5; }
@media (max-width: 1100px) { .bc-gs { grid-template-columns: 1fr; } }
.bc-r span.r { text-align: right; }

/* Live demo */
/* Login: its own page. The season's flights on a dotted map, form in a glass card */
body.locked { overflow: hidden; }
#login { position: fixed; inset: 0; z-index: 100000; overflow: hidden; color: #e9edf6; background: radial-gradient(1100px 760px at 68% 42%, #1b2a4d 0%, #101a31 55%, #0a1020 100%); animation: lgIn .6s ease both; }
@keyframes lgIn { from { opacity: 0; } }
#login.out { animation: lgOut .55s cubic-bezier(.4, 0, .2, 1) both; }
@keyframes lgOut { to { opacity: 0; transform: scale(1.02); } }
#login::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 60% at 70% 45%, transparent 55%, rgba(5,9,18,.55) 100%); }
.lg-scene { position: absolute; inset: 0; overflow: hidden; }
#login .lg-brand { position: absolute; top: 28px; left: 32px; z-index: 2; display: flex; align-items: center; gap: 10px; animation: rise .6s .1s cubic-bezier(.2, .8, .2, 1) both; }
#login .lg-brand b { font-size: 14px; font-weight: 600; color: #fff; } #login .lg-brand small { font-size: 12.5px; color: #8592b0; padding-left: 10px; border-left: 1px solid rgba(255,255,255,.14); }
.lg-mark { width: 28px; height: 28px; border-radius: 8px; background: #fff; color: #101a31; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.lg-cap { width: 470px; max-width: calc(100vw - 48px); pointer-events: none; opacity: 0; }
.lg-cap.in { animation: rise .7s .15s cubic-bezier(.2, .8, .2, 1) both; opacity: 1; }
.lg-cap h2 { margin: 0 0 10px; font-size: 33px; line-height: 1.15; font-weight: 600; letter-spacing: -.025em; color: #fff; text-wrap: balance; }
.lg-cap p { margin: 0; font-size: 15px; line-height: 1.55; color: #9aa6c2; }

.lg-cap p b { font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; text-shadow: 0 0 14px rgba(143,211,168,.55); }

@media (prefers-reduced-motion: reduce) { #login, #login *, #login.out { animation: none !important; transition: none !important; } }
.rm-out { display: none; width: calc(100% - 16px); margin: 8px; text-align: center; font: inherit; font-size: 13px; font-weight: 600; color: #fff; background: linear-gradient(180deg, #e04a3a, #c0392b); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: 9px 14px; cursor: pointer; box-shadow: 0 0 0 1px rgba(192,57,43,.4), 0 6px 20px -4px rgba(224,74,58,.65), 0 0 24px rgba(224,74,58,.35); transition: box-shadow .2s, transform .15s; animation: outGlow 2.4s ease-in-out infinite; }
.rm-out:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(224,74,58,.6), 0 8px 26px -4px rgba(224,74,58,.85), 0 0 36px rgba(224,74,58,.55); }
@keyframes outGlow { 50% { box-shadow: 0 0 0 1px rgba(192,57,43,.5), 0 6px 24px -4px rgba(224,74,58,.85), 0 0 34px rgba(224,74,58,.5); } }
@media (prefers-reduced-motion: reduce) { .rm-out { animation: none; } }
body.has-auth .rm-out { display: block; }
button.ib.demo { font: inherit; cursor: pointer; }

.txa { margin: 0 16px 16px; padding: 12px 14px; border-radius: 12px; background: var(--sub); }
.pk .txa, .apk .txa { margin: 4px 0 14px; }
.txa-h b { display: block; font-size: 13px; font-weight: 600; }
.txa-h span { display: block; font-size: 12px; color: var(--mut); margin-top: 2px; }
.txa-r { display: flex; gap: 8px; margin-top: 10px; }
.txa-r input { flex: 1; min-width: 0; font: inherit; font-size: 13.5px; padding: 8px 11px; border: 1px solid var(--ln); border-radius: 9px; background: var(--panel); color: var(--ink); }
.txa-r input:focus { outline: 2px solid var(--ink); outline-offset: 0; }
.thread.live-t { max-height: 420px; overflow-y: auto; }

.msg.live .ans p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.6; }
.msg.live .ans ul, .msg.live .ans ol { margin: 0 0 12px; padding-left: 20px; font-size: 14.5px; line-height: 1.6; }
.msg.live .ans li { margin: 2px 0; }
.msg.live .ans a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--ln); text-underline-offset: 3px; }
.msg.live .ans a:hover { text-decoration-color: var(--ink); }
.msg.live .ans code { font-size: 13px; background: var(--sub); padding: 1px 5px; border-radius: 4px; }
.live-err { color: #c0392b; }
.msg.live .ans, .msg.live .ans p, .msg.live .ans li { color: var(--ink); font-weight: 400; }
.msg.live .ans b { font-weight: 600; }

/* Globe labels */
.sc-labels { position: absolute; inset: 0; pointer-events: none; }
.sc-lab { position: absolute; left: 0; top: 0; margin: -9px 0 0 10px; transition: opacity .4s; white-space: nowrap; font-size: 11.5px; line-height: 1.3; }
.sc-lab b { display: block; font-weight: 600; color: #e9edf6; } .sc-lab span { color: #9aa6c2; font-size: 10.5px; } .sc-lab span.w { color: #8fd3a8; } .sc-lab span.l { color: #e88f82; }
.sc-lab.nx b { color: #cfeedd; } .sc-lab.home b { color: #fff; font-size: 12px; }

.sc-lab.lft { text-align: right; }
.lg-cap h2, .lg-cap p { text-shadow: 0 2px 18px rgba(8,13,26,.95), 0 0 2px rgba(8,13,26,.8); }

/* Sign-in card: orbiting border light, cursor spotlight, 3D tilt, floating labels */
@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.lg-col { position: absolute; z-index: 3; left: clamp(24px, 7vw, 120px); top: 50%; translate: 0 -50%; width: 392px; max-width: calc(100% - 32px); display: flex; flex-direction: column; gap: 28px; }
.lg-f { position: relative; width: 100%; max-width: calc(100% - 32px); box-sizing: border-box; display: flex; flex-direction: column; gap: 14px; padding: 34px 32px 24px; border-radius: 22px; isolation: isolate;
  --mx: 50%; --my: 0%; --rx: 0deg; --ry: 0deg; transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .4s;
  background: linear-gradient(160deg, rgba(36,50,86,.62), rgba(14,21,40,.74)); backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(255,255,255,.1) inset, 0 0 0 1px rgba(255,255,255,.06) inset, 0 50px 120px -40px rgba(0,0,0,.85), 0 0 80px -30px rgba(143,167,214,.35); animation: cardIn .8s .3s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes cardIn { from { opacity: 0; translate: 0 28px; filter: blur(6px); } }
.lg-f::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: -1;
  background: conic-gradient(from var(--a), transparent 0deg, rgba(143,167,214,.0) 40deg, rgba(143,167,214,.9) 90deg, rgba(143,211,168,.95) 120deg, rgba(143,211,168,0) 170deg, transparent 360deg), linear-gradient(rgba(255,255,255,.08), rgba(255,255,255,.03));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: orbit 6s linear infinite; }
@keyframes orbit { to { --a: 360deg; } }
.lg-f::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(143,167,214,.16), transparent 45%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E"); transition: opacity .3s; }
.lg-f.ok { box-shadow: 0 1px 0 rgba(255,255,255,.1) inset, 0 0 0 1px rgba(143,211,168,.5) inset, 0 50px 120px -40px rgba(0,0,0,.85), 0 0 90px -20px rgba(143,211,168,.6); }
.lg-f.bad { animation: shake .42s cubic-bezier(.36, .07, .19, .97); box-shadow: 0 1px 0 rgba(255,255,255,.1) inset, 0 0 0 1px rgba(232,120,105,.55) inset, 0 50px 120px -40px rgba(0,0,0,.85), 0 0 80px -24px rgba(232,120,105,.6); }
@keyframes shake { 20%, 60% { translate: -8px 0; } 40%, 80% { translate: 8px 0; } }
.lg-f > * { animation: rise .6s cubic-bezier(.2, .8, .2, 1) both; }
.lg-f > :nth-child(1) { animation-delay: .5s; } .lg-f > :nth-child(2) { animation-delay: .56s; } .lg-f > :nth-child(3) { animation-delay: .62s; } .lg-f > :nth-child(4) { animation-delay: .68s; } .lg-f > :nth-child(n+5) { animation-delay: .74s; }
.lg-f h1 { margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -.03em; background: linear-gradient(180deg, #fff 30%, #b9c4de); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lg-f > p { margin: -8px 0 8px; font-size: 14px; color: #9aa6c2; }
.fl { position: relative; }
.fl input { font: inherit; font-size: 15px; font-weight: 400; width: 100%; box-sizing: border-box; padding: 22px 14px 8px; border-radius: 12px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.035); color: #fff; caret-color: #8fd3a8; transition: border-color .2s, background .2s, box-shadow .3s; }
.fl.pw input { padding-right: 64px; }
.fl input:hover { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.05); }
.fl input:focus { outline: none; border-color: rgba(143,167,214,.55); background: rgba(255,255,255,.06); box-shadow: 0 0 0 4px rgba(143,167,214,.12), 0 8px 30px -12px rgba(143,167,214,.45); }
.fl label { position: absolute; left: 15px; top: 50%; translate: 0 -50%; font-size: 14.5px; color: #8592b0; pointer-events: none; transition: top .22s cubic-bezier(.2, .8, .2, 1), font-size .22s, color .22s, translate .22s; }
.fl input:focus + label, .fl input:not(:placeholder-shown) + label, .fl input:-webkit-autofill + label { top: 9px; translate: 0 0; font-size: 11px; font-weight: 500; letter-spacing: .01em; color: #9fb3e0; }
.fl input:focus + label { color: #8fd3a8; }
.fl .bar { position: absolute; left: 14px; right: 14px; bottom: 0; height: 1.5px; border-radius: 2px; background: linear-gradient(90deg, transparent, #8fa7d6, #8fd3a8, transparent); transform: scaleX(0); transition: transform .45s cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
.fl input:focus ~ .bar { transform: scaleX(1); }
.fl input:-webkit-autofill { -webkit-text-fill-color: #fff; -webkit-box-shadow: 0 0 0 40px #1b2747 inset; transition: background-color 9999s; }
.eye { position: absolute; right: 10px; top: 50%; translate: 0 -50%; font: inherit; font-size: 12px; font-weight: 500; color: #9aa6c2; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 8px; padding: 5px 9px; cursor: pointer; transition: color .15s, background .15s; }
.eye:hover { color: #fff; background: rgba(255,255,255,.1); }
.lg-caps { margin: -6px 0 -4px; font-size: 12px; color: #f2c46d; display: none; } .lg-caps.on { display: block; animation: rise .3s both; }
.lg-go { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 6px; height: 48px; font: inherit; font-size: 14.5px; font-weight: 600; letter-spacing: -.005em; color: #0e1630; cursor: pointer; border: 0; border-radius: 12px;
  background: linear-gradient(180deg, #fff, #dfe6f5); box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 10px 30px -12px rgba(143,167,214,.7); transition: transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .3s, background .4s, color .4s; }
.lg-go::before { content: ""; position: absolute; top: 0; bottom: 0; width: 60%; left: -80%; background: linear-gradient(100deg, transparent, rgba(143,167,214,.35), transparent); transform: skewX(-20deg); transition: left .7s cubic-bezier(.2, .8, .2, 1); }
.lg-go:hover::before { left: 120%; }
.lg-go:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 16px 40px -12px rgba(143,167,214,.85); }
.lg-go:active { transform: translateY(0) scale(.985); }
.lg-go:disabled { cursor: default; }
.lg-go .dots { display: none; gap: 5px; } .lg-go .dots i { width: 6px; height: 6px; border-radius: 50%; background: #0e1630; animation: dotB 1s infinite ease-in-out; } .lg-go .dots i:nth-child(2) { animation-delay: .12s; } .lg-go .dots i:nth-child(3) { animation-delay: .24s; }
.lg-go.busy .t { display: none; } .lg-go.busy .dots { display: flex; }
.lg-go .ck { display: none; width: 20px; height: 20px; } .lg-go .ck path { fill: none; stroke: #0d2a1a; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; }
.lg-go.ok { background: linear-gradient(180deg, #a9e6bf, #7fcb9b); box-shadow: 0 0 40px -6px rgba(143,211,168,.8); }
.lg-go.ok .t, .lg-go.ok .dots { display: none; } .lg-go.ok .ck { display: block; } .lg-go.ok .ck path { animation: draw .45s .05s cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.lg-e { min-height: 16px; margin-top: -6px; font-size: 13px; color: #f0a597; }
.lg-foot { display: flex; align-items: center; gap: 8px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.07); font-size: 12px; color: #8592b0; }
.lg-foot i { width: 6px; height: 6px; border-radius: 50%; background: #8fd3a8; box-shadow: 0 0 8px #8fd3a8; animation: ping 2.4s ease-in-out infinite; }
@keyframes ping { 50% { opacity: .35; } }
@media (max-width: 980px) { .lg-col { top: auto; bottom: 20px; left: 50%; translate: -50% 0; } .lg-cap { display: none; } }
@media (prefers-reduced-motion: reduce) { .lg-f, .lg-f::before { animation: none !important; transform: none !important; } }
.sc-lab span:not(.w):not(.l) { color: #9aa6c2; }
.sc-lab:not(.nx):not(.home) b { }
#login.grab { cursor: grab; } #login.grabbing { cursor: grabbing; } #login.grabbing .sc-lab { transition: none; }
#login .lg-f { cursor: auto; }
.msg.live .ans .mdt { overflow-x: auto; margin: 4px 0 14px; border: 1px solid var(--ln); border-radius: 12px; }
.msg.live .ans table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.msg.live .ans th { text-align: left; font-weight: 600; font-size: 12px; color: var(--mut); padding: 9px 12px; background: var(--sub); white-space: nowrap; }
.msg.live .ans td { padding: 9px 12px; border-top: 1px solid var(--ln); font-variant-numeric: tabular-nums; }

/* Ask Obeo: progress, streaming, contained scrolling, history */
body.on-agent { overflow: hidden; }
body.on-agent .agent { overflow: hidden; }
body.on-agent .ag-c, body.on-agent .ag-scroll, body.on-agent .ag-l { min-height: 0; }
body.on-agent .ag-scroll { overflow-y: auto; overscroll-behavior: contain; scroll-behavior: auto; }
body.on-agent .ag-l { overflow-y: auto; }
.lp { display: flex; align-items: center; gap: 10px; margin: 2px 0 10px; max-width: 320px; transition: opacity .35s, max-height .35s; max-height: 30px; }
.lp.out { opacity: 0; max-height: 0; margin: 0; }
.lp-b { flex: 1; height: 4px; border-radius: 4px; background: var(--sub); overflow: hidden; }
.lp-b i { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, #8fa7d6, #3fa36b); box-shadow: 0 0 10px rgba(63,163,107,.45); }
.lp b { font-size: 12px; font-weight: 600; color: var(--mut); font-variant-numeric: tabular-nums; min-width: 34px; }
.msg.live .ans.typing > :last-child::after { content: ""; display: inline-block; width: 7px; height: 15px; margin-left: 3px; vertical-align: -2px; border-radius: 2px; background: var(--ink); animation: caret 1s steps(2) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.msg.live .ans.in > * { animation: ansIn .35s ease both; }
@keyframes ansIn { from { opacity: 0; transform: translateY(4px); } }
.msg.live .ans.typing > * { animation: none; }
.ag-l .ag-sr { background: var(--panel) !important; border: 1px solid var(--ln) !important; border-radius: 10px !important; padding: 8px 11px !important; margin: 10px 0 8px !important; box-shadow: 0 1px 2px rgba(0,0,0,.03); transition: border-color .15s, box-shadow .2s; }
.ag-l .ag-sr:focus-within { border-color: var(--mut) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 8%, transparent); }
[data-theme="dark"] .ag-l .ag-sr { background: var(--sub) !important; }
.ag-none { padding: 14px 10px; font-size: 12.5px; color: var(--mut); }
.ag-mine .ag-th { position: relative; }
@media (prefers-reduced-motion: reduce) { .msg.live .ans.in > *, .msg.live .ans.typing > :last-child::after { animation: none; } }

/* Alerts: status tag + inbox swipe */
.ad2-st .stt { font-weight: 600; padding: 2px 9px; border-radius: 6px; font-size: 12.5px; }
.stt.Open { color: #2b4c8c; background: #e8eefa; }
.stt.Acknowledged { color: #5b4a8b; background: #efebfa; }
.stt.Resolved { color: #2f6b45; background: #e6f1ea; }
[data-theme="dark"] .stt.Open { color: #b9c8ef; background: #26314d; } [data-theme="dark"] .stt.Acknowledged { color: #cdbff3; background: #2f2a45; } [data-theme="dark"] .stt.Resolved { color: #a9dcbb; background: #22362b; }
.ib-row { position: relative; transition: transform .38s cubic-bezier(.4, 0, .2, 1), opacity .38s, height .3s cubic-bezier(.4, 0, .2, 1), padding .3s, background .2s; overflow: hidden; }
.ib-row.mark.done { background: rgba(63,163,107,.14); } .ib-row.mark.ack { background: rgba(91,74,139,.12); }
.ib-row.mark::after { content: "✓ Done"; position: absolute; right: 18px; top: 50%; translate: 0 -50%; font-size: 13px; font-weight: 600; color: #2f6b45; animation: rise .22s ease both; }
.ib-row.mark.ack::after { content: "Acknowledged"; color: #5b4a8b; }
.ib-row.swipe { transform: translateX(104%); opacity: .2; pointer-events: none; }
.ib-row.gone { height: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; border-bottom-width: 0 !important; }
.ib-detail { transition: opacity .2s; } .ib-detail.ib-fade { opacity: .3; }
@media (prefers-reduced-motion: reduce) { .ib-row { transition: none; } }
