.toolbox-app {
  min-height: 100%;
  box-sizing: border-box;
  padding: 28px 28px 40px;
  color: #111315;
  background: #f6f5f1;
}

.toolbox-back-title {
  margin: 0 0 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #111315;
  font-size: 31px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.04;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 160ms ease;
}

.toolbox-back-title:hover {
  opacity: 0.7;
}

.toolbox-layout {
  display: block;
}

.toolbox-list {
  position: relative;
  background: transparent;
}

.toolbox-list::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  border-top: 1px solid rgba(17, 19, 21, 0.12);
}

.toolbox-list__item {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 24px 0 26px;
  border: 0;
  border-bottom: 1px solid rgba(17, 19, 21, 0.1);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    color 160ms ease,
    opacity 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

.toolbox-list__item::before {
  content: "";
  position: absolute;
  left: 42px;
  top: 31px;
  width: 16px;
  height: 1px;
  background: rgba(17, 19, 21, 0.18);
  transition:
    width 160ms ease,
    background-color 160ms ease;
}

.toolbox-list__item:hover {
  opacity: 0.88;
}

.toolbox-list__item:hover::before,
.toolbox-list__item--active::before {
  width: 28px;
  background: rgba(17, 19, 21, 0.46);
}

.toolbox-list__index {
  align-self: start;
  padding-top: 3px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.26em;
  color: #9aa0a6;
}

.toolbox-list__main {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding-left: 26px;
}

.toolbox-list__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 9px;
}

.toolbox-list__title {
  color: #111315;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  transition: color 160ms ease;
}

.toolbox-list__english {
  color: #9a9fa5;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.toolbox-list__line {
  max-width: 36ch;
  color: #5d646b;
  font-size: 13px;
  line-height: 1.85;
  letter-spacing: 0.01em;
}

.toolbox-list__meta {
  display: grid;
  justify-items: end;
  align-content: start;
  gap: 14px;
  padding-top: 1px;
  padding-left: 20px;
}

.toolbox-list__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #7e858c;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.toolbox-list__arrow {
  color: #a0a6ad;
  font-size: 14px;
  line-height: 1;
  transition:
    color 160ms ease,
    transform 160ms ease;
}

.toolbox-list__item:hover .toolbox-list__arrow,
.toolbox-list__item--active .toolbox-list__arrow {
  color: #111315;
  transform: translateX(2px);
}

.toolbox-list__item--active .toolbox-list__title {
  color: #090a0c;
}

.toolbox-list__item--active .toolbox-list__tag {
  color: #4e555c;
}

.toolbox-card-app,
.mini-theater-app {
  min-height: 100%;
  box-sizing: border-box;
  padding: 28px 28px 92px;
  color: #111315;
  background: #f6f5f1;
  overflow: auto;
}

.mini-theater-app {
  padding: 0 14px 92px;
  color: #f8fafc;
  background:
    radial-gradient(circle at 15% 4%, rgba(250, 204, 21, 0.2), transparent 26%),
    radial-gradient(circle at 90% 14%, rgba(236, 72, 153, 0.2), transparent 30%),
    radial-gradient(circle at 50% 100%, rgba(59, 130, 246, 0.2), transparent 38%),
    linear-gradient(180deg, #080812 0%, #151226 54%, #090910 100%);
}

.toolbox-card-hero,
.mini-theater-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.mini-theater-hero {
  position: relative;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  margin: 0 -14px 16px;
  padding: 12px 72px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 0%, rgba(250, 204, 21, 0.26), transparent 38%),
    radial-gradient(circle at 86% 24%, rgba(236, 72, 153, 0.22), transparent 34%),
    linear-gradient(135deg, #09090f 0%, #161124 48%, #261211 100%);
  border-bottom: 1px solid rgba(250, 204, 21, 0.26);
  box-shadow: 0 14px 36px rgba(9, 9, 15, 0.28);
  box-sizing: border-box;
}

.mini-theater-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.05) 0,
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px,
      transparent 10px
    );
  opacity: 0.36;
}

.mini-theater-hero::after {
  content: "";
  position: absolute;
  right: 28px;
  top: 50%;
  z-index: 1;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #facc15;
  box-shadow:
    0 0 0 5px rgba(250, 204, 21, 0.12),
    0 0 18px rgba(250, 204, 21, 0.86);
  transform: translateY(-50%);
  pointer-events: none;
}

.mini-theater-hero > div {
  position: relative;
  z-index: 1;
  min-width: 0;
  text-align: center;
}

.toolbox-card-hero p,
.mini-theater-hero p {
  margin: 0 0 7px;
  color: #9a9fa5;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.mini-theater-hero p {
  display: none;
}

