/* Interactive demo of the apps (/en/app-demo, /de/app-demo): the page
   around the device and the iPhone. The Mac is in app-demo-mac.css.
   The phone is laid out at the iPhone's point size (440 x 956) and scaled
   as a whole by app-demo.js, so every measure below is in app points.
   Colours are the app's own light and dark palette (HomeStyle in xt-ios). */

/* ---------- Page layout around the phone ---------- */

.xtd-page {
    padding-top: 150px;
    padding-bottom: 80px;
}

.xtd-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: 48px;
    align-items: start;
}

.xtd-guide h1 {
    font-size: 2.4rem;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.xtd-lead {
    font-size: 1.15rem;
    margin-bottom: 1.75rem;
}

.xtd-steps {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    counter-reset: xtd-step;
}

.xtd-steps li {
    counter-increment: xtd-step;
    margin-bottom: 8px;
}

.xtd-step {
    display: grid;
    grid-template-columns: 32px 1fr;
    column-gap: 14px;
    width: 100%;
    text-align: left;
    padding: 12px 14px;
    border: 1px solid var(--xt-border);
    border-radius: 12px;
    background: var(--xt-surface);
    color: var(--xt-text);
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}

.xtd-step::before {
    content: counter(xtd-step);
    grid-row: 1 / span 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid var(--xt-border);
    font-weight: 600;
    font-size: .95rem;
    color: var(--xt-text-muted);
}

.xtd-step:hover {
    border-color: #0452a1;
}

.xtd-step:focus-visible {
    outline: 2px solid #4c95e0;
    outline-offset: 2px;
}

.xtd-step-title {
    font-weight: 600;
    font-size: 1.02rem;
}

.xtd-step-text {
    grid-column: 2;
    font-size: .93rem;
    color: var(--xt-text-muted);
    margin-top: 2px;
}

.xtd-step.is-current {
    border-color: #0452a1;
    background: rgba(4, 82, 161, .07);
}

.xtd-step.is-current::before {
    background: #0452a1;
    border-color: #0452a1;
    color: #fff;
}

[data-bs-theme="dark"] .xtd-step:hover,
[data-bs-theme="dark"] .xtd-step.is-current {
    border-color: #4c95e0;
}

[data-bs-theme="dark"] .xtd-step.is-current {
    background: rgba(76, 149, 224, .14);
}

[data-bs-theme="dark"] .xtd-step.is-current::before {
    background: #2d73c2;
    border-color: #2d73c2;
}

.xtd-guide-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    font-size: .9rem;
    color: var(--xt-text-muted);
}

.xtd-restart {
    border: 1px solid var(--xt-border);
    border-radius: 8px;
    background: transparent;
    color: var(--xt-text);
    padding: 7px 14px;
    font-weight: 600;
    font-size: .9rem;
    cursor: pointer;
}

.xtd-restart:hover {
    border-color: #0452a1;
}


/* Kept left of the column's edge: the site's floating buttons sit in the
   window's lower right corner. */
.xtd-stage {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    position: sticky;
    top: 100px;
}

.xtd-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
}

.xtd-tabs {
    display: inline-flex;
    padding: 3px;
    border: 1px solid var(--xt-border);
    border-radius: 10px;
}

.xtd-tabs button {
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--xt-text-muted);
    padding: 5px 18px;
    font-weight: 600;
    font-size: .9rem;
    cursor: pointer;
}

.xtd-tabs button[aria-selected="true"] {
    background: #0452a1;
    color: #fff;
}

.xtd-auto {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--xt-border);
    border-radius: 10px;
    background: transparent;
    color: var(--xt-text);
    padding: 8px 14px;
    font-weight: 600;
    font-size: .9rem;
    cursor: pointer;
}

.xtd-auto:hover {
    border-color: #0452a1;
}

/* Two bars while the tour plays, a triangle while it is paused. */
.xtd-auto-icon {
    box-sizing: border-box;
    width: 10px;
    height: 12px;
    border-left: 3px solid currentColor;
    border-right: 3px solid currentColor;
}

