.dash .act-search {
    width: 260px;
    height: 34px;
}

.dash .act-figures {
    margin-top: 18px;
}

.dash .act-figures .screen-figure {
    flex-basis: 150px;
    padding: 14px 20px 14px 0;
}

.dash .act-figures .screen-figure + .screen-figure {
    padding-left: 20px;
}

.dash .act-figures .screen-figure-label {
    font-weight: 500;
}

.dash .act-figures .screen-figure-value {
    margin-top: 4px;
    font-size: 26px;
    letter-spacing: -.02em;
}

.dash .act-filters {
    flex-shrink: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 16px 32px 14px;
}

.dash .act-date {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 4px 8px;
    font-size: 12px;
    color: var(--dash-muted);
}

.dash .act-date .dialog-input {
    height: 32px;
    padding: 0 8px;
    color-scheme: dark;
}

.dash .act-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 0 auto;
    font-size: 13px;
    color: var(--text-dim);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.dash .act-count-clear {
    padding: 0;
    border: 0;
    background: none;
    color: var(--accent-text);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.dash .act-count-clear:hover {
    text-decoration: underline;
}

.dash .act-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

.dash .act-empty {
    margin: 24px 32px;
}

.dash .act-table {
    overflow-x: auto;
}

.dash .act-table table {
    width: 100%;
    min-width: 960px;
    table-layout: fixed;
    border-collapse: collapse;
}

.dash .act-table thead th {
    height: 34px;
    padding: 0 8px;
    border-top: 1px solid rgba(255, 255, 255, .075);
    border-bottom: 1px solid rgba(255, 255, 255, .075);
    background: #0c0c0c;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--text-muted);
    text-align: left;
    white-space: nowrap;
}

.dash .act-table td {
    height: 44px;
    padding: 0 8px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dash .act-table tr > :first-child {
    padding-left: 32px;
}

.dash .act-table tr > :last-child {
    padding-right: 32px;
}

.dash .act-col-time {
    width: 112px;
}

.dash .act-col-type {
    width: 100px;
}

.dash .act-col-who {
    width: 216px;
}

.dash .act-col-ref {
    width: 100px;
}

.dash .act-col-by {
    width: 196px;
}

.dash .act-table .act-col-duration {
    width: 112px;
    text-align: right;
}

.dash .act-day th {
    padding: 10px 32px 6px;
    border: 0;
    background: none;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-soft);
    text-align: left;
}

.dash .act-row {
    cursor: pointer;
}

.dash .act-row:hover td {
    background: rgba(255, 255, 255, .02);
}

.dash .act-row--active td,
.dash .act-row--active:hover td {
    background: rgba(79, 169, 245, .13);
}

.dash .act-row--active td:first-child {
    box-shadow: inset 2px 0 0 var(--accent);
}

.dash td.act-col-time {
    font-size: 12px;
    color: var(--text-dim);
    font-variant-numeric: tabular-nums;
}

.dash .act-kind {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: var(--text-soft);
}

.dash .act-kind-icon--chat {
    color: #3987e5;
}

.dash .act-kind-icon--call {
    color: #199e70;
}

.dash .act-who {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    background: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text);
    font: 500 14px "Inter", sans-serif;
    text-align: left;
    cursor: pointer;
}

.dash .act-who:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

.dash td.act-col-what,
.dash td.act-col-by {
    font-size: 13px;
    color: var(--text-soft);
}

.dash td.act-col-ref {
    font-size: 12px;
    color: var(--text-dim);
}

.dash .act-unassigned {
    color: var(--text-dim);
    font-style: italic;
}

.dash td.act-col-duration {
    font-size: 12.5px;
    color: var(--text-soft);
    font-variant-numeric: tabular-nums;
}

.dash .act-more {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px 20px;
}

.dash .act-more-left {
    font-size: 13px;
    color: var(--dash-muted);
}

