/* YYVendingMachine field-service brand — public fault search */
:root {
  --lb-bg: #eef3f6;
  --lb-bg-accent: #e2eef3;
  --lb-surface: #ffffff;
  --lb-ink: #14212b;
  --lb-muted: #5b6b76;
  --lb-line: #d5e0e6;
  --lb-primary: #0f6a7a;
  --lb-primary-hover: #0b5562;
  --lb-primary-soft: #d8eef2;
  --lb-accent: #d97706;
  --lb-accent-soft: #fff4e0;
  --lb-danger: #b42318;
  --lb-radius: 14px;
  --lb-radius-sm: 10px;
  --lb-shadow: 0 10px 30px rgba(20, 33, 43, 0.08);
  --lb-shadow-sm: 0 2px 8px rgba(20, 33, 43, 0.06);
  --lb-font: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

.lb-body {
  font-family: var(--lb-font);
  color: var(--lb-ink);
  background:
    radial-gradient(1200px 400px at 10% -10%, #cfe8ee 0%, transparent 55%),
    radial-gradient(900px 360px at 90% 0%, #ffe8c2 0%, transparent 50%),
    var(--lb-bg);
  min-height: 100vh;
}

.lb-nav {
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(213,224,230,0.9);
  position: sticky;
  top: 0;
  z-index: 40;
}
.lb-nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.lb-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--lb-ink);
  font-weight: 700;
}
.lb-brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.65rem;
  background: linear-gradient(145deg, var(--lb-primary), #167f92);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 800;
  box-shadow: var(--lb-shadow-sm);
}
.lb-brand-sub {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--lb-muted);
  margin-top: 0.05rem;
}
.lb-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.lb-link {
  color: var(--lb-muted);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
}
.lb-link:hover { color: var(--lb-primary); background: var(--lb-primary-soft); }
.lb-dropdown { position: relative; }
.lb-dropdown summary {
  list-style: none;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--lb-ink);
  background: var(--lb-surface);
  border: 1px solid var(--lb-line);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
}
.lb-dropdown summary::-webkit-details-marker { display: none; }
.lb-dropdown[open] summary { border-color: var(--lb-primary); }
.lb-dropdown-menu {
  position: absolute;
  right: 0;
  margin-top: 0.4rem;
  min-width: 11rem;
  background: var(--lb-surface);
  border: 1px solid var(--lb-line);
  border-radius: var(--lb-radius-sm);
  box-shadow: var(--lb-shadow);
  padding: 0.35rem;
  z-index: 50;
}
.lb-dropdown-menu a,
.lb-dropdown-menu button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--lb-ink);
  text-decoration: none;
  font-size: 0.875rem;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  cursor: pointer;
}
.lb-dropdown-menu a:hover,
.lb-dropdown-menu button:hover { background: var(--lb-bg-accent); color: var(--lb-primary); }

.lb-shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
}

.lb-hero {
  background: linear-gradient(145deg, #0f4f5c 0%, #147a8a 55%, #1a8fa0 100%);
  color: #fff;
  border-radius: calc(var(--lb-radius) + 4px);
  padding: 1.5rem 1.25rem 1.25rem;
  box-shadow: var(--lb-shadow);
  margin-bottom: 1.25rem;
}
.lb-hero h1 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: 0.01em;
}
.lb-hero p {
  margin: 0.45rem 0 0;
  color: rgba(255,255,255,0.85);
  font-size: 0.92rem;
  line-height: 1.5;
}

.lb-search-card {
  background: var(--lb-surface);
  border-radius: var(--lb-radius);
  box-shadow: var(--lb-shadow);
  padding: 1rem;
  margin-top: -2.25rem;
  position: relative;
  border: 1px solid rgba(255,255,255,0.5);
}
.lb-search-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 720px) {
  .lb-search-grid {
    grid-template-columns: 1fr 220px auto auto;
    align-items: end;
  }
}
.lb-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--lb-muted);
  margin-bottom: 0.35rem;
}
.lb-input,
.lb-select {
  width: 100%;
  border: 1px solid var(--lb-line);
  border-radius: var(--lb-radius-sm);
  padding: 0.75rem 0.9rem;
  font-size: 1rem;
  background: #fff;
  color: var(--lb-ink);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.lb-input:focus,
.lb-select:focus {
  border-color: var(--lb-primary);
  box-shadow: 0 0 0 3px rgba(15,106,122,0.15);
}
.lb-input-lg { font-size: 1.05rem; font-weight: 600; }
.lb-hint {
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  color: var(--lb-muted);
}

.lb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 0;
  border-radius: var(--lb-radius-sm);
  padding: 0.75rem 1.1rem;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, transform .05s;
}
.lb-btn:active { transform: translateY(1px); }
.lb-btn-primary { background: var(--lb-primary); color: #fff; }
.lb-btn-primary:hover { background: var(--lb-primary-hover); color: #fff; }
.lb-btn-danger { background: var(--lb-danger); color: #fff; }
.lb-btn-danger:hover { background: #912018; color: #fff; }
.lb-btn-danger:disabled { opacity: 0.65; cursor: not-allowed; }
.lb-btn-ghost {
  background: transparent;
  color: var(--lb-muted);
  border: 1px solid var(--lb-line);
}
.lb-btn-ghost:hover { color: var(--lb-primary); border-color: var(--lb-primary); }
.lb-btn-block { width: 100%; }
@media (min-width: 720px) {
  .lb-btn-search { min-width: 7rem; }
}

.lb-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 1.25rem 0 0.75rem;
}
.lb-section-head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}
.lb-count {
  font-size: 0.85rem;
  color: var(--lb-muted);
}

.lb-empty {
  background: var(--lb-surface);
  border: 1px dashed #b7c8d1;
  border-radius: var(--lb-radius);
  padding: 1.75rem 1.25rem;
  text-align: center;
  box-shadow: var(--lb-shadow-sm);
}
.lb-empty-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.75rem;
  border-radius: 999px;
  background: var(--lb-primary-soft);
  color: var(--lb-primary);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  font-weight: 800;
}
.lb-empty h3 { margin: 0; font-size: 1.05rem; }
.lb-empty p { margin: 0.45rem 0 0; color: var(--lb-muted); font-size: 0.9rem; line-height: 1.55; }

.lb-result-list {
  display: grid;
  gap: 0.75rem;
}
.lb-result-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--lb-surface);
  border: 1px solid var(--lb-line);
  border-radius: var(--lb-radius);
  padding: 1rem 1rem 0.95rem;
  box-shadow: var(--lb-shadow-sm);
  transition: border-color .15s, box-shadow .15s, transform .08s;
}
.lb-result-card:hover {
  border-color: #9ec8d1;
  box-shadow: var(--lb-shadow);
  transform: translateY(-1px);
}
.lb-result-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.45rem;
}
.lb-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 800;
  font-size: 0.95rem;
  color: #92400e;
  background: var(--lb-accent-soft);
  border: 1px solid #f2d19a;
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
}
.lb-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--lb-ink);
}
.lb-desc {
  margin: 0.2rem 0 0.65rem;
  color: var(--lb-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  white-space: pre-wrap;
}
.lb-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.lb-tag {
  font-size: 0.75rem;
  color: var(--lb-primary);
  background: var(--lb-primary-soft);
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
}
/* 检索结果卡片：原因 / 方案摘要（2026-10-08） */
.lb-result-snippets {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.65rem;
  padding-top: 0.6rem;
  border-top: 1px dashed var(--lb-line);
}
.lb-result-snippet {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  min-width: 0;
}
.lb-snippet-label {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--lb-primary);
  background: var(--lb-primary-soft);
  border-radius: 6px;
  padding: 0.18rem 0.45rem;
  margin-top: 0.1rem;
}
.lb-snippet-label small {
  font-size: 0.68rem;
  font-weight: 600;
  opacity: 0.8;
}
.lb-snippet-label.is-solution {
  color: #92400e;
  background: var(--lb-accent-soft);
}
.lb-snippet-text {
  margin: 0;
  min-width: 0;
  flex: 1 1 auto;
  color: var(--lb-muted);
  font-size: 0.86rem;
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  word-break: break-word;
}
.lb-snippet-hint {
  margin: 0;
  font-size: 0.75rem;
  color: var(--lb-muted);
  opacity: 0.85;
}
.lb-card-cta {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--lb-primary);
}