.xtd-auto[aria-pressed="false"] .xtd-auto-icon {
    width: 0;
    border: 6px solid transparent;
    border-left: 10px solid currentColor;
    border-right: 0;
}

/* The invitation to take over, under the two controls. */
.xtd-hand {
    flex: 1 1 100%;
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    font-size: .92rem;
    font-weight: 600;
    color: var(--xt-text);
}

.xtd-hand-icon {
    flex: none;
    width: 18px;
    height: 18px;
    border: 2px solid #0452a1;
    border-radius: 50%;
    background: rgba(4, 82, 161, .3);
    animation: xtd-hand 1.8s ease-in-out infinite;
}

@keyframes xtd-hand {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(.72); }
}

[data-xtd-auto="off"] .xtd-hand-on,
[data-xtd-auto="on"] .xtd-hand-off {
    display: none;
}

[data-xtd-auto="off"] .xtd-hand-icon {
    animation: none;
    opacity: .5;
}

.xtd-pane[hidden] {
    display: none;
}

.xtd-fit {
    position: relative;
    flex: none;
}

[data-xtd-device="ios"] .xtd-for-mac,
[data-xtd-device="mac"] .xtd-for-ios {
    display: none;
}

/* The Mac's window is wider than it is tall: it gets the wider column. */
@media (min-width: 992px) {
    .xtd-layout[data-xtd-device="mac"] {
        grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr);
        gap: 40px;
    }
}

/* Where the tour clicks next. */
.xtd-tap {
    position: absolute;
    z-index: 60;
    width: 46px;
    height: 46px;
    margin: -23px 0 0 -23px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .9);
    background: rgba(4, 82, 161, .32);
    box-shadow: 0 0 0 1px rgba(4, 82, 161, .55);
    pointer-events: none;
    opacity: 0;
}

.xtd-tap.is-on {
    animation: xtd-tap .56s ease-out both;
}

@keyframes xtd-tap {
    0% { opacity: 0; transform: scale(1.5); }
    45% { opacity: 1; transform: scale(1); }
    75% { opacity: 1; transform: scale(.82); }
    100% { opacity: 0; transform: scale(.82); }
}

@media (max-width: 991.98px) {
    .xtd-page {
        padding-top: 120px;
    }
    .xtd-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }
    .xtd-guide h1 {
        font-size: 1.9rem;
    }
    /* Heading, phone, then the steps. */
    .xtd-guide {
        display: contents;
    }
    .xtd-guide h1 { order: 1; margin-bottom: 0; }
    .xtd-lead { order: 2; margin-bottom: 0; }
    .xtd-stage {
        order: 3;
        position: static;
        align-items: center;
    }
    .xtd-steps { order: 4; margin-bottom: 0; }
    .xtd-guide-foot { order: 5; }
}

/* ---------- The phone ---------- */

.xtd {
    --bg: #f4f6fb;
    --card: #eceff6;
    --outline: #c5cad6;
    --divider: #dde1ea;
    --list: #f9fafd;
    --text: #1a1c21;
    --muted: #4a505c;
    --blue: #0452a1;
    --btn: #0452a1;
    --btn-off: #a0bddb;
    --success: #1b7a35;
    --usable: #1e8e3e;
    --failure: #b3261e;
    --notice-bg: #fbefd5;
    --notice-text: #4a3300;
    --switch-off: #c9cdd6;
    --scrim: rgba(16, 19, 24, .38);
    --bezel: #0b0c0f;
    --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

    position: absolute;
    top: 0;
    left: 0;
    width: 464px;
    height: 980px;
    padding: 12px;
    border-radius: 68px;
    background: var(--bezel);
    box-shadow: 0 0 0 1.5px #3a3d45 inset, 0 30px 60px -20px rgba(8, 20, 40, .45);
    transform-origin: 0 0;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.25;
    color: var(--text);
    text-align: left;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

[data-bs-theme="dark"] .xtd {
    --bg: #101318;
    --card: #1a1e25;
    --outline: #3a404b;
    --divider: #2a2f38;
    --list: #15181e;
    --text: #e3e5ec;
    --muted: #aeb4c0;
    --blue: #4c95e0;
    --btn: #2d73c2;
    --btn-off: #25405f;
    --success: #34c759;
    --usable: #2db84a;
    --failure: #ff6b60;
    --notice-bg: #3a2f14;
    --notice-text: #f2d9a0;
    --switch-off: #3a404b;
    --scrim: rgba(0, 0, 0, .55);
    box-shadow: 0 0 0 1.5px #4a4e58 inset, 0 30px 60px -20px rgba(0, 0, 0, .7);
}

/* Small viewports: no bezel, the screen itself fills the width. */
.xtd.xtd--bare {
    width: 440px;
    height: 956px;
    padding: 0;
    border-radius: 28px;
    background: none;
    box-shadow: 0 0 0 1px var(--outline);
}

.xtd.xtd--bare .xtd-screen {
    border-radius: 28px;
}

.xtd.xtd--bare .xtd-island {
    display: none;
}

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

.xtd button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
    text-align: inherit;
}

