.dwc-root { margin: 0 0 20px; }

.dwc-breadcrumb { display: flex; align-items: center; gap: 6px; margin: 0 0 12px; font-size: 12.5px; color: var(--muted, #9a978f); }
.dwc-breadcrumb a { color: var(--muted, #9a978f); text-decoration: none; }
.dwc-breadcrumb a:hover { color: var(--accent, #c9a84c); text-decoration: underline; }
.dwc-breadcrumb [aria-current="page"] { color: var(--text, #e8e8ea); font-weight: 600; }

.dwc-header {
  display: flex; align-items: center; gap: 14px;
  min-height: 80px; max-height: 120px; padding: 12px 16px;
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: var(--radius-md, 14px);
  background: var(--surface, #111115);
}
.dwc-header-art {
  flex: none; width: 64px; height: 64px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(201,168,76,0.18), rgba(126,240,200,0.1));
  background-size: cover; background-position: center;
  border: 1px solid var(--border, rgba(255,255,255,0.08));
}
.dwc-header-art.has-image { background-color: transparent; }
.dwc-header-identity { flex: 1 1 auto; min-width: 0; }
.dwc-header-title { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dwc-header-sub { display: flex; align-items: center; gap: 8px; margin: 3px 0 0; font-size: 13px; color: var(--muted, #9a978f); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dwc-pip-row { display: inline-flex; gap: 3px; flex: none; }
.dwc-pip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%; font-size: 9px; font-weight: 800;
  flex: none;
}
.dwc-pip-c { background: #3a3a3f; color: #e8e8ea; }
.dwc-header-meta { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; }
.dwc-badge {
  display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 9px;
  border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap;
}
.dwc-badge svg { flex: none; }
.dwc-badge-bracket { background: rgba(201,168,76,0.14); color: #efd58b; }
.dwc-badge-muted { background: rgba(255,255,255,0.05); color: var(--muted, #9a978f); }
.dwc-badge-public { background: rgba(126,240,200,0.12); color: #7ef0c8; }
.dwc-updated { font-size: 11.5px; color: var(--muted, #9a978f); }

.dwc-actions-menu { position: relative; flex: none; }
.dwc-actions-trigger {
  display: inline-flex; align-items: center; justify-content: center; list-style: none;
  width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--border, rgba(255,255,255,0.08));
  color: var(--muted, #9a978f); cursor: pointer;
}
.dwc-actions-trigger::-webkit-details-marker { display: none; }
.dwc-actions-trigger:hover { border-color: var(--accent, #c9a84c); color: var(--text, #e8e8ea); }
.dwc-actions-list {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 20;
  display: flex; flex-direction: column; min-width: 170px; padding: 6px;
  border: 1px solid var(--border, rgba(255,255,255,0.1)); border-radius: 10px;
  background: var(--panel, #18181d); box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}
.dwc-actions-list button { text-align: left; padding: 8px 10px; border: none; background: none; color: var(--text, #e8e8ea); font-size: 13px; border-radius: 7px; cursor: pointer; }
.dwc-actions-list button:hover { background: rgba(255,255,255,0.05); }
.dwc-actions-list button[data-action="delete"] { color: #ff9a9a; }

.dwc-nav {
  display: flex; align-items: center; gap: 22px; margin-top: 10px;
  min-height: 48px; max-height: 56px; padding: 0 4px;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin;
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.06));
}
.dwc-nav-item {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  padding: 0 2px; height: 48px; color: var(--muted, #9a978f); text-decoration: none;
  font-size: 13.5px; font-weight: 650; white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.dwc-nav-item:hover { color: var(--text, #e8e8ea); }
.dwc-nav-item.is-active { color: var(--text, #e8e8ea); border-bottom-color: var(--accent, #c9a84c); }
.dwc-nav-item svg { flex: none; }

@media (max-width: 767px) {
  .dwc-header { align-items: flex-start; max-height: none; }
  .dwc-header-art { width: 56px; height: 56px; }
  .dwc-header-meta { flex-wrap: wrap; row-gap: 6px; }
  .dwc-nav { gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .dwc-nav { scroll-behavior: auto; }
}
