/* Advanced creator surfaces. Kept separate so the core clone flow stays lean. */
.tabs-nav {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.studio-wide-mode .app-shell {
  width: min(1680px, 100%);
}

.studio-wide-mode .app-workspace {
  grid-template-columns: minmax(0, 1fr);
}

.studio-wide-mode .workspace-outputs {
  display: none;
}

.studio-panel {
  min-height: 640px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  display: block;
  margin-bottom: 7px;
  color: var(--accent);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.studio-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 152px;
  padding: 27px 30px;
  overflow: hidden;
  border: 1px solid rgba(118, 141, 171, 0.25);
  border-radius: 14px;
  background:
    radial-gradient(circle at 86% 18%, rgba(56, 189, 248, 0.17), transparent 31%),
    radial-gradient(circle at 68% 125%, rgba(50, 213, 131, 0.17), transparent 36%),
    linear-gradient(125deg, rgba(22, 31, 44, 0.98), rgba(12, 18, 27, 0.98));
}

.studio-hero::after {
  content: "";
  position: absolute;
  right: 13%;
  bottom: -48px;
  width: 240px;
  height: 100px;
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: 50%;
  transform: rotate(-9deg);
  pointer-events: none;
}

.studio-hero > * {
  position: relative;
  z-index: 1;
}

.studio-hero h2 {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.studio-hero p {
  max-width: 780px;
  margin-top: 9px;
  color: var(--muted-2);
  font-size: 0.92rem;
  line-height: 1.62;
}

.studio-hero-metrics {
  min-width: 148px;
  padding: 20px;
  text-align: center;
  border: 1px solid rgba(50, 213, 131, 0.25);
  border-radius: 13px;
  background: rgba(6, 14, 20, 0.65);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
}

.studio-hero-metrics strong,
.studio-hero-metrics span {
  display: block;
}

.studio-hero-metrics strong {
  color: var(--accent);
  font-size: 1.9rem;
  line-height: 1;
}

.studio-hero-metrics span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.gallery-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.7fr) repeat(3, minmax(145px, 0.72fr)) auto;
  gap: 9px;
  margin: 16px 0;
}

.gallery-search {
  min-width: 0;
  height: var(--control-h);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f1621;
}

.gallery-search:focus-within {
  color: var(--accent-2);
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.08);
}

.gallery-search input {
  width: 100%;
  min-width: 0;
  color: var(--text);
  border: 0;
  outline: 0;
  background: transparent;
}

.gallery-search input::placeholder {
  color: #697a91;
}

.filter-toggle {
  min-height: var(--control-h);
  padding: 0 15px;
  color: var(--muted-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f1621;
  font-size: 0.84rem;
  font-weight: 700;
}

.filter-toggle span {
  margin-right: 5px;
  font-size: 1.05rem;
}

.filter-toggle:hover,
.filter-toggle[aria-pressed="true"] {
  color: #ff9eb2;
  border-color: rgba(251, 113, 133, 0.45);
  background: rgba(251, 113, 133, 0.08);
}

.save-reference-btn {
  width: auto;
  min-height: 38px;
  margin-top: 9px;
  color: var(--accent);
  border-color: rgba(50, 213, 131, 0.28);
  font-size: 0.75rem;
}

.selected-voice-banner,
.gallery-preview-dock {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 15px;
  border: 1px solid rgba(50, 213, 131, 0.32);
  border-radius: 11px;
  background: linear-gradient(90deg, rgba(50, 213, 131, 0.09), rgba(56, 189, 248, 0.05));
}

.selected-voice-banner > span:nth-child(2),
.preview-dock-copy > span:last-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.selected-voice-banner small,
.preview-dock-copy small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.selected-voice-banner strong,
.preview-dock-copy strong {
  margin-top: 2px;
  font-size: 0.91rem;
}

.selected-voice-banner .btn-sec {
  margin-left: auto;
}

.design-voice-lock {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding: 15px 16px;
  border: 1px solid rgba(50, 213, 131, 0.4);
  border-radius: 12px;
  background: linear-gradient(105deg, rgba(50, 213, 131, 0.13), rgba(56, 189, 248, 0.08));
  box-shadow: 0 12px 30px rgba(3, 12, 18, 0.18);
}

.design-voice-lock-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--accent);
  border: 1px solid rgba(50, 213, 131, 0.3);
  border-radius: 11px;
  background: rgba(50, 213, 131, 0.09);
}

.design-voice-lock-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.design-voice-lock-copy small {
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.design-voice-lock-copy strong {
  overflow: hidden;
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.design-voice-lock-copy span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.design-voice-lock-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.design-voice-lock-actions .btn-sec {
  min-height: 38px;
  white-space: nowrap;
}

.design-voice-lock-actions .text-btn {
  max-width: 110px;
  line-height: 1.25;
}

#form-voice-design.has-selected-voice #design-attributes-grid {
  display: none;
}

.gallery-section-heading,
.segment-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin: 25px 2px 13px;
}

