/* The Mac in the interactive demo (/en/app-demo, /de/app-demo).
   The agent's window is laid out at its own size (750 x 518) and scaled as
   a whole by app-demo-mac.js, so every measure below is in the window's
   own pixels. Colours and fonts are the agent's (Cairo, Roboto Mono, and
   the light and dark scheme of xt_desktop's AppTheme). */

@font-face {
    font-family: "Cairo";
    font-weight: 400;
    font-display: swap;
    src: url("/assets/fonts/app-demo/cairo-400.woff") format("woff");
}

@font-face {
    font-family: "Cairo";
    font-weight: 500;
    font-display: swap;
    src: url("/assets/fonts/app-demo/cairo-500.woff") format("woff");
}

@font-face {
    font-family: "Cairo";
    font-weight: 600;
    font-display: swap;
    src: url("/assets/fonts/app-demo/cairo-600.woff") format("woff");
}

@font-face {
    font-family: "Cairo";
    font-weight: 700;
    font-display: swap;
    src: url("/assets/fonts/app-demo/cairo-700.woff") format("woff");
}

@font-face {
    font-family: "Roboto Mono";
    font-weight: 400;
    font-display: swap;
    src: url("/assets/fonts/app-demo/robotomono-400.woff") format("woff");
}

@font-face {
    font-family: "Roboto Mono";
    font-weight: 500;
    font-display: swap;
    src: url("/assets/fonts/app-demo/robotomono-500.woff") format("woff");
}

/* ---------- Window ---------- */

.xtm {
    --bar: #eaeff7;
    --page: #f7f9ff;
    --surface: #f1f4f9;
    --cont: #e6e8ee;
    --high: #d9dbe0;
    --edge: #c2c7ce;
    --outline: #72787d;
    --divider: #d9dde3;
    --text: #181c20;
    --muted: #42474d;
    --faint: #72787d;
    --primary: #1b4869;
    --link: #1b4869;
    --heading: #1b4869;
    --switch: #0452a1;
    --usable: #1e6a2a;
    --success: #3a8e3e;
    --row: #fff;
    --seg: #d9dbe0;
    --seg-on: #fff;
    --float: #fff;
    --ext: #fff;
    --ext-bar: #e7e8ec;
    --note: rgba(246, 246, 248, .97);
    --error: #ba1a1a;
    --mono: "Roboto Mono", ui-monospace, Menlo, Consolas, monospace;

    position: absolute;
    top: 0;
    left: 0;
    width: 774px;
    height: 546px;
    padding: 10px 12px 18px;
    transform-origin: 0 0;
    font-family: "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.3;
    color: var(--text);
    text-align: left;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

:is([data-bs-theme="dark"] .xtm:not([data-theme="light"]), .xtm[data-theme="dark"]) {
    --bar: #192027;
    --page: #101418;
    --surface: #181c20;
    --cont: #272a2e;
    --high: #404346;
    --edge: #42474e;
    --outline: #8c9198;
    --divider: #2d3237;
    --text: #e0e2e8;
    --muted: #c2c7ce;
    --faint: #8c9198;
    --link: #9fcbfa;
    --heading: #cfd0d3;
    --switch: #4c95e0;
    --usable: #93d895;
    --success: #69f8ab;
    --row: #0b0f12;
    --seg: #181c20;
    --seg-on: #3f4346;
    --float: #0b0f12;
    --ext: #1c1f24;
    --ext-bar: #2a2d33;
    --note: rgba(44, 46, 52, .97);
    --error: #ffb4ab;
}

.xtm *,
.xtm *::before,
.xtm *::after {
    box-sizing: border-box;
}

:where(.xtm) button {
    border: 0;
    padding: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: inherit;
    cursor: pointer;
}

:where(.xtm) :is(h2, h3, h4, p, dl, dd, pre) {
    margin: 0;
    color: inherit;
    font: inherit;
}

:where(.xtm) input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    padding: 0;
    background: none;
    color: var(--text);
    font: inherit;
    cursor: pointer;
    caret-color: transparent;
}

.xtm input::placeholder {
    color: var(--muted);
    opacity: 1;
}

.xtm button:focus-visible {
    outline: 2px solid var(--switch);
    outline-offset: 2px;
}

.xtm [data-act="type"] {
    cursor: pointer;
}

.xtm [hidden] {
    display: none !important;
}

