.view { display: none; }
.view.active {
  display: block;
  height: 100%;
  min-height: 0;
  overflow: auto;
}
#treeView.active {
  display: flex;
  flex-direction: column;
  overflow: visible;
}
.treeTabBar {
  position: relative;
  z-index: 60;
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  margin-bottom: 14px;
  border: 1px solid rgba(83, 70, 50, .22);
  background:
    linear-gradient(90deg, rgba(255, 248, 232, .86), rgba(255, 248, 232, .56)),
    rgba(255, 248, 232, .84);
  box-shadow: 0 10px 30px rgba(42, 34, 22, .10);
}
.treeTabs {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
}
.treeTab {
  position: relative;
  min-width: 112px;
  border: 0;
  border-right: 1px solid rgba(83, 70, 50, .16);
  background: transparent;
  color: #5c5144;
  padding: 15px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  font-weight: 900;
}
.treeTab::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 2px;
  background: transparent;
}
.treeTab.active {
  color: var(--green);
  background: rgba(255, 255, 255, .36);
}
.treeTab.active::after { background: var(--green); }
.treeTabSettings {
  flex: 0 0 auto;
  border: 0;
  border-left: 1px solid rgba(83, 70, 50, .16);
  background: rgba(255, 255, 255, .34);
  color: #5c5144;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  white-space: nowrap;
  font-weight: 900;
}
.treeOverviewTab {
  flex: 0 0 auto;
  border: 0;
  border-left: 1px solid rgba(83, 70, 50, .16);
  background: rgba(255, 255, 255, .28);
  color: #5c5144;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  white-space: nowrap;
  font-weight: 900;
}
.treeOverviewTab[hidden] {
  display: none;
}
.treeTabAddBtn {
  position: relative;
  min-width: 54px;
  border: 0;
  border-right: 1px solid rgba(83, 70, 50, .16);
  background: rgba(255, 255, 255, .24);
  color: #5c5144;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.treeTabAddBtn:hover,
.treeTabAddBtn:focus-visible,
.treeOverviewTab:hover,
.treeOverviewTab:focus-visible,
.treeTabSettings:hover,
.treeTabSettings:focus-visible {
  background: rgba(39, 98, 75, .10);
  color: var(--green);
}
.treeOverviewTab.active {
  color: var(--green);
  background: rgba(255, 255, 255, .42);
}
.treeTabAddBtn .bootstrapIcon {
  width: 18px;
  height: 18px;
}
.treeTabMenuBtn,
.treeTabActionMenu {
  display: none;
}
.mobileQuickAddMenu { display: none; }
.treeTabAddMenu {
  position: absolute;
  top: calc(100% + 8px);
  z-index: 20;
  width: min(520px, calc(100vw - 320px));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(83, 70, 50, .22);
  background: rgba(255, 248, 232, .96);
  box-shadow: 0 18px 40px rgba(42, 34, 22, .16);
}
.treeTabAddMenu[hidden] {
  display: none;
}
.treeTabAddMenu button {
  border: 1px solid rgba(83, 70, 50, .18);
  background: rgba(255, 255, 255, .58);
  color: var(--text);
  padding: 11px 12px;
  display: grid;
  gap: 4px;
  text-align: left;
}
.treeTabAddMenu button span {
  font-weight: 900;
}
.treeTabAddMenu button small {
  color: var(--muted);
  line-height: 1.35;
}
.treeTabAddMenu button:hover {
  border-color: rgba(199, 72, 114, .38);
  background: rgba(199, 72, 114, .07);
}
.treeTabAddMenu button:disabled,
.tabManagerAddMenu button:disabled,
.tabManagerActions button:disabled {
  cursor: not-allowed;
  opacity: .5;
  filter: grayscale(.25);
}
.treeTabAddMenu button:disabled:hover,
.tabManagerAddMenu button:disabled:hover {
  color: var(--text);
  border-color: rgba(83, 70, 50, .24);
  background: rgba(255, 248, 232, .9);
}
.demoTabManagerNotice {
  margin: 0 0 14px;
  padding: 11px 13px;
  border: 1px solid rgba(105, 65, 20, .24);
  border-radius: 12px;
  background: rgba(255, 239, 194, .62);
  color: #6b4a24;
  font-size: 12px;
  font-weight: 850;
}
.demoTabManagerNotice[hidden] { display: none; }
.tabManagerList {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-bottom: 24px;
  border: 1px solid rgba(83, 70, 50, .22);
  background: rgba(83, 70, 50, .12);
}
.tabManagerRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 248, 232, .9);
}
.tabManagerRow.hiddenTab {
  opacity: .62;
  background: rgba(255, 255, 255, .42);
}
.tabManagerInfo {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}
.tabManagerLabel {
  font-weight: 900;
  color: var(--text);
}
.tabManagerRenameForm {
  display: grid;
  grid-template-columns: minmax(120px, 220px) max-content max-content;
  align-items: center;
  gap: 6px;
}
.tabManagerRenameForm input {
  min-height: 32px;
  border-radius: 10px;
  padding: 6px 10px;
  font-weight: 900;
}
.tabManagerRenameForm button {
  min-height: 30px;
  padding: 6px 9px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.tabManagerRenameForm .buttonIcon {
  width: 16px;
  height: 16px;
  display: block;
  object-fit: contain;
  margin-right: 0;
  filter: invert(96%) sepia(8%) saturate(664%) hue-rotate(331deg) brightness(106%) contrast(101%);
}
.tabManagerDesc {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.4;
}
.tabManagerBadge {
  flex: 0 0 auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--green-2);
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}
.tabManagerActions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.tabManagerActions .ghost {
  white-space: nowrap;
}
.tabVisibilityBtn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.tabVisibilityBtn .bootstrapIcon {
  width: 14px;
  height: 14px;
}
.tabManagerAdd .eyebrow { margin-bottom: 10px; }
.tabManagerAddMenu {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tabManagerAddMenu button {
  width: 200px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  border: 1px solid rgba(83, 70, 50, .24);
  background: rgba(255, 248, 232, .9);
  color: var(--text);
  padding: 12px 16px;
  font-weight: 900;
  text-align: left;
}
.tabManagerAddMenu button small {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.4;
  white-space: normal;
}
.tabManagerAddMenu button:hover {
  color: var(--dancheong-red);
  border-color: var(--dancheong-red);
  background: rgba(183, 72, 72, .07);
}