.dash .act-drawer {
    position: absolute;
    inset: 0;
    z-index: 5;
    overflow: hidden;
}

.dash .act-scrim {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .5);
}

.dash .act-drawer.is-leaving .act-scrim {
    pointer-events: none;
}

.dash .act-drawer-panel {
    position: absolute;
    top: 12px;
    right: 12px;
    bottom: 12px;
    width: 500px;
    max-width: calc(100% - 24px);
}

.dash .act-drawer-panel > .act-inspector {
    position: relative;
    inset: auto;
    z-index: auto;
    width: 100%;
    max-width: none;
    height: 100%;
    animation: none;
}

.dash .act-eyebrow {
    display: flex;
    align-items: center;
    gap: 6px;
    font-variant-numeric: tabular-nums;
}

.dash .act-sub {
    margin: 4px 0 0;
    overflow-wrap: anywhere;
    font-size: 13px;
    color: var(--text-muted);
}

.dash .act-sub a {
    color: var(--accent-text);
    font-variant-numeric: tabular-nums;
}

.dash .act-sub-sep {
    margin: 0 6px;
    color: var(--text-dim);
}

.dash .act-confirm {
    flex-basis: 100%;
    margin: 0 0 2px;
    font-size: 13px;
    color: var(--text-soft);
}

.dash .act-tabs {
    flex-shrink: 0;
    display: flex;
    gap: 18px;
    padding: 0 22px;
    border-bottom: 1px solid rgba(255, 255, 255, .075);
}

.dash .act-tab {
    position: relative;
    height: 40px;
    padding: 0 4px;
    border: 0;
    background: none;
    color: var(--text-muted);
    font: 500 13px "Inter", sans-serif;
}

.dash .act-tab.is-active {
    color: var(--text);
}

.dash .act-tab.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--accent);
}

.dash .act-pane-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px 22px 28px;
}

.dash .act-subject {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.dash .act-system {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-left: 6px;
    color: var(--text-muted);
}

.dash .act-system p {
    margin: 0;
    font-size: 13px;
    line-height: 20px;
}

.dash .act-system-who {
    font-weight: 500;
    color: var(--text-soft);
}

.dash .act-system-at {
    color: var(--text-dim);
    white-space: nowrap;
}

.dash .act-message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.dash .act-avatar {
    width: 30px;
    height: 30px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #262626;
    color: #d4d4d4;
    font-size: 11px;
    font-weight: 600;
}

.dash .act-message--bot .act-avatar {
    background: rgba(79, 169, 245, .12);
    color: #9ccff9;
}

.dash .act-message--agent .act-avatar {
    background: #1f74c7;
    color: #ffffff;
}

.dash .act-message-main {
    flex: 1;
    min-width: 0;
}

.dash .act-message-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin: 0;
}

.dash .act-author {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.dash .act-message--bot .act-author {
    color: var(--text-soft);
}

.dash .act-message--agent .act-author {
    color: #86c3f8;
}

.dash .act-at {
    font-size: 12px;
    color: var(--text-dim);
    white-space: nowrap;
}

.dash .act-message-body {
    margin: 2px 0 0;
    font-size: 14px;
    line-height: 21px;
    color: var(--text);
    overflow-wrap: anywhere;
}

.dash p.act-message-body {
    white-space: pre-wrap;
}

.dash .act-message--bot .act-message-body {
    color: var(--text-soft);
}

.dash .act-none {
    margin: 0;
    font-size: 13px;
    color: var(--dash-muted);
}

.dash .act-facts {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 10px 14px;
    margin: 0;
}

.dash .act-fact {
    display: contents;
}

.dash .act-fact dt {
    font-size: 12.5px;
    color: var(--text-muted);
}

.dash .act-fact dd {
    margin: 0;
    font-size: 13.5px;
    color: var(--text);
    overflow-wrap: anywhere;
}

.dash .act-section-label {
    margin: 8px 0 0;
}

.dash .act-call-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px 22px 26px;
}