.toolbox-card-hero h2,
.mini-theater-hero h2 {
  margin: 0;
  color: #111315;
  font-size: 31px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.mini-theater-hero h2 {
  color: #fff7d6;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-align: center;
  text-shadow:
    0 0 12px rgba(250, 204, 21, 0.62),
    0 0 24px rgba(236, 72, 153, 0.42);
}

.toolbox-card-title-button {
  appearance: none;
  display: grid;
  justify-items: start;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.toolbox-card-title-button:hover {
  opacity: 0.78;
  transform: translateX(-1px);
}

.toolbox-pill {
  appearance: none;
  border: 1px solid rgba(17, 19, 21, 0.12);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.5);
  color: #2b2f35;
  padding: 9px 13px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    opacity 160ms ease;
}

.mini-theater-hero .toolbox-pill,
.mini-theater-hero .youxiting-back-btn {
  position: absolute;
  left: 18px;
  top: 50%;
  z-index: 2;
  min-width: 40px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(250, 204, 21, 0.35);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.88);
  color: #fff7d6;
  font-size: 13px;
  font-weight: 800;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.045),
    0 0 18px rgba(250, 204, 21, 0.18);
  transform: translateY(-50%);
}

.mini-theater-hero .youxiting-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  padding: 0;
  font-size: 28px;
  line-height: 1;
}

.mini-theater-hero .toolbox-pill:active,
.mini-theater-hero .youxiting-back-btn:active {
  transform: translateY(-50%) scale(0.96);
}

.toolbox-card-list-toggle {
  align-self: flex-start;
  min-width: 58px;
}

.toolbox-card-app:not(.toolbox-card-app--list-open) .toolbox-saved {
  display: none;
}

.toolbox-card-app:not(.toolbox-card-app--list-open) .toolbox-card-grid {
  grid-template-columns: minmax(0, 1fr);
  max-width: 980px;
  margin: 0 auto;
}

.toolbox-card-app--list-open .toolbox-card-list-toggle {
  background: #111315;
  color: #fff;
}

.toolbox-card-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.toolbox-card-grid::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  border-top: 1px solid rgba(17, 19, 21, 0.12);
}

.toolbox-card-app--lexicon .toolbox-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.toolbox-card-grid--single,
.toolbox-card-app--lexicon .toolbox-card-grid--single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 980px;
  margin: 0 auto;
}

