/* Library list pages (2026-12-05): list-first directory UI with progressive disclosure.
   Load after d-listings-v3.css. Uses Dorado palette tokens; no lime on these pages. */
.lib-list-page { --xl-live: #BE2A2E; --xl-live-bg: #FDF2F2; --xl-open-bg: #EFEBF5; }
.lib-list-page main { font-size: 15.5px; background: var(--bg); min-height: 70vh; }
.lib-list-page main :is(h1, h2, h3, .fchip) { word-break: auto-phrase; }

/* ---- Compact Header + Mode Tabs ---- */
.lib-list-page .xl-head {
  padding: 24px var(--listing-gutter) 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-2);
}
.lib-list-page .xl-head-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 12px;
}
.lib-list-page .xl-head-top .crumb {
  margin: 0;
  font-size: 13px;
  color: var(--meta);
  text-decoration: none;
}
.lib-list-page .xl-head-top .crumb:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.lib-list-page .xl-head-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--meta);
}
.lib-list-page .xl-head h1 {
  margin: 0;
  font-size: clamp(24px, 2.8vw, 36px);
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--ink);
}
.lib-list-page .xl-lead {
  margin: 6px 0 0;
  max-width: none;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--body);
}

/* Mode tabs row */
.lib-list-page .xl-tabs-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}
.lib-list-page .xl-tabs {
  display: flex;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.lib-list-page .xl-tabs::-webkit-scrollbar { display: none; }
.lib-list-page .xl-tab {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  min-height: 44px;
  padding: 10px 2px 12px;
  margin-right: 14px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--meta);
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.lib-list-page .xl-tab:last-child { margin-right: 0; }
.lib-list-page .xl-tab:hover { color: var(--ink); }
.lib-list-page .xl-tab[aria-selected="true"] {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--ink);
}
.lib-list-page .xl-tab .xl-tab-n {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--meta);
}
.lib-list-page .xl-tab[aria-selected="true"] .xl-tab-n { color: var(--ink); }
.lib-list-page .xl-tab .xl-tab-sub {
  display: none;
  font-size: 12px;
  font-weight: 400;
  color: var(--meta);
}
.lib-list-page .xl-picks-pill {
  display: none;
  flex: none;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  margin-bottom: 8px;
  padding: 0 12px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  background: var(--fill);
  border: 1px solid var(--ink);
  cursor: pointer;
}
.lib-list-page .xl-picks-pill[aria-pressed="true"] {
  background: var(--ink);
  color: var(--white);
}
.lib-list-page .xl-picks-pill[hidden] { display: none; }

/* ---- Workspace Container ---- */
.lib-list-page .xl-workspace {
  padding: 20px var(--listing-gutter) 72px;
}
.lib-list-page .xl-workspace[hidden],
.lib-list-page .xl-guide-view[hidden] { display: none; }

.lib-list-page .xl-shared-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin: 0 0 16px;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--white);
  font-size: 14px;
}
.lib-list-page .xl-shared-banner[hidden] { display: none; }
.lib-list-page .xl-shared-banner p { margin: 0; color: var(--white); font-weight: 500; }
.lib-list-page .xl-shared-banner .xl-link-btn { color: var(--white); border-bottom-color: rgba(255,255,255,.55); }

/* ---- Shared Controls ---- */
.lib-list-page .xl-search-wrap { position: relative; }
.lib-list-page .xl-search {
  display: block;
  width: 100%;
  min-height: 42px;
  padding: 0 36px 0 12px;
  font: inherit;
  font-size: 14.5px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--gray-2);
  border-radius: 0;
}
.lib-list-page .xl-search::placeholder { color: var(--meta); }
.lib-list-page .xl-search:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.lib-list-page .xl-search-clear {
  position: absolute;
  top: 0;
  right: 0;
  width: 36px;
  height: 42px;
  display: grid;
  place-items: center;
  font: inherit;
  font-size: 18px;
  color: var(--meta);
  background: transparent;
  border: 0;
  cursor: pointer;
}
.lib-list-page .xl-search-clear:hover { color: var(--ink); }
.lib-list-page .xl-search-clear[hidden] { display: none; }

.lib-list-page .xl-select {
  min-height: 38px;
  padding: 0 10px;
  font: inherit;
  font-size: 13.5px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--gray-2);
  border-radius: 0;
  cursor: pointer;
}
.lib-list-page .xl-select:hover, .lib-list-page .xl-select:focus { border-color: var(--ink); }

.lib-list-page .xl-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--white);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 0;
  cursor: pointer;
  white-space: nowrap;
}
.lib-list-page .xl-btn-primary:hover { background: var(--deep); }

.lib-list-page .xl-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--ink);
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.lib-list-page .xl-btn-ghost:hover { background: var(--fill); }

.lib-list-page .xl-link-btn {
  padding: 2px 0;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--gray-2);
  cursor: pointer;
}
.lib-list-page .xl-link-btn:hover { border-bottom-color: var(--ink); }
.lib-list-page .xl-link-btn[hidden] { display: none; }

/* ---- Mobile Quick Bar (< 960px) ---- */
.lib-list-page .xl-mobile-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.lib-list-page .xl-m-industries {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
  margin-right: calc(var(--pad) * -1);
  padding-right: var(--pad);
}
.lib-list-page .xl-m-industries::-webkit-scrollbar { display: none; }
.lib-list-page .xl-m-industries .fchip { flex: none; min-height: 36px; padding: 0 12px; font-size: 13.5px; }
.lib-list-page .xl-m-controls {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
}
.lib-list-page .xl-m-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--ink);
  cursor: pointer;
  white-space: nowrap;
}
.lib-list-page .xl-m-filter-btn[aria-expanded="true"] { background: var(--ink); color: var(--white); }
.lib-list-page .xl-m-filter-btn .badge {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 11.5px;
  background: var(--ink);
  color: var(--white);
}
.lib-list-page .xl-m-filter-btn[aria-expanded="true"] .badge { background: var(--white); color: var(--ink); }
.lib-list-page .xl-m-controls .xl-select,
.lib-list-page .xl-m-controls .xl-btn-primary { min-height: 40px; }

/* ---- Filter Rail (Desktop Sticky / Mobile Collapsible Panel) ---- */
.lib-list-page .xl-layout { display: block; }
.lib-list-page .xl-rail {
  display: none;
  margin-bottom: 18px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--ink);
}
.lib-list-page .xl-rail.is-open { display: block; }
.lib-list-page .xl-rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gray-2);
}
.lib-list-page .xl-rail-title { font-size: 14px; font-weight: 600; color: var(--ink); }
.lib-list-page .xl-rail-close {
  padding: 4px 8px;
  font: inherit;
  font-size: 13px;
  color: var(--body);
  background: transparent;
  border: 1px solid var(--gray-2);
  cursor: pointer;
}
.lib-list-page .xl-desktop-only { display: none; }
.lib-list-page .xl-group { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.lib-list-page .xl-group:last-child { margin-bottom: 0; }
.lib-list-page .xl-group legend,
.lib-list-page .xl-group-title {
  display: block;
  margin: 0 0 8px;
  padding: 0;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--meta);
}
.lib-list-page .xl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lib-list-page .xl-months { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.lib-list-page .xl-months .fchip { justify-content: center; padding: 0 4px; font-size: 13px; }
.lib-list-page .xl-months .fchip.is-tbd { grid-column: span 2; }
.lib-list-page .fchip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 0 10px;
  font: inherit;
  font-size: 13.5px;
  line-height: 1.2;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--gray-2);
  border-radius: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .12s ease, background-color .12s ease;
}
.lib-list-page .fchip .c { font-size: 11.5px; color: var(--meta); }
.lib-list-page .fchip:hover { border-color: var(--ink); }
.lib-list-page .fchip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}
.lib-list-page .fchip[aria-pressed="true"] .c { color: #CFC6DD; }
.lib-list-page .fchip.more { border-style: dashed; color: var(--body); }
.lib-list-page .xl-rail-foot {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--gray-2);
}
.lib-list-page .xl-rail-apply { width: 100%; min-height: 42px; }

