:root {
  color-scheme: dark;
  --bg: #090d18;
  --panel: #101726;
  --line: #243047;
  --text: #f3f6ff;
  --muted: #8c9bb6;
  --accent: #5483ff;
  --blue: #3168f5;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    13px -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #86a9ff;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #192338;
  color: var(--text);
  padding: 10px 13px;
  transition:
    background 0.15s,
    border-color 0.15s;
}
button:hover {
  background: #243557;
  border-color: #4a6292;
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
  font-weight: 600;
  padding: 12px 18px;
  box-shadow: 0 3px 18px #1456ff20;
}
.primary:hover {
  background: #477aff;
  border-color: #477aff;
}
.quiet {
  background: transparent;
}
.muted,
.fine {
  color: var(--muted);
  line-height: 1.65;
}
.fine {
  font-size: 11px;
}
.topbar {
  height: 76px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 25px;
  gap: 36px;
  background: #0e1422;
}
.brand {
  text-decoration: none;
  color: #78a0ff;
  display: flex;
  gap: 11px;
  align-items: center;
  flex-shrink: 0;
}
.brand svg {
  width: 34px;
  height: 34px;
}
.brand > span {
  font-size: 19px;
  line-height: 1;
  letter-spacing: 3px;
  font-weight: 800;
  color: #fff;
}
.brand small {
  display: block;
  color: #788aa8;
  font: 8px var(--mono);
  letter-spacing: 2.2px;
  margin-top: 7px;
}
.studio-location {
  color: #d1dcf2;
  font-size: 11px;
}
.studio-location span {
  color: #7586a4;
}
.studio-location b {
  font-weight: 400;
  margin: 0 13px;
  color: #3f4d69;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}
.session {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}
.session i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #65728b;
}
.session i.live {
  background: #5cd3bf;
  box-shadow: 0 0 0 4px #5cd3bf16;
}
.header-actions .quiet {
  border: 0;
  font-size: 12px;
}
.app-shell {
  display: flex;
}
.rail {
  width: 66px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 14px;
  padding-top: 27px;
  border-right: 1px solid var(--line);
  background: #0c1220;
  position: relative;
}
.rail-button {
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  padding: 10px;
  color: #7d8dab;
}
.rail-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}
.rail-button.selected {
  background: #1b2e58;
  color: #80a5ff;
  box-shadow: inset 2px 0 #5688ff;
}
.rail-bottom {
  font: 9px var(--mono);
  color: #566681;
  writing-mode: vertical-rl;
  letter-spacing: 2px;
  margin-top: 55px;
}
.app-shell main {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  max-width: 1900px;
  margin: 0 auto;
}
.workspace {
  padding: 29px 28px 32px;
  min-width: 0;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 23px;
}
.eyebrow {
  font: 9px var(--mono);
  letter-spacing: 1.6px;
  color: #8498bc;
  margin: 0 0 11px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.blue-line {
  display: inline-block;
  width: 14px;
  height: 3px;
  background: #5483ff;
}
h1 {
  font-size: 27px;
  font-weight: 650;
  letter-spacing: -1px;
  margin: 0;
}
h1 span {
  color: #7d91b5;
  font-weight: 400;
}
h2 {
  font-size: 13px;
  font-weight: 600;
  margin: 0;
}
.format-badge {
  font: 10px var(--mono);
  color: #a9c4ff;
  border: 1px solid #314a76;
  border-radius: 4px;
  padding: 7px 9px;
}
.format-badge span {
  color: #7588ab;
  margin-left: 6px;
}
aside {
  border-left: 1px solid var(--line);
  background: #101726;
  display: flex;
  flex-direction: column;
}
.inspector-heading {
  padding: 29px 22px 21px;
}
.inspector-heading h2 {
  font-size: 20px;
  letter-spacing: -0.4px;
}
.inspector-tabs {
  display: flex;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0 13px;
}
.inspector-tabs button {
  flex: 1;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 15px 7px;
  color: #8092b0;
  font-size: 11px;
}
.inspector-tabs button[aria-selected="true"] {
  color: #aac5ff;
  box-shadow: inset 0 -2px #5688ff;
}
.inspector-panel {
  padding: 24px 21px;
}
.inspector-panel[hidden] {
  display: none;
}
.panel-intro {
  margin-bottom: 24px;
}
.section-number {
  font: 9px var(--mono);
  color: #6e8db9;
  letter-spacing: 1px;
}
.panel-intro p {
  font-size: 12px;
  line-height: 1.6;
  color: #a0aec6;
  margin: 9px 0 0;
}
label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  margin: 20px 0 9px;
  color: #bfcee6;
}
select,
input,
textarea {
  border: 1px solid #2b3954;
  border-radius: 5px;
  background: #0b1221;
  color: var(--text);
  padding: 11px;
  width: 100%;
}
select {
  font-size: 11px;
  cursor: pointer;
}
textarea {
  resize: vertical;
  min-height: 148px;
  line-height: 1.65;
  font-size: 12px;
}
input::placeholder,
textarea::placeholder {
  color: #677b9c;
}
.layout-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 11px;
}
.layout-card {
  padding: 10px 7px;
  background: #111c30;
  border-color: #293853;
  color: #8394af;
}
.layout-card.chosen {
  background: #172b51;
  border-color: #5688ff;
  color: #b9ceff;
}
.layout-card small {
  font-size: 9px;
}
.layout-icon {
  display: grid;
  gap: 3px;
  height: 25px;
  margin-bottom: 8px;
  grid-template-columns: repeat(3, 1fr);
}
.layout-icon i {
  background: currentColor;
  opacity: 0.5;
  border-radius: 1px;
}
.speaker-icon {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: 2fr 1fr;
}
.speaker-icon i:first-child {
  grid-column: span 2;
}
.screen-icon {
  grid-template-columns: 3fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.screen-icon i:first-child {
  grid-row: span 2;
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 25px 0;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.section-heading h2 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-heading > span {
  font-size: 9px;
  color: #7e90af;
}
.stage-shell {
  border: 1px solid #2b3d5b;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 14px 40px #0003;
}
.stage-topline {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 15px;
  background: #121e33;
  color: #94a8cc;
  font: 9px var(--mono);
  letter-spacing: 0.7px;
}
.stage-topline > span:first-child {
  color: #bed2f9;
  display: flex;
  align-items: center;
  gap: 7px;
}
.stage-topline i {
  width: 5px;
  height: 5px;
  background: #5483ff;
  border-radius: 50%;
}
.stage-mode {
  margin-left: auto;
  color: #6e88af;
}
.preview-wrap {
  position: relative;
  overflow: hidden;
  background: #080e1c;
  display: flex;
  justify-content: center;
}
canvas {
  display: block;
  width: 100%;
  height: auto;
  max-height: 620px;
  object-fit: contain;
}
.transport {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border-top: 1px solid #243552;
  background: #111b2d;
}
.device-controls,
.record-controls {
  display: flex;
  gap: 6px;
  align-items: center;
}
.device-controls button {
  font-size: 10px;
  background: #17243b;
  padding: 9px 11px;
}
.record {
  background: #3168f5;
  color: white;
  border-color: #3168f5;
  font-size: 11px;
  font-weight: 600;
}
.record:hover {
  background: #477aff;
}
.record.busy {
  background: #c34255;
  border-color: #c34255;
}
.record-controls span {
  font: 9px var(--mono);
  color: #8ba0c1;
  max-width: 160px;
}
.record-controls {
  gap: 12px;
}
#notice {
  font-size: 11px;
  line-height: 1.6;
  min-height: 29px;
  padding: 8px 2px 0;
  color: #9ebdff;
}
#notice.error {
  color: #ff9faf;
}
.lower-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 16px;
  margin-top: 12px;
}
.conversation,
.episode {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 17px;
  background: #0e1626;
  min-width: 0;
}
#transcript {
  height: 160px;
  overflow: auto;
  padding: 10px 0;
  font-size: 12px;
  line-height: 1.6;
}
#transcript p {
  margin: 8px 0;
}
#transcript b {
  color: #98b8ff;
  display: block;
  font-size: 9px;
  letter-spacing: 0.6px;
}
.empty {
  color: #8195b7;
  padding: 20px 0;
  text-align: center;
}
.empty-wave {
  font: 18px var(--mono);
  color: #446aa9;
  letter-spacing: 5px;
}
.empty p {
  color: #9fb0cc;
}
.empty small {
  font-size: 10px;
  color: #637b9f;
}
#chatForm {
  display: flex;
  gap: 6px;
}
#chatForm select {
  width: 64px;
  padding: 8px;
}
#chatForm input {
  min-width: 0;
  font-size: 11px;
}
#send {
  font-size: 16px;
  background: #254eac;
  border-color: #3867c9;
  color: white;
  padding: 5px 12px;
}
.episode textarea {
  border: 0;
  background: transparent;
  padding: 16px 0 0;
  min-height: 153px;
}
.notes-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 9px;
  gap: 12px;
}
.notes-footer button {
  font-size: 10px;
  padding: 7px 9px;
}
.participant {
  margin: 0 0 23px;
  padding: 14px;
  border: 1px solid #2a3954;
  border-radius: 6px;
  background: #131e32;
}
.person-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.person-head strong {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.person-head strong::before {
  content: attr(data-initial);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #25467c;
  color: #bcd4ff;
  font: 10px var(--mono);
}
.person-head small {
  color: var(--muted);
  font: 9px var(--mono);
}
.keying {
  display: flex;
  gap: 7px;
  align-items: center;
  margin: 12px 0 0;
  font-size: 10px;
  color: #8da2c4;
}
.keying input {
  width: auto;
  accent-color: var(--accent);
}
.upload {
  border: 1px dashed #3a527b;
  border-radius: 6px;
  text-align: center;
  padding: 19px 7px;
  cursor: pointer;
  color: #a8c4ff;
  background: linear-gradient(135deg, #18294a55, #14203600);
}
.upload > span {
  display: block;
  font: 22px var(--mono);
  color: #608eff;
  margin-bottom: 8px;
}
.upload strong {
  font-size: 11px;
  font-weight: 500;
}
.upload small {
  display: block;
  font-size: 9px;
  color: #728bad;
  margin-top: 7px;
}
.inspector-panel > .quiet {
  width: 100%;
  font-size: 11px;
  margin-top: 10px;
}
.storage-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0;
  border: 1px solid #293a57;
  padding: 12px;
  border-radius: 6px;
}
.storage-symbol {
  color: #648eff;
  font-size: 22px;
}
.storage-card p {
  margin: 0;
}
.inspector-footer {
  margin: auto 21px 24px;
  padding-top: 27px;
  display: flex;
  align-items: center;
  gap: 8px;
  font: 8px var(--mono);
  letter-spacing: 0.7px;
  color: #576c8d;
}
details {
  color: #8497b6;
  font-size: 10px;
}
summary {
  cursor: pointer;
}
pre {
  white-space: pre-wrap;
  font: 10px/1.6 var(--mono);
  max-height: 200px;
  overflow: auto;
  max-width: 300px;
}
dialog {
  background: #101b30;
  color: var(--text);
  border: 1px solid #3a527b;
  border-radius: 10px;
  padding: 30px;
  max-width: 780px;
  width: 90vw;
  box-shadow: 0 30px 100px #0009;
}
dialog::backdrop {
  background: #040916ce;
  backdrop-filter: blur(10px);
}
#loginDialog {
  max-width: 430px;
  padding: 35px;
}
.login-mark {
  font-size: 32px;
  width: 58px;
  height: 58px;
  background: #2359db;
  color: white;
  text-align: center;
  line-height: 58px;
  border-radius: 9px;
  margin-bottom: 30px;
}
#loginDialog h2 {
  font-size: 32px;
  letter-spacing: -1px;
}
#loginDialog button {
  width: 100%;
  margin-top: 12px;
}
#loginError {
  color: #ff9faf;
}
#recordingList article {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
a {
  color: #8eb2ff;
}
#recordingList a {
  display: inline-block;
  margin: 12px 15px 0 0;
  font-size: 12px;
}
.tag {
  font: 9px var(--mono);
  background: #233a62;
  color: #b6cdff;
  padding: 4px 7px;
  border-radius: 3px;
  margin-left: 10px;
}
@media (min-width: 1500px) {
  .workspace {
    padding: 34px 42px;
  }
  .app-shell main {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
  .inspector-panel {
    padding: 25px;
  }
  h1 {
    font-size: 32px;
  }
}
@media (max-width: 1150px) {
  .studio-location {
    display: none;
  }
  .workspace {
    padding: 24px 18px;
  }
  .app-shell main {
    grid-template-columns: minmax(0, 1fr) 262px;
  }
  .inspector-panel {
    padding: 21px 17px;
  }
  .lower-grid {
    grid-template-columns: 1fr;
  }
  .record-controls span {
    display: none;
  }
  .rail {
    width: 54px;
  }
  .transport {
    padding: 11px;
    gap: 7px;
  }
  h1 {
    font-size: 23px;
  }
  .format-badge span {
    display: none;
  }
  .device-controls button {
    padding: 9px;
  }
  .stage-mode {
    font-size: 8px;
  }
}
@media (max-width: 800px) {
  .topbar {
    padding: 0 16px;
    height: 69px;
    gap: 10px;
  }
  .brand > span {
    font-size: 16px;
  }
  .brand svg {
    width: 27px;
  }
  .session {
    display: none;
  }
  .header-actions {
    gap: 6px;
  }
  .header-actions button {
    padding: 9px 10px;
    font-size: 10px;
  }
  .rail {
    display: none;
  }
  .app-shell main {
    display: block;
  }
  .workspace {
    padding: 24px 14px;
  }
  aside {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .inspector-panel {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
  }
  .inspector-footer {
    margin-top: 12px;
  }
  .lower-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stage-mode {
    display: none;
  }
  .transport {
    flex-wrap: wrap;
  }
  .device-controls button {
    font-size: 9px;
  }
  .record {
    font-size: 10px;
  }
  .heading {
    margin-bottom: 19px;
  }
  h1 {
    font-size: 24px;
  }
}
@media (max-width: 560px) {
  .lower-grid {
    grid-template-columns: 1fr;
  }
  .format-badge {
    display: none;
  }
  h1 {
    font-size: 23px;
  }
  .brand small {
    font-size: 7px;
  }
  .header-actions .quiet {
    font-size: 0;
  }
  .header-actions .quiet::after {
    content: "Library";
    font-size: 11px;
  }
  .device-controls {
    gap: 4px;
  }
  .transport {
    padding: 9px;
  }
  .record {
    padding: 9px;
  }
  #transcript {
    height: 145px;
  }
}