.lb-panel {
  background: var(--lb-surface);
  border: 1px solid var(--lb-line);
  border-radius: var(--lb-radius);
  box-shadow: var(--lb-shadow-sm);
  padding: 1rem;
}
.lb-back {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--lb-primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.lb-back:hover { text-decoration: underline; }
.lb-fault-head h1 {
  margin: 0.2rem 0 0;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  font-weight: 800;
}
.lb-fault-head .lb-code { margin-right: 0.35rem; }
.lb-cause {
  border-left: 4px solid var(--lb-primary);
  background: #f7fbfc;
  border-radius: 0 var(--lb-radius-sm) var(--lb-radius-sm) 0;
  padding: 0.9rem 1rem;
  margin-top: 0.75rem;
}
.lb-cause > h3 { margin: 0; font-size: 1rem; }
.lb-solution {
  margin-top: 0.6rem;
  background: #fff;
  border: 1px solid var(--lb-line);
  border-radius: var(--lb-radius-sm);
  padding: 0.75rem 0.85rem;
}
.lb-solution > strong { color: var(--lb-accent); }
.lb-cause-body { margin-top: 0.45rem; font-size: 0.92rem; }
.lb-solution-body { margin-top: 0.4rem; font-size: 0.9rem; }
.lb-solution pre {
  margin: 0.4rem 0 0;
  white-space: pre-wrap;
  font-family: var(--lb-font);
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--lb-ink);
}

.lb-alert {
  border-radius: var(--lb-radius-sm);
  padding: 0.75rem 0.9rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}