.gallery-section-heading h3,
.segment-heading h3 {
  font-size: 1.12rem;
}

.local-first-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted-2);
  font-size: 0.73rem;
  font-weight: 700;
}

.local-first-badge i,
.privacy-stat i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(50, 213, 131, 0.1);
}

.voice-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
}

.voice-card {
  position: relative;
  min-width: 0;
  min-height: 218px;
  display: flex;
  flex-direction: column;
  padding: 17px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    radial-gradient(circle at 96% 5%, var(--voice-tint, rgba(56, 189, 248, 0.1)), transparent 38%),
    linear-gradient(145deg, #17202c, #111822);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.voice-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.voice-card.is-selected {
  border-color: rgba(50, 213, 131, 0.55);
  box-shadow: 0 0 0 1px rgba(50, 213, 131, 0.13), 0 16px 34px rgba(0, 0, 0, 0.22);
}

.voice-card-head {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.voice-symbol {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--voice-color, var(--accent-2));
  border: 1px solid color-mix(in srgb, var(--voice-color, var(--accent-2)) 32%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--voice-color, var(--accent-2)) 10%, transparent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.voice-card-title {
  min-width: 0;
  flex: 1;
}

.voice-card-title strong {
  display: block;
  overflow: hidden;
  font-size: 0.94rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voice-card-title span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.73rem;
}

.favorite-btn {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #708198;
  border: 0;
  background: transparent;
  font-size: 1.25rem;
}

.favorite-btn:hover,
.favorite-btn.is-favorite {
  color: #ff8ea7;
}

.voice-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 15px 0;
}

.voice-tags span {
  padding: 5px 7px;
  color: #a9b7c9;
  border: 1px solid rgba(134, 153, 177, 0.18);
  border-radius: 5px;
  background: rgba(7, 12, 19, 0.3);
  font-size: 0.64rem;
  font-weight: 700;
}

.voice-card-purpose {
  margin: auto 0 13px;
  color: #8999ad;
  font-size: 0.73rem;
  line-height: 1.45;
}

.voice-card-actions {
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  gap: 7px;
}

.voice-card-actions button {
  min-height: 37px;
  border-radius: 7px;
  font-size: 0.75rem;
  font-weight: 800;
}

.voice-preview-btn {
  color: var(--muted-2);
  border: 1px solid var(--line-strong);
  background: rgba(8, 13, 20, 0.3);
}

.voice-use-btn,
.btn-primary-mini {
  color: #05120c;
  border: 1px solid rgba(50, 213, 131, 0.6);
  background: linear-gradient(135deg, #43e694, #31c7ae);
}

.voice-card-actions button:hover,
.btn-primary-mini:hover {
  filter: brightness(1.08);
}

.voice-card.is-loading .voice-preview-btn {
  color: var(--accent-3);
  border-color: rgba(251, 191, 36, 0.4);
}

.gallery-load-more {
  display: block;
  min-width: 180px;
  margin: 16px auto 4px;
}

.gallery-empty {
  padding: 48px 20px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 10px;
}

.gallery-preview-dock {
  position: sticky;
  z-index: 12;
  bottom: 12px;
  margin-top: 16px;
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(12, 19, 29, 0.94);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
}

.preview-dock-copy {
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 11px;
}

.preview-dock-copy em {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.68rem;
  font-style: normal;
}

.gallery-preview-dock audio {
  min-width: 240px;
  height: 40px;
  flex: 1;
}

.btn-primary-mini {
  min-height: 40px;
  padding: 0 15px;
  border-radius: 7px;
  font-size: 0.77rem;
  font-weight: 800;
}

.voice-orb {
  width: 41px;
  height: 41px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 0 0 auto;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.07);
}

.voice-orb.small {
  width: 35px;
  height: 35px;
}

.voice-orb i {
  width: 2px;
  height: 11px;
  border-radius: 2px;
  background: var(--accent-2);
  animation: studio-wave 0.9s ease-in-out infinite alternate;
}

.voice-orb i:nth-child(2) { height: 18px; animation-delay: -0.45s; }
.voice-orb i:nth-child(3) { height: 14px; animation-delay: -0.2s; }
.voice-orb i:nth-child(4) { height: 8px; animation-delay: -0.6s; }

@keyframes studio-wave {
  to { transform: scaleY(0.45); opacity: 0.55; }
}

/* Projects */
.project-hero {
  min-height: 136px;
}

.project-hero .submit-btn {
  width: auto;
  flex: 0 0 auto;
}

.project-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: 590px;
  margin-top: 15px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #111822;
}

