:root {
  color-scheme: dark;
  --track-note-font: "Metal Mania", "Black Ops One", Impact, "Arial Black", sans-serif;
  --bg: #0b0d0e;
  --ink: #e8ece8;
  --muted: #8d9a93;
  --line: #2a302c;
  --panel: #111514;
  --focus: #77d6b2;
  --accent: #f0718a;
  --term-line: calc(0.76rem * 1.08);
  --min-editor-lines: 8;
  --brand-fill: #f7fff8;
  --brand-stroke: #050707;
  --notebook-title-font: "Metal Militia", "MetalMilitia", "Metal Mania", "Black Ops One", Impact, "Arial Black", sans-serif;
  --brand-font: var(--notebook-title-font);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: Terminus, "PxPlus IBM VGA8", "Fixedsys Excelsior", Fixedsys, "DejaVu Sans Mono", "Liberation Mono", Consolas, monospace;
  font-size: 0.76rem;
  line-height: 1.08;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--panel);
  color: var(--ink);
  min-height: 18px;
  padding: 0 6px;
  cursor: pointer;
}

.prototype-link {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--focus);
  padding: 0 6px;
  text-decoration: none;
}

.prototype-link:hover,
.prototype-link:focus-visible {
  border-color: var(--focus);
  outline: none;
}

button:hover,
button:focus-visible,
input:focus,
textarea:focus {
  border-color: var(--focus);
  outline: none;
}

button:disabled {
  color: #46504a;
  cursor: default;
  opacity: 0.65;
}

.app-shell {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: 100%;
  height: 100vh;
  overflow-x: hidden;
  padding: 3px;
  gap: 3px;
}

.app-shell.is-style-mode {
  grid-template-rows: minmax(0, 1fr);
}

.app-shell.is-style-mode .notebook-pane {
  display: none;
}

.app-shell.is-style-mode .heart-pane {
  min-height: 0;
}

.notebook-pane,
.heart-pane {
  min-width: 0;
  border: 1px solid var(--line);
  background: #080a0a;
}

.app-shell:not(.is-style-mode) .heart-pane {
  background: #080a0a;
}

.app-shell:not(.is-style-mode) {
  grid-template-rows: auto;
  align-content: start;
  height: auto;
  min-height: 100vh;
}

.app-shell:not(.is-style-mode) .command-strip,
.app-shell:not(.is-style-mode) .heart-header .eyebrow,
.app-shell:not(.is-style-mode) .heart-header h2,
.app-shell:not(.is-style-mode) .heart-header > div:first-child,
.app-shell:not(.is-style-mode) #cycleButton,
.app-shell:not(.is-style-mode) #writePane {
  display: none;
}

.app-shell:not(.is-style-mode) .heart-pane {
  display: none;
}

.app-shell:not(.is-style-mode) .heart-header {
  width: 100%;
  justify-content: flex-end;
  border-bottom: 0;
}

.app-shell:not(.is-style-mode) .heart-actions {
  margin-left: auto;
}

.notebook-pane {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.app-shell:not(.is-style-mode) .notebook-pane {
  grid-template-rows: auto auto auto;
}

.topbar,
.heart-header,
.command-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 16px;
  border-bottom: 1px solid var(--line);
  padding: 1px 4px;
}

.topbar {
  flex-wrap: wrap;
}

.command-strip {
  justify-content: flex-start;
  border-top: 1px solid var(--line);
  border-bottom: 0;
  color: var(--muted);
  min-height: 15px;
  font-size: 0.68rem;
  overflow: hidden;
  white-space: nowrap;
}

h1,
h2,
p {
  margin: 0;
}

h1,
h2 {
  display: inline;
  font-size: 0.76rem;
  line-height: 1;
  font-weight: 700;
}

#appTitle {
  display: inline-block;
  background: #000;
  color: #f7fff8;
  cursor: pointer;
  font-family: var(--notebook-title-font);
  font-size: 1rem;
  line-height: 1;
  letter-spacing: 0;
  padding: 1px 5px 0;
  text-shadow:
    1px 0 #050707,
    -1px 0 #050707,
    0 1px #050707,
    0 -1px #050707;
  white-space: nowrap;
}

#appTitle:hover,
#appTitle:focus-visible {
  color: #f7fff8;
  outline: 0;
}

.app-title-line {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: baseline;
  gap: 5px;
  min-width: max-content;
}

.app-version {
  color: var(--focus);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.eyebrow,
.meter-label {
  display: none;
}

#songMeta {
  display: none;
}

.topbar-title {
  display: flex;
  flex: 1 1 100%;
  align-items: center;
  gap: 8px;
  min-width: 0;
  width: 100%;
}

.song-project-input,
.song-title-input {
  height: 18px;
  min-width: 90px;
  border: 1px solid #151918;
  border-radius: 0;
  background: #050707;
  color: var(--ink);
  padding: 0 5px;
}

.song-project-input {
  flex: 0 1 120px;
  width: 120px;
  min-width: 70px;
  color: var(--focus);
}

.song-title-input {
  flex: 1 1 180px;
  width: auto;
  min-width: 100px;
}

.song-project-input::placeholder,
.song-title-input::placeholder {
  color: #46504a;
}

.topbar-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 2px;
  margin-left: auto;
}

#cleanupButton,
#copyAllButton,
#deleteMenuButton,
#loadButton,
#saveButton {
  white-space: nowrap;
}

.history-stepper {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 18px;
  border: 1px solid #151918;
  background: #050707;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.history-stepper button {
  min-width: 18px;
  min-height: 16px;
  border: 0;
  background: transparent;
  color: var(--focus);
  padding: 0 3px;
}

.history-stepper button:disabled {
  color: #37413c;
}

#historyStepLabel {
  min-width: 28px;
  color: var(--muted);
  text-align: center;
}

#cleanupButton,
#copyAllButton,
#deleteMenuButton {
  min-width: 28px;
  padding-inline: 5px;
  font-weight: 700;
}

#cleanupButton {
  border-color: #e8ff00;
  background: #111606;
  color: #e8ff00;
}

#cleanupButton:hover,
#cleanupButton:focus-visible {
  background: #e8ff00;
  border-color: #e8ff00;
  color: #050707;
}

#copyAllButton {
  border-color: var(--focus);
  background: var(--focus);
  color: #050707;
}

#copyAllButton:hover,
#copyAllButton:focus-visible {
  background: #9ff0d2;
  border-color: #9ff0d2;
  color: #050707;
}

#deleteMenuButton {
  border-color: #ff9f1c;
  background: #241005;
  color: #ffd166;
  text-shadow: 0 0 8px rgba(255, 209, 102, 0.75);
}

#deleteMenuButton:hover,
#deleteMenuButton:focus-visible {
  background: #ff9f1c;
  border-color: #ffd166;
  color: #050707;
  text-shadow: none;
}

.copy-section-menu {
  position: fixed;
  z-index: 80;
  display: grid;
  grid-template-columns: repeat(4, minmax(42px, 1fr));
  gap: 2px;
  width: min(330px, calc(100vw - 12px));
  max-height: min(340px, calc(100vh - 12px));
  overflow: auto;
  padding: 5px;
  border: 1px solid var(--focus);
  background: #050707;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.44);
}

.copy-section-option {
  min-height: 24px;
  padding: 2px 6px;
  border: 1px solid #17211f;
  background: #090c0b;
  color: var(--ink);
  text-align: left;
  font-weight: 700;
}

.copy-section-option:hover,
.copy-section-option:focus-visible {
  border-color: var(--focus);
  color: var(--focus);
}

.copy-section-option.is-all {
  grid-column: 1 / -1;
  background: var(--focus);
  color: #050707;
  border-color: var(--focus);
}