.lb-alert-ok { background: #e8f7ef; color: #17663a; }
.lb-alert-err { background: #fdecec; color: var(--lb-danger); }
.lb-alert-warn { background: #fff7ed; color: #9a3412; border: 1px solid #fdba74; }

/* —— Admin shell —— */
.lb-admin-body {
  font-family: var(--lb-font);
  color: var(--lb-ink);
  background: var(--lb-bg);
  min-height: 100vh;
  margin: 0;
}
.lb-admin {
  display: flex;
  min-height: 100vh;
}
.lb-admin-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--lb-surface);
  border-right: 1px solid var(--lb-line);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 30;
}
.lb-admin-sidebar-brand {
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid var(--lb-line);
}
.lb-admin-nav {
  padding: 0.75rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  overflow-y: auto;
}
.lb-admin-nav-item {
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: var(--lb-radius-sm);
  color: var(--lb-ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: background .12s, color .12s;
}
.lb-admin-nav-item:hover {
  background: var(--lb-bg-accent);
  color: var(--lb-primary);
}
.lb-admin-nav-item.is-active {
  background: var(--lb-primary);
  color: #fff;
}
.lb-admin-nav-item.is-active:hover {
  background: var(--lb-primary-hover);
  color: #fff;
}
.lb-admin-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.lb-admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 1.1rem;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--lb-line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.lb-admin-topbar-left,
.lb-admin-topbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.lb-admin-logo-text { font-weight: 700; font-size: 0.95rem; }
.lb-admin-logo-link {
  display: none;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: var(--lb-ink);
  font-weight: 700;
}
.lb-brand-mark-sm {
  width: 1.65rem;
  height: 1.65rem;
  font-size: 0.7rem;
  border-radius: 0.5rem;
}
.lb-admin-role {
  color: var(--lb-muted);
  font-weight: 500;
  font-size: 0.8rem;
}
.lb-admin-menu-btn {
  display: none;
  border: 1px solid var(--lb-line);
  background: var(--lb-surface);
  border-radius: 8px;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--lb-ink);
}
.lb-admin-overlay {
  display: none;
}
.lb-admin-pagehead {
  padding: 1rem 1.25rem 0;
}
.lb-admin-pagehead h1,
.lb-admin-pagehead h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--lb-ink);
}
.lb-admin-content {
  padding: 1rem 1.25rem 2.5rem;
}
.lb-admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.lb-admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: flex-end;
}
.lb-admin-filters .lb-field { min-width: 10rem; }
.lb-admin-filters .lb-field-grow { flex: 1; min-width: 12rem; }
.lb-card {
  background: var(--lb-surface);
  border: 1px solid var(--lb-line);
  border-radius: var(--lb-radius);
  box-shadow: var(--lb-shadow-sm);
  padding: 1rem;
}
.lb-card + .lb-card { margin-top: 0.85rem; }
.lb-table-wrap { overflow-x: auto; }
.lb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.lb-table th,
.lb-table td {
  text-align: left;
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid var(--lb-line);
  vertical-align: top;
}
.lb-table th {
  font-size: 0.78rem;
  text-transform: none;
  color: var(--lb-muted);
  font-weight: 700;
  background: #f7fafb;
}
.lb-table a { color: var(--lb-primary); font-weight: 600; text-decoration: none; }
.lb-table a:hover { text-decoration: underline; }
.lb-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--lb-line);
  background: #f7fafb;
  color: var(--lb-ink);
  font-size: 0.82rem;
  text-decoration: none;
  font-weight: 600;
}
.lb-chip:hover { border-color: var(--lb-primary); color: var(--lb-primary); }
.lb-chip.is-active {
  background: var(--lb-primary);
  border-color: var(--lb-primary);
  color: #fff;
}
.lb-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  border-bottom: 1px solid var(--lb-line);
  margin-bottom: 0.85rem;
}
.lb-tab {
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--lb-muted);
  text-decoration: none;
  border-radius: 8px 8px 0 0;
  border: 1px solid transparent;
  margin-bottom: -1px;
}
.lb-tab:hover { color: var(--lb-primary); }
.lb-tab.is-active {
  color: var(--lb-primary);
  background: var(--lb-surface);
  border-color: var(--lb-line);
  border-bottom-color: var(--lb-surface);
}
.lb-summary {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}
.lb-summary-title { margin: 0; font-size: 1.15rem; font-weight: 800; }
.lb-summary-meta { color: var(--lb-muted); font-size: 0.88rem; }
.lb-tree {
  list-style: none;
  margin: 0;
  padding: 0;
}
.lb-tree a {
  display: block;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  color: var(--lb-ink);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}
.lb-tree a:hover { background: var(--lb-bg-accent); color: var(--lb-primary); }
.lb-tree a.is-active {
  background: var(--lb-primary-soft);
  color: var(--lb-primary);
}
.lb-tree-depth-1 { padding-left: 0.75rem; }
.lb-tree-depth-2 { padding-left: 1.5rem; }
.lb-tree-depth-3 { padding-left: 2.25rem; }
.lb-fw-layout {
  display: grid;
  gap: 1rem;
}
@media (min-width: 900px) {
  .lb-fw-layout {
    grid-template-columns: 220px 1fr;
    align-items: start;
  }
}
.lb-link-primary { color: var(--lb-primary); font-weight: 600; text-decoration: none; }
.lb-link-primary:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .lb-admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-105%);
    transition: transform .18s ease;
    box-shadow: var(--lb-shadow);
  }
  .lb-admin-sidebar.is-open { transform: translateX(0); }
  .lb-admin-menu-btn { display: inline-flex; }
  .lb-admin-logo-text { font-weight: 700; font-size: 0.95rem; }
.lb-admin-logo-link { display: inline-flex; }
  .lb-admin-public-link { display: none; }
  /* 工作事项入口：窄屏仍可见（勿与 public-link 一并隐藏） */
  .lb-admin-work-link { display: inline-flex; white-space: nowrap; }
  .lb-admin-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(20,33,43,0.35);
    z-index: 25;
  }
}
[x-cloak] { display: none !important; }

/* —— Admin create-user modal —— */
.lb-role-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  background: var(--lb-primary-soft);
  color: var(--lb-primary);
  font-size: 0.82rem;
  font-weight: 700;
}
.lb-role-badge-admin {
  background: var(--lb-accent-soft);
  color: #9a5b00;
}
.lb-field-hint {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--lb-muted);
  line-height: 1.4;
}
.lb-password-row {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}
.lb-password-row .lb-input { flex: 1; }
.lb-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.lb-modal.is-open { display: flex; }
.lb-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 33, 43, 0.45);
}
.lb-modal-card {
  position: relative;
  width: 100%;
  max-width: 28rem;
  background: var(--lb-surface);
  border-radius: var(--lb-radius);
  box-shadow: var(--lb-shadow);
  border: 1px solid var(--lb-line);
  padding: 1.15rem 1.25rem 1.25rem;
  z-index: 1;
  max-height: min(90vh, 40rem);
  overflow-y: auto;
}
.lb-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.lb-modal-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--lb-ink);
}
.lb-modal-close {
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--lb-muted);
  cursor: pointer;
  padding: 0.15rem 0.4rem;
  border-radius: 8px;
}
.lb-modal-close:hover { background: var(--lb-bg-accent); color: var(--lb-ink); }
.lb-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