.xtd button:focus-visible,
.xtd input:focus-visible,
.xtd a:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

.xtd a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 500;
}

.xtd p {
    margin: 0;
}

.xtd h2,
.xtd h3 {
    color: inherit;
}

.xtd-link {
    color: var(--blue);
    font-weight: 500;
}

.xtd input[type="search"] {
    -webkit-appearance: none;
    appearance: none;
}

.xtd svg {
    display: block;
}

.xtd-screen {
    position: relative;
    width: 440px;
    height: 956px;
    overflow: hidden;
    border-radius: 56px;
    background: var(--bg);
    isolation: isolate;
}

.xtd-island {
    position: absolute;
    top: 13px;
    left: 50%;
    width: 124px;
    height: 36px;
    margin-left: -62px;
    border-radius: 20px;
    background: #000;
    z-index: 60;
    pointer-events: none;
}

.xtd-statusbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 62px;
    z-index: 50;
    pointer-events: none;
    color: var(--text);
}

.xtd-clock {
    position: absolute;
    left: 60px;
    top: 22px;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -.2px;
}

.xtd-sysicons {
    position: absolute;
    right: 40px;
    top: 24px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.xtd-homebar {
    position: absolute;
    left: 50%;
    bottom: 8px;
    width: 156px;
    height: 5px;
    margin-left: -78px;
    border-radius: 3px;
    background: var(--text);
    z-index: 55;
    pointer-events: none;
}

/* ---------- Views and navigation ---------- */

.xtd-view {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .34s cubic-bezier(.2, .8, .2, 1), opacity .25s ease, visibility 0s linear .34s;
}

.xtd-view.is-in {
    transform: none;
    visibility: visible;
    transition-delay: 0s;
}

.xtd-view.is-under {
    transform: translateX(-24%);
}

.xtd-view--root {
    transform: none;
    opacity: 0;
}

.xtd-view--root.is-in {
    opacity: 1;
}

.xtd-nav {
    position: relative;
    flex: none;
    height: 44px;
    margin-top: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.xtd-nav-title {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.25;
}

.xtd .xtd-nav-btn {
    position: absolute;
    top: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
}

.xtd-nav-btn--left {
    left: 0;
}

.xtd-nav-btn--right {
    right: 10px;
}

.xtd-spin svg {
    animation: xtd-spin .7s linear;
}

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

.xtd-meta {
    flex: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px 0;
    height: 38px;
    font-size: 13px;
    color: var(--muted);
}

.xtd .xtd-meta-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: var(--blue);
}

.xtd-panel {
    flex: 1;
    min-height: 0;
    margin: 6px 16px 47px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--outline);
    border-radius: 16px;
    background: var(--list);
    overflow: hidden;
}

.xtd-search {
    flex: none;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 43px;
    padding: 0 14px 0 16px;
    border-bottom: 1px solid var(--divider);
    color: var(--muted);
}

.xtd-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: 15px;
    color: var(--text);
    outline-offset: 4px;
}

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

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

.xtd-scroll::-webkit-scrollbar {
    display: none;
}

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

/* ---------- Buttons ---------- */