.toolbox-glass {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.toolbox-editor,
.toolbox-saved,
.mini-theater-panel {
  padding: 18px;
}

.toolbox-editor h3,
.toolbox-saved h3 {
  margin: 0 0 14px;
  color: #15171a;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.toolbox-cover {
  display: block;
  margin-bottom: 16px;
  cursor: pointer;
}

.toolbox-cover--inline {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.toolbox-cover__label {
  padding-left: 2px;
  color: #737982;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.toolbox-cover__preview {
  width: 100%;
  min-height: 168px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px dashed rgba(17, 19, 21, 0.16);
  border-radius: 0;
  background: #fbfaf6;
  color: #8e949b;
  font-size: 13px;
  font-weight: 700;
  transition:
    border-color 160ms ease,
    background-color 160ms ease;
}

.toolbox-cover:hover .toolbox-cover__preview {
  border-color: rgba(17, 19, 21, 0.32);
  background: #fffdf8;
}

.toolbox-cover__preview img {
  width: 100%;
  height: 100%;
  max-height: 320px;
  object-fit: cover;
  display: block;
}

.toolbox-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.toolbox-field {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
}

.toolbox-field span {
  padding-left: 2px;
  color: #737982;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.toolbox-field input,
.toolbox-field textarea,
.toolbox-field select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(17, 19, 21, 0.1);
  border-radius: 0;
  outline: none;
  background: rgba(255, 255, 255, 0.5);
  color: #15171a;
  padding: 12px 13px;
  font: inherit;
  font-size: 13px;
  line-height: 1.55;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.toolbox-field textarea {
  min-height: 108px;
  resize: vertical;
}

.toolbox-field input:focus,
.toolbox-field textarea:focus,
.toolbox-field select:focus {
  border-color: rgba(17, 19, 21, 0.22);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(17, 19, 21, 0.04);
}

.toolbox-actions,
.toolbox-mini-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.toolbox-actions {
  margin-top: 4px;
}

.toolbox-actions button,
.toolbox-mini-actions button {
  appearance: none;
  border: 1px solid rgba(17, 19, 21, 0.12);
  border-radius: 0;
  background: #15171a;
  color: #fff;
  padding: 10px 13px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 160ms ease,
    opacity 160ms ease;
}

.toolbox-mini-actions button {
  background: #f0f1f3;
  color: #272b31;
  padding: 8px 10px;
  font-size: 11px;
}

.toolbox-actions button:nth-child(n + 2) {
  background: #eef0f3;
  color: #24282e;
}

.toolbox-actions button:hover,
.toolbox-mini-actions button:hover {
  transform: translateY(-1px);
  opacity: 0.88;
}

.toolbox-actions button:disabled {
  opacity: 0.5;
  cursor: wait;
  transform: none;
}

.toolbox-saved {
  max-height: calc(100vh - 160px);
  overflow: auto;
}

.toolbox-saved-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(17, 19, 21, 0.1);
  border-radius: 0;
  background: transparent;
}

.toolbox-saved-card__cover {
  width: 74px;
  height: 88px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, #e9ebef, #f9fafb);
  color: #8b929c;
  font-weight: 800;
}

.toolbox-saved-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.toolbox-saved-card__body {
  min-width: 0;
  display: grid;
  gap: 6px;
  align-content: start;
}

.toolbox-saved-card__body strong {
  color: #15171a;
  font-size: 14px;
  letter-spacing: -0.01em;
}

.toolbox-saved-card__body small,
.toolbox-empty {
  color: #8a9098;
  font-size: 12px;
}

.toolbox-bottom-tabs {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 20;
  width: min(420px, calc(100% - 36px));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: 6px;
  border: 1px solid rgba(17, 19, 21, 0.12);
  border-radius: 0;
  background: rgba(246, 245, 241, 0.94);
  box-shadow:
    0 14px 34px rgba(31, 35, 41, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.toolbox-bottom-tabs__item {
  appearance: none;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #707780;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

.toolbox-bottom-tabs__item:hover {
  color: #15171a;
  transform: translateY(-1px);
}

.toolbox-bottom-tabs__item--active {
  border-color: #15171a;
  background: #15171a;
  color: #fff;
}

.toolbox-bottom-tabs__item--active:hover {
  color: #fff;
}

.toolbox-checks,
.mini-theater-selects {
  display: grid;
  gap: 10px;
}

.toolbox-checks {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 12px;
}

.toolbox-checks label {
  border-radius: 18px;
  background: rgba(246, 247, 249, 0.9);
  padding: 11px 12px;
  color: #343941;
  font-size: 12px;
  font-weight: 700;
}

.toolbox-template-sheet {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.toolbox-template-select {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  padding: 0 0 18px;
  border-bottom: 1px solid rgba(17, 19, 21, 0.12);
}

.toolbox-template-select > span {
  color: #5d646b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.toolbox-template-select select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(17, 19, 21, 0.12);
  border-radius: 0;
  outline: none;
  background: rgba(255, 255, 255, 0.5);
  color: #111315;
  padding: 12px 13px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}

.toolbox-template-select small {
  color: #7e858c;
  font-size: 12px;
  line-height: 1.6;
}

.toolbox-template-sections {
  display: grid;
  gap: 10px;
}

.toolbox-template-section {
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid rgba(17, 19, 21, 0.1);
  border-radius: 0;
  background: transparent;
}

.toolbox-template-section summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 0;
  color: #111315;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}

.toolbox-template-section summary::-webkit-details-marker {
  display: none;
}

.toolbox-template-section summary span {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.toolbox-template-section summary em {
  color: #958979;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.toolbox-template-section[open] summary {
  border-bottom: 1px solid rgba(17, 19, 21, 0.1);
  background: transparent;
}

.toolbox-template-section[open] summary em {
  color: #5f5649;
}

.toolbox-template-section__body {
  padding: 16px 0 18px;
}

.toolbox-template-group {
  padding: 14px 0 4px;
  border-bottom: 1px solid rgba(17, 19, 21, 0.08);
}

.toolbox-template-group:first-child {
  padding-top: 0;
}

.toolbox-template-group:last-child {
  border-bottom: 0;
}

.toolbox-template-group h4 {
  margin: 0 0 10px;
  color: #5d5448;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.toolbox-template-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.toolbox-template-sheet[data-template-mode="complex"] .toolbox-template-items {
  grid-template-columns: 1fr;
}

.toolbox-template-field {
  margin-bottom: 10px;
}

.toolbox-template-field span {
  color: #796f61;
}

.toolbox-template-field input,
.toolbox-template-field textarea {
  border-color: rgba(17, 19, 21, 0.1);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.5);
}

.toolbox-template-field textarea {
  min-height: 92px;
}

.mini-theater-selects {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.app-view-panel__body--mini-theater {
  padding: 0;
  background: #070710;
}

.mini-theater-panel {
  max-width: 980px;
  margin: 0 auto;
  border-color: rgba(148, 163, 184, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)),
    rgba(15, 23, 42, 0.82);
  color: #e5e7eb;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.045),
    0 12px 28px rgba(0, 0, 0, 0.24);
}

.mini-theater-panel--editor {
  width: 100%;
  max-width: 980px;
  box-sizing: border-box;
}

.mini-theater-panel > .toolbox-field:first-child textarea,
.mini-theater-panel > .toolbox-field:last-child textarea {
  min-height: 180px;
}

.mini-theater-panel .toolbox-field span {
  color: #cbd5e1;
}

.mini-theater-panel .toolbox-field input,
.mini-theater-panel .toolbox-field textarea,
.mini-theater-panel .toolbox-field select {
  border-color: rgba(148, 163, 184, 0.26);
  background: rgba(2, 6, 23, 0.72);
  color: #f8fafc;
}

.mini-theater-multi-field {
  position: relative;
  min-width: 0;
}

.mini-theater-multi-select {
  position: relative;
  min-width: 0;
}

.mini-theater-multi-select__button {
  appearance: none;
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 0;
  outline: none;
  background: rgba(2, 6, 23, 0.72);
  color: #f8fafc;
  padding: 12px 13px;
  font: inherit;
  font-size: 13px;
  line-height: 1.55;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.mini-theater-multi-select__button:focus-visible,
.mini-theater-multi-select.is-open .mini-theater-multi-select__button {
  border-color: rgba(250, 204, 21, 0.65);
  background: rgba(2, 6, 23, 0.82);
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.14);
}

.mini-theater-multi-select__summary {
  min-width: 0;
  overflow: hidden;
  color: #f8fafc !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-theater-multi-select__button i {
  color: rgba(250, 204, 21, 0.82);
  font-style: normal;
  transition: transform 160ms ease;
}

.mini-theater-multi-select.is-open .mini-theater-multi-select__button i {
  transform: rotate(180deg);
}

.mini-theater-multi-select__menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 18;
  display: none;
  max-height: 220px;
  overflow: auto;
  border: 1px solid rgba(250, 204, 21, 0.28);
  background:
    linear-gradient(135deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98)),
    #0f172a;
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.mini-theater-multi-select.is-open .mini-theater-multi-select__menu {
  display: grid;
}

.mini-theater-multi-select__option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 9px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  color: #e5e7eb;
  font-size: 13px;
  line-height: 1.35;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.mini-theater-multi-select__option:last-child {
  border-bottom: 0;
}

.mini-theater-multi-select__option:hover {
  background: rgba(250, 204, 21, 0.08);
}

.mini-theater-multi-select__option input {
  width: 16px !important;
  height: 16px;
  margin: 0;
  padding: 0 !important;
  border-radius: 4px;
  accent-color: #facc15;
}

.mini-theater-multi-select__option span {
  min-width: 0;
  padding-left: 0;
  overflow: hidden;
  color: #f8fafc !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-theater-multi-select__empty {
  padding: 12px;
  color: rgba(226, 232, 240, 0.64);
  font-size: 13px;
}

.mini-theater-panel .toolbox-field input:focus,
.mini-theater-panel .toolbox-field textarea:focus,
.mini-theater-panel .toolbox-field select:focus {
  border-color: rgba(250, 204, 21, 0.65);
  background: rgba(2, 6, 23, 0.82);
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.14);
}

.mini-theater-panel .toolbox-field select option {
  color: #111827;
}

.mini-theater-panel .toolbox-actions button:first-child {
  background: linear-gradient(135deg, #facc15, #f97316 46%, #ec4899);
  color: #111827;
}

.mini-theater-panel .toolbox-actions button:nth-child(n + 2) {
  background: rgba(15, 23, 42, 0.86);
  color: #f8fafc;
  border: 1px solid rgba(250, 204, 21, 0.18);
}

.toolbox-template-select-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 78px;
  gap: 10px;
  align-items: end;
  margin-bottom: 18px;
  padding: 0 0 18px;
  border-bottom: 1px solid rgba(17, 19, 21, 0.12);
}

.toolbox-template-select-row .toolbox-template-select {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.toolbox-template-select-row .toolbox-inline-action {
  width: 100%;
  min-height: 46px;
}

.toolbox-inline-action,
.toolbox-actions button,
.toolbox-mini-actions button {
  min-height: 36px;
  border-radius: 0;
  box-shadow: none;
  white-space: nowrap;
}

.toolbox-inline-action {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #15171a;
  border-radius: 0;
  background: #15171a;
  color: #fff;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition:
    transform 160ms ease,
    opacity 160ms ease;
}

.toolbox-inline-action:hover {
  transform: translateY(-1px);
  opacity: 0.88;
}

.toolbox-card-result-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 10px;
  align-items: end;
  padding-left: 0 !important;
  color: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  letter-spacing: normal !important;
}

.toolbox-card-result-head > span {
  align-self: center;
}

.toolbox-card-generate-button {
  min-width: 96px;
  min-height: 34px;
  padding: 7px 10px;
  white-space: nowrap;
}

.toolbox-card-result-field textarea {
  min-height: 118px;
}

.toolbox-card-revision-row,
.toolbox-worldbook-prompt-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px;
  gap: 10px;
  align-items: end;
}

.toolbox-card-revision-row .toolbox-field,
.toolbox-worldbook-prompt-row .toolbox-field {
  margin-bottom: 0;
}

.toolbox-worldbook-prompt-row textarea {
  height: 46px;
  min-height: 46px;
  max-height: 46px;
  resize: none;
}

.toolbox-worldbook-panel {
  margin-top: 12px;
  padding-top: 2px;
}

.toolbox-worldbook-entry-list {
  display: grid;
  gap: 8px;
  margin: 10px 0 12px;
}

.toolbox-worldbook-entry {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 9px 11px;
  border: 1px solid rgba(17, 19, 21, 0.1);
  background: rgba(255, 255, 255, 0.42);
  color: #30343a;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.toolbox-worldbook-entry input {
  accent-color: #15171a;
}

.toolbox-worldbook-empty {
  margin: 10px 0 12px;
}

.toolbox-card-primary-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  margin-top: 12px;
}

.toolbox-card-primary-actions button {
  width: 100%;
  min-width: 0;
}

.toolbox-saved-columns {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
}

.toolbox-saved-column {
  min-width: 0;
}

.toolbox-saved-worldbook {
  padding: 12px 0;
  border-bottom: 1px solid rgba(17, 19, 21, 0.1);
}

.toolbox-saved-worldbook strong {
  display: block;
  color: #15171a;
  font-size: 14px;
}

.toolbox-saved-worldbook summary {
  margin-top: 6px;
  color: #7e858c;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.toolbox-saved-worldbook pre {
  max-height: 180px;
  overflow: auto;
  margin: 8px 0 0;
  padding: 10px;
  background: rgba(255, 255, 255, 0.52);
  color: #343941;
  font: inherit;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.toolbox-card-list-toggle,
.toolbox-pill {
  background: rgba(255, 255, 255, 0.56);
}

.toolbox-card-avatar-dialog {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
  box-sizing: border-box;
}

.toolbox-card-avatar-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 19, 21, 0.28);
  backdrop-filter: blur(10px);
}

.toolbox-card-avatar-dialog__panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(86vh, 680px);
  overflow: auto;
  box-sizing: border-box;
  padding: 22px;
  border: 1px solid rgba(17, 19, 21, 0.12);
  background: #f6f5f1;
  color: #111315;
  box-shadow: 0 24px 70px rgba(31, 35, 41, 0.22);
}