.xtm .xtm-d,
:is([data-bs-theme="dark"] .xtm:not([data-theme="light"]), .xtm[data-theme="dark"]) .xtm-l {
    display: none;
}

:is([data-bs-theme="dark"] .xtm:not([data-theme="light"]), .xtm[data-theme="dark"]) .xtm-d {
    display: block;
}

.xtm-sp {
    flex: 1;
}

.xtm-win {
    position: relative;
    width: 750px;
    height: 518px;
    display: flex;
    flex-direction: column;
    /* Clipped, not scrollable: the message bar waits below the edge. */
    overflow: hidden;
    overflow: clip;
    border-radius: 10px;
    background: var(--page);
    box-shadow: 0 0 0 .5px rgba(0, 0, 0, .28), 0 14px 34px -8px rgba(8, 20, 40, .42);
}

.xtm-bar {
    flex: none;
    display: flex;
    align-items: center;
    height: 40px;
    padding: 0 20px 0 24px;
    background: var(--bar);
    font-size: 14.5px;
}

.xtm-title {
    flex: 1;
    margin-left: 22px;
    white-space: nowrap;
}

.xtm-who {
    white-space: nowrap;
}

.xtm-dot {
    width: 11px;
    height: 11px;
    margin: 0 14px 0 10px;
    border-radius: 50%;
    background: var(--faint);
}

.xtm-dot.is-on {
    background: #4caf50;
}

.xtm-ib {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
}

.xtm-ib + .xtm-ib {
    margin-left: 2px;
}

.xtm-ib--s {
    width: 28px;
    height: 28px;
    color: var(--muted);
}

.xtm-ib:hover {
    background: color-mix(in srgb, var(--text) 9%, transparent);
}

.xtm-body {
    position: relative;
    flex: 1;
    min-height: 0;
}

.xtm-page {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    padding: 24px 32px;
}

.xtm-page.is-on {
    display: flex;
}

.xtm-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

/* ---------- Common parts ---------- */

.xtm-head {
    flex: none;
    display: flex;
    align-items: center;
    gap: 17px;
    min-height: 37px;
    margin-bottom: 16px;
}

.xtm-h {
    flex: 1;
    font-size: 22px;
    line-height: 1.2;
    color: var(--heading);
    white-space: nowrap;
}

.xtm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 36px;
    padding: 0 16px;
    border-radius: 4px;
    background: var(--primary);
    color: #fff;
    font-size: 15px;
    white-space: nowrap;
}

.xtm-btn:disabled {
    opacity: .55;
    cursor: default;
}

.xtm-btn--out {
    border: 1px solid var(--outline);
    background: transparent;
    color: var(--link);
}

.xtm-btn--edge {
    border: 1px solid var(--outline);
}

.xtm-btn--wide {
    width: 100%;
    margin-top: 12px;
}

.xtm-panel {
    margin: 0 -16px;
    padding: 16px;
    border-radius: 4px;
    background: var(--surface);
}

.xtm-panel--fill {
    flex: 1;
}

.xtm-card,
.xtm-list,
.xtm-table {
    border: 1px solid var(--edge);
    border-radius: 8px;
    background: var(--surface);
}

.xtm-cap {
    font-size: 13px;
    color: var(--muted);
}

.xtm-mono {
    font-family: var(--mono);
    font-size: 12.5px;
    letter-spacing: .5px;
    color: var(--muted);
    white-space: nowrap;
}

.xtm-empty {
    padding: 28px 24px;
    text-align: center;
    font-size: 14px;
    color: var(--muted);
}

/* Material's switch: a filled track when on, an outlined one when off. */
.xtm-sw {
    position: relative;
    flex: none;
    width: 52px;
    height: 32px;
    border: 2px solid var(--outline);
    border-radius: 16px;
    background: var(--high);
    transition: background .18s, border-color .18s;
}

.xtm-sw::after {
    content: "";
    position: absolute;
    top: 6px;
    left: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--outline);
    transition: transform .18s, width .18s, height .18s, top .18s, left .18s, background .18s;
}

.xtm-sw[aria-checked="true"] {
    border-color: var(--switch);
    background: var(--switch);
}

.xtm-sw[aria-checked="true"]::after {
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    background: #fff;
    transform: translateX(20px);
}

.xtm-sw--s {
    transform: scale(.75);
}

.xtm-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid var(--edge);
    border-top-color: var(--switch);
    border-radius: 50%;
    animation: xtm-spin .7s linear infinite;
    vertical-align: middle;
}

