:root {
  --text: #0f172a;
  --muted: #5c5c5c;
  --border: #e2e4e8;
  --primary-soft: #eef6f1;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --green: #217346;
  --green-d: #1a5c38;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; overflow: hidden; }
body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.5;
  background: #f6f8fc;
}
a { color: inherit; text-decoration: none; }

.xl-app {
  height: 100%;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.xl-appbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.xl-appbar-brand {
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}
.xl-use-cases {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}
.xl-use-cases:hover { color: var(--green); }
.xl-appbar-meta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}
.xl-appbar-auth {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 6px;
  background: var(--green);
  color: #fff !important;
  font-weight: 650;
  font-size: 13px;
}
.xl-appbar-auth:hover { background: var(--green-d); }

.xl-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding: 0.5rem 1rem 0.85rem;
  width: calc(100% - 24px);
  margin: 0 auto;
}
.xl-work {
  flex: 1;
  min-height: 0;
  height: auto;
  max-height: none;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  border: 1px solid #c5c5c5;
  background: #fff;
  overflow: hidden;
  position: relative;
  --xl-chat-h: 36vh;
}
.xl-rail {
  flex: 0 0 200px;
  width: 200px;
  height: 100%;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  background: #f3f2f1;
  border-right: 1px solid #c5c5c5;
  min-height: 0;
}
.xl-work.is-rail-collapsed .xl-rail { flex-basis: 48px; width: 48px; }
.xl-rail-hd {
  display: flex; align-items: center; gap: 6px;
  padding: 8px; flex-shrink: 0;
}
.xl-rail-icon, .xl-rail-new {
  border: 0; background: transparent; cursor: pointer; border-radius: 6px;
}
.xl-rail-icon {
  width: 32px; height: 32px; color: #3d3d3d;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.xl-rail-icon:hover, .xl-rail-new:hover { background: #e6e6e6; }
.xl-rail-new {
  flex: 1; height: 32px; color: var(--green); font: 650 13px/1 inherit;
  text-align: left; padding: 0 6px;
}
.xl-work.is-rail-collapsed .xl-rail-new { display: none; }
.xl-work.is-rail-collapsed .xl-rail-list { display: none; }
.xl-rail-list { flex: 1; overflow: auto; padding: 4px 8px 12px; min-height: 0; }
.xl-rail-group { margin: 8px 4px 4px; font-size: 11px; color: #6b6b6b; font-weight: 650; }
.xl-rail-item {
  display: flex;
  align-items: center;
  gap: 2px;
  border-radius: 6px;
  min-width: 0;
}
.xl-rail-item:hover,
.xl-rail-item:focus-within { background: #e6e6e6; }
.xl-rail-item.is-on { background: #fff; }
.xl-rail-item.is-on:hover,
.xl-rail-item.is-on:focus-within { background: #fff; }
.xl-rail-item-open {
  flex: 1;
  min-width: 0;
  text-align: left;
  border: 0;
  border-radius: 6px;
  background: transparent;
  padding: 8px 6px 8px 10px;
  font: 13px/1.3 inherit;
  color: #1f1f1f;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.xl-rail-item.is-on .xl-rail-item-open { font-weight: 650; }
.xl-rail-item-rename,
.xl-rail-item-delete {
  flex: none;
  display: none;
  border: 0;
  border-radius: 4px;
  background: transparent;
  font: 650 11px/1 inherit;
  padding: 4px 6px;
  margin-right: 4px;
  cursor: pointer;
  white-space: nowrap;
}
.xl-rail-item-rename { color: #217346; }
.xl-rail-item-rename:hover { background: #d9eadb; }
.xl-rail-item-delete { color: #c42b1c; }
.xl-rail-item-delete:hover { background: #fde7e9; }
.xl-rail-item:hover .xl-rail-item-rename,
.xl-rail-item:focus-within .xl-rail-item-rename,
.xl-rail-item:hover .xl-rail-item-delete,
.xl-rail-item:focus-within .xl-rail-item-delete { display: inline-flex; }
.xl-rail-item-input {
  flex: 1;
  min-width: 0;
  margin: 4px 6px;
  height: 28px;
  border: 1px solid #217346;
  border-radius: 4px;
  padding: 0 8px;
  font: 13px/1.3 inherit;
  background: #fff;
}
@media (hover: none) {
  .xl-rail-item.is-on .xl-rail-item-rename,
  .xl-rail-item.is-on .xl-rail-item-delete { display: inline-flex; }
}

.xl-book {
  flex: 1 1 auto;
  min-width: 280px;
  min-height: 0;
  height: 100%;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.xl-toolbar {
  display: flex; align-items: center; gap: 4px;
  height: 36px; padding: 0 0 0 12px;
  background: #f3f2f1; border-bottom: 1px solid #c5c5c5; flex-shrink: 0;
}
.xl-sheet-meta {
  font-size: 12px; color: #5c5c5c; min-width: 0; flex: 1;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.xl-sheet-meta b { color: #1f1f1f; font-weight: 650; }
.xl-tool-btn {
  border: 0;
  background: transparent;
  color: #217346;
  font: 650 12px/1 inherit;
  height: 28px;
  padding: 0 8px;
  margin-right: 4px;
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
}
.xl-tool-btn:hover { background: #e6e6e6; }
.xl-dl {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  border: 0; border-left: 1px solid var(--green-d);
  background: var(--green); color: #fff; padding: 0 14px; height: 36px;
  font-size: 13px; font-weight: 650; cursor: pointer; flex-shrink: 0;
}
.xl-dl:hover { background: var(--green-d); }
.xl-dl:disabled { opacity: 0.45; cursor: not-allowed; }

.xl-grid-wrap {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #fff;
}
.xl-grid-wrap .tabulator {
  height: 100%;
  font-size: 13px;
  border: 0;
  background: #fff;
}
.xl-grid-wrap .tabulator-header {
  background: #f3f3f3;
  border-bottom: 1px solid #d0d0d0;
  color: #5c5c5c;
  font-weight: 600;
}
.xl-grid-wrap .tabulator-col {
  background: #f3f3f3;
  border-right: 1px solid #d0d0d0;
}
.xl-grid-wrap .tabulator-col-content { padding: 4px 8px; }
.xl-grid-wrap .tabulator-row .tabulator-cell {
  border-right: 1px solid #d0d0d0;
  border-bottom: 1px solid #d0d0d0;
  background: #fff;
  padding: 0 8px;
  height: 28px;
  line-height: 28px;
}
.xl-grid-wrap .tabulator-row.tabulator-row-even .tabulator-cell {
  background: #fff;
}
.xl-grid-wrap .tabulator-cell.tabulator-editing {
  outline: 2px solid #217346;
  outline-offset: -2px;
}
.xl-grid-wrap .tabulator-col.xl-rownum,
.xl-grid-wrap .tabulator-cell.xl-rownum {
  background: #f3f3f3 !important;
  text-align: center;
  color: #5c5c5c;
  font-weight: 600;
}
.xl-grid-wrap .tabulator-row.xl-header-row .tabulator-cell:not(.xl-rownum) {
  background: #f8f8f8 !important;
  font-weight: 600;
  color: #333;
}
/* vendor Tabulator 默认灰底；强制数据区白底，列字母/行号保持灰条 */
.xl-grid-wrap .tabulator,
.xl-grid-wrap .tabulator-tableholder,
.xl-grid-wrap .tabulator-table {
  background: #fff !important;
}
.xl-grid-wrap .tabulator-row .tabulator-cell {
  background: #fff !important;
}
.xl-grid-wrap .tabulator-header,
.xl-grid-wrap .tabulator-col,
.xl-grid-wrap .tabulator-cell.xl-rownum {
  background: #f3f3f3 !important;
}
.xl-tabbar {
  display: flex; background: #f3f2f1; border-top: 1px solid #c5c5c5;
  min-height: 30px; flex-shrink: 0;
}
.xl-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  border: 0;
  border-right: 1px solid #c5c5c5;
  background: transparent;
  padding: 0 22px 0 16px;
  font-size: 12px;
  cursor: pointer;
  min-height: 30px;
}
.xl-tab.is-on { background: #fff; border-top: 2px solid var(--green); font-weight: 600; }
.xl-tab-add { color: var(--green); font-weight: 700; padding: 0 16px; }
.xl-tab-close {
  position: absolute;
  top: 1px;
  right: 2px;
  width: 14px;
  height: 14px;
  font-size: 12px;
  line-height: 14px;
  text-align: center;
  border-radius: 2px;
  color: #6b6b6b;
}
.xl-tab-close:hover { color: #c42b1c; background: #f3d6d2; }

.xl-vsplit {
  height: 6px; flex-shrink: 0; cursor: row-resize; background: #c8c8c8;
  border-top: 1px solid #c5c5c5; border-bottom: 1px solid #c5c5c5;
}
.xl-vsplit:hover, .xl-vsplit.is-drag { background: var(--green); }
.xl-work.is-plots-collapsed .xl-vsplit { display: none; }
.xl-plots {
  flex: 0 0 220px; height: 220px; min-height: 0;
  display: flex; flex-direction: column; background: #f3f6f4; overflow: hidden;
  border-top: 2px solid var(--green);
}
.xl-work.is-plots-collapsed .xl-plots {
  flex-basis: 36px !important; height: 36px !important;
}
.xl-work.is-plots-collapsed .xl-plots-grid { display: none; }
.xl-work.is-plots-collapsed .xl-plots-hide { display: none; }
.xl-work.is-grid-collapsed .xl-grid-wrap,
.xl-work.is-grid-collapsed .xl-tabbar { display: none; }
.xl-work.is-grid-collapsed .xl-vsplit { display: none; }
.xl-work.is-grid-collapsed .xl-plots {
  flex: 1 1 auto !important;
  height: auto !important;
  min-height: 120px;
}
.xl-work.is-grid-collapsed.is-plots-collapsed .xl-plots {
  flex-basis: 36px !important;
  height: 36px !important;
  min-height: 0;
}
.xl-plots-empty {
  margin: 12px; flex: 1;
  border: 1px dashed #9cbaa8; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: #3d6b50; font-size: 13px; text-align: center; line-height: 1.5;
  background: repeating-linear-gradient(-45deg, #fff, #fff 8px, #f3f8f5 8px, #f3f8f5 16px);
  min-height: 120px;
}
.xl-plots-hd {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; font-size: 12px; font-weight: 650;
  border-bottom: 1px solid #e4e4e4; flex-shrink: 0; background: #f3f2f1;
}
.xl-plots-hd span { color: var(--muted); font-weight: 400; }
.xl-plots-hide {
  margin-left: auto; border: 0; background: transparent; color: var(--green);
  font: 650 12px/1 inherit; cursor: pointer; padding: 4px 6px; border-radius: 4px;
}
.xl-plots-hide:hover { background: #e6e6e6; }
.xl-plots-grid {
  flex: 1; overflow: auto; padding: 10px; display: flex; flex-wrap: wrap; gap: 10px;
  align-content: flex-start;
}
.xl-plot-card {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 0 0 280px;
  width: 280px;
  height: 200px;
  margin: 0;
  background: #fff;
  border: 1px solid #d8d8d8;
  border-radius: 4px;
  overflow: hidden;
  box-sizing: border-box;
}
.xl-plot-card:hover { border-color: var(--green); }
.xl-plot-card figcaption,
.xl-plot-card .xl-plot-cap {
  flex: 0 0 auto;
  margin: 0;
  padding: 6px 28px 6px 8px;
  font-size: 12px;
  font-weight: 650;
  border-bottom: 1px solid #eee;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.xl-plot-close {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 3;
  width: 22px;
  height: 22px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #666;
  font: 16px/1 inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.xl-plot-close:hover {
  background: #fee;
  color: #c42b1c;
}
.xl-plot-card .xl-plot-body {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  background: #fff;
}
.xl-plot-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}
.xl-plot-resize {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 14px;
  height: 14px;
  cursor: nwse-resize;
  border-right: 2px solid #9ca3af;
  border-bottom: 2px solid #9ca3af;
  border-radius: 0 0 2px 0;
  opacity: 0.75;
  touch-action: none;
  z-index: 2;
}
.xl-plot-resize:hover { opacity: 1; border-color: #217346; }

.xl-split {
  width: 6px; flex-shrink: 0; cursor: col-resize; background: #e4e4e4;
  border-left: 1px solid #c5c5c5; border-right: 1px solid #c5c5c5;
}
.xl-split:hover, .xl-split.is-drag { background: var(--green); }

.xl-chat {
  flex: 0 0 380px;
  width: 380px;
  min-width: 260px;
  max-width: 56%;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  background: #f7f7f7;
}
.xl-chat-hd {
  padding: 0.5rem 0.7rem 0.5rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.xl-chat-hd-top {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
#xl-chat-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.88rem;
  font-weight: 650;
}
.xl-quota {
  flex: none;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.75rem;
  white-space: nowrap;
}
.xl-lead {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.4;
}
.xl-help {
  margin-top: 0.45rem;
  color: #3d3d3d;
  font-size: 0.75rem;
  line-height: 1.5;
  font-weight: 400;
}
.xl-help p { margin: 0 0 0.35rem; }
.xl-help-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #217346;
  font: 650 12px/1 inherit;
  padding: 4px 6px;
  cursor: pointer;
  flex-shrink: 0;
}
.xl-help-toggle:hover { background: #e6e6e6; }
.xl-help-toggle svg { transition: transform 0.15s ease; }
.xl-help-toggle.is-open svg { transform: rotate(180deg); }
#xl-chat-log {
  flex: 1 1 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0.7rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 0;
}
.xl-msg { font-size: 0.82rem; line-height: 1.5; padding: 0.5rem 0.6rem; border-radius: 6px; }
.xl-msg-user { background: var(--primary-soft); align-self: flex-end; max-width: 92%; }
.xl-msg-ai { background: #fff; border: 1px solid var(--border); }
.xl-msg-sys { color: var(--muted); font-size: 0.78rem; }
.xl-msg-sys a { color: #217346; font-weight: 650; }
.xl-msg-pending {
  color: var(--muted);
  font-style: italic;
  animation: xl-pending-pulse 1.2s ease-in-out infinite;
}
@keyframes xl-pending-pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .xl-msg-pending { animation: none; opacity: 0.7; }
}
#xl-chat-form {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.6rem;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  background: #fff;
}
.xl-attach-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.xl-attach-chip {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  background: #eef6f1;
  border: 1px solid #cfe3d6;
  border-radius: 4px;
  padding: 0.15rem 0.35rem;
  max-width: 100%;
}
.xl-attach-chip button {
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1;
}
.xl-chat-toolbar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.xl-attach-icon {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #5c5c5c;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.xl-attach-icon:hover { background: #eee; color: #217346; }
.xl-send {
  margin-left: auto;
  border: 0;
  border-radius: 6px;
  background: #217346;
  color: #fff;
  font: 600 12px/1 inherit;
  height: 28px;
  padding: 0 10px;
  cursor: pointer;
}
.xl-send:hover { background: #1a5c38; }
.xl-send:disabled { opacity: 0.5; cursor: not-allowed; }
#xl-chat-input {
  width: 100%;
  min-height: 88px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.5rem 0.6rem;
  font: inherit;
  font-size: 0.85rem;
  line-height: 1.45;
  resize: none;
  min-width: 0;
  box-sizing: border-box;
}

.xl-dlg {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.32);
}
.xl-dlg[hidden] { display: none; }
.xl-dlg-card {
  width: min(360px, calc(100vw - 32px));
  background: #fff;
  border: 1px solid #c5c5c5;
  border-radius: 8px;
  padding: 18px 18px 14px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
}
.xl-dlg-card h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
  color: #1f1f1f;
}
.xl-dlg-card p {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #3d3d3d;
}
.xl-dlg-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}
.xl-dlg-cancel,
.xl-dlg-ok {
  border: 0;
  border-radius: 6px;
  height: 30px;
  padding: 0 14px;
  font: 650 12px/1 inherit;
  cursor: pointer;
}
.xl-dlg-cancel { background: #eee; color: #3d3d3d; }
.xl-dlg-cancel:hover { background: #e2e2e2; }
.xl-dlg-ok { background: #217346; color: #fff; }
.xl-dlg-ok:hover { background: #1a5c38; }
.xl-dlg-ok.is-danger { background: #c42b1c; }
.xl-dlg-ok.is-danger:hover { background: #a32317; }

.xl-lightbox {
  position: fixed; inset: 0; z-index: 30; background: rgba(15, 23, 42, 0.45);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.xl-lightbox[hidden] { display: none; }
.xl-lightbox-card {
  background: #fff; border-radius: 8px; padding: 12px 12px 8px; max-width: min(720px, 100%);
}
.xl-lightbox-card h3 { margin: 0 0 8px; font-size: 14px; }
.xl-lightbox-card svg { width: min(640px, 80vw); height: auto; display: block; }

.xl-appbar-ws {
  display: none;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--primary-soft);
  color: var(--green);
  font: 650 13px/1 var(--font);
  padding: 5px 12px;
  cursor: pointer;
}
.xl-chat-expand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  border: 1px solid #c5c5c5;
  border-radius: 6px;
  background: #fff;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
}
.xl-work.is-chat-expanded .xl-book,
.xl-work.is-chat-expanded .xl-split {
  display: none;
}
.xl-work.is-chat-expanded .xl-chat {
  flex: 1 1 auto;
  width: auto !important;
  max-width: none;
}
.xl-rail-mask {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 0;
  padding: 0;
  background: rgba(15, 23, 42, 0.18);
  cursor: pointer;
}

@media (max-width: 900px) {
  html, body {
    height: auto;
    min-height: 100%;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .xl-app {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }
  .xl-appbar {
    position: sticky;
    top: 0;
    z-index: 20;
  }
  .xl-page {
    flex: 1 0 auto;
    height: auto;
    min-height: 0;
    overflow: visible;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .xl-appbar-ws {
    display: inline-flex;
    align-items: center;
  }
  .xl-work {
    flex-direction: column;
    height: auto;
    max-height: none;
    min-height: 0;
    overflow: visible;
    border-left: 0;
    border-right: 0;
  }
  .xl-split { display: none; }
  .xl-book {
    flex: 0 0 auto;
    min-width: 0;
    min-height: 42vh;
    height: auto;
    max-height: none;
  }
  .xl-grid-wrap {
    flex: 1 1 auto;
    min-height: 240px;
    max-height: min(56vh, 480px);
    overflow: auto;
  }
  .xl-chat {
    width: auto !important;
    flex: 0 0 auto;
    height: auto;
    min-height: 48vh;
    max-height: none;
    max-width: none;
    overflow: visible;
  }
  #xl-chat-log {
    flex: 0 1 auto;
    max-height: 40vh;
    min-height: 4rem;
  }
  #xl-chat-form {
    padding-bottom: max(0.6rem, env(safe-area-inset-bottom, 0px));
  }
  #xl-chat-input {
    min-height: 56px;
  }
  .xl-work.is-chat-expanded .xl-book { display: none; }
  .xl-work.is-chat-expanded .xl-chat {
    flex: 0 0 auto;
    height: auto;
    min-height: calc(100dvh - 52px);
  }
  .xl-lead { display: none; }
  .xl-chat.is-help-open .xl-lead { display: block; }
  .xl-rail {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 4;
    width: min(280px, 85vw);
    max-height: none;
    flex: none;
    box-shadow: 8px 0 24px rgba(15, 23, 42, 0.12);
  }
  .xl-work.is-rail-collapsed .xl-rail { display: none; }
  .xl-work:not(.is-rail-collapsed) .xl-rail-mask { display: block; }
}
