/* Saved Logic arrangement geometry, preserved through the redesign. */
.arrange-inner {
  min-width: 900px;
}
.track-axis,
.track-row {
  display: grid;
  grid-template-columns: 225px 1fr;
}
.track-axis {
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 3;
  height: 35px;
  border-bottom: 1px solid var(--line);
  font: 10px var(--font-ui);
}
.axis-label {
  position: relative;
  margin-right: 15px;
}
.axis-label span {
  position: absolute;
  top: 10px;
}
.track-row {
  border-bottom: 1px solid var(--line);
  min-height: 56px;
}
.track-name {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--bg);
  display: flex;
  align-items: center;
  border-right: 1px solid var(--line);
}
.track-name > div {
  min-width: 0;
  flex: 1;
}
.track-name strong {
  font-weight: 500;
  font-size: 12px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.track-name small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.track-name button {
  width: 32px;
  padding: 0;
  border: 0;
  font-size: 17px;
}
.track-number {
  font: 10px var(--font-ui);
  color: var(--muted);
  width: 18px;
}
.track-flags {
  font: 9px var(--font-ui);
}
.lane {
  position: relative;
  background: repeating-linear-gradient(
    to right,
    transparent 0,
    transparent calc(12.5% - 1px),
    var(--line) calc(12.5% - 1px),
    var(--line) 12.5%
  );
  margin: 5px 15px 5px 0;
  min-height: 46px;
}
.region {
  position: absolute;
  top: 0;
  height: 100%;
  min-width: 2px;
  border: 1px solid #899c78;
  overflow: hidden;
}
.region.audio {
  background: #bdc8e7;
  border-color: #8799c1;
}
.region.muted {
  background: #e3e3da;
  border-style: dashed;
}
.region span {
  position: absolute;
  left: 4px;
  top: 2px;
  font: 9px var(--font-ui);
  white-space: nowrap;
  z-index: 1;
}
.region svg {
  position: absolute;
  inset: 12px 0 1px;
  width: 100%;
  height: calc(100% - 13px);
  color: #516e38;
}
.studio-controls {
  flex-wrap: wrap;
}
.studio-controls select {
  font-size: 13px;
}
.studio-detail {
  margin-top: 20px;
}
.studio-detail summary {
  cursor: pointer;
  padding: 12px 0;
  font-size: 14px;
}
.source-file {
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.source-file audio {
  height: 36px;
  width: 300px;
}
.source-file span {
  font-size: 13px;
}

.track-row.hidden-child {
  display: none;
}
.stack-child .track-name {
  padding-left: 22px;
}
.track-name .track-title {
  flex: 1;
  text-align: left;
  min-width: 0;
  width: auto;
  padding: 0;
  background: transparent;
}
.track-title strong::after {
  content: none;
}
.skip {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 300;
  background: var(--bg);
  padding: 12px;
}
.skip:focus {
  top: 12px;
}
.mt {
  margin-top: 16px;
}
a {
  text-decoration: none;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
.notice {
  padding: 16px;
  background: var(--surface);
  font-size: 13px;
}
.error {
  color: var(--danger);
}
label {
  display: grid;
  gap: 8px;
}
textarea {
  width: 100%;
}
dialog h2 {
  margin: 0 0 24px;
}
dialog pre {
  font-size: 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
dialog input:not([type="checkbox"]),
dialog select {
  width: 100%;
}
dialog form {
  display: grid;
  gap: 16px;
}
.measurement {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
}
.dialog-form input {
  min-width: 0;
}
.text-button {
  min-height: 44px;
}
.playing .play {
  color: var(--accent);
}