/* ===== Rich text prose (public + admin detail) ===== */
.lb-prose {
  color: var(--lb-ink);
  line-height: 1.7;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.lb-prose > *:first-child { margin-top: 0; }
.lb-prose > *:last-child { margin-bottom: 0; }
.lb-prose p {
  margin: 0 0 0.75em;
}
.lb-prose .lb-fs-sm { font-size: 0.875rem; }
.lb-prose .lb-fs-body { font-size: 1rem; }
.lb-prose .lb-fs-lg { font-size: 1.125rem; }
.lb-prose .lb-fs-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--lb-ink);
}
.lb-prose h1, .lb-prose h2, .lb-prose h3, .lb-prose h4 {
  color: var(--lb-ink);
  font-weight: 700;
  line-height: 1.35;
  margin: 1em 0 0.5em;
}
.lb-prose h1 { font-size: 1.5rem; }
.lb-prose h2 { font-size: 1.35rem; }
.lb-prose h3 { font-size: 1.2rem; }
.lb-prose h4 { font-size: 1.05rem; }
.lb-prose a {
  color: var(--lb-primary);
  text-decoration: none;
}
.lb-prose a:hover { text-decoration: underline; }
.lb-prose ul, .lb-prose ol {
  margin: 0 0 0.75em;
  padding-left: 1.5rem;
}
.lb-prose li { margin: 0.25em 0; }
.lb-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75em 0;
  font-size: 0.95rem;
  display: block;
  overflow-x: auto;
  max-width: 100%;
}
.lb-prose thead th,
.lb-prose th {
  background: var(--lb-primary-soft);
  font-weight: 600;
}
.lb-prose th,
.lb-prose td {
  border: 1px solid var(--lb-line);
  padding: 0.45rem 0.65rem;
  text-align: left;
  vertical-align: top;
}
.lb-prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--lb-radius-sm);
  display: block;
  margin: 0.75em auto;
}
.lb-prose blockquote {
  margin: 0.75em 0;
  padding: 0.35em 0.85em;
  border-left: 3px solid var(--lb-primary);
  color: var(--lb-muted);
  background: var(--lb-bg-accent);
  border-radius: 0 var(--lb-radius-sm) var(--lb-radius-sm) 0;
}

/* ===== Rich editor chrome ===== */
.lb-re {
  border: 1px solid var(--lb-line);
  border-radius: var(--lb-radius-sm);
  background: var(--lb-surface);
  overflow: hidden;
}
.lb-re-hidden { display: none !important; }
.lb-re-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid var(--lb-line);
  background: #f7fafb;
}
.lb-re-btn {
  height: 32px;
  min-width: 32px;
  padding: 0 0.55rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--lb-ink);
  font-size: 0.85rem;
  cursor: pointer;
  line-height: 1;
}
.lb-re-btn:hover,
.lb-re-btn:focus-visible {
  background: var(--lb-primary-soft);
  border-color: var(--lb-line);
  outline: none;
}
.lb-re-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.lb-re-sep {
  width: 1px;
  height: 20px;
  background: var(--lb-line);
  margin: 0 0.15rem;
}
.lb-re-select-wrap { display: inline-flex; }
.lb-re-select {
  height: 32px;
  border: 1px solid var(--lb-line);
  border-radius: 8px;
  background: #fff;
  font-size: 0.85rem;
  padding: 0 0.4rem;
  color: var(--lb-ink);
}
.lb-re-menu { position: relative; }
.lb-re-menu > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
}
.lb-re-menu > summary::-webkit-details-marker { display: none; }
.lb-re-menu-panel {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 30;
  min-width: 8.5rem;
  background: #fff;
  border: 1px solid var(--lb-line);
  border-radius: var(--lb-radius-sm);
  box-shadow: var(--lb-shadow-sm);
  padding: 0.25rem;
  margin-top: 0.2rem;
}
.lb-re-menu-panel button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0.4rem 0.55rem;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--lb-ink);
}
.lb-re-menu-panel button:hover { background: var(--lb-primary-soft); }
.lb-re-file { display: none; }
.lb-re-editor {
  min-height: 240px;
  max-height: 560px;
  overflow-y: auto;
  padding: 0.85rem 1rem;
  outline: none;
  background: #fff;
}
.lb-re-editor.is-focus {
  box-shadow: inset 0 0 0 2px var(--lb-primary-soft);
}
.lb-re-editor:empty:before,
.lb-re-editor[data-placeholder]:not([data-placeholder=""]):empty:before {
  content: attr(data-placeholder);
  color: var(--lb-muted);
  pointer-events: none;
}
.lb-re-uploading {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  background: var(--lb-accent-soft);
  color: #9a3412;
  border-radius: 6px;
  font-size: 0.85rem;
}
.lb-re-images {
  border-top: 1px solid var(--lb-line);
  background: #fafbfc;
}
.lb-re-images-toggle {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0.55rem 0.85rem;
  font-size: 0.9rem;
  color: var(--lb-ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}
.lb-re-images-toggle:hover { background: var(--lb-primary-soft); }
.lb-re-images-panel {
  padding: 0 0.85rem 0.85rem;
}
.lb-re-images-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.lb-re-image-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem;
  border: 1px solid var(--lb-line);
  border-radius: var(--lb-radius-sm);
  background: #fff;
}
.lb-re-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--lb-bg-accent);
  flex-shrink: 0;
}
.lb-re-image-meta { flex: 1; min-width: 0; }
.lb-re-image-name {
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lb-re-image-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}
.lb-re-toast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--lb-ink);
  color: #fff;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity .2s, transform .2s;
  z-index: 1000;
  pointer-events: none;
}
.lb-re-toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.lb-re-toast.is-err { background: var(--lb-danger); }

/* 后台故障编辑：原因 / 方案逐项编辑（2026-10-08） */
.lb-admin-cause {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1rem;
}
.lb-admin-solution {
  background: #f9fafb;
  padding: 0.75rem;
  border-radius: 0.4rem;
  font-size: 0.9rem;
}
.lb-item-edit {
  margin-top: 0.5rem;
}
.lb-item-edit > summary {
  cursor: pointer;
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--lb-primary);
  user-select: none;
}
.lb-item-edit > summary:hover { text-decoration: underline; }
.lb-item-edit[open] > summary { margin-bottom: 0.25rem; }
.lb-item-edit > form {
  background: #fff;
  border: 1px solid var(--lb-line);
  border-radius: var(--lb-radius-sm);
  padding: 0.75rem;
}
.lb-item-add {
  margin-top: 0.75rem;
  padding-top: 0.6rem;
  border-top: 1px solid #e5e7eb;
}

/* 方案机型与原因不重叠提示（2026-10-08） */
.lb-tag.lb-tag-warn {
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  font-weight: 600;
  margin-left: 0.35rem;
  vertical-align: middle;
}