/* ---- Result Toolbar & Active Filter Pills ---- */
.lib-list-page .xl-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  padding: 0 0 12px;
  border-bottom: 2px solid var(--ink);
}
.lib-list-page .xl-toolbar-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}
.lib-list-page .xl-count {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.lib-list-page .xl-count small {
  margin-left: 6px;
  font-size: 13px;
  font-weight: 400;
  color: var(--meta);
}
.lib-list-page .xl-quick-open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--gray-2);
  cursor: pointer;
}
.lib-list-page .xl-quick-open::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
  opacity: .35;
}
.lib-list-page .xl-quick-open:hover { border-color: var(--ink); }
.lib-list-page .xl-quick-open[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}
.lib-list-page .xl-quick-open[aria-pressed="true"]::before { background: var(--white); opacity: 1; }
.lib-list-page .xl-toolbar-right { display: none; align-items: center; gap: 8px; }

.lib-list-page .xl-active-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  padding: 10px 0 4px;
}
.lib-list-page .xl-active-bar[hidden] { display: none; }
.lib-list-page .xl-active-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.lib-list-page .xl-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 8px;
  font: inherit;
  font-size: 12.5px;
  color: var(--ink);
  background: var(--fill);
  border: 1px solid var(--gray-2);
  cursor: pointer;
}
.lib-list-page .xl-pill:hover { border-color: var(--ink); }
.lib-list-page .xl-pill span { color: var(--meta); font-weight: 600; }

/* ---- Group Headers ---- */
.lib-list-page .xl-month {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 24px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--gray-2);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  scroll-margin-top: calc(var(--header) + 16px);
}
.lib-list-page .xl-month:first-child { margin-top: 16px; }
.lib-list-page .xl-month small { font-size: 12.5px; font-weight: 400; color: var(--meta); }

.lib-list-page .xl-empty {
  margin: 20px 0;
  padding: 28px 20px;
  background: var(--white);
  border: 1px dashed var(--gray-2);
  text-align: center;
  color: var(--body);
  line-height: 1.7;
}
.lib-list-page .xl-empty button { margin-top: 12px; }

/* ---- Expo Row-Card ---- */
.lib-list-page .xp {
  margin-bottom: 10px;
  background: var(--white);
  border: 1px solid var(--gray-2);
  scroll-margin-top: calc(var(--header) + 16px);
  transition: border-color .14s ease;
}
.lib-list-page .xp:hover { border-color: var(--ink); }
.lib-list-page .xp.is-open-card { border-color: var(--ink); }
.lib-list-page .xp.is-closed { background: #FCFCFA; }
.lib-list-page .xp.is-closed .xp-name { color: var(--body); }
.lib-list-page .xp.is-target { animation: xp-target 2s ease-out; }
@keyframes xp-target {
  0%, 35% { background: var(--fill); box-shadow: 0 0 0 2px var(--ink); }
  100% { background: var(--white); box-shadow: none; }
}

.lib-list-page .xp-body { padding: 14px 16px 12px; }

.lib-list-page .xp-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 10px;
  margin-bottom: 8px;
}
.lib-list-page .xp-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--meta);
}

/* Status badges — calm, high-signal, zero AI-audit clutter */
.lib-list-page .xp-st {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}
.lib-list-page .xp-st.st-open {
  background: var(--xl-open-bg);
  color: var(--ink);
}
.lib-list-page .xp-st.st-open::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
}
.lib-list-page .xp-st.st-urgent {
  background: var(--xl-live-bg);
  color: var(--xl-live);
  border: 1px solid rgba(190, 42, 46, .35);
}
.lib-list-page .xp-st.st-before {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--ink);
}
.lib-list-page .xp-st.st-closed,
.lib-list-page .xp-st.st-full {
  background: var(--gray);
  color: var(--meta);
}
.lib-list-page .xp-st.st-unknown {
  background: var(--white);
  color: var(--meta);
  border: 1px solid var(--gray-2);
  font-weight: 500;
}
.lib-list-page .xp-ind { color: var(--body); font-size: 12.5px; }
.lib-list-page .xp-tw-badge {
  padding: 1px 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--ink);
}

/* Shortlist / Star button */
.lib-list-page .xp-pick {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 30px;
  padding: 0 9px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--meta);
  background: transparent;
  border: 1px solid var(--gray-2);
  cursor: pointer;
  white-space: nowrap;
}
.lib-list-page .xp-pick:hover { color: var(--ink); border-color: var(--ink); }
.lib-list-page .xp-pick[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.lib-list-page .xp-head-btn {
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.lib-list-page .xp-name {
  margin: 0;
  font-size: 17.5px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.01em;
  color: var(--ink);
}
.lib-list-page .xp-head-btn:hover .xp-name { text-decoration: underline; text-underline-offset: 3px; }
.lib-list-page .xp-desc {
  margin: 4px 0 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--body);
}

/* Compact 3-cell key facts strip (on mobile: full-width date/venue row + 2-column fee & scale row) */
.lib-list-page .xp-kv {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--gray);
}
.lib-list-page .xp-kv > div:first-child { grid-column: 1 / -1; }
.lib-list-page .xp-kv > div { min-width: 0; }
.lib-list-page .xp-kv dt {
  margin: 0 0 2px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--meta);
}
.lib-list-page .xp-kv dd {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.lib-list-page .xp-kv dd.is-muted { font-weight: 400; color: var(--meta); }
.lib-list-page .xp-kv dd small {
  display: block;
  margin-top: 1px;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--body);
}
.lib-list-page .xp-kv dd small.is-urgent { color: var(--xl-live); font-weight: 600; }

/* Card footer actions */
.lib-list-page .xp-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--gray);
}
.lib-list-page .xp-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  background: var(--fill);
  border: 1px solid transparent;
  cursor: pointer;
}
.lib-list-page .xp-toggle:hover { border-color: var(--ink); }
.lib-list-page .xp-toggle[aria-expanded="true"] {
  background: var(--ink);
  color: var(--white);
}
.lib-list-page .xp-ext {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.lib-list-page .xp-ext:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---- Progressive Disclosure Detail Sheet ---- */
.lib-list-page .xp-more {
  padding: 16px;
  background: var(--bg);
  border-top: 1px solid var(--gray-2);
}
.lib-list-page .xp-more[hidden] { display: none; }
/* Who visits (buyer types, visitor breakdowns, organizer-listed companies) */
.lib-list-page .xp-buyers {
  margin: 0 0 16px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--gray-2);
}
.lib-list-page .xp-buyers-head {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.lib-list-page .xp-buyers-types {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--body);
}
/* Who visits chart (design 案3): 4-axis diamond + tabbed lollipops.
   Marks wear the series colour; text stays ink. */