.delete-section-menu {
  border-color: #ff5f5f;
}

.delete-section-option.is-all {
  background: #ff5f5f;
  border-color: #ff5f5f;
  color: #050707;
}

.delete-section-option:hover,
.delete-section-option:focus-visible {
  border-color: #ff5f5f;
  color: #ffb4aa;
}

.song-load-menu {
  position: fixed;
  z-index: 85;
  display: grid;
  gap: 2px;
  width: min(560px, calc(100vw - 12px));
  max-height: min(300px, calc(100vh - 12px));
  overflow: auto;
  padding: 5px;
  border: 1px solid var(--focus);
  background: #050707;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.44);
}

.song-load-title {
  padding: 2px 6px 4px;
  border-bottom: 1px solid #17211f;
  color: var(--focus);
  font-weight: 700;
  text-transform: uppercase;
}

.song-load-search {
  width: 100%;
  height: 20px;
  border: 1px solid #17211f;
  border-radius: 0;
  background: #090c0b;
  color: var(--ink);
  padding: 0 6px;
}

.song-load-search:focus {
  border-color: var(--focus);
  outline: 0;
}

.song-load-groups {
  display: grid;
  gap: 5px;
}

.song-load-project {
  display: grid;
  gap: 2px;
}

.song-load-project-name {
  padding: 2px 5px;
  border-bottom: 1px solid #22312c;
  color: var(--focus);
  font-weight: 700;
  text-transform: uppercase;
}

.song-load-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 26px;
  gap: 2px;
}

.song-load-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: baseline;
  min-height: 24px;
  padding: 2px 6px;
  border: 1px solid #17211f;
  background: #090c0b;
  color: var(--ink);
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.song-load-delete {
  display: grid;
  place-items: center;
  min-width: 26px;
  min-height: 24px;
  padding: 0;
  border: 1px solid #342020;
  background: #120909;
  color: #ff5f5f;
  line-height: 1;
}

.song-load-delete:hover,
.song-load-delete:focus-visible {
  border-color: #ff5f5f;
  background: #220d0d;
  outline: 0;
}

.song-load-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song-load-meta {
  color: var(--muted);
  font-size: 0.68rem;
  white-space: nowrap;
}

.song-load-option:hover,
.song-load-option:focus-visible {
  border-color: var(--focus);
  color: var(--focus);
}

.song-load-option:hover .song-load-meta,
.song-load-option:focus-visible .song-load-meta {
  color: #b7c4bd;
}

.song-load-empty {
  color: var(--muted);
  padding: 4px 6px;
}

.blow-away-layer {
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
  overflow: hidden;
  font-family: Terminus, "PxPlus IBM VGA8", "Fixedsys Excelsior", Fixedsys, "DejaVu Sans Mono", "Liberation Mono", Consolas, monospace;
  font-size: 0.76rem;
  line-height: var(--term-line);
}

.blow-away-token {
  position: fixed;
  color: #ff5f5f;
  text-shadow: 0 0 8px rgba(255, 95, 95, 0.72), 0 0 18px rgba(119, 214, 178, 0.38);
  animation: blow-away-token 920ms cubic-bezier(0.13, 0.72, 0.22, 1) var(--delay, 0ms) forwards;
  will-change: transform, opacity, filter;
}

@keyframes blow-away-token {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1) rotate(0);
    filter: blur(0);
  }
  72% {
    opacity: 0.82;
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) scale(0.45) rotate(var(--rot));
    filter: blur(3px);
  }
}

.copy-section-option.is-v {
  color: #1877f2;
}

.copy-section-option.is-pc {
  color: #ff8a76;
}

.copy-section-option.is-c,
.copy-section-option.is-fc {
  color: #ff4f57;
}

.copy-section-option.is-b {
  color: #b7ff00;
}

.copy-section-option.is-h {
  color: #f5f0e8;
}

.copy-section-option.is-r {
  color: #e8ff00;
}

.copy-section-option.is-i,
.copy-section-option.is-int,
.copy-section-option.is-po,
.copy-section-option.is-o {
  color: #77d6b2;
}

.copy-section-empty {
  grid-column: 1 / -1;
  color: var(--muted);
  padding: 4px 6px;
}

.line-list {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: auto;
  min-height: 0;
  overflow: hidden;
}

.app-shell:not(.is-style-mode) .line-list {
  grid-template-rows: auto auto;
}

.editor-shell {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 38px;
  height: 100%;
  min-height: 0;
  overflow: auto;
}

.app-shell:not(.is-style-mode) .editor-shell {
  height: max(calc(var(--line-count) * var(--term-line)), calc(var(--min-editor-lines) * var(--term-line)));
  overflow: visible;
}

.completion-stats-line {
  border-top: 1px solid var(--line);
  background: #060808;
  color: var(--muted);
  height: var(--term-line);
  line-height: var(--term-line);
  overflow: hidden;
  padding: 0 6px 0 154px;
  white-space: nowrap;
}

.completion-stat.is-ok {
  color: var(--focus);
}

.completion-stat.is-warn {
  color: #ff5f5f;
}

.editor-stack {
  position: relative;
  min-width: 0;
  min-height: 0;
  height: max(100%, calc(var(--line-count) * var(--term-line)));
}

.app-shell:not(.is-style-mode) .editor-stack {
  height: max(calc(var(--line-count) * var(--term-line)), calc(var(--min-editor-lines) * var(--term-line)));
}

.editor-stack:focus-within {
  background: #090d0c;
}

.line-gutter {
  position: relative;
  z-index: 2;
  overflow: visible;
  background: #060808;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  user-select: none;
  min-height: max(100%, calc(var(--line-count) * var(--term-line)));
}

.app-shell:not(.is-style-mode) .line-gutter {
  min-height: max(calc(var(--line-count) * var(--term-line)), calc(var(--min-editor-lines) * var(--term-line)));
}

.line-sequence {
  position: relative;
  z-index: 2;
  min-height: max(100%, calc(var(--line-count) * var(--term-line)));
  border-left: 1px solid #151918;
  background: #060808;
  color: #46504a;
  font-variant-numeric: tabular-nums;
  user-select: none;
}

.app-shell:not(.is-style-mode) .line-sequence {
  min-height: max(calc(var(--line-count) * var(--term-line)), calc(var(--min-editor-lines) * var(--term-line)));
}

.sequence-row {
  height: var(--term-line);
  line-height: var(--term-line);
  padding: 0 4px;
  text-align: right;
  white-space: pre;
}

.sequence-row.is-total-row {
  color: #59645f;
}

.sequence-row.is-selected {
  background: #0c1110;
  color: var(--focus);
}

.gutter-row {
  position: relative;
  display: grid;
  grid-template-columns: 34px 34px minmax(0, 1fr) 20px;
  gap: 4px;
  align-items: center;
  height: var(--term-line);
  line-height: var(--term-line);
  padding: 0 4px 0 2px;
  text-align: left;
  white-space: pre;
}

.gutter-row.has-section-total {
  height: var(--term-line);
}

.gutter-row.is-total-row .gutter-total {
  grid-column: 1;
}

