/* Inbox: a list of what needs you beside the selected session. Activity: every session in columns by status. */

/* Inbox list */
.app .ibx-list { display: flex; flex-direction: column; flex: none; width: 348px; border-right: 0.5px solid var(--sep); }
.ibx-lh { display: flex; align-items: center; flex: none; gap: 4px; height: 52px; padding: 0 10px 0 16px; }
.ibx-lh > b { flex: 1; font-size: 17px; font-weight: 700; }
.ibx-fw { position: relative; }
.app .ibx-fw .ib { width: 28px; height: 28px; color: var(--t2); }
.app .ibx-fw .ib.on { color: var(--t1); }
.app .ibx-ghost { height: 30px; padding: 0 12px; border-radius: 8px; color: var(--t2); font-size: 14px; font-weight: 500; }
.app .ibx-ghost:hover { background: var(--f3); }
.ibx-menu { position: absolute; top: 32px; right: 0; z-index: 5; min-width: 140px; padding: 4px; border-radius: 12px; background: var(--popover); box-shadow: 0 0 0 0.5px var(--sep), 0 18px 50px #00000080, 0 2px 6px #0000000f; animation: ibx-in 160ms cubic-bezier(0.16, 1, 0.3, 1); }
.app .ibx-menu button { gap: 6px; width: 100%; height: 26px; padding: 0 8px; border-radius: 5px; font-size: 13px; color: var(--t1); white-space: nowrap; }
.app .ibx-menu button:hover { background: var(--f2); }
.ibx-menu .ck { display: grid; width: 14px; flex: none; }
@keyframes ibx-in { from { opacity: 0; transform: translateY(-4px); } }
.ibx-notes { display: flex; flex-direction: column; flex: 1; gap: 2px; min-height: 0; padding: 8px; overflow: auto; outline: 0; scrollbar-width: none; }
.ibx-notes::-webkit-scrollbar { display: none; }
.ibx-sec { display: flex; flex: none; padding: 12px 12px 4px; color: var(--t3); font-size: 12px; font-weight: 600; text-transform: uppercase; }
.ibx-sec span { flex: 1; }
.ibx-sec b { font: 500 12px var(--mono); text-transform: none; }
.app .ibx-note { align-items: flex-start; flex: none; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 12px; }
.app .ibx-note:hover { background: var(--f1); }
.app .ibx-note.on { background: var(--f3); }
.ibx-mark { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--surface); box-shadow: inset 0 0 0 0.5px var(--sep2); }
.ibx-text { display: flex; flex-direction: column; flex: 1; gap: 3px; min-width: 0; }
.ibx-top { display: flex; align-items: center; gap: 6px; font-size: 12px; line-height: 14px; color: var(--t2); }
.ibx-top b { font-weight: 600; }
.ibx-top i { font-style: normal; color: var(--t6); }
.ibx-top .prov { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ibx-top .ago { color: var(--t4); }
.ibx-title { overflow: hidden; font-size: 14px; font-weight: 600; line-height: 17px; white-space: nowrap; text-overflow: ellipsis; }
.ibx-sub { overflow: hidden; font-size: 12px; line-height: 14px; color: var(--t2); white-space: nowrap; text-overflow: ellipsis; }
.ibx-empty { display: grid; place-items: center; flex: 1; color: var(--t3); font-size: 14px; }

/* Inbox detail */
.ibx-detail { display: flex; flex-direction: column; flex: 1; min-width: 0; min-height: 0; }
.ibx-none { display: grid; place-items: center; flex: 1; color: var(--t3); font-size: 14px; }
.ibx-head { display: flex; align-items: center; flex: none; gap: 10px; height: 52px; padding: 0 20px; font-size: 14px; }
.ibx-head .tile { width: 22px; height: 22px; margin: 0; border-radius: 6px; font-size: 11px; }
.ibx-head .pj { color: var(--t2); }
.ibx-head i { font-style: normal; color: var(--t6); }
.ibx-head b { overflow: hidden; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.ibx-head .sp { flex: 1; }
.ibx-pill { display: flex; align-items: center; flex: none; gap: 5px; height: 20px; padding: 0 8px 0 7px; border-radius: 10px; background: var(--waiting-bg); color: var(--waiting-text); font-size: 11.5px; font-weight: 600; }
.ibx-timer { color: var(--waiting-text); font: 11.5px var(--mono); }
.app .ibx-open { gap: 6px; flex: none; height: 32px; padding: 0 14px 0 16px; border-radius: 16px; background: var(--f3); font-size: 14px; font-weight: 500; }
.app .ibx-open:hover { background: var(--f4); }
.ibx-open svg { color: var(--t1); }
.ibx-body { display: flex; flex-direction: column; flex: 1; min-height: 0; padding: 10px 10px 0; }
.ibx-body .chat .col { width: auto; max-width: 878px; padding: 0 24px; }
.ibx-body .dock { width: auto; max-width: 880px; margin: 0 auto; padding: 0 24px 6px; }
.ibx-body .term { padding-top: 8px; }
.ibx-hints { display: flex; align-items: center; flex: none; gap: 6px; height: 36px; padding: 0 20px; font-size: 12px; color: var(--t2); }
.app .ibx-k { padding: 1px 6px; border-radius: 5px; background: var(--f4); color: var(--t2); font: 11px/16px var(--mono); }
.ibx-hints .ibx-k + .ibx-k { margin-left: -2px; }

/* Activity */
.act-page { min-width: 0; }
.act-bar { position: relative; z-index: 5; display: flex; align-items: center; flex: none; gap: 8px; height: 44px; padding: 0 12px 0 14px; border-bottom: 0.5px solid var(--sep); font-size: 13px; }
.act-bar .t { display: flex; align-items: center; flex: 1; gap: 7px; margin-left: 2px; font-weight: 500; }
.act-bar .t svg { color: var(--t3); }
.act-search { display: flex; align-items: center; gap: 6px; width: 220px; height: 26px; padding: 0 8px; border-radius: 7px; background: var(--f1); color: var(--t3); }
.act-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--t1); font: inherit; font-size: 12.5px; }
.act-search input::placeholder { color: var(--t4); }
.act-cw { position: relative; margin-left: -2px; }
.app .act-chip { gap: 5px; height: 26px; padding: 0 10px; border: 0.5px solid var(--sep); border-radius: 13px; color: var(--t2); font-size: 12.5px; }
.app .act-chip:hover { background: var(--f2); }
.app .act-chip.on { background: var(--f3); }
.act-chip svg { color: var(--t3); }
.act-menu { position: absolute; top: 30px; right: 0; z-index: 6; width: 260px; padding: 4px; border-radius: 12px; background: var(--popover); box-shadow: 0 0 0 0.5px var(--sep), 0 18px 50px #00000080, 0 2px 6px #0000000f; animation: ibx-in 160ms cubic-bezier(0.16, 1, 0.3, 1); }
.app .act-vr { gap: 8px; width: 100%; height: 28px; padding: 0 8px; border-radius: 6px; font-size: 12.5px; }
.app .act-vr:hover { background: var(--f2); }
.act-vr .tick { display: grid; place-items: center; flex: none; width: 14px; height: 14px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--sep2); color: #fff; }
.act-vr .tick.on { background: var(--action); box-shadow: none; }
.act-vr .lead { display: grid; place-items: center; flex: none; width: 14px; color: var(--t3); }
.act-vr .nm { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.act-vr .ct { color: var(--t4); font-size: 12px; }

.act-cols { display: flex; flex: 1; gap: 10px; min-height: 0; padding: 14px 20px; overflow-x: auto; scrollbar-width: none; }
.act-cols::-webkit-scrollbar { display: none; }
.act-col { display: flex; flex-direction: column; flex: 1; min-width: 208px; max-width: 320px; height: 100%; border-radius: 10px; background: var(--f1); }
.act-ch { display: flex; align-items: center; flex: none; gap: 8px; height: 36px; padding: 0 8px 0 12px; font-size: 12.5px; font-weight: 500; }
.act-ch .gl { display: grid; place-items: center; width: 14px; height: 14px; color: var(--t4); }
.act-ch .n { color: var(--t3); font-weight: 400; }
.act-ch .why { margin-left: auto; color: var(--t4); font-size: 11px; font-weight: 400; }
.act-hint { padding: 6px 14px 12px; color: var(--t4); font-size: 12px; line-height: 18px; }
.act-cards { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; }
.act-cards::-webkit-scrollbar { display: none; }
.act-ring { display: grid; color: var(--working); }
.act-ring.rot svg { animation: act-spin 900ms linear infinite; }
@keyframes act-spin { to { transform: rotate(360deg); } }
.act-mark { display: grid; place-items: center; width: 14px; height: 14px; }

.act-cardw { padding: 0 8px 8px; }
.act-cardw.first { padding-top: 4px; }
.app .act-card { display: block; width: 100%; padding: 10px 12px; border-radius: 10px; background: var(--surface-solid); box-shadow: inset 0 0 0 0.5px var(--sep2); cursor: pointer; }
.act-card:hover { box-shadow: inset 0 0 0 0.5px var(--sep2), 0 0 0 4px var(--f1); }
.act-card.prev, .act-card.prev:hover { box-shadow: 0 0 0 1.5px #ebebeb66; }
.act-card.land { animation: act-land 360ms cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes act-land { from { opacity: 0; transform: translateY(-8px); } }
.act-ctop { display: flex; align-items: center; gap: 6px; height: 16px; margin-bottom: 6px; color: var(--t3); font-size: 11px; white-space: nowrap; }
.act-ctop .pn { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.act-ctop .ag, .act-drawer .ag { display: flex; align-items: center; flex: none; gap: 4px; }
.act-ctop .when { margin-left: auto; flex: none; }
.act-badge { display: grid; place-items: center; flex: none; width: 16px; height: 16px; border-radius: 4px; background: #555; color: #fff; font: 500 9px/1 Geist, sans-serif; }
.act-ctitle { display: -webkit-box; overflow: hidden; font-size: 13px; font-weight: 500; line-height: 18px; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.act-card.done .act-ctitle { font-weight: 600; }
.act-branch { display: flex; align-items: center; gap: 5px; height: 13px; margin-top: 4px; color: var(--t3); font: 11px/13px var(--mono); }
.act-branch span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-note { display: -webkit-box; overflow: hidden; margin-top: 6px; color: var(--t3); font-size: 12px; line-height: 17px; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.act-meta { display: flex; align-items: center; gap: 6px; height: 20px; margin-top: 8px; }
.act-meta .q { margin: -2px -4px -2px auto; }
.act-pill { display: flex; align-items: center; flex: none; gap: 4px; height: 20px; padding: 0 6px; border-radius: 6px; box-shadow: inset 0 0 0 0.5px var(--sep2); color: var(--t3); font-size: 11px; }
.act-pill.mono { font-family: var(--mono); }
.act-diff { display: flex; gap: 6.6px; font: 11px var(--mono); }
.act-diff b { font-weight: 400; }
.act-diff .add { color: var(--success-text); }
.act-diff .del { color: var(--failed); }
.app .sm { display: flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 7px; background: var(--f3); color: var(--t1); font-size: 12px; font-weight: 600; white-space: nowrap; }
.app .sm:hover { background: var(--f4); }
.app .sm.primary { background: var(--t1); color: #171717; }
.app .sm.primary:hover { opacity: 0.9; background: var(--t1); }
.act-ask { display: flex; flex-direction: column; align-items: flex-start; margin-top: 8px; padding: 8px 10px; gap: 7px; border-radius: 10px; background: var(--waiting-bg); font-size: 12px; line-height: 17px; }
.act-ask.bad { background: var(--failed-bg); }
.act-ask.big { margin: 0; padding: 10px 12px; gap: 8px; font-size: 12.5px; line-height: 18px; }
.act-ask .line { display: flex; flex-wrap: wrap; gap: 4px; }
.act-ask .bad b, .act-ask.bad b { color: var(--failed-text); }
.act-ask code { margin-top: -3px; padding: 2px 6px; border-radius: 5px; background: #00000040; font: 11.5px/14px var(--mono); word-break: break-all; }
.act-ask .btns { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 0 0; margin: 0 -8px -8px 0; }
.act-ask .btns { padding: 0; margin: 0; }

.act-drawer { position: absolute; top: 52px; right: 12px; bottom: 12px; z-index: 4; display: flex; flex-direction: column; width: 440px; border-radius: 12px; background: var(--popover); box-shadow: 0 0 0 0.5px var(--sep2), 0 12px 32px #00000080; }
.act-drawer.enter { animation: act-slide 440ms cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes act-slide { from { transform: translateX(460px); } }
.act-drawer .dh { display: flex; align-items: flex-start; flex: none; gap: 10px; padding: 14px 12px 12px 16px; border-bottom: 0.5px solid var(--sep); }
.act-drawer .what { display: flex; flex-direction: column; align-items: flex-start; flex: 1; min-width: 0; }
.act-drawer .chip2 { display: flex; align-items: center; gap: 5px; height: 20px; padding: 0 7px 0 6px; border-radius: 10px; background: var(--f3); color: var(--t2); font-size: 11px; font-weight: 600; }
.act-drawer .t { margin-top: 8px; font-size: 14.5px; font-weight: 600; line-height: 19px; }
.act-drawer .m { display: flex; align-items: center; gap: 8px; margin-top: 5px; color: var(--t3); font-size: 11.5px; }
.act-drawer .br { display: flex; align-items: center; gap: 5px; margin-top: 5px; color: var(--t3); font: 11px var(--mono); }
.app .act-drawer .open { gap: 4px; flex: none; height: 24px; padding: 0 9px; border-radius: 7px; background: var(--t1); color: #171717; font-size: 12px; font-weight: 600; }
.act-drawer .open:hover { opacity: 0.9; }
.act-drawer .open i { font-style: normal; font-size: 11px; font-weight: 500; opacity: 0.55; }
.app .act-drawer .x { color: var(--t3); }
.act-drawer .db { display: flex; flex-direction: column; flex: 1; gap: 14px; min-height: 0; padding: 14px 16px; overflow-y: auto; scrollbar-width: none; }
.act-drawer .db::-webkit-scrollbar { display: none; }
.act-log { display: flex; flex-direction: column; gap: 10px; font-size: 13px; line-height: 20px; }
.act-log .u { display: flex; justify-content: flex-end; }
.act-log .u span { max-width: 85%; padding: 7px 11px; border-radius: 12px; background: var(--f3); }
.act-log .tl { display: flex; align-items: center; gap: 7px; color: var(--t3); font-size: 12px; line-height: 18.6px; }
.act-log .tl svg { color: var(--t4); }
.act-log .tl b { color: var(--t2); font-weight: 500; }
.act-log .tl.busy { color: var(--working); font-weight: 500; }
.act-log .tl.busy svg { color: var(--working); animation: act-spin 900ms linear infinite; }
.act-log .s { color: var(--tb); }
.act-box { overflow: hidden; border-radius: 10px; box-shadow: inset 0 0 0 0.5px var(--sep2); }
.act-box .bh { display: flex; align-items: center; gap: 7px; padding: 8px 12px; border-bottom: 0.5px solid var(--sep); color: var(--t2); font-size: 12px; font-weight: 600; }
.act-box .sp { flex: 1; }
.act-box .st { color: var(--waiting-text); font-weight: 400; }
.act-box .bf, .act-box .bc { display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border-top: 0.5px solid var(--sep); color: var(--t2); }
.act-box .bh + .bf, .act-box .bh + .bc { border-top: 0; }
.act-box .bf { font: 11.5px var(--mono); }
.act-box .bf span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-box .bf .act-diff { font-size: 11.5px; }
.act-box .bc { font-size: 12px; }
.act-box .bc .gl { display: grid; width: 16px; place-items: center; }
.act-box .bc .ok { display: grid; color: var(--success); }
.act-box .bc .rot { display: grid; color: var(--waiting); animation: act-spin 900ms linear infinite; }
.act-box .bc .nm { flex: 1; }
.act-box .bc .dt { color: var(--t4); font-size: 11.5px; }
.act-drawer .dr { display: flex; align-items: center; flex: none; gap: 8px; height: 40px; margin: 0 12px 12px; padding: 0 12px 0 14px; border-radius: 12px; background: var(--surface-solid); box-shadow: inset 0 0 0 0.5px var(--sep2); color: var(--t4); font-size: 11px; }
.act-reply { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--t1); font: inherit; font-size: 13px; }
.act-reply::placeholder { color: var(--t4); }

@media (prefers-reduced-motion: reduce) {
  .app .act-drawer.enter, .app .act-card.land, .app .ibx-menu, .app .act-menu { animation: none; }
  .app .act-ring.rot svg { animation-duration: 3s; }
}