.xtd .xtd-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50px;
    border-radius: 13px;
    background: var(--btn);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    transition: opacity .15s ease, background-color .2s ease;
}

.xtd .xtd-btn:active {
    opacity: .8;
}

.xtd .xtd-btn--ghost {
    background: var(--list);
    border: 1px solid var(--outline);
    color: var(--blue);
}

.xtd .xtd-btn--plain {
    background: none;
    color: var(--blue);
}

.xtd .xtd-btn[disabled] {
    background: var(--btn-off);
    color: rgba(255, 255, 255, .78);
    cursor: default;
}

.xtd .xtd-pill {
    flex: none;
    min-width: 88px;
    height: 36px;
    padding: 0 14px;
    border-radius: 9px;
    background: var(--btn);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.xtd .xtd-pill--ghost {
    background: var(--list);
    border: 1px solid var(--outline);
    color: var(--blue);
}

.xtd .xtd-pill:active {
    opacity: .8;
}

/* ---------- Switch ---------- */

.xtd .xtd-switch {
    flex: none;
    position: relative;
    width: 51px;
    height: 31px;
    border-radius: 16px;
    background: var(--switch-off);
    transition: background-color .2s ease;
}

.xtd-switch::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .22);
    transition: transform .2s ease;
}

.xtd .xtd-switch[aria-checked="true"] {
    background: var(--blue);
}

.xtd-switch[aria-checked="true"]::after {
    transform: translateX(20px);
}

/* ---------- Welcome ---------- */

.xtd-welcome {
    padding: 82px 24px 0;
}

.xtd-welcome-logo {
    width: 56px;
    height: 62px;
    margin-bottom: 30px;
}

.xtd-only-dark,
[data-bs-theme="dark"] .xtd-only-light {
    display: none;
}

[data-bs-theme="dark"] .xtd-only-dark {
    display: block;
}

.xtd-h1 {
    font-size: 30px;
    font-weight: 700;
    line-height: 36px;
    letter-spacing: -.5px;
    max-width: 340px;
    text-wrap: balance;
    margin: 0 0 12px;
}

.xtd .xtd-sub {
    font-size: 16px;
    color: var(--muted);
    margin-bottom: 34px;
}

.xtd-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.xtd-label small {
    font-weight: 400;
    font-size: 13px;
    color: var(--muted);
}

.xtd-field {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 55px;
    padding: 0 14px;
    border: 1.5px solid var(--outline);
    border-radius: 13px;
    background: var(--list);
    color: var(--muted);
}

.xtd-field:focus-within {
    border-color: var(--blue);
}

.xtd-field input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: 17px;
    color: var(--text);
    outline: none;
}

.xtd-field input::placeholder {
    color: #8f8f8f;
    opacity: 1;
}

.xtd-field-ok {
    color: var(--success);
    visibility: hidden;
}

.xtd-field.is-valid .xtd-field-ok {
    visibility: visible;
}

.xtd .xtd-options-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 22px 0 20px;
    font-size: 15px;
    font-weight: 600;
    color: var(--blue);
}

.xtd-options-toggle svg {
    transition: transform .2s ease;
}

.xtd-options-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.xtd-options {
    margin-bottom: 20px;
}

.xtd .xtd-hint {
    font-size: 13px;
    color: var(--muted);
    margin-top: 7px;
    line-height: 1.35;
}

.xtd-optrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    font-size: 15px;
    font-weight: 500;
}

.xtd-welcome-foot {
    margin-top: auto;
    padding: 0 24px 54px;
    text-align: center;
    font-size: 13px;
    color: var(--muted);
    line-height: 26px;
}

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

.xtd-home-top {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 44px;
    margin-top: 61px;
    padding: 0 17px 0 6px;
}

.xtd .xtd-iconbtn {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--text);
}

.xtd .xtd-account {
    min-width: 0;
    font-size: 13.5px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.xtd-home-logo {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 6px;
}

.xtd-logo-box {
    position: relative;
    width: 260px;
    height: 260px;
}

.xtd-logo-box img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity .3s ease;
}