.lib-list-page .xp-bv-facts { margin: 0 0 10px; display: grid; gap: 4px; }
.lib-list-page .xp-bv-facts > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 10px; font-size: 12.5px; line-height: 1.55; }
.lib-list-page .xp-bv-facts dt { font-weight: 600; color: var(--meta); }
.lib-list-page .xp-bv-facts dd { margin: 0; color: var(--body); overflow-wrap: anywhere; }
@media (min-width: 640px) { .lib-list-page .xp-bv-facts > div { grid-template-columns: 120px minmax(0, 1fr); } }
.lib-list-page .xp-bv-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: start; }
@media (min-width: 680px) { .lib-list-page .xp-bv-grid { grid-template-columns: 236px minmax(0, 1fr); } }
.lib-list-page .xp-bv-dia { padding: 6px 4px 6px; background: #FAFAF8; border: 1px solid #EAE7F0; text-align: center; }
.lib-list-page .xp-bv-dia svg { display: block; width: 100%; max-width: 236px; height: auto; margin: 0 auto; overflow: visible; }
.lib-list-page .xp-bv-dia-note { margin: 2px 0 0; font-size: 10.5px; line-height: 1.4; color: var(--meta); }
/* Only the tabs are controls. Rows print label and value in full; diamond points show their note on hover. */
.lib-list-page .xp-bv-node { cursor: default; }
.lib-list-page .xp-bv-right { min-width: 0; }
.lib-list-page .xp-bv-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.lib-list-page .xp-bv-tab {
  flex: none; padding: 6px 12px; font: inherit; font-size: 12.5px; font-weight: 600; line-height: 1.3; white-space: nowrap;
  color: var(--body); background: var(--white); border: 1px solid var(--gray-2); border-radius: 999px; cursor: pointer;
}
.lib-list-page .xp-bv-tab:hover { color: var(--ink); border-color: var(--ink); }
/* When a card opens, the tabs glow warm red softly three times, all together, to show they can be pressed.
   Warm red stands apart from the purple page; the selected tab keeps its dark fill. */
@keyframes xp-bv-blink { 0%, 100% { box-shadow: 0 0 0 0 rgba(224, 83, 61, 0); } 50% { box-shadow: 0 0 0 3px rgba(224, 83, 61, .5); border-color: #E0533D; background-color: #FDE7E3; } }
@keyframes xp-bv-blink-on { 0%, 100% { box-shadow: 0 0 0 0 rgba(224, 83, 61, 0); } 50% { box-shadow: 0 0 0 3px rgba(224, 83, 61, .5); } }
.lib-list-page .xp-bv-tabs.is-blink .xp-bv-tab { animation: xp-bv-blink 1.2s ease-in-out 3; }
.lib-list-page .xp-bv-tabs.is-blink .xp-bv-tab[aria-selected="true"] { animation-name: xp-bv-blink-on; }
@media (prefers-reduced-motion: reduce) { .lib-list-page .xp-bv-tabs.is-blink .xp-bv-tab { animation: none; } }
.lib-list-page .xp-bv-tab[aria-selected="true"] { color: var(--white); background: var(--ink); border-color: var(--ink); }

.lib-list-page .xp-bv-tab:focus-visible { outline: 2px solid #7A4FC4; outline-offset: 2px; }
.lib-list-page .xp-bv-pane[hidden] { display: none; }
.lib-list-page .xp-bv-cap { margin: 0 0 4px; font-size: 11.5px; font-weight: 600; color: var(--meta); overflow-wrap: anywhere; }
.lib-list-page .xp-bv-lols { display: flex; flex-direction: column; gap: 3px; }
.lib-list-page .xp-bv-lol {
  display: grid; grid-template-columns: minmax(84px, 40%) minmax(36px, 1fr) auto; align-items: center; gap: 8px;
  width: 100%; padding: 1px 0; font: inherit; font-size: 12.5px; text-align: left; color: var(--ink);
  background: transparent; border: 0; cursor: default;
}
.lib-list-page .xp-bv-lbl { color: var(--body); line-height: 1.35; overflow-wrap: anywhere; }
.lib-list-page .xp-bv-rail { position: relative; display: flex; align-items: center; height: 14px; }
.lib-list-page .xp-bv-rail::before { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--gray-2); }
/* Whole pixels only: a 2.5px stem painted as 2px or 3px depending on the row's position (Minoru 12-05). */
.lib-list-page .xp-bv-stem { position: relative; height: 3px; border-radius: 2px; }
.lib-list-page .xp-bv-dot { position: relative; flex: none; width: 9px; height: 9px; margin-left: -4px; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--white); }
.lib-list-page .xp-bv-val { font-weight: 700; white-space: nowrap; text-align: right; }
.lib-list-page .xp-bv-foot { margin: 5px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--meta); }
.lib-list-page .xp-bv-cos { display: grid; gap: 6px; max-height: 250px; overflow-y: auto; padding-right: 4px; }
.lib-list-page .xp-bv-cog { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 10px; font-size: 12px; }
@media (min-width: 600px) { .lib-list-page .xp-bv-cog { grid-template-columns: 130px minmax(0, 1fr); } }
.lib-list-page .xp-bv-sec { font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.lib-list-page .xp-bv-sec span { margin-left: 4px; font-weight: 400; color: var(--meta); }
.lib-list-page .xp-bv-chips { display: flex; flex-wrap: wrap; gap: 3px; }
.lib-list-page .xp-bv-chip { padding: 1px 6px; font-size: 12px; color: var(--ink); background: #F5F3F8; overflow-wrap: anywhere; }
.lib-list-page .xp-bv-empty {
  display: flex; flex-direction: column; justify-content: center; gap: 4px; min-height: 130px; padding: 12px;
  font-size: 12.5px; line-height: 1.6; text-align: center; color: var(--meta); background: #FAFAF8; border: 1px dashed var(--gray-2);
}
.lib-list-page .xp-bv-empty p { margin: 0; }
.xp-bv-tip {
  position: fixed; z-index: 60; max-width: 280px; padding: 6px 9px; pointer-events: none; opacity: 0;
  font-size: 12px; line-height: 1.4; color: #FFFFFF; background: #1A003A; box-shadow: 0 6px 18px rgba(26, 0, 58, .24); transition: opacity .08s;
}
.xp-bv-tip.is-on { opacity: 1; }
.xp-bv-tip span { display: block; }
.xp-bv-tip-h { font-size: 11px; color: #D4C9E6; }
.xp-bv-tip-v { margin-top: 1px; font-size: 13.5px; font-weight: 800; }
.xp-bv-tip-s { margin-top: 3px; padding-top: 3px; font-size: 11px; color: #E6DFF2; border-top: 1px solid rgba(255, 255, 255, .16); }
.lib-list-page .xp-buyers-note,
.lib-list-page .xp-buyers-basis {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--meta);
}
.lib-list-page .xp-spec-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px 24px;
}
.lib-list-page .xp-spec-item {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gray-2);
}
.lib-list-page .xp-spec-item dt {
  margin: 0 0 3px;
  font-size: 12px;
  font-weight: 600;
  color: var(--meta);
}
.lib-list-page .xp-spec-item dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--body);
  overflow-wrap: anywhere;
}
.lib-list-page .xp-spec-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  padding: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.lib-list-page .xp-spec-cta:hover { color: var(--xl-live); }

.lib-list-page .xp-more-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.lib-list-page .xp-more-actions > * {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--gray-2);
  text-decoration: none;
  cursor: pointer;
}
.lib-list-page .xp-more-actions > *:hover { border-color: var(--ink); }

/* Clean collapsible official sources (no audit noise) */
.lib-list-page details.xp-src {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--gray-2);
}
.lib-list-page details.xp-src > summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--meta);
  cursor: pointer;
  list-style: none;
}
.lib-list-page details.xp-src > summary::-webkit-details-marker { display: none; }
.lib-list-page details.xp-src > summary:hover { color: var(--ink); }
.lib-list-page details.xp-src > summary::after { content: "+"; font-weight: 600; }
.lib-list-page details.xp-src[open] > summary::after { content: "−"; }
.lib-list-page details.xp-src ul {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
}
.lib-list-page details.xp-src li {
  font-size: 13px;
  line-height: 1.5;
  color: var(--body);
  overflow-wrap: anywhere;
}
.lib-list-page details.xp-src li a { color: var(--ink); text-underline-offset: 3px; }
.lib-list-page details.xp-src li span { margin-left: 6px; font-size: 12px; color: var(--meta); }

/* ---- Quiet Footnote under list ---- */
.lib-list-page .xl-footnote {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-2);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--meta);
}
.lib-list-page .xl-footnote p { margin: 0 0 4px; color: var(--meta); }
.lib-list-page .xl-footnote a { color: var(--ink); text-underline-offset: 3px; }

/* ---- VIEW 2: On-Demand Preparation Guide ---- */
.lib-list-page .xl-guide-view {
  padding: 32px var(--listing-gutter) 80px;
}
.lib-list-page .xl-guide-wrap { max-width: 920px; }
.lib-list-page .xl-guide-block + .xl-guide-block {
  margin-top: 40px;
  padding-top: 36px;
  border-top: 1px solid var(--gray-2);
}
.lib-list-page .xl-guide-block h2 {
  margin: 0 0 8px;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.3;
  color: var(--ink);
}
.lib-list-page .xl-guide-sub {
  margin: 0 0 18px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--body);
  max-width: 66ch;
}
.lib-list-page .xl-guide-block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 18px;
}
.lib-list-page .xl-guide-block-head .xl-guide-sub { margin-bottom: 0; }