.gutter-label {
  grid-column: 1;
  grid-row: 1;
  display: inline-block;
  justify-self: start;
  width: max-content;
  max-width: 40px;
  min-height: var(--term-line);
  color: #050707;
  overflow: hidden;
  padding: 0 3px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.gutter-label:empty {
  display: none;
}

.gutter-label.is-dragging {
  opacity: 0.55;
}

.gutter-total.is-drop-target {
  outline: 1px solid var(--focus);
  outline-offset: 1px;
  color: var(--focus);
}

.gutter-style {
  position: absolute;
  left: 150px;
  right: -100vw;
  grid-row: 1;
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #a9b2ad;
  font-size: inherit;
  font-style: italic;
  font-weight: 400;
  line-height: var(--term-line);
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}

.gutter-row.is-section .gutter-style {
  position: static;
  left: auto;
  right: auto;
  grid-column: 3;
  min-width: 0;
  max-width: 96px;
  color: #b7c4bd;
}

.gutter-count {
  grid-column: 1;
  grid-row: 1;
  display: block;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: left;
}

.gutter-total {
  grid-column: 2;
  grid-row: 1;
  display: block;
  color: var(--focus);
  font-variant-numeric: tabular-nums;
  text-align: left;
  pointer-events: auto;
}

.gutter-total:not(:empty) {
  cursor: move;
}

.gutter-total:empty {
  display: none;
}

.gutter-polish {
  grid-column: 4;
  grid-row: 1;
  display: block;
  width: 18px;
  min-height: var(--term-line);
  border: 0;
  background: transparent;
  color: #59645f;
  line-height: var(--term-line);
  padding: 0;
  text-align: center;
}

.gutter-polish:not(:empty) {
  cursor: pointer;
}

.gutter-polish:empty {
  pointer-events: none;
}

.gutter-polish.is-checked {
  color: var(--focus);
  font-weight: 700;
}

.gutter-polish:hover,
.gutter-polish:focus-visible {
  color: var(--focus);
  outline: 1px solid var(--focus);
  outline-offset: -1px;
}

.gutter-row.has-section-total .gutter-total {
  color: var(--focus);
}

.gutter-row.is-v .gutter-label {
  background: #0099ff;
}

.gutter-row.is-pc .gutter-label {
  background: #ff6f61;
}

.gutter-row.is-c .gutter-label,
.gutter-row.is-fc .gutter-label {
  background: var(--accent);
}

.gutter-row.is-b .gutter-label {
  background: #b7ff00;
}

.gutter-row.is-bd .gutter-label {
  background: #ed1c24;
}

.gutter-row.is-h .gutter-label,
.gutter-row.is-r .gutter-label {
  background: #ff4fd8;
}

.gutter-row.is-i .gutter-label,
.gutter-row.is-int .gutter-label,
.gutter-row.is-po .gutter-label {
  background: #00d2b8;
}

.gutter-row.is-o .gutter-label {
  background: #f5f0e8;
}

.gutter-row.is-v {
  --section-line: #0099ff;
}

.gutter-row.is-pc {
  --section-line: #ff6f61;
}

.gutter-row.is-c,
.gutter-row.is-fc {
  --section-line: var(--accent);
}

.gutter-row.is-b {
  --section-line: #b7ff00;
}

.gutter-row.is-bd {
  --section-line: #ed1c24;
}

.gutter-row.is-h,
.gutter-row.is-r {
  --section-line: #ff4fd8;
}

.gutter-row.is-i,
.gutter-row.is-int,
.gutter-row.is-po {
  --section-line: #00d2b8;
}

.gutter-row.is-o {
  --section-line: #f5f0e8;
}

.gutter-row.is-active-section {
  color: #b4c6bd;
}

.gutter-row.is-selected {
  background: #0c1110;
  color: var(--focus);
}

.gutter-row.is-empty-row.is-selected {
  background: transparent;
}

.gutter-row.is-section {
  z-index: 3;
  color: var(--focus);
  font-weight: 700;
}

.editor-highlighter,
.main-editor {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  font: inherit;
  font-kerning: none;
  font-synthesis: none;
  font-variant-ligatures: none;
  font-weight: 400;
  letter-spacing: 0;
  line-height: var(--term-line);
  padding: 0 6px;
  tab-size: 2;
  white-space: pre;
}

.editor-highlighter {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  color: var(--ink);
  pointer-events: none;
}

.syntax-line {
  position: relative;
  display: block;
  height: var(--term-line);
  font: inherit;
  line-height: var(--term-line);
}

.syntax-line.is-selected {
  background: #0f1714;
}

.syntax-line.is-selected.is-empty {
  background: #0c1110;
}

.editor-stack:focus-within .syntax-line.is-selected.is-empty::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 1px;
  height: calc(var(--term-line) - 2px);
  background: var(--focus);
  box-shadow: 0 0 0 1px rgba(119, 214, 178, 0.18);
}

.editor-stack:focus-within .syntax-line.is-selected.is-empty::after {
  content: "type lyrics";
  position: absolute;
  left: 7px;
  top: 0;
  color: #46504a;
  font-style: italic;
  pointer-events: none;
}

.syntax-line.is-v {
  --syntax-section: #0099ff;
}

.syntax-line.is-pc {
  --syntax-section: #ff6f61;
}

.syntax-line.is-c,
.syntax-line.is-fc {
  --syntax-section: var(--accent);
}

.syntax-line.is-b {
  --syntax-section: #b7ff00;
}

.syntax-line.is-bd {
  --syntax-section: #ed1c24;
}

.syntax-line.is-h,
.syntax-line.is-r {
  --syntax-section: #ff4fd8;
}

.syntax-line.is-i,
.syntax-line.is-int,
.syntax-line.is-po {
  --syntax-section: #00d2b8;
}

.syntax-line.is-o {
  --syntax-section: #f5f0e8;
}

.syntax-initial {
  color: var(--syntax-section, var(--ink));
  font: inherit;
  font-weight: 400;
}

.syntax-tag {
  background: #f5f0e8;
  color: #050707;
  font: inherit;
  font-weight: 400;
}

.syntax-tag.is-verse {
  background: #0099ff;
}

.syntax-tag.is-prechorus {
  background: #ff6f61;
}

.syntax-tag.is-chorus {
  background: var(--accent);
}

.syntax-tag.is-bridge {
  background: #b7ff00;
}

.syntax-tag.is-breakdown {
  background: #ed1c24;
}

.syntax-tag.is-hook,
.syntax-tag.is-refrain {
  background: #ff4fd8;
}

.syntax-tag.is-intro,
.syntax-tag.is-interlude,
.syntax-tag.is-postchorus {
  background: #00d2b8;
}

.syntax-tag.is-spoken {
  background: var(--spoken-bg, #ffc2a1);
}

.section-style-menu {
  position: fixed;
  z-index: 20;
  display: grid;
  min-width: 118px;
  border: 1px solid var(--line);
  background: #050707;
  box-shadow: 0 0 0 1px #000;
}

.section-style-option {
  display: block;
  width: 100%;
  min-height: 16px;
  border: 0;
  border-bottom: 1px solid #151918;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.section-style-option:hover,
.section-style-option:focus-visible,
.section-style-option.is-selected {
  background: #101614;
  color: var(--focus);
}

.spoken-tag-menu {
  max-height: 238px;
  min-width: 156px;
  overflow-y: auto;
}

.tag-checkbox-menu {
  min-width: 142px;
}

.tag-menu-title {
  padding: 2px 5px 1px;
  border-bottom: 1px solid #151918;
  color: var(--muted);
  font-size: 0.68rem;
}

.tag-menu-subtitle {
  padding: 3px 5px 1px;
  color: #59645f;
  font-size: 0.64rem;
  text-transform: uppercase;
}

.tag-menu-note {
  padding: 2px 5px;
  color: var(--muted);
}

.tag-menu-option {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.tag-menu-option input {
  width: 10px;
  height: 10px;
  margin: 0;
  accent-color: var(--focus);
}

.tag-tone-swatch {
  display: inline-block;
  width: 18px;
  height: 10px;
  border: 1px solid #050707;
}

.tag-menu-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 2px;
}

.main-editor {
  position: absolute;
  inset: 0;
  z-index: 1;
  resize: none;
  color: transparent;
  caret-color: var(--focus);
}

.main-editor::selection {
  background: rgba(119, 214, 178, 0.3);
}

.main-editor:focus {
  background: transparent;
}

.heart-target-input {
  width: 100%;
  height: 18px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #050707;
  color: var(--focus);
  text-align: center;
  font-weight: 700;
  padding: 0 3px;
}

kbd {
  color: var(--ink);
}

.heart-pane {
  display: grid;
  grid-template-rows: auto minmax(0, auto);
}

.heart-header {
  border-bottom: 1px solid var(--line);
}

.heart-actions {
  display: flex;
  align-items: center;
  gap: 3px;
}

.pane-tabs {
  display: flex;
  gap: 0;
}

.pane-tab {
  border-color: #151918;
}

.pane-tab.is-active {
  border-color: var(--focus);
  background: #101614;
  color: var(--focus);
}

.heart-view {
  display: none;
  min-height: 0;
}

.heart-view.is-active {
  display: grid;
}

#writePane {
  grid-template-rows: auto minmax(0, auto);
}

#stylePane {
  grid-template-rows: 15vh auto minmax(0, 1fr) minmax(95px, 22%) auto auto;
}

