/* extras.js 配套样式 */
.extras-grid { margin-top: 16px; }
.extras-card { margin-top: 16px; }
.extras-card h3 { margin: 0 0 4px; }
.x-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.x-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px 5px 10px;
  border: 1px solid var(--rule); border-radius: 999px; font-size: 13px; background: var(--paper, #fff); }
.x-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, #8a8a8a); display: inline-block; }
.x-chip small { color: var(--soft, #8a8a8a); font-size: 11px; }
.x-ico { border: 0; background: none; cursor: pointer; color: var(--soft, #8a8a8a); padding: 0 2px; font-size: 12px; }
.x-ico:hover { color: #b4453a; }

#xImportLinks { width: 100%; margin-top: 10px; }
.x-queue { list-style: none; margin: 10px 0 0; padding: 0; font-size: 12px; color: var(--soft, #777); }
.x-queue li { padding: 4px 0; border-bottom: 1px dashed var(--rule); overflow-wrap: anywhere; }

.x-mat-list { list-style: none; margin: 8px 0 0; padding: 0; }
.x-mat { position: relative; overflow: hidden; border-bottom: 1px solid var(--rule); }
.x-mat-main { position: relative; z-index: 2; background: var(--paper, #fff); padding: 10px 0; transition: transform .18s ease; }
.x-mat.swiped .x-mat-main { transform: translateX(-92px); }
.x-swipe-del { position: absolute; right: 0; top: 0; bottom: 0; display: flex; align-items: center; z-index: 1; }
.x-mat-head { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.x-mat-ops { display: flex; gap: 6px; margin-top: 6px; align-items: center; }
.x-mat-ops select { padding: 3px 6px; font-size: 12px; }
.x-kind.kind-rubric { background: #f7e7c8; }
.x-kind.kind-plan { background: #dcE9f7; }

.x-policy { display: grid; gap: 8px; }
.x-policy label { display: flex; gap: 8px; align-items: center; font-size: 13px; }

.x-buffer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 10px; }
.x-buffer-cols h4 { margin: 0 0 6px; font-size: 13px; color: var(--soft, #666); }
.x-list { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.x-list li { padding: 6px 0; border-bottom: 1px dashed var(--rule); display: flex; gap: 8px; align-items: center; }
.x-list .empty { color: var(--soft, #8a8a8a); border: 0; }
.x-swipe-row { touch-action: pan-y; }

#xSpareTag { white-space: nowrap; }

.x-lt { margin-bottom: 14px; }
.x-lt-main { display: grid; grid-template-columns: minmax(280px, 420px) 1fr; gap: 16px; margin-top: 10px; }
.x-lt-blocks table { width: 100%; font-size: 13px; }
.x-lt-blocks td, .x-lt-blocks th { padding: 5px 6px; }
.x-lt-add { margin-top: 8px; }
.x-lt-add input { width: 120px; }
.x-lt-gantt { overflow-x: auto; }
.x-gantt { display: flex; gap: 4px; align-items: flex-end; min-height: 120px; padding: 6px; border: 1px dashed var(--rule); border-radius: 8px; }
.x-gantt-col { min-width: 44px; display: flex; flex-direction: column; gap: 3px; align-items: center; }
.x-gantt-col.past { opacity: .55; }
.x-gantt-date { font-size: 10px; color: var(--soft, #888); white-space: nowrap; }
.x-gantt-bar { font-size: 10px; background: #cfe7d9; border-radius: 4px; padding: 2px 3px; white-space: nowrap; }

/* 待安排池分组 */
.pool-group { border: 1px solid var(--rule); border-radius: 10px; padding: 6px 10px; margin-bottom: 8px; }
.pool-group summary { cursor: pointer; display: flex; align-items: center; gap: 8px; font-size: 13px; }
.pool-items { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

@media (max-width: 900px) {
  .x-buffer-cols, .x-lt-main { grid-template-columns: 1fr; }
}
