#drama-studio[data-workflow="interactive"] .dv-episode-layout {
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 24px;
}
.iv-tree-panel {
  border: 1px solid var(--mv-border);
  background: #161d14;
  border-radius: 10px;
  align-self: start;
  min-width: 0;
  position: sticky;
  top: 86px;
  padding: 14px 10px;
}
.iv-tree-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 16px;
  border-bottom: 1px solid var(--mv-border);
  margin-bottom: 12px;
}
.iv-tree-heading strong {
  font-size: 13px;
  font-weight: 500;
}
.iv-tree-heading > span {
  font: 11px monospace;
  color: var(--lime);
  background: #303c24;
  border-radius: 5px;
  padding: 4px 7px;
}
.iv-tree {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 62vh;
  overflow: auto;
  padding-right: 3px;
}
.iv-tree button {
  display: flex;
  position: relative;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-left: calc(var(--branch-depth) * 12px);
  padding: 12px 10px;
  text-align: left;
  background: #20281b;
  color: #a6b19b;
  border: 1px solid #35432c !important;
  border-radius: 6px;
  min-width: 0;
  cursor: pointer;
}
.iv-tree button[aria-level]:not([aria-level="1"]):before {
  content: "";
  position: absolute;
  left: -10px;
  top: -8px;
  width: 7px;
  height: 25px;
  border-left: 1px solid #52643e;
  border-bottom: 1px solid #52643e;
}
.iv-tree button[aria-selected="true"] {
  background: #2c3a20;
  border-color: #b1d66c !important;
  color: #e5eddb;
}
.iv-node-number {
  font: 11px monospace;
  color: #b7d97b;
  overflow-wrap: anywhere;
}
.iv-tree button strong {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.iv-tree button small {
  font-size: 10px;
  line-height: 1.5;
  color: #94a586;
}
.iv-tree em {
  font-size: 9px;
  font-style: normal;
  color: #b7c5a6;
}
.iv-tree-panel > .dv-button {
  margin: 12px 6px 2px;
  width: calc(100% - 12px);
}
.iv-path {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #9aa88b;
  font-size: 10px;
  margin-bottom: 20px;
  line-height: 1.7;
}
.iv-path b {
  font-weight: 400;
  color: #758969;
}
.iv-path span:last-child {
  color: #d5edab;
}
.iv-meta-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.iv-mainline-note {
  font-size: 11px;
  line-height: 1.8;
  color: #94a586;
  margin: 0;
}
.iv-bios {
  margin: 20px 0 24px;
}
.iv-bios summary {
  cursor: pointer;
  color: #b3c49d;
  font-size: 12px;
}
.iv-bios .dv-bios {
  margin-top: 16px;
}
.iv-add-row {
  display: flex;
  gap: 16px;
  align-items: center;
  padding-top: 12px;
}
.iv-add-row > span {
  font-size: 11px;
  line-height: 1.8;
  color: #91a07f;
}
.iv-add-row > .dv-button {
  flex-shrink: 0;
}
.iv-add-form {
  padding: 22px;
  background: #202a19;
  border: 1px solid #495e35;
  border-radius: 9px;
  margin-top: 22px;
}
.iv-add-form .dv-episode-heading h3 {
  font-size: 16px;
}
.iv-add-form > .dv-actions {
  justify-content: flex-end;
}
.iv-choice-panel {
  border: 1px solid #435633;
  border-radius: 9px;
  background: #1d2818;
  margin-top: 20px;
  padding: 20px;
}
.iv-choice-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.iv-choice-heading h3 {
  font-size: 16px;
  font-weight: 500;
  margin: 0;
}
.iv-choice-heading button {
  font-size: 10px !important;
  padding: 6px 10px;
}
.iv-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.iv-choices[hidden] {
  display: none;
}
.iv-choices button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  text-align: left;
  padding: 16px;
  border: 1px solid #607d40 !important;
  background: #2b3a20;
  border-radius: 7px;
  color: #e2edcf;
  cursor: pointer;
}
.iv-choices button > span {
  font: 11px monospace;
  color: #b7db80;
}
.iv-choices button strong {
  grid-row: 2;
  font-size: 13px;
  font-weight: 500;
}
.iv-choices button small {
  grid-row: 3;
  font-size: 10px;
  line-height: 1.7;
  color: #a1b78b;
}
.iv-choices button b {
  grid-column: 2;
  grid-row: 2;
  color: #c7ef87;
  font-weight: 400;
}
.iv-choices button:disabled {
  opacity: 0.48;
  cursor: default;
}
.iv-tree-diagram {
  max-width: 1000px;
  margin: auto;
  text-align: center;
  padding: 15px 0;
}
.iv-tree-diagram ol {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 20px;
  position: relative;
}
.iv-tree-diagram li {
  flex: 1;
  min-width: 0;
  padding-top: 30px;
  position: relative;
}
.iv-tree-diagram li:before {
  content: "";
  height: 30px;
  width: 1px;
  background: #63774b;
  position: absolute;
  top: 0;
  left: 50%;
}
.iv-tree-diagram li > div,
.iv-diagram-root {
  border: 1px solid #50643d;
  background: #202b1b;
  border-radius: 8px;
  padding: 18px 12px;
  position: relative;
}
.iv-diagram-root {
  max-width: 250px;
  margin: auto;
  background: #2b3c20;
  border-color: #badc7b;
}
.iv-tree-diagram li > div strong,
.iv-diagram-root strong {
  display: block;
  color: #d5ff78;
  font: 23px monospace;
  margin-bottom: 8px;
}
.iv-tree-diagram li > div span,
.iv-diagram-root span {
  font-size: 11px;
  color: #a8b59c;
}
.iv-tree-diagram > ol:before {
  content: "";
  position: absolute;
  top: 0;
  left: 25%;
  right: 25%;
  border-top: 1px solid #63774b;
}
.iv-tree-diagram li > ol:before {
  content: "";
  position: absolute;
  top: 0;
  left: 25%;
  right: 25%;
  border-top: 1px solid #63774b;
}
@media (max-width: 1100px) {
  #drama-studio[data-workflow="interactive"] .dv-episode-layout {
    grid-template-columns: 205px minmax(0, 1fr);
    gap: 18px;
  }
}
@media (max-width: 760px) {
  #drama-studio[data-workflow="interactive"] .dv-episode-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .iv-tree-panel {
    position: static;
    max-width: 100%;
  }
  .iv-tree {
    max-height: 280px;
  }
  .iv-tree button {
    padding: 10px 14px;
    gap: 4px;
  }
  .iv-tree button em {
    position: absolute;
    right: 12px;
    top: 12px;
  }
  .iv-tree button strong {
    padding-right: 50px;
  }
  .iv-meta-fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .iv-add-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .iv-add-form {
    padding: 16px;
  }
  .iv-choices {
    grid-template-columns: minmax(0, 1fr);
  }
  .iv-tree-diagram ol {
    gap: 10px;
  }
  .iv-tree-diagram li > ol {
    display: block;
    margin-left: 8px;
  }
  .iv-tree-diagram li > ol:before {
    display: none;
  }
  .iv-tree-diagram li > div {
    padding: 14px 6px;
  }
  .iv-tree-diagram li > div strong {
    font-size: 19px;
  }
}

.iv-tree {
  scrollbar-width: thin;
  scrollbar-color: #53683b #161d14;
}
#drama-studio[data-workflow="interactive"] #dv-workspace {
  scroll-margin-top: 24px;
}