.style-art-banner {
  position: relative;
  min-height: 96px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #000;
  isolation: isolate;
}

.style-art-banner::before,
.style-art-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.style-art-banner::before {
  display: none;
}

.style-art-banner::after {
  inset: auto 0 -18px;
  height: 28px;
  z-index: 2;
  background: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.92) 56%, transparent 100%);
  opacity: 1;
}

.brand-mark {
  position: absolute;
  right: 10px;
  bottom: -15px;
  z-index: 3;
  width: min(620px, 58vw);
  transform: none;
}

.brand-logo-svg {
  display: block;
  width: 100%;
  height: clamp(58px, 8.2vw, 104px);
  overflow: visible;
  pointer-events: none;
}

.brand-logo-text-backdrop {
  fill: #000;
  opacity: 0.96;
}

.style-art-title,
.brand-logo-sheen-text {
  font-family: var(--brand-font);
  font-size: 130px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
  transform-box: fill-box;
  transform-origin: center;
}

.style-art-title {
  fill: url("#brandLavaText");
  stroke: var(--brand-stroke);
  stroke-linejoin: round;
  stroke-width: 9px;
  paint-order: stroke fill;
  filter: url("#brandLogoShadow");
}

.brand-logo-sheen-text {
  fill: url("#brandLogoSheen");
  stroke: none;
  opacity: 0.48;
  mix-blend-mode: screen;
  animation: brandTextBlink 5.5s ease-in-out infinite;
}

@keyframes brandTextBlink {
  0%,
  100% {
    opacity: 0.3;
  }

  48% {
    opacity: 0.6;
  }
}

@keyframes lavaLampDrift {
  0% {
    transform: translate3d(-3%, -8%, 0) scale(1.1) rotate(-4deg);
  }

  45% {
    transform: translate3d(4%, 6%, 0) scale(1.18) rotate(3deg);
  }

  100% {
    transform: translate3d(-1%, 9%, 0) scale(1.12) rotate(-1deg);
  }
}

@keyframes lavaLampPulse {
  from {
    opacity: 0.56;
    transform: translate3d(3%, 0, 0) scale(1.02);
  }

  to {
    opacity: 0.88;
    transform: translate3d(-4%, -3%, 0) scale(1.08);
  }
}

.style-art-mark {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.style-art-ribbon {
  display: none;
}

.ribbon-a {
  top: 14%;
  transform: skewY(-9deg) rotate(-2deg);
}

.ribbon-b {
  top: 34%;
  height: 26px;
  transform: skewY(7deg) rotate(1deg);
  background: linear-gradient(90deg, rgba(20, 255, 196, 0.22), rgba(51, 95, 255, 0.2), rgba(4, 20, 40, 0.32));
}

.ribbon-c {
  top: 55%;
  height: 38px;
  transform: skewY(-5deg) rotate(2deg);
}

.ribbon-d {
  top: 75%;
  height: 22px;
  transform: skewY(10deg) rotate(-1deg);
  background: linear-gradient(90deg, rgba(12, 28, 54, 0.3), rgba(0, 246, 255, 0.18), rgba(95, 73, 255, 0.32));
}

.style-art-signal {
  display: none;
}

.signal-a {
  top: 24%;
  left: 18%;
}

.signal-b {
  top: 66%;
  left: 61%;
  background: rgba(82, 119, 255, 0.82);
  box-shadow: 0 0 16px rgba(82, 119, 255, 0.85);
}

.signal-c {
  top: 39%;
  left: 84%;
  background: rgba(157, 84, 255, 0.82);
  box-shadow: 0 0 16px rgba(157, 84, 255, 0.85);
}

#stylePane.is-layout-2 {
  grid-template-columns: minmax(0, 58%) minmax(280px, 42%);
  grid-template-rows: 15vh auto minmax(0, 1fr) auto auto;
}

#stylePane.is-layout-2 .style-art-banner {
  grid-column: 1 / -1;
}

#stylePane.is-layout-2 .style-toolbar {
  grid-column: 1 / -1;
  grid-row: 2;
}

#stylePane.is-layout-2 .style-bucket-board {
  grid-column: 1;
  grid-row: 3;
}

#stylePane.is-layout-2 .style-prompt-zone {
  grid-column: 2;
  grid-row: 3;
}

#stylePane.is-layout-2 .style-bottom-actions {
  grid-column: 1 / -1;
  grid-row: 4;
}

#stylePane.is-layout-2 .style-data-shelf {
  grid-column: 1 / -1;
  grid-row: 5;
}

#stylePane.is-layout-3 {
  grid-template-rows: 15vh auto minmax(110px, 28%) minmax(0, 1fr) auto auto;
}

#stylePane.is-layout-3 .style-prompt-zone {
  grid-row: 3;
}

#stylePane.is-layout-3 .style-bucket-board {
  grid-row: 4;
}

#stylePane.is-layout-4 {
  grid-template-columns: minmax(330px, 36%) minmax(0, 1fr);
  grid-template-rows: 15vh auto minmax(0, 1fr) auto auto;
}

#stylePane.is-layout-4 .style-art-banner {
  grid-column: 1 / -1;
}

#stylePane.is-layout-4 .style-toolbar {
  grid-column: 1 / -1;
  grid-row: 2;
}

#stylePane.is-layout-4 .style-bucket-board {
  grid-column: 1;
  grid-row: 3;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: minmax(70px, auto);
}

#stylePane.is-layout-4 .style-prompt-zone {
  grid-column: 2;
  grid-row: 3;
}

#stylePane.is-layout-4 .style-bottom-actions {
  grid-column: 1 / -1;
  grid-row: 4;
}

#stylePane.is-layout-4 .style-data-shelf {
  grid-column: 1 / -1;
  grid-row: 5;
}

#stylePane.is-genre-screen {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 15vh auto minmax(0, 1fr) minmax(170px, 34%) auto auto;
}

#stylePane.is-genre-screen .style-art-banner {
  grid-column: 1;
  grid-row: 1;
}

#stylePane.is-genre-screen .style-toolbar {
  grid-column: 1;
  grid-row: 2;
}

#stylePane.is-genre-screen .style-bucket-board {
  grid-column: 1;
  grid-row: 3;
}

#stylePane.is-genre-screen .style-prompt-zone {
  grid-column: 1;
  grid-row: 4;
}

