/* Course page demo (inc/course-demos.php, assets/js/course-demo.js).
   The stage holds a fixed 740 x 480 canvas that the script scales to the card. Claude and
   Xero colours and labels follow the course slide mockups
   (.github/skills/course-slide-rebrand/scripts/mockups.py). */

.xd {
    margin: 0;
    --xd-navy: #0f1722;
    --xd-lime: #baf861;
    --xd-ring: 0 0 0 2px #baf861, 0 0 14px rgba(186, 248, 97, .55);
}

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

/* ---------- chapters ---------- */

.xd-chapters {
    display: flex;
    gap: .4rem;
    margin: 0 0 .75rem;
    padding: 0 0 .25rem;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
}

.xd-chapters::-webkit-scrollbar {
    display: none;
}

.xd-chapters li {
    flex: none;
    margin: 0;
    padding: 0;
}

.xd-chapter {
    position: relative;
    display: flex;
    align-items: center;
    gap: .4rem;
    margin: 0;
    padding: .4rem .7rem;
    overflow: hidden;
    border: 1px solid #dbe2ea;
    border-radius: 999px;
    background: #fff;
    color: #334155;
    font-family: inherit;
    font-size: .8rem;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
}

.xd-chapter:hover {
    border-color: #94a3b8;
}

.xd-chapter:focus-visible {
    outline: 2px solid #2f6f5e;
    outline-offset: 2px;
}

.xd-chapter-num {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #64748b;
}

.xd-chapter.is-on {
    border-color: var(--xd-navy);
    background: var(--xd-navy);
    color: #fff;
}

.xd-chapter.is-on .xd-chapter-num {
    color: var(--xd-lime);
}

/* progress along the bottom of the playing chapter */
.xd-chapter::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: calc(var(--xd-p, 0) * 100%);
    background: var(--xd-lime);
    transition: width .4s linear;
}

.xd-chapter:not(.is-on)::after {
    display: none;
}

/* ---------- stage ---------- */