.toolbox-card-avatar-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(17, 19, 21, 0.12);
}

.toolbox-card-avatar-dialog__head p {
  margin: 0 0 7px;
  color: #9a9fa5;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.toolbox-card-avatar-dialog__head h3 {
  margin: 0;
  color: #111315;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.toolbox-card-avatar-dialog__body {
  display: grid;
  gap: 12px;
}

.toolbox-cover--dialog {
  display: grid;
  gap: 8px;
  margin-bottom: 0;
}

.toolbox-cover--dialog .toolbox-cover__preview {
  min-height: 190px;
}

.toolbox-card-avatar-dialog__tip {
  margin: 0;
  color: #7e858c;
  font-size: 12px;
  line-height: 1.7;
}

.toolbox-card-avatar-dialog__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.toolbox-card-avatar-dialog__actions button {
  width: 100%;
}

.toolbox-say-human-app {
  padding-top: 18px;
}

.toolbox-say-human-app .toolbox-card-hero {
  max-width: 980px;
  margin: 0 auto 24px;
}

.toolbox-say-human-app .toolbox-card-grid::before {
  top: -2px;
}

.toolbox-say-human-panel {
  width: 100%;
  max-width: 980px;
  min-width: 0;
  box-sizing: border-box;
  margin: 0 auto;
  padding-top: 10px;
}