.xtm-spin svg {
    animation: xtm-spin .6s ease;
}

@keyframes xtm-spin {
    to { transform: rotate(360deg); }
}

/* ---------- Search ---------- */

.xtm-search {
    flex: none;
    display: flex;
    align-items: center;
    gap: 9px;
    height: 36px;
    padding: 0 10px 0 12px;
    border-bottom: 1px solid var(--edge);
    color: var(--muted);
    font-size: 14.5px;
}

.xtm-search--box {
    width: 200px;
    height: 37px;
    border: 1px solid var(--edge);
    border-radius: 6px;
    background: var(--surface);
}

.xtm-clear {
    display: none;
    flex: none;
    line-height: 0;
    color: var(--muted);
}

.xtm-clear svg {
    width: 12px;
    height: 12px;
}

.has-value > .xtm-clear {
    display: block;
}

/* ---------- First start ---------- */

.xtm-head-label {
    font-size: 14px;
}

.xtm-form {
    margin: 0;
    border-radius: 8px;
    background: var(--cont);
}

.xtm-form p {
    margin-left: 12px;
    font-size: 14px;
}

.xtm-tf {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 56px;
    margin-top: 16px;
    padding: 0 12px;
    border: 1px solid var(--outline);
    border-radius: 4px;
    background: var(--high);
}

.xtm-tf span {
    font-size: 12px;
    color: var(--muted);
}

.xtm-tf input {
    flex: none;
    font-size: 15px;
}

.xtm-tf.is-error {
    border-color: var(--error);
}

.xtm-tf-error {
    margin: 4px 0 0 12px;
    font-size: 12px;
    color: var(--error);
}

.xtm-tf:not(.has-value):not(.is-error):first-of-type {
    animation: xtm-invite 2.2s ease-in-out infinite;
}

@keyframes xtm-invite {
    0%, 100% { box-shadow: 0 0 0 0 rgba(4, 82, 161, 0); }
    50% { box-shadow: 0 0 0 4px rgba(4, 82, 161, .22); }
}

.xtm-form-foot {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    margin-top: auto;
}

.xtm-form-logo {
    width: 150px;
    margin: 0 0 -8px -8px;
}

/* ---------- Home ---------- */

.xtm-home {
    flex-direction: row;
    gap: 25px;
    padding: 12px 24px 24px;
}