.xtd-logo-box[data-logo="connected"] img[data-logo="connected"],
.xtd-logo-box[data-logo="disconnected"] img[data-logo="disconnected"],
.xtd-logo-box[data-logo="signing-in"] img[data-logo="signing-in"] {
    opacity: 1;
}

.xtd .xtd-home-hint {
    min-height: 20px;
    margin-top: 4px;
    padding: 0 30px;
    text-align: center;
    font-size: 14px;
    color: var(--muted);
}

.xtd-home-cards {
    flex: none;
    padding: 0 20px 51px;
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.xtd-card {
    border: 1px solid var(--outline);
    border-radius: 16px;
    background: var(--card);
}

.xtd-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 13px 11px 19px;
    border-bottom: 1px solid var(--divider);
}

.xtd-cap {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 3px;
}

.xtd-status-value {
    font-size: 17px;
    font-weight: 600;
}

.xtd-device-row {
    display: grid;
    grid-template-columns: 224px 1fr;
    padding: 11px 19px 13px;
}

.xtd-val {
    font-size: 15.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.xtd .xtd-access-card {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    height: 60px;
    padding: 0 12px 0 20px;
    border: 1px solid var(--outline);
    background: var(--card);
    color: var(--text);
}

.xtd-access-card[hidden] {
    display: none;
}

.xtd-access-card .xtd-mi {
    color: var(--blue);
}

.xtd-access-card-text {
    flex: 1;
    min-width: 0;
}

.xtd-access-card-title,
.xtd-access-card-sub {
    display: block;
}

.xtd-access-card-title {
    font-size: 16px;
    font-weight: 600;
}

.xtd-access-card-sub {
    font-size: 13px;
    color: var(--muted);
    margin-top: 2px;
}

.xtd-chev {
    color: var(--muted);
}

/* Icons shipped with the app, tinted through a mask. */
.xtd-mi {
    flex: none;
    display: block;
    width: 24px;
    height: 24px;
    background: currentColor;
    -webkit-mask: center / contain no-repeat;
    mask: center / contain no-repeat;
}

/* ?v= keeps the year-long image cache safe: raise it when an icon file changes. */
.xtd-mi--home { -webkit-mask-image: url(../img/app-demo/menu-home.svg?v=1); mask-image: url(../img/app-demo/menu-home.svg?v=1); }
.xtd-mi--access { -webkit-mask-image: url(../img/app-demo/menu-myAccess.svg?v=1); mask-image: url(../img/app-demo/menu-myAccess.svg?v=1); }
.xtd-mi--connections { -webkit-mask-image: url(../img/app-demo/menu-connections.svg?v=1); mask-image: url(../img/app-demo/menu-connections.svg?v=1); }
.xtd-mi--accounts { -webkit-mask-image: url(../img/app-demo/menu-accounts.svg?v=1); mask-image: url(../img/app-demo/menu-accounts.svg?v=1); }
.xtd-mi--diagnostics { -webkit-mask-image: url(../img/app-demo/menu-diagnostics.svg?v=1); mask-image: url(../img/app-demo/menu-diagnostics.svg?v=1); }
.xtd-mi--logs { -webkit-mask-image: url(../img/app-demo/menu-logs.svg?v=1); mask-image: url(../img/app-demo/menu-logs.svg?v=1); }
.xtd-mi--about { -webkit-mask-image: url(../img/app-demo/menu-about.svg?v=1); mask-image: url(../img/app-demo/menu-about.svg?v=1); }

/* ---------- Lists (My Access, Connections) ---------- */

.xtd-group {
    padding: 22px 14px 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
}

.xtd-row {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 0 9px 0 14px;
}

.xtd-row-icon {
    flex: none;
    width: 30px;
    color: var(--usable);
}

.xtd-row-icon.is-muted {
    color: var(--muted);
}

.xtd-row-main {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    align-self: stretch;
    padding: 7px 0;
    border-bottom: 1px solid var(--divider);
}

.xtd-row:last-child .xtd-row-main,
.xtd-row.is-last .xtd-row-main {
    border-bottom-color: transparent;
}

.xtd-row-text {
    flex: 1;
    min-width: 0;
}

.xtd-row-name {
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.xtd-row-sub {
    font-size: 13.5px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.xtd-row-sub.is-granted {
    color: var(--success);
}

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

@keyframes xtd-flash {
    0%, 60% { background: rgba(4, 82, 161, .14); }
    100% { background: transparent; }
}

.xtd-row--conn {
    min-height: 44px;
}

.xtd-row--conn .xtd-row-main {
    padding: 0 5px 0 0;
}

.xtd-ip {
    flex: none;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--muted);
}

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

.xtd-diag-head {
    flex: none;
    display: flex;
    gap: 9px;
    padding: 12px 20px 10px 21px;
}

.xtd-diag-head-icon {
    flex: none;
    width: 22px;
    margin-top: 0;
    color: var(--success);
}

.xtd-diag-title {
    font-size: 17px;
    font-weight: 600;
}

.xtd-diag-run {
    font-size: 13px;
    color: var(--muted);
    margin-top: 5px;
}

.xtd-panel--diag {
    flex: 0 1 auto;
    margin-bottom: 0;
    margin-top: 0;
}

.xtd .xtd-check {
    display: block;
    width: 100%;
    padding: 0 13px 0 13px;
    color: var(--text);
}

.xtd-check-inner {
    display: grid;
    grid-template-columns: 22px 28px 1fr auto;
    align-items: start;
    align-content: center;
    min-height: 46.5px;
    padding: 8px 0;
    border-bottom: 1px solid var(--divider);
}

.xtd-check:last-child .xtd-check-inner {
    border-bottom: 0;
}

.xtd-check-disc {
    color: var(--muted);
    transition: transform .2s ease;
}

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

.xtd-check-state {
    color: var(--success);
}

.xtd-check.is-pending .xtd-check-state,
.xtd-diag-head.is-running .xtd-diag-head-icon {
    color: var(--muted);
}

.xtd-check-disc,
.xtd-check-out {
    margin-top: 2px;
}

.xtd-check-disc {
    justify-self: start;
    margin-top: 3px;
}

.xtd-check-name {
    font-size: 15px;
    padding-right: 10px;
    line-height: 1.2;
}

.xtd-check-out {
    font-size: 13px;
    font-weight: 500;
    color: var(--success);
}

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

.xtd-check-details {
    grid-column: 3 / -1;
    display: none;
    margin-top: 6px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--muted);
    white-space: pre-line;
    line-height: 1.45;
}

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

.xtd-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid var(--outline);
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: xtd-rot .7s linear infinite;
}