.toolbox-say-human-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  align-items: end;
}

.toolbox-say-human-controls .toolbox-field {
  margin-bottom: 0;
}

.toolbox-say-human-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 8px;
}

.toolbox-say-human-status {
  min-height: 0;
  margin: 0;
  color: #6f767e;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.toolbox-say-human-status--error {
  color: #b42318;
}

.toolbox-say-human-preview-wrap {
  width: 100%;
  min-width: 0;
  min-height: 0;
  box-sizing: border-box;
  margin-top: 2px;
  border-top: 1px solid rgba(17, 19, 21, 0.1);
  padding-top: 8px;
}

.toolbox-say-human-preview-title {
  margin: 0 0 12px;
  color: #737982;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.toolbox-say-human-chat {
  width: 100%;
  min-width: 0;
  min-height: auto;
  box-sizing: border-box;
  border: 1px solid rgba(17, 19, 21, 0.1);
  background: #eef0f3;
}

.toolbox-say-human-chat .huimengyu-chat__main.toolbox-say-human-chat-main {
  width: 100%;
  min-width: 0;
  min-height: 220px;
  height: clamp(220px, 52vh, 460px);
  max-height: 460px;
  box-sizing: border-box;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding: 8px 0;
  background: linear-gradient(180deg, rgba(244, 245, 247, 0.92), rgba(237, 239, 243, 0.96));
}