.xtm-home-left,
.xtm-home-right {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.xtm-logo {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.xtm-logo img {
    display: none;
    width: 232px;
    height: auto;
}

.xtm:not([data-theme="dark"]) .xtm-logo[data-logo="connected"] .xtm-l[data-logo="connected"],
.xtm:not([data-theme="dark"]) .xtm-logo[data-logo="disconnected"] .xtm-l[data-logo="disconnected"],
.xtm:not([data-theme="dark"]) .xtm-logo[data-logo="signing-in"] .xtm-l[data-logo="signing-in"] {
    display: block;
}

:is([data-bs-theme="dark"] .xtm:not([data-theme="light"]), .xtm[data-theme="dark"]) .xtm-logo img.xtm-l,
:is([data-bs-theme="dark"] .xtm:not([data-theme="light"]), .xtm[data-theme="dark"]) .xtm-logo img.xtm-d {
    display: none !important;
}

:is([data-bs-theme="dark"] .xtm:not([data-theme="light"]), .xtm[data-theme="dark"]) .xtm-logo[data-logo="connected"] .xtm-d[data-logo="connected"],
:is([data-bs-theme="dark"] .xtm:not([data-theme="light"]), .xtm[data-theme="dark"]) .xtm-logo[data-logo="disconnected"] .xtm-d[data-logo="disconnected"],
:is([data-bs-theme="dark"] .xtm:not([data-theme="light"]), .xtm[data-theme="dark"]) .xtm-logo[data-logo="signing-in"] .xtm-d[data-logo="signing-in"] {
    display: block !important;
}

.xtm-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 59px;
    padding: 0 19px;
}

.xtm-status-val {
    font-size: 17px;
    line-height: 1.2;
}

.xtm-device {
    display: grid;
    grid-template-columns: 186px 1fr;
    padding: 11px 19px 12px;
    border-top: 1px solid var(--edge);
}

.xtm-val {
    font-size: 15px;
    line-height: 1.2;
}

.xtm-segrow {
    flex: none;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.xtm-seg {
    display: inline-flex;
    height: 28px;
    padding: 2px;
    border-radius: 8px;
    background: var(--seg);
}

.xtm-seg button {
    padding: 0 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    line-height: 24px;
    color: var(--muted);
    white-space: nowrap;
}

.xtm-seg small,
.xtm-acc-title small {
    margin-left: 4px;
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
}

.xtm-seg button[aria-pressed="true"] {
    background: var(--seg-on);
    color: var(--text);
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .18);
}

.xtm-list {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.xtm-group {
    padding: 11px 12px 3px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--muted);
}

.xtm-row {
    display: flex;
    align-items: center;
    padding-left: 12px;
}

.xtm-row-ic {
    flex: none;
    width: 16px;
    line-height: 0;
    color: var(--usable);
}

.xtm-row-ic.is-muted {
    color: var(--muted);
}

.xtm-row-main {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 37px;
    margin-left: 10px;
    padding-right: 12px;
    border-bottom: 1px solid var(--divider);
}

.xtm-row-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.xtm-row-sub,
.xtm-row-extra {
    flex: none;
    font-size: 13px;
    color: var(--muted);
    white-space: nowrap;
}

.xtm-row-extra.is-granted {
    color: var(--success);
}

.xtm-row.is-flash {
    animation: xtm-flash 1.6s ease-out;
}

@keyframes xtm-flash {
    0%, 35% { background: color-mix(in srgb, var(--switch) 22%, transparent); }
    100% { background: transparent; }
}

.xtm-pill {
    flex: none;
    min-width: 63px;
    height: 24px;
    padding: 0 12px;
    border-radius: 4px;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    text-align: center;
}

.xtm-pill--out {
    border: 1px solid var(--outline);
    background: transparent;
    color: var(--link);
}

/* ---------- My Access ---------- */

.xtm-page[data-page="access"] {
    padding: 12px 24px 24px;
}

.xtm-acc-head {
    flex: none;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 28px;
    margin-bottom: 8px;
}

.xtm-acc-title {
    font-size: 15.5px;
    font-weight: 600;
}

.xtm-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--link);
}

.xtm-list--page .xtm-row-main {
    height: 41px;
}

.xtm-list--page .xtm-pill {
    min-width: 76px;
    height: 28px;
    font-size: 13.5px;
}

.xtm-list--page .xtm-row-extra {
    margin-right: 32px;
}

/* ---------- Connections ---------- */

.xtm-stats {
    flex: none;
    display: flex;
    align-items: center;
    height: 37px;
    border: 1px solid var(--edge);
    border-radius: 6px;
    background: var(--surface);
}

.xtm-stat {
    position: relative;
    padding: 0 16px 0 12px;
    font-size: 11px;
    line-height: 1.25;
    color: var(--muted);
    white-space: nowrap;
}

.xtm-stat + .xtm-stat::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    border-left: 1px solid var(--edge);
}

.xtm-stat span,
.xtm-stat b {
    display: block;
}

.xtm-stat b {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
}

.xtm-stat i {
    font-style: normal;
    font-weight: 400;
    font-size: 11px;
    color: var(--muted);
}

.xtm-table {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.xtm-tr {
    display: grid;
    grid-template-columns: 60px 170px 130px 130px 91px 1fr;
    align-items: center;
    height: 37px;
    margin: 0 11px;
    border-bottom: 1px solid var(--divider);
    font-size: 14.5px;
}

.xtm-tr > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.xtm-th {
    flex: none;
    height: 36px;
    margin: 0;
    padding: 0 11px;
    border-bottom-color: var(--edge);
    font-size: 13px;
    font-weight: 500;
}

/* ---------- Accounts, the account menu ---------- */

.xtm-tile {
    display: flex;
    align-items: center;
    height: 59px;
    padding: 0 20px 0 27px;
    border: 1px solid var(--edge);
    border-radius: 4px;
    background: var(--cont);
}

.xtm-tile.is-on {
    border-color: #4caf50;
}

.xtm-chip {
    display: inline-flex;
    align-items: center;
    height: 40px;
    margin-right: 20px;
    padding: 0 16px;
    border-radius: 4px;
    background: var(--high);
    font-size: 14px;
    white-space: nowrap;
}

.xtm-usermenu {
    position: absolute;
    z-index: 6;
    top: 52px;
    left: 24px;
    right: 24px;
    padding: 16px;
    border: 1px solid var(--edge);
    border-radius: 8px;
    background: var(--float);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, visibility .25s;
}

.xtm-usermenu.is-on {
    opacity: 1;
    visibility: visible;
}

.xtm-usermenu-foot {
    margin-top: 12px;
    text-align: right;
}

/* ---------- Settings ---------- */

.xtm-sets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.xtm-set {
    padding: 16px;
    border-radius: 4px;
    background: var(--cont);
}

.xtm-set-label {
    margin-bottom: 9px;
    font-size: 14px;
    color: var(--heading);
}

.xtm-set p {
    margin-top: 10px;
    font-size: 12.5px;
    color: var(--muted);
}

.xtm-dd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 47px;
    padding: 0 18px 0 16px;
    border: 1px solid var(--outline);
    border-radius: 4px;
    background: var(--high);
    font-size: 16px;
    letter-spacing: .3px;
}