/* ===== 工作事项独立壳（2026-10-13） ===== */
[x-cloak] { display: none !important; }
.lb-work-body {
  font-family: var(--lb-font);
  color: var(--lb-ink);
  background:
    radial-gradient(1000px 360px at 8% -8%, #cfe8ee 0%, transparent 55%),
    radial-gradient(800px 300px at 92% 0%, #e8f3f0 0%, transparent 50%),
    var(--lb-bg);
  min-height: 100vh;
  margin: 0;
}
.lb-work-topbar {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--lb-line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.lb-work-topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.lb-work-brand { flex-shrink: 0; }
.lb-work-tabs {
  display: flex;
  gap: 0.25rem;
  flex: 1;
  min-width: 240px;
}
.lb-work-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  color: var(--lb-muted);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border-bottom: 2px solid transparent;
}
.lb-work-tab:hover { color: var(--lb-primary); background: var(--lb-primary-soft); }
.lb-work-tab.is-active {
  color: var(--lb-primary);
  background: var(--lb-primary-soft);
  border-bottom-color: var(--lb-primary);
}

/* Work · count badges (《19》数量小红标) */
.lb-work-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 5px;
  border-radius: 999px;
  background: #dc2626;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: -0.02em;
  pointer-events: none;
}
.lb-work-tab .lb-work-count-badge {
  height: 16px;
  min-width: 16px;
  padding: 0 5px;
  font-size: 11px;
}
@media (max-width: 860px) {
  .lb-work-count-badge { font-size: 10px; height: 16px; }
}
.lb-work-topbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}
/* Work · category/list search（《21》） */
.lb-work-cat-search {
  margin: 0 0 8px;
  padding: 0 2px;
}
.lb-work-cat-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.lb-work-cat-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--lb-muted);
  pointer-events: none;
  display: flex;
  line-height: 0;
}
.lb-work-cat-search-input {
  width: 100%;
  height: 32px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #e5eef1;
  padding: 0 28px 0 32px;
  font-size: 13px;
  color: var(--lb-ink);
  box-shadow: none;
}
.lb-work-cat-search-input::placeholder { color: var(--lb-muted); }
.lb-work-cat-search-input:focus {
  outline: none;
  border-color: var(--lb-primary);
  box-shadow: 0 0 0 2px rgba(15, 106, 122, 0.35);
}
.lb-work-cat-search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}
.lb-work-cat-search-clear {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--lb-muted);
  cursor: pointer;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1;
  padding: 0;
}
.lb-work-cat-search-clear:hover {
  background: #e8f4f6;
  color: var(--lb-primary);
}
.lb-work-mobile-search {
  display: none;
  margin-bottom: 0.55rem;
}
.lb-work-mobile-search .lb-work-cat-search {
  margin-bottom: 0;
  padding: 0;
}
.lb-work-admin-link { white-space: nowrap; }
.lb-work-main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0.85rem 1rem 2rem;
}
.lb-work-flash { margin-bottom: 0.75rem; }
.lb-work-shell {
  display: grid;
  grid-template-columns: minmax(160px, 180px) minmax(260px, 36%) 1fr;
  gap: 0.85rem;
  min-height: 70vh;
  align-items: start;
}
.lb-work-list-pane,
.lb-work-detail-pane {
  background: var(--lb-surface);
  border: 1px solid var(--lb-line);
  border-radius: var(--lb-radius);
  box-shadow: var(--lb-shadow-sm);
  padding: 0.85rem;
  min-height: 28rem;
}
.lb-work-quick-add { margin-bottom: 0.65rem; }
.lb-work-quick-row { display: flex; gap: 0.4rem; }
.lb-work-quick-row .lb-input { flex: 1; }
.lb-work-quick-extra { margin-top: 0.5rem; display: grid; gap: 0.4rem; }
.lb-work-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0 0 10px;
  margin: 8px 0 0;
  font-size: 13px;
}
.lb-work-filters .lb-work-filter-ctrl,
.lb-work-filters .lb-select {
  width: auto;
  max-width: 100%;
  height: 32px;
  min-height: 32px;
  padding: 0 10px;
  font-size: 13px;
  line-height: 30px;
  border-radius: 8px;
  border: 1px solid #e5eef1;
  background: #fff;
  color: var(--lb-ink, #14212b);
  box-sizing: border-box;
}
.lb-work-filters .lb-work-sort {
  min-width: 120px;
}
.lb-work-filters .lb-select:focus,
.lb-work-filters .lb-work-filter-ctrl:focus {
  border-color: var(--lb-primary, #0f6a7a);
  box-shadow: 0 0 0 3px rgba(15, 106, 122, 0.35);
  outline: none;
}
.lb-work-mine {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid #e5eef1;
  background: #fff;
  color: var(--lb-ink, #14212b);
  font-size: 13px;
  box-sizing: border-box;
  cursor: pointer;
  user-select: none;
}
.lb-work-mine.is-on,
.lb-work-mine:has(input:checked) {
  background: #d8eef2;
  color: #0f6a7a;
  border-color: rgba(15, 106, 122, 0.45);
}
.lb-work-mine input {
  margin: 0;
}
/* === work list row visual 《20》 === */
.lb-work-list {
  --work-row-radius: 14px;
  --work-row-pad-y: 12px;
  --work-row-pad-x: 14px;
  --work-row-gap: 8px;
  --work-row-bar: 4px;
  --work-row-title: 15px;
  --work-row-meta: 12px;
  --work-row-meta-mt: 5px;
  --work-row-tag-h: 22px;
  --work-row-rail: 80px;
  --work-row-avatar: 24px;
  --work-row-avatar-overlap: -6px;
  --work-row-check: 18px;
  --work-row-bg: #ffffff;
  --work-row-bg-hover: #f5fafb;
  --work-row-bg-selected: #d8eef2;
  --work-row-border: #e5eef1;
  --work-ink: #14212b;
  --work-muted: #5b6b76;
  display: flex;
  flex-direction: column;
  gap: var(--work-row-gap);
}
.lb-work-row {
  display: grid;
  grid-template-columns: auto 1fr var(--work-row-rail);
  gap: 10px 12px;
  align-items: start;
  padding: var(--work-row-pad-y) var(--work-row-pad-x);
  min-height: 56px;
  box-sizing: border-box;
  border-radius: var(--work-row-radius);
  background: var(--work-row-bg);
  border: 1px solid var(--work-row-border);
  box-shadow: 0 1px 2px rgba(20, 33, 43, 0.06);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.lb-work-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--work-row-bar);
  background: #0f6a7a;
  border-radius: var(--work-row-radius) 0 0 var(--work-row-radius);
  pointer-events: none;
}
.lb-work-row.is-prio-high::before { background: #dc2626; }
.lb-work-row.is-prio-mid::before { background: #0f6a7a; }
.lb-work-row.is-prio-low::before { background: #94a3b8; }
.lb-work-row.is-done { opacity: 0.78; }
.lb-work-row.is-done::before { opacity: 0.55; }
.lb-work-row.is-overdue { background: #fff5f5; }
.lb-work-row.is-overdue.is-selected { background: #ffe8e8; }
.lb-work-row:hover:not(.is-selected):not(.is-overdue) { background: var(--work-row-bg-hover); }
.lb-work-row.is-selected {
  background: var(--work-row-bg-selected);
  border-color: rgba(15, 106, 122, 0.2);
  box-shadow: none;
}
.lb-work-row.is-done .lb-work-row-title { text-decoration: line-through; color: var(--work-muted); }
.lb-work-row-check {
  padding-top: 1px;
  display: flex;
  align-items: flex-start;
}
.lb-work-row-check input[type="checkbox"] {
  width: var(--work-row-check);
  height: var(--work-row-check);
  margin: 0;
  accent-color: var(--lb-primary);
  cursor: pointer;
  border-radius: 5px;
}
.lb-work-row-main { text-decoration: none; color: inherit; min-width: 0; }
.lb-work-row-title {
  display: block;
  font-size: var(--work-row-title);
  font-weight: 500;
  color: var(--work-ink);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lb-work-row-notes,
.lb-work-row-sub {
  display: block;
  font-size: var(--work-row-meta);
  font-weight: 400;
  color: var(--work-muted);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: var(--work-row-meta-mt);
}
.lb-work-row-meta {
  width: var(--work-row-rail);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 4px;
  align-items: flex-end;
  justify-content: flex-start;
  box-sizing: border-box;
}
.lb-work-row-desktop { display: block; }
.lb-work-row-mobile { display: none; }
.lb-work-prio {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--work-row-tag-h);
  padding: 0 8px;
  box-sizing: border-box;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}
.lb-work-prio-high { background: #fee2e2; color: #b42318; }
.lb-work-prio-mid { background: #d8eef2; color: #0f6a7a; }
.lb-work-prio-low { background: #f1f5f9; color: #64748b; }
.lb-work-due {
  font-size: 12px;
  color: var(--work-muted);
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lb-work-due-overdue {
  color: #dc2626;
  background: #fee2e2;
  font-weight: 500;
  padding: 0 6px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
}
.lb-work-due-muted { color: #94a3b8; }
.lb-work-row-meta .lb-link {
  font-size: 11px;
  white-space: nowrap;
}
.lb-work-times-ro {
  margin: 0 0 0.75rem;
}
.lb-work-times-ro .lb-work-created-ro {
  margin: 0 0 0.2rem;
}
.lb-work-times-ro .lb-work-created-ro:last-child {
  margin-bottom: 0;
}
.lb-work-created-ro {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: var(--lb-muted);
}
.lb-work-due-radios, .lb-work-due-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin-top: 0.35rem;
  font-size: 0.88rem;
}
.lb-work-due-pickers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.45rem;
}
.lb-work-due-pickers .lb-input { width: auto; min-width: 9rem; }
.lb-work-due-warn {
  margin: 0.4rem 0 0;
  color: #dc2626;
  font-weight: 700;
  font-size: 0.88rem;
}
.lb-work-due-muted-text {
  margin: 0.4rem 0 0;
  color: #94a3b8;
  font-size: 0.85rem;
}
.lb-work-prio-select-high { border-color: #fca5a5; color: #dc2626; }
.lb-work-prio-select-medium { border-color: #7dd3e0; color: var(--lb-primary); }
.lb-work-prio-select-low { border-color: #cbd5e1; color: #64748b; }
.lb-work-avatars { display: inline-flex; flex-direction: row; }
.lb-work-avatar {
  width: var(--work-row-avatar, 24px);
  height: var(--work-row-avatar, 24px);
  border-radius: 999px;
  background: var(--lb-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
  margin-left: var(--work-row-avatar-overlap, -6px);
  border: 2px solid #fff;
}
.lb-work-avatars .lb-work-avatar:first-child { margin-left: 0; }
.lb-work-avatar-more { background: #64748b; font-size: 0.65rem; }
.lb-work-empty, .lb-work-detail-empty {
  color: var(--lb-muted);
  text-align: center;
  padding: 2.5rem 1rem;
}
.lb-work-detail-toolbar {
  display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center;
  margin-bottom: 0.85rem;
}
.lb-work-check-label {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 600; cursor: pointer;
}
.lb-work-all-done {
  font-size: 0.78rem; font-weight: 700;
  background: var(--lb-primary-soft); color: var(--lb-primary);
  padding: 0.2rem 0.55rem; border-radius: 999px;
}
.lb-work-field { display: grid; gap: 0.3rem; margin-bottom: 0.75rem; font-size: 0.88rem; color: var(--lb-muted); }
.lb-work-field .lb-input { color: var(--lb-ink); }
.lb-work-notes { min-height: 6rem; resize: vertical; }
.lb-work-detail-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.lb-work-members { margin-top: 1.25rem; border-top: 1px solid var(--lb-line); padding-top: 0.85rem; }
.lb-work-members h3 { margin: 0 0 0.55rem; font-size: 0.95rem; }
.lb-work-member-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.lb-work-member-row {
  display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center;
  padding: 0.35rem 0.2rem;
}
.lb-work-member-name { flex: 1; min-width: 6rem; }
.lb-work-creator-tag {
  font-size: 0.7rem; background: #eef1f4; color: var(--lb-muted);
  padding: 0.05rem 0.35rem; border-radius: 999px; margin-left: 0.25rem;
}
.lb-work-done-yes { color: #17663a; font-size: 0.85rem; font-weight: 600; }
.lb-work-done-no { color: var(--lb-muted); font-size: 0.85rem; }
.lb-work-danger-link { color: var(--lb-danger) !important; font-size: 0.82rem; }
.lb-work-add-member { margin-top: 0.65rem; position: relative; }
.lb-work-member-picker {
  position: absolute; left: 0; top: 100%; z-index: 20;
  background: #fff; border: 1px solid var(--lb-line); border-radius: var(--lb-radius-sm);
  box-shadow: var(--lb-shadow); padding: 0.55rem; width: min(22rem, 90vw); margin-top: 0.3rem;
}
.lb-work-user-results { list-style: none; margin: 0.4rem 0 0; padding: 0; max-height: 12rem; overflow: auto; }
.lb-work-user-pick {
  width: 100%; text-align: left; background: transparent; border: 0;
  padding: 0.45rem 0.35rem; cursor: pointer; border-radius: 8px;
  display: flex; flex-direction: column; gap: 0.1rem;
}
.lb-work-user-pick:hover { background: var(--lb-primary-soft); }
.lb-work-danger-zone { margin-top: 1.5rem; padding-top: 0.85rem; border-top: 1px dashed #f1c5c1; }
.lb-work-mobile-back { margin-bottom: 0.75rem; }
.lb-work-mobile-detail .lb-work-detail-pane { box-shadow: none; border: 0; padding: 0; }


/* Work · category tree */
.lb-work-cat-desktop { min-width: 0; }
.lb-work-cat-pane {
  background: var(--lb-surface);
  border: 1px solid var(--lb-line);
  border-radius: var(--lb-radius);
  box-shadow: var(--lb-shadow-sm);
  padding: 0.75rem 0.55rem;
  min-height: 28rem;
}
.lb-work-cat-head {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--lb-muted);
  text-transform: none;
  letter-spacing: 0.02em;
  padding: 0 0.45rem 0.45rem;
}
.lb-work-cat-tree { display: flex; flex-direction: column; gap: 0.15rem; }
.lb-work-cat-node {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  padding: 0.4rem 0.55rem;
  border-radius: 10px;
  color: var(--lb-ink);
  text-decoration: none;
  font-size: 0.9rem;
  border-left: 3px solid transparent;
}
.lb-work-cat-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lb-work-cat-node:hover { background: #f5fafb; }
.lb-work-cat-node.is-active,
.lb-work-cat-row.is-active > .lb-work-cat-node {
  background: var(--lb-primary-soft);
  color: var(--lb-primary);
  font-weight: 600;
  border-left-color: var(--lb-primary);
}
.lb-work-cat-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px;
  border-radius: 10px;
  position: relative;
}
.lb-work-cat-row.is-active { background: var(--lb-primary-soft); }
.lb-work-cat-row.is-active .lb-work-cat-node {
  background: transparent;
  border-left-color: var(--lb-primary);
  color: var(--lb-primary);
  font-weight: 600;
}
.lb-work-cat-more {
  position: relative;
  opacity: 0;
  transition: opacity .12s;
  flex-shrink: 0;
  min-width: 32px;
  display: flex;
  justify-content: center;
}
.lb-work-cat-row:hover .lb-work-cat-more,
.lb-work-cat-row:focus-within .lb-work-cat-more { opacity: 1; }
.lb-work-cat-more-btn {
  border: 0; background: transparent; cursor: pointer;
  min-width: 32px; min-height: 32px;
  padding: 0.15rem 0.35rem; border-radius: 8px; color: var(--lb-muted);
  font-size: 1rem; line-height: 1;
}
.lb-work-cat-more-btn:hover { background: #e8f4f6; color: var(--lb-primary); }
.lb-work-cat-menu {
  position: absolute; right: 0; top: 100%; z-index: 30;
  background: #fff; border: 1px solid var(--lb-line); border-radius: 10px;
  box-shadow: var(--lb-shadow); min-width: 7.5rem; padding: 0.25rem;
  display: flex; flex-direction: column;
}
.lb-work-cat-menu button {
  border: 0; background: transparent; text-align: left;
  padding: 0.4rem 0.55rem; border-radius: 8px; cursor: pointer; font-size: 0.88rem;
}
.lb-work-cat-menu button:hover { background: var(--lb-primary-soft); }
.lb-work-cat-rename {
  display: flex; flex-wrap: wrap; gap: 0.3rem; align-items: center;
  padding: 0.25rem; grid-column: 1 / -1;
}
.lb-work-cat-rename-input { flex: 1; min-width: 5rem; font-size: 0.88rem; padding: 0.25rem 0.4rem; }
.lb-btn-sm { padding: 0.2rem 0.55rem; font-size: 0.8rem; }
.lb-work-cat-create { margin-top: 0.65rem; padding: 0 0.35rem; }
.lb-work-cat-create-btn { font-size: 0.88rem; }
.lb-work-cat-create-form { display: grid; gap: 0.4rem; }
.lb-work-cat-create-actions { display: flex; gap: 0.35rem; justify-content: flex-end; }

.lb-work-mobile-catbar {
  display: none;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.55rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}
.lb-work-mobile-cat-current { color: var(--lb-muted); }
.lb-work-cat-drawer {
  border: 0;
  border-radius: var(--lb-radius);
  padding: 0.85rem;
  width: min(20rem, 92vw);
  max-height: 85vh;
  box-shadow: var(--lb-shadow);
}
.lb-work-cat-drawer::backdrop { background: rgba(15, 40, 48, 0.35); }
.lb-work-cat-drawer-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 0.5rem;
}
.lb-work-cat-drawer .lb-work-cat-pane {
  border: 0; box-shadow: none; min-height: 0; padding: 0;
}

@media (max-width: 860px) {
  .lb-work-shell { grid-template-columns: 1fr; }
  .lb-work-cat-desktop { display: none; }
  .lb-work-mobile-catbar { display: flex; }
  .lb-work-detail-pane { display: none; }
  .lb-work-row-desktop { display: none; }
  .lb-work-row-mobile { display: block; }
  .lb-work-tabs { order: 3; width: 100%; overflow-x: auto; }
  .lb-work-mobile-search { display: block; }
  .lb-work-list {
    --work-row-pad-y: 10px;
    --work-row-pad-x: 12px;
    --work-row-rail: 72px;
  }
  .lb-work-row {
    grid-template-columns: auto 1fr var(--work-row-rail);
  }
}

/* ===== 《26》我的外链短链 · 列表视觉 ===== */
.lb-url-create-card h3,
.lb-url-links-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--lb-ink, #14212b);
  margin: 0 0 12px;
  line-height: 1.4;
}
.lb-url-create-card {
  border-radius: var(--lb-radius, 14px);
  border: 1px solid var(--lb-primary-soft, #d8eef2);
  background: #fff;
  padding: 16px 20px;
  box-shadow: none;
}
.lb-url-links-section {
  margin-top: 0;
}
.lb-url-links-card {
  background: #fff;
  border: 1px solid #e5eef1;
  border-radius: var(--lb-radius, 14px);
  padding: 16px 20px;
}
.lb-url-links-count {
  font-weight: 400;
  font-size: 13px;
  color: var(--lb-muted, #5b6b76);
  margin-left: 2px;
}
.lb-url-links-empty {
  padding: 4px 0 2px;
}
.lb-url-links-empty-msg {
  margin: 0;
  font-size: 14px;
  color: var(--lb-muted, #5b6b76);
}
.lb-url-links-empty-hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: #8a9aa5;
}
.lb-url-links-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
  font-size: 13px;
}
.lb-url-links-table thead th {
  font-size: 12px;
  font-weight: 500;
  color: var(--lb-muted, #5b6b76);
  text-align: left;
  padding: 0 14px 4px;
  border: 0;
  background: transparent;
}
.lb-url-links-table thead th:first-child { padding-left: 14px; }
.lb-url-links-row td {
  background: #fff;
  border-top: 1px solid #e5eef1;
  border-bottom: 1px solid #e5eef1;
  padding: 12px 14px;
  vertical-align: middle;
}
.lb-url-links-row td:first-child {
  border-left: 1px solid #e5eef1;
  border-radius: 12px 0 0 12px;
}
.lb-url-links-row td:last-child {
  border-right: 1px solid #e5eef1;
  border-radius: 0 12px 12px 0;
}
.lb-url-pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}
.lb-url-pill-type {
  background: var(--lb-primary-soft, #d8eef2);
  color: var(--lb-primary, #0f6a7a);
}
.lb-url-pill-ok {
  background: #dcfce7;
  color: #15803d;
}
.lb-url-pill-bad {
  background: #fee2e2;
  color: #b42318;
}
.lb-url-code {
  font-size: 13px;
  color: var(--lb-ink, #14212b);
  word-break: break-all;
}
.lb-url-code-cell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.lb-url-target {
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 28rem;
}
.lb-url-target-cell {
  max-width: 18rem;
}
.lb-url-meta {
  font-size: 12px;
  color: var(--lb-muted, #5b6b76);
  white-space: nowrap;
}
.lb-url-delete {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font-size: 12px;
  color: #9b4a42;
  text-decoration: none;
}
.lb-url-delete:hover {
  color: var(--lb-danger, #b42318);
  text-decoration: underline;
}
.lb-url-links-mobile {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lb-url-mobile-card {
  border: 1px solid #e5eef1;
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lb-url-mobile-l1 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.lb-url-mobile-l1 .lb-url-code {
  font-weight: 500;
}
.lb-url-mobile-l2 {
  font-size: 13px;
  font-weight: 500;
}
.lb-url-mobile-l3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.lb-url-mobile-del {
  margin-left: auto;
}

/* ===== 《27》文件/外链轻整合 · 创建分段 + 列表 Tab ===== */
.lb-files-page {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lb-files-create-card {
  background: #fff;
  border: 1px solid #e5eef1;
  border-radius: var(--lb-radius, 14px);
  padding: 16px 20px;
}
.lb-files-create-seg {
  display: inline-flex;
  border: 1px solid var(--lb-line, #d5e0e6);
  border-radius: var(--lb-radius-sm, 10px);
  overflow: hidden;
  margin-bottom: 14px;
}
.lb-files-create-seg-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  background: #fff;
  color: var(--lb-ink, #14212b);
  user-select: none;
  white-space: nowrap;
}
.lb-files-create-seg-item.is-active {
  background: var(--lb-primary, #0f6a7a);
  color: #fff;
}
.lb-files-list-card {
  background: #fff;
  border: 1px solid #e5eef1;
  border-radius: var(--lb-radius, 14px);
  padding: 16px 20px;
}
.lb-files-list-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.lb-files-list-tab {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--lb-muted, #5b6b76);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.lb-files-list-tab.is-active {
  background: var(--lb-primary-soft, #d8eef2);
  color: var(--lb-primary, #0f6a7a);
}
.lb-files-list-tab-count {
  font-weight: 400;
  margin-left: 2px;
  opacity: 0.85;
}
.lb-files-empty-msg {
  font-size: 14px;
  color: var(--lb-muted, #5b6b76);
}
@media (max-width: 767px) {
  .lb-files-create-seg {
    display: flex;
    width: 100%;
  }
  .lb-files-create-seg-item {
    flex: 1;
  }
}


/* work nav ajax loading */
.lb-work-shell.is-nav-loading .lb-work-list-pane,
.lb-work-list-pane.is-nav-loading,
.lb-work-tabs.is-nav-loading {
    opacity: 0.55;
    transition: opacity .12s ease;
    pointer-events: none;
}
.lb-work-shell.is-nav-loading .lb-work-list {
    min-height: 4rem;
}