#stylePane.is-genre-screen .style-bottom-actions {
  grid-column: 1;
  grid-row: 5;
}

#stylePane.is-genre-screen .style-data-shelf {
  grid-column: 1;
  grid-row: 6;
}

#stylePane.is-suno-screen {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 15vh auto minmax(112px, 18vh) minmax(0, 1fr) minmax(170px, 30%) auto auto;
}

#stylePane.is-suno-screen .style-art-banner {
  grid-column: 1;
  grid-row: 1;
}

#stylePane.is-suno-screen .style-toolbar {
  grid-column: 1;
  grid-row: 2;
}

#stylePane.is-suno-screen .suno-import-panel {
  grid-column: 1;
  grid-row: 3;
}

#stylePane.is-suno-screen .style-bucket-board {
  grid-column: 1;
  grid-row: 4;
}

#stylePane.is-suno-screen .style-prompt-zone {
  grid-column: 1;
  grid-row: 5;
}

#stylePane.is-suno-screen .style-bottom-actions {
  grid-column: 1;
  grid-row: 6;
}

#stylePane.is-suno-screen .style-data-shelf {
  grid-column: 1;
  grid-row: 7;
}

#stylePane.is-artist-screen {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 15vh auto auto minmax(160px, 30%) minmax(86px, auto) minmax(0, 1fr) auto auto;
}

#stylePane.is-artist-screen .style-art-banner {
  grid-column: 1;
  grid-row: 1;
}

#stylePane.is-artist-screen .style-toolbar {
  grid-column: 1;
  grid-row: 2;
}

#stylePane.is-artist-screen .artist-search-bar {
  grid-column: 1;
  grid-row: 3;
}

#stylePane.is-artist-screen .artist-catalog-panel {
  grid-column: 1;
  grid-row: 4;
}

#stylePane.is-artist-screen .artist-source-pool {
  grid-column: 1;
  grid-row: 5;
}

#stylePane.is-artist-screen .style-prompt-zone {
  display: none;
}

#stylePane.is-artist-screen .style-bucket-board {
  display: none;
}

#stylePane.is-artist-screen .style-bottom-actions {
  grid-column: 1;
  grid-row: 6;
}

#stylePane.is-artist-screen .style-data-shelf {
  grid-column: 1;
  grid-row: 7;
}

.app-shell.is-style-mode #stylePane {
  min-height: 0;
}

.meter-panel {
  display: grid;
  grid-template-columns: 82px 128px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  padding: 1px 4px;
  border-bottom: 1px solid var(--line);
}

.meter-panel > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 4px;
}

.meter-panel > div::before {
  color: var(--muted);
}

.meter-panel > div:first-child::before {
  content: "count";
}

.meter-panel > div:nth-child(2)::before {
  content: "target";
}

.meter-panel strong {
  color: var(--focus);
  font-weight: 700;
}

.suggestion-list {
  display: grid;
  align-content: start;
  gap: 0;
  max-height: calc(var(--term-line) * 10);
  overflow: auto;
}

.suggestion-group {
  position: sticky;
  top: 0;
  min-height: 16px;
  border-bottom: 1px solid #151918;
  background: #0b0d0e;
  color: var(--muted);
  font-weight: 700;
  padding: 1px 4px;
  z-index: 1;
}

.suggestion {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 44px;
  align-items: center;
  width: 100%;
  min-height: 16px;
  border: 0;
  border-bottom: 1px solid #151918;
  background: transparent;
  text-align: left;
  padding: 0 4px;
}

.suggestion:hover,
.suggestion:focus-visible {
  background: #101614;
}

.suggestion-body {
  display: grid;
  grid-template-columns: minmax(86px, max-content) minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
}

.suggestion-key {
  color: var(--accent);
  font-weight: 700;
}

.suggestion-text {
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suggestion-reason {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suggestion-count {
  color: var(--focus);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.suggestion-note {
  min-height: 16px;
  border-bottom: 1px solid #151918;
  color: var(--muted);
  padding: 1px 4px;
}

.style-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #000 0%, #000 58%, #050707 100%);
  color: var(--focus);
  padding: 3px 4px 1px;
}

.style-source {
  color: var(--muted);
  margin-right: auto;
}

.style-layout-strip {
  display: flex;
  gap: 2px;
}

.style-screen-switch {
  display: flex;
  gap: 2px;
}

.style-suno-screen-button {
  border-color: #ff8a1d;
  background: #090909;
  color: #ff8a1d;
  font-weight: 900;
  letter-spacing: 0;
}

.style-suno-screen-button:hover,
.style-suno-screen-button:focus-visible,
.style-suno-screen-button.is-selected {
  background: #ff8a1d;
  color: #080808;
}

.style-screen-button.is-selected {
  border-color: var(--focus);
  color: var(--focus);
}

.artist-search-bar {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) auto minmax(120px, 1fr) auto minmax(120px, 1fr) auto minmax(0, 1.4fr);
  align-items: center;
  gap: 6px;
  min-height: 20px;
  border-bottom: 1px solid var(--line);
  background: #050707;
  padding: 1px 4px;
}

.artist-search-bar[hidden] {
  display: none;
}

.suno-import-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 4px;
  min-height: 0;
  border: 1px solid #ff8a1d;
  background: #080808;
  padding: 6px;
}

.suno-import-panel[hidden] {
  display: none;
}

.suno-import-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #ff8a1d;
  font-weight: 900;
  text-transform: uppercase;
}

.suno-import-send-button {
  margin-left: auto;
  border-color: #ff8a1d;
  color: #ff8a1d;
  background: #111;
  font-weight: 900;
}

.suno-import-send-button:hover,
.suno-import-send-button:focus-visible {
  background: #ff8a1d;
  color: #080808;
}

.suno-import-text {
  min-height: 92px;
  max-height: 180px;
  resize: vertical;
  border: 1px solid #2b2418;
  background: #111;
  color: var(--ink);
  font: inherit;
  line-height: 1.18;
  padding: 6px;
  outline: none;
}

.suno-import-text:focus {
  border-color: #ff8a1d;
  box-shadow: inset 0 0 0 1px #ff8a1d;
}

.artist-search-bar label {
  color: var(--focus);
  font-weight: 700;
  text-transform: lowercase;
}

.artist-catalog-mode {
  display: flex;
  gap: 2px;
}

.artist-catalog-mode button.is-selected {
  border-color: var(--focus);
  color: var(--focus);
}

.artist-data-link {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.artist-data-link:hover,
.artist-data-link:focus-visible {
  color: var(--focus);
}

.artist-prompt-search,
.artist-album-select,
.artist-label-select {
  width: 100%;
  height: 17px;
  border: 1px solid #151918;
  background: #080a0a;
  color: var(--ink);
  padding: 0 5px;
}

.artist-album-select:disabled,
.artist-label-select:disabled {
  color: var(--muted);
}

.artist-source-pool {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  min-height: 0;
  max-height: 150px;
  border-bottom: 1px solid var(--line);
  background: #050707;
}

.artist-source-pool[hidden] {
  display: none;
}

.artist-source-pool-header {
  display: grid;
  align-content: start;
  gap: 2px;
  border-right: 1px solid #151918;
  color: var(--muted);
  padding: 3px;
}

.artist-source-pool-header strong {
  color: var(--focus);
  font-weight: 700;
}

.artist-source-pool-header button {
  width: max-content;
}

.artist-source-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  overflow: visible;
  padding: 3px;
}

.artist-source-chip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 20px;
  max-width: 100%;
  overflow: visible;
  border-color: #151918;
  color: var(--ink);
  text-align: left;
  text-overflow: ellipsis;
}