.toolbox-say-human-chat .huimengyu-chat__messages {
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  min-height: auto;
  box-sizing: border-box;
  overflow: visible !important;
  padding: 8px 12px;
}

.toolbox-say-human-chat .huimengyu-message-row {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.toolbox-say-human-chat .huimengyu-message-row__main {
  min-width: 0;
}

.toolbox-say-human-chat .huimengyu-message-bubble {
  pointer-events: none;
}

.toolbox-say-human-answer {
  width: 100%;
  max-width: min(78%, 420px);
  box-sizing: border-box;
  margin: 6px 0 0;
  color: #d92d20;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.toolbox-say-human-empty {
  display: grid;
  min-height: 180px;
  place-items: center;
  border: 1px dashed rgba(17, 19, 21, 0.14);
  background: rgba(255, 255, 255, 0.42);
  color: #858c94;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 720px) {
  .toolbox-app {
    padding: 18px 16px 28px;
  }

  .toolbox-back-title {
    margin-bottom: 22px;
    font-size: 27px;
  }

  .toolbox-list__item {
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 12px;
    padding: 20px 0 22px;
  }

  .toolbox-list__item::before {
    left: 30px;
    top: 27px;
    width: 10px;
  }

  .toolbox-list__item:hover::before,
  .toolbox-list__item--active::before {
    width: 18px;
  }

  .toolbox-list__main {
    gap: 8px;
    padding-left: 16px;
  }

  .toolbox-list__title-row {
    gap: 7px;
  }

  .toolbox-list__title {
    font-size: 16px;
  }

  .toolbox-list__english {
    font-size: 9px;
    letter-spacing: 0.18em;
  }

  .toolbox-list__line {
    max-width: none;
    font-size: 12px;
    line-height: 1.72;
  }

  .toolbox-list__meta {
    gap: 10px;
    padding-left: 8px;
  }

  .toolbox-list__arrow {
    font-size: 13px;
  }

  .toolbox-card-app,
  .mini-theater-app {
    padding: 16px 16px 88px;
  }

  .mini-theater-app {
    padding: 0 14px 88px;
  }

  .toolbox-card-hero,
  .mini-theater-hero {
    align-items: flex-start;
  }

  .mini-theater-hero {
    align-items: center;
    margin-right: -14px;
    margin-left: -14px;
    padding-right: 58px;
    padding-left: 58px;
  }

  .mini-theater-hero::after {
    right: 24px;
  }

  .mini-theater-hero .toolbox-pill,
  .mini-theater-hero .youxiting-back-btn {
    left: 16px;
  }

  .toolbox-card-hero h2,
  .mini-theater-hero h2 {
    font-size: 28px;
  }

  .mini-theater-hero h2 {
    font-size: 26px;
  }

  .toolbox-card-grid,
  .toolbox-card-app--lexicon .toolbox-card-grid,
  .toolbox-fields,
  .mini-theater-selects,
  .toolbox-checks,
  .toolbox-say-human-controls {
    grid-template-columns: 1fr;
  }

  .toolbox-say-human-app {
    padding: 12px 16px 72px;
  }

  .toolbox-say-human-app .toolbox-card-hero {
    margin-bottom: 20px;
  }

  .toolbox-say-human-panel {
    padding: 8px 12px 12px;
  }

  .toolbox-say-human-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .toolbox-say-human-actions button {
    min-width: 0;
    padding-right: 8px;
    padding-left: 8px;
    font-size: 11px;
    white-space: normal;
  }

  .toolbox-say-human-chat .huimengyu-chat__main.toolbox-say-human-chat-main {
    min-height: 200px;
    height: clamp(200px, 50vh, 420px);
    max-height: 420px;
  }

  .toolbox-say-human-chat .huimengyu-chat__messages {
    padding-right: 8px;
    padding-left: 8px;
  }

  .toolbox-card-app--list-open .toolbox-editor {
    display: none;
  }

  .toolbox-card-app--list-open .toolbox-saved {
    display: block;
  }

  .toolbox-bottom-tabs {
    bottom: max(12px, env(safe-area-inset-bottom));
    width: min(360px, calc(100% - 24px));
  }

  .toolbox-bottom-tabs__item {
    min-height: 40px;
    font-size: 12px;
  }

  .toolbox-glass {
    border-radius: 24px;
  }

  .toolbox-editor,
  .toolbox-saved,
  .mini-theater-panel {
    padding: 14px;
  }

  .toolbox-saved {
    max-height: none;
  }

  .toolbox-template-select-row {
    grid-template-columns: minmax(0, 1fr) 78px;
  }

  .toolbox-card-revision-row,
  .toolbox-worldbook-prompt-row {
    grid-template-columns: minmax(0, 1fr) 90px;
  }

  .toolbox-template-select-row .toolbox-inline-action,
  .toolbox-card-revision-row .toolbox-inline-action,
  .toolbox-worldbook-prompt-row .toolbox-inline-action {
    align-self: end;
    width: 100%;
    max-width: none;
    min-height: 46px;
    white-space: normal;
    line-height: 1.2;
  }

  .toolbox-card-result-head .toolbox-card-generate-button,
  .toolbox-card-primary-actions .toolbox-card-generate-button {
    width: 100%;
    white-space: nowrap;
  }

  .toolbox-saved-columns {
    grid-template-columns: 1fr;
  }

  .toolbox-actions {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .toolbox-card-primary-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow-x: visible;
  }
}

.mini-theater-main {
  display: grid;
  gap: 14px;
  max-width: 980px;
  margin: 0 auto;
}

.mini-theater-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.mini-theater-section-head p {
  margin: 0 0 4px;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.mini-theater-section-head h3 {
  margin: 0;
  color: #fff7d6;
  font-size: 20px;
  line-height: 1.25;
}

.mini-theater-section-head > span,
.mini-theater-meta-line {
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.7;
}

.mini-theater-section-head > span {
  flex: 0 0 auto;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(250, 204, 21, 0.18);
  background: rgba(250, 204, 21, 0.12);
  color: #fef3c7;
}

.mini-theater-actions {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mini-theater-panel--editor .mini-theater-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mini-theater-type-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 5px;
  border: 1px solid rgba(250, 204, 21, 0.16);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.42);
}

.mini-theater-type-switch button,
.mini-theater-ghost-btn {
  border: 0;
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(15, 23, 42, 0.82);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.mini-theater-type-switch button.active {
  background: linear-gradient(135deg, #facc15, #f97316 48%, #ec4899);
  color: #111827;
}

.mini-theater-list {
  display: grid;
  gap: 10px;
}

.mini-theater-list-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.76);
  color: #f8fafc;
  text-align: left;
  cursor: pointer;
}

.mini-theater-list-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  border: 1px solid rgba(250, 204, 21, 0.2);
  background: rgba(250, 204, 21, 0.12);
  color: #fef3c7;
  font-weight: 900;
}