@keyframes xtd-rot {
    to { transform: rotate(360deg); }
}

.xtd-diag-actions {
    flex: none;
    display: flex;
    flex-direction: column;
    gap: 13px;
    margin-top: auto;
    padding: 16px 16px 47px;
}

/* ---------- Accounts, About ---------- */

.xtd-plain {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px 16px 47px;
}

.xtd-account-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 16px;
    font-size: 15px;
}

.xtd-account-row span:first-of-type {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.xtd-account-row .xtd-mi {
    color: var(--muted);
}

.xtd-account-row svg {
    color: var(--success);
}

.xtd-about {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 0 30px 80px;
    text-align: center;
    font-size: 14px;
    color: var(--muted);
}

.xtd-about img {
    width: 240px;
    height: auto;
    margin-bottom: 12px;
}

.xtd-about strong {
    font-size: 16px;
    color: var(--text);
    font-weight: 600;
}

/* ---------- Drawer ---------- */

.xtd-scrim {
    position: absolute;
    inset: 0;
    z-index: 20;
    background: var(--scrim);
    opacity: 0;
    visibility: hidden;
    transition: opacity .28s ease, visibility 0s linear .28s;
}

.xtd-scrim.is-on {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.xtd-drawer {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 21;
    width: 306px;
    display: flex;
    flex-direction: column;
    padding: 78px 12px 52px;
    background: var(--bg);
    box-shadow: 8px 0 30px rgba(0, 0, 0, .18);
    transform: translateX(-104%);
    visibility: hidden;
    transition: transform .3s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .3s;
}

.xtd-drawer.is-on {
    transform: none;
    visibility: visible;
    transition-delay: 0s;
}

.xtd .xtd-menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    height: 52px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
}

.xtd .xtd-menu-item.is-current {
    background: var(--card);
    color: var(--blue);
    font-weight: 600;
}

.xtd-drawer-logo {
    margin: auto auto 0;
    width: 170px;
    height: auto;
}

/* ---------- Sheets, alert, toast ---------- */

.xtd-sheet {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 31;
    display: flex;
    flex-direction: column;
    max-height: 902px;
    border-radius: 22px 22px 0 0;
    background: var(--bg);
    box-shadow: 0 -8px 30px rgba(0, 0, 0, .18);
    transform: translateY(104%);
    visibility: hidden;
    transition: transform .36s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .36s;
}

.xtd-sheet.is-on {
    transform: none;
    visibility: visible;
    transition-delay: 0s;
}

.xtd-sheet--page {
    top: 54px;
}

.xtd-scrim--sheet {
    z-index: 30;
}

.xtd-sheet-bar {
    flex: none;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 52px;
    padding: 0 16px;
    border-bottom: 1px solid var(--divider);
    font-size: 16px;
}

.xtd .xtd-sheet-done {
    flex: none;
    font-weight: 600;
    color: var(--blue);
}

.xtd-url {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 32px;
    padding: 0 12px;
    border-radius: 9px;
    background: var(--card);
    font-size: 13px;
    color: var(--muted);
}

.xtd-url span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.xtd-url svg {
    flex: none;
}

.xtd-sheet-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
    padding: 24px 24px 50px;
}