.artist-source-chip strong,
.artist-source-detail {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.artist-source-chip strong {
  flex: 1 1 auto;
}

.artist-source-chip.is-in-pool {
  border-color: var(--focus);
}

.artist-source-type {
  flex: 0 0 auto;
  color: var(--focus);
  font-weight: 700;
}

.artist-source-selection-count {
  flex: 0 0 auto;
  min-width: 18px;
  color: var(--focus);
  text-align: right;
}

.artist-source-detail {
  flex: 0 1 auto;
  color: var(--muted);
}

.artist-source-remove {
  flex: 0 0 auto;
  align-self: center;
  min-width: 18px;
  height: 18px;
  padding: 0;
  color: var(--muted);
}

.artist-source-remove:hover,
.artist-source-remove:focus-visible {
  border-color: #ff4f5f;
  color: #ff4f5f;
}

.artist-source-albums {
  position: relative;
  flex: 0 0 auto;
  min-width: 0;
}

.artist-source-albums summary {
  color: var(--focus);
  cursor: pointer;
  list-style: none;
}

.artist-source-albums summary::-webkit-details-marker {
  display: none;
}

.artist-source-album-list {
  position: absolute;
  z-index: 20;
  right: 0;
  top: 100%;
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px 8px;
  width: min(620px, 70vw);
  max-height: calc(var(--term-line) * 7);
  overflow: auto;
  border: 1px solid var(--focus);
  background: #050707;
  padding: 4px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
}

.artist-source-albums[open] .artist-source-album-list {
  display: grid;
}

.artist-source-album-option {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  color: var(--ink);
}

.artist-source-album-option span {
  min-width: 0;
  white-space: normal;
}

.manual-bucket-shell {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  gap: 3px;
  min-height: 0;
  grid-column: 1 / -1;
}

.manual-bucket-shell.has-active-menu {
  grid-template-rows: minmax(0, 1fr);
}

.manual-text-pool {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 2px;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  border: 1px solid #151918;
  background: #070909;
  padding: 4px;
}

.manual-source-text-pool {
  border-top-color: var(--focus);
}

.manual-menu-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  min-width: 0;
}

.manual-bucket-token {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  border: 1px solid color-mix(in srgb, var(--bucket-accent, var(--focus)) 72%, #151918);
  background: #080a0a;
  color: var(--bucket-accent, var(--focus));
  font-weight: 700;
  padding: 0 5px;
  cursor: pointer;
}

.manual-pool-term,
.manual-menu-term,
.manual-selected-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  overflow: hidden;
  border-color: #151918;
  border-bottom-color: transparent;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manual-pool-term.is-selected,
.manual-menu-term.is-selected,
.manual-selected-chip {
  border-color: #151918;
  border-bottom-color: var(--bucket-accent, var(--focus));
  color: var(--ink);
}

.manual-pool-empty,
.manual-candidate-empty {
  color: var(--muted);
  padding: 2px 4px 2px 0;
}

.manual-pool-break {
  flex-basis: 100%;
  height: 0;
}

.manual-menu-panel {
  min-height: 0;
  overflow: auto;
  border: 1px solid var(--focus);
  background: #f4f6f0;
  color: #151918;
  padding: 8px 12px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
}

.manual-inline-menu {
  position: fixed;
  z-index: 35;
  left: 14px;
  right: 14px;
  top: 76px;
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  align-content: start;
  gap: 16px 26px;
  max-height: calc(100vh - 96px);
}

.manual-bucket-token.is-active {
  background: color-mix(in srgb, var(--bucket-accent, var(--focus)) 18%, #080a0a);
  box-shadow: inset 0 -1px 0 var(--bucket-accent, var(--focus));
}

.manual-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  color: var(--bucket-accent, var(--focus));
  margin-bottom: 3px;
}

.manual-menu-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-bottom: 3px;
}

.manual-menu-nav-item.is-active {
  border-color: var(--bucket-accent, var(--focus));
  color: var(--bucket-accent, var(--focus));
}

.artist-catalog-panel {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  min-height: 0;
  border-bottom: 1px solid var(--line);
  background: #050707;
}

.artist-catalog-panel[hidden] {
  display: none;
}

.artist-catalog-nav {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  border-right: 1px solid #151918;
}

.artist-catalog-letters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-content: start;
  gap: 1px;
  border-bottom: 1px solid #151918;
  padding: 3px;
}

.artist-catalog-labels {
  display: grid;
  align-content: start;
  gap: 1px;
  min-height: 0;
  overflow: auto;
  padding: 3px;
}

.artist-catalog-letter,
.artist-catalog-label {
  min-width: 0;
  height: 17px;
  padding: 0;
  color: var(--muted);
}

.artist-catalog-label {
  width: 100%;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.artist-catalog-letter.is-selected,
.artist-catalog-label.is-selected {
  border-color: var(--focus);
  color: var(--focus);
}

.artist-catalog-results {
  display: grid;
  grid-auto-rows: minmax(18px, auto);
  align-content: start;
  min-width: 0;
  min-height: 0;
  max-height: none;
  overflow: auto;
}

.artist-catalog-status,
.artist-catalog-empty {
  min-height: 18px;
  border-bottom: 1px solid #151918;
  color: var(--muted);
  padding: 2px 5px;
}

.artist-catalog-result {
  display: grid;
  grid-template-columns: minmax(130px, 0.32fr) minmax(0, 1fr);
  gap: 8px;
  width: 100%;
  min-height: 18px;
  border: 0;
  border-bottom: 1px solid #151918;
  background: transparent;
  text-align: left;
  padding: 1px 5px;
}

.artist-catalog-result strong,
.artist-catalog-result span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.artist-catalog-result strong {
  color: var(--focus);
}

.artist-catalog-result span {
  color: var(--muted);
}

.artist-catalog-result:hover,
.artist-catalog-result:focus-visible,
.artist-catalog-result.is-selected {
  background: #101614;
}

.style-bucket-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(118px, 1fr);
  gap: 3px;
  min-height: 0;
  overflow: auto;
  border-bottom: 1px solid var(--line);
  background: #050707;
  padding: 3px;
}

