.wf-bis { background: #121722; border: 1px solid #263044; border-radius: 12px; padding: 16px; color: #efe7d6; }
.wf-bis-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid #222b3d; }
.wf-bis-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.wf-bis-btn { background: #181f2e; color: #efe7d6; border: 1px solid #2c3852; border-radius: 8px; padding: 8px 12px; font-size: 13px; font-weight: 600; cursor: pointer; min-height: 38px; transition: border-color .15s, background .15s; }
.wf-bis-btn:hover { border-color: #d4a853; }
.wf-bis-btn.active { background: #d4a853; color: #0b0e14; border-color: #d4a853; }
.wf-bis-classes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; padding-bottom: 10px; border-bottom: 1px solid #1d2536; }
.wf-bis-cls { display: inline-flex; align-items: center; gap: 6px; background: #0e131d; color: #c7d0e0; border: 1px solid #263044; border-radius: 8px; padding: 5px 9px; font-size: 12px; font-weight: 600; cursor: pointer; transition: border-color .15s, background .15s; }
.wf-bis-cls:hover { border-color: #4a5b7d; background: #161d2b; }
.wf-bis-cls.active { background: rgba(212,168,83,.16); border-color: #d4a853; color: #fff; }
.wf-bis-cls img { width: 18px; height: 18px; border-radius: 4px; border: 1px solid rgba(255,255,255,.18); display: block; }
.wf-bis-classbar { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: linear-gradient(90deg, rgba(212,168,83,.10), rgba(14,19,29,.92)); border: 1px solid rgba(212,168,83,.35); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.wf-bis-classbar-txt { font-size: 12.5px; color: #e2e8f0; line-height: 1.45; flex: 1; min-width: 240px; }
.wf-bis-classbar-links { display: flex; flex-wrap: wrap; gap: 6px; }
.wf-bis-linkpill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 6px; font-size: 11.5px; font-weight: 700; text-decoration: none; background: rgba(212,168,83,.16); color: #ecc472; border: 1px solid rgba(212,168,83,.45); transition: background .15s, color .15s; }
.wf-bis-linkpill:hover { background: #d4a853; color: #0b0e14; }
.wf-bis-linkpill.alt { background: rgba(56,189,248,.12); color: #7dd3fc; border-color: rgba(56,189,248,.38); }
.wf-bis-linkpill.alt:hover { background: #38bdf8; color: #0b0e14; }
.wf-bis-controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; }
.wf-bis-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.wf-bis-pill { background: #0e131d; color: #9ca7bc; border: 1px solid #263044; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 600; cursor: pointer; }
.wf-bis-pill.active { background: rgba(212,168,83,.18); color: #ecc472; border-color: #d4a853; }
.wf-bis-prog { flex: 1; min-width: 220px; }
.wf-bis-prog-top { display: flex; justify-content: space-between; font-size: 12px; color: #9ca7bc; margin-bottom: 5px; }
.wf-bis-track { height: 10px; background: #0b0e14; border-radius: 999px; overflow: hidden; border: 1px solid #222b3d; }
.wf-bis-fill { height: 100%; background: linear-gradient(90deg, #d4a853, #6ee7b7); width: 0%; transition: width .2s ease; }
.wf-bis-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 10px; margin-top: 14px; }
.wf-bis-card { display: flex; align-items: flex-start; gap: 10px; padding: 11px 12px; border-radius: 10px; background: #0e131d; border: 1px solid #222b3d; transition: border-color .15s; }
.wf-bis-card:hover { border-color: #3a4966; }
.wf-bis-card.done { border-color: rgba(110,231,183,.45); background: rgba(110,231,183,.06); }
.wf-bis-chk { margin-top: 9px; width: 16px; height: 16px; accent-color: #d4a853; cursor: pointer; flex-shrink: 0; }
.wf-bis-ico { width: 38px; height: 38px; border-radius: 7px; border: 2px solid #0070dd; background: #080b12; flex-shrink: 0; overflow: hidden; margin-top: 1px; box-shadow: 0 2px 6px rgba(0,0,0,.45); }
.wf-bis-ico.q4 { border-color: #a335ee; box-shadow: 0 0 8px rgba(163,53,238,.28); }
.wf-bis-ico img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wf-bis-body { flex: 1; min-width: 0; }
.wf-bis-slot { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #ecc472; font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.wf-bis-item { font-size: 13px; font-weight: 700; color: #efe7d6; margin-top: 3px; line-height: 1.35; cursor: pointer; }
.wf-bis-item.q4 { color: #d8b4fe; }
.wf-bis-item.q3 { color: #60a5fa; }
.wf-bis-card.done .wf-bis-item { text-decoration: line-through; color: #9ca7bc; }
.wf-bis-src { font-size: 11.5px; color: #9ca7bc; margin-top: 3px; line-height: 1.35; }
.wf-bis-tag { display: inline-block; font-size: 10px; padding: 1px 6px; border-radius: 4px; background: #181f2e; border: 1px solid #2c3852; color: #7dd3fc; font-weight: 600; text-transform: none; letter-spacing: 0; }
.wf-bis-tag.forever { color: #ecc472; border-color: rgba(212,168,83,.45); }
.wf-bis-tag.craft { color: #6ee7b7; border-color: rgba(110,231,183,.38); }
.wf-bis-actions { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.wf-bis-db { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: #ecc472; text-decoration: none; background: rgba(212,168,83,.12); border: 1px solid rgba(212,168,83,.38); border-radius: 5px; padding: 2px 7px; }
.wf-bis-db:hover { background: #d4a853; color: #0b0e14; }
.wf-bis-toast { margin-top: 10px; font-size: 12px; color: #6ee7b7; min-height: 18px; }

.wf-bis-tip {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 330px;
  max-width: calc(100vw - 24px);
  pointer-events: none;
  background: rgba(9, 13, 22, 0.97);
  border: 1px solid #d4a853;
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.78), 0 0 0 1px rgba(236, 196, 114, 0.16);
  color: #e2e8f0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.08s ease;
}
.wf-bis-tip.show { opacity: 1; visibility: visible; }
.wf-bt-head { display: flex; align-items: center; gap: 10px; }
.wf-bt-ico { width: 34px; height: 34px; border-radius: 6px; border: 2px solid #0070dd; flex-shrink: 0; object-fit: cover; }
.wf-bt-ico.q4 { border-color: #a335ee; }
.wf-bt-name { font-size: 14px; font-weight: 700; line-height: 1.25; }
.wf-bt-name.q4 { color: #d8b4fe; }
.wf-bt-name.q3 { color: #60a5fa; }
.wf-bt-sub { font-size: 11.5px; color: #94a3b8; margin-top: 2px; }
.wf-bt-src { font-size: 12px; color: #cbd5e1; margin-top: 8px; }
.wf-bt-stats { font-size: 12.5px; color: #7dd3fc; margin-top: 7px; font-weight: 500; }
.wf-bt-eff { font-size: 12.5px; color: #4ade80; margin-top: 4px; }
.wf-bt-mats { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; padding-top: 7px; border-top: 1px solid rgba(148, 163, 184, 0.18); }
.wf-bt-mat { font-size: 11px; color: #cbd5e1; background: #141a27; border: 1px solid #263044; border-radius: 4px; padding: 1px 6px; }
.wf-bt-foot { margin-top: 8px; padding-top: 6px; border-top: 1px solid rgba(148, 163, 184, 0.14); font-size: 11px; color: #94a3b8; display: flex; justify-content: space-between; }
@media (hover: none), (max-width: 720px) {
  .wf-bis-tip { display: none !important; }
}
@media (max-width: 600px) {
  .wf-bis { padding: 12px; }
  .wf-bis-grid { grid-template-columns: 1fr; }
  .wf-bis-classbar-txt { min-width: 0; }
  .wf-bis-prog { min-width: 0; width: 100%; }
}