.xtd-sheet-body::-webkit-scrollbar {
    display: none;
}

.xtd-sheet-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.3px;
    margin: 0 0 10px;
}

.xtd .xtd-sheet-text {
    font-size: 15px;
    line-height: 1.42;
    color: var(--muted);
    margin-bottom: 14px;
}

.xtd-sheet-sub {
    line-height: 1.25;
    font-size: 15px;
    font-weight: 600;
    margin: 18px 0 8px;
}

.xtd-bullets {
    list-style: none;
    margin: 0 0 6px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid var(--outline);
    border-radius: 14px;
    background: var(--card);
    font-size: 14px;
    line-height: 1.38;
}

.xtd-bullets li {
    display: flex;
    gap: 10px;
}

.xtd-bullets li::before {
    content: "";
    flex: none;
    width: 6px;
    height: 6px;
    margin-top: 7px;
    border-radius: 50%;
    background: var(--blue);
}

.xtd-sheet-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 22px;
}

.xtd-demo-tag {
    display: inline-block;
    margin-bottom: 14px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--notice-bg);
    color: var(--notice-text);
    font-size: 12px;
    font-weight: 600;
}

/* A stand-in company page inside the simulated browser. */
.xtd-sso {
    margin-top: 36px;
    padding: 26px 22px;
    border: 1px solid var(--outline);
    border-radius: 16px;
    background: var(--list);
    text-align: center;
}

.xtd-sso-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    border-radius: 14px;
    background: var(--card);
    border: 1px solid var(--outline);
    font-size: 20px;
    font-weight: 700;
    color: var(--muted);
}

.xtd-sso-org {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    overflow-wrap: anywhere;
}

.xtd .xtd-sso-pick {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-top: 20px;
    padding: 13px 14px;
    border: 1px solid var(--outline);
    border-radius: 12px;
    background: var(--bg);
    text-align: left;
    font-size: 14px;
}

.xtd-sso-pick span {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.xtd .xtd-avatar {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--btn);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

.xtd-term {
    min-height: 330px;
    padding: 16px;
    border-radius: 12px;
    background: #0d1117;
    color: #d6dbe4;
    font-family: var(--mono);
    font-size: 12.5px;
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.xtd-term b {
    color: #5fd38a;
    font-weight: 400;
}

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

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

.xtd-mock {
    border: 1px solid var(--outline);
    border-radius: 12px;
    background: var(--list);
    overflow: hidden;
}

.xtd-mock-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--divider);
    font-size: 16px;
    font-weight: 700;
}