.style-bucket {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  border: 1px solid color-mix(in srgb, var(--bucket-accent, var(--focus)) 42%, #151918);
  border-top-color: var(--bucket-accent, var(--focus));
  background: #070909;
}

.style-bucket-header {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 17px;
  border-bottom: 1px solid color-mix(in srgb, var(--bucket-accent, var(--focus)) 32%, #151918);
  color: var(--bucket-accent, var(--focus));
  padding: 0 4px;
}

.style-bucket-header strong {
  margin-right: auto;
  font-size: inherit;
  font-weight: 700;
  text-transform: lowercase;
}

.style-bucket-header button {
  min-width: 0;
  height: 15px;
  border-color: color-mix(in srgb, var(--bucket-accent, var(--focus)) 34%, #151918);
  color: color-mix(in srgb, var(--bucket-accent, var(--focus)) 68%, var(--muted));
  padding: 0 4px;
}

.style-bucket-header button:hover,
.style-bucket-header button:focus-visible {
  border-color: var(--bucket-accent, var(--focus));
  color: var(--bucket-accent, var(--focus));
}

.style-bucket-field {
  width: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  resize: none;
  background: transparent;
  color: var(--ink);
  line-height: var(--term-line);
  padding: 4px;
}

.style-bucket-field:focus {
  outline: 1px solid var(--focus);
  outline-offset: -1px;
}

.artist-trait-list {
  display: grid;
  align-content: start;
  gap: 2px;
  min-height: 0;
  overflow: auto;
  padding: 3px;
}

.artist-trait-option {
  width: 100%;
  min-height: 17px;
  border-color: #151918;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.artist-trait-option:hover,
.artist-trait-option:focus-visible {
  border-color: var(--bucket-accent, var(--focus));
  color: var(--bucket-accent, var(--focus));
}

.artist-empty-card,
.artist-selection-empty {
  color: var(--muted);
  padding: 4px;
}

.style-descriptor-menu {
  position: relative;
  flex: 0 0 auto;
  background: transparent;
}

.style-descriptor-menu > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  min-height: 15px;
  border: 1px solid color-mix(in srgb, var(--bucket-accent, var(--focus)) 34%, #151918);
  cursor: pointer;
  color: color-mix(in srgb, var(--bucket-accent, var(--focus)) 80%, var(--muted));
  line-height: 1;
  padding: 0 3px;
  user-select: none;
}

.style-descriptor-menu > summary::-webkit-details-marker {
  display: none;
}

.style-descriptor-menu > summary::marker {
  content: "";
}

.style-descriptor-menu > summary:hover,
.style-descriptor-menu > summary:focus-visible {
  border-color: var(--bucket-accent, var(--focus));
  color: var(--bucket-accent, var(--focus));
  outline: none;
}

.style-descriptor-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  align-content: start;
  gap: 16px 26px;
  max-height: calc(var(--term-line) * 22);
  overflow: auto;
  border-top: 1px solid #151918;
  padding: 8px 12px;
}

.style-descriptor-menu[open] .style-descriptor-list {
  position: fixed;
  z-index: 30;
  left: 14px;
  right: 14px;
  top: 76px;
  max-height: calc(100vh - 96px);
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  border: 1px solid var(--focus);
  background: #f4f6f0;
  color: #151918;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
}

.style-descriptor-close {
  position: absolute;
  top: 6px;
  right: 8px;
  z-index: 1;
  width: 20px;
  min-width: 20px;
  height: 20px;
  border: 1px solid rgba(21, 25, 24, 0.35);
  border-radius: 0;
  background: transparent;
  color: #151918;
  line-height: 1;
  padding: 0;
}

.style-descriptor-close:hover,
.style-descriptor-close:focus-visible {
  background: #151918;
  color: #f4f6f0;
}

.style-descriptor-nav {
  display: grid;
  align-content: start;
  gap: 1px;
  min-width: 0;
  max-height: calc(100vh - 122px);
  overflow: auto;
}

.style-descriptor-nav-item {
  width: 100%;
  min-height: 22px;
  border: 0;
  border-bottom: 1px solid rgba(21, 25, 24, 0.16);
  border-radius: 0;
  background: transparent;
  color: #343a38;
  font: inherit;
  font-weight: 700;
  text-align: left;
  padding: 2px 8px;
}

.style-descriptor-nav-item:hover,
.style-descriptor-nav-item:focus-visible,
.style-descriptor-nav-item.is-active {
  background: #151918;
  color: #f4f6f0;
}

.style-descriptor-group {
  display: grid;
  align-content: start;
  grid-template-columns: minmax(0, 1fr);
  gap: 3px;
  min-width: 0;
  max-height: calc(100vh - 122px);
  overflow: auto;
}

.style-descriptor-group h3 {
  grid-column: 1 / -1;
  margin: 0 0 4px;
  border-bottom: 1px solid rgba(21, 25, 24, 0.8);
  color: #151918;
  font-size: inherit;
  font-weight: 700;
  line-height: 1.25;
  padding-bottom: 3px;
}

.style-descriptor-option {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  min-height: 20px;
  color: inherit;
  line-height: 1.2;
}

.style-descriptor-option:hover {
  background: rgba(0, 0, 0, 0.08);
}

.style-descriptor-option input {
  margin: 0;
}

.style-descriptor-tag {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.style-descriptor-count {
  display: none;
}

.style-descriptor-empty {
  grid-column: 1 / -1;
  color: var(--muted);
  padding: 2px 4px;
}

.genre-picker {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  min-height: 0;
  border-bottom: 1px solid var(--line);
}

.genre-categories {
  display: flex;
  gap: 2px;
  min-height: 19px;
  overflow-x: auto;
  border-bottom: 1px solid #151918;
  padding: 2px;
}

.genre-category {
  flex: 0 0 auto;
  color: var(--muted);
}

.genre-category.is-selected {
  border-color: var(--focus);
  color: var(--focus);
}

.genre-search {
  width: 100%;
  height: 18px;
  border: 0;
  border-bottom: 1px solid #151918;
  border-radius: 0;
  background: #050707;
  color: var(--focus);
  padding: 0 5px;
}

.genre-list {
  min-height: 0;
  overflow: auto;
}

.genre-row {
  display: grid;
  grid-template-columns: 22px minmax(120px, 22%) minmax(0, 1fr);
  gap: 5px;
  width: 100%;
  min-height: 16px;
  border: 0;
  border-bottom: 1px solid #151918;
  background: transparent;
  text-align: left;
}

.genre-row.is-selected {
  background: #101614;
}

.genre-check {
  color: var(--focus);
  text-align: left;
}

.genre-name {
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.genre-row.is-selected .genre-name {
  color: var(--focus);
  font-weight: 700;
}

.genre-meta {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.artist-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  border-bottom: 1px solid var(--line);
  background: #070909;
}

.artist-panel-title {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 16px;
  border-bottom: 1px solid #151918;
  color: var(--muted);
  padding: 1px 4px;
}

.artist-panel-title .style-source {
  margin-right: auto;
}

.artist-panel-title button.is-selected {
  border-color: var(--focus);
  color: var(--focus);
}

.artist-search {
  width: min(190px, 28vw);
  min-width: 120px;
  height: 15px;
  border: 1px solid #1d2523;
  background: #050707;
  color: var(--ink);
  padding: 0 4px;
}

.artist-search:focus {
  border-color: var(--focus);
  outline: 0;
}

.artist-references {
  display: grid;
  align-content: start;
  gap: 2px;
  min-height: 0;
  overflow: auto;
  padding: 3px;
}

.artist-reference-group {
  display: grid;
  grid-template-columns: minmax(110px, 18%) minmax(0, 1fr);
  gap: 5px;
  min-width: 0;
}

.artist-reference-title {
  overflow: hidden;
  color: var(--focus);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.artist-reference-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 6px;
  min-width: 0;
}

.artist-reference {
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
  white-space: nowrap;
}

.artist-reference.is-selected {
  color: var(--focus);
  font-weight: 700;
}

.artist-reference:hover,
.artist-reference:focus-visible {
  color: var(--accent);
}

.artist-reference::after {
  color: var(--muted);
  content: ",";
}

.artist-reference:last-child::after,
.artist-reference.is-empty::after {
  content: "";
}

.artist-reference.is-empty {
  color: var(--muted);
}

.artist-sheet {
  display: grid;
  grid-template-columns: minmax(150px, 26%) minmax(0, 1fr);
  min-height: 0;
  height: 100%;
}

.artist-sheet-single {
  grid-template-columns: minmax(0, 1fr);
}

.artist-label-rail {
  min-height: 0;
  overflow: auto;
  border-right: 1px solid #151918;
}

.artist-label-row {
  display: block;
  width: 100%;
  min-height: 16px;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid #111716;
  background: transparent;
  color: var(--muted);
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 4px;
}

.artist-label-row.is-selected {
  background: #101614;
  color: var(--focus);
  font-weight: 700;
}

.artist-label-row.is-pending {
  color: #6f7774;
  font-style: italic;
}

.artist-sheet-list {
  min-height: 0;
  overflow: auto;
}

.artist-sheet-header {
  position: sticky;
  top: 0;
  min-height: 16px;
  border-bottom: 1px solid #151918;
  background: #070909;
  color: var(--focus);
  font-weight: 700;
  padding: 1px 4px;
  z-index: 1;
}

.artist-sheet-row {
  display: grid;
  grid-template-columns: 28px minmax(110px, 26%) minmax(0, 1fr) 36px 44px;
  gap: 5px;
  align-items: center;
  min-height: 17px;
  border-bottom: 1px solid #111716;
  padding: 0 4px;
}

.artist-sheet-row.is-selected {
  background: #101614;
}

.artist-sheet-row.is-hidden {
  opacity: 0.65;
}

.artist-sheet-name {
  overflow: hidden;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0;
}

.artist-sheet-row.is-selected .artist-sheet-name {
  color: var(--focus);
  font-weight: 700;
}

.artist-sheet-meta {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.artist-sheet-action {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.artist-sheet-empty {
  color: var(--muted);
  padding: 2px 4px;
}

.artist-web {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.artist-web-header {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 17px;
  border-bottom: 1px solid #151918;
  padding: 1px 4px;
}

.artist-web-root {
  border-color: var(--focus);
  color: var(--focus);
  font-weight: 700;
}

.artist-web-source {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.artist-web-grid {
  display: grid;
  align-content: start;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2px;
  min-height: 0;
  overflow: auto;
  padding: 3px;
}

.artist-web-node {
  min-width: 0;
  border: 1px solid #111716;
  background: #070909;
}

.artist-web-node-top {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 36px;
  gap: 5px;
  align-items: center;
  min-height: 17px;
  padding: 0 3px;
}

.artist-web-evidence {
  overflow: hidden;
  border-top: 1px solid #111716;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 3px 1px;
}

.template-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 44%) minmax(0, 1fr);
  min-height: 0;
  border-bottom: 1px solid var(--line);
  background: #060808;
}

.template-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 16px;
  border-bottom: 1px solid #151918;
  color: var(--muted);
  padding: 1px 4px;
}

.template-panel-title .style-source {
  margin-right: 0;
}

.template-list {
  min-height: 0;
  overflow: auto;
  border-bottom: 1px solid #151918;
}

.template-row {
  display: grid;
  grid-template-columns: 22px minmax(120px, 22%) minmax(0, 1fr);
  gap: 5px;
  width: 100%;
  min-height: 16px;
  border: 0;
  border-bottom: 1px solid #111716;
  background: transparent;
  text-align: left;
}

.template-row.is-selected {
  background: #101614;
}

.template-name {
  overflow: hidden;
  color: var(--ink);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.template-row.is-selected .template-name {
  color: var(--focus);
}

.template-meta {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.template-terms {
  display: grid;
  align-content: start;
  gap: 2px;
  min-height: 0;
  overflow: auto;
  padding: 3px 4px;
}

.template-term-group {
  display: grid;
  grid-template-columns: minmax(78px, 13%) minmax(0, 1fr);
  gap: 5px;
  min-width: 0;
}

.template-term-label {
  color: var(--focus);
  font-weight: 700;
  text-transform: lowercase;
}

.template-term-values {
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.template-empty {
  color: var(--muted);
}

.style-prompt {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  resize: none;
  background: #050707;
  color: var(--ink);
  line-height: var(--term-line);
  padding: 4px 6px;
}

.style-prompt[hidden] {
  display: none;
}

.style-prompt-zone {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  border-bottom: 1px solid var(--line);
  background: #050707;
  cursor: copy;
}

.style-prompt-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 17px;
  border-bottom: 1px solid #151918;
  color: var(--focus);
  font-weight: 700;
  padding: 1px 5px;
  text-transform: lowercase;
}

.style-prompt-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.style-prompt-clear-button {
  width: 18px;
  height: 15px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #ffef72;
  background: #f4511e;
  color: #fff8bd;
  cursor: pointer;
  font-size: 0.68rem;
  line-height: 1;
  padding: 0;
  text-shadow: 0 1px #5d0b00;
}

.style-prompt-route-button {
  width: 16px;
  height: 15px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #ff2b2b;
  background: #240202;
  color: #ff3434;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  padding: 0;
  text-shadow: 0 1px #000;
}

.style-prompt-route-button:hover,
.style-prompt-route-button:focus-visible {
  border-color: #ff6b6b;
  background: #ff2b2b;
  color: #080808;
  outline: none;
}

.style-prompt-drag-button {
  width: 16px;
  height: 15px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #ffffff;
  background: #080808;
  color: #ffffff;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  padding: 0;
}

.style-prompt-drag-button:hover,
.style-prompt-drag-button:focus-visible,
.style-prompt-drag-button.is-selected {
  background: #ffffff;
  color: #080808;
  outline: none;
}

.style-prompt-clear-button:hover,
.style-prompt-clear-button:focus-visible {
  border-color: #fff7a5;
  background: #ff6d24;
  outline: none;
}

.style-prompt-count {
  color: var(--muted);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  text-transform: none;
}

.style-prompt-copy-notice {
  flex: 1 1 auto;
  color: var(--focus);
  font-weight: 400;
  opacity: 0;
  pointer-events: none;
  text-align: right;
  text-transform: none;
}

.style-prompt-copy-notice.is-visible {
  animation: promptCopyFade 1.25s ease-out forwards;
}

.style-prompt-drag-surface {
  overflow: auto;
  text-transform: none;
  user-select: none;
  white-space: pre-wrap;
}

.style-prompt-drag-line {
  min-height: var(--term-line);
}

.style-prompt-drag-label,
.style-prompt-drag-term {
  color: var(--ink);
}

.style-prompt-drag-term {
  cursor: grab;
}

.style-prompt-drag-term:active {
  cursor: grabbing;
}

.style-prompt-drag-term.is-dragging {
  opacity: 0.45;
}

.style-prompt-drag-term.is-drop-target {
  outline: 1px solid #ffffff;
  outline-offset: 1px;
}

@keyframes promptCopyFade {
  0%,
  38% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.style-prompt-count.is-over {
  color: #ff5f5f;
  font-weight: 700;
}

.style-prompt-zone .style-prompt {
  border-bottom: 0;
}

.style-layout-rail {
  display: grid;
  align-content: start;
  gap: 2px;
  border-left: 1px solid #151918;
  padding: 3px 2px;
}

.style-layout-button {
  min-width: 0;
  height: 18px;
  padding: 0;
}

.style-layout-button.is-selected {
  border-color: var(--focus);
  color: var(--focus);
  font-weight: 700;
}

.style-data-shelf {
  min-height: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #060808;
}

.style-data-shelf > summary {
  min-height: 17px;
  cursor: pointer;
  color: var(--muted);
  padding: 1px 4px;
}

.style-data-shelf[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 160px) minmax(0, 160px) minmax(0, 160px) auto;
  overflow: auto;
}

.style-bottom-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 18px;
  border-bottom: 1px solid var(--line);
  background: #060808;
  padding: 1px 4px;
}

.style-bottom-actions button.is-selected {
  border-color: var(--accent);
  background: var(--accent);
  color: #050707;
  font-weight: 700;
}

.style-bottom-actions .style-source {
  margin-right: 0;
}

.style-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  max-height: calc(var(--term-line) * 6);
  overflow: auto;
  padding: 3px;
}

.style-chip {
  color: var(--muted);
}

.style-chip.is-selected {
  border-color: var(--focus);
  background: var(--focus);
  color: #050707;
  font-weight: 700;
}

@media (max-width: 720px) {
  .lyric-line {
    grid-template-columns: 34px minmax(0, 1fr) 104px;
  }

  .meter-panel {
    grid-template-columns: 1fr 1fr;
  }
}