.mini-theater-list-item__main {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.mini-theater-list-item__main strong {
  color: #fff7d6;
  font-size: 14px;
  line-height: 1.35;
}

.mini-theater-list-item__main em {
  color: #fef3c7;
  font-size: 11px;
  font-style: normal;
}

.mini-theater-list-item__main span {
  overflow: hidden;
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.55;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-theater-list-item__arrow {
  color: #facc15;
  font-size: 24px;
}

.mini-theater-empty {
  margin: 0;
  padding: 14px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.7;
}

.mini-theater-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mini-theater-detail-head span {
  color: #fff7d6;
  font-size: 13px;
  font-weight: 900;
}

.mini-theater-tabbar {
  position: fixed;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 80;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  width: min(430px, calc(100vw - 28px));
  padding: 7px;
  border: 1px solid rgba(250, 204, 21, 0.18);
  border-radius: 22px;
  background: rgba(8, 8, 18, 0.9);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 14px 34px rgba(0, 0, 0, 0.38),
    0 0 24px rgba(250, 204, 21, 0.1);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.mini-theater-tabbar button {
  border: 0;
  border-radius: 16px;
  padding: 10px 6px;
  background: transparent;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.mini-theater-tabbar button.active {
  background: linear-gradient(135deg, #facc15, #f97316 48%, #ec4899);
  color: #111827;
  box-shadow: 0 8px 18px rgba(249, 115, 22, 0.22);
}

@media (max-width: 640px) {
  .mini-theater-actions,
  .mini-theater-selects {
    grid-template-columns: 1fr;
  }
}


/* Mini Theater record detail page */
.mini-theater-app--record-detail {
  min-height: 100%;
  padding: 0 14px 28px;
}

.mini-theater-app--record-detail .mini-theater-main {
  max-width: min(760px, 100%);
  min-height: 100%;
  padding-top: max(12px, env(safe-area-inset-top));
}

.mini-theater-record-page {
  position: relative;
  min-height: calc(100vh - 28px);
  display: grid;
  align-content: start;
  gap: 12px;
}

.mini-theater-record-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 12px;
  padding: 10px 0 8px;
  background: transparent;
}

.mini-theater-record-back,
.mini-theater-record-menu__toggle {
  appearance: none;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(250, 204, 21, 0.3);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.9);
  color: #fff7d6;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.045),
    0 10px 24px rgba(0, 0, 0, 0.28);
}

.mini-theater-record-back {
  font-size: 30px;
  padding-bottom: 4px;
}

.mini-theater-record-topbar__title {
  min-width: 0;
  margin: 0;
  color: #fff7d6;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  letter-spacing: 0.02em;
}

.mini-theater-record-menu {
  position: relative;
}

.mini-theater-record-menu__toggle {
  font-size: 18px;
}

.mini-theater-record-menu__panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 35;
  display: none;
  width: 132px;
  overflow: hidden;
  border: 1px solid rgba(250, 204, 21, 0.22);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98)),
    #0f172a;
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.36),
    inset 0 0 0 1px rgba(255, 255, 255, 0.045);
}