.xtd-mock-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.xtd-skel {
    height: 11px;
    border-radius: 6px;
    background: var(--divider);
}

.xtd-skel--block {
    height: 96px;
    border-radius: 10px;
}

.xtd-skel--w70 { width: 70%; }
.xtd-skel--w45 { width: 45%; }
.xtd-skel--w85 { width: 85%; }

.xtd-mock--screen .xtd-mock-body {
    min-height: 280px;
    background: linear-gradient(160deg, #1d3f6e, #0b1f3a);
    justify-content: flex-end;
    padding: 0;
}

.xtd-mock-window {
    margin: 26px 24px auto;
    padding: 14px;
    border-radius: 8px;
    background: var(--list);
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.xtd-mock-taskbar {
    height: 26px;
    background: rgba(0, 0, 0, .45);
}

.xtd-kv {
    margin: 0 0 4px;
    border: 1px solid var(--outline);
    border-radius: 14px;
    background: var(--card);
    font-size: 14px;
}

.xtd-kv div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--divider);
}

.xtd-kv div:last-child {
    border-bottom: 0;
}

.xtd-kv dt {
    flex: none;
    font-weight: 400;
    color: var(--muted);
}

.xtd-kv dd {
    margin: 0;
    font-weight: 500;
    text-align: right;
}

.xtd-seg {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 3px;
    padding: 3px;
    border-radius: 11px;
    background: var(--card);
    border: 1px solid var(--outline);
}

.xtd .xtd-seg button {
    height: 36px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
}

.xtd .xtd-seg button[aria-pressed="true"] {
    background: var(--btn);
    color: #fff;
    font-weight: 600;
}

.xtd-svc {
    border: 1px solid var(--outline);
    border-radius: 14px;
    background: var(--card);
    padding: 14px 14px 14px 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.xtd-svc-text {
    flex: 1;
    min-width: 0;
}

.xtd-svc-name {
    font-size: 15px;
    font-weight: 600;
}

.xtd-svc-addr {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--muted);
    margin-top: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.xtd-alert-wrap {
    position: absolute;
    inset: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--scrim);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility 0s linear .2s;
}

.xtd-alert-wrap.is-on {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.xtd-alert {
    width: 300px;
    border-radius: 18px;
    background: var(--list);
    text-align: center;
    overflow: hidden;
}

.xtd-alert-title {
    padding: 22px 20px 6px;
    font-size: 17px;
    font-weight: 600;
}

.xtd-alert-text {
    padding: 0 20px 20px;
    font-size: 13.5px;
    line-height: 1.4;
    color: var(--muted);
}

.xtd .xtd-alert-ok {
    width: 100%;
    height: 46px;
    border-top: 1px solid var(--divider);
    text-align: center;
    font-size: 17px;
    font-weight: 600;
    color: var(--blue);
}

.xtd-toast {
    position: absolute;
    left: 50%;
    bottom: 64px;
    z-index: 45;
    max-width: 380px;
    width: max-content;
    padding: 12px 18px;
    border-radius: 14px;
    background: #23272f;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
    opacity: 0;
    transform: translate(-50%, 12px);
    visibility: hidden;
    transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
    pointer-events: none;
}

[data-bs-theme="dark"] .xtd-toast {
    background: #e3e5ec;
    color: #15181e;
}

.xtd-toast.is-on {
    opacity: 1;
    transform: translate(-50%, 0);
    visibility: visible;
    transition-delay: 0s;
}

@media (prefers-reduced-motion: reduce) {
    .xtd *,
    .xtd *::before,
    .xtd *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* ---------- Fields that type themselves ---------- */

.xtd input[readonly] {
    cursor: pointer;
    caret-color: transparent;
}

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

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

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

/* The first field of the demo asks to be clicked. */
.xtd-field--invite:has(input:placeholder-shown) {
    animation: xtd-invite 2.2s ease-in-out infinite;
}

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

@media (prefers-reduced-motion: reduce) {
    .xtd-field--invite:has(input:placeholder-shown),
    .xtd-hand-icon,
    .xtd-tap.is-on {
        animation: none;
    }
}