.lib-list-page .xl-ask {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: ask;
  background: var(--white);
  border: 1px solid var(--gray-2);
}
.lib-list-page .xl-ask li {
  position: relative;
  counter-increment: ask;
  padding: 14px 18px 14px 54px;
  border-top: 1px solid var(--gray-2);
  line-height: 1.65;
}
.lib-list-page .xl-ask li:first-child { border-top: 0; }
.lib-list-page .xl-ask li::before {
  content: counter(ask);
  position: absolute;
  left: 16px;
  top: 15px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}
.lib-list-page .xl-ask b { display: block; font-size: 15px; color: var(--ink); margin-bottom: 2px; }
.lib-list-page .xl-ask span { font-size: 14px; color: var(--body); }

.lib-list-page .xl-guide-card {
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--gray-2);
}
.lib-list-page .xl-guide-card.is-rx { border-top: 2px solid var(--ink); }
.lib-list-page .xl-guide-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink);
}
.lib-list-page .xl-guide-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--body);
}
.lib-list-page .xl-guide-sources {
  margin: 12px 0 0;
  padding: 10px 0 0;
  list-style: none;
  border-top: 1px dashed var(--gray-2);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 12.5px;
}
.lib-list-page .xl-guide-sources a { color: var(--ink); text-underline-offset: 3px; }
.lib-list-page .xl-guide-grid,
.lib-list-page .xl-access-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.lib-list-page .xl-guide-back { margin-top: 36px; }

/* ---- Floating Shortlist Dock ---- */
.lib-list-page .xl-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9;
  padding: 10px var(--listing-gutter);
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 -4px 18px rgba(26, 0, 58, .22);
}
.lib-list-page .xl-dock[hidden] { display: none; }
.lib-list-page .xl-dock-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}
.lib-list-page .xl-dock-count { font-size: 14px; font-weight: 600; color: var(--white); }
.lib-list-page .xl-dock-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lib-list-page .xl-dock-btn {
  min-height: 36px;
  padding: 0 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255,255,255,.45);
  cursor: pointer;
}
.lib-list-page .xl-dock-btn:hover { border-color: var(--white); }
.lib-list-page .xl-dock-btn.primary {
  background: var(--white);
  border-color: var(--white);
  color: var(--ink);
}
.lib-list-page .xl-dock-clear {
  min-height: 36px;
  padding: 0 8px;
  font: inherit;
  font-size: 12.5px;
  color: #CFC6DD;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.lib-list-page .xl-dock-clear:hover { color: var(--white); text-decoration: underline; }
.lib-list-page.has-dock .xl-workspace { padding-bottom: 112px; }

/* Focus accessibility */
.lib-list-page :is(.fchip, .xl-tab, .xl-pick, .xl-toggle, .xl-btn-primary, .xl-btn-ghost, .xl-quick-open, .xl-pill, .xl-dock-btn, .xp-head-btn):focus-visible {
  outline: 2px solid var(--xl-live);
  outline-offset: 2px;
}

/* ---- Tablet & Desktop (>= 680px / >= 960px) ---- */
@media (min-width: 680px) {
  .lib-list-page .xl-picks-pill { display: inline-flex; }
  .lib-list-page .xl-picks-pill[hidden] { display: none; }
  .lib-list-page .xl-tab { font-size: 15px; margin-right: 20px; gap: 8px; padding: 10px 4px 12px; }
  .lib-list-page .xl-tab .xl-tab-sub { display: inline; }
  .lib-list-page .xp-kv {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, .95fr) minmax(0, 1fr);
    gap: 12px 20px;
  }
  .lib-list-page .xp-kv > div:first-child { grid-column: auto; }
  .lib-list-page .xp-spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lib-list-page .xl-guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .lib-list-page .xl-access-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}

@media (min-width: 960px) {
  .lib-list-page .xl-head { padding-top: 28px; }
  .lib-list-page .xl-workspace { padding-top: 24px; }
  .lib-list-page .xl-mobile-bar { display: none; }
  .lib-list-page .xl-toolbar-right { display: flex; }
  .lib-list-page .xl-desktop-only { display: block; }
  .lib-list-page .xl-layout {
    display: grid;
    grid-template-columns: 276px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
  }
  .lib-list-page .xl-rail {
    display: block;
    position: sticky;
    top: calc(var(--header) + 16px);
    max-height: calc(100dvh - var(--header) - 32px);
    overflow-y: auto;
    scrollbar-width: thin;
    margin: 0;
    padding: 18px 18px 20px;
    border-color: var(--gray-2);
  }
  .lib-list-page .xl-rail-close,
  .lib-list-page .xl-rail-foot { display: none; }
  .lib-list-page .xp-body { padding: 16px 20px 14px; }
  .lib-list-page .xp-more { padding: 18px 20px; }
  .lib-list-page .xp-name { font-size: 18.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .lib-list-page .xp.is-target { animation: none; background: var(--fill); }
  .lib-list-page .xl-cal-row.is-flash { animation: none; }
}

/* =========================================================================
   Integrated Year / Month Calendar View (2026-12-05)
   ========================================================================= */
.lib-list-page {
  --xl-heat-1: #EAE4F4;
  --xl-heat-2: #6D5299;
  --xl-heat-3: #1A003A;
  --xl-live-line: #EBC4C5;
  --xl-sun: #B33A3E;
  --xl-sat: #3B5B8C;
}
.lib-list-page .xl-workspace.is-calendar-mode .xl-select { display: none; }
.lib-list-page .xl-workspace.is-calendar-mode .xl-m-controls { grid-template-columns: auto auto; justify-content: space-between; }
.lib-list-page .xl-workspace.is-calendar-mode .xl-toolbar { margin-bottom: 12px; }

.lib-list-page .xl-cal { position: relative; }
.lib-list-page .xl-cal[hidden],
.lib-list-page .xl-cal-yr[hidden],
.lib-list-page .xl-cal-mo[hidden],
.lib-list-page .xl-cal-dl-strip[hidden],
.lib-list-page .xl-cal-filtered[hidden],
.lib-list-page .xl-cal-tbd[hidden],
.lib-list-page .xl-cal-tip[hidden] { display: none; }

.lib-list-page .xl-cal-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 12px;
}
.lib-list-page .xl-cal-seg {
  display: inline-flex;
  background: var(--white);
  border: 1px solid var(--ink);
}
.lib-list-page .xl-cal-seg-btn {
  border: 0;
  background: transparent;
  padding: 7px 14px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
}
.lib-list-page .xl-cal-seg-btn + .xl-cal-seg-btn { border-left: 1px solid var(--ink); }
.lib-list-page .xl-cal-seg-btn[aria-selected="true"] { background: var(--ink); color: var(--white); }
.lib-list-page .xl-cal-count-mob { display: none; }

