/* Zentra interactive prototype. Built from the Figma frame at 1920 × 1080 and scaled to fit the browser window it sits in */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #dfe4ea; -webkit-tap-highlight-color: transparent; }
html:has(.embed), .embed { background: #ebeff4; }
body { display: grid; place-items: center; font-family: 'Roboto', system-ui, sans-serif; color: #4f525b; }
button, input, textarea, select { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; outline: 0; }
button { cursor: pointer; text-align: inherit; }
img { display: block; max-width: none; }
p, h1, h2, h3 { margin: 0; }

.stage { position: relative; overflow: hidden; }
.app { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; overflow: hidden; background: #ebeff4; transform-origin: 0 0; user-select: none; -webkit-user-select: none; }

/* Sidebar */
.side { position: absolute; left: 0; top: 0; bottom: 0; width: 150px; display: flex; flex-direction: column; align-items: center; padding: 45px 0 30px; }
.side .logo { margin-bottom: 50px; }
.side nav { display: flex; flex-direction: column; gap: 20px; }
.side nav.bottom { margin-top: auto; }
.nav { position: relative; width: 54px; height: 54px; border-radius: 10px; background: #D7DFE8; display: grid; place-items: center; transition: background 200ms, transform 160ms; }
.nav img { width: 54px; height: 54px; transition: filter 200ms; }
.nav:hover { background: #cad4df; }
.nav:active { transform: scale(.94); }
.nav.on { background: #343743; }
.nav.on img { filter: invert(1) brightness(1.6); }
.nav .tip { position: absolute; left: 66px; top: 50%; translate: 0 -50%; padding: 7px 11px; border-radius: 8px; background: #343743; color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 150ms, translate 150ms; z-index: 20; }
.nav:hover .tip { opacity: 1; translate: 4px -50%; }

/* Header bar */
.top { position: absolute; left: 150px; top: 30px; width: 1740px; height: 90px; background: #fff; border: 1px solid #e0e4ea; border-radius: 20px 20px 0 0; display: flex; align-items: center; gap: 20px; padding: 0 20px; z-index: 3; }
.who { display: flex; align-items: center; gap: 20px; flex: 1; }
.who img { width: 50px; height: 50px; border-radius: 10px; object-fit: cover; }
.who b { display: block; font-size: 20px; font-weight: 600; }
.who small { display: block; margin-top: 5px; font-size: 14px; font-weight: 600; color: #8f9aac; }
.search { position: relative; width: 600px; height: 46px; display: flex; align-items: center; gap: 10px; padding: 0 15px; background: #f1f5f9; border: 1px solid #e4ecf4; border-radius: 10px; transition: border-color 200ms, box-shadow 200ms; }
.search:focus-within { border-color: #b9c6d6; box-shadow: 0 0 0 3px rgb(83 112 187 / .1); }
.search input { flex: 1; font-size: 14px; font-weight: 600; }
.search input::placeholder { color: #8f9aac; }
.search .res { position: absolute; left: -1px; right: -1px; top: 52px; background: #fff; border: 1px solid #e0e4ea; border-radius: 12px; box-shadow: 0 20px 40px -20px rgb(52 55 67 / .35); padding: 6px; display: none; z-index: 30; }
.search .res.open { display: block; animation: drop 180ms ease both; }
.search .res button { display: flex; width: 100%; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; }
.search .res button:hover, .search .res button.k { background: #f1f5f9; }
.search .res em { font-style: normal; color: #8f9aac; font-size: 12px; margin-left: auto; }
.tilebtn { position: relative; width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; background: #f1f5f9; border: 1px solid #e4ecf4; transition: transform 160ms, background 200ms; }
.tilebtn:hover { background: #e7edf3; }
.tilebtn:active { transform: scale(.94); }
.tilebtn.bell { border: 0; background: none; }
.tilebtn .dot { position: absolute; right: 9px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: #df4c76; box-shadow: 0 0 0 2px #f1f5f9; }
.run { position: relative; height: 46px; display: flex; align-items: center; gap: 10px; padding: 0 10px 0 15px; border-radius: 10px; background: #343743; color: #fff; font-size: 15px; font-weight: 600; transition: transform 160ms, background 200ms; }
.run:hover { background: #2a2d37; }
.run:active { transform: scale(.97); }
.run .sp { width: 28px; height: 28px; position: relative; }
.run .sp img { position: absolute; left: -15px; top: -15px; width: 58px; height: 58px; animation: twinkle 3s ease-in-out infinite; }
@keyframes twinkle { 50% { transform: rotate(45deg) scale(1.1); } }
.run.busy .sp img { animation: spin 1.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Body panel and pages */
.body { position: absolute; left: 150px; top: 119px; width: 1740px; height: 931px; background: #fff; border: 1px solid #e0e4ea; border-radius: 0 0 20px 20px; overflow: hidden; }
.page { position: absolute; inset: 0; }
.page.in { animation: pagein 260ms cubic-bezier(.2, .8, .2, 1) both; }
@keyframes pagein { from { opacity: 0; transform: translateY(8px); } }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* Cards: header and body boxes */
.card { position: absolute; display: flex; flex-direction: column; }
.ch { flex: none; height: 60px; display: flex; align-items: center; gap: 10px; padding: 0 15px 0 20px; background: #fff; border: 1px solid #e9edf0; border-radius: 15px 15px 0 0; margin-bottom: -1px; }
.ch h3 { flex: 1; font-size: 15px; font-weight: 600; }
.cb { flex: 1; min-height: 0; position: relative; background: #fff; border: 1px solid #e9edf0; border-radius: 0 0 15px 15px; padding: 20px; }
.pill { position: relative; height: 34px; display: flex; align-items: center; gap: 15px; padding: 0 15px; background: #f6f8fa; border: 1px solid #e4ecf4; border-radius: 8px; font-size: 12px; font-weight: 600; white-space: nowrap; transition: background 200ms, transform 160ms; }
.pill:hover { background: #eef2f6; }
.pill:active { transform: scale(.97); }
.pill.on { background: #343743; color: #fff; border-color: #343743; }
.pill.on img { filter: invert(1); }
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 5px; border-radius: 5px; border: 1px solid; font-size: 12px; font-weight: 600; white-space: nowrap; vertical-align: middle; transition: background 300ms, color 300ms, border-color 300ms; }
.badge.red { background: #ffeaea; border-color: #ffa9a9; color: #df4c76; }
.badge.green { background: #e6f6ec; border-color: #60d38c; color: #00a23e; }
.badge.amber { background: #fff4e3; border-color: #ffcf86; color: #c27a12; }
.badge.blue { background: #eaf1ff; border-color: #b4cbff; color: #4d6fd6; }
.badge.grey { background: #f1f5f9; border-color: #dbe3ec; color: #6b7487; }
.spark { width: 28px; height: 28px; transition: transform 400ms; }
.card:hover .spark { transform: rotate(45deg); }

/* Popover menus */
.pop { position: absolute; top: 40px; right: 0; min-width: 220px; background: #fff; border: 1px solid #e0e4ea; border-radius: 12px; box-shadow: 0 20px 40px -18px rgb(52 55 67 / .35); padding: 6px; z-index: 40; animation: drop 160ms ease both; color: #4f525b; }
.pop button, .pop label { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; }
.pop button:hover, .pop label:hover { background: #f1f5f9; }
.pop button.on { color: #343743; background: #eef2f6; }
.pop input[type=checkbox] { width: 15px; height: 15px; accent-color: #343743; }
.pop h4 { margin: 6px 12px 4px; font-size: 11px; font-weight: 600; color: #8f9aac; text-transform: uppercase; letter-spacing: .04em; }

/* Ticket lifetime chart */
.legend { position: absolute; right: 20px; top: 28px; display: flex; gap: 20px; }
.legend button { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; transition: opacity 200ms; }
.legend button i { width: 13px; height: 13px; border-radius: 50%; }
.legend button.off { opacity: .35; }
.legend button.off i { box-shadow: inset 0 0 0 2px currentColor; background: transparent !important; }
.big { font-size: 28px; font-weight: 400; }
.sub { margin-top: 12px; font-size: 14px; font-weight: 600; color: #8f9aac; display: flex; align-items: center; gap: 10px; }
.chart { position: absolute; left: 0; top: 0; }
.chart .ylab { position: absolute; left: 20px; width: 48px; text-align: center; font-size: 12px; font-weight: 600; color: #8f9aac; }
.chart .mlab { position: absolute; width: 62px; text-align: center; font-size: 12px; font-weight: 600; color: #8f9aac; }
.chart .col { position: absolute; width: 62px; display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; cursor: pointer; }
.chart .col i { display: block; border-radius: 8px; transition: height 600ms cubic-bezier(.3, .9, .3, 1), opacity 200ms, filter 200ms; }
.chart .col:hover i { filter: brightness(.94) saturate(1.3); }
.chart svg { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.chart svg path { transition: d 600ms cubic-bezier(.3, .9, .3, 1), opacity 200ms; }
.ctip { position: absolute; z-index: 10; padding: 12px 14px; border-radius: 10px; background: #343743; color: #fff; font-size: 12px; font-weight: 500; pointer-events: none; box-shadow: 0 14px 30px -14px rgb(0 0 0 / .5); min-width: 160px; transition: left 120ms, top 120ms; }
.ctip b { display: block; font-size: 13px; margin-bottom: 8px; }
.ctip p { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.ctip p i { width: 9px; height: 9px; border-radius: 50%; }
.ctip p span { margin-left: auto; font-weight: 600; }

/* Closing distribution */
.closing { position: absolute; left: 20px; top: 20px; width: 380px; height: 205px; display: flex; gap: 10px; }
.closing .c { position: relative; width: 22.5px; height: 205px; border-radius: 4px; background: rgb(235 239 244 / .5); cursor: pointer; }
.closing .c i { position: absolute; left: 0; right: 0; border-radius: 4px; background: #d7f0d6; transition: top 500ms cubic-bezier(.3, .9, .3, 1), height 500ms cubic-bezier(.3, .9, .3, 1), background 200ms; }
.closing .c:hover i { background: #a9e2a7; }

/* Ticket handling */
.hl { position: absolute; left: 20px; right: 20px; top: 20px; bottom: 0; overflow-y: auto; scrollbar-width: none; }
.hl::-webkit-scrollbar { display: none; }
.hrow { display: flex; align-items: center; gap: 15px; padding: 15px 5px 15px 0; border-bottom: 1px solid #e9edf0; cursor: pointer; transition: background 200ms; border-radius: 8px; }
.hrow:first-child { padding-top: 0; }
.hrow:hover { background: #f8fafc; }
.hrow img, .av { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; flex: none; }
.av { display: grid; place-items: center; background: #e3e9f1; color: #5370BB; font-size: 14px; font-weight: 600; }
.hrow .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.hrow b { font-size: 16px; font-weight: 600; color: #485367; }
.hrow small { font-size: 14px; font-weight: 500; color: #8f9aac; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.hrow .n { font-size: 14px; font-weight: 500; color: #8f9aac; }
.hrow .chat { padding: 4px; margin: -4px; border-radius: 8px; transition: background 200ms; }
.hrow .chat:hover { background: #e9eef4; }

/* Ticket portfolio */
.pf-h { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 500; }
.pf-s { margin-top: 10px; font-size: 14px; font-weight: 500; color: #8f9aac; line-height: 24px; }
.pf-s span { transition: color 200ms; }
.pfbar { position: relative; display: flex; gap: 5px; height: 10px; margin-top: 20px; }
.pfbar i { height: 10px; border-radius: 10px; transition: transform 200ms, opacity 200ms, flex-basis 600ms; cursor: pointer; }
.pfbar.hov i { opacity: .3; }
.pfbar.hov i.on { opacity: 1; transform: scaleY(1.6); }
.pfleg { display: flex; flex-wrap: wrap; gap: 15px 20px; margin-top: 20px; }
.pfleg button { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; transition: opacity 200ms; }
.pfleg button i { width: 13px; height: 13px; border-radius: 50%; }
.pfleg.hov button { opacity: .4; }
.pfleg.hov button.on { opacity: 1; }

/* Ticket performance */
.pr-h { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 500; }
.pr-p { margin-top: 10px; font-size: 14px; font-weight: 500; color: #8f9aac; line-height: 24px; }
.pr-p b { font-weight: 500; color: #00a23e; }
.perf { position: absolute; left: 20px; top: 130px; width: 380px; height: 137px; cursor: crosshair; }
.perf svg { position: absolute; inset: 0; overflow: visible; }
.perf .tt { position: absolute; padding: 5px; border-radius: 5px; background: #f9f9f9; border: 1px solid #ccc; font-size: 12px; font-weight: 600; translate: -50% 0; white-space: nowrap; pointer-events: none; }
.perf .mk { position: absolute; width: 12px; height: 12px; margin: -6px; border-radius: 50%; background: #4F525B; box-shadow: 0 0 0 3px #fff; pointer-events: none; }
.pr-note { position: absolute; left: 20px; bottom: 20px; font-size: 12px; font-weight: 600; color: #8f9aac; line-height: 24px; }
.pr-note::before { content: "•"; margin-right: 10px; }
.pr-note button { color: #5370BB; text-decoration: underline; text-underline-offset: 2px; }

/* Risk */
.rk-h { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 500; }
.rk-p { margin-top: 10px; font-size: 14px; font-weight: 500; line-height: 24px; color: #8f9aac; }
.rk-p b { font-weight: 500; color: #df4c76; transition: color 300ms; }
.flash { animation: flash 900ms ease; }
@keyframes flash { 0% { background: #e6f6ec; } 100% { background: transparent; } }

/* Agent modal */
.veil { position: absolute; inset: 0; z-index: 50; background: rgb(52 55 67 / .35); backdrop-filter: blur(3px); display: grid; place-items: center; animation: fadein 200ms both; }
@keyframes fadein { from { opacity: 0; } }
.modal { width: 640px; background: #fff; border-radius: 20px; padding: 30px; box-shadow: 0 40px 80px -30px rgb(0 0 0 / .45); animation: pop 320ms cubic-bezier(.3, 1.3, .5, 1) both; }
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(10px); } }
.modal .mh { display: flex; align-items: center; gap: 14px; }
.modal .mh h2 { flex: 1; font-size: 22px; font-weight: 600; }
.modal .orb { width: 46px; height: 46px; border-radius: 12px; background: #343743; display: grid; place-items: center; }
.modal .orb img { width: 58px; height: 58px; margin: -6px; animation: spin 2.4s linear infinite; }
.modal p.lead { margin: 14px 0 22px; font-size: 14px; font-weight: 500; color: #8f9aac; line-height: 22px; }
.steps { display: flex; flex-direction: column; gap: 12px; }
.step { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; border: 1px solid #e9edf0; font-size: 14px; font-weight: 600; color: #8f9aac; transition: color 300ms, border-color 300ms, background 300ms; }
.step .st { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #dbe3ec; display: grid; place-items: center; flex: none; transition: border-color 300ms, background 300ms; }
.step.run { color: #4f525b; border-color: #c9d6ea; background: #f8fafd; }
.step.run .st { border-color: #5370BB; border-top-color: transparent; animation: spin .8s linear infinite; }
.step.done { color: #4f525b; }
.step.done .st { background: #00a23e; border-color: #00a23e; }
.step.done .st::after { content: ""; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.step em { margin-left: auto; font-style: normal; font-size: 12px; color: #8f9aac; }
.mbar { height: 6px; border-radius: 6px; background: #ebeff4; margin-top: 22px; overflow: hidden; }
.mbar i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, #70AEFE, #5370BB, #FF007B); transition: width 500ms; }
.result { margin-top: 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; animation: rise 400ms both; }
.result div { padding: 14px; border-radius: 12px; background: #f6f8fa; border: 1px solid #e4ecf4; }
.result small { display: block; font-size: 12px; font-weight: 600; color: #8f9aac; }
.result b { display: block; margin-top: 6px; font-size: 20px; font-weight: 600; }
.result b em { font-style: normal; font-size: 13px; color: #00a23e; margin-left: 6px; }
.mfoot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.btn { height: 42px; padding: 0 18px; border-radius: 10px; font-size: 14px; font-weight: 600; transition: transform 160ms, background 200ms; }
.btn:active { transform: scale(.97); }
.btn.dark { background: #343743; color: #fff; }
.btn.dark:hover { background: #2a2d37; }
.btn.line { border: 1px solid #e0e4ea; background: #fff; }
.btn.line:hover { background: #f6f8fa; }
.btn[disabled] { opacity: .4; pointer-events: none; }

/* Pages: tickets, staff, locations, messages */
.ph { position: absolute; left: 30px; right: 30px; top: 30px; display: flex; align-items: center; gap: 14px; }
.ph h2 { font-size: 24px; font-weight: 600; flex: 1; }
.ph .pill { height: 38px; }
.tabsr { display: flex; gap: 6px; padding: 4px; border-radius: 10px; background: #f1f5f9; border: 1px solid #e4ecf4; }
.tabsr button { height: 30px; padding: 0 14px; border-radius: 7px; font-size: 13px; font-weight: 600; color: #8f9aac; transition: background 200ms, color 200ms; }
.tabsr button.on { background: #fff; color: #343743; box-shadow: 0 1px 3px rgb(52 55 67 / .12); }
.table { position: absolute; left: 30px; right: 30px; top: 96px; bottom: 30px; border: 1px solid #e9edf0; border-radius: 15px; overflow: hidden; display: flex; flex-direction: column; }
.thead, .trow { display: grid; grid-template-columns: 110px 1.6fr 1.3fr 150px 120px 170px 130px 120px; align-items: center; gap: 16px; padding: 0 20px; }
.thead { height: 48px; flex: none; background: #f6f8fa; border-bottom: 1px solid #e9edf0; font-size: 12px; font-weight: 600; color: #8f9aac; text-transform: uppercase; letter-spacing: .04em; }
.tbody { flex: 1; overflow-y: auto; scrollbar-width: thin; }
.trow { height: 62px; border-bottom: 1px solid #f0f3f6; font-size: 14px; font-weight: 500; cursor: pointer; transition: background 150ms; animation: rise 300ms both; }
.trow:hover { background: #f8fafc; }
.trow.sel { background: #f1f5fb; }
.trow .id { color: #8f9aac; font-weight: 600; font-size: 13px; }
.trow .tt { font-weight: 600; color: #485367; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trow .ht { color: #8f9aac; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.cat i { width: 10px; height: 10px; border-radius: 50%; }
.who2 { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.who2 .av, .who2 img { width: 28px; height: 28px; border-radius: 8px; font-size: 11px; }
.riskm { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.riskm span { flex: 1; height: 6px; border-radius: 6px; background: #ebeff4; overflow: hidden; }
.riskm span i { display: block; height: 100%; border-radius: 6px; }
.empty { padding: 60px; text-align: center; color: #8f9aac; font-weight: 600; }

/* Ticket drawer with the AI assessment */
.drawer { position: absolute; top: 0; right: 0; bottom: 0; width: 560px; background: #fff; border-left: 1px solid #e0e4ea; box-shadow: -30px 0 60px -40px rgb(52 55 67 / .5); z-index: 20; display: flex; flex-direction: column; animation: slidein 320ms cubic-bezier(.2, .9, .2, 1) both; }
.drawer.out { animation: slideout 220ms ease-in both; }
@keyframes slidein { from { transform: translateX(100%); } }
@keyframes slideout { to { transform: translateX(100%); } }
.dh { padding: 26px 28px 20px; border-bottom: 1px solid #e9edf0; }
.dh .row { display: flex; align-items: center; gap: 10px; }
.dh .x { margin-left: auto; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-size: 20px; color: #8f9aac; }
.dh .x:hover { background: #f1f5f9; }
.dh h2 { margin-top: 14px; font-size: 22px; font-weight: 600; line-height: 1.3; }
.dh p { margin-top: 8px; font-size: 14px; font-weight: 500; color: #8f9aac; }
.db { flex: 1; overflow-y: auto; padding: 22px 28px 28px; display: flex; flex-direction: column; gap: 20px; }
.ai { border-radius: 15px; padding: 20px; background: linear-gradient(135deg, rgb(112 174 254 / .1), rgb(83 112 187 / .08) 50%, rgb(255 0 123 / .07)); border: 1px solid #e3e6f4; }
.ai .aih { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; }
.ai .aih img { width: 22px; height: 22px; }
.gauge { display: flex; align-items: center; gap: 20px; margin-top: 16px; }
.gauge svg { flex: none; }
.gauge .g-t b { display: block; font-size: 26px; font-weight: 600; }
.gauge .g-t small { font-size: 13px; font-weight: 500; color: #8f9aac; }
.ai ul { margin: 16px 0 0; padding: 0 0 0 18px; font-size: 13px; font-weight: 500; color: #5d6170; line-height: 1.6; }
.ai .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.facts div { padding: 12px 14px; border-radius: 12px; background: #f6f8fa; border: 1px solid #e9edf0; }
.facts small { display: block; font-size: 11px; font-weight: 600; color: #8f9aac; text-transform: uppercase; letter-spacing: .04em; }
.facts b { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 14px; font-weight: 600; }
.tl h4 { margin: 0 0 12px; font-size: 13px; font-weight: 600; color: #8f9aac; text-transform: uppercase; letter-spacing: .04em; }
.tl li { position: relative; list-style: none; padding: 0 0 16px 22px; font-size: 13px; font-weight: 500; }
.tl ul { margin: 0; padding: 0; }
.tl li::before { content: ""; position: absolute; left: 4px; top: 5px; width: 8px; height: 8px; border-radius: 50%; background: #c3cedc; }
.tl li::after { content: ""; position: absolute; left: 7.5px; top: 16px; bottom: 0; width: 1px; background: #e4ecf4; }
.tl li:last-child::after { display: none; }
.tl li.new::before { background: #00a23e; }
.tl li small { display: block; color: #8f9aac; margin-top: 2px; }

/* Staff and locations grids */
.grid { position: absolute; left: 30px; right: 30px; top: 96px; bottom: 30px; overflow-y: auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-content: start; scrollbar-width: thin; }
.tile { border: 1px solid #e9edf0; border-radius: 15px; padding: 20px; display: flex; flex-direction: column; gap: 14px; cursor: pointer; transition: border-color 200ms, transform 200ms, box-shadow 200ms; animation: rise 320ms both; }
.tile:hover { border-color: #cfd8e3; transform: translateY(-2px); box-shadow: 0 14px 30px -24px rgb(52 55 67 / .5); }
.tile .tr { display: flex; align-items: center; gap: 12px; }
.tile .tr .t b { display: block; font-size: 16px; font-weight: 600; color: #485367; }
.tile .tr .t small { font-size: 13px; font-weight: 500; color: #8f9aac; }
.load { height: 8px; border-radius: 8px; background: #ebeff4; overflow: hidden; }
.load i { display: block; height: 100%; border-radius: 8px; transition: width 700ms cubic-bezier(.3, .9, .3, 1); }
.kv { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: #8f9aac; }
.kv b { color: #4f525b; }
.photo { height: 120px; border-radius: 10px; background: linear-gradient(135deg, var(--a), var(--b)); position: relative; overflow: hidden; }
.photo::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgb(255 255 255 / .12) 0 22px, transparent 22px 30px), linear-gradient(0deg, rgb(0 0 0 / .18), transparent 60%); }
.photo span { position: absolute; left: 12px; bottom: 10px; z-index: 1; color: #fff; font-size: 12px; font-weight: 600; }

/* Messages */
.msgs { position: absolute; left: 30px; right: 30px; top: 96px; bottom: 30px; border: 1px solid #e9edf0; border-radius: 15px; display: grid; grid-template-columns: 380px 1fr; overflow: hidden; }
.mlist { border-right: 1px solid #e9edf0; overflow-y: auto; }
.mlist button { display: flex; width: 100%; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid #f0f3f6; transition: background 150ms; }
.mlist button:hover { background: #f8fafc; }
.mlist button.on { background: #f1f5fb; }
.mlist .t { flex: 1; min-width: 0; text-align: left; }
.mlist b { display: block; font-size: 15px; font-weight: 600; color: #485367; }
.mlist small { display: block; margin-top: 3px; font-size: 13px; font-weight: 500; color: #8f9aac; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mlist em { font-style: normal; font-size: 12px; color: #8f9aac; align-self: flex-start; }
.conv { display: flex; flex-direction: column; min-height: 0; }
.conv .chd { display: flex; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 1px solid #e9edf0; }
.conv .chd b { font-size: 16px; font-weight: 600; }
.conv .chd small { display: block; font-size: 13px; font-weight: 500; color: #8f9aac; }
.thread { flex: 1; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.bub { max-width: 60%; padding: 12px 16px; border-radius: 14px; background: #f1f5f9; font-size: 14px; font-weight: 500; line-height: 1.5; animation: rise 260ms both; }
.bub.me { align-self: flex-end; background: #343743; color: #fff; }
.bub.ai { background: linear-gradient(135deg, rgb(112 174 254 / .14), rgb(255 0 123 / .08)); border: 1px solid #e3e6f4; }
.compose { display: flex; gap: 10px; padding: 16px 22px; border-top: 1px solid #e9edf0; }
.compose input { flex: 1; height: 46px; padding: 0 16px; border-radius: 10px; background: #f1f5f9; border: 1px solid #e4ecf4; font-size: 14px; font-weight: 500; }

.toast { position: absolute; left: 50%; top: 140px; z-index: 60; padding: 14px 20px; border-radius: 12px; background: #343743; color: #fff; font-size: 14px; font-weight: 600; transform: translateX(-50%); animation: toast 2.8s ease both; pointer-events: none; box-shadow: 0 20px 40px -20px rgb(0 0 0 / .5); }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, -12px); } 10%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -6px); } }
@media (prefers-reduced-motion: reduce) { * { animation-duration: 1ms !important; transition-duration: 1ms !important; } }

/* Statistics */
.sgrid { position: absolute; left: 30px; right: 30px; top: 96px; bottom: 30px; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: 150px 350px 1fr; gap: 20px; }
.kpi { position: relative; border: 1px solid #e9edf0; border-radius: 15px; padding: 20px; display: flex; flex-direction: column; gap: 8px; animation: rise 320ms both; overflow: hidden; }
.kpi small { font-size: 14px; font-weight: 600; color: #8f9aac; }
.kpi b { font-size: 30px; font-weight: 500; }
.kpi .badge { align-self: flex-start; }
.kpi .spark2 { position: absolute; right: 18px; bottom: 18px; width: 140px; height: 40px; }
.scard { display: flex; flex-direction: column; min-height: 0; }
.lg2 { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: #8f9aac; }
.lg2 i { width: 10px; height: 10px; border-radius: 50%; margin-left: 8px; }
.lg2 .scale { width: 120px; height: 10px; border-radius: 5px; background: linear-gradient(90deg, rgb(83 112 187 / .08), #5370BB); }
.hbars { display: flex; flex-direction: column; justify-content: space-around; }
.hb { display: grid; grid-template-columns: 220px 1fr 50px; align-items: center; gap: 16px; font-size: 14px; font-weight: 600; cursor: pointer; padding: 3px 6px; border-radius: 8px; transition: background 150ms; }
.hb:hover { background: #f6f8fa; }
.hb .bb { display: flex; flex-direction: column; gap: 4px; }
.hb .bb i { display: block; height: 10px; border-radius: 5px; transition: width 700ms cubic-bezier(.3, .9, .3, 1); }
.hb em { font-style: normal; text-align: right; color: #5370BB; }
.trend { position: relative; }
.trend .tl2 { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 1.1s cubic-bezier(.4, 0, .2, 1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.heat { display: flex; flex-direction: column; gap: 4px; }
.heat .hr { display: grid; grid-template-columns: 40px repeat(24, 1fr); gap: 4px; align-items: center; }
.heat .hr span { font-size: 12px; font-weight: 600; color: #8f9aac; }
.heat .hr i { height: 22px; border-radius: 4px; transition: transform 150ms; }
.heat .hr i:hover { transform: scale(1.25); box-shadow: 0 0 0 2px #fff, 0 0 0 3px #5370BB; }
.heat .hx em { font-style: normal; font-size: 11px; font-weight: 600; color: #8f9aac; }
