/* X Layer workspace. All overrides are scoped to this application. */
html[data-application="xlayer"] {
  --primary:#245d42;--on-primary:#fff;--primary-container:#e9f1e8;--on-primary-container:#214d35;
  --bg:#f6f7f4;--surface:#fff;--surface-1:#f7f8f5;--surface-2:#eef1eb;--surface-3:#e7ebe3;
  --on-surface:#202720;--on-surface-variant:#606b61;--outline:#929e93;--outline-variant:#dfe5dc;
  --success:#286341;--error:#b32c36;--xl-accent:#d2f58a;--xl-hero:#1d2b24;--xl-hero-text:#f6f8ef;
  --xl-hero-muted:#bdcdbf;--xl-hero-line:#4b6051;--xl-motion:160ms;--side:224px;
}
html[data-application="xlayer"][data-theme="dark"] {
  --primary:#c2e997;--on-primary:#1b2b18;--primary-container:#2d3e2a;--on-primary-container:#d6edc3;
  --bg:#131a16;--surface:#1a221d;--surface-1:#1e2821;--surface-2:#263228;--surface-3:#303e32;
  --on-surface:#eef3e9;--on-surface-variant:#aab9aa;--outline:#6d826f;--outline-variant:#344538;
  --success:#b0dfaa;--error:#ffacb0;--xl-hero:#202e24;--xl-hero-line:#4b6051;
}
html[data-application="xlayer"] #walletCard,html[data-application="xlayer"] .askwrap,
html[data-application="xlayer"] .engine,html[data-application="xlayer"] #lingoChip {display:none!important}
html[data-application="xlayer"] .sidebar {padding:28px 16px}
html[data-application="xlayer"] .brand {margin-bottom:40px;gap:10px}
html[data-application="xlayer"] .brand .mark {width:38px;height:42px;border-radius:11px;background:var(--on-surface);color:var(--surface)}
html[data-application="xlayer"] .brand .mark svg {width:25px;height:25px}
html[data-application="xlayer"] .brand .txt {font-size:14px}
html[data-application="xlayer"] .brand .txt b {font-size:22px}
html[data-application="xlayer"] .brand .sub {font-size:9px;letter-spacing:.1em}
html[data-application="xlayer"] .rail {gap:8px}
html[data-application="xlayer"] .rail .item {min-height:46px;font-size:13px;border-radius:8px}
html[data-application="xlayer"] .rail .item.active {box-shadow:none;background:var(--primary-container);color:var(--on-primary-container)}
html[data-application="xlayer"] .appbar {padding-inline:32px;background:var(--surface);backdrop-filter:none}
html[data-application="xlayer"] .greet h1 {font-size:14px}
html[data-application="xlayer"] .icon-btn {width:44px;height:44px;border:1px solid var(--outline-variant)}
html[data-application="xlayer"] .icon-btn svg {width:20px;height:20px}
html[data-application="xlayer"] .stdbar {gap:4px;padding:6px 22px}
html[data-application="xlayer"] .stdbar .std {min-height:30px;font-size:11px}
.xl.scroll {width:100%;height:100%;margin:0;padding:32px 36px 24px;overflow:auto;scroll-padding:24px;overscroll-behavior:contain}
.xl-content {width:100%;max-width:1240px;margin-inline:auto}
.xl [hidden] {display:none!important}
.xl .xl-icon {width:18px;height:18px;flex-shrink:0;vertical-align:middle}
.xl-heading {display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:22px}
.xl h2 {font-size:clamp(26px,2.6vw,36px);line-height:1.18;margin:8px 0 10px;letter-spacing:-.045em;font-weight:650;text-wrap:balance}
.xl h3 {font-size:20px;margin:0;letter-spacing:-.025em;font-weight:650}
.xl h4 {font-size:18px;margin:22px 0 10px}
.xl p {line-height:1.65}
.xl-heading p {font-size:14px;margin:0}
.xl-eyebrow {font-size:10px;letter-spacing:.13em;font-weight:650;color:var(--on-surface-variant)}
.xl-actions,.xl-tags {display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.xl-network-bar {display:flex;justify-content:space-between;gap:12px 24px;flex-wrap:wrap;align-items:center;border-block:1px solid var(--outline-variant);padding:12px 0;margin-bottom:24px;color:var(--on-surface-variant);font-size:12px}
.xl-network-bar>span:first-child {display:flex;align-items:center;gap:8px;color:var(--on-surface);font-weight:500}
.xl-chain-id {color:var(--on-surface-variant);font-weight:400}
.xl-badge {display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border-radius:6px;background:var(--surface-1);border:1px solid var(--outline-variant);font-size:11px;line-height:1.5;white-space:nowrap;color:var(--on-surface-variant)}
.xl-badge .xl-icon {width:14px;height:14px}
.xl-local {background:var(--primary-container);color:var(--on-primary-container);border-color:transparent;min-height:32px}
.xl-dot {width:6px;height:6px;border-radius:50%;background:currentColor}
.xl-hero {display:grid;grid-template-columns:minmax(0,1.15fr) minmax(270px,.85fr);gap:30px;align-items:center;background:var(--xl-hero);color:var(--xl-hero-text);border:1px solid var(--xl-hero-line);border-radius:16px;padding:36px}
.xl-hero .xl-eyebrow {color:var(--xl-hero-muted);font-size:9px;letter-spacing:.15em}
.xl-hero h3 {font-size:clamp(30px,3.1vw,45px);line-height:1.12;letter-spacing:-.045em;font-weight:550;margin:16px 0}
.xl-hero h3 span {color:var(--xl-accent)}
.xl-hero p {color:var(--xl-hero-muted);font-size:13px;max-width:46ch;margin:0 0 24px}
.xl .btn.xl-hero-cta {background:var(--xl-accent);color:var(--xl-hero);border-color:var(--xl-accent)}
.xl-hero-link {display:inline-flex;align-items:center;gap:6px;min-height:44px;margin-left:14px;color:var(--xl-hero-text);font-size:12px;text-decoration:none}
.xl-hero-link:hover {text-decoration:underline;text-underline-offset:4px}
.xl-flow {border:1px solid var(--xl-hero-line);border-radius:12px;background:color-mix(in srgb,var(--xl-hero-text) 3%,transparent);padding:20px}
.xl-flow-head {display:flex;justify-content:space-between;gap:12px;font-size:9px;letter-spacing:.08em;color:var(--xl-hero-muted)}
.xl-flow-nodes {display:flex;align-items:center;justify-content:space-around;gap:12px;padding:28px 0}
.xl-flow-nodes>div {display:flex;align-items:center;flex-direction:column;gap:7px}
.xl-flow-avatar {display:grid;place-items:center;width:52px;height:52px;border-radius:14px;border:1px solid var(--xl-hero-line);font-size:22px;margin-bottom:4px;font-weight:500}
.xl-flow-avatar.provider {background:var(--xl-accent);color:var(--xl-hero);border-color:var(--xl-accent)}
.xl-flow-nodes strong {font-size:12px;font-weight:550}
.xl-flow-nodes small {font-size:10px;color:var(--xl-hero-muted)}
.xl-flow-connector {color:var(--xl-accent);padding-bottom:40px}
.xl-flow-footer {border-top:1px solid var(--xl-hero-line);padding-top:14px;display:flex;align-items:center;justify-content:center;gap:7px;font-size:10px;color:var(--xl-hero-muted)}
.xl-flow-footer .xl-icon {width:14px;height:14px}
.xl-metrics {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:24px 0;border-bottom:1px solid var(--outline-variant);margin-bottom:32px;gap:20px}
.xl-metrics>div {padding-left:24px;border-left:1px solid var(--outline-variant)}
.xl-metrics>div:first-child {padding-left:0;border-left:0}
.xl-metrics span {display:block;color:var(--on-surface-variant);font-size:12px;margin-bottom:8px}
.xl-metrics strong {font-size:26px;letter-spacing:-.04em;line-height:1.1;font-weight:550;font-variant-numeric:tabular-nums}
.xl-metrics small {font-size:12px;letter-spacing:0;font-weight:400;color:var(--on-surface-variant)}
.xl-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:16px 0 32px;align-items:start}
.xl-market-grid {grid-template-columns:minmax(0,1.08fr) minmax(360px,.92fr)}
.xl-market-grid>div>.xl-job {margin:16px 0}
.xl-disclosure {border-left:3px solid var(--primary);margin-top:0}
.xl-disclosure strong {color:var(--on-surface)}
.xl-panel ul,.xl-panel ol {padding-left:22px;font-size:13px;line-height:1.7}
.xl-panel li+li {margin-top:6px}
.xl-agent,.xl-panel,.xl-job {min-width:0;border:1px solid var(--outline-variant);border-radius:12px;padding:24px;background:var(--surface)}
.xl-agent {transition:border-color var(--xl-motion) ease,box-shadow var(--xl-motion) ease}
.xl-agent:hover {border-color:var(--outline);box-shadow:0 5px 20px color-mix(in srgb,var(--on-surface) 4%,transparent)}
.xl-agent-top,.xl-section-head {display:flex;align-items:center;justify-content:space-between;gap:16px}
.xl-monogram {display:grid;place-items:center;width:42px;height:42px;border:1px solid var(--outline-variant);background:var(--surface-2);border-radius:11px;font-size:20px;font-weight:550}
.xl-monogram.provider {color:var(--on-primary-container);background:var(--primary-container)}
.xl-role {display:block;margin:20px 0 7px;font-size:9px}
.xl-agent h3 {font-size:19px}
.xl-agent>p {font-size:13px;max-width:57ch;min-height:43px;margin:10px 0 18px}
.xl-tag {font-size:11px;background:var(--surface-1);border-radius:5px;padding:5px 9px;color:var(--on-surface-variant)}
.xl details {border-top:1px solid var(--outline-variant);margin-top:20px;font-size:12px}
.xl summary {display:flex;align-items:center;justify-content:space-between;cursor:pointer;min-height:44px;padding:14px 0 0;color:var(--on-surface-variant);list-style:none}
.xl summary::-webkit-details-marker {display:none}
.xl summary .xl-icon {width:15px;height:15px;transition:transform var(--xl-motion) ease}
.xl details[open] summary .xl-icon {transform:rotate(90deg)}
.xl-uri {font-size:11px;overflow-wrap:anywhere;max-height:120px;overflow:auto}
.xl-section-label p {font-size:13px;margin:5px 0 0}
.xl-panel-title {display:flex;align-items:center;gap:12px;min-width:0}
.xl-panel-title h3 {margin-top:4px}
.xl-panel-title .xl-eyebrow {font-size:9px;letter-spacing:.09em}
.xl-panel-icon,.xl-empty-icon {display:grid;place-items:center;width:40px;height:40px;border:1px solid var(--outline-variant);background:var(--surface-1);border-radius:10px;flex:none}
.xl-price {font-size:21px;font-weight:600;letter-spacing:-.03em;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.xl-price small {display:block;font-size:10px;font-weight:400;letter-spacing:0;color:var(--on-surface-variant)}
.xl-panel>p.muted {font-size:13px;margin:18px 0}
.xl-panel label {display:block;font-size:12px;font-weight:550;margin:16px 0 7px}
.xl .field {width:100%;min-width:0;min-height:44px;background:var(--surface-1);font-size:13px;border:1px solid var(--outline);border-radius:7px;padding:11px 12px;line-height:1.6}
.xl textarea {resize:vertical;min-height:100px}
.xl textarea#xl-text {min-height:174px}
.xl .field[aria-invalid="true"] {border-color:var(--error)}
.xl-fields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.xl-help {font-size:11px;color:var(--on-surface-variant)}
.xl-help .xl-icon {width:14px;height:14px;margin-right:3px}
.xl-panel-bottom {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-top:24px;padding-top:18px;border-top:1px solid var(--outline-variant)}
.xl-demos {align-items:stretch}
.xl-demos>.xl-panel {display:flex;flex-direction:column}
.xl-demos .xl-panel-bottom {margin-top:auto;padding-top:20px}
.xl-demos .xl-fields,.xl-demos #xl-text-help {margin-bottom:22px}
.xl .btn {min-height:44px;border:1px solid transparent;border-radius:7px;padding:10px 15px;font-size:12px;font-weight:550;transition:background var(--xl-motion) ease,border-color var(--xl-motion) ease,color var(--xl-motion) ease;box-shadow:none;text-decoration:none;white-space:normal;text-align:center}
.xl .btn.filled {background:var(--primary);color:var(--on-primary)}
.xl .btn.outlined {background:var(--surface);color:var(--on-surface);border-color:var(--outline)}
.xl .btn.text {background:transparent;color:var(--on-surface-variant)}
.xl .btn.danger {background:transparent;color:var(--error);border-color:color-mix(in srgb,var(--error) 50%,var(--surface))}
.xl .btn:hover:not(:disabled) {background:var(--surface-2);color:var(--on-surface);filter:none;transform:none;box-shadow:none}
.xl .btn.filled:hover:not(:disabled) {background:color-mix(in srgb,var(--primary) 88%,var(--on-primary));color:var(--on-primary)}
.xl .btn:active:not(:disabled) {opacity:.8}
.xl button:disabled {opacity:.5;cursor:not-allowed}
.xl button[aria-busy="true"] {cursor:progress;opacity:.8}
.xl :where(button,a,input,select,textarea,summary):focus-visible {outline:2px solid var(--primary);outline-offset:3px}
.xl-hero :where(button,a):focus-visible {outline-color:var(--xl-accent)}
.xl-note {padding:13px 16px;border-radius:8px;background:var(--surface-2);font-size:13px;line-height:1.6;margin:16px 0;overflow-wrap:anywhere}
.xl-note.bad,.xl-feedback.bad {background:color-mix(in srgb,var(--error) 8%,var(--surface));color:var(--error)}
.xl-note.ok,.xl-feedback.ok {color:var(--success)}
.xl-feedback {padding:10px 12px;border-radius:7px;background:var(--surface-1);font-size:12px;overflow-wrap:anywhere}
.xl-field-error {color:var(--error);font-size:12px;margin:5px 0}
.xl-status {display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:550;color:var(--success);background:var(--primary-container);padding:5px 10px;border-radius:6px}
.xl-status[data-status="Rejected"],.xl-status[data-status="Expired"] {color:var(--error);background:color-mix(in srgb,var(--error) 8%,var(--surface))}
.xl-result {margin-top:20px;padding:16px;background:var(--surface-1);border:1px solid var(--outline-variant);border-radius:8px;overflow-wrap:anywhere;white-space:pre-wrap;font-size:13px}
.xl-details {display:grid;grid-template-columns:minmax(100px,auto) minmax(0,1fr);gap:12px 20px;font-size:12px;margin:22px 0}
.xl-details dt {color:var(--on-surface-variant)}
.xl-details dd {margin:0;overflow-wrap:anywhere}
.xl-link {color:var(--primary);text-underline-offset:3px}
.xl code {font-size:11px;overflow-wrap:anywhere}
.xl-job-list {margin:32px 0}
.xl-job {margin:16px 0}
.xl-job>p {font-size:14px;overflow-wrap:anywhere}
.xl-count {display:inline-grid;place-items:center;border:1px solid var(--outline-variant);background:var(--surface);min-width:26px;height:26px;margin-left:6px;border-radius:6px;font-size:12px;color:var(--on-surface-variant)}
.xl-progress {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;list-style:none;margin:24px 0;padding:0}
.xl-progress li {display:flex;gap:7px;align-items:center;font-size:11px;color:var(--on-surface-variant);border-top:2px solid var(--outline-variant);padding-top:10px}
.xl-progress li.done {border-color:var(--primary);color:var(--primary)}
.xl-progress li[aria-current] {font-weight:650}
.xl-progress li>span {display:grid;place-items:center;width:22px;height:22px;background:var(--surface-2);border-radius:50%;flex:none}
.xl-progress .xl-icon {width:13px;height:13px}
.xl-txs {display:flex;flex-wrap:wrap;gap:12px 20px;font-size:11px;margin-top:20px;color:var(--on-surface-variant)}
.xl-empty {display:flex;align-items:center;flex-direction:column;justify-content:center;text-align:center;padding:36px 24px;border-style:dashed}
.xl-empty h4 {margin:16px 0 4px}
.xl-empty p {max-width:46ch;font-size:13px;margin:4px 0 20px}
.xl-empty-icon {width:44px;height:44px}
.xl-page-footer {display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;border-top:1px solid var(--outline-variant);padding-top:20px;color:var(--on-surface-variant);font-size:10px}
.xl-loading {display:flex;align-items:center;gap:12px;padding:20px 0;font-size:14px;color:var(--on-surface-variant)}
.xl-spinner {display:inline-block;width:16px;height:16px;flex:none;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:xl-spin .8s linear infinite}
.xl-skeleton {min-height:240px;background:var(--surface-2);border:1px solid var(--outline-variant);border-radius:12px}
@keyframes xl-spin {to {transform:rotate(360deg)}}
@media(min-width:641px) and (max-width:1100px) {
  html[data-application="xlayer"] {--side:76px}
  html[data-application="xlayer"] .sidebar {padding:24px 12px}
  html[data-application="xlayer"] .sidebar .brand {padding:0;justify-content:center}
  html[data-application="xlayer"] .sidebar .brand .txt,html[data-application="xlayer"] .rail .item .lbl {display:none}
  html[data-application="xlayer"] .rail .item {justify-content:center;padding:12px 0}
  .xl.scroll {padding:28px 24px}
  .xl-hero {padding:28px;gap:24px}
  .xl-hero-link {margin:8px 0 0;display:flex}
}
@media(max-width:800px) {
  .xl-heading {align-items:flex-start;flex-wrap:wrap;gap:16px}
  .xl-hero {grid-template-columns:minmax(0,1fr)}
  .xl-flow {display:none}
  .xl-hero p {max-width:54ch}
  .xl-hero-link {display:inline-flex;margin:0 0 0 14px}
  .xl-grid {grid-template-columns:minmax(0,1fr)}
  .xl-market-grid {grid-template-columns:minmax(0,1fr)}
  .xl-metrics {gap:12px}
  .xl-metrics>div {padding-left:12px}
  .xl-agent>p {min-height:0}
}
@media(max-width:640px) {
  html[data-application="xlayer"] {--side:0px}
  html[data-application="xlayer"] .sidebar {padding:5px 8px max(5px,env(safe-area-inset-bottom))}
  html[data-application="xlayer"] .rail {gap:8px}
  html[data-application="xlayer"] .rail .item {min-height:54px;gap:4px;padding:6px}
  html[data-application="xlayer"] .rail .item .mobile-lbl {font-size:11px}
  html[data-application="xlayer"] .appbar {padding-inline:16px;gap:8px}
  html[data-application="xlayer"] .greet h1 {font-size:13px}
  html[data-application="xlayer"] .appbar .spacer {display:none}
  .xl.scroll {padding:24px 16px;scroll-padding:16px}
  .xl-heading {gap:12px;margin-bottom:16px}
  .xl-heading p {font-size:13px}
  .xl-heading>.xl-actions {width:100%;justify-content:space-between}
  .xl-network-bar {font-size:11px;margin-bottom:20px;gap:6px}
  .xl-chain-id {display:none}
  .xl-hero {padding:26px 22px;border-radius:12px}
  .xl .xl-hero h3 {font-size:32px}
  .xl-hero-link {display:flex;margin:8px 0 0}
  .xl-metrics {grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 12px;padding-block:22px;margin-bottom:26px}
  .xl-metrics>div:nth-child(3) {padding-left:0;border:0}
  .xl-metrics strong {font-size:25px}
  .xl-agent,.xl-panel,.xl-job {padding:20px}
  .xl-grid {gap:16px;margin-bottom:28px}
  .xl-section-head {flex-wrap:wrap;gap:12px}
  .xl-panel .xl-section-head {align-items:flex-start}
  .xl h3 {font-size:19px}
  .xl-panel-title {gap:9px}
  .xl-panel-title h3 {font-size:18px}
  .xl-panel-title .xl-eyebrow {font-size:8px}
  .xl-panel-icon {width:34px;height:38px}
  .xl .field {font-size:16px}
  .xl-panel-bottom {align-items:stretch}
  .xl-panel-bottom .btn {width:100%}
  .xl-details {grid-template-columns:1fr;gap:5px}
  .xl-details dd {margin-bottom:8px}
  .xl-progress {gap:6px}
  .xl-progress li {flex-direction:column;align-items:flex-start;font-size:10px}
  .xl-job .xl-actions .btn {flex:1 1 130px}
  .xl-page-footer {font-size:10px}
}
@media(prefers-reduced-motion:reduce) {
  html[data-application="xlayer"] *,html[data-application="xlayer"] *::before,html[data-application="xlayer"] *::after {animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
