:root {
  color-scheme: dark;
  --bg: #141516;
  --card: #1c1d20;
  --line: #343638;
  --accent: #f8af72;
  --text: #f1efe9;
  --muted: #a4a5a5;
}
.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
main.auth-card {
  width: min(100%, 460px);
  margin: 0;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}
.auth-card .eyebrow { margin-top: 32px; }
.auth-card h1 { font-size: clamp(26px, 6vw, 34px); line-height: 1.2; }
.auth-card form { display: grid; gap: 12px; margin-top: 24px; }
.auth-card input { width: 100%; min-width: 0; }
#auth-notice { color: var(--accent); margin: 0; }
.account-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 24px; }
.account-actions a { color: var(--accent); }
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    15px/1.5 "Segoe UI",
    Arial,
    sans-serif;
}
aside {
  position: fixed;
  inset: 0 auto 0 0;
  width: 200px;
  background: #191a1c;
  border-right: 1px solid var(--line);
  padding: 30px 19px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 36px;
  font-weight: 750;
  letter-spacing: -2.8px;
  color: var(--text);
  text-decoration: none;
}
.brand span {
  font-size: 13px;
  align-self: flex-start;
  margin: 8px 0 0 -6px;
}
.logomark {
  background: var(--accent);
  color: #211c19;
  border-radius: 10px;
  width: 35px;
  height: 35px;
  display: grid;
  place-content: center;
  font: 42px/1 Georgia;
}
.eyebrow,
aside small,
.ticks {
  font:
    600 10px/1.5 Consolas,
    monospace;
  letter-spacing: 1.5px;
  color: var(--muted);
}
aside small {
  margin: 65px 0 15px;
}
nav a {
  display: block;
  text-decoration: none;
  color: var(--muted);
  padding: 11px 12px;
  margin-bottom: 5px;
  border-radius: 6px;
}
nav a.current {
  background: #332c27;
  color: #ffbe89;
}
nav span {
  margin-left: 8px;
}
.sidefoot {
  margin-top: auto;
  color: var(--muted);
  font-size: 13px;
}
.eyebrow i,
.sidefoot i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 7px;
}
main {
  margin-left: 200px;
  padding: 0 clamp(20px, 4vw, 70px) 50px;
  max-width: 1600px;
}
header {
  height: 72px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}
b {
  color: var(--text);
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
  background: #292a2c;
  border: 1px solid #444649;
  color: var(--text);
  padding: 9px 14px;
  border-radius: 6px;
  font-weight: 600;
}
button:hover {
  border-color: var(--accent);
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 0 15px;
}
.heading h1 {
  font-size: clamp(34px, 4.5vw, 70px);
  line-height: 1.05;
  letter-spacing: -0.065em;
  margin: 6px 0 18px;
}
.heading h1 span {
  color: var(--accent);
}
.dial {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, #424041 0 1px, #232426 2px 4px);
  display: grid;
  place-items: center;
  transform: rotate(-20deg);
}
.dial b {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  border: 12px solid #dc9460;
}
.tabs {
  display: flex;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
  overflow: auto;
}
.tabs a {
  padding: 12px 1px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  font-weight: 600;
  border-bottom: 2px solid transparent;
}
.tabs a.current {
  color: var(--accent);
  border-color: var(--accent);
}
.layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 18px;
}
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: clamp(18px, 2vw, 30px);
  margin: 0 0 16px;
  min-width: 0;
}
.panel h2 {
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: -1px;
  margin: 6px 0 22px;
}
.drop {
  border: 1px dashed #795a45;
  background: #282422;
  border-radius: 8px;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 156px;
  cursor: pointer;
  text-align: center;
}
.drop:hover,
.drop.hover {
  background: #312821;
}
.drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.drop:focus-within {
  outline: 2px solid var(--accent);
}
.up {
  font-size: 24px;
  color: var(--accent);
}
.drop span:last-child,
.hint {
  font-size: 13px;
  color: var(--muted);
}
label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 12px 0 6px;
}
input,
textarea,
select {
  max-width: 100%;
  border: 1px solid #414345;
  color: var(--text);
  background: #171819;
  padding: 9px 11px;
  border-radius: 5px;
}
input[type="url"],
textarea {
  width: 100%;
}
input[type="range"],
input[type="checkbox"] {
  accent-color: var(--accent);
}
.row,
.transport,
.region,
.action {
  display: flex;
  align-items: center;
  gap: 8px;
}
.row input {
  min-width: 0;
}
.monitor {
  background-color: #171819;
  background-image:
    linear-gradient(#ffffff08 1px, transparent 1px),
    linear-gradient(90deg, #ffffff08 1px, transparent 1px);
  background-size: 20px 20px;
  border: 1px solid var(--line);
  border-radius: 7px;
  margin: 20px 0 12px;
  padding: 12px;
}
.monitor canvas {
  width: 100%;
  height: 103px;
  display: block;
}
.ticks,
.transport,
.region {
  display: flex;
  justify-content: space-between;
}
.region {
  margin-top: 16px;
}
.region input {
  width: 88px;
}
output {
  font:
    22px Consolas,
    monospace;
}
.action {
  justify-content: flex-end;
}
.primary {
  background: var(--accent);
  color: #231c17;
  border: 0;
  padding: 12px 20px;
}
.hint {
  margin-bottom: 12px;
}
#notice:not(:empty) {
  padding: 10px 14px;
  background: #302920;
  border-radius: 6px;
  margin-bottom: 10px;
}
iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
  margin-top: 12px;
}
.take {
  border-top: 1px solid var(--line);
  padding: 12px 0;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.take audio,
audio[controls] {
  max-width: 100%;
}
a {
  color: var(--accent);
}
[hidden] {
  display: none !important;
}
@media (max-width: 950px) {
  aside {
    width: 150px;
  }
  main {
    margin-left: 150px;
  }
  .layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 650px) {
  aside {
    position: static;
    width: auto;
    padding: 10px 18px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
  }
  aside small,
  .sidefoot {
    display: none;
  }
  nav {
    display: flex;
  }
  nav a {
    padding: 7px;
  }
  .brand {
    font-size: 29px;
  }
  main {
    margin: 0;
    padding: 0 16px 30px;
  }
  .tabs {
    gap: 16px;
    font-size: 13px;
  }
  .dial {
    width: 55px;
    height: 55px;
  }
  header {
    height: 52px;
  }
  .heading {
    padding-top: 20px;
  }
}

.recipe-head,
.recipe-genre-title,
.recipe-grid {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.recipe-head {
  justify-content: space-between;
  margin-bottom: 18px;
}
.recipe-head h2 {
  margin: 0;
}
.recipe-genre {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.recipe-genre input[type="range"] {
  width: min(340px, 100%);
}
.recipe-grid {
  padding: 14px 0 24px;
}
.recipe-grid label {
  flex: 1;
}
.recipe-grid input,
.recipe-grid select,
#recipe label select,
#recipe label textarea,
#recipe label input[type="range"] {
  display: block;
  margin-top: 6px;
}
#recipe h2 {
  margin-top: 18px;
}
summary {
  cursor: pointer;
  font-weight: 600;
}
#recipe details {
  margin-top: 22px;
}
#recipe output {
  color: var(--accent);
  font-size: 15px;
}
.recipe-check {
  display: flex;
  align-items: center;
  gap: 7px;
}
#exportsPanel button {
  margin: 4px;
}
