.pro-style-panel {
  position: fixed;
  z-index: 900;
  width: 60%;
  height: 400px;
  min-width: 250px;
  min-height: 200px;
  resize: both;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #1f2025;
  border: 1px solid #3e3e42;
  border-radius: 10px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
  font-size: 12px;
  font-family: "Noto Sans", sans-serif;
  color: #d4d4d4;
}

.pro-style-panel.hidden { display: none; }

.pro-style-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  padding: 8px 10px;
  background: #2d2d30;
  border-bottom: 1px solid #3e3e42;
  border-radius: 10px 10px 0 0;
  cursor: grab;
  user-select: none;
}

.pro-style-panel-header:active { cursor: grabbing; }

.pro-style-panel-title {
  font-weight: 600;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
}

.pro-style-panel-title-type {
  white-space: nowrap;
  flex-shrink: 0;
}

.pro-style-panel-title-separator {
  color: #555;
  flex-shrink: 0;
}

.pro-style-panel-title-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pro-style-panel-title-name[contenteditable="true"] {
  outline: none;
  border-bottom: 1px dashed #555;
  padding: 0 2px;
  cursor: text;
}

.pro-style-panel-title-name[contenteditable="true"]:focus {
  border-bottom-color: #4a90d9;
}

.pro-style-panel-title-name:empty::before {
  content: attr(data-placeholder);
  color: #666;
  font-style: italic;
}

.pro-style-panel-title-edit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 3px;
  background: transparent;
  color: #8a8a8a;
  cursor: pointer;
  font-size: 10px;
  flex-shrink: 0;
}

.pro-style-panel-title-edit-btn:hover { color: #d4d4d4; }
.pro-style-panel-title-edit-btn.is-active { color: #4a90d9; }

.pro-style-panel-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #d4d4d4;
  cursor: pointer;
  font-size: 12px;
}

.pro-style-panel-close:hover {
  background: #3e3e42;
}

.pro-style-panel-body {
  padding: 10px;
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pro-style-panel.document-outline-panel-shell {
  width: 209px;
  height: 507px;
  min-width: 209px;
  max-width: 209px;
  min-height: 96px;
  resize: vertical;
}

.document-outline-panel {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
  gap: 8px;
}

.document-outline-summary {
  flex: 0 0 auto;
  font-size: 10px;
  color: #7f8793;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.document-outline-nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.document-outline-list {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
  gap: 2px;
  overflow: auto;
  margin: 0;
  padding: 0 2px 0 0;
  list-style: none;
}

.document-outline-empty {
  display: grid;
  place-items: center;
  flex: 1 1 auto;
  min-height: 120px;
  padding: 12px;
  border: 1px dashed #323640;
  border-radius: 8px;
  color: #8a8a8a;
  text-align: center;
}

.document-outline-item {
  position: relative;
  margin-left: calc((var(--outline-level, 1) - 1) * 12px);
}

.document-outline-item::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 9px;
  bottom: 9px;
  width: 1px;
  background: rgba(95, 106, 124, 0.2);
  opacity: calc((var(--outline-level, 1) - 1) / 6);
}

.document-outline-link {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 28px;
  padding: 4px 6px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #cfd5df;
  text-align: left;
  cursor: pointer;
}

.document-outline-link:hover {
  background: rgba(66, 77, 94, 0.22);
  color: #eef2f7;
}

.document-outline-link:focus-visible {
  outline: none;
  background: rgba(66, 77, 94, 0.28);
  box-shadow: inset 0 0 0 1px rgba(137, 183, 242, 0.28);
}

.document-outline-item-badge {
  flex: 0 0 auto;
  min-width: 20px;
  color: #6f92ba;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: left;
}

.document-outline-item-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  line-height: 1.35;
}
