@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');

/* Start Tokens */

:root,
:root[data-theme="light"] {
    --dash-brand: #9c8040;
    --dash-brand-strong: #8a7034;
    --dash-brand-rgb: 156, 128, 64;
    --dash-on-brand: #1c1c1c;

    --dash-bg: #ffffff;
    --dash-panel: #f9f9fb;
    --dash-panel-soft: #f4f4f7;
    --dash-hover: #ededf1;
    --dash-active: #ffffff;
    --dash-border: #ececef;
    --dash-border-strong: #dcdce1;
    --dash-text: #18181b;
    --dash-text-soft: #5f5d57;
    --dash-muted: #7c7a73;
    --dash-shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.06);
    --dash-shadow-lg: 0 24px 48px -16px rgba(16, 24, 40, 0.18);
    --dash-success: #1f9d55;
    --dash-success-bg: rgba(31, 157, 85, 0.1);
    --dash-danger: #d14343;
    --dash-chip-bg: #f2f0ea;
    --dash-chip-color: #7d6630;

    --dash-rail-width: 72px;
    --dash-aside-width: 264px;
    --dash-radius: 20px;
    --dash-radius-sm: 12px;
    --dash-ease: cubic-bezier(.16, 1, .3, 1);
    color-scheme: light;
}

/* End Tokens */

/* Start Base */

*,
*::before,
*::after {
    box-sizing: border-box;
    scrollbar-color: var(--dash-border) transparent;
    scrollbar-width: thin;
}

html,
body.dash_body {
    height: 100%;
}

body.dash_body {
    margin: 0;
    background: var(--dash-bg);
    color: var(--dash-text);
    font-family: "Outfit", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

html[dir="rtl"] * {
    font-family: "Cairo", sans-serif;
}

/* a placeholder takes the field's font, and on an Arabic page an empty field reads right to left
   (an empty field counts as left to right, so the hint came out mirrored); typed text still picks its own direction */
.dash_body ::placeholder {
    font-family: inherit;
    opacity: 1;
}

.dash_body a {
    color: inherit;
    text-decoration: none;
}

code {
    background: var(--dash-bg) !important;
}

:where(.dash_body) :where(h1, h2, h3) {
    margin: 0;
    color: var(--dash-text);
    font-weight: 500;
    line-height: 1.2;
}

:where(.dash_body) :where(p) {
    margin: 0;
}

.dash_body .icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke-width: 1.7;
}

/* no blue focus rings anywhere: no browser outline, no aous-aw focus shadow.
   Fields show the soft gold border of their own :focus style instead. */
.dash_body *:focus,
.dash_body *:focus-visible {
    outline: none !important;
}

.dash_body .form-control:focus {
    border-color: rgba(var(--dash-brand-rgb), 0.6);
    box-shadow: 0 0 0 3px rgba(var(--dash-brand-rgb), 0.12);
}

/* End Base */

/* Start App Shell: rail | aside | content */

.dash_app {
    display: flex;
    height: 100vh;
    height: 100dvh;
}

.dash_shell {
    position: relative;
    display: flex;
    flex: 1;
    min-width: 0;
    margin: 8px 0;
    margin-inline-start: 0;
    overflow: hidden;
    border-radius: var(--dash-radius);
    background: var(--dash-panel);
    border: 1px solid var(--dash-border);
    box-shadow: var(--dash-shadow);
}

/* End App Shell */

/* Start Rail */

.dash_rail_logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 18px;
    border-radius: 13px;
    background: #1f1f1f;
    box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.45);
}

.dash_rail_logo img {
    width: auto;
    height: 20px;
}

.dash_rail_bottom {
    margin-top: auto;
}

.dash_rail_item:hover {
    background: var(--dash-hover);
    color: var(--dash-text);
}

.dash_rail_item.active {
    background: var(--dash-active);
    color: var(--dash-text);
    box-shadow: var(--dash-shadow);
}

.dash_rail_item.is_soon {
    opacity: .45;
    cursor: default;
}

.dash_rail_item.is_soon:hover {
    background: transparent;
}

/* tooltip */
.dash_rail_item::after {
    content: attr(data-label);
    position: absolute;
    top: 50%;
    inset-inline-start: calc(100% + 12px);
    z-index: 50;
    padding: 6px 10px;
    border-radius: 8px;
    background: #1f1f1f;
    color: #fff;
    font-size: .8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translate(-4px, -50%);
    transition: opacity .15s ease, transform .2s var(--dash-ease);
}

html[dir="rtl"] .dash_rail_item::after {
    transform: translate(4px, -50%);
}

.dash_rail_item:hover::after {
    opacity: 1;
    transform: translate(0, -50%);
}

.dash_theme_dark,
:root[data-theme="dark"] .dash_theme_light {
    display: none;
}

:root[data-theme="dark"] .dash_theme_dark {
    display: inline-flex;
}

/* expandable menu: icons → labels (hover peeks over the page, the pin keeps it open) */
.dash_rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: var(--dash-rail-width);
    position: relative;
    z-index: 70;
    padding: 0;
    transition: width .3s var(--dash-ease);
}

.dash_rail_panel {
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    display: flex;
    flex-direction: column;
    width: var(--dash-rail-width);
    padding: 14px 10px 12px;
    background: var(--dash-bg);
    border-radius: 0 var(--dash-radius) var(--dash-radius) 0;
    transition: width .28s var(--dash-ease), box-shadow .28s ease;
}

html[dir="rtl"] .dash_rail_panel {
    border-radius: var(--dash-radius) 0 0 var(--dash-radius);
}

.dash_rail_head {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 20px;
}

.dash_rail_head .dash_rail_logo {
    flex-shrink: 0;
    margin-bottom: 0;
}

.dash_rail_expand {
    display: none;
}

@media (min-width: 992px) {

    /* narrow: only the logo, in line with the icons below; on hover the open button takes its place */
    html:not(.rail_pinned) .dash_rail_head {
        position: relative;
        justify-content: center;
    }

    html:not(.rail_pinned) .dash_rail_head :is(.dash_rail_brand, .dash_rail_bell, .dash_rail_pin) {
        display: none;
    }

    html:not(.rail_pinned) .dash_rail_expand {
        position: absolute;
        top: 50%;
        left: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border: none;
        border-radius: 13px;
        background: var(--dash-hover);
        color: var(--dash-text);
        opacity: 0;
        transform: translate(-50%, -50%);
        transition: opacity .15s ease;
        cursor: pointer;
    }

    html:not(.rail_pinned) .dash_rail_expand .icon {
        width: 19px;
        height: 19px;
    }

    html:not(.rail_pinned) .dash_rail_head:hover .dash_rail_expand,
    html:not(.rail_pinned) .dash_rail_expand:focus-visible {
        opacity: 1;
    }

    html:not(.rail_pinned) .dash_rail_head:hover .dash_rail_logo {
        opacity: 0;
    }
}

.dash_rail_brand {
    flex: 1;
    overflow: hidden;
    font-weight: 600;
    white-space: nowrap;
}

.dash_rail_pin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: var(--dash-muted);
    cursor: pointer;
}

.dash_rail_pin .icon {
    width: 17px;
    height: 17px;
}

.dash_rail_pin:hover {
    background: var(--dash-hover);
    color: var(--dash-text);
}

.rail_pinned .dash_rail_pin:not(.dash_rail_bell) {
    background: var(--dash-active);
    color: var(--dash-chip-color);
    box-shadow: var(--dash-shadow);
}

.dash_rail_group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: stretch;
}

.dash_rail_item {
    position: relative;
    border-radius: 12px;
    background: transparent;
    color: var(--dash-text-soft);
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
    display: inline-flex;
    align-items: center;
    height: 38px;
    border: none;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    padding: 0 16px;
}

.dash_rail_item>.icon,
.dash_rail_item>span>.icon {
    flex-shrink: 0;
}

.dash_rail_item>.icon {
    width: 18px;
    height: 18px;
}

.dash_rail_label,
.dash_rail_brand,
.dash_rail_pin {
    opacity: 0;
    visibility: hidden;
    transition: opacity .15s ease, visibility .15s;
}

.dash_rail_label {
    overflow: hidden;
    font-size: .85rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

html[dir="rtl"] .dash_rail_label {
    font-size: .85rem;
}

.dash_rail_item.active .dash_rail_label {
    font-weight: 500;
}

.dash_rail .dash_user {
    width: 100%;
}

.dash_rail .dash_user_btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 3px;
    border-radius: 12px;
    color: var(--dash-text);
    font: inherit;
    text-align: start;
}

.dash_rail .dash_user_btn .dash_online {
    inset-inline-start: 31px;
    inset-inline-end: auto;
    bottom: 3px;
}

/* open only when pinned: narrow, the items show their name as a tooltip on hover */
@media (min-width: 992px) {
    .rail_pinned .dash_rail {
        width: var(--dash-rail-open-width);
    }

    .rail_pinned .dash_rail_panel,
    .rail_pinned .dash_rail:hover .dash_rail_panel {
        width: var(--dash-rail-open-width);
        box-shadow: none;
        transition-delay: 0s;
    }

    .rail_pinned .dash_rail :is(.dash_rail_label, .dash_rail_brand, .dash_rail_pin) {
        opacity: 1;
        visibility: visible;
        transition-delay: 0s;
    }

    /* labels replace the tooltips while open */
    .rail_pinned .dash_rail_item::after {
        display: none;
    }

    .rail_pinned .dash_rail_item:hover {
        background: var(--dash-hover);
    }

    .rail_pinned .dash_rail_item .dash_rail_badge {
        top: 50%;
        inset-inline-end: 10px;
        transform: translateY(-50%);
        box-shadow: none;
    }
}

/* End Rail */

/* Start User Menu */

.dash_user {
    position: relative;
    margin-top: 4px;
}

.dash_user_btn {
    position: relative;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: none;
    cursor: pointer;
}

.dash_avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--dash-on-brand);
    font-size: .9rem;
    font-weight: 600;
    background: var(--dash-brand);
}

.dash_avatar.large {
    width: 42px;
    height: 42px;
}

.dash_avatar.xl {
    width: 52px;
    height: 52px;
    font-size: 1.2rem;
}

.dash_online {
    position: absolute;
    bottom: 0;
    inset-inline-end: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid var(--dash-bg);
}

.dash_user.open .dash_user_menu {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.dash_user_head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 8px 12px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--dash-border);
}

.dash_user_head strong {
    display: block;
    font-size: .92rem;
    font-weight: 500;
}

.dash_user_head small {
    display: block;
    color: var(--dash-muted);
    font-size: .8rem;
    word-break: break-all;
}

.dash_user_menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 10px;
    color: var(--dash-text);
    font-size: .9rem;
}

.dash_user_menu a:hover {
    background: var(--dash-hover);
}

.dash_user_menu a .icon {
    width: 18px;
    height: 18px;
    color: var(--dash-muted);
}

.dash_user_menu a.is_danger,
.dash_user_menu a.is_danger .icon {
    color: var(--dash-danger);
}

/* the account menu (avatar): grouped like ChatGPT's, the theme as a switch inside it */
.dash_user_menu {
    padding: 6px;
    border-radius: 16px;
    background: var(--dash-panel);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    position: absolute;
    bottom: 0;
    inset-inline-start: calc(100% + 14px);
    z-index: 60;
    border: 1px solid var(--dash-border);
    box-shadow: var(--dash-shadow-lg);
    transition: opacity .2s ease, transform .25s var(--dash-ease), visibility .2s;
    min-width: 280px;
}

.dash_user_btn.is_active .dash_avatar {
    box-shadow: 0 0 0 2px var(--dash-panel), 0 0 0 4px rgba(var(--dash-brand-rgb), 0.7);
}

.dash_rail .dash_rail_label small {
    display: block;
    color: var(--dash-muted);
    font-size: .74rem;
}

.dash_user_menu .dash_user_head {
    padding: 8px 10px;
    margin: 0;
    border: 0;
    border-radius: 12px;
}

.dash_user_menu .dash_user_head:hover {
    background: var(--dash-hover);
}

.dash_user_who {
    flex: 1;
    min-width: 0;
}

.dash_user_who small {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    word-break: normal;
}

.dash_user_head>.icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: var(--dash-muted);
}

html[dir="rtl"] .dash_user_head>.icon {
    transform: scaleX(-1);
}

.dash_user_group {
    padding-top: 4px;
    margin-top: 4px;
    border-top: 1px solid var(--dash-border);
}

.dash_user_meta {
    margin-inline-start: auto;
    color: var(--dash-muted);
    font-size: .8rem;
    font-variant-numeric: tabular-nums;
    display: flex;
    align-items: center;
    gap: 4px;
}

.dash_user_theme {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 10px;
    border: 0;
    border-radius: 10px;
    background: none;
    color: var(--dash-text);
    font: inherit;
    font-size: .9rem;
    text-align: start;
    cursor: pointer;
}

.dash_user_theme:hover {
    background: var(--dash-hover);
}

.dash_user_theme .icon {
    width: 18px;
    height: 18px;
    color: var(--dash-muted);
}

/* a small switch that follows the theme */
.dash_user_switch {
    position: relative;
    flex-shrink: 0;
    width: 32px;
    height: 18px;
    margin-inline-start: auto;
    border-radius: 100px;
    background: var(--dash-border-strong);
    transition: background-color .2s ease;
}

.dash_user_switch::after {
    content: "";
    position: absolute;
    top: 2px;
    inset-inline-start: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    transition: transform .2s var(--dash-ease);
}

.dash_user_sub_arrow {
    display: inline-flex;
    margin-inline-start: auto;
    transition: transform .2s var(--dash-ease);
}

.dash_user_sub_arrow .icon {
    width: 16px !important;
    height: 16px !important;
}

[data-user-sub][aria-expanded="true"] .dash_user_sub_arrow {
    transform: rotate(180deg);
}

.dash_user_sub_items {
    padding-inline-start: 28px;
}

.dash_user_lang {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 6px 10px;
    border: 0;
    border-radius: 10px;
    background: none;
    color: var(--dash-text);
    font: inherit;
    font-size: .85rem;
    text-align: start;
    cursor: pointer;
}

.dash_user_lang:hover {
    background: var(--dash-hover);
}

.dash_user_lang.is_current {
    font-weight: 600;
}

.dash_user_lang .icon {
    width: 16px;
    height: 16px;
    color: var(--dash-brand);
}

.dash_user_sub_items[hidden] {
    display: none;
}

[data-theme="dark"] .dash_user_switch {
    background: var(--dash-brand);
}

[data-theme="dark"] .dash_user_switch::after {
    transform: translateX(14px);
}

html[dir="rtl"][data-theme="dark"] .dash_user_switch::after {
    transform: translateX(-14px);
}

/* End User Menu */

/* Start Aside */

.dash_aside {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    width: var(--dash-aside-width);
    padding: 18px 14px;
    overflow-y: auto;
    background: var(--dash-panel);
    border-inline-end: 1px solid var(--dash-border);
    transition: margin .35s var(--dash-ease), opacity .25s ease;
}

.aside_collapsed .dash_aside {
    margin-inline-start: calc(var(--dash-aside-width) * -1);
    opacity: 0;
}

.dash_aside_head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 14px;
    padding: 0 4px;
}

.dash_aside_head h2 {
    font-size: 0.95rem;
    font-weight: 500;
}

.dash_icon_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--dash-text-soft);
    cursor: pointer;
}

.dash_icon_btn:hover {
    background: var(--dash-hover);
    color: var(--dash-text);
}

.dash_icon_btn .icon {
    width: 19px;
    height: 19px;
}

.dash_aside_close {
    display: none;
}

.dash_search {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    margin-bottom: 16px;
    padding: 0 12px;
    border-radius: var(--dash-radius-sm);
    background: var(--dash-panel);
    border: 1px solid var(--dash-border-strong);
    color: var(--dash-muted);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.dash_search:focus-within {
    border-color: rgba(var(--dash-brand-rgb), 0.7);
    box-shadow: 0 0 0 3px rgba(var(--dash-brand-rgb), 0.15);
}

.dash_search .icon {
    width: 17px;
    height: 17px;
}

.dash_search input {
    flex: 1;
    min-width: 0;
    border: none;
    background: none;
    color: var(--dash-text);
    font: inherit;
    font-size: .9rem;
    outline: none;
}

.dash_search input::placeholder {
    color: var(--dash-muted);
}

.dash_aside_group {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 18px;
}

.dash_aside_group_title {
    padding: 0 10px 6px;
    color: var(--dash-muted);
    font-size: .8rem;
}

.dash_aside_item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 10px;
    border: 1px solid transparent;
    color: var(--dash-text-soft);
    font-size: .86rem;
    transition: background-color .2s ease, color .2s ease;
}

.dash_aside_item>span {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 0.85rem;
}

html[dir="rtl"] .dash_aside_item>span {
    font-size: 0.83rem;
}

.dash_aside_item .icon {
    width: 18px;
    height: 18px;
}

a.dash_aside_item:hover {
    background: var(--dash-hover);
    color: var(--dash-text);
}

.dash_aside_item.active {
    background: var(--dash-panel-soft);
    border-color: var(--dash-border);
    color: var(--dash-text);
    box-shadow: var(--dash-shadow);
}

.dash_aside_item.is_soon {
    color: var(--dash-muted);
}

.dash_aside_group[hidden],
.dash_aside_item[hidden] {
    display: none;
}

.dash_count,
.dash_soon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
    background: var(--dash-hover);
    color: var(--dash-text-soft);
    font-size: .78rem;
    font-weight: 500;
}

.dash_soon {
    background: var(--dash-chip-bg);
    color: var(--dash-chip-color);
}

.dash_aside_overlay {
    display: none;
}

/* End Aside */

/* Start Main */

.dash_topbar {
    display: none;
}

.dash_main {
    flex: 1;
    min-width: 0;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    position: relative;
}

.dash_aside_reopen {
    position: absolute;
    top: 18px;
    inset-inline-start: 14px;
    z-index: 5;
    display: none;
}

.aside_collapsed .dash_aside_reopen {
    display: inline-flex;
}

.aside_collapsed .dash_content {
    padding-inline-start: 64px;
}

.dash_content {
    max-width: 1240px;
    padding: 36px 36px 56px;
}

.dash_page_head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}

.dash_page_head h1 {
    font-size: 1.3rem;
    letter-spacing: -.02em;
    margin-bottom: 0;
}

.dash_page_head p {
    max-width: 560px;
    margin-top: 6px;
    color: var(--dash-text-soft);
    margin-bottom: 0;
}

.dash_page_head .dash_search {
    margin-bottom: 0;
}

.dash_page_actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.dash_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 39px;
    padding: 0 18px;
    border-radius: var(--dash-radius-sm);
    border: 1px solid var(--dash-border-strong);
    background: var(--dash-panel);
    color: var(--dash-text);
    font: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.dash_btn:hover {
    background: var(--dash-hover);
}

.dash_btn .icon {
    width: 18px;
    height: 18px;
}

.dash_btn_primary {
    background: var(--dash-brand);
    border-color: var(--dash-brand);
    color: var(--dash-on-brand) !important;
    box-shadow: 0 8px 20px -10px rgba(var(--dash-brand-rgb), 0.9);
}

.dash_btn_primary:hover {
    background: var(--dash-brand-strong);
}

.dash_section {
    margin-bottom: 28px;
}

.dash_section_title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.dash_section_title h2 {
    font-size: 1.1rem;
}

/* End Main */

/* Start Components */

.dash_card {
    padding: 1rem;
    border-radius: 18px;
    background: var(--dash-panel);
    border: 1px solid var(--dash-border);
    box-shadow: var(--dash-shadow);
}

/* a card's own title, inside it at the top (account/components/card_title) */
.dash_card_title {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 16px 0 14px;
    border-bottom: 1px solid var(--dash-border);
}

.dash_card:not(.dash_list_card)>.dash_card_title {
    padding-top: 0;
}

.dash_card_title h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.dash_card_title p {
    margin: 0;
    color: var(--dash-muted);
    font-size: .85rem;
}

/* a settings page of cards, one under the other, as wide as its forms */
.notify_page {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 920px;
    margin-bottom: 28px;
}

.dash_card_head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}

.dash_card_head h3 {
    font-size: 1.1rem;
}

.dash_card_head small {
    color: var(--dash-muted);
    font-size: .85rem;
}

.dash_chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: var(--dash-chip-bg);
    color: var(--dash-chip-color);
}

.dash_chip .icon {
    width: 18px;
    height: 18px;
}

.dash_chip.large {
    width: 42px;
    height: 42px;
    border-radius: 12px;
}

.dash_chip.large .icon {
    width: 21px;
    height: 21px;
}

.dash_badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 100px;
    background: var(--dash-hover);
    border: 1px solid var(--dash-border);
    color: var(--dash-text-soft);
    font-size: .76rem;
    font-weight: 500;
    white-space: nowrap;
}

.dash_badge.is_success {
    background: var(--dash-success-bg);
    border-color: transparent;
    color: var(--dash-success);
}

.dash_badge.is_brand {
    background: var(--dash-chip-bg);
    border-color: transparent;
    color: var(--dash-chip-color);
}

/* stats */
.dash_stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.dash_stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 18px;
}

.dash_stat .dash_chip {
    margin-bottom: 12px;
}

.dash_stat small {
    color: var(--dash-muted);
    font-size: .85rem;
}

.dash_stat strong {
    font-size: 1.7rem;
    font-weight: 500;
    line-height: 1.2;
}

/* two columns */
.dash_columns {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 14px;
    align-items: start;
}

.dash_side {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* progress ring */
.dash_ring {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 58px;
    height: 58px;
}

.dash_ring svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.dash_ring circle {
    fill: none;
    stroke-width: 3.5;
    stroke-dasharray: 100.53;
    stroke-linecap: round;
}

.dash_ring circle:first-child {
    stroke: var(--dash-hover);
    stroke-dashoffset: 0;
}

.dash_ring circle:last-child {
    stroke: var(--dash-brand);
    stroke-dashoffset: calc(100.53 * (1 - var(--progress, 0)));
    animation: dashRingFill 1.2s var(--dash-ease) both .2s;
}

@keyframes dashRingFill {
    from {
        stroke-dashoffset: 100.53;
    }
}

.dash_ring b {
    font-size: .8rem;
    font-weight: 600;
}

/* setup steps */
.dash_activity_list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dash_activity_list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-block: 16px;
    border-top: 1px solid var(--dash-border);
}

.dash_activity_list a {
    flex: 1;
    min-width: 0;
    color: var(--dash-text);
}

.dash_activity_list strong,
.dash_activity_list small {
    display: block;
    overflow-wrap: anywhere;
}

.dash_activity_list small {
    color: var(--dash-muted);
    margin-top: 4px;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dash_activity_list time {
    color: var(--dash-muted);
    font-size: .76rem;
    max-width: 25%;
    text-align: end;
}

.dash_activity_placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    padding-block: 32px;
    color: var(--dash-muted);
}

.dash_activity_placeholder>.icon {
    width: 40px;
    height: 40px;
}

.dash_activity_placeholder p {
    margin: 0;
}

.dash_current_model>small,
.dash_current_model>p {
    color: var(--dash-muted);
}

.dash_current_model h3 {
    margin-block: 8px;
    overflow-wrap: anywhere;
}

.dash_current_model>p {
    margin-block: 0 18px;
}

.dash_steps {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dash_steps li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-top: 1px solid var(--dash-border);
}

.dash_steps li>div {
    flex: 1;
    min-width: 0;
}

.dash_setup_action {
    flex-shrink: 0;
    max-width: 40%;
}

.dash_setup_action .dash_btn {
    height: auto;
    min-height: 34px;
    padding-block: 7px;
    white-space: normal;
}

.dash_steps strong {
    display: block;
    font-weight: 500;
}

.dash_steps small {
    color: var(--dash-muted);
    font-size: .86rem;
}

.dash_steps li.is_done .dash_chip {
    background: var(--dash-success-bg);
    color: var(--dash-success);
}

.dash_steps li.is_done strong {
    color: var(--dash-muted);
    text-decoration: line-through;
}

/* account card */
.dash_account_head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.dash_account_head strong {
    display: block;
    font-size: 1.02rem;
    font-weight: 500;
}

.dash_account_head small {
    color: var(--dash-muted);
    font-size: .85rem;
    word-break: break-all;
}

.dash_rows {
    margin: 0;
}

.dash_rows>div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--dash-border);
}

.dash_rows dt {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--dash-text-soft);
    font-weight: 400;
}

.dash_rows dt .icon {
    width: 17px;
    height: 17px;
    color: var(--dash-muted);
}

.dash_rows dd {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    margin: 0;
    font-size: .9rem;
}

.dash_rows dd small {
    color: var(--dash-muted);
    font-size: .78rem;
}

/* empty state */
.dash_empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 22px;
    border-radius: 12px;
    text-align: center;
    background: var(--dash-panel-soft);
    border-style: dashed;
    border-color: var(--dash-border);
    border-width: 2.5px;
    box-shadow: none;
}

.dash_empty h3 {
    margin-top: 14px;
    font-size: 1rem;
}

.dash_empty p {
    max-width: 280px;
    margin-top: 6px;
    color: var(--dash-muted);
    font-size: .88rem;
}

/* End Components */

/* Start Aside: a menu inside the menu */

button.dash_aside_item {
    width: 100%;
    background: none;
    font: inherit;
    text-align: start;
    cursor: pointer;
}

button.dash_aside_item:hover {
    background: var(--dash-hover);
    color: var(--dash-text);
}

.dash_aside_item.has_active {
    color: var(--dash-text);
    font-weight: 500;
}

.dash_aside_chevron {
    width: 15px !important;
    height: 15px !important;
    color: var(--dash-muted);
    transition: transform .25s var(--dash-ease);
}

.dash_aside_parent.open .dash_aside_chevron {
    transform: rotate(180deg);
}

.dash_aside_children {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .3s var(--dash-ease);
}

.dash_aside_parent.open .dash_aside_children {
    grid-template-rows: 1fr;
}

.dash_aside_children>div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-height: 0;
    overflow: hidden;
    margin-inline-start: 19px;
    padding-inline-start: 12px;
    border-inline-start: 1px solid var(--dash-border-strong);
}

.dash_aside_parent.open .dash_aside_children>div {
    padding-block: 4px;
}

.dash_aside_child {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 9px;
    border: 1px solid transparent;
    color: var(--dash-text-soft);
    font-size: .9rem;
    transition: background-color .2s ease, color .2s ease;
}

.dash_aside_child>span {
    flex: 1;
    font-size: 0.86rem;
}

.dash_aside_child:hover {
    background: var(--dash-hover);
    color: var(--dash-text);
}

.dash_aside_child.active {
    background: var(--dash-panel-soft);
    border-color: var(--dash-border);
    color: var(--dash-text);
    font-weight: 500;
    box-shadow: var(--dash-shadow);
}

.dash_aside_parent[hidden],
.dash_aside_child[hidden] {
    display: none;
}

.dash_aside_end {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--dash-border);
}

.dash_aside_menu {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.dash_aside_item.is_danger,
.dash_aside_item.is_danger .icon {
    color: var(--dash-danger);
}

/* End Aside: a menu inside the menu */

/* Start Buttons & Fields */

.dash_btn_small {
    height: 34px;
    padding: 0 14px;
    font-size: .85rem;
}

.dash_btn:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none !important;
}

.dash_btn_danger {
    background: var(--dash-danger);
    border-color: var(--dash-danger);
    color: #fff !important;
}

.dash_btn_danger:hover {
    background: var(--dash-danger);
    filter: brightness(.95);
}

.dash_form {
    max-width: 920px;
    margin-bottom: 28px;
    border-top: 1px solid var(--dash-border);
}

.dash_form_row {
    display: grid;
    grid-template-columns: minmax(200px, 1fr) 1.6fr;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid var(--dash-border);
}

.dash_form_label strong {
    display: block;
    font-weight: 500;
}

.dash_form_label em {
    color: var(--dash-muted);
    font-style: normal;
    font-weight: 400;
}

.dash_form_label small {
    display: block;
    margin-top: 2px;
    color: var(--dash-muted);
    font-size: .86rem;
}

.dash_form_control {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.dash_static {
    justify-content: center;
    color: var(--dash-text-soft);
}

.dash_label {
    margin-top: 8px;
    color: var(--dash-text-soft);
    font-size: .86rem;
}

.dash_label:first-child {
    margin-top: 0;
}

.dash_input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border-radius: var(--dash-radius-sm);
    border: 1px solid var(--dash-border-strong);
    background: var(--dash-panel);
    color: var(--dash-text);
    font: inherit;
    font-size: .95rem;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.plugin-dropdown_input.focus.dropdown-active .ts-control,
.dash_input:focus {
    outline: none;
    border-color: rgba(var(--dash-brand-rgb), 0.7);
    box-shadow: 0 0 0 3px rgba(var(--dash-brand-rgb), 0.15);
}

.dash_input:disabled {
    background: var(--dash-hover);
    color: var(--dash-muted);
}

select.dash_input {
    appearance: none;
    padding-inline-end: 40px;
    background-image: linear-gradient(45deg, transparent 50%, var(--dash-muted) 50%), linear-gradient(135deg, var(--dash-muted) 50%, transparent 50%);
    background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
    background-size: 5px 5px;
    background-repeat: no-repeat;
}

html[dir="rtl"] select.dash_input {
    background-position: 20px 50%, 15px 50%;
}

.dash_input_icon {
    position: relative;
}

.dash_input_icon .icon {
    position: absolute;
    top: 50%;
    inset-inline-start: 14px;
    width: 18px;
    height: 18px;
    color: var(--dash-chip-color);
    transform: translateY(-50%);
}

.dash_input_icon .dash_input {
    padding-inline-start: 42px;
}

.dash_error {
    color: var(--dash-danger);
    font-size: .82rem;
}

.dash_form_actions {
    display: flex;
    justify-content: flex-end;
    padding: 20px 0 0;
}

/* choice cards */
.dash_choice_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.dash_choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.dash_choice_box {
    display: flex;
    flex-direction: column;
    gap: 2px;
    height: 100%;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid var(--dash-border-strong);
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.dash_choice_box .dash_chip {
    margin-bottom: 8px;
}

.dash_choice_box strong {
    font-weight: 500;
}

.dash_choice_box small {
    color: var(--dash-muted);
    font-size: .8rem;
    line-height: 1.4;
}

.dash_choice_box:hover {
    background: var(--dash-hover);
}

.dash_choice input:focus-visible+.dash_choice_box {
    outline: 2px solid var(--dash-brand);
}

/* switches */
.dash_list_card {
    padding: 4px 20px;
}

.dash_toggle_row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 0;
    cursor: pointer;
}

.dash_toggle_row:first-child {
    border-top: none;
}

.dash_toggle_text {
    flex: 1;
    min-width: 0;
}

.dash_toggle_text strong {
    display: block;
    font-weight: 500;
}

.dash_toggle_text small {
    color: var(--dash-muted);
    font-size: .82rem;
}

.dash_switch {
    position: relative;
    flex-shrink: 0;
    width: 42px;
    height: 24px;
    margin: 0;
    border-radius: 100px;
    background: var(--dash-border-strong);
    appearance: none;
    cursor: pointer;
    transition: background-color .25s ease;
}

.dash_switch::after {
    content: "";
    position: absolute;
    top: 3px;
    inset-inline-start: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform .25s var(--dash-ease);
}

.dash_switch:checked {
    background: var(--dash-brand);
}

.dash_switch:checked::after {
    transform: translateX(18px);
}

html[dir="rtl"] .dash_switch:checked::after {
    transform: translateX(-18px);
}

/* every checkbox carries .form-check-input: the framework's look, fitted to the dashboard (no float / negative margin outside .form-check, brand colors) */
.form-check-input {
    float: none;
    flex-shrink: 0;
    width: 17px;
    height: 17px;
    margin: 0;
    border: 1.5px solid var(--dash-border-strong);
    border-radius: 5px;
    --aous-aw-form-check-bg: var(--dash-panel);
    vertical-align: middle;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--dash-brand);
    border-color: var(--dash-brand);
}

/* a radio is round; the tick and the dot in the identity's dark ink on the gold, like the gold buttons' text */
.form-check-input[type="radio"] {
    border-radius: 50%;
}

.form-check-input:checked[type="checkbox"]:not(.dash_switch) {
    --aous-aw-form-check-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%231c1c1c' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}

.form-check-input:checked[type="radio"] {
    --aous-aw-form-check-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%231c1c1c'/%3e%3c/svg%3e");
}

.form-check-input:disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* a checkbox hidden behind its own pill or card stays hidden when it is disabled too (the framework's :disabled opacity would show it) */
:is(.dash_choice,
    .task_priority_pill,
    .agent_avatar_pick,
    .ai_pay_switch,
    .ai_model_row,
    .ai_model_option,
    .dash_check_pill,
    .dash_type_option,
    .inbox_check,
    .acall_voice,
    .setup_segment,
    .fin_dir_option,
    .fin_scope,
    .routine_days,
    .routine_channels,
    .summary_sections,
    .phone_step_types,
    .phone_sim_ways,
    .phone_sms_from,
    .topup_package) input.form-check-input {
    opacity: 0;
}

.form-check-input:focus {
    border-color: var(--dash-brand);
    box-shadow: 0 0 0 3px rgba(var(--dash-brand-rgb), 0.2);
}

.form-check .form-check-input {
    margin-top: .2rem;
    margin-inline-start: -1.5rem;
}

/* the toggles keep their own shape */
.form-check-input.dash_switch {
    width: 42px;
    height: 24px;
    border: 0;
    border-radius: 100px;
    background-color: var(--dash-border-strong);
    background-image: none;
}

.form-check-input.dash_switch:checked {
    background-color: var(--dash-brand);
}

.form-check-input.dash_switch:focus {
    box-shadow: 0 0 0 3px rgba(var(--dash-brand-rgb), 0.25);
}

/* Connect buttons while the sign-in popup is open */
.is_connecting {
    pointer-events: none;
    opacity: .85;
}

.oauth_spinner {
    display: inline-block;
    flex: 0 0 14px;
    box-sizing: border-box;
    width: 14px;
    height: 14px;
    margin-inline-end: 8px;
    border: 2px solid currentColor;
    border-inline-end-color: transparent;
    border-radius: 50%;
    vertical-align: -2px;
    animation: oauth_spin .7s linear infinite;
}

@keyframes oauth_spin {
    to {
        transform: rotate(360deg);
    }
}

.credits_history_foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

/* task → Google Calendar switch: the calendar's own color on the icon */
.task_calendar_toggle {
    grid-column: 1 / -1;
}

.task_calendar_toggle .dash_chip {
    flex-shrink: 0;
}

.task_calendar_dot {
    color: var(--calendar-color, var(--dash-chip-color));
}

.task_calendar_toggle.is_off .dash_btn {
    flex-shrink: 0;
}

/* password rules */
.dash_rules {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}

.dash_rules li {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--dash-muted);
    font-size: .78rem;
    background: var(--dash-border);
    padding: 4px 10px;
    border-radius: 6px;
}

.dash_rules .icon {
    width: 14px;
    height: 14px;
    stroke-width: 2.4;
    opacity: .35;
}

.dash_rules li.is_met {
    color: var(--dash-success);
}

.dash_rules li.is_met .icon {
    opacity: 1;
}

/* danger zone */
.dash_danger_zone {
    max-width: 920px;
    border-color: rgba(209, 67, 67, 0.3);
}

.dash_danger_head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.dash_danger_head strong {
    display: block;
    font-weight: 500;
}

.dash_danger_head small {
    color: var(--dash-muted);
    font-size: .86rem;
}

.dash_chip.is_danger {
    background: rgba(209, 67, 67, 0.1);
    color: var(--dash-danger);
}

.dash_danger_fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 16px;
}

.dash_danger_fields>div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dash_avatar.xxl {
    width: 76px;
    height: 76px;
    font-size: 2rem;
}

/* End Buttons & Fields */

/* Start Placeholder Page */

.dash_placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 560px;
    margin: 12px auto 0;
    padding: 0 0 40px;
    text-align: center;
}

.dash_placeholder_icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    border-radius: 22px;
    background: var(--dash-panel);
    border: 1px solid var(--dash-border);
    box-shadow: var(--dash-shadow-lg);
    color: var(--dash-chip-color);
}

.dash_placeholder_icon .icon {
    width: 34px;
    height: 34px;
    stroke-width: 1.4;
}

.dash_placeholder h2 {
    margin-top: 14px;
    font-size: 1.35rem;
}

.dash_placeholder>p {
    margin-top: 8px;
    color: var(--dash-text-soft);
}

.dash_placeholder_list {
    width: 100%;
    margin: 24px 0;
    padding: 16px 20px;
    border-radius: 16px;
    background: var(--dash-panel-soft);
    border: 1px solid var(--dash-border);
    text-align: start;
}

.dash_placeholder_list small {
    color: var(--dash-muted);
    font-size: .8rem;
}

.dash_placeholder_list ul {
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.dash_placeholder_list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    color: var(--dash-text);
    font-size: .93rem;
}

.dash_placeholder_list .icon {
    width: 17px;
    height: 17px;
    stroke-width: 2.2;
    color: var(--dash-success);
}

.dash_plan_card+.dash_page_head {
    margin-top: 40px;
}

/* End Placeholder Page */

/* Start Plan, Help, Integrations */

.dash_plan_main h2 {
    margin-top: 10px;
    font-size: 1.4rem;
}

.dash_plan_main p {
    max-width: 440px;
    margin-top: 6px;
    color: var(--dash-text-soft);
}

.dash_plan_days {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    min-width: 180px;
}

.dash_plan_days strong {
    font-size: 2.4rem;
    font-weight: 500;
    line-height: 1;
}

.dash_plan_days small {
    color: var(--dash-muted);
    font-size: .82rem;
}

.dash_plan_bar {
    width: 100%;
    height: 6px;
    margin: 6px 0 2px;
    overflow: hidden;
    border-radius: 6px;
    background: var(--dash-hover);
}

.dash_plan_bar i {
    display: block;
    width: calc(var(--left, 1) * 100%);
    height: 100%;
    border-radius: 6px;
    background: var(--dash-brand);
}

.dash_help_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.dash_help_card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: transform .25s var(--dash-ease), box-shadow .25s ease;
}

.dash_help_card:hover {
    transform: translateY(-2px);
    box-shadow: var(--dash-shadow-lg);
}

.dash_help_card .dash_chip {
    margin-bottom: 10px;
}

.dash_help_card strong {
    font-weight: 500;
}

.dash_help_card small {
    color: var(--dash-muted);
}

.dash_integrations_banner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 18px;
    display: none;
}

.dash_banner_card {
    position: relative;
    min-height: 200px;
    padding: 24px;
    overflow: hidden;
    border-radius: 20px;
    background: var(--dash-panel-soft);
    border: 1px solid var(--dash-border);
}

.dash_banner_card small {
    color: var(--dash-muted);
    font-size: .75rem;
    letter-spacing: .06em;
}

.dash_banner_card h2 {
    max-width: 360px;
    margin-top: 10px;
    font-size: 1.25rem;
}

.dash_banner_logos {
    display: flex;
    gap: 10px;
    margin-top: 28px;
}

.dash_banner_logos span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--dash-panel);
    border: 1px solid var(--dash-border);
    box-shadow: var(--dash-shadow);
    color: var(--dash-chip-color);
}

.dash_banner_logos .icon {
    width: 24px;
    height: 24px;
}

.dash_banner_card.is_glow {
    background: var(--dash-panel-soft);
}

.dash_banner_tile {
    position: absolute;
    bottom: 22px;
    inset-inline-end: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 92px;
    height: 92px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    box-shadow: 0 20px 40px -16px rgba(var(--dash-brand-rgb), 0.6);
    color: var(--dash-chip-color);
}

:root[data-theme="dark"] .dash_banner_tile {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.dash_banner_tile .icon {
    width: 40px;
    height: 40px;
    stroke-width: 1.4;
}

.dash_tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 16px;
    padding: 4px;
    border-radius: 14px;
    background: var(--dash-panel-soft);
    border: 1px solid var(--dash-border);
}

.dash_tab {
    padding: 6px 14px;
    border: none;
    border-radius: 10px;
    background: none;
    color: var(--dash-text-soft);
    font: inherit;
    font-size: .9rem;
    cursor: pointer;
}

.dash_tab:hover {
    color: var(--dash-text);
}

.dash_tab.active {
    background: var(--dash-panel);
    color: var(--dash-text);
    box-shadow: var(--dash-shadow);
}

.dash_integration_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.dash_integration {
    display: flex;
    flex-direction: column;
}

.dash_integration[hidden] {
    display: none;
}

.dash_integration_head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dash_integration_head strong {
    flex: 1;
    font-size: 0.92rem;
    font-weight: 500;
}

html[dir="rtl"] .dash_integration_head strong {
    font-size: 0.95rem;
}

.dash_integration p {
    flex: 1;
    margin: 14px 0 18px;
    color: var(--dash-text-soft);
    font-size: .9rem;
}

html[dir="rtl"] .dash_integration p {
    margin: 8px 0 18px;
}

.dash_integration .dash_btn {
    align-self: flex-start;
}

/* status: connected (green), needs attention (red), the AI the assistant runs on */
.dash_integration_badges {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.dash_integration_badges .dash_badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dash_dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.dash_dot.is_ok {
    background: #46c37d;
    box-shadow: 0 0 0 3px rgba(70, 195, 125, 0.18);
}

.dash_integration.is_broken {
    border-color: rgba(209, 67, 67, 0.4);
}

.dash_integration_actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dash_btn.is_ghost {
    border-color: transparent;
    background: transparent;
    color: var(--dash-text-soft);
}

.dash_btn.is_ghost:hover {
    color: var(--dash-text);
    background: var(--dash-hover);
}

.dash_tab_connected {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-inline-start: auto;
}

.dash_tab_connected b {
    font-weight: 600;
}

/* End Plan, Help, Integrations */

/* Start Welcome Modal */

.dash_welcome .modal-dialog {
    max-width: 640px;
}

.dash_welcome .modal-content {
    overflow: hidden;
    border: none;
    border-radius: 26px;
    background: var(--dash-panel);
    box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.5);
}

.dash_welcome.fade .modal-dialog {
    transform: translateY(24px) scale(.96);
    transition: transform .6s var(--dash-ease);
}

.dash_welcome.show .modal-dialog {
    transform: none;
}

.dash_welcome_sky {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 210px;
}

/* the gradient + grid fade out, the logo on top stays sharp */
.dash_welcome_sky::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--dash-panel-soft);
}

:root[data-theme="dark"] .dash_welcome_sky::before {
    background: var(--dash-panel-soft);
}

.dash_welcome_sky i {
    position: absolute;
    z-index: 1;
    top: var(--y);
    left: var(--x);
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 6px 1px rgba(255, 255, 255, 0.8);
    animation: dashTwinkle 2.4s ease-in-out infinite;
    animation-delay: var(--d);
}

@keyframes dashTwinkle {
    50% {
        opacity: .2;
        transform: scale(.6);
    }
}

.dash_welcome_logo {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    margin-bottom: 4px;
    border-radius: 28px;
    background: #1f1f1f;
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.6), 0 24px 40px -14px rgba(0, 0, 0, 0.45);
    animation: dashLogoIn .9s var(--dash-ease) both .25s;
}

:root[data-theme="dark"] .dash_welcome_logo {
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.08), 0 24px 40px -14px rgba(0, 0, 0, 0.6);
}

@keyframes dashLogoIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(.85);
    }
}

.dash_welcome_logo img {
    width: auto;
    height: 40px;
}

.dash_welcome_body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 40px 44px;
    text-align: center;
}

.dash_welcome_body h2 {
    font-size: 1.7rem;
    font-weight: 600;
    letter-spacing: -.02em;
}

.dash_welcome_body p {
    max-width: 460px;
    margin-top: 10px;
    color: var(--dash-text-soft);
    font-size: 1.02rem;
}

.dash_welcome_go {
    margin-top: 28px;
}

.dash_welcome_go .icon {
    transition: transform .25s ease;
}

.dash_welcome_go:hover .icon {
    transform: translateX(3px);
}

html[dir="rtl"] .dash_welcome_go .icon {
    transform: scaleX(-1);
}

.modal-backdrop.show {
    opacity: .95;
}

.modal-backdrop {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    --aous-aw-backdrop-bg: #262626;
}

/* End Welcome Modal */

/* Start Tasks */

.task_overdue_text {
    color: var(--dash-danger);
    font-weight: 500;
}

/* smart add */
.task_quick {
    margin-bottom: 26px;
}

.task_quick_field {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border-radius: 16px;
    border: 1px solid var(--dash-border-strong);
    background: var(--dash-panel);
    box-shadow: var(--dash-shadow);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.task_quick_field:focus-within {
    border-color: rgba(var(--dash-brand-rgb), 0.7);
    box-shadow: 0 0 0 4px rgba(var(--dash-brand-rgb), 0.14);
}

.task_quick_icon {
    display: inline-flex;
    color: var(--dash-chip-color);
}

.task_quick_field input {
    flex: 1;
    min-width: 0;
    height: 54px;
    border: none;
    background: none;
    color: var(--dash-text);
    font: inherit;
    font-size: 1rem;
}

.task_quick_field input:focus {
    outline: none;
}

.task_quick_field input::placeholder {
    color: var(--dash-muted);
}

.task_quick_kbd {
    padding: 2px 8px;
    border-radius: 7px;
    border: 1px solid var(--dash-border-strong);
    background: var(--dash-panel-soft);
    color: var(--dash-muted);
    font-family: inherit;
    font-size: .8rem;
    box-shadow: none;
}

.task_quick_preview {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
    padding-inline-start: 4px;
}

.task_parse_chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 100px;
    background: rgba(var(--dash-brand-rgb), 0.12);
    color: var(--dash-text);
    font-size: .82rem;
    animation: taskChipIn .25s var(--dash-ease);
}

.task_parse_chip b {
    color: var(--dash-chip-color);
    font-weight: 600;
}

.task_parse_chip.is_priority.level_3 {
    background: rgba(209, 67, 67, 0.12);
}

.task_parse_chip.is_priority.level_3 b {
    color: var(--dash-danger);
}

@keyframes taskChipIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
}

/* sections + rows */
.task_group {
    margin-top: 22px;
}

.task_group_title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    padding-inline: 4px;
    font-size: .92rem;
    font-weight: 600;
}

.task_group_title span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 20px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--dash-hover);
    color: var(--dash-text-soft);
    font-size: .74rem;
    font-weight: 600;
}

.task_group.is_overdue .task_group_title {
    color: var(--dash-danger);
}

.task_group.is_overdue .task_group_title span {
    background: rgba(209, 67, 67, .12);
    color: var(--dash-danger);
}

.task_list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.task_row {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    max-height: 400px;
    padding: 16px 16px 16px 18px;
    border-radius: 16px;
    border: 1px solid var(--dash-border);
    background: var(--dash-panel);
    cursor: pointer;
    transition: background-color .15s ease, opacity .35s ease, max-height .35s ease, padding .35s ease, translate .2s ease;
}

/* the list no longer clips (menus must open outside it), so the rows round their own corners */
.notify_item:first-child {
    border-start-start-radius: 8px;
    border-start-end-radius: 8px;
}

.notify_item:last-child {
    border-end-start-radius: 8px;
    border-end-end-radius: 8px;
}

.task_row:has(.contact_dropdown.open),
.notify_item:has(.contact_dropdown.open) {
    position: relative;
    z-index: 5;
}

.task_row:hover {
    background: var(--dash-panel-soft);
}

.task_row.priority_high {
    box-shadow: inset 3px 0 0 #d14343;
}

.task_row.priority_medium {
    box-shadow: inset 3px 0 0 #e09b2d;
}

html[dir="rtl"] .task_row.priority_high {
    box-shadow: inset -3px 0 0 #d14343;
}

html[dir="rtl"] .task_row.priority_medium {
    box-shadow: inset -3px 0 0 #e09b2d;
}

.task_row.is_done {
    cursor: default;
}

.task_row.is_done .task_title {
    color: var(--dash-muted);
    text-decoration: line-through;
}

.task_row.is_gone {
    max-height: 0;
    padding-block: 0;
    opacity: 0;
    border-width: 0;
}

.task_check {
    --task-ring: var(--dash-border-strong);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-top: 0;
    padding: 0;
    border-radius: 50%;
    border: 2px solid var(--task-ring);
    background: transparent;
    color: transparent;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, transform .2s var(--dash-ease);
}

.task_check .icon {
    width: 14px;
    height: 14px;
    stroke-width: 2.6;
}

.task_check:hover {
    color: var(--task-ring);
    background: color-mix(in srgb, var(--task-ring) 10%, transparent);
}

.priority_low .task_check {
    --task-ring: #4f8fd6;
}

.priority_medium .task_check {
    --task-ring: #e09b2d;
}

.priority_high .task_check {
    --task-ring: #d14343;
}

.task_check.is_checked,
.task_row.is_completing .task_check {
    border-color: var(--dash-brand);
    background: var(--dash-brand);
    color: #1f1f1f;
    transform: scale(1.08);
}

.task_row.is_completing .task_title {
    color: var(--dash-muted);
    text-decoration: line-through;
}

.task_body {
    flex: 1;
    min-width: 0;
}

.task_title {
    display: block;
    font-size: .98rem;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.task_notes {
    display: -webkit-box;
    margin: 3px 0 0;
    overflow: hidden;
    color: var(--dash-text-soft);
    font-size: .86rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.task_meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.task_meta:empty {
    display: none;
}

.task_chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--dash-hover);
    border: 0;
    color: var(--dash-text-soft);
    font-size: .78rem;
    font-weight: 500;
    white-space: nowrap;
}

.task_chip .icon {
    width: 13px;
    height: 13px;
}

.task_chip.is_today {
    color: #46c37d;
    background: rgba(47, 138, 87, 0.12);
}

.task_chip.is_tomorrow {
    color: #d29a3a;
    background: rgba(224, 155, 45, 0.12);
}

.task_chip.is_overdue {
    color: var(--dash-danger);
    background: rgba(209, 67, 67, 0.12);
}

.task_chip.is_brand {
    color: var(--dash-chip-color);
    background: rgba(var(--dash-brand-rgb), 0.12);
}

.task_chip.is_quiet {
    background: transparent;
    padding-inline: 4px;
    color: var(--dash-muted);
}

.task_contact {
    color: var(--dash-text) !important;
}

.task_contact .contact_avatar {
    width: 16px;
    height: 16px;
    font-size: .5rem;
}

.task_actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.task_flag {
    display: inline-flex;
    color: var(--dash-muted);
}

.priority_high .task_flag {
    color: var(--dash-danger);
}

.priority_medium .task_flag {
    color: #e09b2d;
}

.task_flag .icon {
    width: 17px;
    height: 17px;
}

.task_actions .dash_icon_btn {
    opacity: .55;
}

.task_row:hover .task_actions .dash_icon_btn,
.task_actions .contact_dropdown.open .dash_icon_btn {
    opacity: 1;
}

.task_menu_label {
    padding: 6px 10px 2px;
    color: var(--dash-muted);
    font-size: .75rem;
}

.task_menu_line {
    height: 1px;
    margin: 4px 6px;
    background: var(--dash-border);
}

.contact_dropdown_menu form {
    display: block;
}

/* empty */
.task_empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 520px;
    margin: 40px auto;
    text-align: center;
}

.task_empty .dash_placeholder_icon {
    margin-bottom: 18px;
}

.task_empty h2 {
    font-size: 1.3rem;
}

.task_empty p {
    margin: 6px 0 16px;
    color: var(--dash-text-soft);
}

.task_examples {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.task_examples small {
    color: var(--dash-muted);
}

.task_example {
    padding: 7px 14px;
    border-radius: 100px;
    border: 1px dashed var(--dash-border-strong);
    background: none;
    color: var(--dash-text-soft);
    font: inherit;
    font-size: .88rem;
    cursor: pointer;
}

.task_example:hover {
    border-style: solid;
    border-color: rgba(var(--dash-brand-rgb), 0.6);
    color: var(--dash-text);
}

/* modal */
.task_title_input {
    width: 100%;
    padding: 4px 0;
    border: none;
    background: none;
    color: var(--dash-text);
    font: inherit;
    font-size: 1.3rem;
    font-weight: 600;
}

.task_title_input:focus {
    outline: none;
}

.task_notes_input {
    min-height: 70px;
}

.dash_field>span .icon {
    width: 16px;
    height: 16px;
    margin-inline-end: 2px;
    color: var(--dash-muted);
    vertical-align: -3px;
}

.task_date_shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.task_date_shortcuts button {
    padding: 3px 9px;
    border-radius: 7px;
    border: 1px solid var(--dash-border);
    background: none;
    color: var(--dash-text-soft);
    font: inherit;
    font-size: .78rem;
    cursor: pointer;
}

.task_date_shortcuts button:hover {
    border-color: var(--dash-border-strong);
    color: var(--dash-text);
}

input.dash_input[type="time"]:disabled {
    opacity: .5;
}

.task_priority_pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.task_priority_pill input {
    position: absolute;
    opacity: 0;
}

.task_priority_pill span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 11px;
    border: 1px solid var(--dash-border-strong);
    color: var(--dash-text-soft);
    font-size: .88rem;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}

.task_priority_pill .icon {
    width: 15px;
    height: 15px;
}

.task_priority_pill input:checked+span {
    color: var(--dash-text);
}

.task_priority_pill input:focus-visible+span {
    box-shadow: 0 0 0 3px rgba(var(--dash-brand-rgb), 0.2);
}

.task_priority_pill.priority_low .icon {
    color: #4f8fd6;
}

.task_priority_pill.priority_medium .icon {
    color: #e09b2d;
}

.task_priority_pill.priority_high .icon {
    color: #d14343;
}

.task_interval {
    display: flex;
    align-items: center;
    gap: 10px;
}

.task_interval input {
    width: 90px;
}

.task_interval em {
    color: var(--dash-text-soft);
    font-style: normal;
}

.task_follow_toggle {
    align-self: stretch;
    /* the full width, like the calendar row under it */
}

.task_follow_toggle .dash_chip,
.task_calendar_toggle .dash_chip {
    flex-shrink: 0;
}

.task_subtasks {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.task_subtask {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 2px 4px 2px 10px;
    border-radius: 10px;
    border: 1px solid var(--dash-border);
}

.task_subtask_input {
    flex: 1;
    min-width: 0;
    height: 36px;
    border: none;
    background: none;
    color: var(--dash-text);
    font: inherit;
    font-size: .92rem;
}

.task_subtask_input:focus {
    outline: none;
}

.task_subtask:has(:checked) .task_subtask_input {
    color: var(--dash-muted);
    text-decoration: line-through;
}

.task_add_subtask {
    align-self: flex-start;
    text-decoration: none;
}

.task_modal_delete {
    margin-inline-end: auto;
}

/* toast undo */
.toast_undo {
    margin-inline-start: 10px;
    padding: 2px 10px;
    border-radius: 7px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: none;
    color: #fff;
    font: inherit;
    font-size: .85rem;
    font-weight: 500;
    cursor: pointer;
}

/* End Tasks */

/* Start Notifications */

.dash_rail_item,
.dash_topbar_bell {
    position: relative;
}

.dash_rail_badge {
    position: absolute;
    top: 3px;
    inset-inline-end: 3px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 100px;
    background: #d14343;
    color: #fff;
    font-size: .65rem;
    font-weight: 600;
    line-height: 17px;
    text-align: center;
    box-shadow: 0 0 0 2px var(--dash-bg);
}

.dash_rail_badge[hidden],
.dash_topbar_bell {
    display: none;
}

.notify_list {
    border-radius: 16px;
    border: 1px solid var(--dash-border);
    background: var(--dash-panel);
}

.notify_item:last-child {
    border-bottom: none;
}

.notify_item.is_unread {
    background: rgba(var(--dash-brand-rgb), 0.05);
}

.notify_body {
    flex: 1;
    min-width: 0;
}

.notify_message {
    display: block;
    color: var(--dash-text) !important;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.notify_item:not(.is_unread) .notify_message {
    font-weight: 400;
}

.notify_body>small {
    display: block;
    margin-top: 3px;
    color: var(--dash-muted);
    font-size: .8rem;
}

.notify_titles {
    margin: 6px 0 0;
    padding-inline-start: 18px;
    color: var(--dash-text-soft);
    font-size: .88rem;
}

.notify_actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.notify_dot {
    width: 8px;
    height: 8px;
    margin-top: 8px;
    border-radius: 50%;
    background: var(--dash-brand);
}

.notify_pager {
    margin: 10px auto 0;
    display: flex;
    width: fit-content;
}

[data-desktop-alerts].is_on {
    border-color: rgba(47, 138, 87, 0.4);
    color: #46c37d;
}

.reminder_select {
    flex: 0 0 170px;
}

.dash_toggle_row .ts-wrapper.reminder_select {
    width: 170px;
}

/* End Notifications */

/* Start Page structure: section heads, segments, callouts (shared by every settings page) */

.dash_section_head {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-block: 12px;
}

.dash_section_head h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0;
}

.dash_section_head p {
    color: var(--dash-text-soft);
    margin-bottom: 0;
}

.dash_segments {
    display: flex;
    gap: 4px;
    margin-bottom: 18px;
    padding: 4px;
    overflow-x: auto;
    border-radius: 13px;
    border: 1px solid var(--dash-border-strong);
    background: var(--dash-panel-soft);
    scrollbar-width: none;
}

.dash_segment {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 8px 16px;
    border: none;
    border-radius: 9px;
    background: none;
    color: var(--dash-text-soft);
    font: inherit;
    font-size: .92rem;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}

.dash_segment .icon {
    width: 17px;
    height: 17px;
}

.dash_segment:hover {
    color: var(--dash-text);
}

.dash_segment.is_active {
    background: var(--dash-panel);
    color: var(--dash-text);
    box-shadow: var(--dash-shadow);
}

.dash_segment.is_active .icon {
    color: var(--dash-chip-color);
}

/* every block inside a part gets the same space, whatever it is */
.dash_segment_panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dash_segment_panel[hidden] {
    display: none;
}

.dash_segment_panel>.dash_form_actions,
.dash_segment_panel>.billing_payment_note {
    margin-top: -8px;
}

/* a head sits closer to the block it describes */
/* End Page structure */

/* Start Agent robot */
@keyframes botBlink {

    0%,
    92%,
    100% {
        transform: scaleY(1);
    }

    95% {
        transform: scaleY(.1);
    }
}

@keyframes botGlow {
    50% {
        opacity: .45;
    }
}

@keyframes botSteam {
    0% {
        opacity: 0;
        transform: translateY(4px);
    }

    40% {
        opacity: .55;
    }

    100% {
        opacity: 0;
        transform: translateY(-8px);
    }
}

@keyframes botBob {
    50% {
        transform: translateY(-4px);
    }
}

/* End Agent robot */

/* Start AI agents */

/* list + picker */
/* the actions menu must float over the next cards, not be cut by this one */
/* wizard */
/* full-screen pages */
/* an agent's page with the account's main menu beside it: the page takes the rest of the width and scrolls by itself */
/* conversations */
/* editor: menu | part | playground */
/* reading the website: a turning ring, what it is doing now, a moving line */
/* the meeting interpreter's languages: chips to tick */
@keyframes agent_learn_spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes agent_learn_slide {
    0% {
        inset-inline-start: -35%;
    }

    100% {
        inset-inline-start: 100%;
    }
}

@keyframes aiPulse {
    50% {
        opacity: .35;
        transform: scale(.85);
    }
}

/* your plan */
.billing_plan_credits {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(var(--dash-brand-rgb), 0.1);
    font-weight: 600;
    font-size: .9rem;
}

.billing_plan_credits .icon,
.billing_plan_credits svg {
    width: 16px;
    height: 16px;
    color: var(--dash-chip-color);
}

.billing_plan .billing_includes li {
    align-items: flex-start;
    color: var(--dash-text-soft);
}

.billing_plan .billing_includes li .icon,
.billing_plan .billing_includes li svg {
    margin-top: 2px;
}

.billing_strip {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 24px;
}

.billing_strip_text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.billing_strip_name {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
}

.billing_strip_name strong {
    font-size: 1.1rem;
}

.billing_strip_price {
    color: var(--dash-muted);
    font-weight: 600;
}

.billing_strip_text p {
    margin: 0;
    color: var(--dash-text-soft);
    font-size: .9rem;
}

.billing_strip .billing_includes li {
    font-size: .85rem;
    color: var(--dash-text-soft);
}

.billing_strip>.dash_btn {
    flex-shrink: 0;
}

.billing_free {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 22px 24px;
}

.billing_free_head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
}

.billing_free_title {
    min-width: 0;
}

.billing_free_name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.billing_free_name strong {
    font-size: 1.1rem;
}

.billing_free_title p {
    margin: 2px 0 0;
    color: var(--dash-text-soft);
    font-size: .9rem;
}

.billing_free_price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    white-space: nowrap;
}

.billing_free_price b {
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: -.02em;
}

.billing_free_price small {
    color: var(--dash-muted);
    font-size: .85rem;
}

.billing_free_foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.billing_free_list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.billing_free_list li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 100px;
    background: var(--dash-chip-bg);
    color: var(--dash-text);
    font-size: .84rem;
}

.billing_free_list li.is_muted {
    background: transparent;
    color: var(--dash-muted);
}

.billing_free_list .icon {
    width: 14px;
    height: 14px;
    color: var(--dash-chip-color);
}

@media (max-width: 600px) {
    .billing_free_head {
        grid-template-columns: auto 1fr;
    }

    .billing_free_price {
        grid-column: 1 / -1;
    }
}

.billing_strip.is_custom {
    margin-top: 16px;
    border-style: dashed;
}

.billing_interval_row {
    display: flex;
    justify-content: center;
    margin: 28px 0 4px;
}

/* a head sits closer to the block it describes */
.dash_segment_panel>.dash_section_head {
    margin-bottom: -8px;
}

.dash_callout {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    margin-top: 0.5rem;
}

.dash_callout[hidden] {
    display: none;
}

.dash_callout_icon {
    display: inline-flex;
    color: var(--dash-chip-color);
}

.dash_callout>div {
    flex: 1;
    min-width: 0;
}

.dash_callout strong {
    display: block;
    margin-bottom: 2px;
    font-weight: 600;
}

.dash_callout p {
    color: var(--dash-text-soft);
    font-size: .92rem;
    margin-bottom: 0;
}

.dash_callout .dash_icon_btn {
    width: 30px;
    height: 30px;
    margin: -4px -6px 0 0;
}

/* End Page structure */

/* Start Agent robot */
.agent_bot {
    display: block;
    overflow: visible;
}

.agent_bot.is_awake .bot_eye {
    transform-origin: center 80px;
    transform-box: view-box;
    animation: botBlink 5s infinite;
}

.agent_bot .bot_antenna {
    animation: botGlow 2.4s ease-in-out infinite;
}

.agent_bot .bot_steam {
    animation: botSteam 2.2s ease-in-out infinite;
}

.agent_bot.is_working {
    animation: botBob 2.6s ease-in-out infinite;
}

@keyframes botBlink {

    0%,
    92%,
    100% {
        transform: scaleY(1);
    }

    95% {
        transform: scaleY(.1);
    }
}

@keyframes botGlow {
    50% {
        opacity: .45;
    }
}

@keyframes botSteam {
    0% {
        opacity: 0;
        transform: translateY(4px);
    }

    40% {
        opacity: .55;
    }

    100% {
        opacity: 0;
        transform: translateY(-8px);
    }
}

@keyframes botBob {
    50% {
        transform: translateY(-4px);
    }
}

@media (prefers-reduced-motion: reduce) {

    .agent_bot *,
    .agent_bot {
        animation: none !important;
    }
}

/* End Agent robot */

/* Start AI agents */

/* list + picker */
.agents_search {
    width: 260px;
}

.agents_search .dash_search {
    margin: 0;
}

.agents_picker {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    padding: 30px 0 10px;
}

.agents_picker>h2 {
    font-size: 1.35rem;
    font-weight: 600;
}

.agents_picker_grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 250px));
    gap: 16px;
}

.agents_pick {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 10px 16px;
    border-radius: 20px;
    border: 1px solid var(--dash-border);
    background: var(--dash-panel);
    transition: transform .25s var(--dash-ease), box-shadow .25s ease, border-color .25s ease;
}

.agents_pick:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--dash-brand-rgb), 0.45);
    box-shadow: var(--dash-shadow-lg);
}

.agents_pick_art,
.agents_card_art {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 170px;
    margin-bottom: 8px;
    border-radius: 14px;
    background: var(--dash-panel-soft);
}

.agents_pick>strong,
.agents_pick>p,
.agents_pick>.dash_btn {
    margin-inline: 6px;
}

.agents_pick>strong {
    font-size: 1.02rem;
    font-weight: 600;
}

.agents_pick>p {
    flex: 1;
    min-height: 3em;
    color: var(--dash-text-soft);
    font-size: .88rem;
}

.agents_pick>.dash_btn {
    justify-content: center;
    margin-top: 8px;
}

.agents_back {
    font-size: .9rem;
}

.agents_group {
    margin-bottom: 28px;
}

.agents_group_title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 0.95rem;
    font-weight: 600;
}

.agents_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.agents_card {
    position: relative;
    border-radius: 18px;
    border: 1px solid var(--dash-border);
    background: var(--dash-panel);
    box-shadow: var(--dash-shadow);
}

.agents_card_art {
    height: 176px;
    margin: 0;
    overflow: hidden;
    border-radius: 17px 17px 0 0;
}

.agents_orb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: .55;
}

.agents_card_hub {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--dash-panel-soft);
    box-shadow: 0 0 0 8px rgba(var(--dash-brand-rgb), .06), 0 0 0 1px rgba(var(--dash-brand-rgb), .18);
    transition: scale .3s var(--dash-ease), box-shadow .3s ease;
}

.agents_card:hover .agents_card_hub {
    scale: 1.05;
    box-shadow: 0 0 0 10px rgba(var(--dash-brand-rgb), .1), 0 0 0 1px rgba(var(--dash-brand-rgb), .35);
}

/* the actions menu must float over the next cards, not be cut by this one */
.agents_card:has(.contact_dropdown.open) {
    z-index: 5;
}

.agents_card_art .dash_badge {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    z-index: 1;
}

.dash_badge.is_ok {
    background: rgba(47, 138, 87, 0.12);
    color: #46c37d;
    gap: 6px;
}

.agents_card_body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 18px 4px;
}

.agents_card_body strong {
    font-size: 1.05rem;
    font-weight: 600;
}

.agents_card_stats {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.agents_card_stats span {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--dash-hover);
}

.agents_card_stats .icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--dash-brand-strong);
}

.agents_card_stats small {
    flex: 1;
    min-width: 0;
    color: var(--dash-text-soft);
    font-size: .86rem;
}

.agents_card_stats b {
    color: var(--dash-text);
    font-size: .9rem;
    font-weight: 600;
}

.agents_card_stats b.is_on {
    color: #46c37d;
}

/* wizard */
.agent_wizard .dash_modal_head .dash_badge {
    margin-bottom: 12px;
}

.agent_description {
    min-height: 180px;
}

.agent_chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.agent_chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 100px;
    border: 1px solid var(--dash-border-strong);
    background: var(--dash-panel);
    color: var(--dash-text-soft);
    font: inherit;
    font-size: .88rem;
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease;
}

.agent_chip .icon {
    width: 16px;
    height: 16px;
}

.agent_chip:hover {
    border-color: rgba(var(--dash-brand-rgb), 0.6);
    color: var(--dash-text);
}

.agent_foot .dash_btn:first-child {
    margin-inline-end: auto;
}

.dash_btn_plain {
    border-color: transparent !important;
    background: none !important;
    color: var(--dash-text-soft) !important;
    box-shadow: none !important;
}

.agent_building {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 48px 40px 52px;
    text-align: center;
}

.agent_building_art {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 190px;
    height: 190px;
    margin-bottom: 10px;
    border-radius: 50%;
    background: rgba(var(--dash-brand-rgb), 0.1);
}

.agent_building h2 {
    font-size: 1.4rem;
}

.agent_building p {
    min-height: 1.5em;
    color: var(--dash-text-soft);
}

.agent_progress {
    width: min(420px, 100%);
    height: 6px;
    margin-top: 18px;
    overflow: hidden;
    border-radius: 6px;
    background: var(--dash-hover);
}

.agent_progress i {
    display: block;
    width: 0;
    height: 100%;
    border-radius: 6px;
    background: var(--dash-brand);
    transition: width .3s ease;
}

.agent_building small {
    color: var(--dash-muted);
}

/* full-screen pages */
.agent_focus {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--dash-bg);
}

/* an agent's page with the account's main menu beside it: the page takes the rest of the width and scrolls by itself */
.agent_focus_app {
    background: var(--dash-bg);
}

.agent_focus_app>.agent_focus {
    flex: 1;
    min-width: 0;
    height: 100%;
    min-height: 0;
    overflow: auto;
}

.agent_focus_app .agent_editor {
    height: 100%;
}

.agent_test_page {
    background: var(--dash-bg);
}

.agent_focus_bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid var(--dash-border);
    background: var(--dash-panel);
}

.agent_focus_logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: #1f1f1f;
}

.agent_focus_logo img {
    height: 18px;
    width: auto;
}

.agent_test {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 70px 20px 30px;
}

.agent_test_stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
    width: 100%;
    max-width: 760px;
}

.agent_test_stage h1 {
    font-size: 1.55rem;
    font-weight: 600;
    text-align: center;
}

.agent_test_cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
    max-width: 680px;
}

.agent_test_card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 10px 10px 20px;
    border-radius: 20px;
    border: 1px solid var(--dash-border);
    background: var(--dash-panel);
    color: var(--dash-text);
    font: inherit;
    text-align: start;
    box-shadow: var(--dash-shadow);
    cursor: pointer;
    transition: transform .25s var(--dash-ease), box-shadow .25s ease;
}

a.agent_test_card {
    text-decoration: none;
}

button.agent_test_card:hover,
a.agent_test_card:hover {
    transform: translateY(-3px);
    box-shadow: var(--dash-shadow-lg);
}

.agent_test_card.is_soon {
    opacity: .7;
    cursor: default;
}

.agent_test_card>strong,
.agent_test_card>small {
    padding-inline: 10px;
}

.agent_test_card>strong {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-weight: 600;
}

.agent_test_card>strong em {
    font-style: normal;
}

.agent_test_card>small {
    color: var(--dash-text-soft);
}

.agent_test_art {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 200px;
    border-radius: 14px;
    background: rgba(var(--dash-brand-rgb), 0.12);
}

.agent_mini_chat {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 78%;
    padding: 12px;
    border-radius: 12px;
    background: var(--dash-panel);
    box-shadow: var(--dash-shadow-lg);
}

.agent_mini_chat small {
    color: var(--dash-muted);
    font-size: .7rem;
}

.agent_mini_chat i {
    max-width: 85%;
    padding: 7px 10px;
    border-radius: 12px;
    font-size: .78rem;
    font-style: normal;
    line-height: 1.35;
}

.agent_mini_chat .is_user {
    align-self: flex-end;
    background: #1f1f1f;
    color: #fff;
}

.agent_mini_chat .is_bot {
    background: var(--dash-panel-soft);
    border: 1px solid var(--dash-border);
}

.agent_mini_call {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 100px;
    background: var(--dash-panel);
    box-shadow: var(--dash-shadow-lg);
    color: #46c37d;
}

.agent_mini_call b {
    color: var(--dash-text);
    font-weight: 500;
}

.agent_test_questions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 560px;
}

.agent_test_question {
    padding: 16px 24px;
    border-radius: 100px;
    border: 1px solid var(--dash-border);
    background: var(--dash-panel);
    color: var(--dash-text);
    font: inherit;
    font-size: 1rem;
    box-shadow: var(--dash-shadow);
    cursor: pointer;
    transition: border-color .15s ease, transform .2s var(--dash-ease);
}

.agent_test_question:hover {
    border-color: rgba(var(--dash-brand-rgb), 0.6);
    transform: translateY(-1px);
}

.agent_test_chat {
    flex: 1;
    gap: 16px;
    max-width: 720px;
}

/* conversations */
.agent_thread {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    overflow-y: auto;
}

.agent_bubble {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    max-width: 82%;
}

.agent_bubble>div {
    min-width: 0;
}

.agent_bubble p {
    padding: 12px 16px;
    border-radius: 18px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.agent_bubble.is_user {
    align-self: flex-end;
}

.agent_bubble.is_user p {
    background: #1f1f1f;
    color: #fff;
}

:root[data-theme="dark"] .agent_bubble.is_user p {
    background: var(--dash-brand);
    color: var(--dash-on-brand);
}

.agent_bubble.is_bot p {
    border: 1px solid var(--dash-border);
    background: var(--dash-panel);
}

.agent_bubble small {
    display: block;
    margin: 0 4px 4px;
    color: var(--dash-muted);
    font-size: .75rem;
}

.agent_bubble_avatar {
    flex-shrink: 0;
    display: inline-flex;
}

.agent_bubble.is_typing p {
    color: var(--dash-muted);
    animation: aiPulse 1.4s ease-in-out infinite;
}

.agent_bubble.is_error p {
    border-color: rgba(209, 67, 67, 0.3);
    color: var(--dash-danger);
}

.agent_enhance {
    display: inline-flex;
    margin: 8px 4px 0;
    padding: 5px 12px;
    border-radius: 9px;
    border: 1px solid var(--dash-border-strong);
    color: var(--dash-text) !important;
    font-size: .82rem;
}

.agent_composer {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 8px 8px 18px;
    border-radius: 18px;
    border: 1px solid var(--dash-border-strong);
    background: var(--dash-panel);
    box-shadow: var(--dash-shadow);
}

.agent_composer:focus-within {
    border-color: rgba(var(--dash-brand-rgb), 0.6);
}

.agent_composer input {
    flex: 1;
    min-width: 0;
    height: 38px;
    border: none;
    background: none;
    color: var(--dash-text);
    font: inherit;
}

.agent_composer input:focus {
    outline: none;
}

.agent_send {
    border-radius: 50%;
    background: var(--dash-brand);
    color: var(--dash-on-brand);
}

/* editor: menu | part | playground */
.agent_nav_head strong {
    min-width: 0;
    overflow: hidden;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.agent_nav_avatar {
    display: inline-flex;
    flex-shrink: 0;
}

.agent_nav_item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 11px;
    color: var(--dash-text-soft) !important;
    font-size: .92rem;
}

.agent_nav_item .icon {
    width: 18px;
    height: 18px;
}

.agent_nav_item em {
    margin-inline-start: auto;
    font-style: normal;
}

.agent_nav_item:hover {
    background: var(--dash-hover);
    color: var(--dash-text) !important;
}

.agent_nav_item.active {
    background: var(--dash-active);
    color: var(--dash-text) !important;
    font-weight: 500;
    box-shadow: var(--dash-shadow);
}

.agent_nav_item.is_copilot .icon {
    color: var(--dash-chip-color);
}

.agent_nav_group {
    margin: 16px 12px 4px;
    color: var(--dash-muted);
    font-size: .78rem;
}

.agent_nav_bottom {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: auto;
    padding-top: 12px;
}

.agent_main {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: var(--dash-panel);
}

.agent_main_head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    border-bottom: 1px solid var(--dash-border);
}

.agent_balance {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--dash-text-soft);
    font-size: .85rem;
}

.agent_balance .icon {
    width: 15px;
    height: 15px;
    color: var(--dash-chip-color);
}

.agent_status i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--dash-muted);
}

.agent_status.is_on {
    border-color: rgba(47, 138, 87, 0.4);
    color: #46c37d;
}

.agent_status.is_on i {
    background: #46c37d;
}

.agent_main_body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 28px;
}

.agent_main_body.is_copilot {
    display: flex;
    padding: 0;
}

.agent_form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 860px;
}

.agent_form>.dash_section_head {
    margin-bottom: -6px;
}

.agent_block {
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--dash-border);
    background: var(--dash-panel);
}

.agent_block>summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    list-style: none;
    background: var(--dash-panel-soft);
    cursor: pointer;
}

.agent_block>summary::-webkit-details-marker {
    display: none;
}

.agent_block>summary .icon {
    width: 19px;
    height: 19px;
    color: var(--dash-muted);
}

.agent_block>summary strong {
    flex: 1;
    font-weight: 600;
}

.agent_block>summary::after {
    content: "";
    width: 7px;
    height: 7px;
    margin: -4px 4px 0;
    border: solid var(--dash-muted);
    border-width: 0 1.6px 1.6px 0;
    transform: rotate(45deg);
}

.agent_block[open]>summary::after {
    margin-top: 3px;
    transform: rotate(-135deg);
}

.agent_block[open]>summary {
    border-bottom: 1px solid var(--dash-border);
}

.agent_block_body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px 20px 20px;
}

.agent_textarea {
    line-height: 1.6;
    resize: vertical;
}

.agent_hint {
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--dash-panel-soft);
    border: 1px solid var(--dash-border);
}

.agent_hint strong {
    display: block;
    margin-bottom: 2px;
    font-weight: 600;
}

.agent_hint p {
    color: var(--dash-text-soft);
    font-size: .92rem;
}

.agent_memory {
    position: relative;
}

.agent_memory .agent_textarea {
    padding-bottom: 54px;
}

.agent_autofill {
    position: absolute;
    bottom: 12px;
    inset-inline-end: 12px;
}

.agent_counter {
    margin-top: -6px;
    color: var(--dash-muted);
    font-size: .8rem;
}

.agent_save {
    position: sticky;
    bottom: 0;
    display: flex;
    justify-content: flex-end;
    padding: 12px 0 4px;
    background: var(--dash-panel);
}

.agent_learn {
    display: flex;
    gap: 10px;
    padding: 14px;
}

.agent_learn .dash_input {
    flex: 1;
}

/* reading the website: a turning ring, what it is doing now, a moving line */
/* the meeting interpreter's languages: chips to tick */
.agent_languages {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 0;
}

.agent_language {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--dash-border);
    border-radius: 999px;
    cursor: pointer;
}

.agent_learn_progress {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 10px;
    padding: 16px;
}

.agent_learn_progress[hidden] {
    display: none;
}

.agent_learn_progress>div {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.agent_learn_progress small {
    color: var(--dash-muted);
}

.agent_learn_spinner {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 2px;
    border: 2px solid rgba(var(--dash-brand-rgb), .25);
    border-top-color: var(--dash-brand);
    border-radius: 50%;
    animation: agent_learn_spin .8s linear infinite;
}

.agent_learn_bar {
    position: relative;
    display: block;
    height: 4px;
    margin-top: 8px;
    overflow: hidden;
    border-radius: 4px;
    background: rgba(var(--dash-brand-rgb), .15);
}

.agent_learn_bar i {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 35%;
    border-radius: 4px;
    background: var(--dash-brand);
    animation: agent_learn_slide 1.4s ease-in-out infinite;
}

.agent_learn_progress.is_done .agent_learn_spinner,
.agent_learn_progress.is_done .agent_learn_bar {
    animation: none;
    border-color: var(--dash-brand);
}

.agent_learn_progress.is_done .agent_learn_bar i {
    width: 100%;
    animation: none;
}

@keyframes agent_learn_spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes agent_learn_slide {
    0% {
        inset-inline-start: -35%;
    }

    100% {
        inset-inline-start: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {

    .agent_learn_spinner,
    .agent_learn_bar i {
        animation-duration: 3s;
    }
}

.agent_soon_row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dash-muted);
    font-size: .88rem;
}

.agent_soon_row .icon {
    width: 16px;
    height: 16px;
}

.agent_soon_row em {
    font-style: normal;
}

.agent_avatars {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.agent_avatar_pick input {
    position: absolute;
    opacity: 0;
}

.agent_avatar_pick span {
    display: flex;
    padding: 8px;
    border-radius: 16px;
    border: 1.5px solid var(--dash-border);
    background: var(--dash-panel-soft);
    cursor: pointer;
}

.dash_toggle_row.is_soon {
    opacity: .65;
}

.dash_toggle_row strong em {
    margin-inline-start: 6px;
    font-style: normal;
}

.agent_phone_soon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 50px 20px;
    text-align: center;
}

.agent_phone_soon h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
}

.agent_phone_soon em {
    font-style: normal;
}

.agent_phone_soon p {
    max-width: 420px;
    color: var(--dash-text-soft);
}

/* copilot */
.copilot {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    padding: 24px 28px;
}

.copilot_hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin: auto 0 26px;
    text-align: center;
}

.copilot_hero[hidden] {
    display: none;
}

.copilot_pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid var(--dash-border-strong);
    font-size: .88rem;
    font-weight: 500;
}

.copilot_pill .icon {
    width: 16px;
    height: 16px;
    color: var(--dash-chip-color);
}

.copilot_hero h2 {
    font-size: 2rem;
    font-weight: 600;
}

.copilot_thread {
    display: flex;
    flex-direction: column;
    gap: 18px;
    overflow-y: auto;
}

.copilot_thread:not(:empty) {
    flex: 1;
    padding-bottom: 16px;
}

.copilot_user {
    align-self: flex-end;
    max-width: 75%;
}

.copilot_user p {
    padding: 10px 16px;
    border-radius: 16px;
    background: rgba(var(--dash-brand-rgb), 0.14);
    white-space: pre-wrap;
}

.copilot_reply small {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    color: var(--dash-muted);
    font-size: .8rem;
}

.copilot_reply small .icon {
    width: 14px;
    height: 14px;
    color: var(--dash-chip-color);
}

/* the reply hugs its text on the agent's side, whatever the language (Arabic used to drift to the far edge) */
.copilot_reply {
    align-self: flex-start;
    max-width: 85%;
}

.copilot_reply p {
    width: fit-content;
    max-width: 100%;
    line-height: 1.6;
    white-space: pre-wrap;
}

.copilot_reply.is_typing p {
    color: var(--dash-muted);
    animation: aiPulse 1.4s ease-in-out infinite;
}

.copilot_reply.is_error p {
    color: var(--dash-danger);
}

.copilot_changed {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 10px 8px 0 0;
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(47, 138, 87, 0.1);
    color: #46c37d !important;
    font-size: .8rem;
}

.copilot_changed .icon {
    width: 14px;
    height: 14px;
}

.copilot_box {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 14px 14px 14px 18px;
    border-radius: 20px;
    border: 1px solid var(--dash-border-strong);
    background: var(--dash-panel);
    box-shadow: var(--dash-shadow);
}

.copilot_box:focus-within {
    border-color: rgba(var(--dash-brand-rgb), 0.6);
}

.copilot_box textarea {
    flex: 1;
    min-height: 56px;
    border: none;
    background: none;
    color: var(--dash-text);
    font: inherit;
    resize: none;
}

.copilot_box textarea:focus {
    outline: none;
}

.copilot_chips {
    justify-content: center;
    margin: 16px 0 auto;
}

.copilot_chips[hidden] {
    display: none;
}

/* playground */
.agent_playground {
    --aous-aw-offcanvas-width: min(460px, 100vw);
    --aous-aw-offcanvas-color: var(--dash-text);
    --aous-aw-offcanvas-bg: var(--dash-bg);
    --aous-aw-offcanvas-border-color: var(--dash-border);
    --aous-aw-offcanvas-border-width: 1px;
    display: flex;
    flex-direction: column;
    min-height: 0;
    color: var(--dash-text);
    border-inline-start: 1px solid var(--dash-border);
    background: var(--dash-bg);
}

.offcanvas-backdrop {
    background-color: #262626;
}

.agent_editor>.offcanvas-backdrop.show {
    opacity: .65;
}

@media (min-width: 1200px) {
    .agent_playground.offcanvas-xl {
        background-color: var(--dash-bg) !important;
    }
}

.agent_playground_head {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--dash-border);
}

.agent_playground_head strong {
    font-weight: 600;
}

.agent_playground_actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 4px;
    margin-inline-start: auto;
}

.agent_playground_tabs {
    display: flex;
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
    gap: 4px;
    align-self: center;
    margin: 14px 0 6px;
    padding: 4px;
    border-radius: 12px;
    border: 1px solid var(--dash-border-strong);
    background: var(--dash-panel-soft);
}

.agent_playground_tabs span,
.agent_playground_tabs a,
.agent_playground_tabs button {
    padding: 6px 14px;
    border-radius: 8px;
    color: var(--dash-text-soft);
    font-size: .86rem;
}

.agent_playground_tabs .is_active {
    background: var(--dash-panel);
    color: var(--dash-text);
    font-weight: 500;
    box-shadow: var(--dash-shadow);
}

.agent_playground_tabs .is_soon {
    opacity: .6;
}

.agent_playground_tabs a {
    text-decoration: none;
    transition: color .15s ease, background .15s ease;
}

.agent_playground_tabs a:hover {
    background: var(--dash-hover);
    color: var(--dash-text);
}

.agent_playground_tabs em {
    font-size: .7rem;
    font-style: normal;
}

.agent_thread.is_compact {
    padding: 14px 16px;
}

.agent_thread.is_compact .agent_bubble {
    max-width: 92%;
}

.agent_thread.is_compact .agent_bubble p {
    font-size: .92rem;
}

.agent_playground_empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin: auto;
    text-align: center;
}

.agent_playground_empty[hidden] {
    display: none;
}

.agent_playground_empty small {
    max-width: 260px;
    color: var(--dash-muted);
}

.agent_composer.is_compact {
    width: auto;
    margin: 0 14px 14px;
}

/* tour */
.agent_tour {
    position: fixed;
    inset: 0;
    z-index: 1080;
    background: rgba(0, 0, 0, 0.35);
}

.agent_tour_card {
    position: fixed;
    width: 320px;
    padding: 18px;
    border-radius: 16px;
    background: var(--dash-panel);
    box-shadow: var(--dash-shadow-lg);
}

.agent_tour_card[hidden] {
    display: none;
}

.agent_tour_card strong {
    font-weight: 600;
}

.agent_tour_card p {
    margin: 6px 0 16px;
    color: var(--dash-text-soft);
    font-size: .92rem;
}

.agent_tour_card>div {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.agent_tour_card small {
    color: var(--dash-muted);
}

.is_tour_target {
    position: relative;
    z-index: 1081;
    border-radius: 14px;
    box-shadow: 0 0 0 4px rgba(var(--dash-brand-rgb), 0.55);
}

/* End AI agents */

/* Start AI, plan & credits */

.ai_mode_grid {
    margin: 0;
}

.ai_mode_grid .dash_choice_box strong {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai_mode_grid em.dash_badge {
    font-style: normal;
}

.ai_mode_meta {
    margin-top: 10px;
    color: var(--dash-chip-color) !important;
    font-size: .82rem;
    font-weight: 500;
}

.dash_choice.is_locked .dash_choice_box {
    opacity: .6;
    cursor: not-allowed;
}

.ai_model_card {
    margin-bottom: 4px;
}

.dash_toggle_row .ts-wrapper.ai_model_select {
    flex: 0 0 auto;
    width: 280px;
}

.ai_key_card,
.ai_test_card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai_connections {
    margin-bottom: 14px;
}

/* AI model page: pay switch + one card per provider with its models inside */
.ai_pay_bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 20px;
    border-radius: var(--dash-radius);
    border: 1px solid var(--dash-border);
    background: var(--dash-panel);
}

.ai_pay_text strong {
    display: block;
    font-weight: 600;
}

.ai_pay_text small {
    color: var(--dash-muted);
    font-size: .85rem;
}

.ai_pay_switch {
    display: inline-flex;
    flex-shrink: 0;
    padding: 4px;
    border-radius: 12px;
    background: var(--dash-panel-soft);
    border: 1px solid var(--dash-border);
}

.ai_pay_switch label {
    position: relative;
    cursor: pointer;
}

.ai_pay_switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ai_pay_switch span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 9px;
    color: var(--dash-text-soft);
    font-size: .88rem;
    font-weight: 500;
    white-space: nowrap;
    transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}

.ai_pay_switch .icon {
    width: 16px;
    height: 16px;
}

.ai_pay_switch em {
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(var(--dash-brand-rgb), 0.14);
    color: var(--dash-chip-color);
    font-size: .75rem;
    font-style: normal;
}

.ai_pay_switch input:checked+span {
    background: var(--dash-panel);
    color: var(--dash-text);
    box-shadow: var(--dash-shadow);
}

.ai_pay_switch label.is_locked {
    cursor: not-allowed;
    opacity: .5;
}

.ai_pay_hint {
    margin: 10px 4px 22px;
    color: var(--dash-text-soft);
    font-size: .85rem;
}

.ai_pay_hint[hidden] {
    display: none;
}

.ai_provider_cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.ai_provider_card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: border-color .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.ai_provider_card.is_selected {
    border-color: var(--dash-brand);
    box-shadow: 0 0 0 3px rgba(var(--dash-brand-rgb), 0.12), var(--dash-shadow);
}

.ai_provider_card_head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai_provider_card_head>div {
    flex: 1;
    min-width: 0;
}

.ai_provider_card_head strong {
    display: block;
    font-size: 1.08rem;
    font-weight: 600;
}

.ai_provider_card_head small {
    color: var(--dash-muted);
    font-size: .82rem;
}

.ai_provider_card_head .dash_badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ai_model_list {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    border: 1px solid var(--dash-border);
    overflow: hidden;
}

.ai_model_row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    cursor: pointer;
    transition: background .15s ease;
}

.ai_model_row+.ai_model_row {
    border-top: 1px solid var(--dash-border);
}

.ai_model_row:hover {
    background: var(--dash-hover);
}

.ai_model_row input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ai_model_radio {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--dash-border-strong);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.ai_model_row input:checked~.ai_model_radio {
    border-color: var(--dash-brand);
    box-shadow: inset 0 0 0 3px var(--dash-panel), inset 0 0 0 9px var(--dash-brand);
}

.ai_model_row_text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.ai_model_row_text strong {
    font-size: .93rem;
    font-weight: 600;
}

/* tier + cost on one line under the name, so long names keep one line */
.ai_model_meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
}

.ai_model_row .ai_model_cost {
    white-space: nowrap;
}

.ai_provider_locked {
    display: none;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--dash-panel-soft);
    color: var(--dash-text-soft);
    font-size: .85rem;
    line-height: 1.5;
}

.ai_provider_locked p[hidden] {
    display: none;
}

.ai_provider_card.is_unavailable .ai_model_list {
    display: none;
}

.ai_provider_card.is_unavailable .ai_provider_locked {
    display: block;
}

.ai_provider_card.is_unavailable .ai_provider_card_head {
    opacity: .7;
}

.ai_provider_card_foot {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--dash-border);
}

.ai_provider_card_foot .dash_link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .88rem;
}

.ai_provider_card_foot .icon {
    width: 15px;
    height: 15px;
}

html[dir="rtl"] .ai_provider_card_foot .icon {
    transform: scaleX(-1);
}

.ai_save_bar {
    position: sticky;
    bottom: 16px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 22px;
    padding: 12px 12px 12px 20px;
    border-radius: 14px;
    border: 1px solid var(--dash-border);
    background: var(--dash-panel);
    box-shadow: var(--dash-shadow-lg);
    color: var(--dash-text-soft);
    font-size: .9rem;
}

.ai_save_bar strong {
    color: var(--dash-text);
}

/* AI provider page (Integrations → ChatGPT / Claude) */
.ai_provider_hero {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.ai_provider_hero>div:not(.ai_provider_badges) {
    flex: 1;
    min-width: 0;
}

.ai_provider_hero h1 {
    font-size: 1.4rem;
    font-weight: 600;
}

.ai_provider_hero p {
    margin-top: 4px;
    color: var(--dash-text-soft);
}

.ai_provider_badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ai_key_card+.dash_callout,
.dash_callout+.ai_soon_card {
    margin-top: 16px;
}

/* model cards: on the provider page (with a button) and on the default-model page (as a radio) */
.ai_model_grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.ai_model_card_item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.ai_model_card_item form,
.ai_model_card_item>.dash_btn {
    margin-top: auto;
}

.ai_model_card_head {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.ai_model_card_head strong {
    font-size: 1rem;
    font-weight: 600;
}

.ai_model_card_head .dash_badge {
    margin-inline-start: auto;
}

.ai_model_tier {
    display: inline-flex;
    padding: 2px 9px;
    border-radius: 999px;
    background: var(--dash-panel-soft);
    color: var(--dash-text-soft);
    font-size: .75rem;
    font-weight: 500;
}

.ai_model_tier.is_fast {
    background: rgba(70, 195, 125, 0.12);
    color: #2f9a5e;
}

.ai_model_tier.is_smart {
    background: rgba(var(--dash-brand-rgb), 0.14);
    color: var(--dash-chip-color);
}

.ai_model_cost {
    color: var(--dash-muted);
    font-size: .82rem;
}

.ai_model_card_item code {
    color: var(--dash-muted);
    font-size: .75rem;
    background: var(--dash-bg);
}

.ai_provider_group+.ai_provider_group {
    margin-top: 22px;
}

.ai_provider_group_head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.ai_provider_group_head strong {
    font-weight: 600;
}

.ai_provider_group_head small {
    color: var(--dash-muted);
    font-size: .82rem;
}

.ai_provider_group_head .dash_link {
    margin-inline-start: auto;
    font-size: .85rem;
}

.ai_model_option {
    display: block;
    cursor: pointer;
}

.ai_model_option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ai_model_option_box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    height: 100%;
    padding: 16px;
    border-radius: var(--dash-radius);
    border: 1px solid var(--dash-border);
    background: var(--dash-panel);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.ai_model_option:hover .ai_model_option_box {
    border-color: var(--dash-border-strong);
}

.ai_provider_group.is_unavailable .ai_model_option {
    cursor: not-allowed;
}

.ai_provider_group.is_unavailable .ai_model_option_box {
    opacity: .55;
}

/* one card per provider (ChatGPT, Claude), side by side */
.ai_key_list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.ai_key_list+.ai_key_note {
    margin-top: 14px;
}

.ai_key_card.is_connected {
    border-color: rgba(70, 195, 125, 0.45);
}

.ai_provider_head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 4px;
}

.ai_provider_head>div {
    flex: 1;
    min-width: 0;
}

.ai_provider_head strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
}

.ai_provider_head small {
    color: var(--dash-muted);
    font-size: .82rem;
}

.ai_provider_link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .82rem;
    white-space: nowrap;
}

.ai_provider_link .icon {
    width: 14px;
    height: 14px;
}

.ai_key_row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--dash-border);
}

.ai_key_row>div {
    flex: 1;
    min-width: 0;
}

.ai_key_row strong {
    display: block;
    font-weight: 600;
}

.ai_key_row small {
    font-size: .82rem;
}

.ai_key_row small.is_ok {
    color: #46c37d;
}

.ai_key_row small.is_error {
    color: var(--dash-danger);
}

.ai_key_form {
    display: flex;
    gap: 10px;
}

.ai_key_form .dash_input {
    flex: 1;
    min-width: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.ai_key_note {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--dash-muted);
    font-size: .82rem;
}

.ai_key_note .icon {
    width: 15px;
    height: 15px;
}

.ai_soon_card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--dash-panel-soft);
    box-shadow: none;
}

.ai_soon_card strong {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.ai_soon_card em {
    font-style: normal;
}

.ai_soon_card small {
    color: var(--dash-muted);
}

.ai_test_reply {
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(var(--dash-brand-rgb), 0.1);
    white-space: pre-wrap;
}

.ai_test_foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ai_test_foot small {
    color: var(--dash-text-soft);
}

.ai_test_card.is_error .ai_test_foot small {
    color: var(--dash-danger);
}

.inbox_ai_btn.is_busy .icon {
    animation: aiPulse 1s ease-in-out infinite;
}

@keyframes aiPulse {
    50% {
        opacity: .35;
        transform: scale(.85);
    }
}

/* your plan */
.billing_current {
    padding: 0;
}

.billing_current_head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 24px;
    border-bottom: 1px solid var(--dash-border);
}

.billing_current_head>div {
    flex: 1;
}

.billing_current_head h2 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 1.3rem;
}

.billing_current_head p {
    color: var(--dash-text-soft);
}

.billing_current_body {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 28px 48px;
    padding: 20px 24px 24px;
}

.billing_current_body>div>small {
    display: block;
    margin-bottom: 8px;
    color: var(--dash-text-soft);
    font-weight: 500;
}

.billing_current_body strong {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.billing_current_body strong .icon {
    width: 17px;
    height: 17px;
    color: var(--dash-muted);
}

.billing_includes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.billing_includes li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .9rem;
}

.billing_includes .icon {
    width: 16px;
    height: 16px;
    color: var(--dash-chip-color);
}

.billing_credit_pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-inline-start: auto;
    padding: 8px 14px;
    border-radius: 100px;
    background: rgba(var(--dash-brand-rgb), 0.12);
    color: var(--dash-text) !important;
    font-weight: 500;
}

.billing_credit_pill .icon {
    width: 16px;
    height: 16px;
    color: var(--dash-chip-color);
}

.billing_plans {
    align-items: start;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.billing_plan {
    grid-row: span 6;
    grid-template-rows: subgrid;
    row-gap: 14px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.billing_plan_head {
    gap: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.billing_plan_head strong {
    font-size: 1.1rem;
}

.billing_plan_price b {
    color: var(--dash-text);
    letter-spacing: -0.5px;
    line-height: 1.1;
    font-size: 1.4rem;
    font-weight: 600;
}

.billing_plan_price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    margin: 0;
    color: var(--dash-text-soft);
}

.billing_plan_sub {
    margin: 0;
    min-height: 2.6em;
    color: var(--dash-text-soft);
    font-size: .9rem;
    min-height: 5rem;
}

.billing_plan .billing_includes {
    flex-wrap: nowrap;
    gap: 10px;
    align-self: start;
    padding-top: 14px;
    border-top: 1px solid var(--dash-border);
    flex-direction: column;
    flex: 1;
}

.billing_plan .dash_btn {
    width: 100%;
    justify-content: center;
}

.billing_payment_note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    color: var(--dash-muted);
    font-size: .85rem;
}

.billing_payment_note .icon {
    width: 17px;
    height: 17px;
}

/* manage the paid plan: renewal note + cancel, or "ends on … · keep my plan" */
.billing_manage {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 24px;
    border-top: 1px solid var(--dash-border);
    color: var(--dash-text-soft);
    font-size: .88rem;
}

.billing_manage p {
    display: flex;
    align-items: center;
    gap: 8px;
}

.billing_manage.is_ending {
    background: rgba(209, 67, 67, 0.05);
    color: var(--dash-text);
}

.billing_manage .icon {
    flex-shrink: 0;
    width: 17px;
    height: 17px;
    color: var(--dash-danger);
}

.billing_manage form {
    flex-shrink: 0;
}

.billing_cancel_steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.billing_cancel_steps li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.5;
}

.billing_cancel_steps .icon {
    flex-shrink: 0;
    width: 19px;
    height: 19px;
    margin-top: 1px;
    color: var(--dash-chip-color);
}

/* upgrading during the trial: say plainly that the trial ends now */
.billing_trial_note {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dash-text-soft);
    font-size: .9rem;
}

.billing_trial_note .icon,
.billing_upgrade_warn>.icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--dash-chip-color);
}

.billing_upgrade_warn {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(var(--dash-brand-rgb), 0.35);
    background: rgba(var(--dash-brand-rgb), 0.08);
}

.billing_upgrade_warn strong {
    display: block;
    margin-bottom: 4px;
}

.billing_upgrade_warn p {
    color: var(--dash-text-soft);
    font-size: .9rem;
    line-height: 1.5;
}

#upgrade_modal .billing_includes {
    flex-direction: column;
}

/* checkout: our own payment page (summary | payment), card fields come from Stripe */
.checkout_bar .checkout_secure_label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--dash-text-soft);
    font-size: .85rem;
    font-weight: 500;
}

.checkout_secure_label .icon,
.checkout_stripe .icon {
    width: 15px;
    height: 15px;
}

.checkout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
    gap: 56px;
    align-items: start;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 48px 28px 64px;
}

.checkout_back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 28px;
    color: var(--dash-text-soft);
    font-size: .9rem;
    text-decoration: none;
    transition: color .15s ease;
}

.checkout_back:hover {
    color: var(--dash-text);
}

.checkout_back .icon {
    width: 16px;
    height: 16px;
}

html[dir="rtl"] .checkout_back .icon {
    transform: scaleX(-1);
}

.checkout_plan {
    display: flex;
    align-items: center;
    gap: 14px;
}

.checkout_plan small {
    display: block;
    margin-bottom: 2px;
    color: var(--dash-muted);
    font-size: .85rem;
}

.checkout_plan h1 {
    font-size: 1.9rem;
    font-weight: 600;
    line-height: 1.15;
}

.checkout_price {
    margin-top: 22px;
    color: var(--dash-text-soft);
}

.checkout_price b {
    color: var(--dash-text);
    font-size: 2.4rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.checkout_plan_sub {
    max-width: 440px;
    margin-top: 6px;
    color: var(--dash-text-soft);
    line-height: 1.5;
}

.checkout_includes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 20px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.checkout_includes li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .92rem;
}

.checkout_includes .icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: var(--dash-chip-color);
}

.checkout_summary .billing_upgrade_warn {
    margin: 28px 0 0;
}

.checkout_total {
    margin: 28px 0 0;
    border-top: 1px solid var(--dash-border);
}

.checkout_total>div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--dash-border);
    color: var(--dash-text-soft);
}

.checkout_total dd {
    margin: 0;
    color: var(--dash-text);
    font-variant-numeric: tabular-nums;
}

.checkout_total .is_total {
    border-bottom: 0;
    color: var(--dash-text);
    font-weight: 600;
    font-size: 0.95rem;
}

.checkout_renews {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dash-muted);
    font-size: .85rem;
}

.checkout_renews .icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

/* the payment card */
.checkout_pay {
    position: sticky;
    top: 24px;
    padding: 28px;
    border-radius: 22px;
    border: 1px solid var(--dash-border);
    background: var(--dash-panel);
    box-shadow: var(--dash-shadow-lg);
}

.checkout_pay h2 {
    font-size: 1.2rem;
    font-weight: 600;
}

.checkout_pay_sub {
    margin-top: 4px;
    margin-bottom: 22px;
    color: var(--dash-text-soft);
    font-size: .88rem;
}

.checkout_element_wrap {
    position: relative;
    min-height: 220px;
}

.checkout_skeleton {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.checkout_skeleton span {
    grid-column: span 2;
    height: 46px;
    border-radius: 12px;
    background: var(--dash-panel-soft);
    animation: checkoutPulse 1.3s ease-in-out infinite;
}

.checkout_skeleton span:first-child {
    height: 52px;
}

.checkout_skeleton .is_half {
    grid-column: span 1;
}

.checkout_error {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(209, 67, 67, 0.3);
    background: rgba(209, 67, 67, 0.07);
    color: var(--dash-danger);
    font-size: .9rem;
}

.checkout_error[hidden] {
    display: none;
}

.checkout_error .icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.checkout_submit {
    position: relative;
    justify-content: center;
    width: 100%;
    margin-top: 22px;
    padding-block: 14px;
    font-size: 1rem;
}

.checkout_submit [data-checkout-label] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.checkout_submit .icon {
    width: 17px;
    height: 17px;
}

.checkout_submit:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.checkout_submit.is_busy {
    opacity: 1;
    cursor: progress;
}

.checkout_spinner {
    display: none;
    width: 17px;
    height: 17px;
    margin-inline-end: 10px;
    border-radius: 50%;
    border: 2px solid currentColor;
    border-inline-end-color: transparent;
    animation: checkoutSpin .7s linear infinite;
}

.checkout_submit.is_busy .checkout_spinner {
    display: inline-block;
}

@keyframes checkoutSpin {
    to {
        transform: rotate(360deg);
    }
}

.checkout_agree {
    margin-top: 12px;
    color: var(--dash-muted);
    font-size: .8rem;
    line-height: 1.5;
    text-align: center;
}

.checkout_stripe {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--dash-border);
    color: var(--dash-muted);
    font-size: .8rem;
    text-align: center;
}

/* credits */
.credits_head {
    padding: 0;
}

.credits_head_top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--dash-border);
}

.credits_head_top h2 {
    font-size: 1.35rem;
}

.credits_head_top .dash_btn {
    margin-inline-start: auto;
}

/* "Buy credits" and "Upgrade" side by side at the end */
.credits_head_top .dash_btn+.dash_btn {
    margin-inline-start: 0;
}

.credits_pools {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding: 20px 24px 24px;
}

.credits_pool {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid var(--dash-border);
    background: var(--dash-panel-soft);
}

.credits_pool>span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--dash-text-soft);
    font-size: .88rem;
}

.credits_pool>span .icon {
    width: 16px;
    height: 16px;
    color: var(--dash-chip-color);
}

.credits_pool strong {
    font-size: 1.3rem;
    font-weight: 600;
}

.credits_pool strong small {
    color: var(--dash-muted);
    font-size: .95rem;
    font-weight: 400;
}

.credits_pool>small {
    color: var(--dash-muted);
    font-size: .8rem;
}

.credits_usage_head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.credits_usage_head small {
    color: var(--dash-muted);
}

.credits_usage_head h2 {
    font-size: 1.2rem;
}

.credits_chart {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: 160px auto;
    gap: 6px 10px;
    margin: 0;
}

.credits_chart_axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--dash-muted);
    font-size: .78rem;
    text-align: end;
}

.credits_chart_bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    border-bottom: 1px solid var(--dash-border-strong);
}

.credits_bar_slot {
    position: relative;
    display: flex;
    align-items: flex-end;
    flex: 1;
    height: 100%;
    cursor: default;
}

.credits_bar {
    width: 100%;
    max-width: 22px;
    height: var(--h);
    margin: 0 auto;
    border-radius: 4px 4px 0 0;
    background: var(--dash-chart-bar);
}

.credits_bar_slot:hover .credits_bar,
.credits_bar_slot:focus .credits_bar {
    filter: brightness(1.12);
}

.credits_bar_slot::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    z-index: 5;
    padding: 5px 9px;
    border-radius: 7px;
    background: #1f1f1f;
    color: #fff;
    font-size: .75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%);
    transition: opacity .12s ease;
}

.credits_bar_slot:hover::after,
.credits_bar_slot:focus::after {
    opacity: 1;
}

.credits_chart_dates {
    grid-column: 2;
    display: flex;
    justify-content: space-between;
    color: var(--dash-muted);
    font-size: .78rem;
}

.credits_features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--dash-border);
}

.credits_feature {
    display: grid;
    grid-template-columns: 180px 1fr 60px;
    align-items: center;
    gap: 12px;
    font-size: .9rem;
}

.credits_feature strong {
    font-weight: 600;
    text-align: end;
}

.credits_feature_track {
    height: 8px;
    border-radius: 8px;
    background: var(--dash-hover);
}

.credits_feature_track i {
    display: block;
    width: var(--w);
    height: 100%;
    border-radius: 8px;
    background: var(--dash-chart-bar);
}

.credits_amount {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.credits_amount.is_plus {
    color: #46c37d;
}

.dash_cell_sub_inline {
    margin-inline-start: 6px;
    color: var(--dash-muted);
}

.dash_badge.is_danger {
    background: rgba(209, 67, 67, 0.12);
    color: var(--dash-danger);
}

.sr_only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* End AI, plan & credits */

/* Start Tom Select (every select in the dashboard) */

.ts-wrapper.form-control {
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
}

.ts-wrapper .ts-control {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 0 40px 0 14px;
    border-radius: var(--dash-radius-sm);
    border: 1px solid var(--dash-border-strong);
    background: var(--dash-panel) !important;
    color: var(--dash-text);
    font: inherit;
    font-size: .95rem;
    box-shadow: none;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease;
}

html[dir="rtl"] .ts-wrapper .ts-control {
    padding: 0 14px 0 40px !important;
}

/* before Tom Select takes over: the plain select already looks the same, so the page does not flash */
select.tom_select:not(.tomselected) {
    width: 100%;
    height: 46px;
    padding: 0 40px 0 14px;
    border-radius: var(--dash-radius-sm);
    border: 1px solid var(--dash-border-strong);
    background: var(--dash-panel);
    color: var(--dash-text);
    font: inherit;
    font-size: .95rem;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
}

html[dir="rtl"] select.tom_select:not(.tomselected) {
    padding: 0 14px 0 40px;
}

select.tom_select[multiple]:not(.tomselected) {
    overflow: hidden;
}

.ts-wrapper .ts-control>input {
    color: var(--dash-text);
}

.ts-wrapper.single .ts-control::after {
    content: "";
    position: absolute;
    top: 50%;
    inset-inline-end: 16px;
    width: 7px;
    height: 7px;
    margin-top: -5px;
    border: solid var(--dash-muted);
    border-width: 0 1.6px 1.6px 0;
    transform: rotate(45deg);
    transition: transform .2s ease;
}

.ts-wrapper.single.dropdown-active .ts-control::after {
    margin-top: -1px;
    transform: rotate(-135deg);
}

.ts-wrapper.focus .ts-control {
    border-color: rgba(var(--dash-brand-rgb), 0.7);
    box-shadow: 0 0 0 3px rgba(var(--dash-brand-rgb), 0.15);
}

.ts-wrapper.dash_input_small {
    width: auto;
    min-width: 84px;
}

.ts-wrapper.dash_input_small .ts-control {
    min-height: 34px;
    padding: 0 30px 0 10px;
    border-radius: 10px;
    font-size: .85rem;
}

.ts-wrapper.dash_input_small.single .ts-control::after {
    inset-inline-end: 12px;
    width: 6px;
    height: 6px;
}

.ts-dropdown {
    z-index: 2000;
    margin-top: 6px;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid var(--dash-border-strong);
    background: var(--dash-panel);
    color: var(--dash-text);
    box-shadow: var(--dash-shadow-lg);
}

.ts-dropdown .dropdown-input-wrap {
    padding: 6px;
    border-bottom: 1px solid var(--dash-border);
}

.ts-dropdown .dropdown-input {
    width: 100%;
    height: 36px;
    padding: 0 10px;
    border-radius: 9px;
    border: 1px solid var(--dash-border-strong);
    background: var(--dash-panel-soft);
    color: var(--dash-text);
    font: inherit;
    font-size: .88rem;
}

.ts-dropdown .dropdown-input:focus {
    outline: none;
    border-color: rgba(var(--dash-brand-rgb), 0.7);
}

.ts-dropdown .ts-dropdown-content {
    max-height: 260px;
    padding: 4px;
}

.ts-dropdown .option,
.ts-dropdown .no-results {
    padding: 8px 10px;
    border-radius: 8px;
    font-size: .9rem;
}

.ts-dropdown .active {
    background: var(--dash-hover);
    color: var(--dash-text);
}

.ts-dropdown .option.selected {
    background: rgba(var(--dash-brand-rgb), 0.14);
    color: var(--dash-text);
    font-weight: 500;
}

/* End Tom Select */

/* Start Date picker (components.libs.daterange_picker_single) */

.dash_date_field {
    position: relative;
    display: block;
}

.dash_date_field>.icon {
    position: absolute;
    top: 50%;
    inset-inline-start: 14px;
    width: 18px;
    height: 18px;
    color: var(--dash-muted);
    transform: translateY(-50%);
    pointer-events: none;
}

.dash_date_field .dash_input {
    padding-inline-start: 42px;
    cursor: pointer;
}

.dash_body .daterangepicker {
    z-index: 2200;
    margin-top: 6px;
    padding: 6px;
    border-radius: 16px;
    border: 1px solid var(--dash-border-strong);
    background: var(--dash-panel);
    color: var(--dash-text);
    font-family: inherit;
    box-shadow: var(--dash-shadow-lg);
}

.dash_body .daterangepicker::before,
.dash_body .daterangepicker::after {
    display: none;
}

.dash_body .daterangepicker .calendar-table {
    border: none;
    background: var(--dash-panel);
}

.dash_body .daterangepicker .calendar-table th,
.dash_body .daterangepicker .calendar-table td {
    width: 36px;
    min-width: 36px;
    height: 34px;
    border-radius: 10px;
    font-size: .85rem;
}

.dash_body .daterangepicker .calendar-table th {
    color: var(--dash-muted);
    font-weight: 500;
}

.dash_body .daterangepicker .calendar-table .next span,
.dash_body .daterangepicker .calendar-table .prev span {
    border-color: var(--dash-text-soft);
}

.dash_body .daterangepicker td.available:hover,
.dash_body .daterangepicker th.available:hover {
    background: var(--dash-hover);
    color: var(--dash-text);
}

.dash_body .daterangepicker td.off,
.dash_body .daterangepicker td.off.in-range,
.dash_body .daterangepicker td.disabled {
    background: transparent;
    color: var(--dash-muted);
    opacity: .5;
}

.dash_body .daterangepicker td.active,
.dash_body .daterangepicker td.active:hover {
    background: var(--dash-brand);
    color: #1f1f1f;
    font-weight: 600;
}

.dash_body .daterangepicker select.monthselect,
.dash_body .daterangepicker select.yearselect,
.dash_body .daterangepicker .calendar-time select {
    padding: 2px 4px;
    border-radius: 8px;
    border: 1px solid var(--dash-border-strong);
    background: var(--dash-panel-soft);
    color: var(--dash-text);
    font: inherit;
    font-size: .85rem;
}

.dash_body .daterangepicker .calendar-time {
    margin: 8px 0 2px;
}

.dash_body .daterangepicker .drp-buttons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    padding: 8px 4px 2px;
    border-top: 1px solid var(--dash-border);
}

.dash_body .daterangepicker .drp-selected {
    margin-inline-end: auto;
    padding: 0;
    color: var(--dash-text-soft);
    font-size: .82rem;
}

.dash_body .daterangepicker .drp-buttons .btn {
    height: 32px;
    margin: 0;
    padding: 0 12px;
    border-radius: 9px;
    border: 1px solid var(--dash-border-strong);
    background: transparent;
    color: var(--dash-text);
    font: inherit;
    font-size: .85rem;
    font-weight: 500;
}

.dash_body .daterangepicker .drp-buttons .applyBtn {
    border-color: var(--dash-brand);
    background: var(--dash-brand);
    color: #1f1f1f;
}

/* End Date picker */

/* Start Delete confirm (website.components.modals.delete_confirm_href) */

#delete_confirm_modal {
    z-index: 2100;
}

#delete_confirm_modal .modal-dialog {
    max-width: 380px;
}

#delete_confirm_modal .modal-content {
    border: none;
    border-radius: 22px;
    background: var(--dash-panel);
    color: var(--dash-text);
    box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.5);
}

#delete_confirm_modal .modal-body {
    padding: 28px 26px 6px;
    color: var(--dash-text-soft);
    text-align: center;
}

#delete_confirm_modal .modal-body::before {
    content: "";
    display: block;
    width: 54px;
    height: 54px;
    margin: 0 auto 16px;
    border-radius: 17px;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d14343' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M10 11v6M14 11v6M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2l1-12M9 7V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v3'/%3E%3C/svg%3E") center / 26px no-repeat,
        rgba(209, 67, 67, 0.1);
}

#delete_confirm_modal .modal-title {
    margin-bottom: 6px;
    color: var(--dash-text);
    font-size: 1.2rem;
    font-weight: 600;
}

#delete_confirm_modal .modal-footer {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 18px 26px 24px;
    border: none;
}

#delete_confirm_modal .modal-footer .btn {
    flex: 1;
    width: auto !important;
    height: 44px;
    margin: 0 !important;
    border-radius: 12px !important;
    font-weight: 500;
    text-decoration: none;
    box-shadow: none;
}

#delete_confirm_modal .btn-link {
    border: 1px solid var(--dash-border-strong);
    background: transparent;
    color: var(--dash-text);
}

#delete_confirm_modal .btn-danger {
    border: none;
    background: #d14343;
    color: #fff;
}

#delete_confirm_modal .btn-danger:hover {
    background: #b83737;
}

/* End Delete confirm */

/* Start Shared: modals, tables, toolbar */

.dash_title_count {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dash_count.large {
    padding: 2px 10px;
    font-size: .85rem;
}

.dash_link,
.dash_link_btn {
    color: var(--dash-chip-color) !important;
    font-weight: 400;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-size: 0.8rem;
}

.dash_link_btn {
    margin-top: 6px;
}

.dash_link_btn,
button.dash_link {
    appearance: none;
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    font-weight: 500;
    cursor: pointer;
}

.dash_toggle_row.is_disabled {
    cursor: default;
    opacity: .65;
}

.dash_btn.is_disabled,
.dash_icon_btn.is_disabled {
    opacity: .4;
    pointer-events: none;
}

.dash_btn.is_danger_text,
.dash_btn.is_danger_text .icon,
.dash_icon_btn.is_danger {
    color: var(--dash-danger);
}

.dash_icon_btn.is_boxed {
    border: 1px solid var(--dash-border-strong);
    background: var(--dash-panel);
}

.dash_input_small {
    height: 34px;
    padding: 0 30px 0 10px;
    font-size: .85rem;
}

/* modal */
.dash_modal .modal-content {
    overflow: visible;
    border: none;
    border-radius: 24px;
    background: var(--dash-panel);
    color: var(--dash-text);
    /* box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.5); */
}

/* bootstrap's own header and footer inside our modals: the panel's colours in both themes, never white */
.dash_modal .modal-header,
.dash_modal .modal-footer {
    padding: 20px 24px;
    background: var(--dash-panel);
    color: var(--dash-text);
    border-color: var(--dash-border);
}

.dash_modal .modal-header {
    border-radius: 24px 24px 0 0;
}

.dash_modal .modal-footer {
    border-radius: 0 0 24px 24px;
}

.dash_modal .modal-header h3,
.dash_modal .modal-header h5 {
    margin: 0;
    color: var(--dash-text);
    font-size: 1.15rem;
}

.dash_modal .modal-body {
    padding: 24px;
}

/* chosen items of a multiple select */
.ts-wrapper.multi .ts-control>div {
    background: var(--dash-hover);
    color: var(--dash-text);
    border-radius: 7px;
}

.dash_modal.fade .modal-dialog {
    transform: translateY(18px) scale(.98);
    transition: transform .45s var(--dash-ease);
}

.dash_modal.show .modal-dialog {
    transform: none;
}

.dash_modal_head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 28px 30px 6px;
}

.dash_modal_head h2 {
    font-size: 1.25rem;
}

.dash_modal_head p {
    margin-top: 4px;
    color: var(--dash-text-soft);
}

.dash_modal_close {
    border: 1px solid var(--dash-border-strong);
}

.dash_modal_body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 62vh;
    padding: 18px;
    overflow-y: auto;
}

.dash_modal_foot {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 8px 30px 28px;
}

.plan_locked_modal .modal-dialog {
    max-width: 440px;
}

.plan_locked_modal .modal-content {
    position: relative;
    overflow: hidden;
    text-align: center;
}

.plan_locked_close {
    position: absolute;
    top: 16px;
    inset-inline-end: 16px;
    z-index: 2;
}

.plan_locked_art {
    padding: 34px 40px 6px;
    background: radial-gradient(70% 90% at 50% 0%, rgba(var(--dash-brand-rgb), 0.16), transparent 70%);
}

.plan_locked_art svg {
    display: block;
    width: 200px;
    margin: 0 auto;
}

.plan_art_glow {
    fill: rgba(var(--dash-brand-rgb), 0.12);
}

.plan_art_ring {
    fill: none;
    stroke: rgba(var(--dash-brand-rgb), 0.3);
    stroke-dasharray: 3 6;
}

.plan_art_card {
    fill: var(--dash-chip-bg);
    stroke: var(--dash-border-strong);
}

.plan_art_shackle {
    fill: none;
    stroke: var(--dash-brand);
    stroke-width: 7;
    stroke-linecap: round;
}

.plan_art_body {
    fill: var(--dash-brand);
}

.plan_art_hole {
    fill: var(--dash-panel);
}

.plan_art_spark,
.plan_art_dot {
    fill: var(--dash-brand);
}

.plan_locked_body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 8px 30px 28px;
}

.plan_locked_body h2 {
    font-size: 1.3rem;
}

.plan_locked_body p {
    margin: 0;
    color: var(--dash-text-soft);
}

.plan_locked_points {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 8px 0 6px;
    padding: 0;
    list-style: none;
    text-align: start;
}

.plan_locked_points li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .9rem;
}

.plan_locked_points .icon {
    width: 18px;
    height: 18px;
    color: var(--dash-brand);
}

.plan_locked_actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 6px;
}

.dash_integration.is_locked .dash_chip,
.dash_integration.is_locked strong,
.dash_integration.is_locked>p {
    opacity: .6;
}

.billing_switch_list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.billing_switch_list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .9rem;
}

.billing_switch_list .icon {
    width: 16px;
    height: 16px;
    color: var(--dash-muted);
}

.dash_modal_section {
    margin-top: 6px;
    padding-top: 14px;
    border-top: 1px solid var(--dash-border);
    color: var(--dash-muted);
    font-size: .8rem;
}

.dash_field {
    display: flex;
    flex-direction: column;
    gap: 8.5px;
    margin-block: 0.5rem;
}

.dash_field>span {
    font-weight: 500;
    font-size: 0.9rem;
}

.dash_field em {
    color: var(--dash-muted);
    font-style: normal;
    font-weight: 400;
}

.dash_field>small {
    margin-inline-start: 3px;
    color: var(--dash-muted);
    font-size: .84rem;
}

.dash_grid_2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

textarea.dash_input {
    height: auto;
    padding: 12px 14px;
    resize: vertical;
}

.dash_alert {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(209, 67, 67, 0.08);
    border: 1px solid rgba(209, 67, 67, 0.2);
    color: var(--dash-danger);
    font-size: .88rem;
}

.dash_alert .icon {
    width: 17px;
    height: 17px;
}

.dash_check_group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.dash_check_pill input {
    position: absolute;
    opacity: 0;
}

.dash_check_pill span {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 100px;
    border: 1px solid var(--dash-border-strong);
    color: var(--dash-text-soft);
    font-size: .85rem;
    cursor: pointer;
}

.dash_check_pill input:checked+span {
    color: var(--dash-text);
}

/* phone field (intlTelInput): fixed country segment, searchable dropdown */
.dash_body {
    --aous-aw-btn-focus-box-shadow: none;
    --iti-hover-color: var(--dash-hover);
    --iti-border-color: var(--dash-border-strong);
    --iti-dialcode-color: var(--dash-text-soft);
    --iti-dropdown-bg: var(--dash-panel);
    --iti-search-icon-color: var(--dash-muted);
    --iti-arrow-color: var(--dash-muted);
}

.dash_body .dash_phone .iti {
    width: 100%;
    direction: ltr;
}

/* Fixed padding also works when the library starts inside a hidden modal. */
.dash_body .dash_phone .iti input.iti__tel-input {
    padding-left: 134px !important;
    padding-right: 14px !important;
    text-align: left;
    direction: ltr;
}

.dash_body .dash_phone .iti__selected-country {
    width: 120px;
    padding: 0 14px;
    gap: 8px;
    border-right: 1px solid var(--dash-border-strong);
    border-radius: calc(var(--dash-radius-sm) - 1px) 0 0 calc(var(--dash-radius-sm) - 1px);
    color: var(--dash-text);
    white-space: nowrap;
}

.dash_body .dash_phone .iti__selected-country-primary {
    display: contents;
}

.dash_body .dash_phone .iti__selected-dial-code {
    order: 1;
    margin: 0;
}

.dash_body .dash_phone .iti__arrow {
    order: 2;
    margin: 0 0 0 auto;
}

/* Arabic: the library puts the country on the right (it reads the page's direction), so the fixed padding and the divider follow it;
   the number itself stays left to right */
html[dir="rtl"] .dash_body .dash_phone .iti input.iti__tel-input {
    padding-left: 14px !important;
    padding-right: 134px !important;
    text-align: right;
}

html[dir="rtl"] .dash_body .dash_phone .iti__selected-country {
    border-right: 0;
    border-left: 1px solid var(--dash-border-strong);
    border-radius: 0 calc(var(--dash-radius-sm) - 1px) calc(var(--dash-radius-sm) - 1px) 0;
}

html[dir="rtl"] .dash_body .dash_phone .iti__arrow {
    margin: 0 auto 0 0;
}

.dash_body .dash_phone .iti__selected-country:hover {
    background: var(--dash-hover);
}

.dash_body .dash_phone .iti__selected-country:focus-visible {
    outline: 2px solid var(--dash-brand);
    outline-offset: -3px;
}

/* Scoped selectors win even though the library CSS is loaded later. */
.dash_body .iti--container {
    z-index: 2000;
    color: var(--dash-text);
    font: inherit;
}

.dash_body .iti__dropdown-content {
    width: min(360px, calc(100vw - 48px));
    direction: ltr;
    text-align: left;
    margin-top: 6px;
    overflow: hidden;
    border: 1px solid var(--dash-border-strong);
    border-radius: var(--dash-radius-sm);
    background: var(--dash-panel);
    color: var(--dash-text);
    box-shadow: var(--dash-shadow-lg);
}

.dash_body .iti__dropdown-content .iti__search-input {
    height: 46px;
    padding: 0 36px 0 34px;
    border: 0;
    border-radius: 0;
    background: var(--dash-panel);
    color: var(--dash-text);
    font: inherit;
    outline: none;
}

.dash_body .iti--container.iti--inline-dropdown .iti__dropdown-content {
    position: static;
    margin-top: 0;
    margin-inline: 0;
}

.dash_body .iti__search-input::placeholder {
    color: var(--dash-muted);
}

.dash_body .iti__search-input:focus {
    box-shadow: none;
}

.dash_body .iti__country-list {
    max-height: 260px;
    scrollbar-color: var(--dash-border-strong) var(--dash-panel);
}

.dash_body .iti__country {
    min-height: 42px;
    padding: 10px 14px;
    gap: 8px;
    white-space: normal;
}

.dash_body .iti__country-list .iti__flag {
    flex-shrink: 0;
    margin: 0;
}

.dash_body .iti__country-name {
    order: 2;
    margin: 0;
}

.dash_body .iti__dial-code {
    order: 1;
    flex-shrink: 0;
    color: var(--dash-text);
}

.dash_body .iti__country.iti__highlight {
    background: var(--dash-hover);
}

/* toolbar */
.dash_toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.dash_toolbar_search {
    flex: 0 1 460px;
    margin: 0;
}

.dash_toolbar_end {
    display: flex;
    align-items: center;
    gap: 14px;
}

.dash_page_size {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dash-text-soft);
    font-size: .88rem;
    white-space: nowrap;
}

.dash_pager {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--dash-border-strong);
    border-radius: 10px;
}

.dash_pager span {
    min-width: 54px;
    padding: 0 6px;
    border-inline: 1px solid var(--dash-border-strong);
    font-size: .85rem;
    line-height: 34px;
    text-align: center;
}

html[dir="rtl"] .dash_pager .icon {
    transform: scaleX(-1);
}

/* table */
.dash_table_wrap {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid var(--dash-border);
    background: var(--dash-panel);
    margin-bottom: 1.25rem;
}

.dash_table {
    width: 100%;
    border-collapse: collapse;
    font-size: .92rem;
}

.dash_table th {
    padding: 12px 16px;
    background: var(--dash-panel-soft);
    border-bottom: 1px solid var(--dash-border);
    color: var(--dash-text-soft);
    font-weight: 400;
    text-align: start;
    white-space: nowrap;
    font-size: 0.85rem;
}

.dash_table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--dash-border);
    vertical-align: middle;
}

.dash_table tbody tr:last-child td {
    border-bottom: none;
}

.dash_table .col_check,
.dash_table .col_star,
.dash_table .col_actions {
    width: 1%;
    white-space: nowrap;
}

.dash_table .col_actions {
    text-align: end;
}

.dash_table .col_actions form {
    display: inline;
}

.dash_sort {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit !important;
}

.dash_sort::after {
    content: "⇅";
    color: var(--dash-muted);
    font-size: .75rem;
}

.dash_sort.is_asc::after {
    content: "↑";
    color: var(--dash-text);
}

.dash_sort.is_desc::after {
    content: "↓";
    color: var(--dash-text);
}

.dash_check {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--dash-brand);
    cursor: pointer;
}

.dash_cell_icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-inline-end: 8px;
    border-radius: 9px;
    background: var(--dash-hover);
    color: var(--dash-text-soft);
    vertical-align: middle;
}

.dash_cell_icon .icon {
    width: 16px;
    height: 16px;
}

.dash_cell_sub {
    display: block;
    margin-inline-start: 40px;
    color: var(--dash-muted);
    font-size: .8rem;
}

.dash_inline_edit {
    display: flex;
    align-items: center;
}

.dash_inline_input {
    flex: 1;
    min-width: 120px;
    padding: 6px 8px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--dash-text);
    font: inherit;
}

.dash_inline_input:hover {
    border-color: var(--dash-border-strong);
}

.dash_inline_input:focus {
    outline: none;
    border-color: rgba(var(--dash-brand-rgb), 0.7);
    background: var(--dash-panel);
}

.dash_type_list {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid var(--dash-border-strong);
}

.dash_type_option input {
    position: absolute;
    opacity: 0;
}

.dash_type_option>span {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 0 12px;
    align-items: center;
    padding: 11px 14px;
    border-bottom: 1px solid var(--dash-border);
    cursor: pointer;
}

.dash_type_option:last-child>span {
    border-bottom: none;
}

.dash_type_option b {
    font-weight: 500;
}

.dash_type_option small {
    grid-column: 2;
    color: var(--dash-muted);
    font-size: .8rem;
}

.dash_type_option .icon {
    width: 19px;
    height: 19px;
    color: var(--dash-text-soft);
}

.dash_type_option input:checked+span .icon {
    color: var(--dash-chip-color);
}

/* End Shared: modals, tables, toolbar */

/* Start Contacts */

.contact_name_cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact_name_cell strong {
    display: block;
    font-weight: 500;
}

.contact_name_cell small,
.contact_muted {
    color: var(--dash-muted);
}

.contact_avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #1f1f1f;
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
}

:root[data-theme="dark"] .contact_avatar {
    background: #3a3a3a;
}

.contact_avatar.large {
    width: 52px;
    height: 52px;
    font-size: 1.1rem;
}

.contact_phone_line {
    display: none;
}

.contact_phone {
    display: inline-flex;
    padding: 3px 10px;
    border-radius: 8px;
    border: 1px solid var(--dash-border-strong);
    font-size: .86rem;
    white-space: nowrap;
}

.col_lists .dash_badge {
    margin: 2px 4px 2px 0;
}

.contact_table tbody tr[data-contact-row] {
    cursor: pointer;
    transition: background-color .15s ease;
}

.contact_table tbody tr[data-contact-row]:hover,
.contact_table tbody tr.is_active {
    background: var(--dash-panel-soft);
}

.contact_table tbody tr.is_selected {
    background: rgba(var(--dash-brand-rgb), 0.07);
}

.contact_star {
    display: inline-flex;
    padding: 4px;
    border: none;
    background: none;
    color: var(--dash-border-strong);
    cursor: pointer;
}

.contact_star .icon {
    width: 18px;
    height: 18px;
}

.contact_star:hover {
    color: var(--dash-muted);
}

.contact_star.is_on {
    color: var(--dash-brand);
}

.contact_star.is_on .icon {
    fill: currentColor;
}

/* floating selection bar */
.contact_bulk {
    position: sticky;
    bottom: 18px;
    z-index: 15;
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    margin: -60px auto 0;
    padding: 8px 10px 8px 16px;
    border-radius: 16px;
    background: var(--dash-panel);
    border: 1px solid var(--dash-border-strong);
    box-shadow: var(--dash-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity .25s ease, transform .35s var(--dash-ease), visibility .25s;
}

.contact_bulk.is_visible {
    margin-top: 18px;
    opacity: 1;
    visibility: visible;
    transform: none;
}

.contact_bulk_count {
    color: var(--dash-text-soft);
    font-size: .9rem;
    white-space: nowrap;
}

.contact_bulk_count b {
    display: inline-block;
    margin-inline-end: 0.25rem;
}

.contact_bulk_spacer {
    width: 1px;
    height: 24px;
    margin: 0 4px;
    background: var(--dash-border);
}

.contact_bulk_list {
    display: flex;
    gap: 6px;
}

.contact_bulk .dash_btn {
    white-space: nowrap;
}

.contact_bulk select {
    max-width: 160px;
}

/* first visit */
.contact_start {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 860px;
    margin: 20px auto;
    text-align: center;
}

.contact_start h2 {
    font-size: 1.4rem;
}

.contact_start>p {
    max-width: 520px;
    margin-top: 6px;
    color: var(--dash-text-soft);
}

.contact_start_grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    width: 100%;
    margin-top: 26px;
    width: 80%;
}

.contact_start_card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font: inherit;
    color: inherit;
    text-align: start;
    cursor: pointer;
    transition: transform .25s var(--dash-ease), box-shadow .25s ease, border-color .25s ease;
}

.contact_start_card:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--dash-brand-rgb), 0.5);
    box-shadow: var(--dash-shadow-lg);
}

.contact_start_card .dash_chip {
    margin-bottom: 10px;
}

.contact_start_card strong {
    font-weight: 500;
}

.contact_start_card small {
    color: var(--dash-muted);
    font-size: .86rem;
}

/* import */
.dash_dropzone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 34px 20px;
    border-radius: 18px;
    border: 1.5px dashed var(--dash-border-strong);
    background: var(--dash-panel-soft);
    text-align: center;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease;
}

.dash_dropzone input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.dash_dropzone .dash_placeholder_icon {
    margin-bottom: 8px;
}

.dash_dropzone strong {
    font-weight: 500;
}

.dash_dropzone small {
    color: var(--dash-muted);
}

.dash_dropzone.is_over,
.dash_dropzone.has_file {
    border-color: var(--dash-brand);
    background: rgba(var(--dash-brand-rgb), 0.07);
}

.contact_phone_box {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--dash-border);
}

.contact_phone_box>div {
    flex: 1;
}

.contact_phone_box strong {
    display: block;
    font-weight: 500;
}

.contact_phone_box small {
    color: var(--dash-muted);
    font-size: .85rem;
}

.contact_phone_box ul {
    margin: 8px 0 0;
    padding-inline-start: 16px;
    color: var(--dash-text-soft);
    font-size: .84rem;
}

.dash_placeholder_icon.small {
    width: 58px;
    height: 58px;
    border-radius: 18px;
}

.dash_placeholder_icon.small .icon {
    width: 26px;
    height: 26px;
}

/* side panel (drawer) */
.contact_drawer {
    position: fixed;
    top: 8px;
    bottom: 8px;
    inset-inline-end: 8px;
    z-index: 90;
    width: min(420px, calc(100vw - 16px));
    overflow: hidden;
    border-radius: var(--dash-radius);
    background: var(--dash-panel);
    border: 1px solid var(--dash-border);
    box-shadow: var(--dash-shadow-lg);
    transform: translateX(calc(100% + 24px));
    transition: transform .4s var(--dash-ease);
}

html[dir="rtl"] .contact_drawer {
    transform: translateX(calc(-100% - 24px));
}

.contact_drawer_open .contact_drawer {
    transform: none !important;
}

.contact_drawer_overlay {
    position: fixed;
    inset: 0;
    z-index: 85;
    background: rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s;
}

.contact_drawer_open .contact_drawer_overlay {
    opacity: 1;
    visibility: visible;
}

[data-drawer-body],
.contact_panel {
    height: 100%;
}

.contact_panel {
    position: relative;
}

.contact_panel_loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.contact_panel_loading span {
    width: 28px;
    height: 28px;
    border: 2.5px solid var(--dash-border-strong);
    border-top-color: var(--dash-brand);
    border-radius: 50%;
    animation: dashSpin .7s linear infinite;
}

@keyframes dashSpin {
    to {
        transform: rotate(360deg);
    }
}

.contact_panel_view {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateX(16px);
    transition: opacity .25s ease, transform .35s var(--dash-ease), visibility .25s;
}

.contact_panel_view.is_active {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.contact_panel_head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 24px 22px 16px;
}

.contact_panel_head>div {
    flex: 1;
    min-width: 0;
}

.contact_panel_head h2 {
    overflow: hidden;
    font-size: 1.2rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.contact_panel_head small {
    color: var(--dash-muted);
}

.contact_panel_actions {
    display: flex;
    gap: 8px;
    padding: 0 22px 20px;
    border-bottom: 1px solid var(--dash-border);
}

.contact_panel_actions>.contact_dropdown:first-child {
    flex: 1;
}

.contact_converse {
    width: 100%;
    height: 40px;
}

.contact_dropdown {
    position: relative;
}

.contact_dropdown_menu {
    position: absolute;
    top: calc(100% + 6px);
    inset-inline-start: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    min-width: 100%;
    width: max-content;
    max-width: 320px;
    padding: 6px;
    border-radius: 14px;
    background: var(--dash-panel);
    border: 1px solid var(--dash-border-strong);
    box-shadow: var(--dash-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .15s ease, transform .2s var(--dash-ease), visibility .15s;
}

.contact_dropdown_menu.is_end {
    inset-inline-start: auto;
    inset-inline-end: 0;
}

/* a menu inside an open menu (a chat's … in the chats menu) opens only when its own button is pressed */
.contact_dropdown.open .contact_dropdown:not(.open) .contact_dropdown_menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
}

.contact_dropdown.open .contact_dropdown_menu {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.contact_dropdown_menu a,
.contact_dropdown_menu button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 10px;
    border: none;
    border-radius: 9px;
    background: none;
    color: var(--dash-text);
    font: inherit;
    font-size: .9rem;
    text-align: start;
    cursor: pointer;
}

.contact_dropdown_menu a:hover,
.contact_dropdown_menu button:hover {
    background: var(--dash-hover);
}

.contact_dropdown_menu .icon {
    width: 17px;
    height: 17px;
    color: var(--dash-muted);
}

.contact_dropdown_menu .is_danger,
.contact_dropdown_menu .is_danger .icon {
    color: var(--dash-danger);
}

.contact_panel_rows {
    display: flex;
    flex-direction: column;
}

.contact_panel_rows button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 22px;
    border: none;
    border-bottom: 1px solid var(--dash-border);
    background: none;
    color: var(--dash-text);
    font: inherit;
    font-weight: 500;
    text-align: start;
    cursor: pointer;
}

.contact_panel_rows button:hover {
    background: var(--dash-panel-soft);
}

.contact_panel_rows button>span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.contact_panel_rows .icon {
    width: 18px;
    height: 18px;
    color: var(--dash-muted);
}

html[dir="rtl"] .contact_panel_rows>button>.icon:last-child,
html[dir="rtl"] .contact_panel_subhead [data-go="main"] .icon {
    transform: scaleX(-1);
}

.contact_panel_value {
    max-width: 160px;
    overflow: hidden;
    color: var(--dash-muted);
    font-weight: 400;
    font-size: .88rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.contact_panel_subhead {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 18px 18px 16px;
    border-bottom: 1px solid var(--dash-border);
}

.contact_panel_subhead h3 {
    flex: 1;
    font-size: 1.15rem;
    margin: 0;
}

.contact_panel_body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 22px 24px;
}

.dash_toggle_row.compact {
    padding: 12px 0;
}

.contact_attributes {
    margin: 0;
    padding: 6px 22px;
}

.contact_attributes>div {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid var(--dash-border);
}

.contact_attributes dt {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dash-text-soft);
    font-weight: 400;
}

.contact_attributes dt .icon {
    width: 16px;
    height: 16px;
    color: var(--dash-muted);
}

.contact_attributes dd {
    margin: 0;
    word-break: break-word;
}

.contact_attributes dd.is_empty {
    color: var(--dash-muted);
}

.contact_note_form {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.contact_notes {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 6px;
}

.contact_note {
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--dash-panel-soft);
    border: 1px solid var(--dash-border);
}

.contact_note p {
    font-size: .92rem;
    white-space: pre-line;
}

.contact_note_meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
}

.contact_note_meta small {
    color: var(--dash-muted);
    font-size: .78rem;
}

.contact_note_delete {
    display: inline-flex;
    padding: 4px;
    border: none;
    background: none;
    color: var(--dash-muted);
    cursor: pointer;
}

.contact_note_delete .icon {
    width: 15px;
    height: 15px;
}

.contact_note_delete:hover {
    color: var(--dash-danger);
}

/* tasks about a contact (panel → Activity) */
.contact_add_follow {
    align-self: flex-start;
    margin-bottom: 4px;
}

.contact_task {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--dash-border);
    color: var(--dash-text) !important;
}

.contact_task:hover {
    background: var(--dash-panel-soft);
}

.contact_task_icon {
    display: inline-flex;
    color: var(--dash-chip-color);
}

.contact_task_icon .icon {
    width: 18px;
    height: 18px;
}

.contact_task_text strong {
    display: block;
    font-weight: 500;
}

.contact_task_text small {
    color: var(--dash-muted);
    font-size: .8rem;
}

.contact_task_text small.is_overdue {
    color: var(--dash-danger);
}

.contact_task.is_done strong {
    color: var(--dash-muted);
    text-decoration: line-through;
}

/* End Contacts */

/* Start Toasts (toastr, restyled for the dashboard) */

#toast-container,
#toast-container.toast-top-left,
#toast-container.toast-top-right,
html[dir="rtl"] #toast-container {
    top: 18px;
    right: auto;
    left: 50%;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateX(-50%);
}

#toast-container>.toast {
    position: relative;
    display: flex;
    align-items: center;
    width: 380px;
    max-width: calc(100vw - 36px);
    min-height: 64px;
    margin: 0 0 12px;
    padding: 16px 52px 18px 66px !important;
    border: 1px solid var(--dash-border);
    border-radius: 14px;
    background: var(--dash-panel) !important;
    background-image: none !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 24px 48px -20px rgba(0, 0, 0, 0.45) !important;
    color: var(--dash-text) !important;
    font-size: .92rem;
    line-height: 1.45;
    opacity: 1;
    overflow: hidden;
    animation: toast_in .35s var(--dash-ease, ease) both;
}

@keyframes toast_in {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(.98);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

html[dir="rtl"] #toast-container>.toast {
    padding: 16px 66px 18px 52px !important;
}

#toast-container>.toast:hover {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 28px 56px -20px rgba(0, 0, 0, 0.5) !important;
}

#toast-container>.toast::before {
    content: "✓";
    position: absolute;
    top: 50%;
    inset-inline-start: 16px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--toast-color);
    box-shadow: 0 0 0 5px var(--toast-soft);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    transform: translateY(-50%);
}

#toast-container>.toast-success {
    --toast-color: var(--dash-success);
    --toast-soft: var(--dash-success-bg);
}

#toast-container>.toast-error {
    --toast-color: var(--dash-danger);
    --toast-soft: rgba(209, 67, 67, .14);
}

#toast-container>.toast-error::before {
    content: "!";
}

#toast-container>.toast-warning,
#toast-container>.toast-info {
    --toast-color: var(--dash-brand-strong);
    --toast-soft: rgba(var(--dash-brand-rgb), .18);
}

#toast-container>.toast-warning::before {
    content: "!";
    color: #1c1c1c;
}

#toast-container>.toast-info::before {
    content: "i";
    color: #1c1c1c;
    font-family: Georgia, serif;
    font-style: italic;
}

#toast-container .toast-title {
    margin-bottom: 2px;
    font-weight: 600;
}

#toast-container .toast-message {
    color: var(--dash-text);
    font-weight: 500;
    word-break: break-word;
}

#toast-container .toast-close-button {
    position: absolute;
    top: 50%;
    right: 14px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    color: var(--dash-muted);
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1;
    text-shadow: none;
    opacity: 1;
    transform: translateY(-50%);
    transition: background .15s ease, color .15s ease;
}

html[dir="rtl"] #toast-container .toast-close-button {
    right: auto;
    left: 14px;
}

#toast-container .toast-close-button:hover {
    background: var(--dash-hover);
    color: var(--dash-text);
}

#toast-container .toast-progress {
    bottom: 0;
    height: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--toast-color, var(--dash-brand));
    opacity: .85;
}

html[dir="rtl"] #toast-container .toast-progress {
    left: auto;
    right: 0;
    border-radius: 3px 0 0 3px;
}

/* End Toasts */

/* Start Bottom Bar (phones) */

.dash_bottom_bar {
    display: none;
}

/* End Bottom Bar */

/* Start Custom email connection */
.mail_wizard {
    height: 100svh;
    display: flex;
    flex-direction: column;
    background: var(--dash-panel);
}

.mail_wizard [hidden] {
    display: none !important;
}

.mail_wizard_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 28px;
    border-bottom: 1px solid var(--dash-border);
}

.mail_wizard_logo img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.mail_wizard_logo {
    display: inline-flex;
    padding: 6px;
    background: var(--dash-on-brand);
    border-radius: 12px;
}

.mail_wizard_identity_action {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.mail_steps {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.mail_steps li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dash-muted);
    font-size: .9rem;
}

.mail_steps li+li::before {
    content: '';
    width: 48px;
    height: 1px;
    background: var(--dash-border-strong);
    margin-inline-end: 14px;
}

.mail_steps li>span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 23px;
    height: 23px;
    border: 1px solid var(--dash-border-strong);
    border-radius: 50%;
    flex-shrink: 0;
}

.mail_steps .is_active,
.mail_steps .is_done {
    color: var(--dash-text);
}

.mail_steps .is_active>span,
.mail_steps .is_done>span {
    background: var(--dash-brand);
    border-color: var(--dash-brand);
    color: var(--dash-on-brand);
}

.mail_wizard_form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.mail_wizard_content {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 44px max(28px, calc((100vw - 1200px) / 2));
    gap: 80px;
    align-items: flex-start;
}

.mail_wizard_fields {
    flex: 1 1 740px;
    min-width: 0;
    max-width: 780px;
}

.mail_wizard_fields h1 {
    font-size: 1.3rem;
    margin: 0;
}

.mail_wizard .mail_intro {
    color: var(--dash-text-soft);
    margin: 8px 0 2.5rem;
}

.mail_notice {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 20px;
    margin-bottom: 26px;
    border: 1px solid var(--dash-border-strong);
    border-radius: var(--dash-radius-sm);
    background: var(--dash-panel-soft);
}

.mail_notice>.icon {
    flex-shrink: 0;
    color: var(--dash-brand);
    width: 22px;
    height: 22px;
}

.mail_notice p {
    color: var(--dash-text-soft);
    margin-bottom: 0;
}

/* Gmail by app password: numbered steps that teach, a sample of what Google shows */
.gmail_ap_list {
    display: grid;
    gap: 12px;
    margin: 0 0 2.5rem;
    padding: 0;
    list-style: none;
}

.gmail_ap_list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.5rem;
}

.gmail_ap_list li>span {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--dash-chip-bg);
    color: var(--dash-brand-strong);
    font-size: .8rem;
    font-weight: 600;
}

.gmail_ap_list p {
    margin: 0;
    color: var(--dash-text);
    line-height: 1.55;
    font-size: 0.9rem;
}

.gmail_ap .dash_btn[target="_blank"] {
    margin-bottom: 22px;
}

.gmail_ap_sample {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 22px;
    padding: 14px 16px;
    border: 1px dashed var(--dash-border-strong);
    border-radius: var(--dash-radius-sm);
    display: none;
}

.gmail_ap_sample small {
    color: var(--dash-muted);
}

.gmail_ap_sample code {
    color: var(--dash-text);
    font-size: 0.95rem;
    letter-spacing: .06em;
}

.gmail_ap_help {
    margin: 10px 0 0;
    padding-inline-start: 18px;
    color: var(--dash-text-soft);
    line-height: 1.6;
}

.gmail_ap_help li {
    margin-bottom: 0.3rem;
}

.mail_provider {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 25px;
    border: 1px solid var(--dash-border-strong);
    border-radius: var(--dash-radius-sm);
    margin-top: 14px;
    min-height: 100px;
}

.mail_provider>.icon {
    width: 28px;
    height: 28px;
    color: var(--dash-text-soft);
    flex-shrink: 0;
}

.mail_provider>div {
    flex: 1;
}

.mail_provider p {
    color: var(--dash-text-soft);
    margin: 5px 0 0;
}

.mail_provider.is_selected {
    border-color: var(--dash-brand);
}

.mail_provider.is_disabled {
    opacity: .55;
}

.mail_wizard_footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 18px max(28px, calc((100vw - 1200px) / 2));
    border-top: 1px solid var(--dash-border);
}

.mail_login_group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 18px 0;
}

.mail_password_field {
    position: relative;
    display: block;
}

.mail_password_field .dash_input {
    padding-inline-end: 48px;
}

.mail_password_field .dash_icon_btn {
    position: absolute;
    inset-inline-end: 4px;
    top: 4px;
    height: 38px;
    width: 38px;
}

.mail_password_field .dash_icon_btn[aria-pressed="true"] {
    color: var(--dash-brand);
}

.mail_advanced {
    margin-top: 28px;
    padding: 24px;
    background: var(--dash-panel-soft);
    border: 1px solid var(--dash-border-strong);
    border-radius: var(--dash-radius-sm);
}

.mail_advanced summary {
    font-weight: 600;
    cursor: pointer;
}

.mail_advanced>p {
    margin: 10px 0 20px;
    color: var(--dash-text-soft);
}

.mail_server_row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 18px 0;
}

.mail_server_row>.dash_field {
    flex: 1;
    min-width: 0;
}

.mail_server_row>.dash_field:first-child {
    flex: 2;
}

.mail_server_row>.dash_field:nth-child(2) {
    flex: 0 0 88px;
}

.mail_separate {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px;
    margin-top: 24px;
    border: 1px solid var(--dash-border);
    border-radius: var(--dash-radius-sm);
    cursor: pointer;
}

.mail_separate p {
    margin: 4px 0 0;
    color: var(--dash-text-soft);
    font-size: .9rem;
}

.mail_separate input {
    width: 20px;
    height: 20px;
    accent-color: var(--dash-brand);
    flex-shrink: 0;
}

.mail_field_error {
    color: var(--dash-danger) !important;
    font-size: .85rem;
}

.mail_field_error:empty {
    display: none;
}

.mail_wizard [aria-invalid="true"] {
    border-color: var(--dash-danger);
}

.mail_error {
    margin-bottom: 20px;
}

.mail_wizard_art {
    flex: 0 1 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 30px;
}

.mail_art_icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
    border-radius: 36px;
    background: var(--dash-chip-bg);
    color: var(--dash-brand);
    transform: rotate(-7deg);
}

.mail_art_icon .icon {
    width: 80px;
    height: 80px;
}

.mail_art_card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--dash-panel);
    border: 1px solid var(--dash-border-strong);
    box-shadow: var(--dash-shadow-lg);
    border-radius: 14px;
    padding: 18px 24px;
    margin: -20px 0 3rem;
    z-index: 1;
}

.mail_art_card .icon {
    color: var(--dash-brand);
}

.mail_wizard_art>p {
    color: var(--dash-text-soft);
    margin-top: 8px;
}

.mail_connections {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

.mail_connection {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px;
    flex-wrap: wrap;
}

.mail_connection_info {
    flex: 1;
    min-width: 180px;
    overflow-wrap: anywhere;
}

.mail_connection_info strong {
    display: block;
}

.mail_connection_info p,
.mail_connection_info small {
    color: var(--dash-text-soft);
    margin-top: 5px;
}

.mail_connection_actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mail_empty {
    padding: 32px;
}

.mail_empty p {
    margin-top: 8px;
    color: var(--dash-text-soft);
}

/* End Custom email connection */

/* Start Inbox: conversations | messages | contact */
.dash_main_inbox {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dash_main_inbox .dash_content_inbox {
    flex: 1;
    min-height: 0;
    width: 100%;
    max-width: none;
    padding: 0;
}

.aside_collapsed .dash_content_inbox {
    padding-inline-start: 0;
}

.aside_collapsed .dash_main_inbox .dash_aside_reopen {
    top: 80px;
}

.inbox_app {
    display: flex;
    height: 100%;
    min-height: 0;
    width: 100%;
    background: var(--dash-panel-soft);
}

.inbox_app [hidden] {
    display: none !important;
}

.inbox_list_panel {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-inline-end: 1px solid var(--dash-border);
    background: var(--dash-panel);
}

.inbox_list_head {
    height: 64px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px;
    border-bottom: 1px solid var(--dash-border);
}

.inbox_list_head>strong {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    font-size: 1rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.inbox_compose_btn {
    background: var(--dash-brand);
    color: var(--dash-on-brand);
    border-radius: 50%;
}

.inbox_tabs {
    display: flex;
    gap: 3px;
    margin: 14px 12px;
    padding: 4px;
    border: 1px solid var(--dash-border-strong);
    border-radius: 10px;
    background: var(--dash-panel-soft);
}

.inbox_tabs button {
    flex: 1;
    border: 0;
    border-radius: 7px;
    padding: 8px 3px;
    color: var(--dash-muted);
    background: none;
    font: inherit;
    font-size: .85rem;
}

.inbox_tabs button.is_active {
    background: var(--dash-panel);
    color: var(--dash-text);
    box-shadow: var(--dash-shadow);
}

.inbox_tabs small {
    color: var(--dash-muted);
    margin-inline-start: 4px;
}

.inbox_search {
    padding: 0 12px 10px;
}

.inbox_list_filters {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border-bottom: 1px solid var(--dash-border);
}

.inbox_list_filters .ts-wrapper {
    flex: 1;
    min-width: 0;
}

.inbox_list_filters .ts-control .item {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.inbox_sync_status {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 16px 4px;
    color: var(--dash-muted);
    font-size: .75rem;
    overflow-wrap: anywhere;
}

.inbox_sync_status::before {
    content: "";
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3f9f6b;
}

.inbox_sync_status:empty {
    display: none;
}

.inbox_conversations {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px 8px 10px;
}

.inbox_thread_row {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 12px 10px;
    border-radius: 12px;
    border: 0;
    background: none;
    color: var(--dash-text);
    text-align: start;
    font: inherit;
    cursor: pointer;
    transition: background-color .15s ease;
}

.inbox_thread_row:hover {
    background: var(--dash-hover);
}

.inbox_thread_row.is_active {
    background: rgba(var(--dash-brand-rgb), 0.12);
}

.inbox_thread_row .contact_avatar {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    font-size: .78rem;
}

.inbox_thread_summary {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.inbox_thread_summary>* {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inbox_thread_summary strong {
    font-weight: 500;
    font-size: .9rem;
}

.inbox_thread_summary>span {
    color: var(--dash-text-soft);
    font-size: .84rem;
}

.inbox_thread_row.is_unread .inbox_thread_summary>span {
    color: var(--dash-text);
}

.inbox_thread_summary small {
    color: var(--dash-muted);
    font-size: .8rem;
}

.inbox_thread_row.is_unread strong {
    font-weight: 650;
}

.inbox_thread_meta {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    padding-top: 1px;
}

.inbox_thread_meta time {
    font-size: .78rem;
    color: var(--dash-muted);
    white-space: nowrap;
}

.inbox_thread_row.is_unread .inbox_thread_meta time {
    color: var(--dash-chip-color);
    font-weight: 600;
}

.inbox_thread_meta b {
    min-width: 20px;
    font-size: .68rem;
    text-align: center;
    background: var(--dash-brand);
    color: var(--dash-on-brand);
    padding: 2px 6px;
    border-radius: 10px;
}

.inbox_more {
    margin: 12px;
}

.inbox_thread_panel {
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 16px;
}

.inbox_compose_form {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
    gap: 14px;
}

.inbox_envelope {
    flex-shrink: 0;
    background: var(--dash-panel);
    border: 1px solid var(--dash-border-strong);
    border-radius: 12px;
}

.inbox_envelope:focus-within {
    border-color: rgba(var(--dash-brand-rgb), 0.6);
    box-shadow: 0 0 0 3px rgba(var(--dash-brand-rgb), 0.1);
}

.inbox_envelope_row {
    display: flex;
    align-items: center;
    min-height: 50px;
    padding: 4px 16px;
    gap: 12px;
}

.inbox_envelope_row+.inbox_envelope_row {
    border-top: 1px solid var(--dash-border);
}

.inbox_envelope_row>label {
    flex: 0 0 62px;
    color: var(--dash-muted);
    font-size: .85rem;
}

.inbox_envelope_row .ts-wrapper {
    flex: 1;
    min-width: 0;
}

.ts-wrapper.plugin-remove_button:not(.rtl) .item .remove {
    border-left: 1px solid #616161;
}

.inbox_envelope_row .ts-control {
    border: none;
    background: transparent !important;
    padding: 4px !important;
    min-height: 32px;
    box-shadow: none !important;
}

.inbox_envelope_row .ts-wrapper.multi .ts-control>div {
    background: var(--dash-hover);
    color: var(--dash-text);
    border-radius: 7px;
    font-size: .9rem;
}

.inbox_envelope_row>input {
    flex: 1;
    min-width: 0;
    height: 32px;
    border: 0;
    outline: 0;
    background: none;
    color: var(--dash-text);
    font: inherit;
}

.inbox_envelope_row input::placeholder {
    color: var(--dash-muted);
}

.inbox_recipient_option {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
}

.inbox_recipient_option>span {
    font-size: .85rem;
    color: var(--dash-text-soft);
    direction: ltr;
}

.inbox_transcript {
    flex: 1;
    min-height: 40px;
    overflow-y: auto;
    padding: 8px 0;
}

.inbox_welcome {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    height: 100%;
    gap: 12px;
    color: var(--dash-muted);
}

.inbox_welcome>.icon {
    width: 60px;
    height: 60px;
}

.inbox_welcome>span {
    font-size: 3rem;
}

.inbox_welcome h2 {
    font-size: 1.25rem;
}

.inbox_message {
    background: var(--dash-panel);
    border: 1px solid var(--dash-border);
    border-radius: 12px;
    padding: 16px;
    margin: 0 0 16px;
}

/* an email takes the full width (not a chat bubble); mine is told by its gold edge */
.inbox_message.is_outgoing {
    border-color: rgba(var(--dash-brand-rgb), .3);
    border-inline-start: 3px solid rgba(var(--dash-brand-rgb), .7);
}

.inbox_message.is_note {
    background: var(--dash-chip-bg);
}

.inbox_message header {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
    font-size: .8rem;
    color: var(--dash-text-soft);
    margin-bottom: 12px;
    overflow-wrap: anywhere;
}

.inbox_message header time {
    color: var(--dash-muted);
    white-space: nowrap;
    font-size: .7rem;
}

.inbox_message_body,
.inbox_preview_body {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    line-height: 1.6;
    font-size: .92rem;
    color: var(--dash-text);
}

/* the email as designed: on white like the sender made it, in a sealed frame as tall as its content */
.inbox_email_html {
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid var(--dash-border);
    background: #fff;
}

.inbox_email_frame {
    display: block;
    width: 100%;
    height: 240px;
    border: 0;
    background: #fff;
}

.inbox_message.is_incoming .inbox_message_body {
    white-space: pre-line;
}

.calendar_toolbar,
.calendar_navigation,
.calendar_actions,
.calendar_filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.calendar_app [hidden],
#calendar_event_modal [hidden] {
    display: none !important;
}

.calendar_toolbar {
    justify-content: space-between;
}

.calendar_navigation {
    gap: 6px;
}

.calendar_navigation h2 {
    min-width: 160px;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -.01em;
    text-align: center;
    text-transform: capitalize;
}

html[dir="rtl"] .calendar_navigation :is([data-calendar-prev], [data-calendar-next]) .icon {
    transform: scaleX(-1);
}

.calendar_filters {
    gap: 8px;
    padding-block: 16px 4px;
    font-size: .82rem;
}

.calendar_filters label,
.calendar_holidays_toggle {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--dash-bg);
    cursor: pointer;
    transition: background-color .2s ease;
}

.calendar_filters label:hover,
.calendar_holidays_toggle:hover {
    background: var(--dash-hover);
}

.calendar_filters a {
    margin-inline-start: auto;
}

.calendar_connection_hint {
    color: var(--dash-muted);
    font-size: .84rem;
}

.calendar_holidays_toggle {
    color: var(--dash-text);
    border: 0;
    font: inherit;
    cursor: pointer;
}

.calendar_holidays_toggle small {
    color: var(--dash-muted);
}

.calendar_holiday_dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: var(--dash-danger);
}

.calendar_holiday {
    display: flex;
    gap: 5px;
    align-items: center;
    margin-bottom: 5px;
    padding: 4px 6px;
    border-radius: 5px;
    color: var(--dash-danger);
    background: color-mix(in srgb, var(--dash-danger) 10%, transparent);
    font-size: .78rem;
    line-height: 1.3;
}

.calendar_holiday b {
    font-size: .64rem;
    letter-spacing: .04em;
    opacity: .75;
}

.calendar_holiday span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar_holiday.is_regional {
    color: var(--dash-muted);
    background: var(--dash-panel-soft);
}

.calendar_day.is_holiday .calendar_day_number {
    color: var(--dash-danger);
}

.calendar_holidays_sub {
    color: var(--dash-muted);
}

#calendar_holidays_modal label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.calendar_holidays_guess {
    margin-block: 10px;
}

.calendar_color_dot {
    background: var(--calendar-color);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.calendar_feedback {
    font-size: .86rem;
    color: var(--dash-text-soft);
    margin-block: 12px;
    overflow-wrap: anywhere;
}

.calendar_weekdays,
.calendar_month_grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar_mobile_week {
    display: none;
}

.calendar_weekdays {
    margin-top: 8px;
}

.calendar_weekdays span {
    padding-block: 10px;
    color: var(--dash-muted);
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-align: center;
}

.calendar_month_grid {
    gap: 6px;
}

.calendar_day {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    min-height: 100px;
    padding: 8px;
    border-radius: 14px;
    background: var(--dash-bg);
    transition: background-color .2s ease;
}

.calendar_day:hover {
    background: var(--dash-hover);
}

.calendar_day.is_outside {
    background: transparent;
    border: 1px solid var(--dash-border);
}

.calendar_day.is_outside .calendar_day_number {
    color: var(--dash-muted);
    opacity: .6;
}

.calendar_day.is_today {
    background: rgba(var(--dash-brand-rgb), .1);
}

.calendar_day_number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-bottom: 2px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--dash-text);
    font: inherit;
    font-size: .84rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.calendar_day_number:hover {
    background: var(--dash-border);
}

.calendar_day.is_today .calendar_day_number {
    background: var(--dash-brand);
    color: var(--dash-on-brand);
}

.calendar_event {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    min-width: 0;
    padding: 5px 8px;
    border: 0;
    border-radius: 8px;
    background: color-mix(in srgb, var(--calendar-color) 14%, transparent);
    color: var(--dash-text);
    font: inherit;
    font-size: .74rem;
    text-align: start;
    cursor: pointer;
    transition: background-color .2s ease;
}

.calendar_event::before {
    content: "";
    flex: none;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--calendar-color);
}

.calendar_event:hover {
    background: color-mix(in srgb, var(--calendar-color) 24%, transparent);
}

.calendar_event span {
    flex: 1;
    overflow: hidden;
    font-weight: 500;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.calendar_event small {
    color: var(--dash-text-soft);
    font-size: .67rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.calendar_event b {
    color: var(--dash-muted);
    font-weight: 400;
}

.calendar_holiday {
    margin-bottom: 0;
    border-radius: 8px;
}

.calendar_more {
    align-self: flex-start;
    padding: 2px 8px;
    border: 0;
    border-radius: 999px;
    background: var(--dash-panel-soft);
    color: var(--dash-text-soft);
    font: inherit;
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
}

.calendar_more:hover {
    background: var(--dash-border);
}

.calendar_agenda {
    display: none;
    padding-top: 20px;
}

.calendar_agenda.is_open {
    display: block;
}

.calendar_agenda section {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.calendar_agenda h3 {
    margin: 0 0 4px;
    color: var(--dash-muted);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .04em;
}

.calendar_agenda .calendar_event {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: .9rem;
}

.calendar_agenda .calendar_event::before {
    width: 8px;
    height: 8px;
}

.calendar_agenda .calendar_event small {
    order: 3;
    font-size: .8rem;
}

.calendar_agenda>p {
    padding: 28px 12px;
    border-radius: 14px;
    background: var(--dash-bg);
    color: var(--dash-muted);
    font-size: .88rem;
    text-align: center;
}

@media (max-width: 1100px) and (min-width: 700.02px) {
    .calendar_day {
        min-height: 96px;
        padding: 6px;
    }

    .calendar_event small,
    .calendar_event b {
        display: none;
    }

    .calendar_month_grid {
        gap: 4px;
    }
}

.calendar_selection {
    max-width: 800px;
}

.calendar_check_list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.calendar_check_list label {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--dash-border);
    padding: 16px;
    border-radius: var(--dash-radius-sm);
    cursor: pointer;
}

.calendar_check_list label strong,
.calendar_check_list label small {
    display: block;
}

.calendar_check_list label small {
    color: var(--dash-muted);
    font-size: .8rem;
}

#calendar_event_modal .modal-header {
    background: var(--dash-panel);
    color: var(--dash-text);
    border-radius: 24px 24px 0 0;
}

#calendar_event_modal .modal-header,
#calendar_event_modal .modal-footer {
    border-color: var(--dash-border);
    padding: 20px 24px;
}

#calendar_event_modal form {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

#calendar_event_modal .modal-body {
    padding: 24px;
    overflow-y: auto;
}

.calendar_editor_fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.calendar_editor_fields label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: .9rem;
}

.calendar_editor_fields label.calendar_inline_check {
    flex-direction: row;
    align-items: center;
}

.calendar_time_fields {
    display: flex;
    gap: 14px;
}

.calendar_time_fields label {
    flex: 1;
    min-width: 0;
}

.calendar_editor_fields .dash_input {
    width: 100%;
}

.calendar_editor_fields small {
    color: var(--dash-muted);
}

.calendar_preview {
    border: 1px solid var(--dash-border);
    border-radius: var(--dash-radius);
    padding: 20px;
    overflow-wrap: anywhere;
}

.calendar_preview h3 {
    margin-top: 0;
}

.calendar_preview p {
    white-space: pre-line;
}

.calendar_overlap {
    color: var(--dash-brand-strong);
}

.calendar_app input[type=checkbox],
.calendar_selection input[type=checkbox],
#calendar_event_modal input[type=checkbox] {
    accent-color: var(--dash-brand);
}

@media (max-width: 700px) {
    .calendar_app {
        padding: 16px;
    }

    .calendar_month_grid,
    .calendar_weekdays {
        display: none;
    }

    .calendar_mobile_week {
        display: grid;
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 3px;
        margin-top: 12px;
        padding: 6px;
        border-radius: 18px;
        background: var(--dash-bg);
    }

    .calendar_mobile_day {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 7px;
        min-width: 0;
        padding: 9px 1px;
        border: 0;
        border-radius: 13px;
        background: transparent;
        color: var(--dash-text-soft);
        font: inherit;
        cursor: pointer;
    }

    .calendar_mobile_day.is_selected {
        background: var(--dash-brand);
        color: var(--dash-on-brand);
    }

    .calendar_mobile_day.is_selected .calendar_mobile_weekday,
    .calendar_mobile_day.is_selected .calendar_mobile_date {
        color: var(--dash-on-brand);
    }

    .calendar_mobile_day.is_selected .calendar_mobile_marker.has_events {
        border-color: transparent;
        background: rgba(0, 0, 0, .12);
        color: var(--dash-on-brand);
    }

    .calendar_mobile_day.is_selected .calendar_mobile_dot {
        background: var(--dash-on-brand);
    }

    .calendar_mobile_day:focus-visible {
        outline: 2px solid var(--dash-brand);
        outline-offset: 2px;
    }

    .calendar_mobile_weekday {
        max-width: 100%;
        overflow: hidden;
        color: var(--dash-muted);
        font-size: .64rem;
        line-height: 1.2;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    html[dir="rtl"] .calendar_mobile_weekday {
        font-size: .63rem;
    }

    .calendar_mobile_date {
        font-size: .88rem;
        font-weight: 600;
        line-height: 1;
    }

    .calendar_mobile_day.is_today .calendar_mobile_date {
        color: var(--dash-brand);
    }

    .calendar_mobile_day.is_selected.is_today .calendar_mobile_date {
        color: var(--dash-on-brand);
    }

    .calendar_mobile_marker {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 20px;
        height: 20px;
        border: 0;
        border-radius: 50%;
        color: var(--dash-brand);
        font-size: .65rem;
        font-weight: 700;
    }

    .calendar_mobile_marker.has_events {
        background: rgba(var(--dash-brand-rgb), .14);
    }

    .calendar_mobile_dot,
    .calendar_mobile_holiday_dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: var(--dash-brand);
    }

    .calendar_mobile_marker.has_holiday {
        background: color-mix(in srgb, var(--dash-danger) 12%, transparent);
    }

    .calendar_mobile_holiday_dot {
        background: var(--dash-danger);
    }

    .calendar_agenda {
        display: block;
        padding-top: 12px;
    }

    .calendar_toolbar {
        align-items: stretch;
    }

    .calendar_navigation {
        flex: 1 1 100%;
        justify-content: center;
        gap: 8px;
    }

    .calendar_navigation h2 {
        min-width: 150px;
    }

    .calendar_actions {
        width: 100%;
    }

    .calendar_actions .dash_btn {
        flex: 1;
    }

    .calendar_time_fields {
        flex-direction: column;
    }
}

.inbox_message_body a.inbox_email_link {
    color: var(--dash-brand-strong);
    text-decoration: underline;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

.inbox_message_body a.inbox_email_link:hover,
.inbox_message_body a.inbox_email_link:focus-visible {
    color: var(--dash-text);
}

/* the real site next to a word-only link ("Sign in · anthropic.com"), so a disguised link shows where it goes */
.inbox_message_body .inbox_email_domain {
    display: inline-block;
    margin-inline-start: 4px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--dash-panel-soft);
    border: 1px solid var(--dash-border);
    color: var(--dash-text-soft);
    font-size: .75em;
    line-height: 1.6;
    text-decoration: none;
    vertical-align: 1px;
}

.inbox_message [data-inbox-refresh-content] {
    margin-top: 10px;
}

.inbox_message footer {
    margin-top: 12px;
    font-size: .73rem;
    color: var(--dash-muted);
}

.inbox_composer:focus-within {
    border-color: rgba(var(--dash-brand-rgb), 0.6);
    box-shadow: 0 0 0 3px rgba(var(--dash-brand-rgb), 0.1);
}

.inbox_composer>textarea {
    display: block;
    width: 100%;
    min-height: 100px;
    max-height: 220px;
    resize: none;
    border: 0;
    outline: 0;
    border-radius: 12px;
    padding: 14px;
    background: transparent;
    color: var(--dash-text);
    font: inherit;
}

.inbox_composer>textarea::placeholder {
    color: var(--dash-muted);
}

.inbox_composer {
    border: 1px solid var(--dash-border-strong);
    border-radius: 12px;
    background: var(--dash-panel);
    box-shadow: var(--dash-shadow);
    flex-shrink: 0;
    container-type: inline-size;
}

.inbox_composer_toolbar {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 8px 10px;
    flex-wrap: nowrap;
    border-top: 1px solid var(--dash-border);
}

/* narrow writing area (menu + list + contact all open): tools become icons only */
@container (max-width: 520px) {

    .inbox_tool>span,
    .inbox_tool>small {
        display: none;
    }
}

.inbox_tool {
    border: 0;
    background: transparent;
    display: inline-flex;
    gap: 5px;
    align-items: center;
    font: inherit;
    font-size: .8rem;
    color: var(--dash-muted);
    padding: 8px;
    border-radius: 8px;
}

.inbox_tool:hover {
    color: var(--dash-text);
    background: var(--dash-hover);
}

.inbox_tool small {
    font-size: .6rem;
}

.inbox_composer_toolbar .dash_icon_btn {
    width: 32px;
    height: 32px;
}

.inbox_composer_toolbar .contact_dropdown_menu {
    top: auto;
    bottom: calc(100% + 6px);
    max-width: min(280px, calc(100vw - 40px));
}

.inbox_draft_status {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: .7rem;
    color: var(--dash-muted);
    padding: 0 4px;
}

.inbox_send {
    padding: 8px 16px;
    min-height: 36px;
    height: 36px;
}

.inbox_file_chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--dash-border);
    background: var(--dash-panel-soft);
    color: var(--dash-text-soft);
    border-radius: 7px;
    padding: 6px 8px;
    font-size: .8rem;
    margin: 4px;
    overflow-wrap: anywhere;
}

.inbox_file_chip button {
    background: none;
    border: 0;
    color: var(--dash-muted);
    font-size: 1rem;
}

.inbox_composer_files {
    padding: 0 8px;
}

.inbox_note_mode .inbox_composer {
    background: var(--dash-chip-bg);
}

.inbox_note_mode .inbox_envelope {
    opacity: .5;
}

.inbox_thread_toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    padding-bottom: 12px;
}

.inbox_thread_actions {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.inbox_thread_actions>strong {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.inbox_feedback {
    border: 1px solid var(--dash-border);
    background: var(--dash-panel);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 12px;
    font-size: .85rem;
}

.inbox_feedback.is_error {
    color: var(--dash-danger);
}

.inbox_contact_panel {
    flex: 0 0 280px;
    overflow-y: auto;
    border-inline-start: 1px solid var(--dash-border);
    background: var(--dash-panel);
}

.inbox_app.is_contact_closed .inbox_contact_panel {
    display: none;
}

.inbox_contact_panel>header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 74px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--dash-border);
}

.inbox_contact_panel>header button {
    display: inline-flex;
}

.inbox_contact_identity {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 26px 18px 22px;
    text-align: center;
    overflow-wrap: anywhere;
}

.inbox_contact_identity .contact_avatar.large {
    width: 64px;
    height: 64px;
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.inbox_contact_identity>strong {
    font-size: 0.95rem;
    font-weight: 600;
}

.inbox_contact_identity>span[dir] {
    color: var(--dash-text-soft);
    font-size: .85rem;
}

.inbox_contact_identity>small:not(:empty) {
    margin-top: 4px;
    padding: 2px 10px;
    border-radius: 100px;
    background: var(--dash-hover);
    color: var(--dash-text-soft);
    font-size: .75rem;
}

.inbox_contact_identity>a {
    margin-top: 10px;
    padding: 6px 14px;
    border-radius: 9px;
    border: 1px solid var(--dash-border-strong);
    color: var(--dash-text) !important;
    font-size: .82rem;
    font-weight: 500;
}

.inbox_contact_identity>a:hover {
    background: var(--dash-hover);
}

.inbox_contact_panel details {
    border-top: 1px solid var(--dash-border);
}

.inbox_contact_panel summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    cursor: pointer;
    padding: 15px 20px;
    color: var(--dash-text);
    font-size: .88rem;
    font-weight: 500;
    transition: background-color .15s ease;
}

.inbox_contact_panel summary::-webkit-details-marker {
    display: none;
}

.inbox_contact_panel summary::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-top: -4px;
    border: solid var(--dash-muted);
    border-width: 0 1.6px 1.6px 0;
    transform: rotate(45deg);
    transition: transform .2s ease, margin .2s ease;
}

.inbox_contact_panel details[open]>summary::after {
    margin-top: 3px;
    transform: rotate(-135deg);
}

.inbox_contact_panel summary:hover {
    background: var(--dash-panel-soft);
}

.inbox_contact_values {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 20px 18px;
    font-size: .85rem;
    color: var(--dash-text-soft);
}

.inbox_contact_values>p,
.inbox_contact_values>textarea,
.inbox_contact_values>.dash_btn {
    flex-basis: 100%;
}

.inbox_contact_values .dash_btn {
    margin: 0 !important;
    justify-content: center;
}

.inbox_contact_values>p {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0 0 6px;
}

.inbox_contact_values>p strong {
    color: var(--dash-muted);
    font-size: .75rem;
    font-weight: 500;
}

.inbox_contact_values>textarea {
    height: 76px;
    padding: 10px 12px;
    font-size: .85rem;
    margin: 6px 0 2px;
}

.inbox_contact_note {
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--dash-panel-soft);
    border: 1px solid var(--dash-border);
    color: var(--dash-text);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.inbox_contact_note small {
    color: var(--dash-muted);
    font-size: .7rem;
}

.inbox_contact_hint {
    padding: 24px 20px;
    color: var(--dash-muted);
    font-size: .85rem;
}

.inbox_contact_panel .dash_btn {
    margin: 0 18px 18px;
}

.inbox_sidebar_file {
    display: block;
    padding: 8px 20px;
    font-size: .85rem;
    overflow-wrap: anywhere;
}

.inbox_preview_meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.inbox_preview_meta dt {
    flex: 0 0 70px;
    color: var(--dash-muted);
}

.inbox_preview_meta dd {
    flex: 1 0 calc(100% - 90px);
    margin: 0;
    overflow-wrap: anywhere;
}

.inbox_preview_body {
    padding: 16px;
    background: var(--dash-panel-soft);
    border-radius: 10px;
}

.inbox_mobile_bar {
    display: none;
}

.inbox_contact_button {
    display: inline-flex;
    flex-shrink: 0;
}

.inbox_composer_toolbar .inbox_emoji_menu {
    display: grid;
    grid-template-columns: repeat(6, 36px);
    gap: 2px;
    width: auto;
    min-width: 0;
    padding: 8px;
}

.inbox_composer_toolbar .inbox_emoji_menu button {
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 9px;
    font-size: 1.25rem;
    line-height: 1;
    transition: background-color .12s ease, transform .12s ease;
}

.inbox_composer_toolbar .inbox_emoji_menu button:hover {
    background: var(--dash-hover);
    transform: scale(1.12);
}

/* one calm colour per person (inbox list + contact card) */
.contact_avatar[class*="avatar_tone_"] {
    background: hsl(var(--tone) 42% 50% / 0.16);
    color: hsl(var(--tone) 45% 32%);
}

:root[data-theme="dark"] .contact_avatar[class*="avatar_tone_"] {
    background: hsl(var(--tone) 35% 55% / 0.2);
    color: hsl(var(--tone) 60% 76%);
}

.avatar_tone_0 {
    --tone: 40;
}

.avatar_tone_1 {
    --tone: 14;
}

.avatar_tone_2 {
    --tone: 150;
}

.avatar_tone_3 {
    --tone: 195;
}

.avatar_tone_4 {
    --tone: 222;
}

.avatar_tone_5 {
    --tone: 268;
}

.avatar_tone_6 {
    --tone: 332;
}

.avatar_tone_7 {
    --tone: 95;
}

/* send now | ▾ send later */
.inbox_send_group {
    display: inline-flex;
    align-items: stretch;
}

.inbox_send_group .inbox_send {
    border-start-end-radius: 0;
    border-end-end-radius: 0;
}

.inbox_send_more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    min-height: 36px;
    height: 36px;
    padding: 0;
    border-start-start-radius: 0;
    border-end-start-radius: 0;
    border-inline-start: 1px solid rgba(0, 0, 0, 0.12);
}

.inbox_send_more .icon {
    width: 16px;
    height: 16px;
}

.inbox_send_group.open .inbox_send_more .icon {
    transform: rotate(180deg);
}

.inbox_composer_toolbar .inbox_schedule_menu {
    min-width: 290px;
    max-width: min(320px, calc(100vw - 32px));
    padding: 6px;
}

.inbox_schedule_head {
    padding: 8px 10px 6px;
    color: var(--dash-muted);
    font-size: .78rem;
    font-weight: 500;
}

.inbox_schedule_menu button {
    justify-content: space-between;
    gap: 16px;
}

.inbox_schedule_menu button time {
    color: var(--dash-muted);
    font-size: .82rem;
    white-space: nowrap;
}

.inbox_schedule_menu button[data-inbox-schedule="custom"] {
    justify-content: flex-start;
}

.inbox_schedule_line {
    height: 1px;
    margin: 4px 6px;
    background: var(--dash-border);
}

.inbox_thread_scheduled {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    width: fit-content;
    margin-top: 2px;
    padding: 1px 8px;
    border-radius: 6px;
    background: rgba(var(--dash-brand-rgb), 0.12);
    color: var(--dash-chip-color);
    font-size: .78rem;
    font-style: normal;
}

.inbox_message.is_outgoing:has([data-inbox-unschedule]) {
    border-style: dashed;
}

.inbox_message [data-inbox-unschedule] {
    margin-top: 10px;
}

.inbox_preview_schedule {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(var(--dash-brand-rgb), 0.12);
    color: var(--dash-text);
    font-size: .9rem;
}

.inbox_preview_schedule .icon {
    width: 18px;
    height: 18px;
    color: var(--dash-chip-color);
}

/* "Show inboxes": the Inbox menu opens and closes from the list header */
.inbox_aside_toggle {
    flex-shrink: 0;
}

.dash_main_inbox .dash_aside_reopen {
    display: none !important;
}

/* small tooltip for icon buttons */
[data-dash-tip] {
    position: relative;
}

[data-dash-tip]::after {
    content: attr(data-dash-tip);
    position: absolute;
    top: calc(100% + 8px);
    inset-inline-start: 50%;
    z-index: 60;
    padding: 5px 9px;
    border-radius: 7px;
    background: #1f1f1f;
    color: #fff;
    font-size: .75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -3px);
    transition: opacity .15s ease, transform .2s var(--dash-ease);
}

html[dir="rtl"] [data-dash-tip]::after {
    transform: translate(50%, -3px);
}

[data-dash-tip]:hover::after {
    opacity: 1;
    transform: translate(-50%, 0);
    transition-delay: .3s;
}

html[dir="rtl"] [data-dash-tip]:hover::after {
    transform: translate(50%, 0);
}

/* selecting conversations: hover a card → checkbox instead of the avatar, "…" for its own actions */
.inbox_row_lead {
    position: relative;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
}

.inbox_row_lead .contact_avatar {
    transition: opacity .15s ease;
}

.inbox_row_check {
    position: absolute;
    inset: 0;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease;
}

.inbox_thread_row:hover .inbox_row_check,
.inbox_thread_row.is_selected .inbox_row_check,
.inbox_app.is_selecting .inbox_row_check {
    opacity: 1;
    pointer-events: auto;
}

.inbox_thread_row:hover .inbox_row_lead .contact_avatar,
.inbox_thread_row.is_selected .inbox_row_lead .contact_avatar,
.inbox_app.is_selecting .inbox_row_lead .contact_avatar {
    opacity: 0;
}

.inbox_thread_row.is_selected,
.inbox_thread_row.is_selected:hover {
    background: rgba(var(--dash-brand-rgb), 0.1);
}

.inbox_check {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.inbox_check input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.inbox_check span {
    position: relative;
    display: inline-flex;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 1.6px solid var(--dash-border-strong);
    background: var(--dash-panel);
    transition: background-color .15s ease, border-color .15s ease;
}

.inbox_check:hover span {
    border-color: var(--dash-muted);
}

.inbox_check input:checked+span,
.inbox_check input:indeterminate+span {
    border-color: var(--dash-brand);
    background: var(--dash-brand);
}

.inbox_check input:checked+span::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 6px;
    width: 5px;
    height: 9px;
    border: solid var(--dash-on-brand);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.inbox_check input:indeterminate+span::after {
    content: "";
    position: absolute;
    top: 8px;
    left: 4px;
    width: 9px;
    height: 2px;
    border-radius: 2px;
    background: var(--dash-on-brand);
}

.inbox_row_menu {
    opacity: 0;
    transition: opacity .15s ease;
}

.inbox_row_menu .dash_icon_btn {
    width: 26px;
    height: 26px;
}

.inbox_thread_row:hover .inbox_row_menu,
.inbox_thread_row:focus-within .inbox_row_menu,
.inbox_row_menu.open {
    opacity: 1;
}

.inbox_row_menu .contact_dropdown_menu {
    min-width: 210px;
}

.inbox_thread_row:has(.inbox_row_menu.open) {
    z-index: 5;
}

/* the selection bar takes the place of the filter row */
.inbox_bulk_bar {
    display: none;
    align-items: center;
    gap: 4px;
    min-height: 47px;
    padding: 0 12px 12px 16px;
    border-bottom: 1px solid var(--dash-border);
}

.inbox_bulk_bar>strong {
    flex: 1;
    margin-inline-start: 8px;
    font-size: .9rem;
    font-weight: 600;
    white-space: nowrap;
}

.inbox_app.is_selecting .inbox_bulk_bar {
    display: flex;
}

.inbox_app.is_selecting .inbox_list_filters {
    display: none;
}

/* buttons at the screen edge: the tip opens toward the inside, so it never pushes the page sideways */
.inbox_bulk_bar [data-dash-tip]::after,
html [data-dash-tip][data-dash-tip-end]::after {
    inset-inline-start: auto;
    inset-inline-end: 0;
    transform: translate(0, -3px);
}

.inbox_bulk_bar [data-dash-tip]:hover::after,
html [data-dash-tip][data-dash-tip-end]:hover::after {
    transform: none;
}

/* End Inbox */

/* ===== Agent chat: the owner talks with their agent (text, files, voice → answers and actions) ===== */
.achat_page {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

.achat {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    height: 100%;
    min-height: 0;
}

.achat_side {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
    padding: 14px;
    border-inline-end: 1px solid var(--dash-border);
    background: var(--dash-panel-soft);
}

.achat_side_head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.achat_side_head>div {
    min-width: 0;
}

.achat_side_head strong {
    display: block;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.achat_side_head small {
    color: var(--dash-muted);
    font-size: .78rem;
}

.achat_side_bot,
.achat_avatar {
    display: inline-flex;
    flex-shrink: 0;
}

html[dir="rtl"] .achat_side_head .dash_icon_btn .icon {
    transform: scaleX(-1);
}

.achat_new {
    justify-content: center;
    width: 100%;
}

.achat_search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border-radius: 11px;
    border: 1px solid var(--dash-border);
    background: var(--dash-panel);
    color: var(--dash-muted);
}

.achat_search .icon {
    width: 16px;
    height: 16px;
}

.achat_search input {
    flex: 1;
    min-width: 0;
    padding: 9px 0;
    border: 0;
    background: transparent;
    color: var(--dash-text);
    outline: none;
}

.achat_list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0 -6px;
    padding: 0 6px;
}

.achat_item {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 9px 11px;
    border-radius: 10px;
    color: var(--dash-text-soft);
    font-size: .9rem;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}

.achat_item[hidden] {
    display: none;
}

.achat_item span {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.achat_item small {
    flex-shrink: 0;
    color: var(--dash-muted);
    font-size: .78rem;
}

.achat_item:hover {
    background: var(--dash-hover);
    color: var(--dash-text);
}

.achat_item.is_active {
    background: var(--dash-panel);
    color: var(--dash-text);
    box-shadow: var(--dash-shadow);
    font-weight: 500;
}

.achat_list_empty {
    padding: 10px 11px;
    color: var(--dash-muted);
    font-size: .85rem;
}

.achat_side_foot {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--dash-border);
    font-size: .85rem;
}

.achat_tools {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.achat_tool {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px dashed var(--dash-border-strong);
    color: var(--dash-muted);
    font-size: .76rem;
}

.achat_tool .icon {
    width: 13px;
    height: 13px;
}

.achat_tool.is_on {
    border: 1px solid rgba(70, 195, 125, 0.45);
    background: rgba(70, 195, 125, 0.08);
    color: #2f9a5e;
}

/* main column */
.achat_main {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    background: var(--dash-bg);
}

.achat_head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 22px;
    border-bottom: 1px solid var(--dash-border);
    background: var(--dash-panel);
}

.achat_head strong {
    flex: 1;
    min-width: 0;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.achat_head_meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.achat_head_meta .dash_badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}

.achat_head_meta .dash_badge .icon {
    width: 13px;
    height: 13px;
}

.achat_side_toggle {
    display: none;
}

.achat_scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 28px 22px 12px;
}

.achat_thread,
.achat_empty,
.achat_composer {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
}

.achat_thread {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* empty: the agent says hello and shows what it can do */
.achat_empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4vh 0 20px;
    text-align: center;
}

.achat_empty[hidden] {
    display: none;
}

.achat_empty h1 {
    margin-top: 14px;
    font-size: 1.4rem;
    font-weight: 600;
}

.achat_empty>p {
    max-width: 520px;
    margin-top: 6px;
    color: var(--dash-text-soft);
    line-height: 1.55;
    font-size: 0.88rem;
}

.achat_suggestions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    max-width: 640px;
    margin-top: 28px;
}

.achat_suggestion {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 2px 12px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--dash-border);
    background: var(--dash-panel);
    color: var(--dash-text);
    text-align: start;
    cursor: pointer;
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.achat_suggestion .dash_chip {
    grid-row: span 2;
}

.achat_suggestion strong {
    font-size: .92rem;
    font-weight: 600;
}

.achat_suggestion small {
    color: var(--dash-muted);
    font-size: .8rem;
    line-height: 1.4;
}

.achat_suggestion:hover {
    border-color: rgba(var(--dash-brand-rgb), 0.5);
    box-shadow: var(--dash-shadow);
    transform: translateY(-1px);
}

/* messages */
.achat_msg {
    display: flex;
    gap: 10px;
    max-width: 88%;
}

.achat_msg.is_user {
    flex-direction: column;
    align-items: flex-end;
    align-self: flex-end;
}

.achat_msg.is_bot {
    align-self: flex-start;
    align-items: flex-start;
}

.achat_bot_body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.achat_bubble {
    min-width: 0;
    padding: 11px 15px;
    border-radius: 18px;
    line-height: 1.6;
}

.achat_bubble p {
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.achat_msg.is_user .achat_bubble {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-end-end-radius: 6px;
    background: #1f1f1f;
    color: #fff;
}

:root[data-theme="dark"] .achat_msg.is_user .achat_bubble {
    background: var(--dash-brand);
    color: var(--dash-on-brand);
}

.achat_msg.is_bot .achat_bubble {
    border-end-start-radius: 6px;
    border: 1px solid var(--dash-border);
    background: var(--dash-panel);
}

.achat_bubble a.inbox_email_link {
    color: var(--dash-brand-strong);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* a link in a chat (agent chat and test chat): on its own line, the address in full, a Copy button beside it (RV_CHAT_LINKS) */
.chat_link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 8px 0;
}

.chat_link_name {
    font-weight: 600;
}

.chat_link_row {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    padding: 6px 6px 6px 12px;
    border: 1px solid var(--dash-border-strong);
    border-radius: 12px;
    background: var(--dash-panel-soft);
}

.chat_link_url {
    flex: 1;
    min-width: 0;
    color: var(--dash-brand-strong);
    text-align: left;
    text-decoration: underline;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
    user-select: all;
}

.chat_link_menu {
    position: relative;
    flex-shrink: 0;
}

.chat_link_menu summary {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--dash-border);
    border-radius: 9px;
    background: var(--dash-panel);
    color: var(--dash-text);
    cursor: pointer;
    list-style: none;
}

.chat_link_menu summary::-webkit-details-marker {
    display: none;
}

.chat_link_menu summary svg,
.chat_link_items svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.chat_link_menu[open] summary,
.chat_link_menu summary:hover {
    border-color: var(--dash-brand);
    color: var(--dash-brand-strong);
}

.chat_link_items {
    position: absolute;
    top: calc(100% + 6px);
    inset-inline-end: 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
    min-width: 200px;
    padding: 6px;
    border: 1px solid var(--dash-border);
    border-radius: 12px;
    background: var(--dash-panel);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
}

.chat_link_items button,
.chat_link_items a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border: 0;
    border-radius: 8px;
    background: none;
    color: var(--dash-text);
    font-size: .88rem;
    font-weight: 500;
    text-align: start;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.chat_link_items button:hover,
.chat_link_items a:hover,
.chat_link_items .is_copied {
    background: var(--dash-hover);
    color: var(--dash-brand-strong);
}

.achat_msg.is_error .achat_bubble {
    border-color: rgba(209, 67, 67, 0.35);
    color: var(--dash-danger);
}

.achat_time {
    padding: 0 6px;
    color: var(--dash-muted);
    font-size: .78rem;
}

.achat_dots {
    display: inline-flex;
    gap: 4px;
    vertical-align: middle;
}

.achat_dots i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--dash-muted);
    animation: achatDot 1.2s ease-in-out infinite;
}

.achat_dots i:nth-child(2) {
    animation-delay: .15s;
}

.achat_dots i:nth-child(3) {
    animation-delay: .3s;
}

@keyframes achatDot {

    0%,
    60%,
    100% {
        opacity: .3;
        transform: translateY(0);
    }

    30% {
        opacity: 1;
        transform: translateY(-3px);
    }
}

.achat_msg.is_typing small {
    color: var(--dash-muted);
}

/* what came with a message */
.achat_images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 6px;
    max-width: 380px;
}

.achat_images img {
    display: block;
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
}

.achat_voice {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 260px;
}

.achat_voice audio {
    width: 100%;
    height: 36px;
}

.achat_transcript {
    font-size: .88rem;
    opacity: .9;
    font-style: italic;
}

.achat_transcript small {
    display: block;
    font-style: normal;
    font-size: .7rem;
    opacity: .7;
    letter-spacing: .04em;
}

.achat_doc {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: inherit;
    text-decoration: none;
}

.achat_doc_icon,
.achat_file_icon {
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(var(--dash-brand-rgb), 0.18);
    color: var(--dash-chip-color);
    font-size: .68rem;
    font-weight: 700;
}

.achat_doc b {
    display: block;
    font-size: .85rem;
    font-weight: 600;
}

.achat_doc small {
    opacity: .7;
    font-size: .75rem;
}

/* action cards */
.achat_cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.achat_card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
}

.achat_card>div {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.achat_card small {
    color: #2f9a5e;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .04em;
}

.achat_card strong {
    font-weight: 600;
}

.achat_card span {
    color: var(--dash-text-soft);
    font-size: .85rem;
}

.achat_card_icon {
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(70, 195, 125, 0.15);
    color: #2f9a5e;
    font-weight: 700;
}

.achat_card.is_exists small,
.achat_card.is_warn small {
    color: var(--dash-chip-color);
}

.achat_card.is_warn .achat_card_icon {
    background: rgba(var(--dash-brand-rgb), 0.15);
    color: var(--dash-chip-color);
}

/* the email the owner approves */
.achat_email {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(620px, 100%);
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(var(--dash-brand-rgb), 0.5);
    background: var(--dash-panel);
    box-shadow: var(--dash-shadow);
}

.achat_email_head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.achat_email_head strong {
    display: block;
    font-weight: 600;
}

.achat_email_head small {
    color: var(--dash-muted);
    font-size: .8rem;
}

.achat_email dl {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
}

.achat_email dl>div {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
}

.achat_email dt {
    color: var(--dash-muted);
    font-size: .82rem;
    font-weight: 500;
}

.achat_email dd {
    margin: 0;
    font-size: .9rem;
    overflow-wrap: anywhere;
}

.achat_email .dash_input {
    width: 100%;
}

.achat_email_body {
    min-height: 130px;
    line-height: 1.55;
    resize: vertical;
    white-space: pre-wrap;
}

.achat_email_body.is_read {
    min-height: 0;
    max-height: 220px;
    overflow-y: auto;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--dash-panel-soft);
    color: var(--dash-text-soft);
    font-size: .9rem;
}

.achat_email_foot {
    display: flex;
    align-items: center;
    gap: 8px;
}

.achat_email_foot small {
    flex: 1;
    color: var(--dash-muted);
    font-size: .78rem;
}

.achat_email.is_sent {
    border-color: rgba(70, 195, 125, 0.5);
}

.achat_email.is_cancelled {
    border-color: var(--dash-border);
    opacity: .7;
}

.achat_email.is_failed,
.achat_email.is_unknown {
    border-color: rgba(209, 67, 67, 0.4);
}

/* composer */
.achat_composer {
    position: relative;
    padding: 10px 22px 18px;
    max-width: calc(860px + 44px);
}

.achat_input,
.achat_recording {
    border-radius: 20px;
    border: 1px solid var(--dash-border-strong);
    background: var(--dash-panel);
    box-shadow: var(--dash-shadow-lg);
}

.achat_input:focus-within {
    border-color: rgba(var(--dash-brand-rgb), 0.6);
}

.achat_input textarea {
    display: block;
    width: 100%;
    max-height: 220px;
    padding: 16px 18px 6px;
    border: 0;
    background: transparent;
    color: var(--dash-text);
    font: inherit;
    line-height: 1.5;
    resize: none;
    outline: none;
}

.achat_input_tools {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px 10px;
}

.achat_hint {
    flex: 1;
    color: var(--dash-muted);
    font-size: .75rem;
    text-align: end;
    padding-inline-end: 6px;
}

.achat_send {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--dash-brand);
    color: var(--dash-on-brand);
}

.achat_send:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.achat_files {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.achat_files[hidden] {
    display: none;
}

.achat_file {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 280px;
    padding: 6px 30px 6px 6px;
    border-radius: 12px;
    border: 1px solid var(--dash-border);
    background: var(--dash-panel);
}

.achat_file img {
    width: 38px;
    height: 38px;
    object-fit: cover;
    border-radius: 9px;
}

.achat_file_text {
    min-width: 0;
}

.achat_file_text b {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.achat_file_text small {
    color: var(--dash-muted);
    font-size: .78rem;
}

.achat_file.is_uploading {
    opacity: .7;
}

.achat_file.is_uploading .achat_file_text small {
    animation: aiPulse 1.4s ease-in-out infinite;
}

.achat_file.is_error {
    border-color: rgba(209, 67, 67, 0.45);
}

.achat_file.is_error small {
    color: var(--dash-danger);
}

.achat_file_remove {
    position: absolute;
    top: 6px;
    inset-inline-end: 6px;
    width: 20px;
    height: 20px;
    border: 0;
    border-radius: 50%;
    background: var(--dash-panel-soft);
    color: var(--dash-muted);
    line-height: 1;
    cursor: pointer;
}

.achat_recording {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 10px 10px 18px;
}

.achat_recording[hidden],
.achat_input[hidden] {
    display: none;
}

.achat_rec_dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e5484d;
    box-shadow: 0 0 0 0 rgba(229, 72, 77, 0.5);
    animation: achatRec 1.4s ease-out infinite;
}

@keyframes achatRec {
    to {
        box-shadow: 0 0 0 10px rgba(229, 72, 77, 0);
    }
}

.achat_rec_time {
    min-width: 42px;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.achat_rec_wave {
    flex: 1;
    min-width: 0;
    height: 40px;
}

.achat_input {
    position: relative;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

/* files dragged over the chat: the message box itself is the target (like ChatGPT) */
.achat_input.is_dragging {
    border: 2px dashed var(--dash-brand);
    background: rgba(var(--dash-brand-rgb), 0.06);
    box-shadow: 0 0 0 6px rgba(var(--dash-brand-rgb), 0.12), var(--dash-shadow-lg);
}

.achat_drop {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 18px;
    color: var(--dash-chip-color);
    font-weight: 600;
    pointer-events: none;
    background: rgba(var(--dash-brand-rgb), 0.1);
}

.achat_drop .icon {
    width: 20px;
    height: 20px;
}

.achat_drop[hidden] {
    display: none;
}

.achat_input_tools .achat_send {
    margin-inline-start: auto;
}

/* the files window (the clip) */
.achat_modal_drop {
    padding: 30px 20px;
}

.achat_types {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.achat_type {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid var(--dash-border);
    background: var(--dash-panel);
    color: var(--dash-text);
    text-align: start;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}

.achat_type:hover {
    border-color: rgba(var(--dash-brand-rgb), 0.5);
    background: rgba(var(--dash-brand-rgb), 0.05);
}

.achat_type strong {
    display: block;
    font-size: .9rem;
    font-weight: 600;
}

.achat_type small {
    color: var(--dash-muted);
    font-size: .76rem;
}

.achat_modal_files {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--dash-border);
}

.achat_modal_files[hidden] {
    display: none;
}

.achat_modal_files .achat_file {
    max-width: none;
}

.achat_card.is_settings small {
    color: var(--dash-chip-color);
}

.achat_card.is_settings .achat_card_icon {
    background: rgba(var(--dash-brand-rgb), 0.15);
    color: var(--dash-chip-color);
}

/* an email the agent read: neutral, it only points to the inbox */
.achat_card.is_read {
    border: 1px solid var(--dash-border);
    background: var(--dash-panel);
}

.achat_card.is_read small {
    color: var(--dash-text-soft);
}

.achat_card.is_read .achat_card_icon {
    background: var(--dash-hover, rgba(127, 127, 127, 0.12));
    color: var(--dash-text);
    font-weight: 400;
}

.achat_card.is_read strong {
    overflow-wrap: anywhere;
}

/* "@" in the composer: the owner's contacts, right above the box */
.achat_mention_menu {
    position: absolute;
    bottom: calc(100% - 6px);
    inset-inline-start: 22px;
    z-index: 30;
    width: min(340px, calc(100% - 44px));
    max-height: 320px;
    overflow-y: auto;
    padding: 6px;
    border-radius: 16px;
    border: 1px solid var(--dash-border-strong);
    background: var(--dash-panel);
    box-shadow: var(--dash-shadow-lg);
}

.achat_mention_menu.is_flipped {
    inset-inline-start: auto;
    inset-inline-end: 22px;
}

.achat_mention_head {
    display: block;
    padding: 6px 10px 4px;
    color: var(--dash-text-soft);
    font-size: .74rem;
    font-weight: 600;
}

.achat_mention_item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    border: 0;
    border-radius: 11px;
    background: none;
    color: var(--dash-text);
    text-align: start;
    cursor: pointer;
}

.achat_mention_item.is_active {
    background: var(--dash-hover);
}

/* no mailbox yet: the ones it can connect, with their logos */
.achat_connect {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border-radius: 16px;
    background: var(--dash-panel);
    border: 1px solid var(--dash-border);
}

.achat_connect_list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.achat_connect_item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid var(--dash-border);
    color: var(--dash-text);
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease;
}

.achat_connect_item:hover {
    background: var(--dash-hover);
    border-color: rgba(var(--dash-brand-rgb), 0.45);
    color: var(--dash-text);
}

.achat_connect_item b {
    flex: 1;
    font-weight: 500;
}

.achat_connect_logo {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--dash-hover);
}

.achat_connect_logo .icon {
    width: 18px;
    height: 18px;
}

/* an email without an address: the card asks, the window finds it */
.achat_email_missing {
    color: var(--dash-danger);
    font-weight: 500;
}

.achat_email_change {
    margin-inline-start: 6px;
    padding: 0;
    border: 0;
    background: none;
    font-size: .8rem;
    cursor: pointer;
}

.achat_address_search {
    margin-bottom: 10px;
}

.achat_address_list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 320px;
    overflow-y: auto;
}

.achat_address_list .achat_mention_item:hover {
    background: var(--dash-hover);
}

.achat_address_none {
    margin: 8px 4px;
    color: var(--dash-muted);
    font-size: .85rem;
}

.achat_address_note {
    display: block;
    margin-top: 10px;
    color: var(--dash-muted);
}

.achat_pick_list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 4px 6px 8px;
}

.achat_pick_item:hover,
.achat_pick_item:focus-visible {
    background: var(--dash-hover);
}

.achat_pick_item .achat_mention_text small {
    color: var(--dash-text-soft);
}

.acall_pick {
    width: min(360px, 100%);
    margin: 18px auto 0;
    padding: 12px;
    border-radius: var(--dash-radius-sm);
    background: var(--dash-panel);
    text-align: start;
}

.acall_pick strong {
    display: block;
    margin-bottom: 2px;
    color: var(--dash-text);
    font-size: .95rem;
}

.acall_pick small {
    display: block;
    margin-bottom: 8px;
    color: var(--dash-text-soft);
}

.acall_pick .achat_address_list {
    max-height: 240px;
}

.achat_mention_avatar {
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(var(--dash-brand-rgb), 0.16);
    color: var(--dash-chip-color);
    font-size: .78rem;
    font-weight: 600;
}

.achat_mention_text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.achat_mention_text b,
.achat_mention_text small {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.achat_mention_text b {
    font-weight: 600;
    font-size: .9rem;
}

.achat_mention_text small {
    color: var(--dash-text-soft);
    font-size: .78rem;
    text-align: start;
}

.achat_mention_empty {
    padding: 10px 12px;
    color: var(--dash-text-soft);
    font-size: .85rem;
}

/* web search: where the answer comes from */
.achat_sources {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.achat_sources small {
    width: 100%;
    color: var(--dash-text-soft);
    font-size: .74rem;
    font-weight: 600;
}

.achat_sources a {
    display: inline-flex;
    flex-direction: column;
    max-width: 220px;
    padding: 7px 11px;
    border-radius: 12px;
    border: 1px solid var(--dash-border);
    background: var(--dash-panel);
    color: var(--dash-text);
    text-decoration: none;
    line-height: 1.3;
}

.achat_sources a:hover {
    border-color: var(--dash-border-strong);
}

.achat_sources b {
    font-size: .78rem;
    font-weight: 600;
}

.achat_sources span {
    overflow: hidden;
    color: var(--dash-text-soft);
    font-size: .74rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* an event the agent prepared: the calendar's own color on the edge */
.achat_event {
    border-inline-start: 3px solid var(--event-color);
}

.achat_event_chip svg {
    width: 17px;
    height: 17px;
}

.achat_event_times {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.achat_event_times .dash_input {
    width: auto;
    min-width: 0;
    flex: 1 1 170px;
}

.achat_event_times span {
    color: var(--dash-text-soft);
}

.achat_event_conflict,
.achat_event_error {
    margin: 0;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(var(--dash-brand-rgb), 0.1);
    color: var(--dash-chip-color);
    font-size: .82rem;
}

.achat_event_error {
    background: rgba(220, 70, 70, 0.1);
    color: #d05050;
}

/* rows for a Google Sheet: a small scrollable table */
.achat_sheet_table {
    overflow-x: auto;
    border: 1px solid var(--dash-border);
    border-radius: 10px;
}

.achat_sheet_table table {
    width: 100%;
    border-collapse: collapse;
    font-size: .82rem;
}

.achat_sheet_table th,
.achat_sheet_table td {
    padding: 7px 10px;
    border-bottom: 1px solid var(--dash-border);
    text-align: start;
    white-space: nowrap;
}

.achat_sheet_table th {
    background: var(--dash-hover);
    color: var(--dash-text-soft);
    font-weight: 600;
}

.achat_sheet_table tr:last-child td {
    border-bottom: 0;
}

/* "/" commands: same list as "@", grouped, with icons */
.achat_cmd_menu {
    max-height: 380px;
}

.achat_cmd_icon {
    border-radius: 10px;
}

.achat_cmd_icon svg {
    width: 17px;
    height: 17px;
}

.achat_cmd_item.is_off {
    opacity: .5;
}

.achat_cmd_tag {
    display: block;
    margin-bottom: 4px;
    font-size: .74rem;
    font-weight: 600;
    opacity: .75;
}

/* a picked contact inside the owner's message */
.achat_mention {
    display: inline-block;
    padding: 0 7px;
    border-radius: 7px;
    background: rgba(0, 0, 0, 0.12);
    color: inherit;
    font-weight: 600;
    text-decoration: none;
    unicode-bidi: isolate;
}

a.achat_mention:hover {
    background: rgba(0, 0, 0, 0.2);
    color: inherit;
}

/* ===== Quick assistant: "Ask Nina" on every dashboard page (button, ⌘J, side panel) ===== */
.aq_launcher:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -10px rgba(var(--dash-brand-rgb), 0.45), var(--dash-shadow-lg);
}

.aq_kbd {
    padding: 2px 7px;
    border-radius: 6px;
    border: 1px solid var(--dash-border);
    background: var(--dash-panel-soft);
    color: var(--dash-muted);
    font-family: inherit;
    font-size: .78rem;
}

/* compact: only the bot; the name and the shortcut slide out on hover / keyboard focus */
.aq_launcher_text,
.aq_launcher .aq_kbd {
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    opacity: 0;
    transition: max-width .3s var(--dash-ease), opacity .2s ease, margin .3s var(--dash-ease);
}

.aq_launcher:hover .aq_launcher_text,
.aq_launcher:focus-visible .aq_launcher_text {
    max-width: 160px;
    opacity: 1;
}

.aq_launcher .aq_kbd {
    padding-inline: 0;
    border-width: 0;
}

.aq_launcher:hover .aq_kbd,
.aq_launcher:focus-visible .aq_kbd {
    max-width: 60px;
    padding-inline: 7px;
    border-width: 1px;
    opacity: 1;
}

body.aq_is_open .aq_launcher {
    opacity: 0;
    pointer-events: none;
}

.aq_overlay {
    position: fixed;
    inset: 0;
    z-index: 1045;
    background: rgba(15, 15, 15, 0.32);
    -webkit-backdrop-filter: blur(5px);
    /* Safari */
    backdrop-filter: blur(5px);
    animation: aq_overlay_in .25s ease both;
}

@keyframes aq_overlay_in {
    from {
        opacity: 0;
    }
}

.aq_overlay[hidden] {
    display: none;
}

.aq_panel {
    position: fixed;
    inset-block: 12px;
    inset-inline-end: 12px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    width: min(460px, calc(100vw - 24px));
    border-radius: 22px;
    border: 1px solid var(--dash-border);
    background: var(--dash-bg);
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    transform: translateX(calc(100% + 24px));
    visibility: hidden;
    transition: transform .3s var(--dash-ease), visibility .3s;
}

html[dir="rtl"] .aq_panel:not(.is_open) {
    transform: translateX(calc(-100% - 24px));
}

.aq_panel.is_open {
    transform: none;
    visibility: visible;
}

.aq_head {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 12px 12px 12px 16px;
    border-bottom: 1px solid var(--dash-border);
    background: var(--dash-panel);
}

.aq_head>div {
    flex: 1;
    min-width: 0;
}

.aq_head strong {
    display: block;
    font-weight: 600;
}

.aq_head small {
    color: var(--dash-muted);
    font-size: .76rem;
}

.aq_head_bot {
    display: inline-flex;
}

.aq_main {
    flex: 1;
    min-height: 0;
}

/* the chat, made for a narrow panel */
.aq_panel .achat_scroll {
    padding: 18px 14px 8px;
}

.aq_panel .achat_empty {
    padding: 2vh 0 6px;
}

.aq_panel .achat_empty h1 {
    font-size: 1.25rem;
}

.aq_panel .achat_empty>p {
    font-size: .88rem;
}

.aq_panel .achat_suggestions {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin-top: 18px;
}

.aq_panel .achat_suggestion {
    padding: 10px 12px;
}

.aq_panel .achat_composer {
    padding: 8px 12px 12px;
}

.aq_panel .achat_msg {
    max-width: 96%;
}

.aq_panel .achat_hint {
    display: none;
}

.aq_panel .achat_email {
    width: 100%;
}

.aq_empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: auto;
    padding: 30px;
    text-align: center;
}

.aq_empty h2 {
    font-size: 1.2rem;
    font-weight: 600;
}

.aq_empty p {
    color: var(--dash-text-soft);
    line-height: 1.5;
}

/* dashboard: "Ask Nina…" right on the overview */
.dash_ask {
    margin-bottom: 30px;
}

.dash_ask_bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 8px 8px 10px;
    border-radius: 999px;
    border: 1px solid var(--dash-border-strong);
    background: var(--dash-panel);
    box-shadow: var(--dash-shadow);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.dash_ask_bar:focus-within {
    border-color: rgba(var(--dash-brand-rgb), 0.6);
    box-shadow: 0 0 0 4px rgba(var(--dash-brand-rgb), 0.1), var(--dash-shadow);
}

.dash_ask_bot {
    display: inline-flex;
    flex-shrink: 0;
}

.dash_ask_bar input {
    flex: 1;
    min-width: 0;
    padding: 10px 4px;
    border: 0;
    background: transparent;
    color: var(--dash-text);
    font: inherit;
    font-size: 1rem;
    outline: none;
}

.dash_ask_chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.dash_ask_chip {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--dash-border);
    background: var(--dash-panel);
    color: var(--dash-text-soft);
    font-size: .82rem;
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease;
}

.dash_ask_chip:hover {
    border-color: rgba(var(--dash-brand-rgb), 0.5);
    color: var(--dash-text);
}

/* ===== Agent: one screen. The chat is a section of the editor, its conversations sit under "Chat" in the menu ===== */
.agent_editor[data-section="chat"] {
    grid-template-columns: 250px minmax(0, 1fr);
}

.agent_chat_main {
    flex: 1;
    min-height: 0;
    background: var(--dash-bg);
}

.agent_main_head h1 {
    flex: 1;
    font-size: 1rem;
    font-weight: 500;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.agent_model_badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}

.agent_model_badge .icon {
    width: 13px;
    height: 13px;
}

.agent_nav_new {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    margin-inline-start: auto;
    border-radius: 7px;
    color: var(--dash-muted);
    transition: background .15s ease, color .15s ease;
}

.agent_nav_new .icon {
    width: 15px;
    height: 15px;
    color: inherit !important;
}

.agent_nav_new:hover {
    background: var(--dash-hover);
    color: var(--dash-text);
}

.agent_nav_chat {
    display: block;
    padding: 6px 10px;
    border-radius: 9px;
    color: var(--dash-text-soft);
    font-size: .84rem;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background .15s ease, color .15s ease;
}

.agent_nav_chat:hover {
    background: var(--dash-hover);
    color: var(--dash-text);
}

.agent_nav_chat.active {
    background: var(--dash-active);
    color: var(--dash-text);
    font-weight: 500;
}

.agent_nav_chat[hidden] {
    display: none;
}

.agent_nav_chats_empty {
    padding: 6px 10px;
    color: var(--dash-muted);
    font-size: .8rem;
}

/* agents list: Chat first, settings and more as quiet icons */
.agents_card_foot {
    justify-content: space-between;
    padding: 12px 18px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.agents_card_foot .agents_chat_btn {
    flex: 1;
    justify-content: center;
}

.agents_card_foot .dash_icon_btn {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border: 1px solid var(--dash-border);
    border-radius: 11px;
}

/* Calendar planning and Sheets use the account's existing layout and colour tokens. */
.calendar_connection_actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-block: -16px 24px;
}

.planning_layout {
    display: flex;
    gap: 22px;
    align-items: flex-start;
}

.planning_controls {
    flex: 0 0 320px;
    min-width: 0;
}

.planning_results {
    flex: 1;
    min-width: 0;
}

.planning_controls h2,
.planning_results h2,
.sheets_link_card h2,
.sheets_row_form h2 {
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.planning_controls form,
[data-slot-book],
[data-book-fields],
[data-prep-notes],
.sheets_link_card form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.planning_checks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    border: 0;
    padding: 0;
    margin: 0;
}

.planning_checks legend {
    float: none;
    width: 100%;
    margin: 0 0 8px;
    font-size: .85rem;
    font-weight: 500;
}

.planning_checks label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .82rem;
}

.planning_checks input {
    accent-color: var(--dash-brand);
}

.planning_controls small {
    font-size: .8rem;
    color: var(--dash-muted);
    line-height: 1.6;
}

.planning_slot {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding: 14px;
    border: 1px solid var(--dash-border-strong);
    border-radius: var(--dash-radius-sm);
    background: var(--dash-panel-soft);
    color: var(--dash-text);
    cursor: pointer;
    text-align: start;
}

.planning_slot small,
.prep_event small {
    color: var(--dash-muted);
    font-size: .75rem;
}

.planning_slot:hover {
    border-color: var(--dash-brand);
}

.planning_form_actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.prep_events {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.prep_event {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    width: 100%;
    padding: 16px;
    text-align: start;
    background: var(--dash-panel-soft);
    color: var(--dash-text);
    border: 1px solid var(--dash-border);
    border-radius: var(--dash-radius-sm);
    cursor: pointer;
    overflow-wrap: anywhere;
}

.prep_event.active {
    border-color: var(--dash-brand);
    background: var(--dash-chip-bg);
}

.prep_block {
    padding-block: 20px;
    border-bottom: 1px solid var(--dash-border);
    overflow-wrap: anywhere;
}

.prep_block h3 {
    font-size: .95rem;
    margin-bottom: 12px;
}

.prep_block p {
    margin-block: 6px;
}

.prep_description {
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.prep_mail {
    padding-block: 12px;
}

.prep_mail small {
    display: block;
    color: var(--dash-muted);
}

.prep_mail a {
    color: var(--dash-chip-color);
    text-decoration: underline;
}

[data-prep-notes] {
    margin-top: 24px;
}

.planning_layout [hidden],
.sheets_workspace [hidden] {
    display: none !important;
}

.sheets_setup {
    margin-bottom: 24px;
}

.sheets_setup summary {
    cursor: pointer;
    font-weight: 500;
}

.sheets_setup p {
    margin-block: 14px;
    color: var(--dash-text-soft);
}

.sheets_setup code {
    display: block;
    overflow-wrap: anywhere;
    font-size: .8rem;
    color: var(--dash-text);
    background: var(--dash-border);
    padding: 8px;
}

.sheets_link_card {
    max-width: 850px;
    margin-bottom: 24px;
}

.sheets_link_card p {
    color: var(--dash-text-soft);
    margin-bottom: 18px;
}

.sheets_files {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 24px;
}

.sheets_files article {
    flex: 1 1 280px;
    max-width: 450px;
}

.sheets_files h3 {
    margin-block: 16px 8px;
}

.sheets_files p {
    color: var(--dash-muted);
    margin-bottom: 16px;
}

.sheets_workspace {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
    margin-bottom: 24px;
}

.sheets_workspace>.dash_card {
    min-width: 0;
}

.sheets_toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
}

.sheets_toolbar label {
    flex: 1;
    min-width: 160px;
}

.sheets_table_scroll {
    overflow-x: auto;
    max-width: 100%;
    border: 1px solid var(--dash-border);
    border-radius: var(--dash-radius-sm);
}

.sheets_table {
    border-collapse: collapse;
    min-width: 100%;
    font-size: .84rem;
}

.sheets_table th,
.sheets_table td {
    border-bottom: 1px solid var(--dash-border);
    border-inline-end: 1px solid var(--dash-border);
    padding: 12px;
    text-align: start;
    white-space: nowrap;
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sheets_table thead,
.sheets_table th[scope=row] {
    background: var(--dash-panel-soft);
    color: var(--dash-text-soft);
    font-weight: 500;
}

.sheets_pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}

.sheets_pagination span {
    font-size: .8rem;
    color: var(--dash-muted);
}

.sheets_row_form>p {
    color: var(--dash-muted);
    font-size: .86rem;
    margin-bottom: 18px;
}

.sheets_row_fields {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.sheets_row_fields>label {
    flex: 1 1 calc(50% - 18px);
    min-width: 200px;
}

@media (max-width: 1150px) {
    .planning_layout {
        flex-direction: column;
    }

    .planning_controls,
    .planning_results {
        width: 100%;
        flex-basis: auto;
    }
}

@media (max-width: 600px) {

    .planning_layout .dash_card,
    .sheets_workspace>.dash_card {
        padding: 18px;
    }

    .planning_slots {
        flex-direction: column;
    }

    .planning_slot {
        width: 100%;
    }

    .sheets_toolbar .dash_btn {
        flex: 1;
    }

    .sheets_row_fields>label {
        flex-basis: 100%;
        min-width: 0;
    }
}

.planning_slots {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-block: 16px 24px;
    max-height: 460px;
    overflow-y: auto;
    padding-inline-end: 5px;
}

.planning_slot.active {
    border-color: var(--dash-brand);
    background: var(--dash-chip-bg);
}

.sheets_workspace+form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.sheets_workspace+form small {
    color: var(--dash-muted);
    font-size: .8rem;
}

@media (max-width: 600px) {
    .calendar_connection_actions .dash_btn {
        flex: 1;
        height: auto;
        min-height: 36px;
        padding: 8px 10px;
        line-height: 1.3;
        font-size: .78rem;
    }

    .sheets_workspace+form {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Google Drive workspace */
.drive_workspace {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.drive_workspace [hidden] {
    display: none !important;
}

.drive_account_actions {
    margin-bottom: 24px;
}

.drive_modes,
.drive_search,
.drive_location_bar,
.drive_breadcrumbs,
.drive_file_actions,
.drive_create_head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.drive_search_input {
    position: relative;
    display: flex;
    flex: 1 1 240px;
    min-width: 0;
}

.drive_search_input>svg {
    position: absolute;
    inset-inline-start: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--dash-muted);
    pointer-events: none;
}

.drive_search_input .dash_input {
    padding-inline-start: 46px;
}

.drive_search>select {
    flex: 0 1 200px;
    width: 200px;
}

.drive_location_bar,
.drive_create_head {
    justify-content: space-between;
}

.drive_breadcrumbs {
    min-width: 0;
    flex: 1;
}

.drive_breadcrumbs strong {
    overflow-wrap: anywhere;
}

.drive_files {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.drive_file_row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    min-width: 0;
}

.drive_file_icon {
    flex-shrink: 0;
}

.drive_file_info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.drive_file_name {
    border: 0;
    background: none;
    padding: 0;
    text-align: start;
    color: var(--dash-text);
    font: inherit;
    font-weight: 600;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.drive_file_name:hover {
    color: var(--dash-brand);
}

.drive_file_info small,
.drive_notice,
.drive_status,
.drive_create small {
    color: var(--dash-muted);
}

.drive_format {
    width: 88px;
    min-height: 36px;
    padding: 6px 10px;
}

.drive_create {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.drive_create_head h2 {
    margin: 0;
    font-size: 20px;
}

.drive_create form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.drive_create .dash_field {
    margin: 0;
}

.drive_preview {
    padding: 14px;
    border: 1px solid var(--dash-border);
    border-radius: 12px;
    background: var(--dash-bg);
    overflow-wrap: anywhere;
}

.drive_create p {
    margin: 0;
    overflow-wrap: anywhere;
}

.drive_status {
    margin: 0;
    min-height: 24px;
}

.drive_status.is_error {
    color: var(--dash-danger, #c94e59);
}

.drive_notice {
    font-size: 13px;
    margin: 0;
    line-height: 1.7;
}

#drive_more {
    align-self: center;
    min-width: 160px;
}

@media (max-width: 768px) {
    .drive_file_row {
        flex-wrap: wrap;
        padding: 14px;
        gap: 12px;
    }

    .drive_file_actions {
        width: 100%;
        padding-inline-start: 0;
    }

    .drive_location_bar {
        align-items: stretch;
        flex-direction: column;
    }

    .drive_modes .dash_btn {
        flex: 1 1 calc(50% - 10px);
    }

    .drive_search_input {
        flex-basis: 100%;
    }

    .drive_search>select {
        flex: 1 1 100%;
        width: 100%;
    }

    .drive_search>button {
        flex: 1;
    }

    .drive_account_actions .dash_btn {
        padding-inline: 12px;
    }
}

/* ===== Overview (home): today first. Plain cards, real numbers, no decoration ===== */
.dash_home_date {
    display: block;
    margin-bottom: 6px;
    color: var(--dash-muted);
    font-size: .86rem;
}

.dash_home_title h1 {
    font-size: 1.3rem;
    letter-spacing: -.02em;
}

.dash_home_title p {
    margin-top: 6px;
    color: var(--dash-text-soft);
}

/* asking the assistant: a quiet field-like button, the panel does the rest */
.dash_home_ask {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    width: min(340px, 100%);
    height: 48px;
    padding: 0 10px 0 8px;
    border: 1px solid var(--dash-border-strong);
    border-radius: 14px;
    background: var(--dash-panel);
    color: var(--dash-muted);
    font: inherit;
    text-align: start;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.dash_home_ask:hover,
.dash_home_ask:focus-visible {
    border-color: rgba(var(--dash-brand-rgb), 0.6);
    box-shadow: 0 0 0 3px rgba(var(--dash-brand-rgb), 0.12);
    outline: 0;
}

.dash_home_ask_bot {
    display: inline-flex;
    flex-shrink: 0;
}

.dash_home_ask_text {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.dash_home_ask kbd {
    padding: 2px 7px;
    border: 1px solid var(--dash-border-strong);
    border-radius: 6px;
    background: var(--dash-panel-soft);
    color: var(--dash-muted);
    font: inherit;
    font-size: .74rem;
}

.dash_muted_line {
    color: var(--dash-muted);
    font-size: .88rem;
}

.dash_home_side .dash_card_head h3 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
}

/* the day */
.dash_day_actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dash_day_list {
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}

.dash_day_item {
    display: grid;
    grid-template-columns: 58px 22px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 8px 0;
    border-top: 1px solid var(--dash-border);
}

.dash_day_item:first-child {
    border-top: 0;
}

.dash_day_time {
    display: flex;
    flex-direction: column;
    font-size: .9rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    line-height: 1.25;
}

.dash_day_time small {
    color: var(--dash-muted);
    font-size: .76rem;
    font-weight: 400;
}

.dash_day_bar {
    justify-self: center;
    width: 4px;
    height: 36px;
    border-radius: 4px;
    background: var(--event-color);
}

.dash_day_check {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 1.5px solid var(--dash-border-strong);
    border-radius: 50%;
    background: none;
    color: transparent;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease;
}

.dash_day_check .icon {
    width: 12px;
    height: 12px;
    stroke-width: 2.5;
}

.dash_day_check:hover {
    border-color: var(--dash-brand);
    color: var(--dash-brand);
}

.dash_day_item.is_done .dash_day_check {
    border-color: var(--dash-brand);
    background: var(--dash-brand);
    color: var(--dash-on-brand);
    cursor: default;
}

.dash_day_body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    color: var(--dash-text);
    text-decoration: none;
}

.dash_day_body strong {
    overflow: hidden;
    font-weight: 500;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.dash_day_body small {
    overflow: hidden;
    color: var(--dash-muted);
    font-size: .8rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.dash_day_body:hover strong {
    color: var(--dash-brand-strong);
}

.dash_day_item.is_done .dash_day_body strong {
    color: var(--dash-muted);
    text-decoration: line-through;
}

.dash_day_item.is_past:not(.is_done) {
    opacity: .6;
}

/* now: a thin line between what is over and what is coming */
.dash_day_now {
    position: relative;
    height: 0;
    margin: 0 0 0 70px;
    border-top: 1.5px solid var(--dash-brand);
}

.dash_day_now span {
    position: absolute;
    top: -9px;
    inset-inline-start: -70px;
    padding: 0 6px;
    border-radius: 6px;
    background: var(--dash-brand);
    color: var(--dash-on-brand);
    font-size: .78rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    line-height: 18px;
}

html[dir="rtl"] .dash_day_now {
    margin: 0 70px 0 0;
}

.dash_day_now+.dash_day_item {
    border-top: 0;
}

.dash_day_now.is_end {
    margin-top: 6px;
}

.dash_activity_count {
    margin-inline-start: 4px;
    color: var(--dash-muted);
    font-size: .8rem;
    font-weight: 500;
}

/* unread email */
.dash_mail_list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dash_mail_list li+li {
    border-top: 1px solid var(--dash-border);
}

.dash_mail_list a {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 10px 0;
    color: var(--dash-text);
    text-decoration: none;
}

.dash_mail_top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.dash_mail_top strong {
    overflow: hidden;
    font-size: .9rem;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.dash_mail_top time {
    flex-shrink: 0;
    color: var(--dash-muted);
    font-size: .76rem;
}

.dash_mail_subject,
.dash_mail_list small {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.dash_mail_subject {
    font-size: .86rem;
}

.dash_mail_list small {
    color: var(--dash-muted);
    font-size: .8rem;
}

.dash_mail_list a:hover .dash_mail_subject {
    color: var(--dash-brand-strong);
}

/* credits */
.dash_credits_number {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 4px 0 12px;
}

.dash_credits_number strong {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
}

.dash_credits_number small {
    color: var(--dash-muted);
}

.dash_meter {
    height: 6px;
    margin-bottom: 10px;
    overflow: hidden;
    border-radius: 6px;
    background: var(--dash-hover);
}

.dash_meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--dash-brand);
}

/* the assistant */
.dash_home_agent_row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dash_home_agent_row>div {
    flex: 1;
    min-width: 0;
}

.dash_home_agent_row strong {
    display: block;
}

.dash_home_agent_caption {
    display: block !important;
    margin-top: 2px;
    font-size: .74rem !important;
}

.aq_launcher[hidden] {
    display: none;
}

.dash_home_agent_mark {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    margin: -14px 0 -14px -10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    cursor: pointer;
}

.dash_home_agent_mark .dash_home_agent_logo {
    transition: scale .25s ease;
}

.dash_home_agent_mark:hover .dash_home_agent_logo {
    scale: 1.08;
}

.dash_home_agent_rays {
    position: absolute;
    inset: 0;
    clip-path: circle(50%);
    opacity: 1;
    animation: acallRaysIn 1.2s cubic-bezier(.16, 1, .3, 1) .2s both;
}

:root:not([data-theme="dark"]) .dash_home_agent_rays {
    filter: invert(1);
    opacity: .7;
}

.dash_home_agent_rays .acall_ray {
    width: 130%;
    height: 130%;
    inset: -15%;
}

.dash_home_agent_logo {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: #1f1f1f;
    box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .dash_home_agent_logo {
    background: #2a2a2c;
    box-shadow: 0 0 0 6px rgba(20, 20, 22, .9), 0 8px 20px -6px rgba(0, 0, 0, .6);
}

.dash_home_agent_logo img {
    width: auto;
    height: 18px;
}

@media (prefers-reduced-motion: reduce) {
    .dash_home_agent_rays {
        animation: none;
    }
}

.dash_home_agent_actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

/* chat: next steps under the newest answer, and hints above the box while typing */
.achat_next {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.achat_next_item,
.achat_typing_hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 6px 12px;
    border: 1px solid var(--dash-border-strong);
    border-radius: 100px;
    background: var(--dash-panel);
    color: var(--dash-text-soft);
    font: inherit;
    font-size: .84rem;
    line-height: 1.3;
    text-align: start;
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}

.achat_next_item:hover,
.achat_typing_hint:hover {
    border-color: rgba(var(--dash-brand-rgb), 0.6);
    color: var(--dash-text);
}

.achat_typing_hints {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 4px 8px;
}

.achat_typing_hint {
    flex: 0 0 auto;
    width: auto;
    padding: 4px 10px 4px 5px;
    font-size: .8rem;
}

.achat_typing_hint_icon {
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--dash-chip-bg);
    color: var(--dash-chip-color);
    font-size: .66rem;
    font-weight: 600;
}

.achat_typing_hint_icon svg {
    width: 13px;
    height: 13px;
}

.achat_typing_hint.is_active {
    border-color: var(--dash-brand);
    background: rgba(var(--dash-brand-rgb), 0.12);
    color: var(--dash-text);
}

/* ===== Memory: what the assistant remembers about its owner ===== */
.memory_page {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 920px;
}

.memory_toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.memory_search {
    width: min(300px, 100%);
}

.memory_filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.memory_filter,
.memory_example {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--dash-border-strong);
    border-radius: 100px;
    background: var(--dash-panel);
    color: var(--dash-text-soft);
    font: inherit;
    font-size: .84rem;
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}

.memory_filter span {
    color: var(--dash-muted);
    font-size: .78rem;
    font-variant-numeric: tabular-nums;
}

.memory_filter:hover,
.memory_example:hover {
    border-color: rgba(var(--dash-brand-rgb), 0.6);
    color: var(--dash-text);
}

.memory_filter.is_active {
    border-color: var(--dash-brand);
    background: rgba(var(--dash-brand-rgb), 0.12);
    color: var(--dash-text);
}

.memory_list {
    margin: 0;
    padding: 0;
    list-style: none;
    overflow: hidden;
}

.memory_item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
}

.memory_item+.memory_item {
    border-top: 1px solid var(--dash-border);
}

.memory_item[hidden] {
    display: none;
}

.memory_body p {
    margin: 0;
    color: var(--dash-text);
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.memory_body small {
    display: block;
    margin-top: 3px;
    color: var(--dash-muted);
    font-size: .8rem;
}

.memory_actions {
    display: flex;
    gap: 4px;
    opacity: .55;
    transition: opacity .2s ease;
}

.memory_item:hover .memory_actions,
.memory_actions:focus-within {
    opacity: 1;
}

.memory_no_match {
    padding: 18px;
    color: var(--dash-muted);
    text-align: center;
}

.memory_forget {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.memory_examples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

@media (max-width: 767px) {
    .memory_item {
        grid-template-columns: minmax(0, 1fr) auto;
        padding: 12px 14px;
    }

    .memory_item>.dash_chip {
        display: none;
    }

    .memory_actions {
        opacity: 1;
    }
}

/* ===== Voice call with an agent ===== */
.acall {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: grid;
    place-items: center;
    padding: 24px 16px;
    overflow-y: auto;
    background: var(--dash-bg);
}

.acall[hidden] {
    display: none;
}

body.acall_open {
    overflow: hidden;
}

.acall_close {
    position: absolute;
    top: 18px;
    inset-inline-end: 18px;
}

.acall[data-state="live"] .acall_close {
    display: none;
}

.acall_stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: min(520px, 100%);
    text-align: center;
}

.acall_stage h2 {
    margin-top: 10px;
    font-size: 1.3rem;
    letter-spacing: -.01em;
}

.acall_status {
    min-height: 1.5em;
    color: var(--dash-text-soft);
}

.acall_timer {
    color: var(--dash-muted);
    font-size: .9rem;
    font-variant-numeric: tabular-nums;
}

/* the face: a ring that grows with the voice (--level 0…1, set by the call script) */
.acall_face {
    --level: 0;
    position: relative;
    display: grid;
    place-items: center;
    width: 200px;
    height: 200px;
}

.acall_ring {
    position: absolute;
    inset: 22px;
    border-radius: 50%;
    background: rgba(var(--dash-brand-rgb), 0.16);
    border: 1.5px solid rgba(var(--dash-brand-rgb), 0.45);
    transform: scale(calc(1 + var(--level) * 0.38));
    opacity: calc(0.5 + var(--level) * 0.5);
    transition: transform .08s linear, opacity .08s linear;
}

.acall[data-state="setup"] .acall_ring,
.acall[data-state="done"] .acall_ring {
    transform: none;
    opacity: .5;
}

.acall_bot {
    position: relative;
    display: inline-flex;
}

/* before the call */
.acall_setup {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    width: 100%;
    margin-top: 14px;
    text-align: start;
}

.acall_setup[hidden],
.acall_live[hidden],
.acall_done[hidden] {
    display: none;
}

.acall_field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.acall_field>span {
    color: var(--dash-text-soft);
    font-size: .86rem;
    font-weight: 500;
}

.acall_voices {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.acall_voice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.acall_voice span {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 10px 12px;
    border: 1px solid var(--dash-border-strong);
    border-radius: 12px;
    background: var(--dash-panel);
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease;
}

.acall_voice b {
    font-size: .9rem;
    font-weight: 600;
}

.acall_voice small {
    color: var(--dash-muted);
    font-size: .76rem;
}

.acall_voice span:hover {
    border-color: rgba(var(--dash-brand-rgb), 0.6);
}

/* "Listen": the voice's greeting, without choosing it */
.acall_voice {
    position: relative;
}

.acall_listen {
    position: absolute;
    top: 50%;
    inset-inline-end: 12px;
    transform: translateY(-50%);
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(var(--dash-brand-rgb), 0.16);
    color: var(--dash-chip-color);
    cursor: pointer;
    transition: background .2s ease;
}

.acall_listen:hover,
.acall_listen.is_playing {
    background: var(--dash-brand);
    color: #1c1c1c;
}

.acall_listen .icon {
    width: 13px;
    height: 13px;
}

.acall_listen i {
    display: inline-grid;
    place-items: center;
}

.acall_listen .acall_listen_stop,
.acall_listen.is_playing .acall_listen_play {
    display: none;
}

.acall_listen.is_playing .acall_listen_stop {
    display: inline-grid;
}

/* room for the button, so the name never runs under it */
.acall_voice:has(.acall_listen)>span {
    padding-inline-end: 46px;
}

.acall_voice input:focus-visible+span {
    box-shadow: 0 0 0 3px rgba(var(--dash-brand-rgb), 0.25);
}

.acall_start {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 54px;
    margin-top: 4px;
    border: 0;
    border-radius: 100px;
    background: var(--dash-success);
    color: #fff;
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform .2s var(--dash-ease), filter .2s ease;
}

[data-theme="dark"] .acall_start {
    color: #10301a;
}

.acall_start:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.acall_start .icon {
    width: 20px;
    height: 20px;
}

.acall_cost {
    color: var(--dash-muted);
    font-size: .8rem;
    text-align: center;
}

/* during the call */
.acall_live {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    width: 100%;
    margin-top: 6px;
}

.acall_controls {
    display: flex;
    gap: 22px;
}

.acall_btn {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border: 1px solid var(--dash-border-strong);
    border-radius: 50%;
    background: var(--dash-panel);
    color: var(--dash-text);
    cursor: pointer;
    transition: transform .2s var(--dash-ease), background-color .2s ease;
}

.acall_btn:hover {
    transform: translateY(-1px);
}

.acall_btn .icon {
    width: 26px;
    height: 26px;
}

.acall_btn .acall_icon_off,
.acall_btn.is_muted .acall_icon_on {
    display: none;
}

.acall_btn.is_muted .acall_icon_off {
    display: inline-flex;
}

.acall_btn.is_muted {
    background: var(--dash-text);
    color: var(--dash-panel);
}

.acall_btn.is_end {
    border-color: transparent;
    background: #d14343;
    color: #fff;
}

.acall_done {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 10px;
    color: var(--dash-text-soft);
}

@media (max-width: 575px) {
    .acall_voices {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .acall_face {
        width: 160px;
        height: 160px;
    }
}

/* voice calls: the setting on the AI model page, and its line on the call screen */
.ai_voice_card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ai_voice_hint {
    color: var(--dash-muted);
    font-size: .8rem;
}

.ai_voice_foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ai_voice_foot small {
    color: var(--dash-muted);
}

.acall_voice_line {
    color: var(--dash-text-soft);
    font-size: .9rem;
    text-align: center;
}

.acall_voice_line b {
    color: var(--dash-text);
    font-weight: 600;
}

/* a menu link that opens in a new tab */
.agent_nav_item .agent_nav_external {
    width: 14px;
    height: 14px;
    margin-inline-start: auto;
    color: var(--dash-muted);
}

/* chat header: the model as a dropdown, and the "…" menu (status, settings, delete) */
.agent_model_menu .agent_model_badge {
    border: 0;
    font: inherit;
    cursor: pointer;
}

.agent_model_badge .icon:last-child {
    width: 13px;
    height: 13px;
    opacity: .7;
}

.agent_model_list {
    min-width: 260px;
    max-height: 420px;
    overflow-y: auto;
}

.agent_menu_group {
    display: block;
    padding: 8px 10px 4px;
    color: var(--dash-muted);
    font-size: .74rem;
    font-weight: 600;
}

.agent_model_list form button {
    justify-content: space-between;
}

.agent_model_name {
    display: flex;
    flex-direction: column;
    text-align: start;
}

.agent_model_name small {
    color: var(--dash-muted);
    font-size: .74rem;
}

.agent_model_list button.is_current {
    color: var(--dash-text);
    font-weight: 600;
    opacity: 1;
}

.agent_model_list button:disabled:not(.is_current) {
    opacity: .5;
    cursor: not-allowed;
}

.agent_menu_status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.agent_menu_status small {
    margin-inline-start: auto;
    color: var(--dash-muted);
    font-size: .76rem;
}

/* the agent's name at the top of its menu: a switcher between agents */
.agent_switch {
    flex: 1;
    min-width: 0;
}

.agent_switch_btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 4px 8px 4px 4px;
    border: 0;
    border-radius: 12px;
    background: none;
    color: var(--dash-text);
    font: inherit;
    text-align: start;
    cursor: pointer;
}

.agent_switch_btn:hover,
.agent_switch.open .agent_switch_btn {
    background: var(--dash-hover);
}

.agent_switch_btn strong {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.agent_switch_btn>.icon {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    color: var(--dash-muted);
}

.agent_switch_menu a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.agent_switch_bot {
    display: inline-flex;
    flex-shrink: 0;
}

.agent_switch_name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.agent_switch_menu a.is_current {
    font-weight: 600;
}

.agent_switch_menu a>.icon:last-child {
    width: 15px;
    height: 15px;
}

/* ===== Approvals: everything that waits for the owner's yes ===== */
.approvals_page {
    max-width: 860px;
}

.approvals_list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.approval_item {
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: opacity .2s ease;
}

.approval_item.is_done {
    opacity: .6;
}

.approval_head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.approval_head>div {
    flex: 1;
    min-width: 0;
}

.approval_head strong {
    display: block;
}

.approval_head small {
    color: var(--dash-muted);
    font-size: .82rem;
}

.approval_rows {
    display: grid;
    gap: 8px;
    margin: 0;
}

.approval_rows>div {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

.approval_rows dt {
    color: var(--dash-muted);
    font-size: .84rem;
    font-weight: 500;
}

.approval_rows dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.approval_body {
    min-height: 130px;
    resize: vertical;
}

.approval_sheet_name {
    color: var(--dash-text-soft);
}

.approval_foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.approval_note {
    margin-inline-end: auto;
    color: var(--dash-text-soft);
    font-size: .84rem;
}

@media (max-width: 575px) {
    .approval_rows>div {
        grid-template-columns: minmax(0, 1fr);
        gap: 2px;
    }
}

.activity_page {
    max-width: 860px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.activity_filters {
    flex-wrap: wrap;
    align-self: flex-start;
}

.activity_filters a {
    text-decoration: none;
}

.activity_count {
    color: var(--dash-muted);
    font-size: .76rem;
    font-variant-numeric: tabular-nums;
}

.activity_day {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.activity_day_head {
    margin: 0;
    color: var(--dash-text-soft);
    font-size: .84rem;
    font-weight: 600;
}

.activity_list {
    list-style: none;
    margin: 0;
    padding: 4px 0;
}

.activity_row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
}

.activity_row+.activity_row {
    border-top: 1px solid var(--dash-border);
}

.activity_text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.activity_text strong {
    font-size: .9rem;
}

.activity_text>span {
    color: var(--dash-text-soft);
    font-size: .86rem;
    overflow-wrap: anywhere;
}

.activity_detail {
    color: var(--dash-muted);
}

.activity_meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    color: var(--dash-muted);
    font-size: .8rem;
    white-space: nowrap;
}

.activity_row.is_deleted strong,
.activity_row.is_forgotten strong {
    color: var(--dash-text-soft);
}

@media (max-width: 575px) {
    .activity_row {
        align-items: flex-start;
        padding: 10px 12px;
    }
}

/* the reply while it is being written */
.achat_msg.is_streaming .achat_bubble p::after {
    content: "";
    display: inline-block;
    width: 2px;
    height: 1em;
    margin-inline-start: 2px;
    vertical-align: -2px;
    background: currentColor;
    opacity: .5;
    animation: achat_caret 1s steps(2, start) infinite;
}

@keyframes achat_caret {
    to {
        visibility: hidden;
    }
}

/* the assistant on Telegram / WhatsApp */
.channel_page {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.channel_connect {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
}

.channel_connect_text {
    flex: 1;
    min-width: 0;
}

.channel_connect_text h3 {
    margin: 0 0 6px;
}

.channel_connect_text p {
    margin: 0 0 6px;
    color: var(--dash-text-soft);
}

.channel_code code {
    padding: 2px 6px;
    border-radius: 6px;
    background: var(--dash-panel-soft);
    font-size: .86rem;
}

.channel_connect_actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.channel_waiting {
    color: var(--dash-muted);
    font-size: .8rem;
}

.channel_link_row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
}

.channel_link_row+.channel_link_row {
    border-top: 1px solid var(--dash-border);
}

.channel_link_text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.channel_link_text small {
    color: var(--dash-muted);
}

.channel_agent_form {
    width: 200px;
}

.channel_how ul {
    margin: 8px 0 0;
    padding-inline-start: 18px;
    color: var(--dash-text-soft);
    display: grid;
    gap: 6px;
}

@media (max-width: 575px) {

    .channel_connect,
    .channel_link_row {
        flex-wrap: wrap;
    }

    .channel_connect_actions {
        align-items: stretch;
        width: 100%;
    }

    .channel_agent_form {
        width: 100%;
    }
}

/* Inbox before any mailbox: what to connect */
.inbox_connect {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 100%;
    padding: 40px 20px;
    overflow-y: auto;
}

.inbox_connect_help {
    position: absolute;
    top: 16px;
    inset-inline-end: 16px;
}

.inbox_connect_inner {
    width: 100%;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.25rem;
}

.inbox_connect_inner h2 {
    margin: 16px 0 8px;
    font-size: 1.35rem;
}

.inbox_connect_text {
    margin: 0 0 24px;
    color: var(--dash-text-soft);
    line-height: 1.6;
}

.inbox_connect_options {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.inbox_connect_option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--dash-border);
    border-radius: var(--dash-radius-sm);
    background: var(--dash-panel);
    color: var(--dash-text);
    text-align: start;
    text-decoration: none;
    transition: border-color .2s ease, background .2s ease;
}

.inbox_connect_option:hover,
.inbox_connect_option:focus-visible {
    border-color: var(--dash-border-strong);
    background: var(--dash-hover);
    color: var(--dash-text);
}

.inbox_connect_option.is_connecting {
    opacity: .6;
    pointer-events: none;
}

.inbox_connect_icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--dash-panel-soft);
    border: 1px solid var(--dash-border);
}

.inbox_connect_icon .icon,
.inbox_connect_icon svg {
    width: 20px;
    height: 20px;
}

.inbox_connect_label {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.inbox_connect_label small {
    color: var(--dash-muted);
    font-size: .82rem;
}

.inbox_connect_go {
    color: var(--dash-muted);
    transition: transform .2s var(--dash-ease);
}

.inbox_connect_go svg {
    width: 16px;
    height: 16px;
}

[dir="rtl"] .inbox_connect_go svg {
    transform: scaleX(-1);
}

.inbox_connect_option:hover .inbox_connect_go {
    transform: translateX(3px);
}

[dir="rtl"] .inbox_connect_option:hover .inbox_connect_go {
    transform: translateX(-3px);
}

.inbox_connect_note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 20px 0 0;
    color: var(--dash-muted);
    font-size: .82rem;
}

.inbox_connect_note svg {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
}

/* ===== Setup wizard (after sign-up): a thin bar on top, one column in the middle ===== */
.setup_wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

.setup_top {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 28px;
    background: var(--dash-bg);
}

.setup_card .dash_choice_box {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 12px;
    row-gap: 2px;
}

.setup_card .dash_choice_box .dash_chip {
    grid-row: span 2;
    margin-bottom: 0;
}

.setup_brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.setup_top_end {
    display: flex;
    align-items: center;
    gap: 18px;
}

.setup_langs {
    display: flex;
    gap: 4px;
}

.setup_langs a {
    padding: 4px 9px;
    border-radius: 8px;
    color: var(--dash-muted);
    font-size: .82rem;
    text-decoration: none;
}

.setup_langs a.is_active,
.setup_langs a:hover {
    background: var(--dash-hover);
    color: var(--dash-text);
}

.setup_skip {
    padding: 0;
    border: 0;
    background: none;
    color: var(--dash-muted);
    font-size: .84rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.setup_skip:hover {
    color: var(--dash-text);
}

.setup_main {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 24px 24px 64px;
}

.setup_count {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--dash-brand-strong);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .02em;
}

.setup_card h2 {
    margin: 0 0 8px;
    font-size: 1.4rem;
}

.setup_lead {
    margin: 0 0 28px;
    color: var(--dash-text-soft);
    line-height: 1.6;
}

.setup_form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.setup_field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.setup_field>label {
    font-weight: 600;
    font-size: .92rem;
}

.setup_field>small {
    color: var(--dash-muted);
    font-size: .8rem;
}

.setup_name_ideas {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.setup_idea {
    padding: 4px 12px;
    border: 1px solid var(--dash-border);
    border-radius: 999px;
    background: var(--dash-panel);
    color: var(--dash-text-soft);
    font-size: .82rem;
}

.setup_idea:hover {
    border-color: var(--dash-border-strong);
    color: var(--dash-text);
}

.setup_assistant_preview {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--dash-border);
    border-radius: var(--dash-radius-sm);
    background: var(--dash-panel);
}

.setup_assistant_bot {
    display: inline-grid;
    place-items: center;
    flex: 0 0 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(var(--dash-brand-rgb), 0.14);
}

.setup_assistant_preview p {
    margin: 4px 0 0;
    color: var(--dash-text-soft);
    font-size: .88rem;
    min-height: 43px;
}

.setup_segment {
    display: inline-flex;
    align-self: flex-start;
    padding: 3px;
    border: 1px solid var(--dash-border);
    border-radius: 10px;
    background: var(--dash-panel-soft);
}

.setup_segment input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.setup_segment span {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 8px;
    color: var(--dash-text-soft);
    font-size: .86rem;
    cursor: pointer;
}

.setup_segment input:checked+span {
    background: var(--dash-panel);
    color: var(--dash-text);
    box-shadow: var(--dash-shadow);
}

.setup_segment input:focus-visible+span {
    outline: 2px solid var(--dash-brand);
}

.setup_connect_list {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--dash-border);
    border-radius: var(--dash-radius-sm);
    background: var(--dash-panel);
}

.setup_connect_row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
}

.setup_connect_row+.setup_connect_row {
    border-top: 1px solid var(--dash-border);
}

.setup_connect_text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.setup_connect_text small {
    color: var(--dash-muted);
    font-size: .82rem;
}

.setup_connect_actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.setup_connect_actions .dash_badge svg {
    width: 12px;
    height: 12px;
}

.setup_note {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 14px 0 6px;
    color: var(--dash-muted);
    font-size: .82rem;
}

.setup_note svg {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
}

.setup_toggles {
    padding: 0 16px;
}

.setup_toggles .dash_toggle_row:first-child {
    border-top: 0;
}

.setup_time {
    width: 120px;
    flex: 0 0 120px;
}

.setup_brief_sample {
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--dash-panel-soft);
}

[dir="rtl"] .setup_brief_sample {
    border-radius: 10px 0 0 10px;
}

.setup_brief_sample small {
    color: var(--dash-muted);
    font-size: .78rem;
}

.setup_brief_sample p {
    margin: 4px 0 0;
    color: var(--dash-text-soft);
    font-size: .9rem;
}

.setup_footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 6px;
    padding-top: 20px;
    border-top: 1px solid var(--dash-border);
}

.setup_footer .dash_btn svg {
    width: 16px;
    height: 16px;
}

[dir="rtl"] .setup_footer .dash_btn svg {
    transform: scaleX(-1);
}

.setup_done {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 40px;
}

.setup_done_mark {
    position: relative;
    display: grid;
    place-items: center;
    width: 240px;
    height: 240px;
    margin: -30px 0 0;
}

.setup_done_rays {
    position: absolute;
    inset: 0;
    opacity: .8;
    animation: setupRaysIn 1.4s cubic-bezier(.16, 1, .3, 1) .5s both, setupRaysTurn 120s linear infinite;
}

.setup_done_rays img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: scale(.95);
    animation: setupRayBreathe var(--t, 3s) ease-in-out var(--d, 1s) infinite alternate;
}

.setup_done_logo {
    position: relative;
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 22px;
    background: var(--dash-panel);
    box-shadow: 0 0 0 1px var(--dash-border-strong), 0 18px 40px -14px rgba(0, 0, 0, 0.5);
    animation: setupLogoIn 1.2s cubic-bezier(.22, 1, .36, 1) both;
}

.setup_done_logo img {
    width: 30px;
    height: auto;
}

:root[data-theme="light"] .setup_done_rays,
:root[data-theme="light"] .setup_done_logo img {
    filter: invert(1);
}

:root[data-theme="light"] .setup_done_rays {
    opacity: .5;
}

@keyframes setupRaysIn {
    from {
        opacity: 0;
        scale: .2;
    }

    to {
        opacity: .8;
        scale: 1;
    }
}

@keyframes setupRaysTurn {
    to {
        transform: rotate(360deg);
    }
}

@keyframes setupRayBreathe {
    from {
        transform: scale(.95);
    }

    to {
        transform: scale(1.05);
    }
}

@keyframes setupLogoIn {
    from {
        opacity: 0;
        transform: scale(.7);
        filter: blur(12px);
    }

    to {
        opacity: 1;
        transform: none;
        filter: none;
    }
}

@media (prefers-reduced-motion: reduce) {

    .setup_done_rays,
    .setup_done_rays img,
    .setup_done_logo {
        animation: none;
    }
}

.setup_done_list {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: start;
}

.setup_done_list li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.setup_done_list svg {
    width: 16px;
    height: 16px;
    color: var(--dash-success);
}

.setup_done_actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

@media (max-width: 767px) {
    .setup_top {
        padding: 14px 16px;
    }

    .setup_top_end {
        gap: 10px;
    }

    .setup_main {
        padding: 12px 16px 40px;
    }

    .setup_card h2 {
        font-size: 1.35rem;
    }
}

@media (max-width: 575px) {
    .setup_connect_row {
        flex-wrap: wrap;
    }

    .setup_connect_actions {
        width: 100%;
        justify-content: flex-start;
    }

    .setup_footer {
        flex-direction: column-reverse;
    }

    .setup_footer .dash_btn {
        justify-content: center;
    }
}

/* the guided tour (driver.js), in the dashboard's own look */
.driver-popover.rv_tour_popover {
    max-width: 340px;
    padding: 18px;
    border: 1px solid var(--dash-border);
    border-radius: 14px;
    background: var(--dash-panel);
    color: var(--dash-text);
    box-shadow: var(--dash-shadow-lg);
    font-family: inherit;
}

.rv_tour_popover .driver-popover-title {
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
}

.rv_tour_popover .driver-popover-description {
    margin-top: 6px;
    color: var(--dash-text-soft);
    font-size: .88rem;
    line-height: 1.55;
    font-family: inherit;
}

.rv_tour_popover .driver-popover-progress-text {
    color: var(--dash-muted);
    font-size: .78rem;
}

.rv_tour_popover .driver-popover-footer {
    margin-top: 16px;
    gap: 6px;
}

.rv_tour_popover .driver-popover-footer button {
    padding: 6px 12px;
    border: 1px solid var(--dash-border-strong);
    border-radius: 8px;
    background: var(--dash-panel);
    color: var(--dash-text);
    font-size: .82rem;
    font-family: inherit;
    text-shadow: none;
}

.rv_tour_popover .driver-popover-footer .driver-popover-next-btn {
    border-color: var(--dash-brand);
    background: var(--dash-brand);
    color: var(--dash-on-brand);
}

.rv_tour_popover .driver-popover-close-btn {
    color: var(--dash-muted);
}

.rv_tour_popover .rv_tour_skip {
    margin-inline-end: auto;
    border: 0 !important;
    background: none !important;
    color: var(--dash-muted) !important;
    padding-inline: 0 !important;
}

.rv_tour_popover .driver-popover-arrow-side-left.driver-popover-arrow {
    border-left-color: var(--dash-panel);
}

.rv_tour_popover .driver-popover-arrow-side-right.driver-popover-arrow {
    border-right-color: var(--dash-panel);
}

.rv_tour_popover .driver-popover-arrow-side-top.driver-popover-arrow {
    border-top-color: var(--dash-panel);
}

.rv_tour_popover .driver-popover-arrow-side-bottom.driver-popover-arrow {
    border-bottom-color: var(--dash-panel);
}

/* companies' own logos (Integrations, setup, inbox) */
.brand_logo {
    display: inline-flex;
    line-height: 0;
}

.brand_logo img {
    display: block;
    object-fit: contain;
}

.dash_chip.is_brand_logo {
    background: var(--dash-panel-soft);
    border: 1px solid var(--dash-border);
}

.dash_btn .brand_logo {
    margin-inline-end: 2px;
}

/* linking Telegram / WhatsApp in a window, without leaving the page */
.channel_modal .modal-content {
    position: relative;
    padding: 32px 28px 28px;
    border: 1px solid var(--dash-border);
    border-radius: 18px;
    background: var(--dash-panel);
    color: var(--dash-text);
}

.channel_modal_close {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
}

.channel_modal_body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.channel_modal_logo {
    display: inline-grid;
    place-items: center;
    width: 60px;
    height: 60px;
    margin-bottom: 14px;
    border-radius: 16px;
    border: 1px solid var(--dash-border);
    background: var(--dash-panel-soft);
}

.channel_modal_body h3 {
    margin: 0 0 6px;
    font-size: 1.2rem;
}

.channel_modal_lead {
    margin: 0 0 22px;
    color: var(--dash-text-soft);
    font-size: .92rem;
}

.channel_modal_wait,
.channel_modal_done {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.channel_modal_open {
    min-width: 220px;
    justify-content: center;
}

.channel_modal_code {
    margin: 0;
    color: var(--dash-muted);
    font-size: .82rem;
}

.channel_modal_code code {
    padding: 2px 6px;
    border-radius: 6px;
    background: var(--dash-panel-soft);
    color: var(--dash-text);
}

.channel_modal_status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 0;
    color: var(--dash-text-soft);
    font-size: .86rem;
}

.channel_modal_spinner {
    width: 14px;
    height: 14px;
    border: 2px solid var(--dash-border-strong);
    border-top-color: var(--dash-brand);
    border-radius: 50%;
    animation: channel_spin .8s linear infinite;
}

@keyframes channel_spin {
    to {
        transform: rotate(360deg);
    }
}

.channel_modal_check {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--dash-success-bg);
    color: var(--dash-success);
}

.channel_modal_check svg {
    width: 22px;
    height: 22px;
}

.channel_modal_done p {
    margin: 0;
    color: var(--dash-text-soft);
}

.channel_modal_error {
    margin: 12px 0 0;
    color: var(--dash-danger);
    font-size: .86rem;
}

/* the agent screen never moves: one row the height of the window, only the messages (and the chat list) scroll */
body:has(.agent_editor) {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

.agent_editor {
    height: 100dvh;
    grid-template-columns: 250px minmax(0, 1fr) 400px;
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    overflow: hidden;
}

.agent_main,
.agent_chat_main {
    min-height: 0;
    overflow: hidden;
}

/* the agent switcher opens over everything: the side menu itself does not scroll (its chat list does) */
.agent_nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px;
    overflow-y: auto;
    border-inline-end: 1px solid var(--dash-border);
    background: var(--dash-bg);
    position: relative;
    z-index: 5;
    min-height: 0;
    overflow: visible;
}

.agent_nav_head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    position: relative;
    z-index: 2;
}

.agent_nav_chats {
    display: flex;
    flex-direction: column;
    gap: 1px;
    max-height: 34vh;
    margin: 2px 0 4px;
    padding-inline-start: 6px;
    border-inline-start: 1px solid var(--dash-border);
    margin-inline-start: 12px;
    flex: 0 1 auto;
    min-height: 0;
    overflow-y: auto;
}

.agent_switch_menu {
    min-width: 240px;
    z-index: 30;
}

/* copy a message: shows on hover, next to its time */
.achat_copy {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    margin-inline-start: 6px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: none;
    color: var(--dash-muted);
    vertical-align: middle;
    opacity: 0;
    transition: opacity .15s ease, background .15s ease;
}

.achat_copy svg {
    width: 14px;
    height: 14px;
}

.achat_msg:hover .achat_copy,
.achat_copy:focus-visible,
.achat_copy.is_copied {
    opacity: 1;
}

.achat_copy:hover {
    background: var(--dash-hover);
    color: var(--dash-text);
}

.achat_copy.is_copied {
    color: var(--dash-success);
}

@media (hover: none) {
    .achat_copy {
        opacity: .7;
    }
}

/* browser autofill keeps our own colours (no white / blue / yellow fill), also while focused:
   !important because a field's own focus ring would otherwise remove the fill */
input:-webkit-autofill,
input:-webkit-autofill:hover,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-text-fill-color: var(--dash-text) !important;
    caret-color: var(--dash-text);
    -webkit-box-shadow: 0 0 0 1000px var(--dash-panel) inset !important;
    box-shadow: 0 0 0 1000px var(--dash-panel) inset !important;
    transition: background-color 600000s 0s, color 600000s 0s;
}

input:-webkit-autofill:focus,
textarea:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--dash-text) !important;
    -webkit-box-shadow: 0 0 0 1000px var(--dash-panel) inset, 0 0 0 3px rgba(var(--dash-brand-rgb), .16) !important;
    box-shadow: 0 0 0 1000px var(--dash-panel) inset, 0 0 0 3px rgba(var(--dash-brand-rgb), .16) !important;
}

input:autofill {
    background-color: var(--dash-panel);
    color: var(--dash-text);
}

/* a chat in the side list: pin and menu show on hover (a pinned chat keeps its pin) */
.agent_nav_chat_row {
    position: relative;
    border-radius: 9px;
    transition: background .15s ease;
}

.agent_nav_chat_row .agent_nav_chat {
    padding-inline-end: 10px;
}

.agent_nav_chat_row:hover,
.agent_nav_chat_row:focus-within,
.agent_nav_chat_row:has(.contact_dropdown.open) {
    background: var(--dash-hover);
}

.agent_nav_chat_row:hover .agent_nav_chat,
.agent_nav_chat_row:focus-within .agent_nav_chat,
.agent_nav_chat_row:has(.contact_dropdown.open) .agent_nav_chat {
    padding-inline-end: 58px;
    background: none;
    color: var(--dash-text);
}

.agent_nav_chat_tools {
    position: absolute;
    top: 0;
    bottom: 0;
    inset-inline-end: 4px;
    display: flex;
    align-items: center;
    gap: 2px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease;
}

.agent_nav_chat_row:hover .agent_nav_chat_tools,
.agent_nav_chat_row:focus-within .agent_nav_chat_tools,
.agent_nav_chat_row:has(.contact_dropdown.open) .agent_nav_chat_tools {
    opacity: 1;
    pointer-events: auto;
}

.agent_nav_chat_pin,
.agent_nav_chat_more {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: none;
    color: var(--dash-muted);
}

.agent_nav_chat_pin:hover,
.agent_nav_chat_more:hover {
    background: var(--dash-panel);
    color: var(--dash-text);
}

.agent_nav_chat_pin svg,
.agent_nav_chat_more svg {
    width: 15px;
    height: 15px;
}

/* pinned: the pin stays, in the brand colour */
.agent_nav_chat_row.is_pinned .agent_nav_chat {
    padding-inline-end: 32px;
}

.agent_nav_chat_row.is_pinned .agent_nav_chat_tools {
    opacity: 1;
    pointer-events: auto;
}

.agent_nav_chat_row.is_pinned .agent_nav_chat_pin {
    color: var(--dash-brand-strong);
}

.agent_nav_chat_row.is_pinned:not(:hover):not(:focus-within) .agent_nav_chat_more {
    display: none;
}

/* the row's menu lives above the page (fixed), never inside the scrolling list; shown once placed */
.agent_nav_chat_tools .contact_dropdown_menu {
    position: fixed;
    z-index: 1060;
    min-width: 180px;
    width: max-content;
    inset: auto;
    visibility: hidden;
}

.agent_nav_chat_tools .contact_dropdown.open .contact_dropdown_menu.is_placed {
    visibility: visible;
}

/* rename a chat */
.chat_rename_modal .modal-content {
    position: relative;
    padding: 26px 24px 22px;
    border: 1px solid var(--dash-border);
    border-radius: 18px;
    background: var(--dash-panel);
    color: var(--dash-text);
}

.chat_rename_modal h3 {
    margin: 0 0 6px;
    font-size: 1.2rem;
}

.chat_rename_modal p {
    margin: 0 0 16px;
    color: var(--dash-text-soft);
    font-size: .9rem;
}

.chat_rename_close {
    position: absolute;
    top: 14px;
    inset-inline-end: 14px;
}

.chat_rename_actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 18px;
}

/* inside a side-menu item the spinner sits where the icon was, never stretched like the label */
.dash_aside_item>.oauth_spinner {
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    margin: 0 2px;
    overflow: visible;
}

/* an agent's reference files (Knowledge & Data) */
.agent_files {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.agent_files_drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 26px 20px;
    border: 1px dashed var(--dash-border-strong);
    border-radius: var(--dash-radius-sm);
    background: var(--dash-panel);
    text-align: center;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease;
}

.agent_files_drop:hover,
.agent_files_drop.is_over {
    border-color: var(--dash-brand);
    background: rgba(var(--dash-brand-rgb), 0.06);
}

.agent_files_drop small {
    color: var(--dash-muted);
    font-size: .8rem;
}

.agent_files_list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--dash-border);
    border-radius: var(--dash-radius-sm);
    background: var(--dash-panel);
}

.agent_files_list:empty {
    display: none;
}

.agent_file {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
}

.agent_file+.agent_file {
    border-top: 1px solid var(--dash-border);
}

.agent_file_icon {
    position: relative;
    display: inline-grid;
    place-items: center;
    flex: 0 0 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--dash-panel-soft);
    border: 1px solid var(--dash-border);
    color: var(--dash-chip-color);
}

.agent_file_icon svg {
    width: 18px;
    height: 18px;
}

.agent_file_icon b {
    position: absolute;
    bottom: -6px;
    inset-inline-end: -6px;
    padding: 0 4px;
    border-radius: 4px;
    background: var(--dash-panel);
    border: 1px solid var(--dash-border);
    color: var(--dash-text-soft);
    font-size: .58rem;
    line-height: 1.5;
}

.agent_file_name {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    color: var(--dash-text);
    text-decoration: none;
}

.agent_file_name strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: .9rem;
}

.agent_file_name small {
    color: var(--dash-muted);
    font-size: .78rem;
}

.agent_file.is_unreadable .agent_file_name small {
    color: var(--dash-danger);
}

.agent_files_count {
    color: var(--dash-muted);
    font-size: .78rem;
}

/* ===== Finance ===== */
.fin_page {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* the quick box: a sentence or a receipt */
.fin_quick {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 8px 8px 14px;
    border: 1px solid var(--dash-border);
    border-radius: 14px;
    background: var(--dash-panel);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.fin_quick:focus-within {
    border-color: var(--dash-brand);
    box-shadow: 0 0 0 3px rgba(var(--dash-brand-rgb), 0.12);
}

.fin_quick.is_reading {
    opacity: .7;
    pointer-events: none;
}

.fin_quick_icon {
    display: inline-grid;
    color: var(--dash-brand-strong);
}

.fin_quick_icon svg {
    width: 18px;
    height: 18px;
}

.fin_quick_input {
    flex: 1;
    min-width: 0;
    padding: 8px 0;
    border: 0;
    outline: 0;
    background: none;
    color: var(--dash-text);
    font-size: .95rem;
}

.fin_quick_receipt {
    cursor: pointer;
}

.fin_quick_hint {
    margin: -8px 0 0;
    padding-inline-start: 4px;
    color: var(--dash-muted);
    font-size: .8rem;
}

.fin_toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.fin_month {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.fin_month strong {
    min-width: 150px;
    text-align: center;
    font-size: 1rem;
}

[dir="rtl"] .fin_month .dash_icon_btn svg {
    transform: scaleX(-1);
}

.fin_scopes a {
    text-decoration: none;
}

/* the month in three numbers */
.fin_stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.fin_stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px;
}

.fin_stat_label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--dash-text-soft);
    font-size: .84rem;
}

.fin_stat_label svg {
    width: 16px;
    height: 16px;
}

.fin_stat strong {
    font-size: 1.45rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.fin_stat small {
    color: var(--dash-muted);
    font-size: .78rem;
}

.fin_stat.is_income .fin_stat_label svg {
    color: var(--dash-success);
}

.fin_stat.is_expense .fin_stat_label svg {
    color: var(--dash-danger);
}

.fin_stat.is_net .fin_stat_label svg {
    color: var(--dash-brand-strong);
}

.fin_other {
    margin: -6px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--dash-muted);
    font-size: .8rem;
}

.fin_spending,
.fin_wallets,
.fin_recent {
    padding: 18px;
}

.fin_empty {
    margin: 0;
    color: var(--dash-muted);
    font-size: .88rem;
}

/* spending per category, against its budget */
.fin_bars {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.fin_bar_head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
    font-size: .88rem;
}

.fin_bar_head span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.fin_bar_head i {
    flex: 0 0 8px;
    height: 8px;
    border-radius: 50%;
}

.fin_bar_head b {
    font-weight: 600;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.fin_bar_head small {
    color: var(--dash-muted);
    font-weight: 400;
}

.fin_bar {
    display: block;
    height: 6px;
    border-radius: 6px;
    background: var(--dash-panel-soft);
    overflow: hidden;
}

.fin_bar span {
    display: block;
    height: 100%;
    border-radius: 6px;
    transition: width .4s var(--dash-ease);
}

.fin_bars li.is_over .fin_bar_head b {
    color: var(--dash-danger);
}

/* the wallets now */
.fin_wallet_list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.fin_wallet_list li+li {
    border-top: 1px solid var(--dash-border);
}

.fin_wallet_list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: var(--dash-text);
    text-decoration: none;
}

.fin_wallet_name {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.fin_wallet_name small {
    color: var(--dash-muted);
    font-size: .78rem;
}

.fin_wallet_list b {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.is_negative {
    color: var(--dash-danger);
}

.fin_more {
    display: inline-block;
    margin-top: 12px;
    font-size: .86rem;
}

/* one transaction */
.fin_list {
    display: flex;
    flex-direction: column;
    padding: 4px 0;
}

.fin_row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    background: none;
    color: var(--dash-text);
    text-align: start;
    cursor: pointer;
}

.fin_row:hover {
    background: var(--dash-hover);
}

.fin_list .fin_row+.fin_row {
    border-top: 1px solid var(--dash-border);
    border-radius: 0;
}

.fin_row_chip {
    display: inline-grid;
    place-items: center;
    flex: 0 0 36px;
    height: 36px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--c) 16%, transparent);
    color: var(--c);
}

.fin_row_chip svg {
    width: 18px;
    height: 18px;
}

.fin_row_text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fin_row_text strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: .92rem;
}

.fin_row_text small {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--dash-muted);
    font-size: .78rem;
}

.fin_row_text small svg {
    width: 12px;
    height: 12px;
    vertical-align: -2px;
}

.fin_row_end {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.fin_row_end b {
    font-weight: 600;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.fin_row.is_income .fin_row_end b {
    color: var(--dash-success);
}

.fin_row_end small {
    color: var(--dash-muted);
    font-size: .76rem;
}

/* transactions page */
.fin_filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.fin_filters>.dash_input {
    flex: 1 1 220px;
}

.fin_filters .ts-wrapper,
.fin_filters select.tom_select:not(.tomselected) {
    flex: 0 1 180px;
    min-width: 150px;
}

.fin_day {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fin_day_head {
    display: flex;
    justify-content: space-between;
    margin: 0;
    color: var(--dash-text-soft);
    font-size: .84rem;
    font-weight: 600;
}

.fin_day_head small {
    font-weight: 500;
    color: var(--dash-muted);
}

/* the add / edit window */
.fin_form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fin_dir {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--dash-border);
    border-radius: 12px;
    background: var(--dash-panel-soft);
}

.fin_dir_two {
    grid-template-columns: repeat(2, 1fr);
}

.fin_dir_option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.fin_dir_option span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 9px;
    color: var(--dash-text-soft);
    font-size: .88rem;
    font-weight: 500;
    cursor: pointer;
}

.fin_dir_option span svg {
    width: 16px;
    height: 16px;
}

.fin_dir_option input:checked+span {
    background: var(--dash-panel);
    color: var(--dash-text);
    box-shadow: var(--dash-shadow);
}

.fin_dir_option.is_expense input:checked+span svg {
    color: var(--dash-danger);
}

.fin_dir_option.is_income input:checked+span svg {
    color: var(--dash-success);
}

.fin_dir_option input:focus-visible+span {
    outline: 2px solid var(--dash-brand);
}

.fin_amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    padding: 6px 0 2px;
}

.fin_amount_input {
    width: 100%;
    max-width: 260px;
    border: 0;
    outline: 0;
    background: none;
    color: var(--dash-text);
    font-size: 2.2rem;
    font-weight: 600;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.fin_amount_input::-webkit-outer-spin-button,
.fin_amount_input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.fin_amount_currency {
    color: var(--dash-muted);
    font-size: 1rem;
    font-weight: 600;
}

.fin_grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
}

.fin_grid>[hidden] {
    display: none !important;
}

.fin_category_select[hidden] {
    display: none;
}

.fin_scope {
    display: inline-flex;
    gap: 4px;
    padding: 3px;
    border: 1px solid var(--dash-border);
    border-radius: 10px;
    background: var(--dash-panel-soft);
}

.fin_scope input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.fin_scope span {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 8px;
    color: var(--dash-text-soft);
    font-size: .84rem;
    cursor: pointer;
}

.fin_scope input:checked+span {
    background: var(--dash-panel);
    color: var(--dash-text);
    box-shadow: var(--dash-shadow);
}

.fin_receipt {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fin_receipt .dash_btn svg {
    width: 16px;
    height: 16px;
}

.fin_receipt label {
    cursor: pointer;
}

.fin_delete {
    margin-inline-end: auto;
}

.fin_color_dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-inline-end: 6px;
    border-radius: 50%;
    vertical-align: 0;
}

.fin_color_input {
    height: 42px;
    padding: 4px;
}

.fin_two {
    grid-template-columns: repeat(2, 1fr);
}

.dash_table tr.is_muted td {
    opacity: .55;
}

/* a transaction card in the chat */
.achat_txn .achat_email_head {
    align-items: center;
}

.achat_txn_amount {
    margin-inline-start: auto;
    font-size: 0.95rem;
    font-variant-numeric: tabular-nums;
}

.achat_txn.is_income .achat_txn_amount {
    color: var(--dash-success);
}

.achat_txn_body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 4px 0 2px;
}

.achat_txn_body small {
    color: var(--dash-muted);
    font-size: .8rem;
}

@media (max-width: 767px) {
    .fin_stats {
        grid-template-columns: minmax(0, 1fr);
    }

    .fin_grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .fin_quick_hint {
        display: none;
    }

    .fin_month strong {
        min-width: 0;
    }
}

/* Finance overview: the month at a glance */
.fin_hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    gap: 28px;
    padding: 22px;
}

.fin_hero_main {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.fin_hero_label {
    color: var(--dash-text-soft);
    font-size: .86rem;
}

.fin_hero_value {
    font-size: 2.1rem;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -.01em;
    font-variant-numeric: tabular-nums;
}

.fin_hero_compare {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    color: var(--dash-muted);
    font-size: .8rem;
}

.fin_trend {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--dash-panel-soft);
    color: var(--dash-text);
    font-weight: 600;
}

.fin_trend svg {
    width: 13px;
    height: 13px;
}

.fin_trend.is_up svg {
    color: var(--dash-success);
}

.fin_trend.is_down svg {
    color: var(--dash-danger);
}

.fin_hero_split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.fin_hero_figure {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--dash-border);
    border-radius: var(--dash-radius-sm);
    color: var(--dash-text);
    text-decoration: none;
    transition: border-color .15s ease, background .15s ease;
}

.fin_hero_figure:hover {
    border-color: var(--dash-border-strong);
    background: var(--dash-hover);
}

.fin_hero_figure>span:last-child {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.fin_hero_figure small {
    color: var(--dash-muted);
    font-size: .76rem;
}

.fin_hero_figure b {
    font-size: 0.95rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.fin_hero_figure em {
    color: var(--dash-muted);
    font-size: .78rem;
    font-style: normal;
}

.fin_hero_figure.is_income .dash_chip svg {
    color: var(--dash-success);
}

.fin_hero_figure.is_expense .dash_chip svg {
    color: var(--dash-danger);
}

.fin_meter {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 14px;
}

.fin_meter_track {
    height: 6px;
    border-radius: 999px;
    background: var(--dash-panel-soft);
    overflow: hidden;
}

.fin_meter_track i {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--dash-chart-bar);
}

.fin_meter.is_over .fin_meter_track i {
    background: var(--dash-danger);
}

.fin_meter small {
    color: var(--dash-muted);
    font-size: .78rem;
}

.fin_chart {
    grid-template-rows: auto 150px auto;
    align-self: stretch;
}

.fin_chart_title {
    grid-column: 1 / -1;
    color: var(--dash-text-soft);
    font-size: .86rem;
}

.fin_chart .credits_bar_slot.is_future .credits_bar {
    opacity: 0;
}

.fin_chart .credits_bar_slot.is_today::before {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--dash-text-soft);
    transform: translateX(-50%);
}

/* where the money went */
.fin_share {
    display: flex;
    gap: 2px;
    height: 10px;
    margin-bottom: 8px;
    border-radius: 999px;
    overflow: hidden;
}

.fin_share i {
    min-width: 3px;
}

.fin_cats {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fin_cats li+li {
    border-top: 1px solid var(--dash-border);
}

.fin_cats a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    color: var(--dash-text);
    text-decoration: none;
}

.fin_cats a:hover strong {
    color: var(--dash-brand-strong);
}

.fin_cat_dot {
    flex: none;
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

.fin_cat_name {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.fin_cat_name strong {
    font-size: .92rem;
    font-weight: 500;
    transition: color .15s ease;
}

.fin_cat_budget {
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-width: 260px;
}

.fin_cat_budget .fin_bar span {
    background: var(--dash-chart-bar);
}

.fin_cats li.is_over .fin_cat_budget .fin_bar span {
    background: var(--dash-danger);
}

.fin_cat_budget small {
    color: var(--dash-muted);
    font-size: .74rem;
}

.fin_cats li.is_over .fin_cat_budget small {
    color: var(--dash-danger);
}

.fin_cat_end {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: end;
}

.fin_cat_end b {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.fin_cat_end small {
    color: var(--dash-muted);
    font-size: .74rem;
}

/* wallets */
.fin_wallets_total {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 8px;
    padding: 12px 14px;
    border-radius: var(--dash-radius-sm);
    background: var(--dash-panel-soft);
}

.fin_wallets_total small {
    color: var(--dash-muted);
    font-size: .78rem;
}

.fin_wallets_total strong {
    font-size: 1.25rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* export menu and the Google Sheet */
.fin_export .contact_dropdown_menu a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fin_sheet {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 22px;
    padding: 18px;
}

.fin_sheet_text {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fin_sheet_text small {
    color: var(--dash-muted);
    font-size: .82rem;
}

.fin_sheet_actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fin_sheet_actions form {
    margin: 0;
}

@media (max-width: 991px) {
    .fin_hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }
}

@media (max-width: 575px) {
    .fin_hero {
        padding: 18px;
    }

    .fin_hero_value {
        font-size: 1.7rem;
    }

    .fin_hero_split {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Instagram: the connected account, and the DMs in the inbox */
.ig_account {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    padding: 20px;
}

.ig_account_text {
    flex: 1;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ig_account_text strong {
    font-size: 0.95rem;
}

html[dir="rtl"] .ig_account_text strong {
    direction: rtl;
}

.ig_account_text small {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--dash-muted);
}

.ig_account_actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ig_account_actions form {
    margin: 0;
}

.ig_modes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ig_avatar {
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--dash-panel-soft);
}

.ig_avatar.large {
    width: 52px;
    height: 52px;
}

.ig_avatar.is_letter {
    display: inline-grid;
    place-items: center;
    color: var(--dash-text-soft);
    font-weight: 600;
}

.ig_app {
    display: grid;
    grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
    gap: 14px;
    height: calc(100vh - 210px);
    min-height: 460px;
}

.ig_list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px;
    overflow-y: auto;
}

.ig_filters {
    margin: 2px 2px 8px;
}

.ig_filters a {
    text-decoration: none;
}

.ig_item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: var(--dash-radius-sm);
    color: var(--dash-text);
    text-decoration: none;
    transition: background .15s ease;
}

.ig_item:hover {
    background: var(--dash-hover);
}

.ig_item.is_active {
    background: var(--dash-active);
}

.ig_item_text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.ig_item_text strong,
.ig_item_text small {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ig_item_text strong {
    font-size: .9rem;
    font-weight: 500;
}

.ig_item.is_unread .ig_item_text strong {
    font-weight: 700;
}

.ig_item_text small {
    color: var(--dash-muted);
    font-size: .78rem;
}

.ig_item_end {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.ig_item_end time {
    color: var(--dash-muted);
    font-size: .78rem;
}

.ig_unread {
    min-width: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--dash-brand);
    color: var(--dash-on-brand);
    font-size: .7rem;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
}

.ig_thread {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.ig_thread_head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--dash-border);
}

.ig_thread_name {
    flex: 1;
    min-width: 160px;
    display: flex;
    flex-direction: column;
}

.ig_thread_name small {
    color: var(--dash-muted);
    font-size: .78rem;
}

.ig_thread_name small a {
    color: inherit;
}

.ig_agent_state {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.ig_messages {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    overflow-y: auto;
}

.ig_bubble_row.is_outgoing {
    align-self: flex-end;
    align-items: flex-end;
}

/* the "…" of a message (on hover) and of a conversation (in its head): Delete */
.ig_bubble_row {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-width: 75%;
    position: relative;
}

.inbox_menu {
    position: relative;
}

.inbox_menu.is_message {
    position: absolute;
    top: 4px;
    inset-inline-end: -36px;
    opacity: 0;
    transition: opacity .15s ease;
}

.ig_bubble_row.is_outgoing .inbox_menu.is_message {
    inset-inline-end: auto;
    inset-inline-start: -36px;
}

.ig_bubble_row:hover .inbox_menu.is_message,
.inbox_menu.is_message[open],
.inbox_menu.is_message:focus-within {
    opacity: 1;
}

.inbox_menu.is_chat {
    margin-inline-start: auto;
}

.inbox_menu_button {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: var(--dash-muted);
    cursor: pointer;
    list-style: none;
    transition: background-color .15s ease, color .15s ease;
}

.inbox_menu_button::-webkit-details-marker {
    display: none;
}

.inbox_menu_button:hover,
.inbox_menu[open] .inbox_menu_button {
    background: var(--dash-panel-soft);
    color: var(--dash-text);
}

.inbox_menu_button svg {
    width: 16px;
    height: 16px;
}

.inbox_menu_list {
    position: absolute;
    top: calc(100% + 4px);
    inset-inline-end: 0;
    z-index: 20;
    min-width: 190px;
    margin: 0;
    padding: 6px;
    border: 1px solid var(--dash-border);
    border-radius: 12px;
    background: var(--dash-panel);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
}

.ig_bubble_row.is_outgoing .inbox_menu_list {
    inset-inline-end: auto;
    inset-inline-start: 0;
}

.inbox_menu_list button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--dash-text);
    font: inherit;
    font-size: .88rem;
    text-align: start;
    cursor: pointer;
}

.inbox_menu_list button:hover {
    background: var(--dash-panel-soft);
}

.inbox_menu_list button.is_danger {
    color: var(--dash-danger);
}

.inbox_menu_list svg {
    width: 15px;
    height: 15px;
}

.ig_bubble {
    padding: 9px 13px;
    border-radius: 18px;
    background: var(--dash-panel-soft);
    overflow-wrap: anywhere;
}

.ig_bubble_row.is_outgoing .ig_bubble {
    background: var(--dash-brand);
    color: var(--dash-on-brand);
}

.ig_bubble.is_sending {
    opacity: .6;
}

.ig_bubble p {
    margin: 0;
    white-space: pre-line;
}

.ig_bubble img {
    display: block;
    max-width: 220px;
    max-height: 260px;
    margin-top: 4px;
    border-radius: 12px;
    object-fit: cover;
}

.ig_attachment {
    font-size: .8rem;
    opacity: .8;
}

.ig_meta {
    color: var(--dash-muted);
    font-size: .7rem;
}

.ig_draft {
    align-self: flex-end;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: min(100%, 520px);
    padding: 12px;
    border: 1px dashed var(--dash-brand);
    border-radius: var(--dash-radius-sm);
    background: rgba(var(--dash-brand-rgb), .06);
}

.ig_draft.is_failed {
    border-color: var(--dash-danger);
    background: transparent;
}

.ig_draft.is_compact {
    align-self: stretch;
    width: auto;
    margin-top: 10px;
}

.ig_draft_head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: .84rem;
}

.ig_draft_head svg {
    width: 16px;
    height: 16px;
    color: var(--dash-brand-strong);
}

.ig_draft.is_failed .ig_draft_head svg {
    color: var(--dash-danger);
}

.ig_draft_head small {
    flex-basis: 100%;
    color: var(--dash-muted);
}

.ig_draft_actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.ig_composer {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin: 0;
    padding: 12px 14px;
    border-top: 1px solid var(--dash-border);
}

.ig_composer textarea {
    flex: 1;
    min-height: 42px;
    max-height: 160px;
    resize: vertical;
}

/* ---------- Inbox → Chats: every channel in one screen (list, chat, customer) ---------- */
/* the chats take the whole width (closing the menu beside them gives them the room) */
.dash_content.dash_content_chats {
    max-width: none;
}

/* a hidden part of the chat stays hidden, whatever its own display */
.cx_app [hidden],
.cx_quick[hidden],
.cx_file[hidden] {
    display: none !important;
}

/* a file dragged over the chat: the place it goes lights up */
.cx_composer.is_drop {
    outline: 2px dashed var(--dash-brand);
    outline-offset: 4px;
    border-radius: 16px;
}

/* Chat settings: the saved replies */
.cx_settings h3 {
    margin: 0 0 10px;
    font-size: 1rem;
}

.cx_settings_list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.cx_settings_list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--dash-border);
    border-radius: 12px;
}

.cx_settings_list li>div {
    flex: 1;
    min-width: 0;
}

.cx_settings_list p {
    margin: 2px 0 0;
    color: var(--dash-muted);
    font-size: .86rem;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.cx_settings_new {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
}

.cx_settings_new .dash_btn {
    align-self: flex-end;
}

.cx_app {
    display: grid;
    grid-template-columns: minmax(260px, 330px) minmax(0, 1fr) minmax(250px, 300px);
    gap: 14px;
    height: calc(100vh - 210px);
    min-height: 520px;
}

.cx_list,
.cx_panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 10px;
    overflow-y: auto;
}

.cx_search {
    position: relative;
    margin: 2px 2px 8px;
}

.cx_search .dash_input {
    padding-inline-start: 38px;
}

.cx_search_icon {
    position: absolute;
    top: 50%;
    inset-inline-start: 12px;
    display: flex;
    color: var(--dash-muted);
    transform: translateY(-50%);
    pointer-events: none;
}

.cx_search_icon svg {
    width: 16px;
    height: 16px;
}

.cx_channels {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 2px 8px;
}

.cx_channel {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border: 1px solid var(--dash-border);
    border-radius: 999px;
    color: var(--dash-text-soft);
    font-size: .8rem;
    text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.cx_channel:hover {
    color: var(--dash-text);
    border-color: var(--dash-border-strong);
}

.cx_channel.is_active {
    border-color: var(--dash-brand);
    background: rgba(var(--dash-brand-rgb), .14);
    color: var(--dash-text);
}

.cx_filters {
    margin: 0 2px 8px;
}

.cx_items {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cx_item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: var(--dash-radius-sm);
    color: var(--dash-text);
    text-decoration: none;
    transition: background .15s ease;
}

.cx_item:hover {
    background: var(--dash-hover);
}

.cx_item.is_active {
    background: var(--dash-active);
    box-shadow: inset 3px 0 0 var(--dash-brand);
}

[dir="rtl"] .cx_item.is_active {
    box-shadow: inset -3px 0 0 var(--dash-brand);
}

.cx_item_text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cx_item_text strong,
.cx_item_text small {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.cx_item_text strong {
    font-weight: 500;
    font-size: .92rem;
}

.cx_item.is_unread .cx_item_text strong {
    font-weight: 700;
}

.cx_item_text small {
    color: var(--dash-muted);
    font-size: .78rem;
}

.cx_item_end {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    color: var(--dash-muted);
    font-size: .78rem;
}

.cx_unread {
    min-width: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--dash-brand);
    color: var(--dash-on-brand);
    font-size: .7rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.cx_avatar {
    position: relative;
    flex: none;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--dash-panel-soft);
    color: var(--dash-text-soft);
    font-weight: 600;
}

.cx_avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.cx_avatar.is_small {
    width: 36px;
    height: 36px;
}

.cx_avatar.is_large {
    width: 64px;
    height: 64px;
    font-size: 1.4rem;
}

/* the channel, small, on the corner of the picture */
.cx_avatar_channel {
    position: absolute;
    inset-inline-end: -3px;
    bottom: -3px;
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border: 2px solid var(--dash-panel);
    border-radius: 50%;
    background: var(--dash-panel);
}

.cx_empty {
    margin: 24px 10px;
    color: var(--dash-muted);
    font-size: .88rem;
    text-align: center;
}

.cx_empty.is_small {
    margin: 10px 0;
    font-size: .8rem;
}

.cx_thread {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.cx_thread_head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--dash-border);
}

.cx_thread_name {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.cx_thread_name small {
    color: var(--dash-muted);
    font-size: .8rem;
}

.cx_messages {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 22px;
    overflow-y: auto;
}

.cx_messages .ig_bubble_row {
    max-width: 70%;
}

/* the day between messages */
.cx_day {
    display: flex;
    justify-content: center;
    margin: 8px 0 2px;
}

.cx_day span {
    padding: 3px 12px;
    border-radius: 999px;
    background: var(--dash-panel-soft);
    color: var(--dash-muted);
    font-size: .74rem;
}

.cx_failed {
    color: var(--dash-danger);
}

.ig_bubble.is_failed {
    outline: 1px dashed var(--dash-danger);
}

/* the composer: the text, then its tools and Send */
.cx_composer {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 12px 14px;
    border-top: 1px solid var(--dash-border);
}

.cx_input {
    width: 100%;
    min-height: 44px;
    max-height: 180px;
    padding: 11px 14px;
    border: 1px solid var(--dash-border-strong);
    border-radius: 14px;
    background: var(--dash-panel);
    color: var(--dash-text);
    font: inherit;
    resize: none;
}

.cx_input:focus {
    outline: none;
    border-color: var(--dash-brand);
}

.cx_tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.cx_tool {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 11px;
    border: 1px solid var(--dash-border);
    border-radius: 999px;
    background: transparent;
    color: var(--dash-text-soft);
    font: inherit;
    font-size: .82rem;
    cursor: pointer;
    list-style: none;
    transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}

.cx_tool::-webkit-details-marker {
    display: none;
}

.cx_tool:hover {
    color: var(--dash-text);
    border-color: var(--dash-border-strong);
}

.cx_tool svg {
    width: 15px;
    height: 15px;
}

.cx_tool.is_ai {
    border-color: rgba(var(--dash-brand-rgb), .45);
    color: var(--dash-text);
}

.cx_tool.is_ai svg {
    color: var(--dash-brand);
}

.cx_rewrite {
    position: relative;
}

.cx_rewrite .inbox_menu_list {
    top: auto;
    bottom: calc(100% + 6px);
    inset-inline-end: auto;
    inset-inline-start: 0;
}

.cx_send {
    margin-inline-start: auto;
}

.cx_file {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    max-width: 100%;
    padding: 6px 8px 6px 12px;
    border: 1px solid var(--dash-border-strong);
    border-radius: 999px;
    font-size: .84rem;
}

.cx_file svg {
    flex: none;
    width: 15px;
    height: 15px;
}

.cx_file span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.cx_file_remove {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 50%;
    background: var(--dash-panel-soft);
    color: var(--dash-muted);
    cursor: pointer;
}

.cx_file_remove svg {
    width: 12px;
    height: 12px;
}

/* saved replies ("/") above the composer */
.cx_quick {
    position: absolute;
    bottom: calc(100% + 6px);
    inset-inline: 14px;
    z-index: 20;
    max-height: 340px;
    padding: 6px;
    border: 1px solid var(--dash-border);
    border-radius: 14px;
    background: var(--dash-panel);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
    overflow-y: auto;
}

.cx_quick_row {
    display: flex;
    align-items: stretch;
    gap: 4px;
}

.cx_quick_use {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--dash-text);
    font: inherit;
    text-align: start;
    cursor: pointer;
}

.cx_quick_use:hover {
    background: var(--dash-panel-soft);
}

.cx_quick_use strong {
    font-size: .86rem;
}

.cx_quick_use small {
    overflow: hidden;
    color: var(--dash-muted);
    font-size: .78rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.cx_quick_delete {
    width: 30px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--dash-muted);
    font-size: 1.1rem;
    cursor: pointer;
}

.cx_quick_delete:hover {
    background: var(--dash-panel-soft);
    color: var(--dash-danger);
}

.cx_quick_new {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 6px;
    padding: 8px 4px 2px;
    border-top: 1px solid var(--dash-border);
}

.cx_quick_new .dash_btn {
    align-self: flex-end;
}

/* the customer */
.cx_person {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 8px 18px;
    border-bottom: 1px solid var(--dash-border);
    text-align: center;
}

.cx_person .cx_avatar {
    margin-bottom: 6px;
}

.cx_person small {
    color: var(--dash-muted);
    font-size: .82rem;
}

.cx_person_channel {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    color: var(--dash-text-soft);
    font-size: .8rem;
}

.cx_facts {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
    padding: 16px 8px;
    border-bottom: 1px solid var(--dash-border);
}

.cx_facts dt {
    margin-bottom: 4px;
    color: var(--dash-muted);
    font-size: .76rem;
    font-weight: 500;
}

.cx_facts dd {
    margin: 0;
    font-size: .86rem;
}

.cx_agent {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.cx_notes {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 8px;
}

.cx_notes h3 {
    margin: 0;
    font-size: .9rem;
}

.cx_note_form {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
}

.cx_note_form .dash_btn {
    align-self: flex-end;
}

.cx_note {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(var(--dash-brand-rgb), .1);
}

.cx_note p {
    margin: 0 0 4px;
    font-size: .86rem;
    white-space: pre-line;
}

.cx_note small {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--dash-muted);
    font-size: .74rem;
}

.cx_note_delete {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    margin-inline-start: auto;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--dash-muted);
    cursor: pointer;
}

.cx_note_delete:hover {
    color: var(--dash-danger);
}

.cx_note_delete svg {
    width: 13px;
    height: 13px;
}

.cx_connect {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

@media (max-width: 1279.98px) {

    /* narrower: the customer goes under the chat */
    .cx_app {
        grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
        grid-template-rows: minmax(0, 1fr) auto;
        height: auto;
    }

    .cx_list,
    .cx_thread {
        height: calc(100vh - 210px);
        min-height: 480px;
    }

    .cx_panel {
        grid-column: 2;
    }
}

@media (max-width: 767.98px) {

    /* phones: one column, the list first */
    .cx_app {
        grid-template-columns: minmax(0, 1fr);
    }

    .cx_list {
        height: auto;
        max-height: 340px;
    }

    .cx_panel {
        grid-column: auto;
    }

    .cx_messages .ig_bubble_row {
        max-width: 88%;
    }
}

.ig_welcome {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 30px;
    text-align: center;
}

.ig_welcome p {
    max-width: 420px;
    margin: 0;
    color: var(--dash-muted);
}

@media (max-width: 991px) {
    .ig_modes {
        grid-template-columns: minmax(0, 1fr);
    }

    .ig_app {
        grid-template-columns: minmax(0, 1fr);
        height: auto;
    }

    .ig_list {
        max-height: 260px;
    }

    .ig_thread {
        min-height: 520px;
    }

    .ig_bubble_row {
        max-width: 90%;
    }
}

.ig_note {
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 90%;
    margin: 2px 0;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--dash-panel-soft);
    color: var(--dash-text-soft);
    font-size: .78rem;
    text-align: center;
}

.ig_note svg {
    flex: none;
    width: 14px;
    height: 14px;
    color: var(--dash-danger);
}

/* Phone: the agent's number and the calls it took */
/* no number yet: what one does, before the search */
.phone_invite_list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.phone_invite_list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--dash-text);
    font-size: 0.82rem;
}

.phone_invite_list .icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    color: var(--dash-brand-strong);
}

.phone_get,
.phone_number_card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 18px;
    padding: 20px;
}

.phone_get_head,
.phone_number_head,
.phone_detail_head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.phone_get_head h3 {
    margin: 0 0 4px;
    font-size: 0.95rem;
}

.phone_get_head p {
    margin: 0;
    color: var(--dash-muted);
}

.phone_number_head>div,
.phone_detail_head>div {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.phone_number_head strong,
.phone_detail_head strong {
    font-size: 1.15rem;
    font-variant-numeric: tabular-nums;
}

.phone_detail_head small {
    color: var(--dash-muted);
}

.phone_search {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin: 0;
}

.phone_search_field {
    flex: 1 1 0;
    min-width: 0;
}

.phone_search_field label {
    display: block;
    margin-bottom: 7px;
    color: var(--dash-text-soft);
    font-size: .8rem;
}

.phone_search_field .ts-wrapper,
.phone_search_field .dash_input {
    width: 100%;
    min-width: 0;
}

.phone_search .dash_btn {
    min-width: 10rem;
}

.phone_results {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px;
}

.phone_results li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--dash-border);
    border-radius: var(--dash-radius-sm);
}

.phone_results li>span {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.phone_results small,
.phone_get_note,
.phone_results_note {
    color: var(--dash-muted);
    font-size: .8rem;
}

.phone_results_note {
    grid-column: 1 / -1;
    border: 0 !important;
}

.phone_results_note.is_error {
    color: var(--dash-danger);
}

.phone_settings {
    margin: 0;
}

.phone_forward {
    padding: 12px 14px;
    border-radius: var(--dash-radius-sm);
    background: var(--dash-panel-soft);
}

.phone_forward summary {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    cursor: pointer;
}

.phone_forward summary svg {
    width: 16px;
    height: 16px;
}

.phone_forward p,
.phone_forward small {
    color: var(--dash-text-soft);
    font-size: .86rem;
}

.phone_forward ul {
    list-style: none;
    margin: 0 0 8px;
    padding: 0;
}

.phone_forward li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 0;
    border-bottom: 1px solid var(--dash-border);
    font-size: .86rem;
}

.phone_forward code {
    font-weight: 600;
    user-select: all;
}

.dash_section_head.phone_calls_head {
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

[dir="rtl"] .dash_section_head.phone_calls_head {
    flex-direction: row;
}

.phone_calls_head .dash_btn {
    flex-shrink: 0;
}

.phone_call_row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: var(--dash-radius-sm);
    color: var(--dash-text);
    text-decoration: none;
}

.phone_call_row:hover {
    background: var(--dash-hover);
}

.phone_call_row.is_active {
    background: var(--dash-active);
}

.phone_call_text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.phone_call_text strong,
.phone_call_text small {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.phone_call_text small,
.phone_call_end small,
.phone_call_end time {
    color: var(--dash-muted);
    font-size: .76rem;
}

.phone_call_end {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-variant-numeric: tabular-nums;
}

.phone_app {
    display: grid;
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
    height: calc(100dvh - 230px);
    min-height: 420px;
}

.phone_list {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 8px;
}

.phone_list_rows {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.phone_detail {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 0;
    padding: 20px;
}

.phone_detail_body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scroll-behavior: smooth;
    margin-inline-end: -8px;
    padding-inline-end: 8px;
}

.phone_transcript .ig_bubble_row.is_new {
    animation: phoneLineIn .35s var(--dash-ease) both;
}

@keyframes phoneLineIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.phone_summary,
.phone_messages,
.phone_transcript {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.phone_summary>span,
.phone_messages>span,
.phone_transcript>span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--dash-text-soft);
    font-size: .82rem;
    font-weight: 600;
}

.phone_summary>span svg {
    width: 15px;
    height: 15px;
    color: var(--dash-brand-strong);
}

.phone_summary p {
    margin: 0;
    padding: 12px 14px;
    border-radius: var(--dash-radius-sm);
    background: var(--dash-panel-soft);
    line-height: 1.6;
}

.phone_message {
    padding: 10px 14px;
    border-inline-start: 3px solid var(--dash-brand);
    border-radius: var(--dash-radius-sm);
    background: var(--dash-panel-soft);
}

.phone_message.is_urgent {
    border-color: var(--dash-danger);
}

.phone_message p {
    margin: 4px 0;
}

.phone_message.is_follow_up {
    border-color: var(--dash-success);
}

.phone_message.is_follow_up strong {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.phone_message.is_follow_up strong svg {
    width: 16px;
    height: 16px;
}

.phone_message.is_follow_up small {
    color: var(--dash-muted);
}

.phone_none {
    color: var(--dash-muted);
    font-size: .86rem;
}

@media (max-width: 991px) {
    .phone_app {
        grid-template-columns: minmax(0, 1fr);
        height: auto;
        min-height: 0;
    }

    .phone_list_rows {
        max-height: 50dvh;
    }

    .phone_detail_body {
        overflow: visible;
    }
}

.phone_search .ts-wrapper {
    min-width: 170px;
}

.phone_facts dd {
    color: var(--dash-text-soft);
    font-size: .86rem;
    line-height: 1.55;
}

.phone_facts {
    padding: 20px;
}

.phone_facts dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 24px;
    margin: 0;
}

.phone_facts dt {
    margin-bottom: 3px;
    font-weight: 600;
}

.phone_facts dd {
    margin: 0;
}

@media (max-width: 767px) {

    .phone_facts dl {
        grid-template-columns: minmax(0, 1fr);
    }
}

.phone_billing {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--dash-border);
    border-radius: var(--dash-radius-sm);
}

.phone_billing.is_paused {
    border-color: var(--dash-danger);
}

.phone_billing>span {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.phone_billing small {
    color: var(--dash-muted);
    font-size: .82rem;
}

.phone_billing form {
    margin: 0;
}

/* SMS: the number and its code */
.sms_number_box {
    margin-bottom: 14px;
    padding: 18px;
}

.sms_number_current {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 0.25rem;
}

.sms_number_current .dash_toggle_text {
    flex: 1;
    min-width: 200px;
}

.sms_step {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sms_step label {
    font-weight: 500;
}

.sms_step small,
.sms_note {
    color: var(--dash-muted);
    font-size: .82rem;
}

.sms_row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sms_row .dash_phone {
    flex: 1;
    min-width: 220px;
}

.code_boxes {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.code_box {
    width: 50px;
    height: 58px;
    padding: 0;
    border-radius: 14px;
    border: 1px solid var(--dash-border-strong);
    background: var(--dash-panel);
    color: var(--dash-text);
    font-family: inherit;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    font-variant-numeric: tabular-nums;
    caret-color: var(--dash-brand);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.code_box:focus {
    outline: none;
    border-color: var(--dash-brand);
    box-shadow: 0 0 0 4px rgba(var(--dash-brand-rgb), 0.15);
}

.code_box::selection {
    background: transparent;
}

.code_box.is_filled {
    border-color: rgba(var(--dash-brand-rgb), 0.55);
}

.code_box:nth-of-type(5) {
    margin-inline-start: 10px;
}

.caller_sms {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 24px 20px;
    border-radius: 16px;
    background: var(--dash-chip-bg);
    text-align: center;
}

.caller_sms[hidden] {
    display: none;
}

.caller_sms .caller_note {
    max-width: 460px;
    margin: 0;
    text-align: start;
}

.caller_sms_label {
    font-weight: 500;
}

.caller_sms_button {
    min-width: 220px;
    height: 48px;
}

@media (max-width: 480px) {
    .code_boxes {
        gap: 6px;
    }

    .code_box {
        width: 42px;
        height: 52px;
        font-size: 1.3rem;
    }

    .code_box:nth-of-type(5) {
        margin-inline-start: 6px;
    }
}

.sms_step[data-sms-step="code"] .dash_btn {
    height: 52px;
}

.sms_note {
    margin: 10px 4px 0;
}

.sms_log_row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
}

.sms_log_row+.sms_log_row {
    border-top: 1px solid var(--dash-border);
}

.sms_log_text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.sms_log_text strong {
    font-weight: 500;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.sms_log_text small,
.sms_log_end time {
    color: var(--dash-muted);
    font-size: .76rem;
}

.sms_log_end {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}

/* "How it works" in a window */
.how_modal .modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 30px 28px 26px;
    border: 1px solid var(--dash-border);
    border-radius: 18px;
    background: var(--dash-panel);
    color: var(--dash-text);
}

.how_modal h3 {
    margin: 0;
    font-size: 1.2rem;
}

.how_modal_close {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
}

.how_modal_steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: how-step;
}

.how_modal_steps li {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-inline-start: 40px;
    counter-increment: how-step;
}

.how_modal_steps li::before {
    content: counter(how-step);
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--dash-chip-bg);
    color: var(--dash-chip-color);
    font-size: .8rem;
    font-weight: 600;
}

.how_modal_steps span {
    color: var(--dash-text-soft);
    font-size: .88rem;
    line-height: 1.55;
}

.how_modal .dash_btn_primary {
    align-self: flex-end;
}

.dash_segment_panel.channel_page {
    margin-top: 16px;
}

.sms_log_reason {
    color: var(--dash-danger) !important;
}

/* Routines: the assistant's scheduled messages */
.routine_list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.routine_card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
}

.routine_card.is_paused,
.routine_card.is_finished {
    opacity: .65;
}

.routine_text {
    flex: 1;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.routine_text strong {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.routine_text small {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    color: var(--dash-text-soft);
    font-size: .82rem;
}

.routine_text .routine_next {
    color: var(--dash-muted);
    font-size: .78rem;
}

.routine_channel {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.routine_channel svg {
    width: 13px;
    height: 13px;
}

.routine_actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.routine_actions form {
    margin: 0;
}

.routine_days,
.routine_channels {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.routine_days input,
.routine_channels input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.routine_days span,
.routine_channels span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border: 1px solid var(--dash-border);
    border-radius: 999px;
    font-size: .86rem;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}

.routine_channels svg {
    width: 15px;
    height: 15px;
}

.routine_days input:checked+span,
.routine_channels input:checked+span {
    color: var(--dash-text);
}

.routine_channels label.is_off span {
    opacity: .45;
    cursor: not-allowed;
}

.routine_hint {
    display: block;
    margin-top: 6px;
    color: var(--dash-muted);
    font-size: .8rem;
}

/* the task form in clear parts */
.task_section {
    margin-bottom: 26px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--dash-border);
    border-radius: var(--dash-radius-sm);
    background: var(--dash-panel-soft);
}

.task_section_head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.task_section_head svg {
    width: 17px;
    height: 17px;
    color: var(--dash-brand-strong);
}

.task_section_head strong {
    font-size: .92rem;
    font-weight: 600;
}

.task_section_hint {
    color: var(--dash-muted);
    font-size: .8rem;
    line-height: 1.5;
}

.task_section_hint .dash_link {
    margin-inline-start: 4px;
}

.task_section .dash_input,
.task_section .ts-control,
.task_section .dash_toggle_row {
    background: var(--dash-panel);
    padding-inline: 0.5rem !important;
    border-radius: 12px;
}

/* the date keeps its room for the calendar icon */
.task_section .dash_date_field .dash_input {
    padding-inline-start: 42px !important;
}

.task_section .dash_grid_2 {
    margin: 0;
}

.task_reach {
    margin: 0;
    padding-top: 12px;
    border-top: 1px dashed var(--dash-border);
}

.task_reach .routine_channels label:first-child span {
    cursor: default;
}

/* Start Contacts: SMS from RahaVidia */
.contact_sms .dash_modal_body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact_sms [data-sms-ready] {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact_sms [data-sms-ready][hidden] {
    display: none;
}

.contact_sms_loading {
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

.contact_sms_loading[hidden] {
    display: none;
}

.contact_sms_loading span {
    width: 26px;
    height: 26px;
    border: 2.5px solid var(--dash-border-strong);
    border-top-color: var(--dash-brand);
    border-radius: 50%;
    animation: dashSpin .7s linear infinite;
}

/* the assistant writes it */
.contact_sms_ai {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border-radius: var(--dash-radius-sm);
    border: 1px dashed var(--dash-border-strong);
    background: var(--dash-panel);
}

.contact_sms_ai .dash_input {
    flex: 1;
    min-width: 0;
    height: 38px;
    border: none;
    background: transparent;
    box-shadow: none;
}

.contact_sms_ai .dash_btn {
    flex: none;
}

.contact_sms textarea {
    resize: vertical;
    min-height: 120px;
}

.contact_sms_meter {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 12px;
    margin-top: -6px;
}

.contact_sms_meter small {
    color: var(--dash-muted);
    font-size: .78rem;
}

.contact_sms_meter small.is_danger,
.contact_sms_cut {
    color: var(--dash-danger, #d64545) !important;
}

.contact_sms_history {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact_sms_history[hidden] {
    display: none;
}

.contact_sms_history>strong {
    font-size: .82rem;
    font-weight: 600;
    color: var(--dash-muted);
}

.contact_sms_history .dash_list_card {
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid var(--dash-border);
    border-radius: var(--dash-radius-sm);
}

/* a contact's own history: the whole text, on more lines */
.contact_sms_history .sms_log_text strong {
    white-space: normal;
    overflow-wrap: anywhere;
}

.contact_panel_body .contact_sms_history {
    margin-bottom: 14px;
}

/* End Contacts: SMS from RahaVidia */

/* Start WhatsApp Business (built on the Instagram inbox) */
.wa_avatar {
    background: color-mix(in srgb, #25d366 16%, var(--dash-panel-soft));
    color: #128c4a;
}

.wa_search {
    margin: 0 0 8px;
}

.wa_search .dash_input {
    height: 40px;
}

.wa_media {
    display: block;
}

.ig_bubble .wa_media img.is_sticker {
    max-width: 130px;
    border-radius: 0;
    background: transparent;
}

.wa_audio {
    display: block;
    width: min(260px, 100%);
    height: 38px;
    margin: 2px 0;
}

.wa_video {
    display: block;
    max-width: min(280px, 100%);
    max-height: 300px;
    border-radius: 12px;
}

.wa_transcript {
    margin-top: 6px !important;
    padding-top: 6px;
    border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent);
    font-size: .85rem;
    opacity: .85;
    font-style: italic;
}

.wa_file {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
    text-decoration: underline;
    opacity: 1;
}

.wa_file svg {
    width: 16px;
    height: 16px;
}

.wa_ticks {
    margin-inline-start: 2px;
    letter-spacing: -3px;
    font-weight: 600;
}

.wa_ticks.is_read {
    color: #34b7f1;
}

.wa_reaction {
    margin: -4px 0 0;
    font-size: 1.1rem;
    line-height: 1;
}

.wa_reaction.is_outgoing {
    align-self: flex-end;
}

.wa_closed {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 14px 16px;
    border-top: 1px solid var(--dash-border);
    color: var(--dash-muted);
    font-size: .85rem;
}

.wa_closed svg {
    flex: none;
    width: 18px;
    height: 18px;
}

/* connecting: the two ways */
.wa_ways {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.wa_way {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 18px;
}

.wa_way p {
    flex: 1;
    margin: 0;
    color: var(--dash-muted);
    font-size: .88rem;
}

.wa_stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.wa_stats .dash_card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
}

.wa_stats small {
    color: var(--dash-muted);
    font-size: .8rem;
}

.wa_stats strong {
    font-size: 1.3rem;
    font-weight: 600;
}

/* End WhatsApp Business */

/* Start Finance: history */
.fin_log {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
}

.fin_log+.fin_log {
    border-top: 1px solid var(--dash-border);
}

.fin_log.is_deleted .dash_chip {
    color: var(--dash-danger);
}

.fin_log.is_restored .dash_chip,
.fin_log.is_created .dash_chip {
    color: var(--dash-success, #2f9e44);
}

.fin_log_text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fin_log_text>strong {
    font-weight: 500;
}

.fin_log_label {
    margin-inline-start: 4px;
    font-weight: 600;
}

.fin_log_text>small {
    color: var(--dash-muted);
    font-size: .78rem;
}

.fin_log_changes {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: .84rem;
}

.fin_log_changes li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
}

.fin_log_changes li>span:first-child {
    min-width: 90px;
    color: var(--dash-muted);
}

.fin_log_changes s {
    color: var(--dash-muted);
}

.fin_log_end {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.fin_log_end time {
    color: var(--dash-muted);
    font-size: .78rem;
}

/* End Finance: history */

/* Start Finance: recurring */
.fin_recurring {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
}

.fin_recurring+.fin_recurring {
    border-top: 1px solid var(--dash-border);
}

.fin_recurring.is_paused {
    opacity: .55;
}

.fin_recurring.is_income .dash_chip {
    color: var(--dash-success, #2f9e44);
}

.fin_recurring_text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fin_recurring_text small,
.fin_recurring_end small {
    color: var(--dash-muted);
    font-size: .78rem;
}

.fin_recurring_end {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.fin_recurring_actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.fin_recurring_modes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 640px) {
    .fin_recurring {
        flex-wrap: wrap;
    }

    .fin_recurring_actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* End Finance: recurring */

/* Start Finance: debts */
.fin_debt {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
}

.fin_debt+.fin_debt {
    border-top: 1px solid var(--dash-border);
}

.fin_debt.is_lent .dash_chip,
.wa_stats strong.is_income {
    color: var(--dash-success, #2f9e44);
}

.fin_debt_text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.fin_debt_text>strong {
    font-weight: 500;
}

.fin_debt_text>strong .dash_link svg {
    width: 14px;
    height: 14px;
    vertical-align: -2px;
}

.fin_debt_text small,
.fin_debt_end small {
    color: var(--dash-muted);
    font-size: .78rem;
}

.fin_debt_text small .is_late {
    color: var(--dash-danger);
}

.fin_debt_bar {
    width: min(260px, 100%);
    height: 6px;
    border-radius: 99px;
    background: var(--dash-panel-soft);
    overflow: hidden;
}

.fin_debt_bar span {
    display: block;
    height: 100%;
    border-radius: 99px;
    background: var(--dash-brand);
}

.fin_debt_end {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

@media (max-width: 640px) {
    .fin_debt {
        flex-wrap: wrap;
    }
}

/* End Finance: debts */

/* Start Finance: goals */
.fin_goals {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

.fin_goal {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
}

.fin_goal_head {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fin_goal_head .dash_chip {
    color: var(--goal);
}

.fin_goal_head strong {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.fin_goal_numbers {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.fin_goal_numbers b {
    font-size: 1.35rem;
    font-weight: 600;
}

.fin_goal_numbers small,
.fin_goal_note {
    color: var(--dash-muted);
    font-size: .8rem;
}

.fin_goal_bar {
    width: 100%;
    height: 8px;
}

.fin_goal_bar span {
    background: var(--goal);
}

.fin_goal.is_reached {
    border-color: var(--goal);
}

.fin_goal_actions {
    display: flex;
    gap: 6px;
    margin-top: auto;
}

/* End Finance: goals */

/* Start Finance: import a statement */
.fin_import_drop {
    margin-top: 12px;
}

.fin_import_head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.fin_import_all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.fin_import_head small {
    color: var(--dash-muted);
    font-size: .8rem;
}

.fin_import_table {
    max-height: 52vh;
    overflow: auto;
    border: 1px solid var(--dash-border);
    border-radius: var(--dash-radius-sm);
}

.fin_import_table .dash_table {
    margin: 0;
}

.fin_import_table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--dash-panel);
}

.fin_import_table td.is_end,
.fin_import_table th.is_end {
    text-align: end;
    white-space: nowrap;
}

.fin_import_table td.is_income {
    color: var(--dash-success, #2f9e44);
}

.fin_import_table tr.is_dupe td {
    opacity: .55;
}

.ts-wrapper.fin_import_cat {
    min-width: 150px;
    min-height: 0;
    padding: 0;
    font-size: .85rem;
}

/* End Finance: import a statement */

/* Start Finance: invoices */
.fin_invoice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
}

.fin_invoice+.fin_invoice {
    border-top: 1px solid var(--dash-border);
}

.fin_invoice.is_void {
    opacity: .5;
}

.fin_invoice.is_paid .dash_chip {
    color: var(--dash-success, #2f9e44);
}

.fin_grid.fin_grid_three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fin_invoice_lines {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    border-radius: var(--dash-radius-sm);
    background: var(--dash-panel-soft);
}

.fin_invoice_line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 80px 120px 34px;
    gap: 6px;
    align-items: center;
}

.fin_invoice_line.is_head {
    color: var(--dash-muted);
    font-size: .78rem;
}

.fin_invoice_line .dash_input {
    height: 38px;
}

.fin_invoice_lines>.dash_btn {
    align-self: flex-start;
}

.fin_invoice_sum {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 2px;
    font-size: .85rem;
    color: var(--dash-muted);
}

.fin_invoice_sum strong {
    color: var(--dash-text);
    font-size: 1rem;
}

@media (max-width: 640px) {
    .fin_invoice {
        flex-wrap: wrap;
    }

    .fin_grid.fin_grid_three {
        grid-template-columns: 1fr;
    }

    .fin_invoice_line {
        grid-template-columns: minmax(0, 1fr) 60px 90px 30px;
    }
}

/* End Finance: invoices */

/* Start Business: profile, catalog */
.biz_form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.biz_card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
}

.biz_open {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    margin-bottom: 14px;
    padding: 8px 14px;
    border-radius: 99px;
    border: 1px solid var(--dash-border);
    background: var(--dash-panel);
}

.biz_open.is_open strong {
    color: var(--dash-success, #2f9e44);
}

.biz_open small {
    color: var(--dash-muted);
}

.biz_hours {
    display: flex;
    flex-direction: column;
}

.biz_day {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 10px 0;
}

.biz_day+.biz_day {
    border-top: 1px solid var(--dash-border);
}

.biz_day_name {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    cursor: pointer;
}

.biz_ranges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.biz_range {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.biz_range .dash_input {
    width: 118px;
    height: 38px;
}

.biz_closed_label {
    display: none;
    color: var(--dash-muted);
}

.biz_day.is_closed .biz_ranges {
    display: none;
}

.biz_day.is_closed .biz_closed_label {
    display: block;
}

.biz_copy {
    display: flex;
    justify-content: flex-end;
}

.biz_item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
}

.biz_item+.biz_item {
    border-top: 1px solid var(--dash-border);
}

.biz_item.is_hidden {
    opacity: .55;
}

.ts-wrapper.biz_stock {
    width: 150px;
    min-height: 0;
    padding: 0;
    font-size: .82rem;
}

.ts-wrapper.biz_stock .ts-control {
    min-height: 34px;
    border-radius: 99px;
}

.ts-wrapper.biz_stock.is_in_stock .ts-control .item {
    color: var(--dash-success, #2f9e44);
}

.ts-wrapper.biz_stock.is_low .ts-control .item {
    color: #e8590c;
}

.ts-wrapper.biz_stock.is_out .ts-control .item {
    color: var(--dash-danger);
}

@media (max-width: 640px) {
    .biz_day {
        grid-template-columns: 1fr;
    }

    .biz_item {
        flex-wrap: wrap;
    }
}

/* End Business: profile, catalog */

/* Start Business: orders */
.biz_orders {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 14px;
}

.biz_order {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px;
}

.biz_order.is_new {
    border-color: var(--dash-brand);
}

.biz_order.is_opened {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--dash-brand) 35%, transparent);
}

.biz_order.is_done,
.biz_order.is_cancelled {
    opacity: .65;
}

.biz_order_head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.biz_order_head>div {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.biz_order_head small,
.biz_order_meta {
    color: var(--dash-muted);
    font-size: .8rem;
}

.biz_order_lines {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    padding: 10px 0;
    border-block: 1px solid var(--dash-border);
    list-style: none;
    font-size: .9rem;
}

.biz_order_lines li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.biz_order_meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.biz_order_meta svg {
    width: 14px;
    height: 14px;
    vertical-align: -2px;
}

.biz_order_foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.biz_order_foot>b {
    font-size: 1.1rem;
}

.biz_order_actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin-inline-start: auto;
}

.biz_order_sum {
    align-self: flex-end;
}

/* End Business: orders */

/* Start Business: team */
.biz_avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--staff) 18%, var(--dash-panel));
    color: var(--staff);
    font-size: .8rem;
    font-weight: 700;
}

.biz_avatar.is_small {
    width: 28px;
    height: 28px;
    font-size: .7rem;
}

.biz_people {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.biz_person {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 6px;
    border-radius: 99px;
    border: 1px solid var(--dash-border);
}

.biz_person>span:last-child {
    display: flex;
    flex-direction: column;
}

.biz_person small {
    color: var(--dash-muted);
    font-size: .75rem;
}

.biz_shift_row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
}

.biz_shift_row+.biz_shift_row {
    border-top: 1px solid var(--dash-border);
}

.biz_shift_row.is_off {
    opacity: .55;
}

.biz_shift_row form {
    margin: 0;
}

.biz_shift_row .dash_icon_btn.is_done {
    color: var(--dash-success, #2f9e44);
}

.biz_week {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.biz_week_day {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 140px;
    padding: 10px;
}

.biz_week_day.is_today {
    border-color: var(--dash-brand);
}

.biz_week_day>strong {
    font-size: .85rem;
}

.biz_week_shift {
    display: flex;
    flex-direction: column;
    padding: 6px 8px;
    border-radius: 8px;
    border-inline-start: 3px solid var(--staff);
    background: color-mix(in srgb, var(--staff) 10%, var(--dash-panel));
    font-size: .8rem;
}

.biz_week_shift.is_off {
    opacity: .5;
    text-decoration: line-through;
}

.biz_week_shift small,
.biz_week_none {
    color: var(--dash-muted);
}

@media (max-width: 900px) {
    .biz_week {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* End Business: team */

/* Start Business: receipts & cards */
.biz_scan_drop {
    margin-bottom: 4px;
}

.biz_scan {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
}

.biz_scan+.biz_scan {
    border-top: 1px solid var(--dash-border);
}

.biz_scan.is_done .dash_chip {
    color: var(--dash-success, #2f9e44);
}

.biz_scan.is_failed .dash_chip {
    color: var(--dash-danger);
}

.biz_scan.is_duplicate {
    opacity: .7;
}

.biz_scan.is_reading {
    opacity: .7;
}

/* End Business: receipts & cards */

/* Start Business: front desk */
.biz_desk_status {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
}

.biz_desk_status>div {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.biz_desk_status small {
    color: var(--dash-muted);
}

.biz_desk_status.is_open .dash_chip {
    color: var(--dash-success, #2f9e44);
}

.biz_desk_channels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.biz_desk_channel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
}

.biz_desk_channel.is_off {
    opacity: .8;
}

.biz_desk_channel header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.biz_desk_channel header>div {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.biz_desk_channel header small,
.biz_desk_agent {
    color: var(--dash-muted);
    font-size: .8rem;
}

.biz_desk_numbers {
    display: flex;
    gap: 8px;
}

.biz_desk_numbers span {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 8px 10px;
    border-radius: 10px;
    background: var(--dash-panel-soft);
}

.biz_desk_numbers b {
    font-size: 1.2rem;
}

.biz_desk_numbers small {
    color: var(--dash-muted);
    font-size: .78rem;
}

.biz_desk_numbers .is_waiting b {
    color: var(--dash-brand);
}

.biz_desk_channel footer {
    display: flex;
    gap: 6px;
    margin-top: auto;
}

.biz_desk_bar {
    width: auto;
    height: 6px;
    margin: 14px;
}

.biz_desk_step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-top: 1px solid var(--dash-border);
    color: inherit;
    text-decoration: none;
}

.biz_desk_step.is_done {
    opacity: .6;
}

.biz_desk_step.is_done .dash_chip {
    color: var(--dash-success, #2f9e44);
}

.biz_desk_step>svg {
    width: 16px;
    height: 16px;
    color: var(--dash-muted);
}

html[dir="rtl"] .biz_desk_step>svg {
    transform: scaleX(-1);
}

/* End Business: front desk */

/* Business: auto replies */
.biz_auto_modes {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 760px) {
    .biz_auto_modes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Business: overview */
.biz_today .dash_card {
    color: inherit;
    text-decoration: none;
}

.biz_today .dash_card span {
    color: var(--dash-muted);
    font-size: .8rem;
}

.biz_today .dash_card.is_attention {
    border-color: var(--dash-brand);
}

.biz_overview_grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 14px;
}

.biz_overview_grid .biz_desk_step:first-of-type {
    border-top: none;
}

.biz_line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.biz_line svg {
    flex: none;
    width: 18px;
    height: 18px;
    color: var(--dash-muted);
}

@media (max-width: 900px) {
    .biz_overview_grid {
        grid-template-columns: 1fr;
    }
}

/* Start Business: daily journal */
.biz_journal_bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.biz_journal_bar .ts-wrapper {
    width: 260px;
}

.biz_journal_days {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-inline-start: auto;
}

html[dir="rtl"] .biz_journal_days .dash_icon_btn svg {
    transform: scaleX(-1);
}

.biz_journal_open {
    align-items: center;
    max-width: 460px;
    margin: 0 auto;
    text-align: center;
}

.biz_journal_open .dash_field {
    width: 100%;
}

.biz_journal_big {
    height: 52px !important;
    font-size: 1.35rem !important;
    font-weight: 600;
    text-align: center;
}

.biz_journal_numbers .dash_card .dash_link {
    align-self: flex-start;
    padding: 0;
    border: 0;
    background: none;
    font-size: .78rem;
}

.biz_journal_numbers .is_short,
.dash_table td.is_short,
.biz_count_diff.is_short {
    color: var(--dash-danger);
}

.biz_count_diff.is_over {
    color: var(--dash-success, #2f9e44);
}

.biz_journal_kinds {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.biz_journal_fields {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) 190px auto;
    gap: 8px;
}

.biz_journal_fields .biz_journal_big {
    height: 46px !important;
    font-size: 1.1rem !important;
}

.biz_journal_fields [hidden] {
    display: none !important;
}

.biz_journal_row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto 120px;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
}

.biz_journal_row+.biz_journal_row {
    border-top: 1px solid var(--dash-border);
}

.biz_journal_row.is_head {
    grid-template-columns: minmax(0, 1fr) auto;
    background: var(--dash-panel-soft);
    font-weight: 500;
}

.biz_journal_row time,
.biz_journal_running {
    color: var(--dash-muted);
    font-size: .8rem;
}

.biz_journal_running {
    text-align: end;
}

.biz_journal_row.is_adjustment {
    background: color-mix(in srgb, var(--dash-brand) 8%, transparent);
}

.biz_journal_closed {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.biz_count {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 14px;
    margin-bottom: 12px;
}

.biz_count_row {
    display: grid;
    grid-template-columns: 56px 12px minmax(0, 1fr);
    align-items: center;
    gap: 6px;
    margin: 0;
}

.biz_count_row span:first-child {
    font-weight: 600;
    text-align: end;
}

.biz_count_row .dash_input {
    height: 36px;
}

.biz_count_diff {
    margin: 0;
    font-weight: 600;
}

@media (max-width: 760px) {
    .biz_journal_kinds {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .biz_journal_fields {
        grid-template-columns: 1fr;
    }

    .biz_journal_row {
        grid-template-columns: 40px minmax(0, 1fr) auto;
    }

    .biz_journal_running {
        display: none;
    }
}

/* End Business: daily journal */

/* the conversations button of the agent menu: only on phones (the list is in the side menu otherwise) */
.agent_nav_chats_toggle {
    display: none;
    border: 0;
    background: none;
    font: inherit;
    cursor: pointer;
}

/* Start Notifications: tabs, problems, summaries */
.notify_tabs .dash_segment {
    text-decoration: none;
}

.notify_tab_count {
    min-width: 18px;
    padding: 1px 6px;
    border-radius: 99px;
    background: var(--dash-brand);
    color: #fff;
    font-size: .78rem;
    font-weight: 600;
    line-height: 16px;
    text-align: center;
}

/* each notice: a coloured edge and a small word for its kind, the time beside it, no icons */
.notify_item {
    border-bottom: 1px solid var(--dash-border);
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    --notify-color: var(--dash-border-strong);
    padding: 16px 18px 16px 20px;
}

.notify_item.is_kind_summary {
    --notify-color: var(--dash-brand);
}

.notify_item.is_kind_tip {
    --notify-color: #7c5cff;
}

.notify_item.is_kind_problem {
    --notify-color: var(--dash-danger);
}

.notify_item.is_kind_done {
    --notify-color: var(--dash-success, #2f9e44);
}

.notify_item.is_kind_reminder {
    --notify-color: #1c7ed6;
}

.notify_item.is_kind_attention {
    --notify-color: #e8590c;
}

.notify_meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.notify_meta small {
    color: var(--dash-muted);
    font-size: .78rem;
}

.notify_kind {
    padding: 2px 8px;
    border-radius: 99px;
    background: color-mix(in srgb, var(--notify-color) 14%, transparent);
    color: var(--notify-color);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .02em;
}

.notify_item.is_kind_notice .notify_kind {
    color: var(--dash-muted);
}

.notify_meta .notify_dot {
    margin: 0 0 0 auto;
}

html[dir="rtl"] .notify_meta .notify_dot {
    margin: 0 auto 0 0;
}

.notify_item .notify_message {
    font-size: .95rem;
    line-height: 1.5;
}

.notify_lines {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
    color: var(--dash-text-soft, var(--dash-text));
    font-size: .9rem;
    line-height: 1.55;
}

.notify_lines p {
    margin: 0;
}

.notify_lines.is_summary {
    gap: 6px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--dash-panel-soft);
}

.notify_go {
    margin-top: 6px;
}

.task_empty .dash_btn+.dash_btn {
    margin-top: 8px;
}

.summary_suggestions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}

.summary_suggestion {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.summary_suggestion p {
    margin: 0;
    color: var(--dash-muted);
    font-size: .88rem;
}

.summary_suggestion small {
    color: var(--dash-muted);
    font-size: .8rem;
}

.summary_suggestion .dash_btn {
    margin-top: auto;
}

.summary_suggestion_icons {
    display: flex;
    gap: 6px;
    margin-bottom: 4px;
}

.summary_parts {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
}

.summary_sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.summary_sections label {
    position: relative;
}

.summary_group {
    display: block;
    margin: 6px 0 2px;
    color: var(--dash-muted);
    font-size: .78rem;
}

.summary_setup {
    position: absolute;
    top: 8px;
    inset-inline-end: 10px;
    color: var(--dash-brand);
    font-size: .78rem;
    font-weight: 500;
}

.summary_hint {
    display: block;
    margin-top: 6px;
    color: var(--dash-muted);
    font-size: .8rem;
}

.summary_hint a {
    color: var(--dash-brand);
}

.summary_sections input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.summary_section_box {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
    padding: 10px;
    border: 1px solid var(--dash-border);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}

.summary_section_box strong {
    display: block;
    font-size: .9rem;
    font-weight: 500;
}

.summary_section_box small {
    display: block;
    color: var(--dash-muted);
    font-size: .78rem;
    line-height: 1.35;
}

.summary_sections input:focus-visible+.summary_section_box {
    outline: 2px solid var(--dash-brand);
    outline-offset: 2px;
}

.summary_sections label.is_off .summary_section_box {
    opacity: .45;
    cursor: not-allowed;
}

@media (max-width: 575px) {
    .summary_sections {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* End Notifications */

/* Start Automations */
.wf_describe {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 14px;
    margin-bottom: 28px;
}

.wf_describe_body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wf_describe_body textarea {
    resize: vertical;
}

.wf_describe_examples {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.wf_describe_examples .dash_badge {
    border: 0;
    cursor: pointer;
}

.wf_describe .dash_error {
    grid-column: 1 / -1;
    margin: 0;
}

.wf_list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}

.wf_item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wf_item_main {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: inherit;
}

.wf_item_text {
    min-width: 0;
}

.wf_item_text strong,
.wf_item_text small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wf_item_text small {
    color: var(--dash-muted);
    font-size: .82rem;
}

.wf_item.is_paused,
.wf_item.is_draft {
    opacity: .85;
}

/* the editor */
.wf_editor {
    --wf-trigger: #7c5cff;
    --wf-ai: #d9a400;
    --wf-logic: #e8590c;
    --wf-messages: #1c7ed6;
    --wf-work: #2f9e44;
    --wf-money: #0ca678;
    --wf-google: #4285f4;
    --wf-business: #c2255c;
    --wf-advanced: #868e96;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 110px);
    min-height: 640px;
    overflow: hidden;
    border: 1px solid var(--dash-border);
    border-radius: 16px;
    background: var(--dash-panel);
}

.wf_bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--dash-border);
}

.wf_name {
    min-width: 120px;
    max-width: 360px;
    padding: 6px 8px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: none;
    color: var(--dash-text);
    font-size: 1rem;
    font-weight: 600;
}

.wf_name:hover,
.wf_name:focus {
    border-color: var(--dash-border);
    outline: none;
}

.wf_saved {
    color: var(--dash-muted);
    font-size: .8rem;
}

.wf_bar_space {
    flex: 1;
}

.wf_switch {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 4px;
    font-size: .85rem;
    white-space: nowrap;
    cursor: pointer;
}

.wf_problem {
    padding: 8px 14px;
    background: rgba(232, 89, 12, .1);
    color: #e8590c;
    font-size: .85rem;
}

.wf_problem[hidden] {
    display: none;
}

.wf_body {
    display: flex;
    flex: 1;
    min-height: 0;
}

.wf_palette>*,
.wf_panel>*,
.wf_group>* {
    flex-shrink: 0;
}

.wf_palette {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 250px;
    padding: 12px;
    overflow-y: auto;
    border-inline-end: 1px solid var(--dash-border);
}

.wf_group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wf_group>small {
    margin: 6px 4px 2px;
    color: var(--dash-muted);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .04em;
}

.wf_block {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 7px 8px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: none;
    color: var(--dash-text);
    text-align: start;
    cursor: grab;
}

.wf_block:hover {
    border-color: var(--dash-border);
    background: var(--dash-hover);
}

.wf_block strong,
.wf_block small {
    display: block;
}

.wf_block strong {
    font-size: .86rem;
    font-weight: 500;
}

.wf_block small {
    display: -webkit-box;
    overflow: hidden;
    line-clamp: 1;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    color: var(--dash-muted);
    font-size: .74rem;
}

.wf_node_icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 9px;
    background: color-mix(in srgb, var(--wf-color, var(--dash-brand)) 16%, transparent);
    color: var(--wf-color, var(--dash-brand));
}

.wf_node_icon .icon {
    width: 17px;
    height: 17px;
}

.is_trigger {
    --wf-color: var(--wf-trigger);
}

.is_ai {
    --wf-color: var(--wf-ai);
}

.is_logic {
    --wf-color: var(--wf-logic);
}

.is_messages {
    --wf-color: var(--wf-messages);
}

.is_work {
    --wf-color: var(--wf-work);
}

.is_money {
    --wf-color: var(--wf-money);
}

.is_google {
    --wf-color: var(--wf-google);
}

.is_business {
    --wf-color: var(--wf-business);
}

.is_advanced {
    --wf-color: var(--wf-advanced);
}

.wf_canvas {
    position: relative;
    flex: 1;
    overflow: hidden;
    background-color: var(--dash-bg);
    cursor: grab;
    touch-action: none;
}

.wf_canvas:active {
    cursor: grabbing;
}

.wf_world {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    transform-origin: 0 0;
}

html[dir="rtl"] .wf_world {
    direction: ltr;
}

.wf_edges {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    overflow: visible;
}

.wf_edge {
    fill: none;
    stroke: var(--dash-border-strong);
    stroke-width: 2;
    pointer-events: none;
}

.wf_edge.is_selected {
    stroke: var(--dash-brand);
    stroke-width: 2.5;
}

.wf_edge.is_temp {
    stroke: var(--dash-brand);
    stroke-dasharray: 6 5;
}

.wf_edge_hit {
    fill: none;
    stroke: transparent;
    stroke-width: 14;
    cursor: pointer;
    pointer-events: stroke;
}

.wf_edge_delete {
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--dash-danger);
    color: #fff;
    font-size: 15px;
    line-height: 24px;
    cursor: pointer;
}

.wf_node {
    position: absolute;
    width: 220px;
    border: 1px solid var(--dash-border);
    border-top: 3px solid var(--wf-color, var(--dash-brand));
    border-radius: 12px;
    background: var(--dash-panel);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
    cursor: default;
    user-select: none;
}

.wf_node.is_selected {
    border-color: var(--wf-color, var(--dash-brand));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--wf-color, var(--dash-brand)) 25%, transparent), 0 8px 22px rgba(0, 0, 0, .1);
}

.wf_node.is_ok {
    outline: 2px solid var(--dash-success, #2f9e44);
    outline-offset: 2px;
}

.wf_node.is_failed {
    outline: 2px solid var(--dash-danger);
    outline-offset: 2px;
}

.wf_node.is_waiting {
    outline: 2px dashed #e8590c;
    outline-offset: 2px;
}

.wf_node_head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    cursor: move;
}

.wf_node_text {
    min-width: 0;
}

.wf_node_text strong,
.wf_node_text small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wf_node_text strong {
    font-size: .86rem;
    font-weight: 600;
}

.wf_node_text small {
    color: var(--dash-muted);
    font-size: .74rem;
}

.wf_node_tag {
    position: absolute;
    top: -22px;
    left: 0;
    padding: 1px 8px;
    border-radius: 6px 6px 0 0;
    background: var(--wf-trigger);
    color: #fff;
    font-size: .68rem;
    font-weight: 600;
}

.wf_ports {
    padding: 0 0 6px;
    border-top: 1px solid var(--dash-border);
}

.wf_port_row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 22px;
    padding: 2px 16px 2px 10px;
    color: var(--dash-muted);
    font-size: .78rem;
}

.wf_port_row span:first-child:not(.wf_port_out) {
    overflow: hidden;
    max-width: 170px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wf_port_out,
.wf_port_in {
    position: absolute;
    width: 14px;
    height: 14px;
    border: 2px solid var(--dash-panel);
    border-radius: 50%;
    background: var(--wf-color, var(--dash-brand));
    box-shadow: 0 0 0 1px var(--dash-border-strong);
}

.wf_port_out {
    top: 50%;
    right: -8px;
    transform: translateY(-50%);
    cursor: crosshair;
}

.wf_port_out:hover {
    transform: translateY(-50%) scale(1.3);
}

.wf_port_in {
    top: 22px;
    left: -8px;
    background: var(--dash-panel);
}

.wf_zoom {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: flex;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--dash-border);
    border-radius: 10px;
    background: var(--dash-panel);
}

.wf_hint {
    position: absolute;
    bottom: 14px;
    left: 50%;
    max-width: 80%;
    margin: 0;
    padding: 6px 12px;
    transform: translateX(-50%);
    border-radius: 99px;
    background: var(--dash-panel);
    color: var(--dash-muted);
    font-size: .8rem;
    text-align: center;
    pointer-events: none;
}

.wf_hint[hidden] {
    display: none;
}

.wf_panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 340px;
    padding: 14px;
    overflow-y: auto;
    border-inline-start: 1px solid var(--dash-border);
}

.wf_panel[hidden] {
    display: none;
}

.wf_panel_head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.wf_panel_head>div {
    flex: 1;
    min-width: 0;
}

.wf_panel_head strong,
.wf_panel_head small {
    display: block;
}

.wf_panel_head small,
.wf_hint_text {
    color: var(--dash-muted);
    font-size: .8rem;
}

.wf_hint_text {
    margin: 0;
}

.wf_input {
    position: relative;
    display: flex;
    gap: 6px;
    align-items: flex-start;
}

.wf_input .dash_input {
    flex: 1;
    min-width: 0;
    padding-inline-end: 54px;
}

.wf_pick {
    position: absolute;
    top: 7px;
    inset-inline-end: 7px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    min-width: 38px;
    padding: 0 9px;
    border: 0;
    border-radius: 8px;
    background: rgba(var(--dash-brand-rgb), 0.14);
    color: var(--dash-brand);
    font-family: ui-monospace, monospace;
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .15s ease;
}

.wf_pick:hover,
.wf_pick:focus-visible {
    background: rgba(var(--dash-brand-rgb), 0.24);
}

.wf_menu {
    position: absolute;
    top: 100%;
    inset-inline-end: 0;
    z-index: 20;
    width: 280px;
    max-height: 260px;
    margin-top: 4px;
    padding: 4px;
    overflow-y: auto;
    border: 1px solid var(--dash-border);
    border-radius: 10px;
    background: var(--dash-panel);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .15);
}

.wf_menu button {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 6px 8px;
    border: 0;
    border-radius: 7px;
    background: none;
    color: var(--dash-text);
    font-size: .82rem;
    text-align: start;
    cursor: pointer;
}

.wf_menu button:hover {
    background: var(--dash-hover);
}

.wf_menu code,
.wf_gives code {
    color: var(--dash-muted);
    font-size: .78rem;
}

.wf_menu p {
    margin: 6px 8px;
    color: var(--dash-muted);
    font-size: .8rem;
}

.wf_branch {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid var(--dash-border);
    border-inline-start: 3px solid var(--wf-logic);
    border-radius: 10px;
}

.wf_branch_head {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wf_branch_head strong {
    flex: 1;
    font-size: .85rem;
}

.wf_branch_head .ts-wrapper {
    width: 130px;
}

.wf_rule {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    align-items: start;
}

.wf_branch .wf_rule {
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--dash-border);
}

.wf_branch .wf_rule>.dash_icon_btn {
    justify-self: end;
}

.wf_else {
    margin: 6px 0 0;
    padding: 8px 10px;
    border-radius: 8px;
    background: var(--dash-panel-soft);
    color: var(--dash-muted);
    font-size: .82rem;
}

.wf_gives p {
    margin: 4px 0 0;
    font-size: .8rem;
    line-height: 1.7;
}

.wf_gives small {
    color: var(--dash-muted);
    font-size: .76rem;
    font-weight: 600;
}

.wf_step,
.wf_run {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.wf_run {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--dash-border);
    border-radius: 10px;
    background: none;
    color: var(--dash-text);
    font-size: .84rem;
    text-align: start;
    cursor: pointer;
}

.wf_run span:nth-child(2) {
    flex: 1;
}

.wf_run small {
    color: var(--dash-muted);
}

.wf_step strong,
.wf_step small {
    display: block;
}

.wf_step strong {
    font-size: .85rem;
}

.wf_step small {
    color: var(--dash-muted);
    font-size: .78rem;
}

.wf_step pre {
    max-height: 220px;
    margin: 4px 0 0;
    padding: 8px;
    overflow: auto;
    border-radius: 8px;
    background: var(--dash-panel-soft);
    font-size: .74rem;
    white-space: pre-wrap;
}

.wf_step_dot {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    margin-top: 5px;
    border-radius: 50%;
    background: var(--dash-border-strong);
}

.is_ok>.wf_step_dot,
.is_succeeded>.wf_step_dot {
    background: var(--dash-success, #2f9e44);
}

.is_failed>.wf_step_dot {
    background: var(--dash-danger);
}

.is_waiting>.wf_step_dot,
.is_running>.wf_step_dot,
.is_queued>.wf_step_dot {
    background: #e8590c;
}

@media (max-width: 991px) {
    .wf_palette {
        width: 200px;
    }

    .wf_panel {
        position: absolute;
        top: 0;
        inset-inline-end: 0;
        bottom: 0;
        z-index: 5;
        width: min(340px, 92vw);
        background: var(--dash-panel);
        box-shadow: -10px 0 30px rgba(0, 0, 0, .15);
    }

    .wf_body {
        position: relative;
    }
}

@media (max-width: 767px) {
    .wf_editor {
        height: calc(100vh - 90px);
    }

    .wf_body {
        flex-direction: column;
    }

    .wf_palette {
        flex-direction: row;
        width: auto;
        max-height: 92px;
        overflow-x: auto;
        border-inline-end: 0;
        border-bottom: 1px solid var(--dash-border);
    }

    .wf_palette>input {
        display: none;
    }

    .wf_palette [data-wf-blocks] {
        display: flex;
        gap: 6px;
    }

    .wf_group {
        flex-direction: row;
    }

    .wf_group>small,
    .wf_block small {
        display: none;
    }

    .wf_block {
        width: auto;
        white-space: nowrap;
    }

    .wf_bar .dash_btn span {
        display: none;
    }

    .wf_describe {
        grid-template-columns: minmax(0, 1fr);
    }

    .wf_describe>.dash_chip {
        display: none;
    }
}

/* End Automations */

.brand_logo.is_svg {
    display: inline-flex;
    flex-shrink: 0;
    color: var(--dash-text);
}

.brand_logo.is_svg svg {
    width: 100%;
    height: 100%;
}

/* Automations → connected apps */
.wf_apps_group {
    margin: 18px 0 10px;
    color: var(--dash-muted);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .04em;
}

.wf_apps {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
}

.wf_app {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wf_app.is_connected {
    border-color: rgba(47, 158, 68, .35);
}

.wf_app_head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wf_app_head strong,
.wf_app_head small {
    display: block;
}

.wf_app_head small {
    color: var(--dash-muted);
    font-size: .8rem;
    line-height: 1.4;
}

.wf_app_connection {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 4px 4px 10px;
    border-radius: 10px;
    background: var(--dash-panel-soft);
    font-size: .85rem;
}

.wf_app_connection span:nth-child(2) {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wf_app .dash_btn {
    align-self: flex-start;
    margin-top: auto;
}

.wf_connect_link {
    display: inline-block;
    margin-top: 6px;
    font-size: .8rem;
}

/* Integrations → one app */
.wf_app_intro {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.wf_app_intro ul {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    padding-inline-start: 18px;
    color: var(--dash-text-soft, var(--dash-text));
    font-size: .92rem;
}

.wf_app_panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 14px;
}

.wf_app_panel_head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.wf_app_panel_head strong,
.wf_app_panel_head small {
    display: block;
}

.wf_app_panel_head small {
    margin-top: 4px;
    color: var(--dash-muted);
    font-size: .8rem;
}

.wf_app_settings {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wf_app_runs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wf_app_list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--dash-panel-soft);
}

.wf_app_list>small {
    margin: 6px 0 4px;
    color: var(--dash-muted);
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .03em;
}

.wf_app_list p,
.wf_app_list a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 6px 0;
    border-bottom: 1px solid var(--dash-border);
    color: var(--dash-text);
    font-size: .88rem;
}

.wf_app_list p:last-child,
.wf_app_list a:last-child {
    border-bottom: 0;
}

.wf_app_list span {
    flex-shrink: 0;
    color: var(--dash-muted);
    font-size: .8rem;
}

/* the agent's chats: a menu on the title, and a page with all of them */
/* the title takes the room (like the h1 it was): the other buttons stay at the end */
.agent_chats_menu {
    flex: 1;
    min-width: 0;
}

.agent_chats_menu>.agent_chat_switch {
    max-width: 100%;
}

.agent_chat_switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 2px 10px;
    border: 0;
    border-radius: 10px;
    background: none;
    color: var(--dash-text);
    cursor: pointer;
}

.agent_chat_switch:hover,
.agent_chats_menu.open .agent_chat_switch {
    background: var(--dash-hover);
}

.agent_chat_switch h1 {
    overflow: hidden;
    margin: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.agent_chat_switch>.icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: var(--dash-muted);
}

.agent_chats_list {
    width: 340px;
    min-width: 0;
    /* not as wide as the title's row */
    max-width: calc(100vw - 32px);
}

.agent_chats_list>a {
    font-weight: 500;
}

.agent_chats_list .agent_chats_new {
    color: var(--dash-brand);
}

.agent_chats_rows {
    max-height: min(420px, 55vh);
    overflow-y: auto;
}

.agent_chats_rows .agent_nav_chat_row {
    position: relative;
}

.agent_chats_rows .agent_nav_chat.active {
    font-weight: 600;
}

.agent_chats_rows .agent_nav_chat.active::after {
    content: "✓";
    flex-shrink: 0;
    margin-inline-start: auto;
    color: var(--dash-brand);
    font-weight: 700;
}

.agent_all_chats {
    max-width: 860px;
}

.agent_all_chats_bar {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.agent_all_chats_bar .dash_input {
    flex: 1;
}

.agent_all_chat {
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--dash-border);
}

.agent_all_chat[hidden] {
    display: none;
}

.agent_all_chat>a:first-child {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 14px 6px;
    color: var(--dash-text);
}

.agent_all_chat>a:first-child:hover {
    color: var(--dash-brand);
}

.agent_all_chat>a:first-child>span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.agent_all_chat>a:first-child>.icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--dash-muted);
}

.agent_all_chat small {
    flex-shrink: 0;
    margin-inline-start: auto;
    color: var(--dash-muted);
    font-size: .8rem;
}

/* Integrations → Connected: one card per connection */
/* nothing connected yet: the tools around a link, a few to start with, then all of them */
.conn_empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 36px 24px 32px;
    margin-bottom: 18px;
    text-align: center;
}

.conn_empty h2 {
    margin: 4px 0 8px;
    font-size: 1.25rem;
}

.conn_empty>p {
    max-width: 460px;
    margin: 0 0 22px;
    color: var(--dash-text-soft);
}

.conn_empty_quick {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.conn_empty_tool {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--dash-border-strong);
    background: var(--dash-panel);
    color: var(--dash-text);
    font-size: .9rem;
    text-decoration: none;
    transition: border-color .2s ease, background .2s ease;
}

.conn_empty_tool:hover {
    border-color: var(--dash-brand);
    background: var(--dash-chip-bg);
    color: var(--dash-text);
}

.conn_list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.conn_card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
}

.conn_card.is_problem {
    border-color: rgba(220, 53, 69, .35);
}

.conn_card_info {
    flex: 1;
    min-width: 0;
}

.conn_card_name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 12px;
}

.conn_card_name strong {
    overflow: hidden;
    max-width: 100%;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.conn_card_status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--dash-muted);
    font-size: .8rem;
}

.conn_card_status .dash_dot {
    width: 7px;
    height: 7px;
}

.conn_card_status .dash_dot.is_danger {
    background: var(--dash-danger);
}

.conn_card_info>small {
    display: block;
    margin-top: 4px;
    color: var(--dash-muted);
    font-size: .82rem;
}

.conn_card_info .mail_field_error {
    margin: 6px 0 0;
}

.conn_card_actions {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 8px;
}

@media (max-width: 575px) {
    .conn_card {
        flex-wrap: wrap;
    }

    .conn_card_actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* Discover: "Connected" across from the title, a filter that stays pressed */
.dash_connected_filter b {
    margin-inline-start: 2px;
}

.dash_connected_filter.is_on {
    border-color: rgba(47, 158, 68, .45);
    background: rgba(47, 158, 68, .12);
}

/* Search */
.srch {
    max-width: 860px;
    margin: 0 auto;
}

.srch_head {
    margin-bottom: 18px;
    text-align: center;
}

.srch_head h1 {
    margin: 0 0 6px;
    font-size: 1.4rem;
}

.srch_head p {
    margin: 0;
    color: var(--dash-muted);
}

.srch_box {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 58px;
    padding: 0 18px;
    border: 1px solid var(--dash-border-strong);
    border-radius: 16px;
    background: var(--dash-panel);
    box-shadow: var(--dash-shadow-sm, 0 4px 14px rgba(0, 0, 0, .06));
    transition: border-color .15s ease, box-shadow .15s ease;
}

.srch_box:focus-within {
    border-color: var(--dash-brand);
    box-shadow: 0 0 0 4px rgba(var(--dash-brand-rgb), .12);
}

.srch_box>.icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    color: var(--dash-muted);
}

.srch_box input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    background: none;
    color: var(--dash-text);
    font: inherit;
    font-size: 0.95rem;
}

.srch_kbd {
    padding: 2px 8px;
    border: 1px solid var(--dash-border);
    border-radius: 7px;
    color: var(--dash-muted);
    font-family: inherit;
    font-size: .76rem;
}

.srch_types {
    display: flex;
    gap: 6px;
    margin: 14px 0 4px;
    padding-bottom: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.srch_types[hidden] {
    display: none;
}

.srch_type,
.srch_chip {
    flex-shrink: 0;
    padding: 6px 12px;
    border: 1px solid var(--dash-border);
    border-radius: 99px;
    background: var(--dash-panel);
    color: var(--dash-text);
    font-size: .85rem;
    white-space: nowrap;
    cursor: pointer;
}

.srch_type b {
    margin-inline-start: 4px;
    color: var(--dash-muted);
    font-weight: 500;
}

.srch_type.is_on {
    border-color: var(--dash-brand);
    background: rgba(var(--dash-brand-rgb), .12);
}

.srch_chip:hover,
.srch_type:hover {
    border-color: var(--dash-border-strong);
    background: var(--dash-hover);
}

.srch_ask {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-top: 14px;
    padding: 12px 16px;
    border: 1px dashed rgba(var(--dash-brand-rgb), .5);
    border-radius: 14px;
    background: rgba(var(--dash-brand-rgb), .06);
    color: var(--dash-text);
    text-align: start;
    cursor: pointer;
}

.srch_ask[hidden],
.srch_answer[hidden] {
    display: none;
}

.srch_ask .icon {
    flex-shrink: 0;
    color: var(--dash-brand);
}

.srch_ask strong,
.srch_ask small {
    display: block;
}

.srch_ask small {
    color: var(--dash-muted);
}

.srch_answer {
    margin-top: 12px;
}

.srch_answer_head {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.srch_answer_head .icon {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--dash-brand);
}

.srch_answer_head p,
.srch_answer_wait {
    margin: 0;
    line-height: 1.6;
}

.srch_answer_wait {
    color: var(--dash-muted);
}

.srch_results {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 18px;
}

.srch_group header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 0 4px 6px;
}

.srch_group h2 {
    margin: 0;
    color: var(--dash-muted);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .04em;
}

.srch_item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 14px;
    border-radius: 12px;
    color: var(--dash-text);
}

.srch_item:hover,
.srch_item.is_current {
    background: var(--dash-hover);
}

.srch_item_text {
    flex: 1;
    min-width: 0;
}

.srch_item_text strong,
.srch_item_text small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.srch_item_text strong {
    font-weight: 500;
}

.srch_item_text small {
    margin-top: 2px;
    color: var(--dash-muted);
    font-size: .84rem;
}

.srch_item mark {
    padding: 0 1px;
    border-radius: 3px;
    background: rgba(var(--dash-brand-rgb), .25);
    color: inherit;
}

.srch_item_meta {
    flex-shrink: 0;
    color: var(--dash-muted);
    font-size: .82rem;
}

.srch_start {
    margin-top: 26px;
}

.srch_start[hidden],
.srch_start [hidden] {
    display: none;
}

.srch_label {
    display: block;
    margin: 16px 2px 8px;
    color: var(--dash-muted);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .04em;
}

.srch_chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.srch_tips {
    margin: 22px 0 0;
    padding-inline-start: 18px;
    color: var(--dash-muted);
    font-size: .88rem;
    line-height: 1.8;
}

@media (max-width: 575px) {

    .srch_kbd,
    .srch_item_meta {
        display: none;
    }
}

/* budget: the plan's credits and the limit of one channel, side by side */
.budget_cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.budget_card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 22px 24px;
}

.budget_card header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.budget_card h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.budget_value {
    font-size: 1.2rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    display: flex;
    align-items: center;
    gap: 8px;
}

.budget_value small {
    color: var(--dash-muted);
    font-size: .9rem;
    font-weight: 400;
}

.budget_track {
    height: 8px;
    border-radius: 8px;
    background: var(--dash-hover);
    overflow: hidden;
}

.budget_track i {
    display: block;
    width: var(--w);
    height: 100%;
    border-radius: 8px;
    background: var(--dash-chart-bar);
}

.budget_track.is_near i {
    background: #ff9800;
}

.budget_track.is_full i {
    background: var(--dash-danger);
}

.budget_rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
}

.budget_rows div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: .82rem;
}

.budget_rows dt {
    font-weight: 400;
}

.budget_rows dd {
    margin: 0;
    color: var(--dash-muted);
    text-align: end;
}

.budget_usage_link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
}

.budget_usage_link .icon {
    width: 16px;
    height: 16px;
}

/* invoices */
.invoices_details {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    padding: 16px 20px;
}

.invoices_details div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.invoices_details small {
    color: var(--dash-muted);
    font-size: .85rem;
}

.invoices_toolbar {
    display: flex;
    margin-bottom: 12px;
}

.invoices_toolbar .dash_search {
    width: min(320px, 100%);
}

.invoices_number {
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.invoices_table .col_actions {
    white-space: nowrap;
}

.invoices_table .col_actions>*+* {
    margin-inline-start: 6px;
}

.invoices_form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
}

.invoices_form .is_wide {
    grid-column: 1 / -1;
}

@media (max-width: 575px) {
    .invoices_form {
        grid-template-columns: 1fr;
    }
}

/* team: the people, their roles, one side panel each */
.team_seats {
    margin: 12px 0 12px;
    color: var(--dash-muted);
    font-size: .88rem;
}

.team_person {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.team_person>span:last-child {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.team_person strong {
    font-weight: 500;
}

.team_person small {
    font-size: .8rem;
    width: max-content;
}

.dash_avatar.is_muted {
    background: var(--dash-hover);
    color: var(--dash-muted);
}

.dash_avatar.is_muted .icon {
    width: 16px;
    height: 16px;
}

.team_table .col_actions {
    white-space: nowrap;
}

.team_table .col_actions>*+* {
    margin-inline-start: 4px;
}

.team_table .contact_dropdown {
    display: inline-block;
}

.team_member_only[hidden],
[data-team-mailbox-list][hidden] {
    display: none;
}

[data-team-mailbox-list] {
    margin-top: 10px;
}

.team_drawer {
    position: fixed;
    top: 8px;
    bottom: 8px;
    inset-inline-end: 8px;
    z-index: 90;
    width: min(420px, calc(100vw - 16px));
    border-radius: var(--dash-radius);
    background: var(--dash-panel);
    border: 1px solid var(--dash-border);
    box-shadow: var(--dash-shadow-lg);
    transform: translateX(calc(100% + 24px));
    transition: transform .4s var(--dash-ease);
}

html[dir="rtl"] .team_drawer {
    transform: translateX(calc(-100% - 24px));
}

.team_drawer.is_open {
    transform: none !important;
}

.team_drawer_overlay {
    position: fixed;
    inset: 0;
    z-index: 85;
    background: rgba(0, 0, 0, .12);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s;
}

.team_drawer_open .team_drawer_overlay {
    opacity: 1;
    visibility: visible;
}

.team_drawer_form {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.team_drawer_head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px 22px 16px;
    border-bottom: 1px solid var(--dash-border);
}

.team_drawer_head div {
    flex: 1;
    min-width: 0;
}

.team_drawer_head h2 {
    margin: 0;
    overflow: hidden;
    font-size: 1.1rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team_drawer_head small {
    color: var(--dash-muted);
}

.team_drawer_body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 18px;
    padding: 20px 22px;
    overflow-y: auto;
}

.team_drawer_body .team_member_only {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.team_drawer_foot {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 22px;
    border-top: 1px solid var(--dash-border);
}

/* ===== Overview, calmer: more air in the cards, one look for every list ===== */
.dash_home_head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-end;
    margin-bottom: 18px;
}

.dash_home_grid {
    display: grid;
    align-items: start;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 18px;
}

.dash_home_main,
.dash_home_side {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 12px;
}

.dash_home_grid .dash_card {
    padding: 20px 22px;
}

.dash_home_grid .dash_card_head {
    margin-bottom: 12px;
}

.dash_home_grid .dash_card_head h3 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0;
}

/* what waits today: small links instead of one long sentence */
.dash_home_focus {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.dash_focus_chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 12px;
    border: 1px solid var(--dash-border);
    border-radius: 999px;
    background: var(--dash-panel);
    color: var(--dash-text-soft);
    font-size: .86rem;
    text-decoration: none;
    transition: border-color .2s ease, color .2s ease;
}

.dash_focus_chip b {
    color: var(--dash-text);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.dash_focus_chip:hover {
    border-color: var(--dash-border-strong);
    color: var(--dash-text);
}

.dash_focus_chip.is_brand {
    border-color: rgba(var(--dash-brand-rgb), .45);
    background: rgba(var(--dash-brand-rgb), .08);
}

.dash_focus_chip.is_danger b {
    color: var(--dash-danger);
}

/* recent activity: quiet rows, the icon without a box */
.dash_feed {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dash_feed li {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
    padding: 11px 0;
    border-top: 1px solid var(--dash-border);
}

.dash_feed li:first-child {
    border-top: 0;
    padding-top: 2px;
}

.dash_feed_icon {
    display: inline-flex;
    padding-top: 2px;
    color: var(--dash-muted);
}

.dash_feed_icon .icon {
    width: 18px;
    height: 18px;
}

.dash_feed a {
    min-width: 0;
    color: var(--dash-text);
    text-decoration: none;
}

.dash_feed strong,
.dash_feed small {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.dash_feed strong {
    font-size: .92rem;
    font-weight: 500;
}

.dash_feed small {
    margin-top: 2px;
    color: var(--dash-muted);
    font-size: .82rem;
}

.dash_feed a:hover strong {
    color: var(--dash-brand-strong);
}

.dash_feed time {
    padding-top: 2px;
    color: var(--dash-muted);
    font-size: .76rem;
    white-space: nowrap;
}

/* the holidays this month: a small date block, the name, how far away */
.dash_holidays_list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dash_holidays_list li {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid var(--dash-border);
}

.dash_holidays_list li:first-child {
    border-top: 0;
    padding-top: 2px;
}

.dash_holidays_date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 44px;
    border-radius: 12px;
    background: var(--dash-panel-soft);
    border: 1px solid var(--dash-border);
    line-height: 1;
}

.dash_holidays_date b {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dash-text);
}

.dash_holidays_date small {
    margin-top: 3px;
    font-size: .68rem;
}

.dash_holidays_list li.is_soon .dash_holidays_date {
    background: var(--dash-chip-bg);
    border-color: rgba(var(--dash-brand-rgb), 0.35);
}

.dash_holidays_list li.is_soon .dash_holidays_date b {
    color: var(--dash-brand);
}

.dash_holidays_body {
    min-width: 0;
}

.dash_holidays_body strong,
.dash_holidays_body small {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.dash_holidays_body strong {
    font-size: .92rem;
    font-weight: 500;
    color: var(--dash-text);
}

.dash_holidays_body small {
    margin-top: 2px;
    color: var(--dash-muted);
    font-size: .8rem;
}

.dash_holidays_when {
    color: var(--dash-muted);
    font-size: .76rem;
    white-space: nowrap;
}

.dash_holidays_list li.is_soon .dash_holidays_when {
    color: var(--dash-brand-strong);
    font-weight: 600;
}

.dash_holidays_end {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dash_holidays_bell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--dash-panel-soft);
    color: var(--dash-muted);
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.dash_holidays_bell svg {
    width: 15px;
    height: 15px;
}

.dash_holidays_bell:hover,
.dash_holidays_bell[aria-expanded="true"] {
    background: var(--dash-chip-bg);
    color: var(--dash-brand);
}

.dash_holidays_bell.is_set {
    background: var(--dash-chip-bg);
    color: var(--dash-brand);
}

.dash_holidays_remind {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border-radius: 12px;
    background: var(--dash-panel-soft);
    animation: dashHolidayOpen .25s var(--dash-ease) both;
}

.dash_holidays_remind[hidden] {
    display: none;
}

.dash_holidays_remind>span {
    color: var(--dash-text);
    font-size: .84rem;
    font-weight: 500;
}

.dash_holidays_remind>small {
    color: var(--dash-muted);
    font-size: .76rem;
}

.dash_holidays_leads {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.dash_holidays_lead {
    padding: 6px 12px;
    border: 0;
    border-radius: 999px;
    background: var(--dash-bg);
    color: var(--dash-text-soft);
    font-size: .8rem;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.dash_holidays_lead:hover,
.dash_holidays_lead.is_active {
    background: var(--dash-chip-bg);
    color: var(--dash-brand);
}

.dash_holidays_lead:disabled {
    opacity: .6;
    cursor: default;
}

@keyframes dashHolidayOpen {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* credits: a ring for what is left, the forecast in words, the last 7 days */
.dash_fuel {
    --fuel: var(--dash-brand);
}

.dash_fuel.is_warn {
    --fuel: #ff9800;
}

.dash_fuel.is_danger {
    --fuel: var(--dash-danger);
}

.dash_fuel_top {
    display: flex;
    align-items: center;
    gap: 16px;
}

.dash_fuel_ring {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    transform: rotate(-90deg);
}

html[dir="rtl"] .dash_fuel_ring {
    transform: rotate(-90deg) scaleY(-1);
}

.dash_fuel_ring circle {
    fill: none;
    stroke-width: 7;
}

.dash_fuel_track {
    stroke: var(--dash-hover);
}

.dash_fuel_value {
    stroke: var(--fuel);
    stroke-linecap: round;
    transition: stroke-dasharray .6s var(--dash-ease);
}

.dash_fuel_ring text {
    fill: var(--dash-text);
    font-size: 15px;
    font-weight: 600;
    transform: rotate(90deg);
    transform-origin: 36px 36px;
}

html[dir="rtl"] .dash_fuel_ring text {
    transform: scaleY(-1) rotate(90deg);
}

.dash_fuel_number {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dash_fuel_number strong {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -.02em;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.dash_fuel_number small {
    color: var(--dash-muted);
    font-size: .84rem;
    display: block;
    margin-top: 5px;
}

.dash_fuel_forecast {
    margin: 14px 0 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--dash-panel-soft);
    color: var(--dash-text-soft);
    font-size: .86rem;
    line-height: 1.5;
}

.dash_fuel.is_warn .dash_fuel_forecast,
.dash_fuel.is_danger .dash_fuel_forecast {
    color: var(--dash-text);
    box-shadow: inset 3px 0 0 var(--fuel);
}

html[dir="rtl"] .dash_fuel.is_warn .dash_fuel_forecast,
html[dir="rtl"] .dash_fuel.is_danger .dash_fuel_forecast {
    box-shadow: inset -3px 0 0 var(--fuel);
}

.dash_fuel_week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    height: 60px;
    margin-top: 16px;
}

.dash_fuel_day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    cursor: default;
}

.dash_fuel_day i {
    width: 100%;
    max-width: 22px;
    height: calc((100% - 20px) * var(--h) / 100);
    min-height: 3px;
    border-radius: 4px 4px 2px 2px;
    background: rgba(var(--dash-brand-rgb), .45);
}

.dash_fuel_day.is_today i {
    background: var(--fuel);
}

/* a day without use: a thin grey line */
.dash_fuel_day.is_zero i {
    background: var(--dash-hover);
}

.dash_fuel_day:hover i {
    filter: brightness(1.1);
}

.dash_fuel_day small {
    color: var(--dash-muted);
    font-size: .7rem;
    line-height: 14px;
}

.dash_fuel_day.is_today small {
    color: var(--dash-text);
    font-weight: 600;
}

.dash_fuel_foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--dash-border);
    color: var(--dash-muted);
    font-size: .82rem;
}

/* the assistant: one line */
.dash_home_agent_row small {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--dash-muted);
    font-size: .8rem;
}

.dash_home_agent_row .dash_icon_btn {
    flex-shrink: 0;
}

/* a summary line: our icon, then the words */
.notify_line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.notify_line_icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 7px;
    background: rgba(var(--dash-brand-rgb), .12);
    color: var(--dash-brand-strong);
}

.notify_line_icon .icon {
    width: 14px;
    height: 14px;
}

.notify_line>span:last-child {
    padding-top: 1px;
}

.notify_line.is_tip {
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px solid var(--dash-border);
    color: var(--dash-text);
}

/* ===== Finance overview, with air: the month on top, the wallets as cards, two columns under ===== */
.fin_month_card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 24px 26px;
}

.fin_month_top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px 32px;
}

.fin_net {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.fin_flow {
    display: flex;
    gap: 0;
}

.fin_flow_item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 150px;
    padding: 4px 22px;
    border-inline-start: 1px solid var(--dash-border);
    color: var(--dash-text);
    text-decoration: none;
}

.fin_flow_item:hover b {
    color: var(--dash-brand-strong);
}

.fin_flow_item small {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--dash-muted);
    font-size: .8rem;
}

.fin_flow_icon {
    display: inline-flex;
}

.fin_flow_icon svg {
    width: 15px;
    height: 15px;
}

.fin_flow_item.is_income .fin_flow_icon {
    color: var(--dash-success);
}

.fin_flow_item.is_expense .fin_flow_icon {
    color: var(--dash-danger);
}

.fin_flow_item b {
    font-size: 1.25rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    transition: color .15s ease;
}

.fin_flow_item em {
    color: var(--dash-muted);
    font-size: .74rem;
    font-style: normal;
}

.fin_month_card .fin_meter {
    margin-top: 0;
}

.fin_month_card .fin_chart {
    grid-template-rows: auto 140px auto;
    padding-top: 18px;
    border-top: 1px solid var(--dash-border);
}

/* wallets: one card each */
.fin_wallet_section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fin_wallet_head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
}

.fin_wallet_head h2 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.fin_wallet_head p {
    margin: 4px 0 0;
    color: var(--dash-muted);
    font-size: .86rem;
}

.fin_wallet_head p b {
    margin-inline-start: 4px;
    color: var(--dash-text);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.fin_wallet_head p b.is_negative {
    color: var(--dash-danger);
}

.fin_wallet_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.fin_wallet_card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 150px;
    padding: 18px;
    overflow: hidden;
    border: 1px solid var(--dash-border);
    border-radius: 16px;
    background: var(--dash-panel);
    box-shadow: var(--dash-shadow);
    color: var(--dash-text);
    text-decoration: none;
    transition: border-color .2s ease, transform .2s var(--dash-ease);
}

/* the wallet's colour: a thin line on top */
.fin_wallet_card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: var(--wallet);
}

.fin_wallet_card:hover {
    border-color: var(--dash-border-strong);
    transform: translateY(-2px);
}

.fin_wallet_top {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.fin_wallet_icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: color-mix(in srgb, var(--wallet, var(--dash-brand)) 14%, transparent);
    color: var(--wallet, var(--dash-brand));
}

.fin_wallet_icon svg {
    width: 19px;
    height: 19px;
}

.fin_wallet_card .fin_wallet_name {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.fin_wallet_card .fin_wallet_name strong {
    overflow: hidden;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.fin_wallet_card .fin_wallet_name small {
    color: var(--dash-muted);
    font-size: .78rem;
}

.fin_wallet_balance {
    margin-top: auto;
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: -.01em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.fin_wallet_share {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fin_wallet_track {
    flex: 1;
    height: 4px;
    overflow: hidden;
    border-radius: 4px;
    background: var(--dash-hover);
}

.fin_wallet_track i {
    display: block;
    height: 100%;
    border-radius: 4px;
    background: var(--wallet);
}

.fin_wallet_share small {
    flex-shrink: 0;
    color: var(--dash-muted);
    font-size: .74rem;
}

.fin_wallet_card.is_add {
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-style: dashed;
    background: transparent;
    box-shadow: none;
    color: var(--dash-muted);
}

.fin_wallet_card.is_add::before {
    display: none;
}

.fin_wallet_card.is_add .fin_wallet_icon {
    background: var(--dash-hover);
    color: var(--dash-text-soft);
}

.fin_wallet_card.is_add:hover {
    color: var(--dash-text);
}

/* the two cards under: same head, same air */
.fin_columns {
    display: grid;
    align-items: start;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
}

.fin_spending,
.fin_recent {
    padding: 22px 24px;
}

.fin_card_head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.fin_card_head h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

@media (max-width: 991px) {
    .fin_columns {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 575px) {
    .fin_month_card {
        padding: 18px;
    }

    .fin_flow {
        width: 100%;
    }

    .fin_flow_item {
        flex: 1;
        min-width: 0;
        padding: 4px 14px;
    }

    .fin_flow_item:first-child {
        padding-inline-start: 0;
        border-inline-start: 0;
    }

    .fin_flow_item b {
        font-size: 0.95rem;
    }

    .fin_wallet_grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 10px;
    }

    .fin_wallet_card {
        min-height: 130px;
        padding: 14px;
    }

    .fin_wallet_balance {
        font-size: 1.15rem;
    }
}

/* ===== The automation editor: the whole width, the menu beside it opens and closes from the editor's bar ===== */
.dash_content.dash_content_wide {
    max-width: none;
    padding: 12px;
}

.aside_collapsed .dash_content.dash_content_wide {
    padding-inline-start: 12px;
}

/* its own button in the bar does it here */
.dash_main_editor .dash_aside_reopen {
    display: none !important;
}

.dash_content_wide .wf_editor {
    height: calc(100vh - 42px);
    min-height: 560px;
}

.wf_menu_toggle {
    color: var(--dash-muted);
}

.aside_collapsed .wf_menu_toggle {
    color: var(--dash-text);
}

/* ===== The automation read as one sentence ===== */
.wf_sentence {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    padding: 9px 14px;
    border-bottom: 1px solid var(--dash-border);
    background: var(--dash-panel-soft);
    color: var(--dash-text-soft);
    font-size: .86rem;
    line-height: 1.5;
}

.wf_sentence[hidden] {
    display: none;
}

.wf_sentence .icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    color: var(--dash-muted);
}

.wf_item_sentence {
    display: -webkit-box;
    margin: 2px 0;
    overflow: hidden;
    color: var(--dash-text-soft);
    font-size: .84rem;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ===== Automations: real values, the run replayed on the canvas, ask me, why did it fail ===== */
.wf_preview {
    display: block;
    margin-top: 6px;
    padding: 7px 9px;
    border-radius: 8px;
    background: var(--dash-panel-soft);
    color: var(--dash-text-soft);
    font-size: .78rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.wf_preview[hidden] {
    display: none;
}

.wf_preview b {
    margin-inline-end: 4px;
    color: var(--dash-muted);
    font-weight: 600;
}

.wf_real,
.wf_menu em {
    color: var(--dash-brand-strong);
    font-size: .76rem;
    font-style: normal;
}

.wf_menu em {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* the step's number in a run, and its error right on the canvas */
.wf_node_step {
    position: absolute;
    top: -10px;
    inset-inline-end: -10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--dash-success, #2f9e44);
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    box-shadow: 0 0 0 3px var(--dash-panel);
    animation: wfPop .35s var(--dash-ease);
}

.wf_node.is_failed .wf_node_step {
    background: var(--dash-danger);
}

.wf_node.is_waiting .wf_node_step {
    background: #e8590c;
}

@keyframes wfPop {
    from {
        transform: scale(.4);
        opacity: 0;
    }
}

.wf_node.is_ok,
.wf_node.is_failed,
.wf_node.is_waiting {
    transition: outline-color .3s ease;
}

.wf_node_error {
    margin: 0;
    padding: 6px 12px 8px;
    border-top: 1px solid rgba(224, 49, 49, .25);
    color: var(--dash-danger);
    font-size: .74rem;
    line-height: 1.4;
}

.wf_edge.is_ran {
    stroke: var(--dash-success, #2f9e44);
    stroke-width: 2.5px;
    stroke-dasharray: 8 6;
    animation: wfFlow .8s linear infinite;
}

@keyframes wfFlow {
    to {
        stroke-dashoffset: -14;
    }
}

/* the run in the panel: numbered steps you can open */
.wf_steps {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

button.wf_step {
    width: 100%;
    padding: 7px 8px;
    border: 0;
    border-radius: 9px;
    background: none;
    color: var(--dash-text);
    font: inherit;
    text-align: start;
    cursor: pointer;
}

button.wf_step:hover {
    background: var(--dash-hover);
}

.wf_step_no {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: var(--dash-border-strong);
    color: var(--dash-text);
    font-size: .78rem;
    font-weight: 700;
}

.wf_step.is_ok .wf_step_no {
    background: var(--dash-success, #2f9e44);
    color: #fff;
}

.wf_step.is_failed .wf_step_no {
    background: var(--dash-danger);
    color: #fff;
}

.wf_step.is_waiting .wf_step_no {
    background: #e8590c;
    color: #fff;
}

.wf_io {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    border-radius: 10px;
    background: var(--dash-panel-soft);
}

.wf_io_title {
    color: var(--dash-muted);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .04em;
}

.wf_io_row {
    display: flex;
    flex-direction: column;
    gap: 1px;
    font-size: .82rem;
}

.wf_io_row small {
    color: var(--dash-muted);
    font-size: .78rem;
}

.wf_io_row span {
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

/* ask me */
.wf_approval_box {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    border: 1px dashed #e8590c;
    border-radius: 12px;
    background: rgba(232, 89, 12, .06);
}

.wf_approval_box small {
    color: var(--dash-muted);
    font-size: .78rem;
}

.wf_approval_actions,
.wf_approval_buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.wf_approval_buttons {
    justify-content: flex-start;
    margin-top: 8px;
}

/* why did it fail */
.wf_doctor {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wf_doctor_answer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(var(--dash-brand-rgb), .08);
}

.wf_doctor_answer strong {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .84rem;
}

.wf_doctor_answer .icon {
    width: 15px;
    height: 15px;
    color: var(--dash-brand-strong);
}

.wf_doctor_answer p {
    margin: 0;
    font-size: .84rem;
    line-height: 1.55;
}

.wf_doctor_fix {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 8px;
    border-top: 1px solid var(--dash-border);
}

.wf_doctor_fix>small {
    color: var(--dash-muted);
    font-size: .74rem;
}

.wf_doctor_fix .dash_btn {
    align-self: flex-start;
}

.wf_doctor_done {
    margin: 0;
    color: var(--dash-success, #2f9e44);
    font-size: .84rem;
}

/* ===== The assistant in the inbox ===== */
.inbox_ai {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 10px 10px 0;
    padding: 10px;
    border-radius: 14px;
    animation: inboxAiIn .25s var(--dash-ease);
}

.inbox_ai[hidden] {
    display: none;
}

@keyframes inboxAiIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
}

.inbox_ai_row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.inbox_ai_mark {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: rgba(var(--dash-brand-rgb), .14);
    color: var(--dash-brand-strong);
}

.inbox_ai_mark .icon {
    width: 16px;
    height: 16px;
}

.inbox_ai.is_busy .inbox_ai_mark .icon {
    animation: aiPulse 1s ease-in-out infinite;
}

.inbox_ai_input {
    flex: 1;
    min-width: 0;
    height: 36px;
    padding: 0 8px;
    border: 0;
    background: none;
    color: var(--dash-text);
    font: inherit;
    font-size: .92rem;
    outline: 0;
}

.inbox_ai_go {
    background: var(--dash-brand);
    color: var(--dash-on-brand);
}

.inbox_ai_go:hover {
    background: var(--dash-brand-strong);
    color: var(--dash-on-brand);
}

/* recording: the mic turns red and breathes */
.inbox_ai_mic.is_recording {
    background: var(--dash-danger);
    color: #fff;
    animation: inboxAiRec 1.2s ease-in-out infinite;
}

@keyframes inboxAiRec {
    50% {
        box-shadow: 0 0 0 6px rgba(224, 49, 49, .18);
    }
}

.inbox_ai_chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.inbox_ai_chip {
    padding: 5px 11px;
    border: 1px solid var(--dash-border-strong);
    border-radius: 999px;
    background: var(--dash-panel);
    color: var(--dash-text-soft);
    font: inherit;
    font-size: .8rem;
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease, background .15s ease;
}

.inbox_ai_chip:hover {
    border-color: rgba(var(--dash-brand-rgb), .6);
    color: var(--dash-text);
}

.inbox_ai_chip.is_main {
    border-color: rgba(var(--dash-brand-rgb), .55);
    background: rgba(var(--dash-brand-rgb), .1);
    color: var(--dash-text);
}

.inbox_ai_chip.is_lang {
    padding: 4px 9px;
    font-size: .76rem;
}

.inbox_ai_sep,
.inbox_ai_hint {
    color: var(--dash-muted);
    font-size: .76rem;
}

.inbox_ai_sep {
    margin-inline-start: 6px;
}

/* the suggestion: read it first, then use it */
.inbox_ai_result {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border-radius: 12px;
    background: var(--dash-panel-soft);
}

.inbox_ai_result[hidden] {
    display: none;
}

.inbox_ai_result_head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--dash-muted);
    font-size: .74rem;
}

.inbox_ai_result_head small:first-child {
    font-weight: 600;
    letter-spacing: .03em;
}

.inbox_ai_subject {
    margin: 0;
    font-weight: 600;
    font-size: .9rem;
}

.inbox_ai_subject[hidden] {
    display: none;
}

.inbox_ai_text {
    max-height: 240px;
    overflow-y: auto;
    font-size: .9rem;
    line-height: 1.6;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.inbox_ai_actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* three dots while it writes */
.inbox_ai_wait {
    display: inline-flex;
    gap: 4px;
    padding: 6px 0;
}

.inbox_ai_wait i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--dash-brand);
    animation: inboxAiDot 1s ease-in-out infinite;
}

.inbox_ai_wait i:nth-child(2) {
    animation-delay: .15s;
}

.inbox_ai_wait i:nth-child(3) {
    animation-delay: .3s;
}

@keyframes inboxAiDot {
    50% {
        opacity: .25;
        transform: translateY(-3px);
    }
}

.inbox_ai_btn.is_on {
    border-color: rgba(var(--dash-brand-rgb), .6);
    background: rgba(var(--dash-brand-rgb), .12);
    color: var(--dash-text);
}

/* on a received email: reply, translate, sum up */
.inbox_message header strong {
    flex: 1;
    min-width: 0;
}

.inbox_msg_tools {
    display: inline-flex;
    gap: 2px;
    opacity: .55;
    transition: opacity .15s ease;
}

.inbox_message:hover .inbox_msg_tools,
.inbox_msg_tools:focus-within {
    opacity: 1;
}

.inbox_msg_tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 8px;
    background: none;
    color: var(--dash-muted);
    cursor: pointer;
}

.inbox_msg_tool:hover {
    background: var(--dash-hover);
    color: var(--dash-text);
}

.inbox_msg_tool .icon {
    width: 16px;
    height: 16px;
}

.inbox_msg_ai {
    margin-top: 12px;
    padding: 10px 12px;
    border-inline-start: 3px solid var(--dash-brand);
    border-radius: 10px;
    background: rgba(var(--dash-brand-rgb), .07);
}

.inbox_msg_ai_head {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    font-size: .78rem;
}

.inbox_msg_ai_head .icon {
    width: 14px;
    height: 14px;
    color: var(--dash-brand-strong);
}

.inbox_msg_ai_head strong {
    flex: 1;
}

.inbox_msg_ai p {
    margin: 0;
    font-size: .88rem;
    line-height: 1.6;
    white-space: pre-wrap;
}

/* ===== The quick assistant button: a slim tab on the edge of the screen, away from the buttons in the corners =====
   (it used to sit in the bottom corner, on top of Send, the zoom of the automation canvas …).
   It tucks into the edge while the page scrolls (only a sliver shows), and comes back when the scroll stops. */
.aq_launcher {
    display: inline-flex;
    position: fixed;
    z-index: 1040;
    align-items: center;
    color: var(--dash-text);
    font-size: .9rem;
    font-weight: 500;
    cursor: pointer;
    top: auto;
    bottom: 128px;
    inset-inline-end: 0;
    height: 50px;
    gap: 0;
    padding: 6px;
    padding-inline-end: 10px;
    border: 1px solid var(--dash-border-strong);
    border-inline-end: 0;
    border-radius: 16px 0 0 16px;
    box-shadow: -10px 14px 30px -20px rgba(0, 0, 0, 0.65);
    transform: none;
    transition: transform .35s var(--dash-ease), box-shadow .3s ease, gap .3s var(--dash-ease), padding .3s var(--dash-ease), opacity .3s ease;
    background: var(--dash-panel);
}

html[dir="rtl"] .aq_launcher {
    border-radius: 0 16px 16px 0;
    box-shadow: 10px 14px 30px -20px rgba(0, 0, 0, 0.65);
}

/* a thin line in the brand colour on the side that faces the page */
.aq_launcher::before {
    content: "";
    position: absolute;
    inset-inline-start: -1px;
    top: 12px;
    bottom: 12px;
    width: 3px;
    border-radius: 3px;
    background: var(--dash-brand);
    opacity: .85;
}

.aq_launcher:hover,
.aq_launcher:focus-visible {
    padding: 5px 10px 5px 5px;
    gap: 10px;
    padding-inline-end: 14px;
    transform: none;
    box-shadow: -14px 18px 34px -20px rgba(var(--dash-brand-rgb), 0.55);
}

html[dir="rtl"] .aq_launcher:hover,
html[dir="rtl"] .aq_launcher:focus-visible {
    box-shadow: 14px 18px 34px -20px rgba(var(--dash-brand-rgb), 0.55);
}

.aq_launcher_bot {
    display: inline-grid;
    place-items: center;
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(var(--dash-brand-rgb), 0.13);
}

/* the assistant is there: a small dot on the robot */
.aq_launcher_bot::after {
    content: "";
    position: absolute;
    bottom: 2px;
    inset-inline-end: 2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3fb950;
    box-shadow: 0 0 0 2px var(--dash-panel);
}

/* while the page scrolls: tucked into the edge, a sliver left to grab */
.aq_launcher.is_tucked {
    opacity: .7;
    transform: translateX(calc(100% - 12px));
}

html[dir="rtl"] .aq_launcher.is_tucked {
    transform: translateX(calc(-100% + 12px));
}

.aq_launcher.is_tucked:hover,
.aq_launcher.is_tucked:focus-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {

    .aq_launcher,
    .aq_launcher.is_tucked {
        transition: none;
    }
}

/* Mobile sessions and notification delivery choices */
.mobile_app_status {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.mobile_app_status>div {
    flex: 1;
}

.mobile_app_status p {
    margin: 6px 0 0;
}

.mobile_app_session {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
}

.mobile_app_session+.mobile_app_session {
    border-top: 1px solid var(--dash-border, #383838);
}

.mobile_app_session_info {
    display: grid;
    gap: 6px;
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

.mobile_app_session_info small {
    color: var(--dash-muted, #92918a);
}

.push_delivery_intro {
    padding: 20px;
    margin: 0;
}

.push_feature_label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.push_delivery_table th:not(:first-child),
.push_delivery_table td:not(:first-child) {
    text-align: center;
    width: 150px;
}

.push_delivery_table .form-check-input {
    cursor: pointer;
    width: 20px;
    height: 20px;
    margin: 0;
}

@media (max-width: 640px) {
    .mobile_app_status {
        flex-wrap: wrap;
    }

    .mobile_app_status>a {
        width: 100%;
    }

    .mobile_app_session {
        flex-wrap: wrap;
    }

    .mobile_app_session>button {
        margin-inline-start: 54px;
    }

    .push_delivery_table th,
    .push_delivery_table td {
        padding: 12px 8px;
    }

    .push_delivery_table th:not(:first-child),
    .push_delivery_table td:not(:first-child) {
        width: 90px;
    }

    .push_feature_label {
        gap: 8px;
    }
}

/* Playground modes: chat and an actual phone call with per-call instructions. */
.agent_playground_tabs button {
    border: 0;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
}

.agent_playground_chat {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
}

.agent_playground_phone {
    padding: 16px;
    overflow-y: auto;
    min-height: 0;
}

.agent_playground_phone .dash_form_row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 16px 0;
}

.agent_playground_phone .dash_form_actions {
    display: flex;
    padding-top: 16px;
}

.agent_playground_phone .dash_form_actions .dash_btn {
    width: 100%;
    justify-content: center;
}

.agent_playground [data-playground-panel][hidden] {
    display: none;
}

/* The phone picker shares the chat's contact rows and follows the dashboard theme. */
.phone_contact_field {
    position: relative;
}

.phone_contact_field .dash_input {
    padding-right: 52px;
}

.phone_contact_toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    font: inherit;
    font-weight: 600;
}

.phone_contact_menu.achat_mention_menu {
    position: static;
    width: 100%;
    max-height: 240px;
    margin-top: 8px;
    overscroll-behavior: contain;
}

.phone_contact_menu[hidden],
.phone_contact_selected[hidden] {
    display: none;
}

.phone_contact_selected {
    display: block;
    margin-top: 6px;
    color: var(--dash-text-soft);
}

.phone_format_hint {
    display: block;
    margin-top: 6px;
    color: var(--dash-muted);
    font-size: .8rem;
}

.phone_format_hint.is_error {
    color: var(--dash-danger);
    font-weight: 500;
}

/* A new call: to whom, the mission (typed, spoken and written by the AI, or a template), the voice, then the call. */
.phone_composer {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 0 0 18px;
}

.phone_composer.dash_card {
    padding: 20px;
}

.phone_composer_head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.phone_composer_head>div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.phone_composer_head strong {
    font-size: 1rem;
}

.phone_composer_head small,
.phone_composer_label small {
    color: var(--dash-muted);
    font-size: .8rem;
}

.phone_composer_icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(var(--dash-brand-rgb), .14);
    color: var(--dash-brand);
}

.phone_composer_icon svg {
    width: 19px;
    height: 19px;
}

.phone_composer_field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.phone_composer_label {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
}

.phone_composer_title {
    margin: 0;
    color: var(--dash-text);
    font-size: .88rem;
    font-weight: 600;
}

.phone_mission {
    border: 1px solid var(--dash-border-strong);
    border-radius: var(--dash-radius-sm);
    background: var(--dash-panel);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.phone_mission:focus-within {
    border-color: var(--dash-brand);
    box-shadow: 0 0 0 3px rgba(var(--dash-brand-rgb), .14);
}

.phone_mission textarea.dash_input {
    display: block;
    height: auto;
    min-height: 92px;
    padding: 12px 14px;
    border: 0;
    background: transparent;
    box-shadow: none;
    line-height: 1.55;
    resize: vertical;
}

.phone_mission.is_busy textarea.dash_input {
    opacity: .55;
}

.phone_mission_bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    border-top: 1px solid var(--dash-border);
}

.phone_mission_bar .dash_btn svg {
    width: 15px;
    height: 15px;
}

.phone_mission_bar [hidden] {
    display: none !important;
}

.phone_mission_mic {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: var(--dash-brand);
    color: var(--dash-on-brand);
    cursor: pointer;
    transition: transform .15s ease, background-color .2s ease;
}

.phone_mission_mic:hover {
    transform: scale(1.06);
}

.phone_mission_mic svg {
    width: 17px;
    height: 17px;
}

.phone_mission.is_recording .phone_mission_mic {
    background: var(--dash-danger);
    color: #fff;
}

.phone_mission.is_recording .phone_mission_mic::after {
    content: "";
    position: absolute;
    inset: -4px;
    border: 2px solid var(--dash-danger);
    border-radius: 50%;
    animation: phone_mission_ring 1.2s ease-out infinite;
}

.phone_mission.is_busy .phone_mission_mic {
    opacity: .5;
    pointer-events: none;
}

.phone_mission_count {
    margin-inline-start: auto;
    color: var(--dash-muted);
    font-size: .74rem;
    font-variant-numeric: tabular-nums;
}

.phone_mission_status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-top: 1px solid var(--dash-border);
    color: var(--dash-brand);
    font-size: .82rem;
}

.phone_mission_status[hidden],
.phone_mission_status time[hidden] {
    display: none;
}

.phone_mission.is_recording .phone_mission_status {
    color: var(--dash-danger);
}

.phone_mission_status time {
    margin-inline-start: auto;
    font-variant-numeric: tabular-nums;
}

.phone_mission_wave {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    height: 14px;
}

.phone_mission_wave i {
    width: 3px;
    height: 100%;
    border-radius: 2px;
    background: currentColor;
    animation: phone_mission_wave .9s ease-in-out infinite;
}

.phone_mission_wave i:nth-child(2) {
    animation-delay: .15s;
}

.phone_mission_wave i:nth-child(3) {
    animation-delay: .3s;
}

.phone_mission_wave i:nth-child(4) {
    animation-delay: .45s;
}

@keyframes phone_mission_wave {

    0%,
    100% {
        transform: scaleY(.3);
    }

    50% {
        transform: scaleY(1);
    }
}

@keyframes phone_mission_ring {
    from {
        opacity: .8;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(1.35);
    }
}

.phone_mission_presets {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* before a call: each question with its ready answers (chips), "leave it to the agent", and an own answer */
.phone_prepare {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.phone_prepare_questions {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.phone_prepare_question {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    border: 0;
}

.phone_prepare_question legend {
    margin: 0;
    font-size: .95rem;
    font-weight: 600;
    color: var(--dash-text);
}

.phone_prepare_chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.phone_prepare_chip {
    padding: 7px 14px;
    border: 1px solid var(--dash-border-strong);
    border-radius: 999px;
    background: transparent;
    color: var(--dash-text-soft);
    font: inherit;
    font-size: .86rem;
    cursor: pointer;
    transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

.phone_prepare_chip:hover {
    color: var(--dash-text);
    border-color: var(--dash-text-soft);
}

.phone_prepare_chip.is_choose {
    border-style: dashed;
}

.phone_prepare_chip.is_active {
    border-color: var(--dash-brand);
    background: rgba(var(--dash-brand-rgb), .14);
    color: var(--dash-text);
}

.phone_prepare_mission summary {
    color: var(--dash-muted);
    font-size: .84rem;
    cursor: pointer;
}

.phone_prepare_mission p {
    margin: 10px 0 0;
    white-space: pre-line;
    color: var(--dash-text-soft);
    font-size: .88rem;
}

.phone_mission_preset {
    padding: 5px 12px;
    border: 1px dashed var(--dash-border-strong);
    border-radius: 999px;
    background: transparent;
    color: var(--dash-text-soft);
    font: inherit;
    font-size: .8rem;
    cursor: pointer;
    transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

.phone_mission_preset:hover {
    border-style: solid;
    border-color: var(--dash-brand);
    background: rgba(var(--dash-brand-rgb), .08);
    color: var(--dash-brand);
}

.phone_composer_foot {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.phone_voice_pill {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 0 14px;
    border: 1px solid var(--dash-border-strong);
    border-radius: var(--dash-radius-sm);
    background: transparent;
    color: var(--dash-text);
    font: inherit;
    font-size: .88rem;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease;
}

.phone_voice_pill:hover {
    border-color: var(--dash-brand);
    background: var(--dash-hover);
}

.phone_voice_pill svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: var(--dash-brand);
}

.phone_voice_pill span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.phone_voice_pill em {
    margin-inline-start: auto;
    color: var(--dash-brand);
    font-size: .8rem;
    font-style: normal;
    font-weight: 500;
}

.dash_btn.phone_call_btn {
    flex-shrink: 0;
    justify-content: center;
    min-width: 11rem;
    min-height: 46px;
    border-color: #2fb36d;
    background: #2fb36d;
    color: #fff !important;
    font-weight: 600;
    box-shadow: 0 8px 20px -10px rgba(47, 179, 109, .9);
}

.dash_btn.phone_call_btn:hover {
    border-color: #28a062;
    background: #28a062;
}

.phone_composer.is_compact .phone_composer_foot {
    flex-direction: column;
}

.phone_composer.is_compact .phone_voice_pill {
    min-height: 44px;
}

.phone_composer_from {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    font-variant-numeric: tabular-nums;
}

.phone_composer_from svg {
    width: 13px;
    height: 13px;
}

.phone_composer.is_compact+.phone_composer_from {
    margin-top: 22px;
}

@media (max-width: 575.98px) {
    .phone_composer_foot {
        flex-direction: column;
    }

    .phone_voice_pill {
        min-height: 44px;
    }
}

/* ---------- Your Phone: the month at a glance, the line, a new call, the line live ---------- */
.phone_hub {
    display: grid;
    grid-template-columns: minmax(300px, .82fr) minmax(0, 1.18fr);
    gap: 16px;
    align-items: start;
}

.phone_hub.is_single {
    grid-template-columns: minmax(0, 1fr);
}

.phone_station {
    position: sticky;
    top: 14px;
    display: grid;
    justify-items: center;
    padding: 26px 20px 28px;
    background-image: radial-gradient(circle at 50% 34%, rgba(var(--dash-brand-rgb), .09), transparent 62%);
}

.phone_station .phone_globe {
    height: 340px;
}

.phone_station .phone_globe_canvas {
    width: 136px;
    height: 136px;
}

.phone_station .phone_globe_halo {
    width: 168px;
    height: 168px;
    margin: -84px 0 0 -84px;
}

.phone_station .phone_globe_rays {
    width: 380px;
    height: 380px;
    margin: -190px 0 0 -190px;
}

.phone_station {
    view-transition-name: phone-station;
}

.phone_station .phone_globe {
    view-transition-name: phone-globe;
}

.phone_station_call[hidden],
.phone_station_talk[hidden],
.phone_station [hidden] {
    display: none !important;
}

.phone_station.is_calling {
    grid-template-columns: 150px minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    justify-items: stretch;
    align-items: center;
    column-gap: 18px;
    row-gap: 16px;
    height: min(680px, calc(100vh - 160px));
    min-height: 460px;
    overflow: hidden;
    padding: 20px;
    transition: border-color .3s ease, box-shadow .3s ease;
}

.phone_station.is_calling.is_on_air {
    border-color: rgba(47, 179, 109, .55);
    box-shadow: 0 0 0 3px rgba(47, 179, 109, .12);
}

.phone_station.is_calling .phone_globe_stage {
    grid-column: 1;
    grid-row: 1;
    padding: 0;
}

.phone_station.is_calling .phone_globe {
    height: 150px;
    pointer-events: none;
}

.phone_station.is_calling .phone_globe_canvas {
    width: 84px;
    height: 84px;
}

.phone_station.is_calling .phone_globe_halo {
    width: 108px;
    height: 108px;
    margin: -54px 0 0 -54px;
}

.phone_station.is_calling .phone_globe_rays {
    width: 220px;
    height: 220px;
    margin: -110px 0 0 -110px;
}

.phone_station.is_calling .phone_globe_number {
    display: none;
}

.phone_station_call {
    display: flex;
    grid-column: 2;
    grid-row: 1;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.phone_station_who {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.phone_station_who strong {
    overflow: hidden;
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: .03em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.phone_station_who time {
    color: var(--dash-text-soft);
    font-size: .95rem;
    font-variant-numeric: tabular-nums;
}

.phone_station_status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--dash-brand);
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.phone_station_status i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.phone_station.is_ringing .phone_station_status i,
.phone_station.is_on_air .phone_station_status i {
    animation: phone_live_blink 1.2s ease-in-out infinite;
}

.phone_station.is_on_air:not(.is_ringing) .phone_station_status {
    color: #2fb36d;
}

.phone_station_talk {
    display: flex;
    grid-column: 1 / -1;
    grid-row: 2;
    flex-direction: column;
    gap: 12px;
    height: 100%;
    min-height: 0;
}

.phone_station_talk .phone_live_transcript {
    flex: 1;
    min-height: 0;
    max-height: none;
    padding: 16px;
    border-radius: var(--dash-radius-sm);
    background: var(--dash-panel-soft);
}

.phone_station_talk .phone_live_line.is_person p {
    background: var(--dash-panel);
}

::view-transition-group(phone-station),
::view-transition-group(phone-globe) {
    animation-duration: .55s;
    animation-timing-function: cubic-bezier(.2, .8, .2, 1);
}

.phone_station .phone_globe_number strong {
    font-size: clamp(1.3rem, 1.9vw, 1.65rem);
}

.phone_hub_main {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.phone_hub_main .phone_composer {
    margin: 0;
}

.phone_line {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
}

.phone_line_icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--dash-brand);
    color: var(--dash-on-brand);
}

.phone_line_icon svg {
    width: 22px;
    height: 22px;
}

.phone_line_text {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-width: 0;
}

.phone_line_text>strong {
    font-size: 1.2rem;
    font-variant-numeric: tabular-nums;
}

.phone_line_switch {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 3px;
    border-radius: 12px;
    background: var(--dash-panel-soft);
}

.phone_line_switch a {
    padding: 5px 10px;
    border-radius: 9px;
    color: var(--dash-text-soft);
    font-size: .86rem;
    font-variant-numeric: tabular-nums;
    text-decoration: none;
}

.phone_line_switch a.is_active {
    background: var(--dash-panel);
    color: var(--dash-text);
    box-shadow: var(--dash-shadow);
    font-weight: 600;
}

/* the line, live */
.phone_live {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
    padding: 20px 22px;
    transition: border-color .3s ease, box-shadow .3s ease;
}

.phone_live .phone_live_idle {
    display: grid;
    grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr);
    grid-template-rows: auto 1fr;
    column-gap: 24px;
    row-gap: 8px;
    align-items: start;
}

.phone_live .phone_live_idle .phone_live_quiet {
    grid-row: 1 / span 2;
    justify-content: center;
    height: 100%;
    min-height: 180px;
}

.phone_live .phone_live_idle .phone_live_quiet:only-child {
    grid-column: 1 / -1;
}

.phone_live .phone_live_call {
    display: grid;
    grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr);
    grid-auto-rows: min-content;
    column-gap: 24px;
    row-gap: 14px;
    align-items: start;
}

.phone_live .phone_live_call>* {
    grid-column: 1;
}

.phone_live .phone_live_call .phone_live_top {
    padding: 16px;
    border-radius: var(--dash-radius-sm);
    background: var(--dash-panel-soft);
}

.phone_live .phone_live_call .phone_live_avatar {
    width: 56px;
    height: 56px;
}

.phone_live .phone_live_call .phone_live_top {
    gap: 16px;
}

.phone_live .phone_live_transcript .phone_live_line.is_person p {
    background: var(--dash-panel);
}

.phone_live .phone_live_call .phone_live_transcript {
    grid-column: 2;
    grid-row: 1 / span 6;
    min-height: 300px;
    max-height: 480px;
    padding: 16px;
    border-radius: var(--dash-radius-sm);
    background: var(--dash-panel-soft);
}

.phone_live.is_on_air {
    border-color: rgba(47, 179, 109, .55);
    box-shadow: 0 0 0 3px rgba(47, 179, 109, .12);
}

.phone_live_head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.phone_live_badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--dash-panel-soft);
    color: var(--dash-text-soft);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .06em;
}

.phone_live_badge i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--dash-muted);
}

.phone_live.is_on_air .phone_live_badge {
    background: rgba(47, 179, 109, .14);
    color: #2fb36d;
}

.phone_live.is_on_air .phone_live_badge i {
    background: #2fb36d;
    animation: phone_live_blink 1.2s ease-in-out infinite;
}

.phone_live_idle,
.phone_live_call {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
}

.phone_live_idle[hidden],
.phone_live_call[hidden],
.phone_live [hidden] {
    display: none !important;
}

.phone_live_quiet {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 22px 12px;
    border: 1px dashed var(--dash-border-strong);
    border-radius: var(--dash-radius-sm);
    text-align: center;
}

.phone_live_quiet small {
    max-width: 280px;
    color: var(--dash-muted);
    font-size: .82rem;
}

.phone_live_wave {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    height: 22px;
    margin-bottom: 6px;
    color: var(--dash-brand);
}

.phone_live_wave i {
    width: 3px;
    height: 30%;
    border-radius: 2px;
    background: currentColor;
    opacity: .55;
    animation: phone_live_idle 2.4s ease-in-out infinite;
}

.phone_live_wave i:nth-child(2) {
    animation-delay: .2s;
}

.phone_live_wave i:nth-child(3) {
    animation-delay: .4s;
}

.phone_live_wave i:nth-child(4) {
    animation-delay: .6s;
}

.phone_live_wave i:nth-child(5) {
    animation-delay: .8s;
}

.phone_live_label {
    color: var(--dash-text-soft);
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .04em;
}

.phone_live_label.is_ok {
    color: #2fb36d;
}

.phone_live_label.is_warn {
    color: var(--dash-brand-strong);
}

.phone_live_recent {
    display: flex;
    flex-direction: column;
    margin: 0 -8px;
}

.phone_live_top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.phone_live_avatar {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(47, 179, 109, .16);
    color: #2fb36d;
}

.phone_live_avatar svg {
    width: 22px;
    height: 22px;
}

.phone_live.is_on_air .phone_live_avatar::after {
    content: "";
    position: absolute;
    inset: -5px;
    border: 2px solid rgba(47, 179, 109, .55);
    border-radius: 50%;
    animation: phone_mission_ring 1.6s ease-out infinite;
}

.phone_live.is_ringing .phone_live_avatar svg {
    animation: phone_live_shake 1s ease-in-out infinite;
}

.phone_live_who {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.phone_live_who strong {
    overflow: hidden;
    font-size: 0.95rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.phone_live_who small {
    color: var(--dash-muted);
    font-size: .8rem;
    font-variant-numeric: tabular-nums;
}

.phone_hangup {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: #e5484d;
    color: #fff;
    cursor: pointer;
    transition: transform .15s ease, opacity .2s ease;
}

.phone_hangup:hover {
    transform: scale(1.06);
}

.phone_hangup:disabled {
    opacity: .5;
    cursor: default;
}

.phone_hangup svg {
    width: 20px;
    height: 20px;
}

.phone_live_error {
    margin: 0;
    padding: 10px 12px;
    border-radius: var(--dash-radius-sm);
    background: rgba(229, 72, 77, .1);
    color: var(--dash-danger);
    font-size: .86rem;
}

.phone_live_transcript {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    max-height: 420px;
    min-height: 140px;
    overflow-y: auto;
    padding: 4px 2px;
    overscroll-behavior: contain;
}

.phone_live_waiting {
    margin: auto;
    color: var(--dash-muted);
    font-size: .86rem;
    text-align: center;
}

.phone_live_line {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-width: 88%;
    animation: phone_live_in .35s var(--dash-ease, ease) both;
}

.phone_live_line small {
    color: var(--dash-muted);
    font-size: .78rem;
}

.phone_live_line p {
    margin: 0;
    padding: 9px 13px;
    border-radius: 16px;
    line-height: 1.5;
    white-space: pre-wrap;
}

.phone_live_line.is_agent {
    align-self: flex-start;
}

.phone_live_line.is_agent p {
    border-end-start-radius: 4px;
    background: rgba(var(--dash-brand-rgb), .14);
}

.phone_live_line.is_person {
    align-self: flex-end;
    align-items: flex-end;
}

.phone_live_line.is_person p {
    border-end-end-radius: 4px;
    background: var(--dash-panel-soft);
}

.phone_live_notes,
.phone_live_summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.phone_live_summary>span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--dash-text-soft);
    font-size: .82rem;
    font-weight: 600;
}

.phone_live_summary>span svg {
    width: 15px;
    height: 15px;
    color: var(--dash-brand-strong);
}

.phone_live_summary p {
    margin: 0;
    padding: 12px 14px;
    border-radius: var(--dash-radius-sm);
    background: var(--dash-panel-soft);
    line-height: 1.6;
}

.phone_live_foot {
    display: flex;
    gap: 8px;
}

@keyframes phone_live_blink {
    50% {
        opacity: .25;
    }
}

@keyframes phone_live_idle {

    0%,
    100% {
        height: 30%;
    }

    50% {
        height: 90%;
    }
}

@keyframes phone_live_in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes phone_live_shake {

    0%,
    50%,
    100% {
        transform: rotate(0);
    }

    10%,
    30% {
        transform: rotate(-14deg);
    }

    20%,
    40% {
        transform: rotate(14deg);
    }
}

/* a script on the call form: its steps, read before calling */
.phone_script_preview {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 4px 0 0;
    padding: 12px 14px 12px 34px;
    border-radius: var(--dash-radius-sm);
    background: var(--dash-panel-soft);
    font-size: .86rem;
}

[dir="rtl"] .phone_script_preview {
    padding: 12px 34px 12px 14px;
}

.phone_script_preview[hidden] {
    display: none;
}

.phone_step_type {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 1px 8px;
    border-radius: 999px;
    background: rgba(var(--dash-brand-rgb), .14);
    color: var(--dash-brand-strong);
    font-size: .78rem;
    font-weight: 600;
}

.phone_step_type.is_ask {
    background: rgba(76, 110, 245, .14);
    color: #6d8bff;
}

.phone_step_type.is_confirm {
    background: rgba(47, 179, 109, .14);
    color: #2fb36d;
}

/* ---------- call scripts ---------- */
.phone_scripts {
    display: grid;
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.phone_scripts.is_first {
    grid-template-columns: minmax(0, 760px);
}

.phone_scripts_list {
    display: flex;
    flex-direction: column;
    padding: 8px;
}

.phone_script_row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--dash-radius-sm);
    color: var(--dash-text);
    text-decoration: none;
}

.phone_script_row:hover {
    background: var(--dash-hover);
}

.phone_script_row.is_active {
    background: var(--dash-active);
}

.phone_script_editor {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
}

.phone_script_ai {
    display: flex;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(var(--dash-brand-rgb), .35);
    border-radius: var(--dash-radius-sm);
    background: rgba(var(--dash-brand-rgb), .06);
}

.phone_script_ai[hidden] {
    display: none;
}

.phone_script_ai_icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--dash-brand);
    color: var(--dash-on-brand);
}

.phone_script_ai_icon svg {
    width: 18px;
    height: 18px;
}

.phone_script_ai_body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.phone_script_ai_body textarea.dash_input {
    height: auto;
    padding: 10px 12px;
    resize: vertical;
}

.phone_script_ai_actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.phone_script_ai_actions small {
    color: var(--dash-brand-strong);
    font-size: .82rem;
}

.phone_script_ai.is_busy textarea {
    opacity: .6;
}

.phone_script_ai_toggle {
    align-self: flex-start;
}

.phone_script_form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: opacity .3s ease;
}

.phone_script_form.is_drafted {
    animation: phone_live_in .5s ease both;
}

.phone_script_form textarea.dash_input {
    height: auto;
    padding: 10px 14px;
    line-height: 1.5;
}

.phone_script_row_fields {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 12px;
}

.phone_steps_head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
    margin-top: 4px;
}

.phone_steps_head span {
    font-size: .88rem;
    font-weight: 600;
}

.phone_steps_head small {
    color: var(--dash-muted);
    font-size: .8rem;
}

.phone_steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.phone_step {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding-bottom: 14px;
}

/* the steps hang on one line, like a route */
.phone_step:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 46px;
    bottom: 4px;
    inset-inline-start: 15px;
    width: 2px;
    border-radius: 2px;
    background: var(--dash-border);
}

.phone_step_number {
    position: relative;
    z-index: 1;
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-top: 10px;
    border-radius: 50%;
    background: rgba(var(--dash-brand-rgb), .14);
    color: var(--dash-brand-strong);
    font-size: .82rem;
    font-weight: 700;
}

.phone_step_body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    padding: 12px;
    border-radius: var(--dash-radius-sm);
    background: var(--dash-hover);
}

.phone_step_body textarea.dash_input {
    width: 100%;
    min-height: 44px;
    overflow: hidden;
    resize: none;
    background: var(--dash-panel);
}

.phone_step_types {
    display: inline-flex;
    align-self: flex-start;
    flex-wrap: wrap;
    gap: 2px;
    padding: 3px;
    border-radius: 999px;
    background: var(--dash-panel);
}

.phone_step_types label.phone_step_type {
    position: relative;
    padding: 4px 12px;
    border-radius: 999px;
    background: transparent;
    color: var(--dash-muted);
    font-size: .82rem;
    cursor: pointer;
}

.phone_step_types input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.phone_step_types label span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.phone_step_types label svg {
    width: 12px;
    height: 12px;
}

.phone_step_types label:has(input:checked).is_say {
    background: rgba(var(--dash-brand-rgb), .14);
    color: var(--dash-brand-strong);
}

.phone_step_types label:has(input:checked).is_ask {
    background: rgba(76, 110, 245, .14);
    color: #6d8bff;
}

.phone_step_types label:has(input:checked).is_confirm {
    background: rgba(47, 179, 109, .14);
    color: #2fb36d;
}

.phone_step_types label:has(input:focus-visible) {
    outline: 2px solid var(--dash-brand);
    outline-offset: 1px;
}

.phone_step_tools {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 6px;
    opacity: .45;
    transition: opacity .2s ease;
}

.phone_step:hover .phone_step_tools,
.phone_step:focus-within .phone_step_tools {
    opacity: 1;
}

.phone_step_tools .dash_icon_btn {
    width: 30px;
    height: 30px;
}

.phone_step_tools .dash_icon_btn:disabled {
    opacity: .3;
}

.phone_step_add {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 6px;
    margin-inline-start: 46px;
    padding: 8px 16px;
    border: 1px dashed var(--dash-border-strong);
    border-radius: 999px;
    background: transparent;
    color: var(--dash-text-soft);
    font: inherit;
    font-size: .86rem;
    cursor: pointer;
}

.phone_step_add:hover {
    border-color: var(--dash-brand);
    color: var(--dash-brand-strong);
}

.phone_step_add[hidden] {
    display: none;
}

.phone_step_add svg {
    width: 15px;
    height: 15px;
}

.phone_script_foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--dash-border);
}

.phone_script_foot .is_danger_text {
    margin-inline-end: auto;
}

/* ---------- the simulator ---------- */
.phone_sim {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.phone_sim_setup {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
}

.phone_sim_setup textarea.dash_input {
    height: auto;
    padding: 10px 14px;
    line-height: 1.5;
}

.phone_sim_setup .phone_call_btn {
    width: 100%;
}

.phone_sim_note {
    color: var(--dash-muted);
    font-size: .78rem;
    text-align: center;
}

.phone_sim_way {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.phone_sim_way legend {
    float: none;
    width: auto;
    margin-bottom: 8px;
    padding: 0;
    font-size: .95rem;
    font-weight: 500;
}

/* who calls: two cards side by side, the chosen one in gold with a check */
.phone_sim_ways {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.phone_sim_ways label {
    position: relative;
    cursor: pointer;
}

.phone_sim_ways input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.phone_sim_ways span {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    height: 100%;
    padding: 12px;
    border: 1px solid var(--dash-border-strong);
    border-radius: var(--dash-radius-sm);
    transition: border-color .2s ease, background-color .2s ease;
}

.phone_sim_ways span:hover {
    background: var(--dash-hover);
}

.phone_sim_ways i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-bottom: 6px;
    border-radius: 10px;
    background: var(--dash-panel-soft);
    color: var(--dash-muted);
    transition: background-color .2s ease, color .2s ease;
}

.phone_sim_ways i svg {
    width: 17px;
    height: 17px;
}

.phone_sim_ways b {
    font-size: .88rem;
    font-weight: 600;
    line-height: 1.3;
}

.phone_sim_ways small {
    color: var(--dash-muted);
    font-size: .76rem;
    line-height: 1.35;
}

.phone_sim_ways span::after {
    content: "";
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    width: 16px;
    height: 16px;
    border: 2px solid var(--dash-border-strong);
    border-radius: 50%;
    transition: border-color .2s ease, border-width .2s ease;
}

.phone_sim_ways input:checked+span i {
    background: var(--dash-brand);
    color: var(--dash-on-brand);
}

.phone_sim_ways input:checked+span::after {
    border-width: 5px;
    border-color: var(--dash-brand);
}

.phone_sim_ways input:focus-visible+span {
    outline: 2px solid var(--dash-brand);
    outline-offset: 1px;
}

.phone_sim_new_script {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 4px;
    margin-top: 2px;
    color: var(--dash-brand-strong);
    font-size: .82rem;
    text-decoration: none;
}

.phone_sim_new_script svg {
    width: 14px;
    height: 14px;
}

.phone_sim_stage {
    display: flex;
    flex-direction: column;
    min-height: 520px;
    padding: 22px;
}

.phone_sim_stage [hidden] {
    display: none !important;
}

.phone_sim_intro {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
}

.phone_sim_intro strong {
    font-size: 1.1rem;
}

.phone_sim_tips {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 420px;
    margin: 0;
    padding: 0;
    counter-reset: tip;
    list-style: none;
    text-align: start;
}

.phone_sim_tips li {
    display: flex;
    gap: 10px;
    color: var(--dash-text-soft);
    font-size: .9rem;
    counter-increment: tip;
}

.phone_sim_tips li::before {
    content: counter(tip);
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(var(--dash-brand-rgb), .14);
    color: var(--dash-brand-strong);
    font-size: .74rem;
    font-weight: 700;
}

.phone_sim_device {
    --level: 0;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 132px;
    height: 132px;
}

.phone_sim_ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    transform: scale(calc(.8 + var(--level) * .45));
    transition: transform .08s linear;
    background: rgba(var(--dash-brand-rgb), 0.12);
}

.phone_sim_intro .phone_sim_ring {
    animation: phone_sim_breathe 3s ease-in-out infinite;
}

.phone_sim_face {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: var(--dash-brand);
    box-shadow: 0 14px 34px -12px rgba(var(--dash-brand-rgb), .9);
    color: var(--dash-on-brand);
}

.phone_sim_face svg {
    width: 34px;
    height: 34px;
}

.phone_sim_live {
    display: grid;
    flex: 1;
    grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
    gap: 22px;
}

.phone_sim_call {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding-top: 18px;
    text-align: center;
}

.phone_sim_call strong {
    margin-top: 6px;
    font-size: 1.1rem;
}

.phone_sim_call small {
    color: var(--dash-muted);
    font-variant-numeric: tabular-nums;
}

.phone_sim_controls {
    display: flex;
    gap: 14px;
    margin-top: 18px;
}

.phone_sim_controls .phone_hangup {
    width: 54px;
    height: 54px;
}

.phone_sim_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border: 1px solid var(--dash-border-strong);
    border-radius: 50%;
    background: var(--dash-panel);
    color: var(--dash-text);
    cursor: pointer;
}

.phone_sim_btn.is_muted {
    background: var(--dash-text);
    color: var(--dash-panel);
}

.phone_sim_btn svg {
    width: 20px;
    height: 20px;
}

.phone_sim_side {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.phone_sim_panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.phone_sim_transcript_box {
    flex: 1;
}

.phone_sim_transcript_box .phone_live_transcript {
    max-height: 360px;
}

.phone_sim_steps,
.phone_sim_checks {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.phone_sim_steps li,
.phone_sim_checks li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--dash-radius-sm);
    background: var(--dash-panel-soft);
    font-size: .86rem;
    transition: background-color .3s ease;
}

.phone_sim_steps li.is_done,
.phone_sim_checks li.is_done {
    background: rgba(47, 179, 109, .1);
}

.phone_sim_checks li.is_missed {
    background: rgba(229, 72, 77, .08);
}

.phone_sim_checks li>span:last-child {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.phone_sim_checks small {
    color: var(--dash-muted);
    font-size: .78rem;
}

.phone_sim_check {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    border: 2px solid var(--dash-border-strong);
    border-radius: 50%;
    transition: background-color .3s ease, border-color .3s ease;
}

.is_done>.phone_sim_check {
    border-color: #2fb36d;
    background: #2fb36d;
}

.is_done>.phone_sim_check::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 5px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.is_missed>.phone_sim_check {
    border-color: var(--dash-danger);
}

.phone_sim_report {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 18px;
}

.phone_sim_reviewing {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--dash-brand-strong);
}

.phone_sim_reviewing .phone_mission_wave {
    height: 26px;
}

.phone_sim_reviewing .phone_mission_wave i {
    width: 4px;
}

[data-phone-sim-result] {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.phone_sim_score {
    display: flex;
    align-items: center;
    gap: 18px;
}

.phone_sim_score p {
    margin: 4px 0 2px;
    font-size: 1.02rem;
    line-height: 1.5;
}

.phone_sim_score small {
    color: var(--dash-muted);
    font-size: .8rem;
}

@property --score {
    syntax: "<number>";
    inherits: false;
    initial-value: 0;
}

.phone_sim_dial {
    --score: 0;
    --tone: var(--dash-brand);
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    align-items: baseline;
    justify-content: center;
    width: 96px;
    height: 96px;
    padding-top: 30px;
    border-radius: 50%;
    background: conic-gradient(var(--tone) calc(var(--score) * 1%), var(--dash-panel-soft) 0);
    transition: --score 1s ease-out;
}

.phone_sim_dial::before {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: var(--dash-panel);
}

.phone_sim_dial b,
.phone_sim_dial small {
    position: relative;
}

.phone_sim_dial b {
    font-size: 1.4rem;
    font-variant-numeric: tabular-nums;
}

.phone_sim_dial.is_good {
    --tone: #2fb36d;
}

.phone_sim_dial.is_low {
    --tone: var(--dash-danger);
}

.phone_sim_lists {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.phone_sim_lists ul {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 8px 0 0;
    padding-inline-start: 18px;
    color: var(--dash-text-soft);
    font-size: .88rem;
    line-height: 1.5;
}

.phone_sim_tip {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 14px;
    border-radius: var(--dash-radius-sm);
    background: rgba(var(--dash-brand-rgb), .08);
}

.phone_sim_tip>span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--dash-brand-strong);
    font-size: .82rem;
    font-weight: 600;
}

.phone_sim_tip>span svg {
    width: 15px;
    height: 15px;
}

.phone_sim_tip p {
    margin: 0;
    line-height: 1.55;
}

.phone_sim_again {
    display: flex;
    justify-content: center;
    margin-top: auto;
    padding-top: 6px;
}

@keyframes phone_sim_breathe {

    0%,
    100% {
        transform: scale(.85);
    }

    50% {
        transform: scale(1.1);
    }
}

@media (max-width: 1199px) {

    .phone_hub,
    .phone_sim {
        grid-template-columns: minmax(0, 1fr);
    }

    .phone_station {
        position: static;
    }

    .phone_station .phone_globe {
        height: 260px;
    }

    .phone_station.is_calling {
        height: auto;
    }

    .phone_station_talk .phone_live_transcript {
        max-height: 420px;
    }
}

@media (max-width: 767.98px) {

    .phone_live .phone_live_idle,
    .phone_live .phone_live_call {
        grid-template-columns: minmax(0, 1fr);
    }

    .phone_live .phone_live_idle .phone_live_quiet {
        grid-row: auto;
        min-height: 0;
    }

    .phone_live .phone_live_call .phone_live_transcript {
        grid-column: 1;
        grid-row: auto;
        min-height: 200px;
    }
}

@media (max-width: 991px) {
    .phone_scripts {
        grid-template-columns: minmax(0, 1fr);
    }

    .phone_sim_live {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 575.98px) {
    .phone_line {
        flex-wrap: wrap;
    }

    .phone_line .dash_btn span {
        display: none;
    }

    .phone_script_row_fields,
    .phone_sim_lists,
    .phone_sim_ways {
        grid-template-columns: minmax(0, 1fr);
    }

    .phone_step_tools {
        flex-direction: column;
        margin-top: 4px;
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {

    .phone_live_wave i,
    .phone_live_badge i,
    .phone_live_avatar::after,
    .phone_live_avatar svg,
    .phone_sim_ring,
    .phone_live_line {
        animation: none !important;
    }
}

/* translating an email: the language is asked each time, the last one first */
.inbox_lang_menu {
    position: absolute;
    z-index: 1080;
    display: flex;
    flex-direction: column;
    min-width: 170px;
    padding: 6px;
    border: 1px solid var(--dash-border-strong);
    border-radius: var(--dash-radius-sm);
    background: var(--dash-panel);
    box-shadow: var(--dash-shadow-lg);
    animation: phone_live_in .15s ease both;
}

.inbox_lang_menu>span {
    padding: 4px 10px 6px;
    color: var(--dash-muted);
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .04em;
}

.inbox_lang_menu button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    background: none;
    color: var(--dash-text);
    font: inherit;
    font-size: .9rem;
    text-align: start;
    cursor: pointer;
}

.inbox_lang_menu button:hover,
.inbox_lang_menu button:focus-visible {
    background: var(--dash-hover);
    outline: none;
}

.inbox_lang_menu button.is_last::after {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--dash-brand);
}

/* the composer's tools for the last received email, after the AI button */
.inbox_thread_tools {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-inline-start: 4px;
    padding-inline-start: 8px;
    border-inline-start: 1px solid var(--dash-border);
}

.inbox_thread_tools[hidden],
.inbox_thread_tools [hidden] {
    display: none;
}

.dash_aside_child .dash_count:empty {
    display: none;
}

/* tasks: say it instead of typing it */
.task_voice_btn {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-inline-end: -6px;
    border: 0;
    border-radius: 50%;
    background: var(--dash-brand);
    color: var(--dash-on-brand);
    cursor: pointer;
    transition: transform .15s ease, background-color .2s ease;
}

.task_voice_btn:hover {
    transform: scale(1.06);
}

.task_voice_btn svg {
    width: 18px;
    height: 18px;
}

.task_quick_field.is_recording {
    border-color: var(--dash-danger);
    box-shadow: 0 0 0 4px rgba(229, 72, 77, .14);
}

.task_quick_field.is_recording .task_voice_btn {
    background: var(--dash-danger);
    color: #fff;
}

.task_quick_field.is_recording .task_voice_btn::after {
    content: "";
    position: absolute;
    inset: -4px;
    border: 2px solid var(--dash-danger);
    border-radius: 50%;
    animation: phone_mission_ring 1.2s ease-out infinite;
}

.task_quick_field.is_recording input::placeholder {
    color: var(--dash-danger);
}

.task_quick_field.is_busy .task_voice_btn {
    opacity: .5;
    pointer-events: none;
}

.task_quick_field.is_busy input::placeholder {
    color: var(--dash-brand-strong);
}

.task_quick_field.is_recording .task_quick_kbd,
.task_quick_field.is_busy .task_quick_kbd {
    display: none;
}

.task_voice_timer {
    color: var(--dash-danger);
    font-size: .86rem;
    font-variant-numeric: tabular-nums;
}

.task_voice_timer[hidden] {
    display: none;
}

/* ---------- an SMS by hand: the composer and what was sent ---------- */
.phone_sms_layout {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.phone_sms_from {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.phone_sms_from label {
    cursor: pointer;
}

.phone_sms_from input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.phone_sms_from span {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 14px;
    border: 1px solid var(--dash-border-strong);
    border-radius: var(--dash-radius-sm);
    background: var(--dash-panel);
    transition: border-color .15s, background-color .15s;
}

.phone_sms_from small {
    color: var(--dash-muted);
    font-size: .78rem;
}

.phone_sms_from input:focus-visible+span {
    outline: 2px solid var(--dash-brand);
    outline-offset: 2px;
}

.phone_sms_meter {
    display: block;
    min-height: 1.2em;
    margin-top: 6px;
    color: var(--dash-muted);
}

.phone_sms_history {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.phone_sms_item {
    padding: 12px 14px;
    border-radius: var(--dash-radius-sm);
    background: var(--dash-panel-soft);
}

.phone_sms_item_head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.phone_sms_item p {
    margin: 6px 0 4px;
}

.phone_sms_item small {
    color: var(--dash-muted);
}

@media (max-width: 991.98px) {
    .phone_sms_layout {
        grid-template-columns: 1fr;
    }
}

/* ---------- the rail's dock: search, notifications, phone, SMS ---------- */
.dash_rail_dock {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.dash_rail .dash_dock_item {
    justify-content: center;
    width: 42px;
    padding: 0;
}

.dash_dock_item .dash_rail_badge {
    top: 6px;
    inset-inline-end: 6px;
}

@media (min-width: 992px) {

    /* open (hover or pinned): one framed strip, the four side by side, the name above on hover */
    .dash_rail:not(.is_resting):hover .dash_rail_dock,
    .rail_pinned .dash_rail_dock {
        flex-direction: row;
        justify-content: space-between;
        padding: 2px;
        border: 1px solid var(--dash-border);
        border-radius: 16px;
        background: var(--dash-panel-soft);
        transition-delay: .2s;
    }

    .dash_rail:not(.is_resting):hover .dash_rail_dock .dash_dock_item,
    .rail_pinned .dash_rail_dock .dash_dock_item {
        flex: 1;
        width: auto;
        height: 40px;
    }

    .dash_rail:not(.is_resting):hover .dash_dock_item::after,
    .rail_pinned .dash_dock_item::after {
        display: block;
        top: auto;
        bottom: calc(100% + 10px);
        inset-inline-start: 50%;
        transform: translate(-50%, 4px);
    }

    html[dir="rtl"] .dash_rail:not(.is_resting):hover .dash_dock_item::after,
    html[dir="rtl"] .rail_pinned .dash_dock_item::after {
        transform: translate(50%, 4px);
    }

    .dash_rail:not(.is_resting):hover .dash_dock_item:hover::after,
    .rail_pinned .dash_dock_item:hover::after {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    html[dir="rtl"] .dash_rail:not(.is_resting):hover .dash_dock_item:hover::after,
    html[dir="rtl"] .rail_pinned .dash_dock_item:hover::after {
        transform: translate(50%, 0);
    }

    .dash_rail:not(.is_resting):hover .dash_dock_item .dash_rail_badge,
    .rail_pinned .dash_dock_item .dash_rail_badge {
        top: 5px;
        inset-inline-end: 5px;
        transform: none;
    }
}

/* the SMS composer's foot: the note on one side, the button on the other */
.phone_sms_foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 4px;
    padding-top: 16px;
    border-top: 1px solid var(--dash-border);
}

.phone_sms_hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--dash-muted);
    font-size: .84rem;
    line-height: 1.4;
}

.phone_sms_hint .icon,
.phone_sms_hint svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.phone_sms_history_head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.95rem;
}

.sms_history_list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

a.dash_segment {
    text-decoration: none;
}

@media (max-width: 575.98px) {
    .phone_sms_foot {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ---------- phones: "More", every section and the shortcuts in a sheet from the bottom ---------- */
.dash_more_sheet.offcanvas-bottom {
    height: auto;
    max-height: 86svh;
    border: 0;
    border-radius: 26px 26px 0 0;
    background: var(--dash-panel);
    color: var(--dash-text);
    box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, .45);
}

.dash_more_grab {
    width: 42px;
    height: 5px;
    margin: 10px auto 0;
    border-radius: 999px;
    background: var(--dash-border-strong);
}

.dash_more_head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px 4px;
}

.dash_more_head h2 {
    margin: 0;
    font-size: 1.15rem;
}

.dash_more_body {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 10px 16px calc(20px + env(safe-area-inset-bottom));
    overflow-y: auto;
}

.dash_more_icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--dash-panel-soft);
    color: var(--dash-text-soft);
}

.dash_more_icon .icon,
.dash_more_icon svg {
    width: 22px;
    height: 22px;
}

.dash_more_shortcuts,
.dash_more_sections,
.dash_more_links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dash_more_shortcuts,
.dash_more_sections {
    padding-block-end: 14px;
    border-block-end: 1px solid var(--dash-border);
}

.dash_more_row {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 60px;
    padding: 8px 12px;
    border-radius: 12px;
    color: var(--dash-text-soft);
    font-size: .94rem;
    text-align: start;
    text-decoration: none;
}

.dash_more_row .dash_more_icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 11px;
}

.dash_more_label {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

.dash_more_arrow {
    display: inline-flex;
    flex-shrink: 0;
    color: var(--dash-muted);
}

.dash_more_arrow .icon {
    width: 18px;
    height: 18px;
}

[dir="rtl"] .dash_more_arrow {
    transform: rotate(180deg);
}

.dash_more_row:hover,
.dash_more_row:focus-visible {
    background: var(--dash-hover);
}

.dash_more_row:active {
    opacity: .7;
}

.dash_more_row.active {
    background: rgba(var(--dash-brand-rgb), .1);
    color: var(--dash-brand);
}

.dash_more_row.active .dash_more_icon,
.dash_more_row.active .dash_more_arrow {
    color: var(--dash-brand);
}

/* ---------- the weather's place in the daily brief ---------- */
.weather_place {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.weather_place_now {
    display: flex;
    align-items: center;
    gap: 12px;
}

.weather_place_text {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.weather_place_text small {
    color: var(--dash-muted);
}

.weather_place_results {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--dash-border);
    border-radius: var(--dash-radius-sm);
}

.weather_place_option {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 10px 14px;
    border: 0;
    border-bottom: 1px solid var(--dash-border);
    background: transparent;
    color: var(--dash-text);
    text-align: start;
    cursor: pointer;
}

.weather_place_option:last-child {
    border-bottom: 0;
}

.weather_place_option:hover,
.weather_place_option:focus-visible {
    background: var(--dash-hover);
}

.weather_place_option small,
.weather_place_empty {
    color: var(--dash-muted);
}

.weather_place_empty {
    margin: 0;
    padding: 12px 14px;
}

/* ---------- Settings → Notifications ---------- */
.notify_channels_head {
    display: grid;
    grid-template-columns: 1fr 76px 76px;
    gap: 8px;
    padding: 4px 16px 10px;
    color: var(--dash-muted);
    font-size: .78rem;
    text-align: center;
}

.notify_channel_row {
    display: grid;
    grid-template-columns: auto 1fr 76px 76px;
    align-items: center;
}

.notify_channel_switch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.notify_channel_label {
    display: none;
    color: var(--dash-muted);
    font-size: .78rem;
}

.notify_hint {
    margin-top: 12px;
}

/* "What you get" saves by itself: a quiet line that says so, then "Saving…" and "Saved" */
.notify_autosave {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0 0;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--dash-panel-soft);
    color: var(--dash-muted);
    font-size: .84rem;
    font-weight: 500;
    transition: color .2s ease, background-color .2s ease;
}

.notify_autosave::before {
    content: "";
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    opacity: .6;
}

.notify_autosave.is_saving,
.notify_autosave.is_saved,
.notify_autosave.is_error {
    position: fixed;
    bottom: 28px;
    left: 50%;
    z-index: 1500;
    margin: 0;
    padding: 12px 20px;
    border: 1px solid var(--dash-border);
    background: var(--dash-panel);
    box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.45);
    color: var(--dash-text);
    font-size: .92rem;
    transform: translateX(-50%);
    animation: autosave_in .3s var(--dash-ease, ease) both;
}

@keyframes autosave_in {
    from {
        opacity: 0;
        transform: translate(-50%, 12px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.notify_autosave.is_saving::before {
    width: 14px;
    height: 14px;
    border: 2px solid var(--dash-border-strong);
    border-top-color: var(--dash-brand);
    background: none;
    opacity: 1;
    animation: autosave_spin .7s linear infinite;
}

@keyframes autosave_spin {
    to {
        transform: rotate(360deg);
    }
}

.notify_autosave.is_saved::before,
.notify_autosave.is_error::before {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    opacity: 1;
}

.notify_autosave.is_saved::before {
    content: "✓";
    background: var(--dash-success, #2fb463);
}

.notify_autosave.is_error::before {
    content: "!";
    background: var(--dash-danger, #e5484d);
}

/* "What you get": each kind of news across the channels (the column titles above, a switch, a dash or a lock in each cell) */
.notify_matrix_head {
    display: flex;
    align-items: flex-end;
    padding: 6px 0 10px;
    border-bottom: 1px solid var(--dash-border);
}

.notify_matrix_head>span:first-child {
    flex: 1;
}

.notify_matrix_head>span:not(:first-child) {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 64px;
    color: var(--dash-muted);
    font-size: .74rem;
    text-align: center;
}

.notify_matrix_head svg {
    width: 18px;
    height: 18px;
}

.notify_matrix_head>span.is_locked {
    opacity: .5;
}

.notify_matrix_row {
    cursor: default;
}

.notify_matrix_cells {
    display: grid;
    grid-template-columns: repeat(5, 64px);
    flex-shrink: 0;
}

.notify_cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 36px;
    cursor: pointer;
    transition: opacity .2s ease;
}

.notify_cell.is_none {
    color: var(--dash-muted);
    opacity: .5;
    cursor: default;
}

.notify_cell.is_none i {
    font-style: normal;
}

.notify_cell.is_locked {
    color: var(--dash-muted);
    cursor: help;
}

.notify_cell.is_locked svg {
    width: 16px;
    height: 16px;
}

.notify_cell.is_muted {
    opacity: .35;
}

.notify_cell .notify_check {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    transition: background-color .2s ease, border-color .2s ease;
}

.notify_cell:hover .notify_check:not(:checked) {
    border-color: var(--dash-brand);
}

.notify_cell_label {
    display: none;
    color: var(--dash-muted);
    font-size: .7rem;
}

.notify_locked_chip {
    position: relative;
}

.notify_locked_chip i {
    position: absolute;
    inset-inline-end: -4px;
    bottom: -4px;
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border: 2px solid var(--dash-panel);
    border-radius: 50%;
    background: var(--dash-muted);
    color: var(--dash-panel);
}

.notify_locked_chip i svg {
    width: 10px;
    height: 10px;
}

.notify_locked {
    margin-top: 16px;
}

.notify_locked .dash_toggle_text small {
    color: var(--dash-muted);
}

.weather_place_head {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.weather_place_head small {
    color: var(--dash-muted);
}

@media (max-width: 575.98px) {

    /* phones: the column titles go, each switch says what it is */
    .notify_channels_head {
        display: none;
    }

    .notify_channel_row {
        grid-template-columns: auto 1fr auto auto;
    }

    .notify_channel_label {
        display: block;
    }
}

@media (max-width: 991.98px) {

    /* narrower screens: the kind on its own line, its five cells under it, each saying which channel it is */
    .notify_matrix_head {
        display: none;
    }

    .notify_matrix_row {
        flex-wrap: wrap;
    }

    .notify_matrix_cells {
        width: 100%;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        row-gap: 6px;
        padding-top: 4px;
    }

    .notify_cell_label {
        display: block;
    }
}

/* buying credits: packages as cards, the price that follows the amount, a code checked while typing */
.topup_grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    margin-bottom: 18px;
}

.topup_card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.topup_card .dash_section_head {
    margin-bottom: 0;
}

.topup_packages {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
    gap: 10px;
}

.topup_package {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px 12px 12px;
    border-radius: 14px;
    border: 1px solid var(--dash-border-strong);
    background: var(--dash-panel);
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease;
}

.topup_package input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.topup_package strong {
    font-size: 1.1rem;
    color: var(--dash-text);
}

.topup_package span {
    color: var(--dash-text-soft);
    font-weight: 600;
}

.topup_package small {
    color: var(--dash-muted);
    font-size: .76rem;
}

.topup_package s {
    margin-inline-start: 4px;
    color: var(--dash-muted);
    font-weight: 400;
    font-size: .8rem;
}

.topup_discount {
    align-self: flex-start;
    margin-top: 4px;
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(47, 158, 104, 0.14);
    color: var(--dash-success, #2f9e68);
    font-size: .78rem;
}

.topup_package em {
    position: absolute;
    top: -9px;
    inset-inline-end: 10px;
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--dash-brand);
    color: var(--dash-on-brand);
    font-size: .68rem;
    font-style: normal;
    font-weight: 600;
}

.topup_package:has(input:focus-visible) {
    box-shadow: 0 0 0 3px rgba(var(--dash-brand-rgb), 0.25);
}

.topup_total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--dash-panel-soft);
    border: 1px solid var(--dash-border);
}

.topup_total strong {
    font-size: 1.4rem;
    color: var(--dash-text);
}

.topup_hint {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin: 0;
    color: var(--dash-muted);
    font-size: .85rem;
}

.topup_hint .icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 2px;
}

/* a trial or the free plan: upgrade first */
.topup_locked {
    align-items: flex-start;
}

.topup_locked h2 {
    margin: 0;
    font-size: 1.2rem;
}

.topup_locked p {
    margin: 0;
    color: var(--dash-text-soft);
}

.topup_locked_icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: var(--dash-chip-bg);
    color: var(--dash-brand-strong);
}

.topup_locked_icon .icon {
    width: 22px;
    height: 22px;
}

.topup_code_input {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    letter-spacing: .08em;
}

.topup_code_state {
    min-height: 1.2em;
    margin: 0;
    font-size: .88rem;
    color: var(--dash-muted);
}

.topup_code_state.is_ok {
    color: var(--dash-success, #2f9e68);
}

.topup_code_state.is_bad {
    color: var(--dash-danger, #d9534f);
}

.topup_orders {
    margin-bottom: 18px;
}

@media (max-width: 900px) {
    .topup_grid {
        grid-template-columns: 1fr;
    }
}

/* your own number: forwarding codes, and the number shown when the assistant calls */
.caller_grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.caller_card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.caller_head {
    display: flex;
    align-items: center;
    gap: 18px;
}

.caller_head_art {
    flex-shrink: 0;
    width: 104px;
}

.caller_head_art svg {
    display: block;
    width: 100%;
    height: auto;
}

.caller_head h2 {
    margin: 0 0 4px;
    font-size: 1.1rem;
}

.caller_head p {
    margin: 0;
    color: var(--dash-text-soft);
}

.caller_step {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: var(--dash-brand);
    color: var(--dash-on-brand);
    font-weight: 700;
}

.caller_hint {
    margin: 0;
    color: var(--dash-text-soft);
}

.caller_codes {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.caller_codes li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--dash-border);
    background: var(--dash-panel-soft);
}

.caller_codes li.is_warn {
    border-color: rgba(var(--dash-brand-rgb), 0.35);
}

.caller_codes strong,
.caller_codes small {
    display: block;
}

.caller_codes small {
    margin-top: 2px;
    color: var(--dash-muted);
    font-size: .8rem;
}

.caller_codes code {
    padding: 4px 10px;
    border-radius: 8px;
    background: var(--dash-panel);
    color: var(--dash-text);
    font-size: .92rem;
    letter-spacing: .02em;
}

.caller_code_actions {
    display: flex;
    gap: 6px;
}

.caller_note {
    display: flex;
    gap: 8px;
    margin: 0;
    color: var(--dash-muted);
    font-size: .85rem;
}

.caller_note.is_warn {
    color: var(--dash-brand-strong);
}

.caller_note .icon,
.caller_seen .icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 2px;
}

.caller_seen {
    display: flex;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--dash-panel-soft);
    color: var(--dash-text-soft);
    font-size: .9rem;
}

.caller_seen.is_ok {
    background: rgba(47, 158, 104, 0.12);
    color: var(--dash-success, #2f9e68);
}

.caller_number {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--dash-border);
}

.caller_number>div {
    flex: 1;
    min-width: 0;
}

.caller_number strong,
.caller_number small {
    display: block;
}

.caller_number small {
    color: var(--dash-muted);
}

.caller_number_icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(47, 158, 104, 0.14);
    color: var(--dash-success, #2f9e68);
}

.caller_number_icon .icon {
    width: 16px;
    height: 16px;
}

.caller_verify {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.caller_verify .dash_field {
    flex: 1;
    margin: 0;
}

.caller_code_box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 20px;
    border-radius: 16px;
    border: 1px dashed rgba(var(--dash-brand-rgb), 0.5);
    background: var(--dash-chip-bg);
    text-align: center;
}

.caller_code_box small {
    color: var(--dash-text-soft);
}

.caller_code_box p {
    margin: 0;
    color: var(--dash-muted);
    font-size: .88rem;
}

.caller_big_code {
    font-size: 2rem;
    letter-spacing: .25em;
    color: var(--dash-text);
}

.caller_error {
    margin: 0;
    color: var(--dash-danger, #d9534f);
}

.phone_caller_choice {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.phone_caller_option {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid var(--dash-border-strong);
    cursor: pointer;
}

.phone_caller_option strong,
.phone_caller_option small {
    display: block;
}

.phone_caller_option small {
    color: var(--dash-muted);
    font-size: .78rem;
}

@media (max-width: 1100px) {
    .caller_grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .caller_codes li {
        grid-template-columns: 1fr;
    }

    .caller_verify {
        flex-direction: column;
        align-items: stretch;
    }
}

/* which number a call went through: your own (gold) or the RahaVidia number */
.phone_via {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
    color: var(--dash-muted);
    font-size: .76rem;
}

.phone_via .icon {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.phone_via.is_personal,
.phone_via.is_forwarded {
    color: var(--dash-brand-strong);
}

.phone_via_badge {
    max-width: 280px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 575.98px) {

    /* a call on a phone: the name and its line take the width, the number it went through moves under them */
    .phone_detail_head {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: start;
        column-gap: 12px;
        row-gap: 10px;
    }

    .phone_detail_head>.dash_icon_btn {
        grid-column: 3;
        grid-row: 1;
    }

    .phone_detail_head>.phone_via_badge {
        grid-column: 2 / -1;
        grid-row: 2;
        justify-self: start;
        max-width: 100%;
    }
}

/* the calls page: how far back the history goes (links, one row) */
.phone_period {
    width: fit-content;
    max-width: 100%;
}

.phone_period a.dash_tab {
    text-decoration: none;
}

/* Arabic (Cairo) reads larger than Inter at the same size: page and section headings, and the line under them, a step smaller */
html[dir="rtl"] .dash_page_head h1 {
    font-size: 1.2rem;
    letter-spacing: 0;
}

html[dir="rtl"] .dash_page_head p,
html[dir="rtl"] .dash_section_head p {
    font-size: .88rem;
    line-height: 1.7;
}

html[dir="rtl"] .dash_section_head h2,
html[dir="rtl"] .caller_head h2 {
    font-size: 1rem;
}

/* your number page: one card, the verified numbers as a list, forwarding in its own modal */
.caller_page {
    max-width: 760px;
}

.caller_head p,
.caller_modal_sub {
    margin: 0;
    color: var(--dash-text-soft);
    font-size: .88rem;
}

.caller_list {
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid var(--dash-border);
    border-radius: 16px;
    overflow: hidden;
}

.caller_list li {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
}

.caller_list li+li {
    border-top: 1px solid var(--dash-border);
}

.caller_list li.is_default {
    background: rgba(var(--dash-brand-rgb), 0.06);
}

.caller_list li form {
    margin: 0;
}

.caller_list_text {
    flex: 1;
    min-width: 0;
}

.caller_list_text strong {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 1rem;
}

.caller_list_text small {
    display: block;
    margin-top: 2px;
    color: var(--dash-muted);
    font-size: .8rem;
}

.caller_list li:not(.is_default) .caller_number_icon {
    background: var(--dash-panel-soft);
    color: var(--dash-text-soft);
}

.caller_modal_sub {
    margin-top: 4px;
}

#caller_forward_modal .dash_modal_body {
    gap: 14px;
}

@media (max-width: 640px) {
    .caller_list li {
        flex-wrap: wrap;
    }

    .caller_list_text {
        flex-basis: calc(100% - 44px);
    }

    .caller_codes li {
        grid-template-columns: minmax(0, 1fr);
    }
}

.dash_icon_btn.is_danger_text,
.dash_icon_btn.is_danger_text .icon {
    color: var(--dash-danger, #e5484d);
}

html[dir="rtl"] .dash_modal_head h2 {
    font-size: 1.25rem;
}

/*
 * Numbers, amounts, emails and codes marked dir="ltr" read left to right (the + stays in front) but, on an Arabic page,
 * line up on the right like the text around them: an element's own direction would otherwise send it to the left.
 * Fields and code keep their own alignment.
 */
html[dir="rtl"] [dir="ltr"]:not(input):not(textarea):not(select):not(pre):not(code):not(:has(input, textarea, select)) {
    text-align: right;
}

html[dir="rtl"] [dir="ltr"]:not(input):not(textarea):not(select):not(pre):not(code):is(strong, small, span, a, b, em, time, bdi) {
    unicode-bidi: isolate;
}

/* "from your number +49 …" in the calls list: the whole number on its own line rather than cut in the middle */
.phone_call_text small.phone_via {
    white-space: normal;
    overflow: visible;
}

/* ============ automations: the list (a table), the activity log, the templates window ============ */
.wf_toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.wf_search {
    position: relative;
    display: block;
    flex: 1;
    max-width: 420px;
    margin: 0;
}

.wf_search .icon {
    position: absolute;
    top: 50%;
    inset-inline-start: 12px;
    width: 17px;
    height: 17px;
    transform: translateY(-50%);
    color: var(--dash-muted);
    pointer-events: none;
}

.wf_search .dash_input {
    padding-inline-start: 38px;
}

.wf_table {
    padding: 0;
    overflow: visible;
}

.wf_table_head,
.wf_table_row {
    display: grid;
    grid-template-columns: minmax(0, 2.4fr) minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, .8fr) 92px;
    gap: 14px;
    align-items: center;
    padding: 12px 18px;
}

.wf_table_head {
    border-bottom: 1px solid var(--dash-border);
    background: var(--dash-panel-soft);
    border-radius: 16px 16px 0 0;
    color: var(--dash-muted);
    font-size: .8rem;
    font-weight: 600;
}

.wf_table_row+.wf_table_row {
    border-top: 1px solid var(--dash-border);
}

.wf_table_row:hover {
    background: var(--dash-panel-soft);
}

.wf_table_row[hidden] {
    display: none;
}

.wf_table_name {
    display: flex;
    gap: 12px;
    align-items: center;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.wf_table_text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.wf_table_text strong {
    overflow: hidden;
    font-size: .95rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wf_table_text small {
    overflow: hidden;
    color: var(--dash-muted);
    font-size: .8rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wf_table_by {
    display: flex;
    gap: 8px;
    align-items: center;
    min-width: 0;
    font-size: .88rem;
}

.wf_avatar {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--dash-brand-soft, rgba(var(--dash-brand-rgb), .16));
    color: var(--dash-brand-strong);
    font-size: .78rem;
    font-weight: 700;
}

.wf_table_muted {
    color: var(--dash-muted);
    font-size: .85rem;
}

.wf_table_actions {
    display: flex;
    gap: 4px;
    justify-content: flex-end;
}

.wf_table_none {
    margin: 0;
    padding: 24px;
    color: var(--dash-muted);
    text-align: center;
}

.wf_log {
    padding: 0;
}

.wf_log_row {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 18px;
    color: inherit;
    text-decoration: none;
}

.wf_log_row+.wf_log_row {
    border-top: 1px solid var(--dash-border);
}

.wf_log_row:hover {
    background: var(--dash-panel-soft);
}

.wf_log_row .wf_table_text {
    flex: 1;
}

.wf_log_dot {
    flex-shrink: 0;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--dash-muted);
}

.wf_log_row.is_succeeded .wf_log_dot {
    background: var(--dash-success, #2f9e68);
}

.wf_log_row.is_failed .wf_log_dot {
    background: var(--dash-danger, #e5484d);
}

.wf_log_row.is_waiting .wf_log_dot,
.wf_log_row.is_running .wf_log_dot,
.wf_log_row.is_queued .wf_log_dot {
    background: var(--dash-brand);
}

/* the templates window (and the window of blocks in the editor): a side of groups, cards beside it */
.wf_tpl_modal {
    height: min(820px, calc(100vh - 60px));
}

.wf_tpl_head_actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.wf_tpl_head_actions form {
    margin: 0;
}

.wf_tpl_body {
    display: grid;
    flex: 1;
    grid-template-columns: 230px minmax(0, 1fr);
    min-height: 0;
    border-top: 1px solid var(--dash-border);
}

.wf_tpl_nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px 10px;
    overflow-y: auto;
    border-inline-end: 1px solid var(--dash-border);
}

.wf_tpl_nav small {
    margin: 14px 10px 4px;
    color: var(--dash-muted);
    font-size: .82rem;
    font-weight: 500;
}

.wf_tpl_nav button {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 8px 10px;
    border: 0;
    border-radius: 10px;
    background: none;
    color: var(--dash-text-soft);
    font: inherit;
    font-size: .9rem;
    text-align: start;
    cursor: pointer;
}

.wf_tpl_nav button .icon {
    width: 16px;
    height: 16px;
}

.wf_tpl_nav button:hover {
    background: var(--dash-panel);
}

.wf_tpl_nav button.is_active {
    background: var(--dash-panel);
    color: var(--dash-text);
    box-shadow: 0 0 0 1px var(--dash-border);
}

.wf_tpl_main {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px 24px;
    overflow-y: auto;
}

.wf_tpl_main .wf_search {
    flex: 0 0 auto;
    max-width: 100%;
}

.wf_tpl_main .wf_table_none {
    padding: 48px 24px;
}

.wf_tpl_main .wf_describe {
    margin: 0;
}

.wf_tpl_title {
    margin: 8px 0 0;
    font-size: 1.05rem;
}

.wf_tpl_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.wf_tpl_card {
    margin: 0;
}

.wf_tpl_card[hidden] {
    display: none;
}

.wf_tpl_card>form {
    height: 100%;
    margin: 0;
}

.wf_tpl_button {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    height: 100%;
    padding: 12px;
    border: 1px solid var(--dash-border);
    border-radius: 16px;
    background: var(--dash-panel);
    color: var(--dash-text);
    font: inherit;
    text-align: start;
    cursor: pointer;
    transition: border-color .15s ease, transform .15s ease;
}

.wf_tpl_button:hover {
    border-color: rgba(var(--dash-brand-rgb), .6);
    transform: translateY(-1px);
}

.wf_tpl_button strong {
    font-size: .92rem;
}

.wf_tpl_button small {
    color: var(--dash-muted);
    font-size: .8rem;
    line-height: 1.5;
}

/* the picture of a card: a soft tile in its use case's tint, the icon in the middle */
.wf_tpl_art {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 96px;
    margin-bottom: 6px;
    border-radius: 12px;
    background: var(--dash-panel-soft);
}

.wf_tpl_card.is_sales .wf_tpl_art {
    background: rgba(201, 169, 110, .14);
}

.wf_tpl_card.is_support .wf_tpl_art {
    background: rgba(28, 126, 214, .12);
}

.wf_tpl_card.is_finance .wf_tpl_art {
    background: rgba(12, 166, 120, .12);
}

.wf_tpl_card.is_operations .wf_tpl_art {
    background: rgba(124, 92, 255, .12);
}

.wf_tpl_art .wf_node_icon .icon,
.wf_tpl_art .wf_node_icon .brand_logo img {
    width: 2rem;
    height: 2rem;
}

.wf_tpl_art .dash_chip {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--dash-panel);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
}

.wf_tpl_ai {
    position: absolute;
    top: 8px;
    inset-inline-end: 8px;
    display: inline-flex;
    padding: 4px;
    border-radius: 8px;
    background: var(--dash-panel);
    color: var(--dash-brand-strong);
}

.wf_tpl_ai .icon {
    width: 14px;
    height: 14px;
}

/* a block in the window of blocks: its group's colour on its tile */
.wf_pick_card .wf_tpl_art {
    height: 72px;
    background: color-mix(in srgb, var(--wf-color, var(--dash-brand)) 12%, transparent);
}

.wf_pick_card .wf_node_icon {
    color: var(--wf-color, var(--dash-brand));
}

#wf_picker_modal {
    --wf-trigger: #7c5cff;
    --wf-ai: #d9a400;
    --wf-logic: #e8590c;
    --wf-messages: #1c7ed6;
    --wf-work: #2f9e44;
    --wf-money: #0ca678;
    --wf-google: #4285f4;
    --wf-business: #c2255c;
    --wf-advanced: #868e96;
    --wf-apps: #868e96;
}

.wf_pick_card.is_trigger {
    --wf-color: var(--wf-trigger);
}

.wf_pick_card.is_ai {
    --wf-color: var(--wf-ai);
}

.wf_pick_card.is_logic {
    --wf-color: var(--wf-logic);
}

.wf_pick_card.is_messages {
    --wf-color: var(--wf-messages);
}

.wf_pick_card.is_work {
    --wf-color: var(--wf-work);
}

.wf_pick_card.is_money {
    --wf-color: var(--wf-money);
}

.wf_pick_card.is_google {
    --wf-color: var(--wf-google);
}

.wf_pick_card.is_business {
    --wf-color: var(--wf-business);
}

.wf_pick_card.is_advanced,
.wf_pick_card.is_apps {
    --wf-color: var(--wf-advanced);
}

/* ============ the editor as a studio: the canvas is the page, the bars and tools float over it ============ */
.wf_studio {
    position: relative;
}

.wf_studio .wf_body {
    position: relative;
}

.wf_float {
    position: absolute;
    z-index: 5;
    display: flex;
    gap: 6px;
    align-items: center;
    padding: 6px;
    border: 1px solid var(--dash-border);
    border-radius: 14px;
    background: var(--dash-panel);
    box-shadow: 0 6px 22px rgba(0, 0, 0, .12);
}

.wf_float_start {
    top: 12px;
    inset-inline-start: 12px;
    max-width: calc(100% - 320px);
}

.wf_float_start .wf_name {
    min-width: 80px;
    max-width: 320px;
}

.wf_float_end {
    top: 12px;
    inset-inline-end: 12px;
}

.wf_float_end .contact_dropdown_menu button {
    width: 100%;
}

.wf_float_notes {
    top: 70px;
    left: 50%;
    flex-direction: column;
    gap: 0;
    max-width: min(640px, calc(100% - 40px));
    padding: 0;
    overflow: hidden;
    transform: translateX(-50%);
}

.wf_float_notes:not(:has(> :not([hidden]))) {
    display: none;
}

.wf_float_notes .wf_sentence {
    border-bottom: 0;
}

.wf_tools {
    bottom: 14px;
    left: 50%;
    gap: 2px;
    transform: translateX(-50%);
}

.wf_tools .dash_icon_btn {
    width: 34px;
    height: 34px;
    border: 0;
    background: none;
}

.wf_tools .dash_icon_btn:disabled {
    opacity: .35;
}

.wf_tools_line {
    width: 1px;
    height: 20px;
    margin: 0 4px;
    background: var(--dash-border);
}

.wf_zoom_level {
    min-width: 46px;
    color: var(--dash-text-soft);
    font-size: .8rem;
    text-align: center;
}

.wf_studio .wf_hint {
    bottom: 70px;
}

.wf_minimap {
    position: absolute;
    bottom: 14px;
    inset-inline-start: 14px;
    z-index: 4;
    width: 200px;
    height: 120px;
    border: 1px solid var(--dash-border);
    border-radius: 12px;
    background: var(--dash-panel);
    box-shadow: 0 6px 22px rgba(0, 0, 0, .1);
    cursor: pointer;
}

.wf_minimap[hidden] {
    display: none;
}

/* an empty canvas: its start, or a template */
.wf_start_card {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(320px, calc(100% - 40px));
    transform: translate(-50%, -50%);
}

.wf_start_card[hidden] {
    display: none;
}

.wf_start_option {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border: 1px solid var(--dash-border);
    border-radius: 14px;
    background: var(--dash-panel);
    color: var(--dash-text);
    font: inherit;
    font-weight: 600;
    box-shadow: 0 6px 22px rgba(0, 0, 0, .08);
    cursor: pointer;
}

.wf_start_option:hover {
    border-color: rgba(var(--dash-brand-rgb), .6);
}

.wf_start_option .icon {
    width: 18px;
    height: 18px;
    color: var(--dash-brand-strong);
}

.wf_start_or {
    display: flex;
    gap: 10px;
    align-items: center;
    color: var(--dash-muted);
    font-size: .76rem;
}

.wf_start_or::before,
.wf_start_or::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--dash-border);
}

/* a free exit: a + to add the next step there */
.wf_port_add {
    /* a short line out of the free exit, then the round + (its name slides out on hover) */
    position: absolute;
    top: 50%;
    left: 100%;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 0 0 22px;
    border: none;
    background: none;
    color: var(--dash-text-soft);
    transform: translateY(-50%);
    cursor: pointer;
}

.wf_port_add::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 2px;
    width: 18px;
    border-top: 2px dashed var(--dash-border-strong);
    transition: border-color .15s ease;
}

.wf_port_add_dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: 1px solid var(--dash-border-strong);
    border-radius: 9px;
    background: var(--dash-panel);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
    transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.wf_port_add_dot .icon {
    width: 14px;
    height: 14px;
}

.wf_port_add_label {
    padding: 4px 9px;
    border-radius: 8px;
    background: var(--dash-panel);
    border: 1px solid var(--dash-border);
    color: var(--dash-text);
    font-size: .75rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-4px);
    pointer-events: none;
    transition: opacity .15s ease, transform .15s ease;
}

.wf_port_add:hover::before,
.wf_port_add:focus-visible::before {
    border-color: var(--dash-brand);
}

.wf_port_add:hover .wf_port_add_dot,
.wf_port_add:focus-visible .wf_port_add_dot {
    border-color: var(--dash-brand);
    background: var(--dash-brand);
    color: var(--dash-on-brand, #1c1c1c);
    box-shadow: 0 0 0 4px rgba(var(--dash-brand-rgb), .18);
    transform: scale(1.06);
}

.wf_port_add:hover .wf_port_add_label,
.wf_port_add:focus-visible .wf_port_add_label {
    opacity: 1;
    transform: none;
}

.wf_port_add:focus-visible {
    outline: none;
}

/* the selected block's tools, above it */
.wf_node_tools {
    position: absolute;
    top: -44px;
    left: 50%;
    display: flex;
    gap: 2px;
    padding: 4px;
    border: 1px solid var(--dash-border);
    border-radius: 10px;
    background: var(--dash-panel);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
    transform: translateX(-50%);
}

.wf_node_tools button {
    width: 30px;
    height: 28px;
    border: 0;
    border-radius: 7px;
    background: none;
    color: var(--dash-text-soft);
    font-size: 14px;
    cursor: pointer;
}

.wf_node_tools button:hover {
    background: var(--dash-panel-soft);
    color: var(--dash-text);
}

.wf_node_tools button.is_danger:hover {
    color: var(--dash-danger, #e5484d);
}

/* the panel: a drawer over the canvas, on the end side */
.wf_studio .wf_panel {
    position: absolute;
    top: 12px;
    bottom: 12px;
    inset-inline-end: 12px;
    z-index: 6;
    width: 380px;
    max-width: calc(100% - 24px);
    border: 1px solid var(--dash-border);
    border-radius: 16px;
    background: var(--dash-panel);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .18);
}

@media (max-width: 860px) {

    .wf_table_head,
    .wf_table_row {
        grid-template-columns: minmax(0, 1fr) auto 76px;
    }

    .wf_table .col_hide_sm {
        display: none;
    }

    .wf_tpl_body {
        grid-template-columns: minmax(0, 1fr);
    }

    .wf_tpl_nav {
        flex-direction: row;
        flex-wrap: wrap;
        border-inline-end: 0;
        border-bottom: 1px solid var(--dash-border);
    }

    .wf_tpl_nav small {
        display: none;
    }

    .wf_float_start {
        max-width: calc(100% - 24px);
    }

    .wf_float_end {
        top: 70px;
    }

    .wf_minimap {
        display: none;
    }
}

/* "describe it": folded like an accordion, opened when wanted */
.wf_describe_fold {
    border: 1px solid var(--dash-border);
    border-radius: 16px;
    background: var(--dash-panel);
}

.wf_describe_fold summary {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    list-style: none;
    cursor: pointer;
}

.wf_describe_fold summary::-webkit-details-marker {
    display: none;
}

.wf_describe_fold_text {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.wf_describe_fold_text small {
    color: var(--dash-muted);
    font-size: .8rem;
}

.wf_describe_fold_chevron .icon {
    width: 18px;
    height: 18px;
    color: var(--dash-muted);
    transition: transform .2s ease;
}

.wf_describe_fold[open] .wf_describe_fold_chevron .icon {
    transform: rotate(180deg);
}

.wf_describe_form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    padding: 0 14px 14px;
}

.wf_describe_form textarea {
    width: 100%;
}

/* a logo in a template's tile or the side of the window: its own colours, no tint */
.wf_tpl_art .brand_logo,
.wf_tpl_nav .brand_logo {
    flex-shrink: 0;
}

.wf_tpl_art .dash_chip .brand_logo img,
.wf_tpl_art .dash_chip .brand_logo svg {
    width: 26px;
    height: 26px;
}

/* "what it does": the steps one under the other, joined by a thin line */
.wf_words {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: wf-step;
}

.wf_words li {
    position: relative;
    padding: 0 0 18px;
    padding-inline-start: 42px;
    color: var(--dash-text);
    font-size: .92rem;
    line-height: 1.6;
    counter-increment: wf-step;
}

.wf_words li::before {
    content: counter(wf-step);
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(var(--dash-brand-rgb), .16);
    color: var(--dash-brand-strong);
    font-size: .78rem;
    font-weight: 700;
}

.wf_words li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 30px;
    bottom: 4px;
    inset-inline-start: 12px;
    width: 1px;
    background: var(--dash-border);
}

.wf_words_btn[hidden] {
    display: none;
}

@media (max-width: 860px) {
    .wf_words_btn span {
        display: none;
    }
}

/* "More" in the rail: the last item; finance and the business under it */
.dash_rail_more_toggle {
    font: inherit;
    color: inherit;
}

.dash_rail_more_arrow {
    display: inline-flex;
    margin-inline-start: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity .15s ease, transform .2s ease;
}

.dash_rail_more_arrow .icon {
    width: 16px;
    height: 16px;
}

.dash_rail_more_toggle[aria-expanded="true"] .dash_rail_more_arrow {
    transform: rotate(180deg);
}

@media (min-width: 992px) {

    .rail_pinned .dash_rail .dash_rail_more_arrow {
        opacity: 1;
        visibility: visible;
    }
}

/* it opens by growing (its rows from 0 to their height), the two items sliding down and fading in */
.dash_rail_more {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .3s var(--dash-ease, ease);
}

.dash_rail_more[data-open="true"] {
    grid-template-rows: 1fr;
}

.dash_rail_more_inner {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 0;
    overflow: hidden;
}

.dash_rail_more .dash_rail_item {
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .2s ease, transform .25s ease, background-color .2s ease, color .2s ease;
}

.dash_rail_more[data-open="true"] .dash_rail_item {
    opacity: 1;
    transform: none;
}

.dash_rail_more[data-open="true"] .dash_rail_item:nth-child(2) {
    transition-delay: .06s;
}

.dash_rail_more[data-open="false"] .dash_rail_item {
    visibility: hidden;
}

/* ---------- the rail's top: the bell in the head (the search is in the account menu) ---------- */
.dash_user_kbd {
    padding: 1px 6px;
    border: 1px solid var(--dash-border);
    border-radius: 6px;
    background: none;
    color: var(--dash-muted);
    font: inherit;
    font-size: .7rem;
}

/* the bell in the head: its count on its corner */
.dash_rail_bell {
    position: relative;
    margin-inline-start: auto;
    text-decoration: none;
}

.dash_rail_bell.is_active {
    color: var(--dash-text);
}

.dash_rail_bell .dash_rail_badge {
    top: -2px;
    inset-inline-end: -2px;
    transform: none;
}

.dash_rail_bell .icon {
    width: 18px;
    height: 18px;
}

.dash_rail_bell_item {
    margin-bottom: 8px;
}

@media (min-width: 992px) {

    /* open: the narrow bell gives way to the one in the head */
    .rail_pinned .dash_rail .dash_rail_bell_item {
        display: none;
    }
}

/* below the desktop the rail stays narrow: no bell in the head */
@media (max-width: 991.98px) {
    .dash_rail_bell {
        display: none;
    }
}

/* Public guide: independent navigation, a readable article, and page contents. */
body.guide_document {
    overflow: hidden;
}

.guide_document .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.guide_document :is(a, button, input, summary):focus-visible {
    outline: 2px solid var(--dash-brand) !important;
    outline-offset: 3px;
}

.guide_document .dash_main_guide {
    height: 100dvh;
    border-radius: 0;
}

.guide_skip {
    position: fixed;
    top: 12px;
    inset-inline-start: 16px;
    z-index: 10;
    padding: 10px 16px;
    background: var(--dash-panel);
    border: 1px solid var(--dash-brand);
    border-radius: 8px;
    transform: translateY(-180%);
}

.guide_skip:focus {
    transform: none;
}

.guide_brand_row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-block-end: 28px;
}

.guide_brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -.035em;
}

.guide_brand img {
    object-fit: contain;
}

:root[data-theme="light"] .guide_brand img {
    filter: brightness(.2);
}

.guide_theme {
    display: flex;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--dash-border-strong);
    border-radius: 20px;
}

.guide_theme button {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--dash-muted);
    cursor: pointer;
}

.guide_theme button[aria-pressed="true"] {
    background: var(--dash-hover);
    color: var(--dash-brand);
}

.guide_theme .icon {
    width: 18px;
    height: 18px;
}

.guide_navigation_footer {
    display: grid;
    gap: 4px;
    margin-block-start: auto;
    padding-block-start: 6px;
    border-block-start: 1px solid var(--dash-border);
}

.guide_navigation_footer a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    font-size: .9rem;
    color: var(--dash-text-soft);
}

.guide_navigation_footer a:hover {
    color: var(--guide-accent);
}

.guide_navigation_footer .icon {
    width: 17px;
    height: 17px;
}

.guide_language {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    margin-block-start: 6px;
    border-block-start: 1px solid var(--dash-border);
    color: var(--dash-muted);
    font-size: .82rem;
}

.guide_language nav {
    display: flex;
    gap: 4px;
}

.guide_language a {
    padding: 5px 9px;
    border-radius: 7px;
    font-size: .82rem;
    line-height: 1.5;
}

.guide_language a[aria-current="true"] {
    background: var(--guide-selected);
    color: var(--guide-accent);
}

.guide_navigation>details {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--dash-border-strong) transparent;
}

.dash_main_guide {
    --guide-navigation-width: 320px;
    --guide-accent: var(--dash-brand);
    --guide-selected: rgba(var(--dash-brand-rgb), .12);
    --guide-surface: var(--dash-panel-soft);
    background: var(--dash-panel);
}

.dash_main_guide .dash_content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.guide_layout {
    display: grid;
    grid-template-columns: var(--guide-navigation-width) minmax(0, 1fr);
    gap: clamp(32px, 4vw, 72px);
    align-items: start;
    min-height: 100dvh;
    padding-inline-end: clamp(24px, 3vw, 48px);
}

.guide_layout_article {
    grid-template-columns: var(--guide-navigation-width) minmax(0, 1fr) 200px;
}

.guide_index {
    width: 100%;
}

.guide_navigation {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 12px 18px;
    position: sticky;
    top: 0;
    height: 100dvh;
    border-inline-end: 1px solid var(--dash-border);
    overflow: hidden;
}

.guide_search {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding-inline: 12px;
    margin-block-end: 28px;
    border: 1px solid var(--dash-border-strong);
    border-radius: 12px;
    background: var(--guide-surface);
}

.guide_search:focus-within {
    border-color: var(--guide-accent);
    outline: none;
}

.guide_search .dash_input {
    flex: 1;
    min-width: 0;
    width: 100%;
    height: 44px;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    outline: none;
    font-size: .94rem;
}

.guide_document .guide_search .dash_input:focus-visible {
    outline: none !important;
}

.guide_search_icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 4px;
    border: 0;
    background: transparent;
    color: var(--dash-muted);
    cursor: pointer;
}

.guide_search_icon .icon {
    width: 18px;
    height: 18px;
}

.guide_search_shortcut {
    flex-shrink: 0;
    padding: 0;
    background: none;
    color: var(--dash-muted);
    font: inherit;
    font-size: .75rem;
    direction: ltr;
}

.guide_collection {
    width: 100%;
    padding: 0;
}

.guide_navigation>details>summary {
    display: none;
}

.guide_navigation .guide_article_tree {
    display: block;
}

.guide_nav_back {
    display: block;
    padding: 10px 12px;
    margin-block-end: 14px;
    color: var(--dash-text-soft);
    text-decoration: none;
    font-size: .94rem;
}

.guide_nav_back:hover {
    color: var(--guide-accent);
}

.guide_section {
    margin-block-end: 8px;
}

.guide_section_tree summary {
    cursor: pointer;
    list-style: none;
    border: 0;
}

.guide_section_tree summary::-webkit-details-marker {
    display: none;
}

.guide_collection_row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    color: var(--dash-text-soft);
    text-decoration: none;
    font-size: .94rem;
    line-height: 1.5;
    border-radius: 9px;
}

.guide_collection_row:hover {
    background: var(--guide-selected);
    color: var(--guide-accent);
}

.guide_section_link {
    font-weight: 500;
}

.guide_section[open]>summary {
    color: var(--dash-text);
}

.guide_collection_children {
    padding-inline-start: 14px;
    margin-block: 6px 18px;
    margin-inline: 12px 0;
    border-inline-start: 1px solid var(--dash-border);
}

.guide_category {
    margin-block: 8px 20px;
}

.guide_category:last-child {
    margin-block-end: 0;
}

.guide_category_link {
    margin: 0 0 5px;
    padding: 8px 12px;
    color: var(--dash-muted);
    font-size: .82rem;
    font-weight: 500;
    line-height: 1.6;
}

.guide_category_link[aria-current] {
    color: var(--dash-text-soft);
}

.guide_category .guide_article_link {
    display: block;
    margin-block: 2px;
    padding: 9px 12px;
    font-size: .88rem;
}

.guide_category .guide_article_link[aria-current="page"] {
    background: var(--guide-selected);
    color: var(--guide-accent);
}

.guide_collection_arrow {
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    transform: rotate(-90deg);
    color: var(--dash-muted);
}

[dir="rtl"] .guide_collection_arrow {
    transform: rotate(90deg);
}

.guide_section_tree details[open]>summary>.guide_collection_arrow {
    transform: rotate(0deg);
}

.guide_collection_empty {
    padding: 24px;
    color: var(--dash-muted);
}

.guide_reading {
    min-width: 0;
    width: 100%;
    max-width: 760px;
    margin-inline: auto;
    display: grid;
    align-content: start;
    gap: 28px;
    padding-block: 48px 64px;
}

.guide_article_toolbar {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 18px;
}

.guide_breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--dash-muted);
    font-size: .82rem;
    line-height: 1.8;
}

.guide_breadcrumbs a {
    color: var(--dash-muted);
    text-decoration: none;
}

.guide_breadcrumbs a:hover {
    color: var(--guide-accent);
}

.guide_copy {
    flex-shrink: 0;
    min-height: 34px;
    padding: 5px 10px;
    background: transparent;
    color: var(--dash-text-soft);
    font-size: .8rem;
    border-radius: 8px;
}

.guide_copy .icon {
    width: 16px;
    height: 16px;
}

.dash_main_guide .dash_page_head {
    margin: 0;
}

.dash_main_guide .dash_page_head h1 {
    font-size: clamp(1.2rem, 2.7vw, 1.8rem);
    line-height: 1.25;
    font-weight: 600;
    letter-spacing: -.025em;
}

.dash_main_guide .dash_page_head p {
    max-width: 72ch;
    margin-block-start: 16px;
    font-size: 1rem;
    line-height: 1.8;
}

html[dir="rtl"] .dash_main_guide .dash_page_head h1 {
    font-size: clamp(1.2rem, 2.5vw, 1.35rem);
    line-height: 1.6;
    letter-spacing: 0;
}

html[dir="rtl"] .dash_main_guide .dash_page_head p {
    font-size: 1rem;
    line-height: 1.9;
}

.guide_body {
    padding: 8px 0 0;
    color: var(--dash-text-soft);
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.guide_body> :first-child {
    margin-block-start: 0;
}

.guide_body h2 {
    color: var(--dash-text);
    font-size: 1.15rem;
    font-weight: 600;
    margin-block: 32px 16px;
    scroll-margin-top: 28px;
}

.guide_body h3 {
    color: var(--dash-text);
    font-size: 1.1rem;
    margin-block: 28px 12px;
    scroll-margin-top: 28px;
}

.guide_body p,
.guide_body ul,
.guide_body ol {
    margin-block: 16px;
}

.guide_body ul,
.guide_body ol {
    padding-inline-start: 24px;
}

.guide_body li {
    padding-inline-start: 4px;
    margin-block: 12px;
}

.guide_body a {
    color: var(--guide-accent);
    text-underline-offset: 4px;
}

.guide_body img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border: 1px solid var(--dash-border-strong);
    border-radius: 14px;
    margin-block: 28px;
    cursor: zoom-in;
}

.guide_body blockquote {
    border-inline-start: 3px solid var(--guide-accent);
    padding: 16px 20px;
    margin-inline: 0;
    border-radius: 0 10px 10px 0;
    background: var(--guide-selected);
    color: var(--dash-text-soft);
}

.guide_related {
    padding-block: 28px 8px;
    border-block-start: 1px solid var(--dash-border);
}

.guide_related .guide_article_link {
    display: block;
    padding-block: 10px;
    color: var(--dash-text-soft);
    text-decoration: none;
}

.guide_related .guide_article_link:hover {
    color: var(--guide-accent);
}

.guide_pagination {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-block-start: 16px;
}

.guide_pagination a {
    flex: 1 1 220px;
    justify-content: start;
    min-height: 64px;
    padding: 14px 18px;
    background: transparent;
    color: var(--dash-text-soft);
    font-size: .9rem;
}

.guide_toc {
    position: sticky;
    top: 48px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: calc(100dvh - 96px);
    overflow-y: auto;
    margin-block-start: 48px;
    font-size: .9rem;
}

.guide_toc strong {
    color: var(--dash-text-soft);
    font-weight: 500;
    margin-block-end: 8px;
}

.guide_toc a {
    display: block;
    padding: 8px 16px;
    color: var(--dash-muted);
    border-inline-start: 1px solid var(--dash-border-strong);
    text-decoration: none;
    line-height: 1.6;
}

.guide_toc a:hover,
.guide_toc a[aria-current="location"] {
    color: var(--guide-accent);
    border-color: var(--guide-accent);
}

.guide_toc_child {
    padding-inline-start: 12px;
}

.guide_search_results {
    width: 100%;
    padding: 16px;
}

.guide_search_results .guide_article_link {
    justify-content: start;
    padding: 14px;
}

.guide_browse_intro {
    padding: 8px 0;
    min-width: 0;
}

.guide_browse_mark {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--dash-border-strong);
    border-radius: 12px;
    color: var(--guide-accent);
    background: var(--guide-selected);
}

.guide_browse_eyebrow {
    margin: 28px 0 8px;
    color: var(--guide-accent);
    font-size: .82rem;
}

.guide_browse_intro h2 {
    margin: 0 0 16px;
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    line-height: 1.4;
}

.guide_browse_intro>p:not(.guide_browse_eyebrow) {
    max-width: 64ch;
    margin: 0;
    color: var(--dash-text-soft);
    line-height: 1.8;
}

.guide_browse_hint {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    align-items: start;
    gap: 18px 12px;
    margin-block-start: 32px;
    padding: 24px;
    border: 1px solid var(--dash-border);
    border-radius: 14px;
}

.guide_browse_hint span {
    color: var(--guide-accent);
    font-size: .85rem;
}

.guide_browse_hint p {
    margin: 0;
    color: var(--dash-text-soft);
    line-height: 1.7;
}

.guide_context {
    border: 1px solid var(--dash-border-strong);
    border-radius: 50%;
    font-weight: 600;
    flex-shrink: 0;
}

.guide_zoom {
    width: fit-content;
    max-width: min(1040px, 90vw);
    max-height: 84dvh;
    margin: auto;
    overflow: auto;
    background: var(--dash-panel);
    color: var(--dash-text);
    border: 1px solid var(--dash-border);
    border-radius: var(--dash-radius-sm);
    padding: 16px;
}

.guide_zoom::backdrop {
    background: rgba(0, 0, 0, .85);
}

.guide_zoom img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: calc(80dvh - 80px);
    height: auto;
    object-fit: contain;
    margin: 12px auto 0;
}

@media (max-width: 1280px) {
    .guide_layout_article {
        grid-template-columns: var(--guide-navigation-width) minmax(0, 1fr);
    }

    .guide_toc {
        display: none;
    }
}

@media (max-width: 1100px) {
    .guide_layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        padding-inline: 28px;
    }

    .guide_navigation {
        position: static;
        height: auto;
        border: 0;
        padding: 20px 0 0;
    }

    .guide_navigation>details {
        flex: none;
        overflow: visible;
    }

    .guide_brand_row {
        margin-block-end: 20px;
    }

    .guide_navigation_footer {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        margin-block-start: 12px;
        padding-block-start: 8px;
    }

    .guide_language {
        flex-basis: 100%;
    }

    .guide_reading {
        padding-block-start: 28px;
    }

    .guide_navigation>details>summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 12px 14px;
        border: 1px solid var(--dash-border-strong);
        border-radius: 10px;
        color: var(--dash-text-soft);
        cursor: pointer;
        list-style: none;
    }

    .guide_navigation>details>summary::-webkit-details-marker {
        display: none;
    }

    .guide_navigation>details[open]>summary {
        margin-block-end: 16px;
    }

    .guide_navigation>details[open]>summary .guide_collection_arrow {
        transform: rotate(0deg);
    }

    .guide_navigation .guide_search {
        margin-block-end: 12px;
    }

    .guide_toc {
        display: none;
    }
}

@media (max-width: 700px) {
    .dash_main_guide .dash_content {
        padding: 0;
    }

    .guide_layout {
        padding-inline: 20px;
    }

    .guide_reading {
        gap: 20px;
    }

    .guide_article_toolbar {
        flex-wrap: wrap;
        gap: 12px;
    }

    .guide_breadcrumbs {
        flex: 1 1 180px;
        font-size: .76rem;
    }

    .guide_copy {
        margin-inline-start: auto;
    }

    .guide_body h2 {
        font-size: 1.2rem;
        margin-block-start: 32px;
    }

    .guide_browse_hint {
        padding: 18px;
    }
}

/* the calls list: its pager under the rows */
.phone_calls_pager {
    padding: 12px 8px 4px;
    border-top: 1px solid var(--dash-border);
}

/* Messenger: the Pages to choose from when the login manages several */
.messenger_pages {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 12px;
}

.messenger_page {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--dash-border);
    border-radius: 12px;
    background: none;
    color: var(--dash-text);
    font: inherit;
    text-align: start;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}

.messenger_page:hover {
    border-color: var(--dash-brand);
    background: rgba(var(--dash-brand-rgb), .06);
}

.messenger_page strong {
    flex: 1;
    font-weight: 500;
}

.messenger_page_arrow {
    display: inline-flex;
    color: var(--dash-muted);
}

.messenger_page_arrow .icon {
    width: 16px;
    height: 16px;
}

html[dir="rtl"] .messenger_page_arrow .icon {
    transform: scaleX(-1);
}

/* the call form's "they see": the number in use, the arrow opens the others */
.phone_caller_row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--dash-border);
    border-radius: 14px;
    background: var(--dash-panel);
}

.phone_caller_icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 11px;
    background: var(--dash-brand);
    color: var(--dash-on-brand);
}

.phone_caller_icon .icon {
    width: 18px;
    height: 18px;
}

.phone_caller_text {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.phone_caller_text strong {
    font-weight: 600;
    text-align: start;
}

.phone_caller_text small {
    color: var(--dash-muted);
    font-size: .8rem;
}

.phone_caller_list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.phone_caller_pick {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--dash-border);
    border-radius: 14px;
    background: none;
    color: var(--dash-text);
    font: inherit;
    text-align: start;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}

.phone_caller_pick:hover,
.phone_caller_pick.is_active {
    border-color: var(--dash-brand);
    background: rgba(var(--dash-brand-rgb), .08);
}

.phone_caller_check {
    display: inline-flex;
    color: var(--dash-brand);
    opacity: 0;
}

.phone_caller_check .icon {
    width: 18px;
    height: 18px;
}

.phone_caller_pick.is_active .phone_caller_check {
    opacity: 1;
}

/* setup: every step comes in softly; the focus step's choices one after another, a pick lifts its card and its tick springs in */
@keyframes setup_rise {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes setup_tick {
    0% {
        transform: scale(.4);
    }

    60% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

.setup_card {
    width: 100%;
    max-width: 620px;
    animation: setup_rise .45s cubic-bezier(.2, .7, .2, 1) both;
}

.setup_focus_list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.setup_focus_card {
    position: relative;
    display: block;
    animation: setup_rise .5s cubic-bezier(.2, .7, .2, 1) both;
    animation-delay: calc(120ms + var(--i) * 70ms);
}

.setup_focus_card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.setup_focus_box {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--dash-border-strong);
    cursor: pointer;
    transition: transform .25s cubic-bezier(.2, .7, .2, 1), border-color .25s ease, background-color .25s ease, box-shadow .25s ease;
}

.setup_focus_box:hover {
    transform: translateY(-2px);
    background: var(--dash-hover);
}

.setup_focus_box:active {
    transform: scale(.985);
}

.setup_focus_icon {
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: var(--dash-chip-bg);
    color: var(--dash-chip-color);
    transition: background-color .25s ease, color .25s ease, transform .35s cubic-bezier(.34, 1.56, .64, 1);
}

.setup_focus_icon svg {
    width: 20px;
    height: 20px;
}

.setup_focus_text {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.setup_focus_text strong {
    font-weight: 600;
}

.setup_focus_text small {
    color: var(--dash-muted);
    font-size: .82rem;
}

.setup_focus_tick {
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1.5px solid var(--dash-border-strong);
    color: transparent;
    transition: background-color .2s ease, border-color .2s ease;
}

.setup_focus_tick svg {
    width: 14px;
    height: 14px;
}

.setup_focus_card input:checked+.setup_focus_box .setup_focus_icon {
    background: var(--dash-brand);
    color: var(--dash-on-brand);
    transform: rotate(-6deg) scale(1.04);
}

.setup_focus_card input:checked+.setup_focus_box .setup_focus_tick {
    border-color: var(--dash-brand);
    background: var(--dash-brand);
    color: var(--dash-on-brand);
    animation: setup_tick .35s cubic-bezier(.34, 1.56, .64, 1);
}

.setup_focus_card input:focus-visible+.setup_focus_box {
    outline: 2px solid var(--dash-brand);
    outline-offset: 2px;
}

.setup_footer .dash_btn[disabled],
.settings_focus .dash_btn[disabled] {
    opacity: .5;
    pointer-events: none;
}

.settings_focus {
    max-width: 620px;
}

@media (prefers-reduced-motion: reduce) {

    .setup_card,
    .setup_focus_card,
    .setup_focus_card input:checked+.setup_focus_box .setup_focus_tick {
        animation: none;
    }

    .setup_focus_box,
    .setup_focus_icon {
        transition: none;
    }
}

.dash_home_head+.dash_callout {
    margin-bottom: 18px;
}

/* the plans: monthly or yearly (the switch above them shows one price and one button) */
.billing_interval {
    display: inline-flex;
    gap: 4px;
    margin-bottom: 16px;
    padding: 4px;
    border: 1px solid var(--dash-border);
    border-radius: 999px;
    background: var(--dash-panel-soft);
}

.billing_interval button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border: 0;
    border-radius: 999px;
    background: none;
    color: var(--dash-muted);
    font-weight: 600;
    cursor: pointer;
}

.billing_interval button.is_active {
    background: var(--dash-panel);
    color: var(--dash-text);
    box-shadow: var(--dash-shadow);
}

.billing_plans[data-billing="month"] [data-show="year"],
.billing_plans[data-billing="year"] [data-show="month"] {
    display: none !important;
}

.billing_plan_price small {
    display: block;
    color: var(--dash-muted);
    font-size: .8rem;
}

.billing_costs_link {
    margin-top: 14px;
}

/* Inbox › Promises: each promise, who made it, when it is due, and what to do */
.promises_page {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 920px;
}

.promises_page .dash_segment_panel {
    gap: 12px;
}

.promise_item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
}

.promise_item.is_by_customer {
    border-inline-start: 3px solid var(--border-color-strong, rgba(127, 127, 127, .35));
}

.promise_item.is_missed {
    border-inline-start: 3px solid #e5484d;
}

.promise_body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.promise_who,
.promise_when {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    opacity: .7;
}

.promise_when svg {
    width: 14px;
    height: 14px;
}

.promise_item.is_missed .promise_when {
    color: #e5484d;
    opacity: 1;
}

.promise_actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.promise_actions form {
    margin: 0;
}

@media (max-width: 767px) {
    .promise_item {
        flex-wrap: wrap;
    }

    .promise_actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* out of credits in the chat: the ways on, under the message */
.achat_error_links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.wf_pick_tag {
    align-self: flex-start;
    margin-top: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(var(--dash-brand-rgb), 0.12);
    color: var(--dash-brand);
    font-size: .74rem;
    font-style: normal;
    font-weight: 600;
}

.wf_connect {
    align-items: center;
    margin: 0 0 14px;
}

.wf_connect .dash_btn {
    flex-shrink: 0;
}

.wf_form_open {
    align-self: flex-start;
    margin: 8px 0 12px;
}

.dash_tint {
    border: 1px solid rgba(var(--dash-brand-rgb), 0.3);
    background: rgba(var(--dash-brand-rgb), 0.07);
}

.dash_tint_success {
    border: 1px solid rgba(70, 195, 125, 0.3);
    background: rgba(70, 195, 125, 0.07);
}

.dash_choice input:checked+.dash_choice_box,
.task_priority_pill input:checked+span,
.agent_language:has(input:checked),
.agent_avatar_pick input:checked+span,
.ai_model_row:has(input:checked),
.ai_model_card_item.is_default,
.ai_model_option input:checked+.ai_model_option_box,
.dash_check_pill input:checked+span,
.dash_type_option input:checked+span,
.acall_voice input:checked+span,
.routine_days input:checked+span,
.routine_channels input:checked+span,
.summary_sections input:checked+.summary_section_box,
.phone_sim_ways input:checked+span,
.phone_sms_from input:checked+span,
.topup_package:has(input:checked),
.phone_caller_option:has(input:checked),
.setup_focus_card input:checked+.setup_focus_box {
    border-color: var(--dash-brand);
    background: rgba(var(--dash-brand-rgb), 0.1);
    box-shadow: none;
}

.dash_modal.dash_drawer .modal-dialog {
    position: fixed;
    top: 8px;
    bottom: 8px;
    inset-inline-end: 8px;
    display: flex;
    width: min(480px, calc(100vw - 16px));
    min-width: min(420px, calc(100vw - 16px));
    max-width: none;
    min-height: 0;
    margin: 0;
}

.dash_modal.dash_drawer .modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--dash-border);
    border-radius: var(--dash-radius);
    box-shadow: var(--dash-shadow-lg);
}

.dash_modal.dash_drawer .dash_modal_head {
    padding: 20px 20px 10px;
}

.dash_modal.dash_drawer .dash_modal_body {
    flex: 1;
    min-height: 0;
    max-height: none;
    padding: 10px 20px 20px;
}

.dash_modal.dash_drawer .dash_modal_foot {
    padding: 14px 20px 18px;
    border-top: 1px solid var(--dash-border);
}

.dash_modal.dash_drawer.fade .modal-dialog {
    transform: translateX(calc(100% + 24px));
    transition: transform .4s var(--dash-ease);
}

html[dir="rtl"] .dash_modal.dash_drawer.fade .modal-dialog {
    transform: translateX(calc(-100% - 24px));
}

.dash_modal.dash_drawer.show .modal-dialog,
html[dir="rtl"] .dash_modal.dash_drawer.show .modal-dialog {
    transform: none;
}

.dash_modal.dash_drawer .modal-content>form {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
}

.dash_modal.dash_drawer .modal-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

:root {
    --bot-shell-top: #ffffff;
    --bot-shell-bottom: #e9e6df;
    --bot-line: #d9d4c8;
    --bot-line-strong: #8d8676;
    --bot-shadow: rgba(0, 0, 0, 0.08);
    --dash-rail-open-width: 232px;
    --bot-gold: #c4ac70;
    --bot-gold-dark: #9a7f3c;
    --dash-chart-bar: #a07d2c;
    --ea-floor: rgba(0, 0, 0, 0.05);
    --ea-paper: #ffffff;
    --ea-line: #ebe8e1;
    --ea-stroke: #ddd8cc;
    --ea-soft: #f4f2ed;
    --ea-brand: var(--dash-brand);
    --ea-brand2: rgba(var(--dash-brand-rgb), 0.35);
    --ea-accent: #e8b04a;
    --ea-on-brand: #1c1c1c;
}

:root[data-theme="dark"] {
    --dash-brand: #c4ac70;
    --dash-brand-strong: #b39c63;
    --dash-brand-rgb: 196, 172, 112;
    --dash-bg: #131315;
    --dash-panel: #18191b;
    --dash-panel-soft: #1d1e21;
    --dash-hover: #26272b;
    --dash-active: #2a2b30;
    --dash-border: rgba(255, 255, 255, 0.07);
    --dash-border-strong: rgba(255, 255, 255, 0.12);
    --dash-text: #f3f0e8;
    --dash-text-soft: #c9c5bc;
    --dash-muted: #aeaba5;
    --dash-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    --dash-shadow-lg: 0 24px 48px -16px rgba(0, 0, 0, 0.3);
    --dash-success: #8fd19b;
    --dash-success-bg: rgba(143, 209, 155, 0.12);
    --dash-danger: #f0a08f;
    --dash-chip-bg: rgba(var(--dash-brand-rgb), 0.12);
    --dash-chip-color: #e6d3a3;
    color-scheme: dark;
    --bot-shell-top: #4a4a4a;
    --bot-shell-bottom: #343434;
    --bot-line: #555555;
    --bot-line-strong: #a39b88;
    --bot-shadow: rgba(0, 0, 0, 0.35);
    --dash-chart-bar: #d6b25e;
    --ea-floor: rgba(255, 255, 255, 0.05);
    --ea-paper: #232427;
    --ea-line: #34353a;
    --ea-stroke: #3d3e44;
    --ea-soft: #2b2c30;
}

.dash_empty_state {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 40px 24px 44px;
    text-align: center;
}

.dash_empty_state>strong,
.dash_empty_state>h2,
.dash_empty_state>h3 {
    margin-top: 6px;
    color: var(--dash-text);
    font-size: 1.05rem;
    font-weight: 600;
}

.dash_empty_state>p,
.dash_empty_state>small {
    max-width: 46ch;
    margin: 0;
    color: var(--dash-text-soft);
    font-size: .9rem;
    line-height: 1.6;
}

.dash_empty_state>.dash_btn,
.dash_empty_state>.dash_link,
.dash_empty_state>.dash_link_btn,
.dash_empty_state>div:not(.dash_empty_art) {
    margin-top: 8px;
}

.dash_empty_art {
    display: block;
    width: 200px;
}

.dash_empty_state.is_compact {
    gap: 4px;
    padding: 20px 12px 24px;
}

.dash_empty_state.is_compact .dash_empty_art {
    width: 120px;
}

.dash_empty_state.is_compact>strong,
.dash_empty_state.is_compact>h2,
.dash_empty_state.is_compact>h3 {
    font-size: .92rem;
    font-weight: 500;
}

.empty_art {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.empty_art .ea_floor {
    fill: var(--ea-floor);
}

.empty_art .ea_paper {
    fill: var(--ea-paper);
}

.empty_art .ea_line {
    fill: var(--ea-line);
}

.empty_art .ea_soft {
    fill: var(--ea-soft);
}

.empty_art .ea_brand {
    fill: var(--ea-brand);
}

.empty_art .ea_brand2 {
    fill: var(--ea-brand2);
}

.empty_art .ea_accent,
.empty_art .ea_text_accent {
    fill: var(--ea-accent);
}

.empty_art .ea_on_brand {
    fill: var(--ea-on-brand);
}

.empty_art .ea_stroke {
    stroke: var(--ea-stroke);
}

.empty_art .ea_stroke_paper {
    stroke: var(--ea-paper);
}

.empty_art .ea_stroke_brand {
    stroke: var(--ea-brand);
}

.empty_art .ea_stroke_brand2 {
    stroke: var(--ea-brand2);
}

.empty_art .ea_stroke_on_brand {
    stroke: var(--ea-on-brand);
}

@keyframes checkoutPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .55;
    }
}

.acall_rays {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 520px;
    height: 520px;
    margin: -260px 0 0 -260px;
    pointer-events: none;
    opacity: .75;
    transform: scale(calc(1 + var(--level) * 0.15));
    transition: transform .12s linear;
    animation: acallRaysIn 1.2s cubic-bezier(.16, 1, .3, 1) .2s both;
}

:root:not([data-theme="dark"]) .acall_rays {
    filter: invert(1);
    opacity: .5;
}

.acall_ray {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    animation: acallRaySpin 120s linear infinite, acallRayBreathe var(--t, 3s) ease-in-out var(--d, 1s) infinite alternate;
}

@keyframes acallRaysIn {
    from {
        opacity: 0;
        scale: .2;
    }

    to {
        scale: 1;
    }
}

@keyframes acallRaySpin {
    to {
        rotate: 360deg;
    }
}

@keyframes acallRayBreathe {
    from {
        scale: .95;
    }

    to {
        scale: 1.05;
    }
}

@media (prefers-reduced-motion: reduce) {

    .acall_rays,
    .acall_ray {
        animation: none;
    }
}

.conn_empty_art {
    position: relative;
    width: 270px;
    height: 270px;
    margin-bottom: 14px;
}

.conn_empty_ring {
    position: absolute;
    border-radius: 50%;
}

.conn_empty_ring.is_outer {
    inset: 24px;
    border: 1.5px dashed var(--dash-border-strong);
    animation: connRingSpin 60s linear infinite;
}

.conn_empty_ring.is_inner {
    inset: 78px;
    border: 1px solid rgba(var(--dash-brand-rgb), 0.3);
    background: rgba(var(--dash-brand-rgb), 0.07);
}

.conn_empty_center {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    transform: translate(-50%, -50%);
}

.conn_empty_logo {
    --a: 0deg;
    position: absolute;
    top: 50%;
    left: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: -22px 0 0 -22px;
    border-radius: 14px;
    background: var(--dash-panel);
    box-shadow: var(--dash-shadow);
    transform: rotate(var(--a)) translate(111px) rotate(calc(var(--a) * -1));
    animation: connLogoFloat 3.6s ease-in-out infinite alternate;
}

.conn_empty_logo.is_1 {
    --a: -90deg;
    animation-delay: 0s;
}

.conn_empty_logo.is_2 {
    --a: -45deg;
    animation-delay: .45s;
}

.conn_empty_logo.is_3 {
    --a: 0deg;
    animation-delay: .9s;
}

.conn_empty_logo.is_4 {
    --a: 45deg;
    animation-delay: 1.35s;
}

.conn_empty_logo.is_5 {
    --a: 90deg;
    animation-delay: 1.8s;
}

.conn_empty_logo.is_6 {
    --a: 135deg;
    animation-delay: 2.25s;
}

.conn_empty_logo.is_7 {
    --a: 180deg;
    animation-delay: 2.7s;
}

.conn_empty_logo.is_8 {
    --a: 225deg;
    animation-delay: 3.15s;
}

@keyframes connRingSpin {
    to {
        rotate: 360deg;
    }
}

@keyframes connLogoFloat {
    from {
        translate: 0 3px;
    }

    to {
        translate: 0 -3px;
    }
}

.connect_state .connect_art {
    position: relative;
    width: 230px;
}

.connect_art_logo {
    position: absolute;
    top: 46.7%;
    left: 50%;
    display: grid;
    place-items: center;
    transform: translate(-50%, -50%);
}

.connect_state .channel_connect_text {
    display: grid;
    justify-items: center;
    gap: 6px;
    max-width: 520px;
}

.connect_state .channel_connect_text h3 {
    margin: 6px 0 0;
    color: var(--dash-text);
    font-size: 1.05rem;
    font-weight: 600;
}

.connect_state .channel_connect_text p {
    margin: 0;
    color: var(--dash-text-soft);
}

.connect_state .channel_connect_actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

@media (prefers-reduced-motion: reduce) {

    .conn_empty_ring.is_outer,
    .conn_empty_logo {
        animation: none;
    }
}

.profile_email {
    display: flex;
    gap: 8px;
}

.profile_email .dash_input {
    flex: 1;
    min-width: 0;
}

.connect_art_icon {
    display: grid;
    place-items: center;
    color: var(--dash-chip-color);
}

.connect_art_icon .icon {
    width: 28px;
    height: 28px;
}

.phone_get .phone_search {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
}

.phone_get .phone_search .dash_btn {
    justify-content: center;
}

.gmail_list {
    display: grid;
    gap: 12px;
}


.day_empty {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 20px;
    padding-block: 20px 24px;
    padding-inline: 8px;
}

.day_empty_text {
    display: grid;
    flex: 1;
    gap: 6px;
    justify-items: start;
    min-width: 220px;
    max-width: 360px;
}

.day_empty_text strong {
    color: var(--dash-text);
    font-size: 1.05rem;
    font-weight: 600;
}

.day_empty_text p {
    margin: 0;
    color: var(--dash-text-soft);
    font-size: .9rem;
    line-height: 1.6;
}

.day_empty_text .dash_btn {
    margin-top: 6px;
}

.day_dial {
    position: relative;
    flex-shrink: 0;
    width: 160px;
    height: 160px;
    zoom: .7;
}

.day_dial_rays {
    position: absolute;
    inset: 22px;
    border-radius: 50%;
    background: url("../img/rays/part_0.svg") center / 200% no-repeat;
    clip-path: circle(50%);
    opacity: .35;
    animation: dayDialFade .9s ease .2s both, acallRaySpin 60s linear infinite;
}

:root:not([data-theme="dark"]) .day_dial_rays {
    filter: invert(1);
    opacity: .3;
}

.day_dial_tick {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1px;
    height: 5px;
    margin-left: -.5px;
    border-radius: 1px;
    background: var(--dash-text-soft);
    opacity: .25;
    transform-origin: 50% 0;
    transform: rotate(calc(var(--i) * 3.75deg)) translateY(-63px);
    animation: dayDialTickIn .4s ease calc(var(--i) * 9ms) both;
}

.day_dial_tick.is_hour {
    width: 1.5px;
    height: 9px;
    margin-left: -.75px;
    transform: rotate(calc(var(--i) * 3.75deg)) translateY(-67px);
}

.day_dial_tick.is_quarter {
    height: 15px;
    transform: rotate(calc(var(--i) * 3.75deg)) translateY(-73px);
}

.day_dial_tick.is_lit {
    animation: dayDialTickIn .4s ease calc(var(--i) * 9ms) both, dayDialLit .25s ease calc(.6s + var(--i) * 1.8s / 96) forwards;
}

.day_dial.is_live .day_dial_tick {
    animation: none;
    transition: background .4s ease, opacity .4s ease;
}

.day_dial.is_live .day_dial_tick.is_lit {
    background: var(--dash-brand);
    opacity: .95;
}

.day_dial_hand,
.day_dial_orbit {
    position: absolute;
    inset: 0;
}

.day_dial_hand {
    animation: dayDialFade .3s ease .5s both, dayDialHand calc(1.8s * var(--share)) linear .6s both;
}

.day_dial.is_live .day_dial_hand {
    animation: none;
    rotate: var(--hand);
    transition: rotate .7s cubic-bezier(.16, 1, .3, 1);
}

.day_dial_hand i {
    position: absolute;
    top: calc(50% - 72px);
    left: 50%;
    width: 2px;
    height: 24px;
    margin-left: -1px;
    border-radius: 2px;
    background: var(--dash-brand);
}

.day_dial_hand i::after {
    content: "";
    position: absolute;
    top: -4px;
    left: 50%;
    width: 7px;
    height: 7px;
    margin-left: -3.5px;
    border-radius: 50%;
    background: var(--dash-brand);
    box-shadow: 0 0 0 0 var(--dash-brand);
    animation: dayDialGlow 1.8s ease-in-out 2.4s infinite alternate;
}

.day_dial_orbit {
    animation: dayDialFade .9s ease .4s both, acallRaySpin 60s linear calc(var(--second) * -1s) infinite;
}

.day_dial_orbit i {
    position: absolute;
    top: calc(50% - 79px);
    left: 50%;
    width: 3px;
    height: 3px;
    margin-left: -1.5px;
    border-radius: 50%;
    background: var(--dash-text-soft);
    box-shadow: 0 0 0 3px rgba(201, 197, 188, .12);
}

.day_dial_time {
    position: absolute;
    top: 50%;
    left: 50%;
    color: var(--dash-text);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: .04em;
    transform: translate(-50%, -50%);
    animation: dayDialFade .6s ease .7s both;
}

@keyframes dayDialFade {
    from {
        opacity: 0;
    }
}

@keyframes dayDialTickIn {
    from {
        opacity: 0;
    }

    to {
        opacity: .25;
    }
}

@keyframes dayDialLit {
    to {
        background: var(--dash-brand);
        opacity: .95;
    }
}

@keyframes dayDialHand {
    from {
        rotate: 0deg;
    }

    to {
        rotate: var(--hand);
    }
}

@keyframes dayDialGlow {
    to {
        box-shadow: 0 0 0 5px rgba(196, 172, 112, .2);
    }
}

@media (prefers-reduced-motion: reduce) {

    .day_dial *,
    .day_dial_tick.is_lit {
        animation: none;
    }

    .day_dial_tick.is_lit {
        background: var(--dash-brand);
        opacity: .95;
    }

    .day_dial_hand {
        rotate: var(--hand);
    }
}

.phone_globe {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    height: 260px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.phone_globe_stage {
    display: grid;
    justify-items: center;
    gap: 4px;
    padding-bottom: 8px;
}

.phone_globe_number {
    display: grid;
    justify-items: center;
    gap: 6px;
    text-align: center;
}

.phone_globe_label {
    color: var(--dash-brand);
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: .18em;
}

.phone_globe_line {
    display: flex;
    align-items: center;
    gap: 10px;
}

.phone_globe_number .dash_badge {
    margin-top: 6px;
}

.phone_globe_number strong {
    color: var(--dash-text);
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: .06em;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.phone_globe_rays {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    margin: -150px 0 0 -150px;
    pointer-events: none;
    opacity: .75;
    animation: acallRaysIn 1.2s cubic-bezier(.16, 1, .3, 1) .2s both;
}

:root:not([data-theme="dark"]) .phone_globe_rays {
    filter: invert(1);
    opacity: .5;
}

.phone_globe_halo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 128px;
    height: 128px;
    margin: -64px 0 0 -64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    box-shadow: 0 0 40px rgba(255, 255, 255, .08);
}

:root:not([data-theme="dark"]) .phone_globe_halo {
    background: rgba(0, 0, 0, .04);
    box-shadow: 0 0 40px rgba(0, 0, 0, .06);
}

.phone_globe_canvas {
    position: relative;
    width: 104px;
    height: 104px;
    transition: scale .25s ease;
}

.phone_globe:hover .phone_globe_canvas {
    scale: 1.06;
}

.phone_globe:focus-visible {
    outline: 2px solid var(--dash-brand);
    outline-offset: -4px;
    border-radius: var(--dash-radius);
}

@media (prefers-reduced-motion: reduce) {
    .phone_globe_rays {
        animation: none;
    }
}

.dash_empty_state .phone_invite_list {
    width: 100%;
    max-width: 560px;
    margin-top: 10px;
    text-align: start;
}

/* Start Dashboard Upcoming */

.dash_upcoming_head {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dash_upcoming_head small {
    color: var(--dash-muted);
    font-size: .8rem;
}

.dash_upcoming_list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
}

.dash_upcoming_item {
    --soon: var(--dash-brand);
    --soon-rgb: var(--dash-brand-rgb);
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 10px 14px 10px 10px;
    border-radius: var(--dash-radius-sm);
    background: var(--dash-bg);
    color: var(--dash-text);
    text-decoration: none;
    transition: background-color .2s ease;
}

[dir="rtl"] .dash_upcoming_item {
    padding: 10px 10px 10px 14px;
}

.dash_upcoming_item:hover {
    background: var(--dash-hover);
    color: var(--dash-text);
}

.dash_upcoming_item.is_warn {
    --soon: #ff9800;
    --soon-rgb: 217, 119, 6;
}

.dash_upcoming_item.is_danger {
    --soon: var(--dash-danger);
    --soon-rgb: 209, 67, 67;
}

.dash_upcoming_count {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 56px;
    border-radius: 14px;
    background: rgba(var(--soon-rgb), .12);
    color: var(--soon);
    line-height: 1;
}

.dash_upcoming_count b {
    font-size: 1.35rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.dash_upcoming_count small {
    margin-top: 4px;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .04em;
}

.dash_upcoming_body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.dash_upcoming_body strong {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    font-size: .92rem;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.dash_upcoming_body strong .icon {
    flex: none;
    width: 14px;
    height: 14px;
    color: var(--dash-danger);
}

.dash_upcoming_body small {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--dash-muted);
    font-size: .78rem;
}

.dash_upcoming_body small .icon {
    width: 13px;
    height: 13px;
}

.dash_upcoming_track {
    display: block;
    height: 4px;
    margin-top: 2px;
    overflow: hidden;
    border-radius: 4px;
    background: var(--dash-border);
}

.dash_upcoming_track i {
    display: block;
    width: var(--p);
    height: 100%;
    border-radius: inherit;
    background: var(--soon);
}

.dash_upcoming_left {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(var(--soon-rgb), .12);
    color: var(--soon);
    font-size: .76rem;
    font-weight: 500;
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .dash_upcoming_item {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 12px;
    }

    .dash_upcoming_count {
        height: 48px;
    }

    .dash_upcoming_left {
        grid-column: 2;
        justify-self: start;
    }
}

/* End Dashboard Upcoming */

/* Start Chat Composer Model */

.contact_dropdown_menu.is_up {
    top: auto;
    bottom: calc(100% + 8px);
    transform: translateY(4px);
}

.achat_tools_line {
    width: 1px;
    height: 18px;
    margin-inline: 4px;
    background: var(--dash-border-strong);
}

.achat_model_btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 220px;
    height: 34px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--dash-text-soft);
    font: inherit;
    font-size: .82rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}

.achat_model_btn span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.achat_model_btn .icon {
    flex: none;
    width: 15px;
    height: 15px;
}

.achat_model_btn .icon:first-child {
    color: var(--dash-brand);
}

.achat_model_btn .icon:last-child {
    width: 13px;
    height: 13px;
    opacity: .6;
}

.achat_model_btn:hover,
.achat_model_menu.open .achat_model_btn {
    background: var(--dash-hover);
    color: var(--dash-text);
}

.achat_model_menu .agent_model_list {
    min-width: 280px;
    max-height: 360px;
}

/* End Chat Composer Model */

/* Start Chat Polish */

.agent_chat_main .achat_empty {
    padding-top: 6vh;
}

.agent_chat_main .achat_empty_bot {
    position: relative;
    display: grid;
    place-items: center;
}

.agent_chat_main .achat_empty_bot::before {
    content: "";
    position: absolute;
    inset: -18%;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(var(--dash-brand-rgb), .18), transparent);
}

.agent_chat_main .achat_empty h1 {
    margin-top: 18px;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -.015em;
}

.agent_chat_main .achat_empty>p {
    font-size: .92rem;
}

.agent_chat_main .achat_suggestions {
    max-width: 680px;
    margin-top: 32px;
    gap: 10px;
}

.agent_chat_main .achat_suggestion {
    padding: 16px;
    border-color: transparent;
    background: var(--dash-panel);
    transition: background-color .15s ease;
}

.agent_chat_main .achat_suggestion:hover {
    border-color: transparent;
    background: var(--dash-hover);
    box-shadow: none;
    transform: none;
}

.agent_chat_main .achat_composer {
    padding-bottom: 22px;
}

.agent_chat_main .achat_input {
    border-radius: 24px;
}

.agent_chat_main .achat_input textarea {
    padding: 18px 20px 8px;
    font-size: .95rem;
}

.agent_chat_main .achat_input_tools {
    padding: 6px 10px 10px 10px;
}

.agent_chat_main .achat_hint {
    font-size: .78rem;
    opacity: .8;
}

@media (max-width: 767.98px) {
    .agent_chat_main .achat_empty {
        padding-top: 0;
    }

    .agent_chat_main .achat_empty h1 {
        margin-top: 10px;
        font-size: 1.3rem;
    }

    .agent_chat_main .achat_suggestions {
        margin-top: 20px;
        gap: 8px;
    }

    .agent_chat_main .achat_suggestion {
        padding: 12px 14px;
    }

    .agent_chat_main .achat_composer {
        padding: 8px 12px 12px;
    }

    .achat_model_btn {
        max-width: 150px;
        padding: 0 10px;
    }

    .achat_model_menu .agent_model_list {
        min-width: 240px;
        max-width: calc(100vw - 32px);
    }
}

/* End Chat Polish */

/* Start Phone Line Ways */

.phone_ways {
    margin-top: 8px;
}

.dash_list_card+.phone_ways {
    margin-top: 28px;
}

.phone_ways_head h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.phone_ways_head p {
    margin: 4px 0 0;
    color: var(--dash-muted);
    font-size: .86rem;
}

.phone_ways_grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.phone_way {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px;
}

.phone_way.is_main {
    background: rgba(var(--dash-brand-rgb), .07);
}

.phone_way_icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--dash-chip-bg);
    color: var(--dash-chip-color);
}

.phone_way.is_main .phone_way_icon {
    background: var(--dash-brand);
    color: var(--dash-on-brand);
}

.phone_way_icon .icon {
    width: 22px;
    height: 22px;
}

.phone_way_tag {
    position: absolute;
    top: 22px;
    inset-inline-end: 22px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(var(--dash-brand-rgb), .14);
    color: var(--dash-chip-color);
    font-size: .78rem;
    font-weight: 600;
}

.phone_way_tag.is_ok {
    background: var(--dash-success-bg);
    color: var(--dash-success);
}

.phone_way h3 {
    margin: 4px 0 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.phone_way>p {
    margin: 0;
    color: var(--dash-text-soft);
    font-size: .88rem;
    line-height: 1.55;
}

.phone_way_points {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
    font-size: .86rem;
}

.phone_way_points li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.phone_way_points .icon {
    flex: none;
    width: 16px;
    height: 16px;
    color: var(--dash-success);
}

.phone_way_foot {
    display: flex;
    align-items: center;
    margin-top: auto;
    padding-top: 10px;
}

@media (max-width: 767.98px) {
    .phone_ways_grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .phone_way {
        padding: 18px;
    }

    .phone_way_tag {
        top: 18px;
        inset-inline-end: 18px;
    }

    .phone_way_foot .dash_btn {
        width: 100%;
        justify-content: center;
    }
}

/* End Phone Line Ways */

/* Start WhatsApp Connecting */

.wa_connecting {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(0, 0, 0, .45);
    backdrop-filter: blur(6px);
}

.wa_connecting[hidden] {
    display: none;
}

.wa_connecting_box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 380px;
    padding: 32px 28px;
    border-radius: var(--dash-radius);
    background: var(--dash-panel);
    box-shadow: var(--dash-shadow-lg);
    text-align: center;
}

.wa_connecting_icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin-bottom: 8px;
    color: #25d366;
}

.wa_connecting_icon .icon {
    width: 30px;
    height: 30px;
}

.wa_connecting_ring {
    position: absolute;
    inset: 0;
    border: 3px solid rgba(37, 211, 102, .18);
    border-top-color: #25d366;
    border-radius: 50%;
    animation: waConnectingSpin .9s linear infinite;
}

@keyframes waConnectingSpin {
    to {
        transform: rotate(360deg);
    }
}

.wa_connecting_box strong {
    font-size: 1.05rem;
    font-weight: 700;
}

.wa_connecting_box p {
    margin: 0;
    color: var(--dash-text-soft);
    font-size: .88rem;
    line-height: 1.55;
}

/* End WhatsApp Connecting */