.xtm-set-check {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px 0 0;
    font-size: 14.5px;
}

.xtm .xtm-cb {
    width: 18px;
    height: 18px;
    border: 2px solid var(--muted);
    border-radius: 2px;
}

.xtm .xtm-cb[aria-checked="true"] {
    border-color: var(--switch);
    background: var(--switch) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%23fff' stroke-width='2'%3E%3Cpath d='m2.500 7.500 3 3 6-6.500'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.xtm-menu {
    position: absolute;
    z-index: 7;
    display: none;
    padding: 4px 0;
    border-radius: 4px;
    background: var(--cont);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
}

.xtm-menu.is-on {
    display: block;
}

.xtm-menu button {
    display: block;
    width: 100%;
    height: 38px;
    padding: 0 16px;
    font-size: 15px;
}

.xtm-menu button:hover,
.xtm-menu button[aria-selected="true"] {
    background: var(--high);
}

/* ---------- Diagnostics ---------- */

.xtm-page[data-page="diagnostics"] {
    padding: 16px 24px 24px;
}

.xtm-diag-head {
    flex: none;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 36px;
    margin-bottom: 16px;
}

.xtm-diag-head .xtm-h {
    flex: none;
}

.xtm-diag-state {
    margin-right: 4px;
    text-align: right;
    white-space: nowrap;
}

.xtm-diag-title {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 14.5px;
    line-height: 1.2;
}

.xtm-diag-title svg {
    color: var(--success);
}

.xtm-diag-run {
    font-size: 12px;
    line-height: 1.2;
    color: var(--faint);
}

.xtm-dt {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 4px;
    background: var(--surface);
}

.xtm-dt-head {
    flex: none;
    display: grid;
    grid-template-columns: 1fr 76px;
    align-items: center;
    height: 40px;
    padding: 0 0 0 12px;
    background: var(--cont);
    font-size: 14.5px;
    font-weight: 500;
}

.xtm-check-chev,
.xtm-check-state {
    line-height: 0;
}

.xtm .xtm-check {
    all: unset;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 30px 24px 1fr 64px;
    align-items: center;
    width: calc(100% - 12px);
    min-height: 28px;
    margin-top: 2px;
    background: var(--row);
    font-size: 14.5px;
    cursor: pointer;
}

.xtm-check-chev {
    justify-self: center;
    color: var(--muted);
    transition: transform .15s;
}

.xtm-check[aria-expanded="true"] .xtm-check-chev {
    transform: rotate(90deg);
}

.xtm-check-state,
.xtm-check-out {
    color: var(--success);
}

.xtm-check.is-pending .xtm-check-out {
    visibility: hidden;
}

.xtm-check-details {
    display: none;
    grid-column: 3 / -1;
    padding: 2px 0 8px;
    font-family: var(--mono);
    font-size: 11.5px;
    line-height: 1.5;
    color: var(--muted);
    white-space: pre-wrap;
}

.xtm-check[aria-expanded="true"] .xtm-check-details {
    display: block;
}

/* ---------- Send logs, About ---------- */

.xtm-plain {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    font-size: 14.5px;
}

.xtm-out {
    align-self: stretch;
    flex: 1;
    min-height: 0;
    margin-top: -8px;
    padding: 10px 12px;
    border: 1px solid var(--outline);
    border-radius: 4px;
    font-family: var(--mono);
    font-size: 12px;
    line-height: 1.6;
    white-space: pre-wrap;
    overflow: auto;
}