.xd-stage {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    background: radial-gradient(120% 90% at 85% 0%, #1d2d44 0%, #0f1722 60%);
    height: 0;
}

.xd:not(.is-ready) .xd-stage {
    display: none;
}

.xd-canvas {
    position: relative;
    width: 740px;
    height: 480px;
    transform-origin: 0 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.xd-win {
    position: absolute;
    top: 14px;
    height: 452px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 12px;
    box-shadow: 0 22px 50px rgba(0, 0, 0, .45);
}

/* ---------- Claude window ---------- */

.xd-claude {
    left: 14px;
    width: 286px;
    display: flex;
    flex-direction: column;
    background: #262624;
    color: #faf9f5;
}

.xd-titlebar,
.xd-browser {
    position: relative;
    flex: none;
    display: flex;
    align-items: center;
    gap: 5px;
    height: 26px;
    padding: 0 10px;
    background: #1d1d1b;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.xd-titlebar i,
.xd-browser i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff5f57;
}

.xd-titlebar i:nth-child(2),
.xd-browser i:nth-child(2) {
    background: #febc2e;
}

.xd-titlebar i:nth-child(3),
.xd-browser i:nth-child(3) {
    background: #28c840;
}

.xd-titlebar span {
    margin-left: auto;
    margin-right: auto;
    padding-right: 30px;
    font-size: 11px;
    color: #a6a39b;
}

.xd-msgs {
    flex: 1;
    overflow: hidden;
    padding: 4px 12px 12px;
}

.xd-m {
    margin-top: 10px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .35s ease, transform .35s ease;
}

.xd-m.is-in {
    opacity: 1;
    transform: none;
}

.xd-user {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.xd-bub {
    max-width: 88%;
    padding: 7px 11px;
    border-radius: 12px;
    background: #30302e;
    font-size: 11.5px;
    line-height: 1.4;
}

.xd-attach {
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: 88%;
    padding: 5px 9px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 9px;
    background: #1f1e1d;
    color: #d6d3cb;
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.xd-attach span {
    flex: none;
    padding: 1px 4px;
    border-radius: 3px;
    background: #3a3a37;
    color: #faf9f5;
    font-size: 8.5px;
}

.xd-tool {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #a6a39b;
    font-size: 10.5px;
}

.xd-tool.is-note {
    font-style: italic;
}

.xd-spin {
    flex: none;
    width: 10px;
    height: 10px;
    border: 1.5px solid #5f5d58;
    border-top-color: #d6d3cb;
    border-radius: 50%;
    animation: xd-spin .8s linear infinite;
}

.xd-tool.is-done .xd-spin {
    display: none;
}

.xd-failed {
    color: #e5736b;
}

.xd-ai {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 12px;
    line-height: 1.45;
    color: #faf9f5;
}

.xd-ai p,
.xd-ai ul {
    margin: 0 0 7px;
}

.xd-ai ul {
    padding-left: 16px;
    list-style: disc;
}

.xd-ai li {
    margin: 2px 0;
}

.xd-row,
.xd-outro {
    transition: opacity .3s ease;
}

.xd-row.is-wait,
.xd-outro.is-wait {
    opacity: 0;
}

.xd-link {
    color: #7aa7ff;
    text-decoration: underline;
    word-break: break-all;
    border-radius: 4px;
}

.xd-link.is-pressed {
    background: rgba(122, 167, 255, .16);
}

.xd-table {
    margin: 0 0 7px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    overflow: hidden;
    font-size: 10.5px;
    line-height: 1.3;
}

.xd-tr {
    display: flex;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.xd-tr.is-head {
    border-top: 0;
    background: #30302e;
    font-weight: 600;
}

.xd-tr span {
    flex: 1 1 0;
    min-width: 0;
    padding: 3px 7px;
    overflow-wrap: break-word;
}

.xd-tr.is-head span {
    overflow-wrap: normal;
}

.xd-table.is-cols-4 {
    font-size: 9.5px;
}

.xd-table.is-cols-4 .xd-tr span {
    padding: 3px 5px;
}

.xd-table.is-cols-2 .xd-tr span:first-child {
    flex: 0 0 36%;
}

.xd-approve {
    padding: 10px 12px 12px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 12px;
    background: #232321;
    text-align: center;
    transition: opacity .25s ease, transform .25s ease;
}

.xd-approve.is-out {
    opacity: 0;
    transform: scale(.97);
}

.xd-approve-ic {
    width: 26px;
    height: 22px;
    margin: 0 auto 6px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 7px;
    background: #2f2f2d url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='7' cy='6' r='2.2' fill='%236d8fd8'/%3E%3Ccircle cx='12' cy='4.5' r='2.2' fill='%239fb6ec'/%3E%3Cpath d='M3 13c3-4 6-4 7 0s4 4 7 0' fill='none' stroke='%236d8fd8' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 15px no-repeat;
}

.xd-approve-t {
    margin-bottom: 8px;
    font-size: 10.5px;
    line-height: 1.35;
    color: #e8e6df;
}

.xd-approve-t b {
    font-weight: 600;
    color: #faf9f5;
}

.xd-ab {
    height: 23px;
    margin-top: 5px;
    border-radius: 7px;
    background: #363634;
    font-size: 10.5px;
    line-height: 23px;
    color: #faf9f5;
    transition: filter .15s;
}

.xd-ab.is-white {
    background: #faf9f5;
    color: #1f1e1d;
}

.xd-ab.is-pressed {
    filter: brightness(.86);
}

.xd-ab kbd {
    display: inline-block;
    min-width: 13px;
    height: 13px;
    margin-left: 4px;
    padding: 0 2px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 3px;
    background: none;
    box-shadow: none;
    color: #c9c6be;
    font-family: inherit;
    font-size: 8px;
    font-weight: 400;
    line-height: 11px;
    position: static;
    vertical-align: 1px;
}

.xd-ab.is-white kbd {
    border-color: rgba(0, 0, 0, .3);
    color: #1f1e1d;
}

.xd-composer {
    flex: none;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 10px 10px;
    padding: 6px 6px 6px 12px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 12px;
    background: #30302e;
}

.xd-input {
    flex: 1;
    min-width: 0;
    min-height: 16px;
    font-size: 11px;
    line-height: 16px;
    white-space: nowrap;
    overflow: hidden;
}

.xd-placeholder {
    color: #8f8c85;
}

.xd-caret {
    display: inline-block;
    width: 1px;
    height: 12px;
    margin-left: 1px;
    background: #faf9f5;
    vertical-align: -2px;
    animation: xd-blink 1s steps(1) infinite;
}

.xd-send {
    flex: none;
    width: 24px;
    height: 24px;
    border-radius: 7px;
    background: #c96442;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 24px;
    text-align: center;
    opacity: .55;
    transition: opacity .15s, transform .15s;
}

.xd-send.is-go {
    opacity: 1;
    transform: scale(.9);
}

/* phone: the Xero result as a card in the chat */
.xd-xcard {
    padding: 9px 11px;
    border-radius: 10px;
    background: #fff;
    color: #1e2a3b;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    line-height: 1.4;
    border-left: 4px solid #3367d6;
}

.xd-xcard-h {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 4px;
    color: #4a5462;
    font-size: 11px;
}

.xd-xcard-logo {
    padding: 1px 6px;
    border-radius: 4px;
    background: #3367d6;
    color: #fff;
    font-weight: 700;
}

.xd-xcard-t {
    font-weight: 700;
    font-size: 13px;
}

.xd-xcard-s {
    display: inline-block;
    margin-left: 4px;
    padding: 0 5px;
    border: 1px solid #9aa3ae;
    border-radius: 3px;
    background: #eef0f3;
    color: #4a5462;
    font-size: 10.5px;
    font-weight: 400;
}

.xd-xcard-l {
    color: #4a5462;
}

.xd-xcard-a {
    margin-top: 3px;
}

/* a demo label (ours, not Xero's) */
.xd-pill,
.xd-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--xd-lime);
    color: var(--xd-navy);
    font: 700 11px/1.2 -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.xd-pill::before,
.xd-note::before {
    content: "✓";
}

/* ---------- Xero window ---------- */

.xd-xero {
    left: 312px;
    width: 414px;
    background: #eef0f3;
    color: #1e2a3b;
    font-family: Arial, Helvetica, sans-serif;
}

.xd-xero.is-dark {
    background: #1c1c1c;
}

.xd-url {
    flex: 1;
    height: 17px;
    margin: 0 30px 0 22px;
    border-radius: 5px;
    background: #2c2c2a;
    color: #c9c6be;
    font: 10px/17px -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
}

.xd-xero-body {
    position: absolute;
    left: 0;
    right: 0;
    top: 26px;
    bottom: 0;
}

.xd-xero-page {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity .35s ease;
}

.xd-xero-page.is-in {
    opacity: 1;
}

.xd-note {
    position: absolute;
    left: 50%;
    bottom: 16px;
    z-index: 5;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .35);
    opacity: 0;
    transform: translate(-50%, 8px);
    transition: opacity .35s ease, transform .35s ease;
    white-space: nowrap;
}

.xd-note.is-top {
    top: 40px;
    bottom: auto;
}

.xd-note.is-in {
    opacity: 1;
    transform: translate(-50%, 0);
}

.xx-nav {
    display: flex;
    align-items: center;
    gap: 11px;
    height: 34px;
    padding: 0 10px;
    background: #3367d6;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
}

.xx-logo {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -.02em;
}

.xx-org {
    padding: 4px 8px;
    border-radius: 5px;
    background: #22448f;
    font-size: 10px;
}

.xx-nv {
    position: relative;
    font-size: 10.5px;
    line-height: 34px;
}

.xx-nv.is-on {
    font-weight: 700;
}

.xx-nv.is-on::after {
    content: "";
    position: absolute;
    left: -3px;
    right: -3px;
    bottom: 0;
    height: 3px;
    background: #fff;
}

.xx-orghead {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 12px;
    background: #fff;
    border-bottom: 1px solid #dfe3e8;
    font-size: 14px;
    font-weight: 700;
}

.xx-bdg {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: #f4a6c0;
    font-size: 9px;
    line-height: 22px;
    text-align: center;
}

.xx-dash {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px;
}

.xx-tile {
    height: 150px;
    padding: 14px 12px;
    border: 1px solid #dfe3e8;
    border-radius: 7px;
    background: #fff;
}

.xx-tile i {
    display: block;
    height: 8px;
    margin-bottom: 10px;
    border-radius: 4px;
    background: #e6e9ee;
}

.xx-tile i:first-child {
    width: 55%;
    background: #cfd5dd;
}

.xx-tile i:nth-child(3) {
    width: 70%;
}

.xx-page {
    padding: 0 8px 8px;
}

.xx-white {
    position: absolute;
    inset: 34px 0 0;
    padding: 8px 10px;
    background: #fff;
}

.xx-hdr {
    position: relative;
    margin: 0 -8px 8px;
    padding: 6px 10px 8px;
    background: #fff;
    border-bottom: 1px solid #dfe3e8;
}

.xx-crumb {
    color: #2c6ecb;
    font-size: 9px;
}

.xx-title {
    margin-top: 2px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.xx-h1 {
    margin: 2px 0 7px;
    font-size: 17px;
    font-weight: 700;
}

.xx-badge {
    display: inline-block;
    margin-left: 4px;
    padding: 0 4px;
    border: 1px solid #9aa3ae;
    border-radius: 3px;
    background: #eef0f3;
    color: #4a5462;
    font-size: 9px;
    font-weight: 400;
    line-height: 14px;
    vertical-align: 2px;
}

.xx-badge.is-sent,
.xx-badge.is-invoiced {
    background: #fff;
}

.xx-badge.is-accepted {
    border-color: #7cc79a;
    background: #dff3e6;
    color: #1e5e37;
}

.xx-btns {
    position: absolute;
    right: 10px;
    top: 13px;
    display: flex;
    gap: 5px;
}

.xx-btns.is-left {
    position: static;
    margin-bottom: 8px;
}

.xx-btn {
    height: 20px;
    padding: 0 8px;
    border: 1px solid #c9ced6;
    border-radius: 3px;
    background: #fff;
    color: #2c6ecb;
    font-size: 9.5px;
    font-weight: 700;
    line-height: 18px;
    white-space: nowrap;
}

.xx-btn.is-primary {
    border-color: #2c6ecb;
    background: #2c6ecb;
    color: #fff;
}

.xx-btn.is-soft {
    background: #f7f8f9;
}

.xx-card {
    padding: 8px 9px 10px;
    border: 1px solid #dfe3e8;
    border-radius: 6px;
    background: #fff;
}

.xx-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px 8px;
    margin-bottom: 7px;
}

.xx-lab {
    display: block;
    margin-bottom: 2px;
    font-size: 8.5px;
    font-weight: 700;
}

.xx-box {
    display: block;
    height: 20px;
    padding: 0 6px;
    border: 1px solid #c9ced6;
    border-radius: 3px;
    font-size: 9.5px;
    line-height: 18px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.xx-val {
    display: block;
    font-size: 9.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.xx-link {
    color: #2c6ecb;
}

.xx-add {
    margin: 0 0 8px;
    color: #2c6ecb;
    font-size: 9.5px;
    font-weight: 700;
}

.xx-ts {
    display: grid;
    grid-template-columns: 34% 1fr;
    gap: 8px;
    margin-bottom: 6px;
}

.xx-sum {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 8.5px;
    line-height: 1.3;
}

.xd .xx-lines,
.xd .xx-list {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    font-size: 9px;
    line-height: 1.25;
    table-layout: auto;
}

.xd .xx-lines th,
.xd .xx-list th {
    padding: 3px 4px;
    border: 1px solid #dfe3e8;
    background: #f5f6f7;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
}

.xd .xx-lines td {
    padding: 3px 4px;
    border: 1px solid #dfe3e8;
    text-align: left;
    vertical-align: top;
}

.xd .xx-lines td:first-child {
    max-width: 92px;
}

.xd .xx-list th {
    border-width: 0 0 1px;
    color: #2c6ecb;
}

.xd .xx-list td {
    padding: 5px 4px;
    border: 0;
    border-bottom: 1px solid #eceef1;
    white-space: nowrap;
    text-align: left;
}

.xd .xx-lines .r,
.xd .xx-list .r {
    text-align: right;
}

.xx-tabs {
    display: flex;
    overflow: hidden;
    margin-bottom: 4px;
    border-bottom: 1px solid #dfe3e8;
}

.xx-tab {
    padding: 4px 8px;
    border: 1px solid #dfe3e8;
    border-bottom: 0;
    background: #f7f8f9;
    color: #2c6ecb;
    font-size: 9.5px;
    white-space: nowrap;
}

.xx-tab.is-on {
    background: #fff;
    color: #1e2a3b;
    margin-bottom: -1px;
}

.xx-totals {
    width: 190px;
    margin: 5px 0 0 auto;
    padding: 2px 4px;
    border-radius: 5px;
    font-size: 9.5px;
}

.xx-totals > div {
    display: flex;
    justify-content: space-between;
    padding: 2px 0;
}

.xx-totals .xx-total {
    margin-top: 4px;
    padding: 4px 0;
    border-top: 2px solid #1e2a3b;
    border-bottom: 2px solid #1e2a3b;
    font-size: 13px;
}

.xx-totals .xx-total span:last-child {
    font-weight: 700;
}

.xx-ring {
    border-radius: 5px;
    animation: xd-ring .5s ease .35s both;
}

.xx-tbl {
    border-radius: 3px;
}

tr.xx-ring {
    animation: xd-row .5s ease .35s both;
}

/* InitD's allow-changes page */
.xa {
    position: absolute;
    inset: 0;
    padding: 22px 26px;
    background: #1c1c1c;
    color: #ececec;
    font-family: system-ui, -apple-system, sans-serif;
}

.xa-card {
    padding: 16px 18px;
    border: 1px solid #3a3a3a;
    border-radius: 12px;
    background: #262626;
}

.xa-ask {
    transition: opacity .4s ease;
}

.xa-ask.is-dim {
    opacity: .25;
}

.xa-done {
    position: absolute;
    left: 40px;
    right: 40px;
    top: 120px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .6);
    animation: xd-up .45s ease both;
}

.xa-h {
    margin-bottom: 9px;
    font-size: 14px;
    font-weight: 700;
}

.xa p {
    margin: 0 0 9px;
    color: #c9c9c9;
    font-size: 10.5px;
    line-height: 1.45;
}

.xa-go {
    margin-top: 12px;
    height: 32px;
    border-radius: 7px;
    background: #5aa6f0;
    color: #fff;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 32px;
    text-align: center;
    transition: filter .15s;
}

.xa-go.is-pressed {
    filter: brightness(.85);
}

/* Home dashboard with real figures */
.xx-banner {
    margin: 8px 10px 0;
    padding: 6px 9px;
    border-radius: 5px;
    background: #10285a;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
}

.xx-banner u {
    font-weight: 400;
}

.xx-ov {
    margin: 9px 10px 0;
    font-size: 12px;
    font-weight: 700;
}

.xx-dash.is-real {
    padding-top: 7px;
}

.xx-dash.is-real .xx-tile {
    height: auto;
    min-height: 84px;
    padding: 9px 10px;
}

.xx-tt {
    margin-bottom: 7px;
    font-size: 10.5px;
    font-weight: 700;
}

.xx-tt small {
    display: block;
    margin-top: 1px;
    color: #6b7686;
    font-size: 8.5px;
    font-weight: 400;
}

.xx-pair {
    display: flex;
    gap: 10px;
}

.xx-pair .xx-kv + .xx-kv {
    padding-left: 10px;
    border-left: 1px solid #dfe3e8;
}

.xx-kv b {
    display: block;
    font-size: 13.5px;
    font-weight: 400;
}

.xx-kv span {
    display: block;
    margin-top: 2px;
    font-size: 8.5px;
    line-height: 1.25;
}

.xd .is-red {
    color: #c8102e;
}

/* invoice and bill lists */
.xx-btns.is-row {
    overflow: hidden;
    flex-wrap: nowrap;
}

.xx-tools {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 4px 0;
    color: #9aa3ae;
    font-size: 9px;
    white-space: nowrap;
}

.xx-tools > span {
    padding: 2px 6px;
    border: 1px solid #dfe3e8;
    border-radius: 3px;
    background: #f7f8f9;
}

.xx-tools .is-dark {
    border-color: #6b7686;
    background: #6b7686;
    color: #fff;
    font-weight: 700;
}

.xx-tools .is-box {
    background: #fff;
    color: #4a5462;
    font-weight: 700;
}

.xx-tools em {
    margin-left: auto;
    color: #4a5462;
    font-style: normal;
}

.xd .xx-list td.is-red {
    color: #c8102e;
}

.xx-new {
    background: #f3f4f6;
}

.xx-green {
    position: absolute;
    right: 10px;
    top: 10px;
    padding: 4px 9px;
    border-radius: 3px;
    background: #13804a;
    color: #fff;
    font-size: 9.5px;
    font-weight: 700;
}

.xx-h2 {
    margin: 1px 0 5px;
    font-size: 14px;
    font-weight: 700;
}

.xx-ntabs {
    display: flex;
    gap: 11px;
    margin: 0 -10px 7px;
    padding: 0 10px;
    border-bottom: 1px solid #dfe3e8;
    font-size: 9.5px;
    white-space: nowrap;
    overflow: hidden;
}

.xx-ntabs span {
    padding: 4px 0 5px;
}

.xx-ntabs .is-on {
    border-bottom: 2px solid #1c6dd0;
    color: #1c6dd0;
}

.xx-ntabs small {
    margin-left: 3px;
    color: #6b7686;
}

.xx-ncard {
    padding: 7px 8px;
    border: 1px solid #dfe3e8;
    border-radius: 5px;
    background: #fff;
}

.xx-search {
    margin-bottom: 4px;
    padding: 4px 8px;
    border-radius: 3px;
    background: #f1f3f5;
    color: #6b7686;
    font-size: 9px;
}

.xx-ncard .xx-list td {
    padding: 4px;
}

.xx-ncard .xx-list td:first-child {
    font-weight: 700;
}

/* Profit and Loss report */
.xp {
    background: #f3f4f6;
}

.xp-ctl {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin: 6px 0 8px;
}

.xp-ctl > div {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.xp-ctl .xx-lab {
    width: 100%;
}

.xp-ctl i {
    font-style: normal;
    font-weight: 400;
}

.xp-box {
    padding: 3px 6px;
    border: 1px solid #c9ced6;
    border-radius: 3px;
    background: #fff;
    font-size: 9px;
}

.xp-ctl .xx-btn {
    margin-left: auto;
}

.xp-rep {
    padding: 9px 12px 10px;
    border: 1px solid #dfe3e8;
    border-radius: 5px;
    background: #fff;
    font-size: 8.5px;
}

.xp-h {
    font-size: 13px;
    font-weight: 700;
}

.xp-sub {
    margin: 3px 0 4px;
    font-size: 9px;
    line-height: 1.35;
}

.xp-col {
    padding-bottom: 2px;
    border-bottom: 1px solid #1e2a3b;
    text-align: right;
}

.xp-r {
    display: flex;
    justify-content: space-between;
    padding: 1.5px 0 1.5px 8px;
    border-bottom: 1px solid #eceef1;
    line-height: 1.2;
}

.xp-r span:last-child {
    color: #2c6ecb;
}

.xp-r.is-sec {
    padding-left: 0;
    border-bottom-color: #1e2a3b;
    font-size: 9.5px;
    font-weight: 700;
}

.xp-r.is-total,
.xp-r.is-net {
    padding-left: 0;
    font-weight: 700;
}

.xp-r.is-total span:last-child,
.xp-r.is-net span:last-child {
    color: #1e2a3b;
}

.xp-r.is-net {
    border-bottom: 1px solid #1e2a3b;
    padding: 3px 4px;
    font-size: 9.5px;
}

/* Xero's "wants access to" page */
.xc {
    position: absolute;
    inset: 0;
    padding: 26px 56px;
    background: #fff;
    color: #1e2a3b;
    text-align: center;
}

.xc-logo {
    color: #13b5ea;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -.02em;
}

.xc-ask {
    margin: 10px 0 12px;
    font-size: 13px;
}

.xc-gap {
    height: 14px;
}

.xc hr {
    margin: 0 0 14px;
    border: 0;
    border-top: 1px solid #e3e6ea;
}

.xc-sel {
    display: flex;
    justify-content: space-between;
    padding: 7px 10px;
    border: 1px solid #9aa3ae;
    border-radius: 5px;
    background: #f1f3f5;
    color: #4a5462;
    font-size: 11.5px;
    text-align: left;
}

.xc-sel.is-picked {
    color: #1e2a3b;
    font-weight: 700;
}

.xc-h {
    margin: 14px 0 4px;
    font-size: 11.5px;
    font-weight: 700;
    text-align: left;
}

.xc p {
    margin: 0;
    color: #4a5462;
    font-size: 9.5px;
    line-height: 1.45;
    text-align: left;
}

.xc-go {
    margin-top: 16px;
    padding: 8px;
    border-radius: 5px;
    background: #2c6ecb;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    transition: opacity .2s, filter .15s;
}

.xc-go.is-off {
    opacity: .45;
}

.xc-go.is-pressed {
    filter: brightness(.85);
}

.xc-cx {
    margin-top: 10px;
    color: #2c6ecb;
    font-size: 11.5px;
    font-weight: 700;
}

/* InitD's connect page */
.xa-h2 {
    margin: 10px 0 4px;
    font-size: 11.5px;
    font-weight: 700;
}

.xa p b {
    color: #ececec;
}

.xa-sw {
    position: relative;
    padding: 7px 10px;
    border: 1px solid #3a3a3a;
    border-radius: 7px;
    font-size: 11px;
}

.xa-sw i {
    position: absolute;
    right: 10px;
    top: 8px;
    width: 24px;
    height: 13px;
    border-radius: 7px;
    background: #4a4a4a;
}

.xa-sw i::after {
    content: "";
    position: absolute;
    left: 2px;
    top: 2px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #e6e6e6;
}

.xa-note {
    margin-top: 7px;
    padding: 6px 9px;
    border: 1px solid #333;
    border-radius: 7px;
    background: #1f1f1f;
    color: #a0a0a0;
    font-size: 9px;
    line-height: 1.4;
}

/* the browser's Connected page */
.xr {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0b0b0b;
}

.xr-card {
    width: 230px;
    padding: 16px;
    border: 1px solid #232323;
    border-radius: 14px;
    background: #141414;
    text-align: center;
    animation: xd-up .45s ease both;
}

.xr-ic {
    width: 38px;
    height: 38px;
    margin: 0 auto;
    border-radius: 10px;
    background: #7a3a26;
    color: #e8d8cf;
    font-size: 22px;
    line-height: 38px;
}

.xr-h {
    margin-top: 8px;
    color: #c9c6be;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 22px;
}

.xr p {
    margin: 8px 0 12px;
    color: #6f6c66;
    font-size: 10px;
    line-height: 1.4;
}

.xr-bt {
    padding: 6px;
    border-radius: 7px;
    background: #4a4a48;
    color: #1a1a1a;
    font-size: 11px;
}

/* Claude's Settings › Connectors in the left window */
.xd-claude.is-settings .xd-composer {
    display: none;
}

.xd-cview {
    position: relative;
    height: 100%;
    opacity: 0;
    transition: opacity .3s ease;
}

.xd-cview.is-in {
    opacity: 1;
}

.xd-claude.is-settings .xd-msgs {
    position: relative;
    padding: 0;
}

.cv {
    padding: 14px 14px 0;
    font-size: 11.5px;
}

.cv-h {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 17px;
    font-weight: 500;
}

.cv-add {
    padding: 5px 10px;
    border-radius: 8px;
    background: #faf9f5;
    color: #1f1e1d;
    font-size: 11px;
    font-weight: 500;
    transition: filter .15s;
}

.cv-add.is-pressed,
.cv-btn.is-pressed {
    filter: brightness(.86);
}

.cv-tabs {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 2px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 8px;
    background: #30302e;
    font-size: 10.5px;
}

.cv-tabs span {
    padding: 3px 10px;
    border-radius: 6px;
    color: #a6a39b;
}

.cv-tabs .is-on {
    background: #3d3d3a;
    color: #faf9f5;
}

.cv-row {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 0;
    border-top: 1px solid rgba(255, 255, 255, .09);
    animation: xd-up .4s ease both;
}

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

.cv-row small {
    color: #a6a39b;
    font-size: 9.5px;
}

.cv-row em {
    padding: 0 5px;
    border-radius: 4px;
    background: #3a3a37;
    color: #d6d3cb;
    font-style: normal;
}

.cv-ic {
    flex: none;
    width: 24px;
    height: 24px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 7px;
    background: #30302e;
}

.cv-ok {
    color: #d6d3cb;
}

.cv-btn {
    padding: 4px 9px;
    border-radius: 7px;
    background: #3a3a37;
    font-size: 10.5px;
    transition: filter .15s;
}

.cv-dim {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 9, .62);
}

.cv-dlg {
    position: absolute;
    left: 10px;
    right: 10px;
    top: 34px;
    padding: 12px 14px 14px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 12px;
    background: #2b2b29;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .6);
    animation: xd-up .35s ease both;
}

.cv-dt {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
}

.cv-dt span {
    color: #a6a39b;
}

.cv-dlg p {
    margin: 4px 0 8px;
    color: #c9c6be;
    font-size: 9.5px;
    line-height: 1.4;
}

.cv-in {
    height: 26px;
    padding: 0 9px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    background: #30302e;
    font-size: 10.5px;
    line-height: 24px;
    white-space: nowrap;
    overflow: hidden;
}

.cv-btns {
    display: flex;
    justify-content: flex-end;
    gap: 7px;
    margin-top: 10px;
}

.cv-btns span {
    padding: 5px 11px;
    border-radius: 8px;
    background: #3a3a37;
    font-size: 11px;
    transition: filter .15s;
}

.cv-btns .is-white {
    background: #faf9f5;
    color: #1f1e1d;
    font-weight: 500;
}

.cv-btns .is-pressed {
    filter: brightness(.86);
}

/* ---------- cursor ---------- */

.xd-cursor {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 20;
    width: 16px;
    height: 19px;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .6));
    opacity: 0;
    transform: translate(560px, 420px);
    transition: transform .6s cubic-bezier(.4, 0, .2, 1), opacity .25s;
    pointer-events: none;
}

.xd-cursor.is-on {
    opacity: 1;
}

.xd-click {
    position: absolute;
    left: -14px;
    top: -14px;
    z-index: 19;
    width: 28px;
    height: 28px;
    pointer-events: none;
}

.xd-click::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid var(--xd-lime);
    border-radius: 50%;
    opacity: 0;
}

.xd-click.is-go::before {
    animation: xd-click .45s ease-out;
}

/* ---------- caption ---------- */

.xd-caption {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .35rem 1rem;
    margin-top: .7rem;
    color: #64748b;
    font-size: .82rem;
    line-height: 1.45;
}

.xd-caption a {
    color: #2f6f5e;
    font-weight: 600;
    white-space: nowrap;
}

/* ---------- phones: the chat alone ---------- */

.xd.is-compact .xd-stage {
    height: auto !important;
    padding: 10px;
}

.xd.is-compact .xd-canvas {
    width: auto;
    height: auto;
}

.xd.is-compact .xd-xero {
    display: none;
}

.xd.is-compact .xd-win.xd-claude {
    position: relative;
    left: 0;
    top: 0;
    width: auto;
    height: 440px;
}

.xd.is-compact .xd-bub {
    font-size: 13px;
}

.xd.is-compact .xd-ai {
    font-size: 13.5px;
}

.xd.is-compact .xd-table {
    font-size: 11px;
}

.xd.is-compact .xd-tr span {
    padding: 3px 5px;
}

.xd.is-compact .xd-tool,
.xd.is-compact .xd-approve-t,
.xd.is-compact .xd-ab {
    font-size: 11.5px;
}

.xd.is-compact .xd-input {
    font-size: 12.5px;
}

/* ---------- motion ---------- */

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

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

@keyframes xd-ring {
    from {
        box-shadow: none;
    }

    to {
        box-shadow: var(--xd-ring);
    }
}

@keyframes xd-row {
    from {
        background: transparent;
    }

    to {
        background: #eef9d9;
        box-shadow: inset 3px 0 0 #8fd14f;
    }
}

@keyframes xd-up {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes xd-click {
    0% {
        opacity: 1;
        transform: scale(.4);
    }

    100% {
        opacity: 0;
        transform: scale(1.5);
    }
}