.project-sidebar {
  min-width: 0;
  padding: 16px 12px;
  border-right: 1px solid var(--line);
  background: #0d141e;
}

.project-sidebar-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 7px 12px;
  font-size: 0.82rem;
}

.project-sidebar-title span {
  min-width: 25px;
  padding: 3px 6px;
  color: var(--accent);
  border-radius: 999px;
  background: rgba(50, 213, 131, 0.1);
  text-align: center;
  font-size: 0.69rem;
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.project-list-item {
  width: 100%;
  min-width: 0;
  padding: 10px;
  color: var(--muted-2);
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  text-align: left;
}

.project-list-item:hover,
.project-list-item.is-active {
  color: var(--text);
  border-color: var(--line);
  background: var(--surface-2);
}

.project-list-item strong,
.project-list-item span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-list-item strong {
  font-size: 0.79rem;
}

.project-list-item span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.66rem;
}

.local-storage-note {
  margin: 16px 7px 0;
  color: #64748b;
  font-size: 0.66rem;
  line-height: 1.5;
}

.project-editor {
  min-width: 0;
  padding: 19px;
}

.project-empty {
  min-height: 500px;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 30px;
  color: var(--muted);
  text-align: center;
}

.project-empty-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 15px;
  color: var(--accent);
  border: 1px solid rgba(50, 213, 131, 0.24);
  border-radius: 16px;
  background: rgba(50, 213, 131, 0.07);
  font-size: 1.5rem;
}

.project-empty h3 {
  color: var(--text);
  font-size: 1.18rem;
}

.project-empty p {
  max-width: 420px;
  margin: 8px 0 18px;
  line-height: 1.55;
}

.project-title-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 0.42fr) 38px;
  gap: 9px;
}

.project-title-input {
  min-width: 0;
  height: var(--control-h);
  padding: 0 13px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  background: var(--bg);
  font-size: 1rem;
  font-weight: 750;
}

.project-title-input:focus {
  border-color: rgba(50, 213, 131, 0.55);
}

.danger-icon {
  width: 48px;
  height: 48px;
  color: var(--danger);
  border-color: rgba(251, 113, 133, 0.18);
  font-size: 1.25rem;
}

.project-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 11px 0;
}

.project-stats span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 9px;
  color: var(--muted);
  border: 1px solid rgba(130, 149, 174, 0.15);
  border-radius: 999px;
  background: rgba(8, 13, 20, 0.28);
  font-size: 0.67rem;
}

.project-stats strong {
  color: var(--muted-2);
}

.privacy-stat {
  margin-left: auto;
  color: var(--accent) !important;
}

.project-media {
  display: grid;
  grid-template-columns: minmax(240px, 460px) 1fr;
  align-items: center;
  gap: 15px;
  margin-bottom: 11px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #0b1119;
}

.project-media video {
  width: 100%;
  max-height: 260px;
  border-radius: 7px;
  background: #000;
}

.project-media span {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.project-import-row,
.project-actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 8px;
  margin: 11px 0;
}

.project-import-row .btn-sec {
  min-height: 39px;
  font-size: 0.73rem;
}

.project-script-label {
  display: block;
  margin: 15px 0 7px;
  color: var(--muted-2);
  font-size: 0.8rem;
  font-weight: 700;
}

.project-script {
  width: 100%;
  min-height: 210px;
  padding: 15px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: 0;
  background: #0c121b;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.88rem;
  line-height: 1.68;
  resize: vertical;
}

.project-script:focus {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.07);
}

.inline-select-label {
  min-width: 180px;
  display: flex;
  flex: 1 1 180px;
  flex-direction: column;
  gap: 5px;
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 700;
}

.project-actions-row > button {
  min-height: var(--control-h);
}

.voice-lock-note {
  margin: -2px 2px 12px;
  color: #718299;
  font-size: 0.68rem;
  line-height: 1.5;
}

.project-progress {
  margin: 14px 0;
  padding: 12px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.05);
}

.project-progress > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
  font-size: 0.76rem;
}

.project-progress > span {
  height: 5px;
  display: block;
  overflow: hidden;
  border-radius: 999px;
  background: #263244;
}

.project-progress > span i {
  width: 0;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  transition: width 0.25s ease;
}

.segment-heading > div:last-child {
  display: flex;
  gap: 7px;
}

.segment-search {
  min-width: 210px;
  min-height: 38px;
  padding: 0 11px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: 0;
  background: #0d141e;
  font-size: 0.72rem;
}

.segment-search:focus {
  border-color: rgba(56, 189, 248, 0.55);
}