.xtm-about {
    align-items: stretch;
}

.xtm-about .xtm-panel {
    margin: 0;
    text-align: center;
}

.xtm-about-logo {
    width: 190px;
    margin: 0 auto 10px;
}

.xtm-about-row {
    display: flex;
    flex-direction: column;
    padding: 9px 16px;
    border-radius: 4px;
    background: var(--surface);
}

.xtm-about-row b {
    font-weight: 500;
}

.xtm-about-row span {
    font-size: 13px;
    color: var(--muted);
}

.xtm-about-foot {
    margin-top: auto;
    text-align: center;
    font-size: 13px;
    color: var(--muted);
}

/* ---------- Menu drawer, messages ---------- */

.xtm-scrim {
    position: absolute;
    z-index: 5;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s, visibility .22s;
}

.xtm-scrim.is-on {
    opacity: 1;
    visibility: visible;
}

.xtm-scrim.is-clear {
    background: transparent;
}

.xtm-drawer {
    position: absolute;
    z-index: 6;
    top: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    width: 180px;
    padding-top: 16px;
    background: var(--page);
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform .22s ease, visibility .22s;
}

.xtm-drawer.is-on {
    transform: none;
    visibility: visible;
}

.xtm-nav {
    flex: none;
    display: flex;
    align-items: center;
    gap: 16px;
    height: 44px;
    padding-left: 24px;
    font-size: 14px;
    font-weight: 500;
}

.xtm-nav-ic {
    display: inline-flex;
    justify-content: center;
    width: 18px;
    line-height: 0;
}

.xtm-nav.is-current {
    background: color-mix(in srgb, var(--primary) 12%, transparent);
    font-weight: 700;
}

.xtm-drawer-logo {
    width: 132px;
    margin: 0 auto 20px;
}

.xtm-snack {
    position: absolute;
    z-index: 8;
    left: 16px;
    right: 16px;
    bottom: 12px;
    padding: 12px 16px;
    border-radius: 4px;
    background: #2d3135;
    color: #eef0f6;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
    transform: translateY(70px);
    transition: transform .22s ease;
    pointer-events: none;
}

.xtm-snack.is-on {
    transform: none;
}

/* A notification of the system, over the window's corner. */
.xtm-note {
    position: absolute;
    z-index: 9;
    top: 2px;
    right: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 300px;
    padding: 10px 14px 10px 12px;
    border-radius: 14px;
    background: var(--note);
    box-shadow: 0 0 0 .5px rgba(0, 0, 0, .2), 0 10px 28px rgba(0, 0, 0, .3);
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    opacity: 0;
    transform: translateX(30px);
    visibility: hidden;
    transition: opacity .3s, transform .3s, visibility .3s;
}

.xtm-note.is-on {
    opacity: 1;
    transform: none;
    visibility: visible;
}

.xtm-note-icon {
    flex: none;
    width: 30px;
    height: 34px;
}

.xtm-note b,
.xtm-note span {
    display: block;
    font-size: 12.5px;
    line-height: 1.3;
}

/* ---------- Windows that stand in for what is outside the agent ---------- */

.xtm-ext {
    position: absolute;
    z-index: 10;
    inset: 10px 12px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(10, 14, 20, .46);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, visibility .2s;
}

.xtm-ext.is-on {
    opacity: 1;
    visibility: visible;
}

.xtm-ext-win {
    display: flex;
    flex-direction: column;
    width: 620px;
    max-height: 462px;
    overflow: hidden;
    border-radius: 10px;
    background: var(--ext);
    box-shadow: 0 0 0 .5px rgba(0, 0, 0, .3), 0 18px 44px rgba(0, 0, 0, .42);
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 13.5px;
    transform: scale(.96);
    transition: transform .2s;
}

.xtm-ext.is-on .xtm-ext-win {
    transform: none;
}

.xtm-ext-bar {
    flex: none;
    display: flex;
    align-items: center;
    gap: 7px;
    height: 36px;
    padding: 0 10px 0 13px;
    background: var(--ext-bar);
}

.xtm-ext-bar i {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #ff5f57;
}

.xtm-ext-bar i:nth-child(2) {
    background: #febc2e;
}

.xtm-ext-bar i:nth-child(3) {
    background: #28c840;
}

.xtm-ext-title {
    flex: 1;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--muted);
}