.dash .act-section {
    margin: 0 0 6px;
    font-family: "Inter", sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.dash .act-text {
    margin: 0;
    font-size: 14.5px;
    line-height: 22px;
    color: var(--text);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.dash .act-note {
    margin: 8px 0 0;
    font-size: 13px;
    color: var(--text-muted);
}

.dash .act-linked {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dash .act-linked-item {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 36px;
    padding: 0 6px;
    border: 0;
    border-radius: 8px;
    background: none;
    color: var(--text);
    font-size: 13px;
    text-align: left;
}

.dash .act-linked-item:hover:not(:disabled) {
    background: rgba(255, 255, 255, .05);
}

.dash .act-linked-item:disabled {
    opacity: .5;
    cursor: default;
}

.dash .act-linked-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dash .act-linked-when {
    font-size: 12px;
    color: var(--text-dim);
    font-variant-numeric: tabular-nums;
}

.dash .act-ghost-rows {
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(255, 255, 255, .075);
}

.dash .act-ghost-row {
    display: grid;
    grid-template-columns: 70px 70px 180px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    height: 44px;
    padding: 0 32px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

@media (max-width: 1023px) {
    .dash .act-filters {
        padding: 14px var(--dash-gutter) 12px;
    }

    .dash .act-search {
        width: auto;
    }

    .dash .act-empty {
        margin-inline: var(--dash-gutter);
    }

    .dash .act-table tr > :first-child,
    .dash .act-day th {
        padding-left: var(--dash-gutter);
    }

    .dash .act-table tr > :last-child {
        padding-right: var(--dash-gutter);
    }

    .dash .act-more {
        padding-inline: var(--dash-gutter);
    }

    .dash .act-ghost-row {
        padding-inline: var(--dash-gutter);
    }

    .dash .act-drawer {
        position: fixed;
        inset: var(--dash-head-h) 0 0;
        z-index: 50;
    }

    .dash .act-drawer-panel {
        inset: 0;
        width: auto;
        max-width: none;
    }

    .dash .act-drawer-panel > .act-inspector {
        border-radius: 0;
    }
}

@media (max-width: 640px) {
    .dash .act-count {
        width: 100%;
        margin-left: 0;
    }

    .dash .act-figures .screen-figure,
    .dash .act-figures .screen-figure + .screen-figure {
        padding: 10px 12px 10px 0;
    }

    .dash .act-figures .screen-figure:nth-child(even) {
        padding-left: 14px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .dash .act-scrim {
        animation: act-fade-in 320ms var(--ease-std) both;
    }

    .dash .act-drawer-panel {
        animation: act-panel-in 260ms var(--ease-out) both;
    }

    .dash .act-drawer-panel > .act-inspector {
        animation: content-in 180ms var(--ease-std) both;
    }

    .dash .act-drawer.is-leaving .act-scrim {
        animation: act-fade-out 180ms var(--ease-in) both;
    }

    .dash .act-drawer.is-leaving .act-drawer-panel {
        animation: act-panel-out 180ms var(--ease-in) both;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dash .act-scrim,
    .dash .act-drawer-panel {
        animation: act-fade-in 160ms linear both;
    }

    .dash .act-drawer.is-leaving .act-scrim,
    .dash .act-drawer.is-leaving .act-drawer-panel {
        animation: act-fade-out 160ms linear both;
    }
}

@keyframes act-fade-in {
    from { opacity: 0; }
}

@keyframes act-fade-out {
    to { opacity: 0; }
}

@keyframes act-panel-in {
    from { transform: translateX(calc(100% + 24px)); }
}

@keyframes act-panel-out {
    to { transform: translateX(calc(100% + 24px)); }
}

@media (pointer: coarse) {
    .dash :is(.act-tab, .act-linked-item, .act-count-clear) {
        min-width: 44px;
        min-height: 44px;
    }
}