.mini-theater-record-menu.is-open .mini-theater-record-menu__panel {
  display: grid;
}

.mini-theater-record-menu__panel button {
  appearance: none;
  min-height: 42px;
  padding: 10px 14px;
  border: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: transparent;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.mini-theater-record-menu__panel button:last-child {
  border-bottom: 0;
  color: #fecaca;
}

.mini-theater-record-menu__panel button:hover {
  background: rgba(250, 204, 21, 0.08);
}

.mini-theater-detail--record {
  width: 100%;
  box-sizing: border-box;
  padding: 18px;
  border-radius: 24px;
}

.mini-theater-record-title-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px 12px;
  margin-bottom: 14px;
}

.mini-theater-record-title-block h3 {
  margin: 0;
  color: #fff7d6;
  font-size: 21px;
  line-height: 1.35;
}

.mini-theater-text-stage {
  min-height: 260px;
  max-height: none;
  overflow: visible;
  box-sizing: border-box;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.62);
  color: #f8fafc;
  font-size: 14px;
  line-height: 1.9;
  white-space: normal;
  overflow-wrap: anywhere;
}

.mini-theater-html-stage {
  overflow: hidden;
  min-height: min(68vh, 620px);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.04);
}

.mini-theater-html-stage__frame {
  display: block;
  width: 100%;
  min-height: min(68vh, 620px);
  border: 0;
  background: #ffffff;
}

.mini-theater-detail-edit {
  display: grid;
  gap: 2px;
}

.mini-theater-detail-edit .toolbox-field textarea {
  min-height: min(54vh, 460px);
}

.mini-theater-edit-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mini-theater-detail--record .mini-theater-meta-line {
  max-width: 42vw;
  margin-top: 2px;
  color: rgba(203, 213, 225, 0.78);
  font-size: 11px;
  line-height: 1.45;
  text-align: right;
}

@media (max-width: 640px) {
  .mini-theater-app--record-detail {
    padding: 0 14px 22px;
  }

  .mini-theater-detail--record {
    padding: 14px;
  }

  .mini-theater-html-stage,
  .mini-theater-html-stage__frame {
    min-height: 62vh;
  }

  .mini-theater-record-title-block {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .mini-theater-detail--record .mini-theater-meta-line {
    max-width: 38vw;
    text-align: right;
  }

  .mini-theater-record-title-block h3 {
    font-size: 19px;
  }
}