.project-segments {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.segment-row {
  display: grid;
  grid-template-columns: 45px minmax(240px, 1fr) minmax(160px, 0.34fr) auto;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #131b26;
}

.segment-index {
  color: #607086;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.7rem;
  text-align: center;
}

.segment-copy {
  min-width: 0;
}

.segment-copy textarea {
  width: 100%;
  min-height: 56px;
  padding: 8px;
  color: var(--muted-2);
  border: 1px solid transparent;
  border-radius: 6px;
  outline: 0;
  background: transparent;
  font-size: 0.77rem;
  line-height: 1.5;
  resize: vertical;
}

.segment-copy textarea:focus {
  color: var(--text);
  border-color: var(--line);
  background: #0d141e;
}

.segment-time {
  display: block;
  margin-top: 3px;
  color: #607086;
  font-size: 0.62rem;
}

.segment-voice {
  min-width: 0;
  height: 40px;
  font-size: 0.7rem;
}

.segment-actions {
  display: flex;
  gap: 5px;
}

.segment-actions button {
  min-height: 35px;
  padding: 0 9px;
  color: var(--muted-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0e151f;
  font-size: 0.68rem;
  font-weight: 750;
}

.segment-actions button:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.segment-row.is-ready {
  border-color: rgba(50, 213, 131, 0.25);
}

.segment-row.is-ready .segment-index {
  color: var(--accent);
}

.segment-row.is-generating {
  border-color: rgba(251, 191, 36, 0.4);
}

@media (max-width: 1180px) {
  .voice-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery-toolbar {
    grid-template-columns: minmax(220px, 1.5fr) repeat(2, minmax(140px, 0.7fr));
  }

  .gallery-toolbar > :nth-child(4),
  .gallery-toolbar > :nth-child(5) {
    grid-column: auto;
  }
}

@media (max-width: 900px) {
  .tabs-nav {
    position: static;
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .tabs-nav::-webkit-scrollbar { display: none; }

  .tab-btn {
    min-width: 132px;
  }

  .voice-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-search {
    grid-column: 1 / -1;
  }

  .gallery-preview-dock {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .preview-dock-copy {
    flex: 1 1 220px;
  }

  .gallery-preview-dock audio {
    min-width: 220px;
    flex: 2 1 360px;
  }

  .project-shell {
    grid-template-columns: 1fr;
  }

  .project-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .project-list {
    flex-direction: row;
    overflow-x: auto;
  }

  .project-list-item {
    min-width: 170px;
  }

  .local-storage-note {
    display: none;
  }

  .segment-row {
    grid-template-columns: 35px minmax(0, 1fr);
  }

  .segment-voice,
  .segment-actions {
    grid-column: 2;
  }
}

@media (max-width: 620px) {
  .studio-hero {
    align-items: flex-start;
    flex-direction: column;
    padding: 21px;
  }

  .studio-hero-metrics {
    width: 100%;
    padding: 12px;
  }

  .gallery-toolbar,
  .voice-gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-toolbar > * {
    grid-column: 1 !important;
  }

  .selected-voice-banner {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .selected-voice-banner .btn-sec {
    width: 100%;
    margin-left: 0;
  }

  .design-voice-lock {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .design-voice-lock-actions {
    grid-column: 1 / -1;
    align-items: stretch;
    flex-direction: column;
  }

  .design-voice-lock-actions .btn-sec,
  .design-voice-lock-actions .text-btn {
    width: 100%;
    max-width: none;
  }

  .gallery-section-heading,
  .segment-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .local-first-badge {
    align-self: flex-start;
  }

  .gallery-preview-dock {
    bottom: 5px;
  }

  .gallery-preview-dock audio,
  .gallery-preview-dock .btn-primary-mini {
    width: 100%;
  }

  .project-title-row {
    grid-template-columns: minmax(0, 1fr) 48px;
  }

  .project-title-row .custom-select {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .danger-icon {
    grid-column: 2;
    grid-row: 1;
  }

  .project-editor {
    padding: 12px;
  }

  .project-media {
    grid-template-columns: 1fr;
  }

  .project-import-row > button,
  .project-actions-row > button,
  .inline-select-label {
    width: 100%;
    flex-basis: 100%;
  }

  .segment-heading > div:last-child {
    width: 100%;
    flex-wrap: wrap;
  }

  .segment-search {
    width: 100%;
  }

  .segment-heading > div:last-child button {
    flex: 1;
  }

  .segment-row {
    grid-template-columns: 1fr;
  }

  .segment-index,
  .segment-voice,
  .segment-actions {
    grid-column: 1;
  }

  .segment-index {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .voice-orb i {
    animation: none;
  }

  .voice-card {
    transition: none;
  }
}