.xtm-ext-close {
    height: 24px;
    padding: 0 12px;
    border: 1px solid var(--edge);
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--link);
}

.xtm-ext-url {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 26px;
    margin: 8px 12px 0;
    border-radius: 6px;
    background: var(--surface);
    font-size: 12px;
    color: var(--muted);
}

.xtm-ext-body {
    min-height: 0;
    overflow-y: auto;
    padding: 12px 18px 16px;
}

.xtm-tag {
    display: inline-block;
    margin-bottom: 10px;
    padding: 2px 10px;
    border-radius: 999px;
    background: #fbefd5;
    color: #4a3300;
    font-size: 11.5px;
    font-weight: 600;
}

.xtm-ext-note {
    margin-top: 10px;
    font-size: 12px;
    color: var(--muted);
}

.xtm-sso {
    max-width: 400px;
    margin: 0 auto;
    padding: 16px 18px 18px;
    border: 1px solid var(--edge);
    border-radius: 10px;
    text-align: center;
}

.xtm-sso-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--edge);
    border-radius: 10px;
    background: var(--surface);
    color: var(--muted);
}

.xtm-sso-org {
    margin-top: 8px;
    font-size: 15px;
    font-weight: 700;
}

.xtm-sso p {
    margin: 2px 0 12px;
    color: var(--muted);
}

.xtm .xtm-sso-pick {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--edge);
    border-radius: 8px;
    background: var(--surface);
    text-align: left;
}

.xtm-sso-pick > span:nth-child(2) {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.xtm-sso-pick small {
    display: block;
    font-size: 11.5px;
    color: var(--muted);
}

.xtm-avatar {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.xtm-reqform {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
}

.xtm-reqform h3 {
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 700;
}

.xtm-reqform h4 {
    margin: 0 0 6px;
    font-size: 12.5px;
    font-weight: 600;
}

.xtm-reqform h4 + .xtm-hours {
    margin-bottom: 12px;
}

.xtm-reqform small {
    font-weight: 400;
    color: var(--muted);
}

.xtm-kv > div {
    padding: 6px 0;
    border-bottom: 1px solid var(--divider);
}

.xtm-kv dt {
    font-size: 11.5px;
    font-weight: 400;
    color: var(--muted);
}

.xtm-hours {
    display: flex;
    gap: 6px;
}

.xtm .xtm-hours button {
    flex: 1;
    height: 30px;
    border: 1px solid var(--edge);
    border-radius: 6px;
    text-align: center;
}

.xtm .xtm-hours button[aria-pressed="true"] {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.xtm-reason {
    display: flex;
    align-items: center;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--outline);
    border-radius: 6px;
}

.xtm-term {
    min-height: 120px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #0f1419;
    color: #d6dbe2;
    font-family: var(--mono);
    font-size: 11.5px;
    line-height: 1.6;
    white-space: pre-wrap;
}

.xtm-term b {
    color: #7bd88f;
    font-weight: 500;
}

.xtm-caret {
    display: inline-block;
    width: 7px;
    height: 13px;
    background: #d6dbe2;
    vertical-align: -2px;
    animation: xtm-blink 1s steps(1) infinite;
}

@keyframes xtm-blink {
    50% { opacity: 0; }
}

.xtm-mock {
    overflow: hidden;
    border: 1px solid var(--edge);
    border-radius: 8px;
}

.xtm-mock-head {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 32px;
    padding: 0 12px;
    background: var(--surface);
    font-weight: 600;
}

.xtm-mock-body {
    padding: 14px;
}

.xtm-mock-body i {
    display: block;
    height: 9px;
    margin-bottom: 9px;
    border-radius: 5px;
    background: var(--high);
    opacity: .7;
}

.xtm-mock-body i:last-child {
    margin-bottom: 0;
}

.xtm-mock-body .w45 { width: 45%; }
.xtm-mock-body .w70 { width: 70%; }
.xtm-mock-body .w85 { width: 85%; }
.xtm-mock-body .block { height: 42px; }

.xtm-mock--screen .xtm-mock-body {
    background: linear-gradient(135deg, #1f5f96, #123a5e);
}

.xtm-mock-window {
    width: 58%;
    padding: 12px;
    border-radius: 6px;
    background: var(--ext);
}

@media (prefers-reduced-motion: reduce) {
    .xtm *,
    .xtm *::after {
        animation: none !important;
        transition: none !important;
    }
}