/* Urgent 2026-12 deadlines strip */
.lib-list-page .xl-cal-dl-strip {
  margin-bottom: 12px;
  padding: 9px 12px;
  background: var(--xl-live-bg);
  border: 1px solid var(--xl-live-line);
  border-left: 3px solid var(--xl-live);
  display: grid;
  gap: 7px;
  min-width: 0;
}
.lib-list-page .xl-cal-dl-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 10px;
}
.lib-list-page .xl-cal-dl-title { font-size: 12.5px; font-weight: 700; color: var(--xl-live); }
.lib-list-page .xl-cal-dl-all {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--xl-live);
  border-bottom: 1px solid var(--xl-live-line);
  cursor: pointer;
}
.lib-list-page .xl-cal-dl-all:hover { border-bottom-color: var(--xl-live); }
.lib-list-page .xl-cal-dl-list { display: grid; gap: 6px; min-width: 0; }
.lib-list-page .xl-cal-dl-card {
  display: grid;
  gap: 2px;
  width: 100%;
  min-width: 0;
  padding: 6px 10px;
  background: var(--white);
  border: 1px solid var(--xl-live-line);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.lib-list-page .xl-cal-dl-card:hover { border-color: var(--xl-live); background: #FFF9F9; }
.lib-list-page .xl-cal-dl-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 11.5px; }
.lib-list-page .xl-cal-dl-top b { color: var(--xl-live); font-weight: 700; white-space: nowrap; }
.lib-list-page .xl-cal-dl-top small { color: var(--meta); white-space: nowrap; }
.lib-list-page .xl-cal-dl-name { font-size: 13px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Year View: 12 real mini-calendars */
.lib-list-page .xl-cal-key {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin-bottom: 10px;
  font-size: 11.5px;
  color: var(--meta);
}
.lib-list-page .xl-cal-key-item { display: inline-flex; align-items: center; gap: 5px; }
.lib-list-page .xl-cal-sw { display: inline-block; width: 13px; height: 13px; }
.lib-list-page .xl-cal-sw.h1 { background: var(--xl-heat-1); }
.lib-list-page .xl-cal-sw.h2 { background: var(--xl-heat-2); }
.lib-list-page .xl-cal-sw.h3 { background: var(--xl-heat-3); }
.lib-list-page .xl-cal-sw.dl { background: var(--xl-live-bg); border: 1.5px solid var(--xl-live); }

.lib-list-page .xl-cal-yr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.lib-list-page .xl-mini-mo {
  background: var(--white);
  border: 1px solid var(--gray-2);
  padding: 9px 8px 8px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.lib-list-page .xl-mini-mo:hover { border-color: var(--ink); }
.lib-list-page .xl-mini-mo.is-zero { background: #FAF9FB; border-color: #EBE9EE; opacity: .52; }
.lib-list-page .xl-mini-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
  padding: 0 2px 5px;
  margin-bottom: 4px;
  border: 0;
  border-bottom: 1px solid #EBE9EE;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.lib-list-page .xl-mini-head:hover .xl-mini-name { text-decoration: underline; text-underline-offset: 3px; }
.lib-list-page .xl-mini-name { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.lib-list-page .xl-mini-cnt { font-size: 12.5px; font-weight: 700; color: var(--ink); }
.lib-list-page .xl-mini-cnt small { font-size: 10.5px; font-weight: 500; color: var(--meta); }
.lib-list-page .xl-mini-mo.is-zero .xl-mini-name,
.lib-list-page .xl-mini-mo.is-zero .xl-mini-cnt { color: #ACA5BA; font-weight: 500; }

.lib-list-page .xl-mini-cal {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
}
.lib-list-page .xl-mini-wd { text-align: center; font-size: 9.5px; font-weight: 600; color: var(--meta); padding-bottom: 2px; }
.lib-list-page .xl-mini-wd.is-sun { color: var(--xl-sun); }
.lib-list-page .xl-mini-wd.is-sat { color: var(--xl-sat); }

.lib-list-page .xl-mini-day {
  aspect-ratio: 1 / 1;
  min-height: 21px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  color: var(--body);
  cursor: pointer;
}
.lib-list-page .xl-mini-day.is-sun { color: var(--xl-sun); }
.lib-list-page .xl-mini-day.is-sat { color: var(--xl-sat); }
.lib-list-page .xl-mini-day.is-empty { pointer-events: none; cursor: default; }
.lib-list-page .xl-mini-day.h1 { background: var(--xl-heat-1); color: var(--ink); font-weight: 700; }
.lib-list-page .xl-mini-day.h2 { background: var(--xl-heat-2); color: var(--white); font-weight: 700; }
.lib-list-page .xl-mini-day.h3 { background: var(--xl-heat-3); color: var(--white); font-weight: 700; }
.lib-list-page .xl-mini-day.has-dl { box-shadow: inset 0 0 0 1.5px var(--xl-live); }
.lib-list-page .xl-mini-day.has-dl:not(.h1):not(.h2):not(.h3) { background: var(--xl-live-bg); color: var(--xl-live); font-weight: 700; }
.lib-list-page .xl-mini-day:not(.is-empty):hover { outline: 1.5px solid var(--ink); z-index: 2; }

.lib-list-page .xl-mini-foot {
  margin-top: auto;
  padding-top: 6px;
  min-height: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  font-size: 10.5px;
}
.lib-list-page .xl-mini-dl { color: var(--xl-live); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib-list-page .xl-mini-open {
  margin-left: auto;
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--meta);
  cursor: pointer;
  white-space: nowrap;
}
.lib-list-page .xl-mini-mo:hover .xl-mini-open { color: var(--ink); }

.lib-list-page .xl-cal-filtered { margin-top: 20px; }
.lib-list-page .xl-cal-subhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--ink);
}
.lib-list-page .xl-cal-subhead h2 { margin: 0; font-size: 16px; color: var(--ink); }
.lib-list-page .xl-cal-subhead span { font-size: 12px; color: var(--meta); }

/* Month View: Navigation + 7-column Grid + Date Agenda */
.lib-list-page .xl-cal-mo-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--gray-2);
  padding: 8px 10px;
}
.lib-list-page .xl-cal-nav-btn {
  min-width: 34px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--gray-2);
  background: var(--bg);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}
.lib-list-page .xl-cal-nav-btn:hover:not(:disabled) { border-color: var(--ink); background: var(--fill); }
.lib-list-page .xl-cal-nav-btn:disabled { opacity: .35; cursor: default; }
.lib-list-page .xl-cal-mo-title { margin: 0; font-size: 17px; font-weight: 700; color: var(--ink); text-align: center; }
.lib-list-page .xl-cal-mo-title small { margin-left: 6px; font-size: 12.5px; font-weight: 500; color: var(--meta); }

.lib-list-page .xl-cal-pills {
  display: flex;
  gap: 4px;
  margin-top: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 1px 0;
}
.lib-list-page .xl-cal-pills::-webkit-scrollbar { display: none; }
.lib-list-page .xl-cal-mpill {
  flex: none;
  min-height: 30px;
  padding: 0 9px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--gray-2);
  cursor: pointer;
  white-space: nowrap;
}
.lib-list-page .xl-cal-mpill small { font-size: 10.5px; font-weight: 500; color: var(--meta); margin-left: 2px; }
.lib-list-page .xl-cal-mpill.is-zero { color: #B4ADC2; background: transparent; border-color: #EBE9EE; font-weight: 400; }
.lib-list-page .xl-cal-mpill[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.lib-list-page .xl-cal-mpill[aria-current="true"] small { color: #CFC6DD; }

.lib-list-page .xl-cal-mo-layout {
  margin-top: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.lib-list-page .xl-cal-grid-box {
  background: var(--white);
  border: 1px solid var(--gray-2);
  padding: 10px;
}
.lib-list-page .xl-cal-wds {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
  padding-bottom: 6px;
  border-bottom: 1px solid #EBE9EE;
  margin-bottom: 4px;
}
.lib-list-page .xl-cal-wd { text-align: center; font-size: 11px; font-weight: 700; color: var(--meta); }
.lib-list-page .xl-cal-wd.is-sun { color: var(--xl-sun); }
.lib-list-page .xl-cal-wd.is-sat { color: var(--xl-sat); }

.lib-list-page .xl-cal-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
}
.lib-list-page .xl-mday {
  min-height: 44px;
  padding: 4px 2px 3px;
  border: 1px solid #EBE9EE;
  background: var(--white);
  font: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
  cursor: pointer;
}
.lib-list-page .xl-mday.is-empty { background: var(--bg); border-color: transparent; pointer-events: none; cursor: default; }
.lib-list-page .xl-mday-num { font-size: 12.5px; font-weight: 600; line-height: 1.1; color: var(--ink); }
.lib-list-page .xl-mday.is-sun .xl-mday-num { color: var(--xl-sun); }
.lib-list-page .xl-mday.is-sat .xl-mday-num { color: var(--xl-sat); }
.lib-list-page .xl-mday.h1 { background: #F5F2FA; border-color: #DCD4EB; }
.lib-list-page .xl-mday.h2 { background: #E9E2F5; border-color: #B9A7D6; }
.lib-list-page .xl-mday.h3 { background: #DDD2F0; border-color: var(--ink); }
.lib-list-page .xl-mday.has-dl { border-color: var(--xl-live); }
.lib-list-page .xl-mday:not(.is-empty):hover { border-color: var(--ink); }
.lib-list-page .xl-mday.is-selected { background: var(--ink); border-color: var(--ink); }
.lib-list-page .xl-mday.is-selected .xl-mday-num { color: var(--white); }

.lib-list-page .xl-mday-marks { display: flex; align-items: center; justify-content: center; gap: 2px; min-height: 15px; }
.lib-list-page .xl-mday-cnt {
  display: inline-block;
  min-width: 17px;
  padding: 1px 4px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  background: var(--ink);
  color: var(--white);
}
.lib-list-page .xl-mday.h1 .xl-mday-cnt { background: var(--white); color: var(--ink); border: 1px solid #B5A8CC; }
.lib-list-page .xl-mday.h2 .xl-mday-cnt { background: var(--xl-heat-2); color: var(--white); }
.lib-list-page .xl-mday.h3 .xl-mday-cnt { background: var(--ink); color: var(--white); }
.lib-list-page .xl-mday.is-selected .xl-mday-cnt { background: var(--white); color: var(--ink); border-color: var(--white); }
.lib-list-page .xl-mday-dl-dot { display: inline-block; width: 7px; height: 7px; background: var(--xl-live); transform: rotate(45deg); }
.lib-list-page .xl-mday.is-selected .xl-mday-dl-dot { background: #FF9A9E; }

.lib-list-page .xl-cal-grid-hint {
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid #EBE9EE;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 10px;
  font-size: 11px;
  color: var(--meta);
}

/* Agenda Rows (Calendar View) */
.lib-list-page .xl-cal-daybar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  margin-bottom: 8px;
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
}
.lib-list-page .xl-cal-daybar button {
  border: 0;
  background: none;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, .65);
  padding: 0;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}
.lib-list-page .xl-cal-carry {
  margin-bottom: 10px;
  background: var(--white);
  border: 1px solid var(--gray-2);
}
.lib-list-page .xl-cal-carry summary {
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--body);
  cursor: pointer;
  background: var(--fill);
  list-style: none;
}
.lib-list-page .xl-cal-carry summary::-webkit-details-marker { display: none; }
.lib-list-page .xl-cal-carry summary::before { content: '▸ '; color: var(--ink); }
.lib-list-page .xl-cal-carry[open] summary::before { content: '▾ '; }

.lib-list-page .xl-cal-list {
  background: var(--white);
  border: 1px solid var(--gray-2);
}
.lib-list-page .xl-cal-ghead {
  padding: 6px 12px;
  background: var(--bg);
  border-bottom: 1px solid var(--gray-2);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.lib-list-page .xl-cal-ghead small { font-weight: 500; color: var(--meta); }
.lib-list-page .xl-cal-row { border-bottom: 1px solid #EBE9EE; }
.lib-list-page .xl-cal-row:last-child { border-bottom: 0; }
.lib-list-page .xl-cal-row.is-dl { background: #FFF8F8; border-left: 3px solid var(--xl-live); }
.lib-list-page .xl-cal-row.is-flash { animation: xl-cal-flash 1.5s ease-out; }
@keyframes xl-cal-flash { 0%, 40% { background: #E4DDEF; } 100% { background: transparent; } }

.lib-list-page .xl-cal-row-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px 0;
}
.lib-list-page .xl-cal-row-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  min-width: 0;
}
.lib-list-page .xl-cal-date { font-size: 12px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.lib-list-page .xl-cal-row.is-dl .xl-cal-date { color: var(--xl-live); }
.lib-list-page .xl-cal-row.is-closed .xl-cal-date { color: var(--meta); }
.lib-list-page .xl-cal-dl-pill {
  font-size: 10.5px;
  font-weight: 600;
  padding: 1px 6px;
  background: var(--xl-live);
  color: var(--white);
  white-space: nowrap;
}
.lib-list-page .xl-cal-row-btn {
  display: block;
  width: 100%;
  padding: 4px 12px 10px;
  border: 0;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.lib-list-page .xl-cal-row-btn:hover .xl-cal-name { text-decoration: underline; text-underline-offset: 3px; }
.lib-list-page .xl-cal-name { font-size: 14.5px; font-weight: 700; line-height: 1.38; color: var(--ink); word-break: auto-phrase; }
.lib-list-page .xl-cal-row.is-closed .xl-cal-name { color: var(--meta); font-weight: 500; }
.lib-list-page .xl-cal-meta { margin-top: 3px; font-size: 12px; color: var(--meta); }
.lib-list-page .xl-cal-row .xp-more { margin: 0 12px 12px; border: 1px solid var(--gray-2); border-top: 2px solid var(--ink); }

.lib-list-page .xl-cal-tbd {
  margin-top: 16px;
  background: var(--white);
  border: 1px solid var(--gray-2);
}
.lib-list-page .xl-cal-tbd-head {
  padding: 7px 12px;
  background: var(--bg);
  border-bottom: 1px solid var(--gray-2);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
}
.lib-list-page .xl-cal-tbd-head small { font-weight: 500; color: var(--meta); }

.lib-list-page .xl-cal-tip {
  position: absolute;
  z-index: 40;
  max-width: 300px;
  padding: 8px 10px;
  background: var(--ink);
  color: var(--white);
  font-size: 12px;
  line-height: 1.45;
  pointer-events: none;
  box-shadow: 0 6px 18px rgba(26, 0, 58, .25);
}
.lib-list-page .xl-cal-tip b { display: block; font-size: 12.5px; margin-bottom: 2px; }
.lib-list-page .xl-cal-tip .tip-sub { color: #D8D0E6; font-size: 11.5px; }

@media (min-width: 640px) {
  .lib-list-page .xl-cal-yr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .lib-list-page .xl-cal-dl-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .lib-list-page .xl-cal-count-mob { display: none; }
}
@media (min-width: 1120px) {
  .lib-list-page .xl-cal-yr-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .lib-list-page .xl-mini-day { min-height: 22px; font-size: 11px; }
  .lib-list-page .xl-cal-mo-layout {
    grid-template-columns: 356px minmax(0, 1fr);
    gap: 16px;
  }
  .lib-list-page .xl-cal-grid-box { position: sticky; top: calc(var(--header) + 16px); }
  .lib-list-page .xl-mday { min-height: 48px; }
}

/* Matching events list (library/lists/matching-events-2026): quoted source text and carry-in list */
.lib-list-page .xl-cal-list-carry { border: 0; border-top: 1px solid #EBE9EE; }
.lib-list-page .xp-quote { margin: 0 0 8px; padding: 8px 12px; border-left: 2px solid var(--gray-2); background: #FCFCFA; }
.lib-list-page .xp-quote p { margin: 0; }
.lib-list-page .xp-quote .xp-quote-ja { margin-top: 4px; color: var(--meta); font-size: 12.5px; }
.lib-list-page .xp-quote .xp-quote-ja span { margin-right: 6px; font-weight: 600; }
.lib-list-page .xl-yr-seg { margin: 4px 0 12px; max-width: 100%; }
.lib-list-page .xl-yr-seg .xl-cal-seg-btn small { font-weight: 400; opacity: .8; margin-left: 2px; }
.lib-list-page .xp-y27 { margin-bottom: 12px; }
.lib-list-page .xp-last-head { margin: 4px 0 8px; font-size: 13px; font-weight: 600; color: var(--meta); }
.lib-list-page .xl-cal-expected { margin-top: 12px; }

/* Language switch (2026-12-05): 日本語 / English / 繁體中文 on the same list page */
.lib-list-page .xl-lang { display: inline-flex; align-items: center; gap: 2px; margin-right: 4px; }
.lib-list-page .xl-lang a {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 8px;
  font-size: 12.5px; font-weight: 500; color: var(--meta); text-decoration: none;
  border-radius: 999px;
}
.lib-list-page .xl-lang a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.lib-list-page .xl-lang a[aria-current="true"] { color: var(--ink); background: var(--xl-open-bg); font-weight: 600; }
.lib-list-page .xl-lang a[aria-current="true"]:hover { text-decoration: none; }
.lib-list-page .xl-head-meta { flex-wrap: wrap; row-gap: 4px; }
.lib-list-page .xl-head-meta > * { white-space: nowrap; }
@media (max-width: 760px) {
  .lib-list-page .xl-lang { flex-basis: 100%; margin: 0 0 0 -8px; }
}

/* ---- Booth size and total cost (approved Neon design, 2026-12-05) ----
   One row per plan: floor plan | name, pills, stacked cost bar, formula | total, NT$, per m2.
   Purple = open to anyone, teal = conditions apply, grey = closed. Tooltip: .xp-bv-tip. */
.lib-list-page .xb-card {
  --xb-ink: #1A003A; --xb-body: #3D3550; --xb-meta: #6E6880; --xb-line: #E4E0EC; --xb-line-soft: #EFEBF5;
  --xb-bg: #FAFAF8; --xb-fill: #F5F3F8; --xb-purple: #5B33A8; --xb-purple-soft: #C4AFE9; --xb-purple-pale: #EFE9FA;
  --xb-teal-pale: #E3F3F0; --xb-closed-pale: #F1EFF5; --xb-warn-bg: #FFF5E5; --xb-warn-ink: #9A4E00; --xb-warn-line: #E8B878;
  margin: 0 0 16px; padding: 14px 16px 12px; color: var(--xb-ink); background: #FFFFFF; border: 1px solid var(--xb-line);
  font-variant-numeric: tabular-nums; line-height: 1.45;
}
.lib-list-page .xb-card * { box-sizing: border-box; }
.lib-list-page .xb-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-bottom: 6px; }
.lib-list-page .xb-title-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; min-width: 0; }
.lib-list-page .xb-title { margin: 0; font-size: 15px; font-weight: 700; color: var(--xb-ink); letter-spacing: -0.01em; }
.lib-list-page .xb-old-badge { display: inline-flex; align-items: center; padding: 1px 7px; font-size: 10.5px; font-weight: 700; color: var(--xb-warn-ink); background: var(--xb-warn-bg); border: 1px solid var(--xb-warn-line); }
.lib-list-page .xb-controls { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lib-list-page .xb-seg-ctrl { display: inline-flex; padding: 2px; background: var(--xb-fill); border: 1px solid var(--xb-line); }
.lib-list-page .xb-seg-btn { padding: 3px 9px; font: inherit; font-size: 11px; font-weight: 600; color: var(--xb-meta); background: transparent; border: 0; cursor: pointer; white-space: nowrap; transition: background .12s, color .12s; }
.lib-list-page .xb-seg-btn:hover { color: var(--xb-ink); }
.lib-list-page .xb-seg-btn[aria-pressed="true"] { color: #FFFFFF; background: var(--xb-ink); }
.lib-list-page .xb-tbl-btn { padding: 4px 9px; font: inherit; font-size: 11px; font-weight: 600; color: var(--xb-body); background: #FFFFFF; border: 1px solid var(--xb-line); cursor: pointer; white-space: nowrap; }
.lib-list-page .xb-tbl-btn:hover { color: var(--xb-ink); border-color: var(--xb-ink); }
.lib-list-page .xb-tbl-btn[aria-expanded="true"] { color: var(--xb-ink); background: var(--xb-fill); border-color: var(--xb-ink); }
.lib-list-page .xb-seg-btn:focus-visible, .lib-list-page .xb-tbl-btn:focus-visible { outline: 2px solid #7A4FC4; outline-offset: 2px; }
.lib-list-page .xb-lead { margin: 0 0 10px; padding: 7px 10px; font-size: 12.5px; line-height: 1.5; color: var(--xb-body); background: var(--xb-bg); border-left: 3px solid var(--xb-purple); }
.lib-list-page .xb-lead b { color: var(--xb-ink); font-weight: 700; }

/* Axis header: the median pill sits above the tick labels */
.lib-list-page .xb-axis-row { display: grid; grid-template-columns: 118px minmax(0, 1fr) 132px; gap: 14px; align-items: end; padding: 0 0 5px; font-size: 11px; font-weight: 600; color: var(--xb-meta); border-bottom: 1.5px solid var(--xb-ink); }
.lib-list-page .xb-card.no-plan .xb-axis-row { grid-template-columns: minmax(0, 1fr) 132px; }
.lib-list-page .xb-axis-size { text-align: center; line-height: 1.2; }
.lib-list-page .xb-axis-price { position: relative; height: 33px; }
.lib-list-page .xb-axis-ticks { position: relative; width: 100%; height: 100%; }
.lib-list-page .xb-med-pill { position: absolute; top: 0; z-index: 2; padding: 0 6px; font-size: 10px; font-weight: 700; line-height: 1.45; white-space: nowrap; color: var(--xb-purple); background: var(--xb-purple-pale); border: 1px solid #DDD1F5; transform: translateX(-50%); }
.lib-list-page .xb-med-stem { position: absolute; top: 16px; bottom: -5px; width: 0; border-left: 1.5px dashed rgba(91, 51, 168, .48); pointer-events: none; }
.lib-list-page .xb-tick-lbl { position: absolute; bottom: 0; font-size: 10.5px; font-weight: 600; line-height: 1.1; white-space: nowrap; color: var(--xb-meta); transform: translateX(-50%); }
.lib-list-page .xb-tick-lbl.is-start { transform: translateX(0); }
.lib-list-page .xb-tick-lbl.is-end { transform: translateX(-100%); }
.lib-list-page .xb-axis-total { text-align: right; line-height: 1.2; }
.lib-list-page .xb-mob-scale { display: none; margin-bottom: 4px; padding: 4px 8px; font-size: 10.5px; font-weight: 600; color: var(--xb-meta); background: var(--xb-fill); border-bottom: 1px solid var(--xb-line); }

/* Rows */
.lib-list-page .xb-rows { position: relative; }
.lib-list-page .xb-row { display: grid; grid-template-columns: 118px minmax(0, 1fr) 132px; gap: 14px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--xb-line-soft); }
.lib-list-page .xb-row:last-child { padding-bottom: 3px; border-bottom: 0; }
.lib-list-page .xb-row.is-closed { opacity: .62; }
.lib-list-page .xb-card.no-plan .xb-row { grid-template-columns: minmax(0, 1fr) 132px; }
.lib-list-page .xb-plan-col { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.lib-list-page .xb-plan-box { position: relative; display: flex; align-items: center; justify-content: center; width: 114px; height: 58px; background: #FAF9FC; border: 1px solid #E5E0EE; cursor: default; transition: border-color .12s, box-shadow .12s; }
.lib-list-page .xb-plan-box:hover, .lib-list-page .xb-plan-box:focus-visible { border-color: var(--xb-purple); outline: none; box-shadow: 0 0 0 2px rgba(91, 51, 168, .18); }
.lib-list-page .xb-plan-box svg { display: block; width: 112px; height: 56px; }
.lib-list-page .xb-scale-chip { position: absolute; top: 2px; left: 3px; padding: 0 4px; font-size: 9px; font-weight: 700; line-height: 1.3; color: var(--xb-warn-ink); background: rgba(255, 245, 229, .96); border: 1px solid var(--xb-warn-line); }
.lib-list-page .xb-plan-meta { text-align: center; line-height: 1.22; }
.lib-list-page .xb-plan-area { display: block; font-size: 12.5px; font-weight: 800; color: var(--xb-ink); }
.lib-list-page .xb-plan-area.is-muted { font-weight: 600; color: var(--xb-meta); }
.lib-list-page .xb-plan-area em { margin-left: 3px; font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--xb-warn-ink); }
.lib-list-page .xb-plan-dim { display: block; font-size: 10.5px; color: var(--xb-meta); white-space: nowrap; }
.lib-list-page .xb-mid-col { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lib-list-page .xb-name-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.lib-list-page .xb-name { font-size: 13.5px; font-weight: 700; line-height: 1.3; color: var(--xb-ink); }
.lib-list-page .xb-pill { display: inline-flex; align-items: center; padding: 1px 6px; font-size: 10.5px; font-weight: 600; line-height: 1.38; white-space: nowrap; }
.lib-list-page .xb-pill.open { color: #4A4358; background: #F2EFF8; }
.lib-list-page .xb-pill.cond { color: #12594F; background: var(--xb-teal-pale); }
.lib-list-page .xb-pill.closed { color: var(--xb-meta); background: var(--xb-closed-pale); }
.lib-list-page .xb-pill.deco-inc { color: var(--xb-ink); background: #FFFFFF; border: 1px solid #D5CEE6; }
.lib-list-page .xb-pill.deco-sep { color: var(--xb-warn-ink); background: var(--xb-warn-bg); border: 1px solid var(--xb-warn-line); }
.lib-list-page .xb-pill.deco-na { color: var(--xb-meta); background: #FFFFFF; border: 1px dashed #BFB8CE; }

/* Stacked cost bar on the fixed axis */
.lib-list-page .xb-bar-stage { position: relative; display: flex; align-items: center; height: 19px; }
.lib-list-page .xb-gridlines { position: absolute; inset: 0; pointer-events: none; }
.lib-list-page .xb-gl { position: absolute; top: -3px; bottom: -3px; width: 1px; background: #ECE8F4; }
.lib-list-page .xb-gl.is-zero { background: #CFC8DF; }
.lib-list-page .xb-med-line { position: absolute; top: -4px; bottom: -4px; width: 0; border-left: 1.5px dashed rgba(91, 51, 168, .42); pointer-events: none; }
.lib-list-page .xb-bar { position: relative; z-index: 1; display: flex; align-items: stretch; width: 100%; height: 14px; }
.lib-list-page .xb-seg { position: relative; min-width: 2px; height: 100%; cursor: default; transition: filter .1s; }
.lib-list-page .xb-seg + .xb-seg { border-left: 1.5px solid #FFFFFF; }
.lib-list-page .xb-seg:hover, .lib-list-page .xb-seg:focus-visible { z-index: 3; filter: brightness(.88); outline: 2px solid var(--xb-ink); outline-offset: 1px; }
.lib-list-page .xb-seg.is-deco { background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .25) 0, rgba(255, 255, 255, .25) 3px, transparent 3px, transparent 6px); }
.lib-list-page .xb-seg.is-unpriced { flex: none; width: 24px; background: repeating-linear-gradient(-45deg, #FFF8EC 0, #FFF8EC 3px, #F3D3A3 3px, #F3D3A3 5px); border: 1px dashed var(--xb-warn-ink); border-left: 1.5px solid #FFFFFF; }
.lib-list-page .xb-seg.is-na { flex: none; width: 16px; background: repeating-linear-gradient(-45deg, #FFFFFF 0, #FFFFFF 3px, #E2DDE9 3px, #E2DDE9 5px); border: 1px dashed #A39BB5; border-left: 1.5px solid #FFFFFF; }
.lib-list-page .xb-nosqm { font-size: 11.5px; font-style: italic; color: var(--xb-meta); }
.lib-list-page .xb-formula { font-size: 11px; line-height: 1.35; color: var(--xb-meta); overflow-wrap: anywhere; }
.lib-list-page .xb-formula b { font-weight: 600; color: var(--xb-body); }
.lib-list-page .xb-formula .warn-txt { font-weight: 600; color: var(--xb-warn-ink); }

/* Total, NT$, per m2 */
.lib-list-page .xb-val-col { text-align: right; line-height: 1.24; }
.lib-list-page .xb-price-main { display: block; font-size: 15.5px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; color: var(--xb-ink); }
.lib-list-page .xb-price-main.is-muted { color: var(--xb-meta); }
.lib-list-page .xb-price-main .tilde { margin-left: 1px; font-size: 11.5px; font-weight: 700; }
.lib-list-page .xb-price-plus { display: inline-block; margin-top: 2px; padding: 0 5px; font-size: 10px; font-weight: 700; white-space: nowrap; color: var(--xb-warn-ink); background: var(--xb-warn-bg); border: 1px solid var(--xb-warn-line); }
.lib-list-page .xb-price-nt { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 600; white-space: nowrap; color: var(--xb-body); }
.lib-list-page .xb-price-sqm { display: block; margin-top: 1px; font-size: 10.5px; white-space: nowrap; color: var(--xb-meta); }

/* Legend, note, numbers table */
.lib-list-page .xb-foot-bar { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--xb-line-soft); }
.lib-list-page .xb-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 11px; font-size: 11px; color: var(--xb-meta); }
.lib-list-page .xb-leg-item { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.lib-list-page .xb-sw { display: inline-block; flex: none; width: 11px; height: 11px; }
.lib-list-page .xb-sw.deco-sw { background-color: var(--xb-purple-soft); background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .28) 0 2.5px, transparent 2.5px 5px); }
.lib-list-page .xb-sw.unpriced-sw { background: repeating-linear-gradient(-45deg, #FFF8EC 0 2.5px, #F3D3A3 2.5px 4.5px); border: 1px dashed var(--xb-warn-ink); }
.lib-list-page .xb-sw.na-sw { background: repeating-linear-gradient(-45deg, #FFFFFF 0 2.5px, #E2DDE9 2.5px 4.5px); border: 1px dashed #A39BB5; }
.lib-list-page .xb-sw.wall-sw { background: var(--xb-purple-pale); border: 2.2px solid var(--xb-purple); border-bottom: 1px solid #DFD8EE; }
.lib-list-page .xb-sw.bare-sw { background: #FFFFFF; border: 1.2px dashed var(--xb-purple); }
.lib-list-page .xb-note { margin: 0; font-size: 10.5px; line-height: 1.48; color: var(--xb-meta); }
.lib-list-page .xb-table-wrap { margin-top: 9px; padding-top: 8px; overflow-x: auto; border-top: 1px solid var(--xb-line); }
.lib-list-page .xb-table-wrap[hidden] { display: none; }
.lib-list-page .xb-table { width: 100%; border-collapse: collapse; font-size: 11.5px; color: var(--xb-body); }
.lib-list-page .xb-table th, .lib-list-page .xb-table td { padding: 5px 7px; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--xb-line-soft); }
.lib-list-page .xb-table th { font-size: 10.5px; font-weight: 700; color: var(--xb-meta); background: var(--xb-bg); }
.lib-list-page .xb-table .num { text-align: right; }
.lib-list-page .xb-table td.strong { font-weight: 700; color: var(--xb-ink); }

@media (max-width: 560px) {
  .lib-list-page .xb-card { padding: 12px 12px 11px; }
  .lib-list-page .xb-axis-row { display: none; }
  .lib-list-page .xb-mob-scale { display: block; }
  .lib-list-page .xb-row { grid-template-columns: 102px minmax(0, 1fr); grid-template-areas: "plan val" "mid mid"; gap: 8px 10px; padding: 11px 0; }
  .lib-list-page .xb-card.no-plan .xb-row { grid-template-columns: minmax(0, 1fr); grid-template-areas: "val" "mid"; }
  .lib-list-page .xb-plan-col { grid-area: plan; align-items: flex-start; }
  .lib-list-page .xb-plan-box { width: 100px; height: 52px; }
  .lib-list-page .xb-plan-box svg { width: 98px; height: 50px; }
  .lib-list-page .xb-plan-meta { text-align: left; }
  .lib-list-page .xb-val-col { grid-area: val; align-self: center; }
  .lib-list-page .xb-card.no-plan .xb-val-col { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; text-align: left; }
  .lib-list-page .xb-mid-col { grid-area: mid; }
}
