/* Falcon: a warm editorial workspace around a forest-green production desk. */
:root {
  color-scheme: light;
  --bg: #ece8df;
  --panel: #fffdf7;
  --surface: #f6f2e9;
  --field: #fffdf8;
  --line: #d5d3c8;
  --text: #22372d;
  --muted: #666c60;
  --accent: #876332;
  --action: #234b3a;
  --strong: #173629;
  --soft: #e4e8dc;
  --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 var(--accent);
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  padding: 10px 13px;
  transition:
    background 0.15s,
    border-color 0.15s;
}
button:hover {
  background: var(--soft);
  border-color: var(--accent);
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.primary {
  background: var(--action);
  border-color: var(--action);
  color: white;
  font-weight: 600;
  padding: 12px 18px;
  box-shadow: 0 3px 18px #25433212;
}
.primary:hover {
  background: var(--strong);
  border-color: var(--strong);
}
.quiet {
  background: transparent;
}
.muted,
.fine {
  color: var(--muted);
  line-height: 1.65;
}
.fine {
  font-size: 11px;
}
.topbar {
  min-height: 76px;
  height: auto;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 25px;
  gap: 36px;
  background: var(--panel);
}
.brand {
  text-decoration: none;
  color: var(--accent);
  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: var(--text);
}
.brand small {
  display: block;
  color: var(--muted);
  font: 8px var(--mono);
  letter-spacing: 2.2px;
  margin-top: 7px;
}
.studio-location {
  color: var(--text);
  font-size: 11px;
}
.studio-location span {
  color: var(--muted);
}
.studio-location b {
  font-weight: 400;
  margin: 0 13px;
  color: var(--muted);
}
.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: var(--muted);
}
.session i.live {
  background: #a5c5aa;
  box-shadow: 0 0 0 4px #a5c5aa26;
}
.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: var(--strong);
  position: relative;
}
.rail-button {
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  padding: 10px;
  color: var(--muted);
}
.rail-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}
.rail-button.selected {
  background: var(--soft);
  color: var(--accent);
  box-shadow: inset 2px 0 var(--accent);
}
.rail-bottom {
  font: 9px var(--mono);
  color: var(--muted);
  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: var(--muted);
  margin: 0 0 11px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.accent-line {
  display: inline-block;
  width: 14px;
  height: 3px;
  background: var(--accent);
}
h1 {
  font:
    400 40px/1.08 Georgia,
    "Times New Roman",
    serif;
  letter-spacing: -1.4px;
  margin: 0;
}
h1 span {
  display: block;
  color: var(--accent);
  font-weight: 400;
  font-style: italic;
}
h2 {
  font-size: 13px;
  font-weight: 600;
  margin: 0;
}
.format-badge {
  font: 10px var(--mono);
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 7px 9px;
}
.format-badge span {
  color: var(--muted);
  margin-left: 6px;
}
aside {
  --panel: #203b30;
  --surface: #284438;
  --field: #193429;
  --line: #466052;
  --text: #f4f0e6;
  --muted: #bcc8b9;
  --accent: #dbbb7c;
  --soft: #3d5844;
  color-scheme: dark;
  color: var(--text);
  border-left: 1px solid var(--line);
  background: var(--panel);
  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: var(--muted);
  font-size: 11px;
}
.inspector-tabs button[aria-selected="true"] {
  color: var(--accent);
  box-shadow: inset 0 -2px var(--accent);
}
.inspector-panel {
  padding: 24px 21px;
}
.inspector-panel[hidden] {
  display: none;
}
.panel-intro {
  margin-bottom: 24px;
}
.section-number {
  font: 9px var(--mono);
  color: var(--muted);
  letter-spacing: 1px;
}
.panel-intro p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  margin: 9px 0 0;
}
label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  margin: 20px 0 9px;
  color: var(--text);
}
select,
input,
textarea {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--field);
  color: var(--text);
  padding: 11px;
  width: 100%;
}
select {
  font-size: 12px;
  cursor: pointer;
}
textarea {
  resize: vertical;
  min-height: 148px;
  line-height: 1.65;
  font-size: 12px;
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
}
.layout-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 11px;
}
.layout-card {
  padding: 10px 7px;
  background: var(--surface);
  border-color: var(--line);
  color: var(--muted);
}
.layout-card.chosen {
  background: var(--soft);
  border-color: var(--accent);
  color: var(--text);
}
.layout-card small {
  font-size: 11px;
}
.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: 11px;
  color: var(--muted);
}
.stage-shell {
  border: 1px solid var(--line);
  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: var(--strong);
  color: var(--muted);
  font: 9px var(--mono);
  letter-spacing: 0.7px;
}
.stage-topline > span:first-child {
  color: #f4ecda;
  display: flex;
  align-items: center;
  gap: 7px;
}
.stage-topline i {
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}
.stage-mode {
  margin-left: auto;
  color: var(--muted);
}
.preview-wrap {
  position: relative;
  overflow: hidden;
  background: var(--strong);
  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 var(--line);
  background: var(--strong);
}
.device-controls,
.record-controls {
  display: flex;
  gap: 6px;
  align-items: center;
}
.device-controls button {
  font-size: 12px;
  background: var(--surface);
  padding: 9px 11px;
}
.record {
  background: var(--action);
  color: white;
  border-color: var(--action);
  font-size: 11px;
  font-weight: 600;
}
.record:hover {
  background: var(--strong);
}
.record.busy {
  background: #9d3c30;
  border-color: #9d3c30;
}
.record-controls span {
  font: 9px var(--mono);
  color: var(--muted);
  max-width: 160px;
}
.record-controls {
  gap: 12px;
}
#notice {
  font-size: 11px;
  line-height: 1.6;
  min-height: 29px;
  padding: 8px 2px 0;
  color: var(--muted);
}
#notice.error {
  color: #9d3c30;
}
.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: var(--panel);
  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: var(--accent);
  display: block;
  font-size: 11px;
  letter-spacing: 0.6px;
}
.empty {
  color: var(--muted);
  padding: 20px 0;
  text-align: center;
}
.empty-wave {
  font: 18px var(--mono);
  color: var(--accent);
  letter-spacing: 5px;
}
.empty p {
  color: var(--muted);
}
.empty small {
  font-size: 12px;
  color: var(--muted);
}
#chatForm {
  display: flex;
  gap: 6px;
}
#chatForm select {
  width: 64px;
  padding: 8px;
}
#chatForm input {
  min-width: 0;
  font-size: 11px;
}
#send {
  font-size: 16px;
  background: var(--action);
  border-color: var(--action);
  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: 12px;
  padding: 7px 9px;
}
.participant {
  margin: 0 0 23px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}
.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: var(--soft);
  color: var(--text);
  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: 12px;
  color: var(--muted);
}
.keying input {
  width: auto;
  accent-color: var(--accent);
}
.upload {
  border: 1px dashed var(--accent);
  border-radius: 6px;
  text-align: center;
  padding: 19px 7px;
  cursor: pointer;
  color: var(--accent);
  background: linear-gradient(135deg, #b9aa8833, #b9aa8800);
}
.upload > span {
  display: block;
  font: 22px var(--mono);
  color: var(--accent);
  margin-bottom: 8px;
}
.upload strong {
  font-size: 11px;
  font-weight: 500;
}
.upload small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  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 var(--line);
  padding: 12px;
  border-radius: 6px;
}
.storage-symbol {
  color: var(--accent);
  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: var(--muted);
}
details {
  color: var(--muted);
  font-size: 12px;
}
summary {
  cursor: pointer;
}
pre {
  white-space: pre-wrap;
  font: 10px/1.6 var(--mono);
  max-height: 200px;
  overflow: auto;
  max-width: 300px;
}
dialog {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--accent);
  border-radius: 10px;
  padding: 30px;
  max-width: 780px;
  width: 90vw;
  box-shadow: 0 30px 100px #0009;
}
dialog::backdrop {
  background: #102218b3;
  backdrop-filter: blur(10px);
}
#loginDialog {
  max-width: 430px;
  padding: 35px;
}
.login-mark {
  font-size: 32px;
  width: 58px;
  height: 58px;
  background: var(--action);
  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: #9d3c30;
}
#recordingList article {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
a {
  color: var(--accent);
}
#recordingList a {
  display: inline-block;
  margin: 12px 15px 0 0;
  font-size: 12px;
}
.tag {
  font: 9px var(--mono);
  background: var(--soft);
  color: var(--text);
  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 {
    max-width: 130px;
  }
  .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;
    min-height: 76px;
    height: auto;
    gap: 10px;
  }
  .brand > span {
    font-size: 16px;
  }
  .brand svg {
    width: 27px;
  }
  .session {
    font-size: 12px;
  }
  .header-actions {
    gap: 6px;
  }
  .header-actions button {
    padding: 9px 10px;
    font-size: 12px;
  }
  .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: 11px;
  }
  .record {
    font-size: 12px;
  }
  .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 {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .header-actions .session {
    order: 3;
    width: 100%;
    justify-content: flex-end;
  }
  .topbar {
    padding: 12px;
  }
  .header-actions .quiet {
    font-size: 11px;
  }
  .device-controls {
    gap: 4px;
  }
  .transport {
    padding: 9px;
  }
  .record {
    padding: 9px;
  }
  #transcript {
    height: 145px;
  }
}

.rail {
  color: #d9decf;
  border-color: #365141;
}
.rail-button {
  color: #acbaaa;
}
.rail-button.selected {
  background: #355341;
  color: #e4c58d;
  box-shadow: inset 2px 0 #e4c58d;
}
.rail-bottom {
  color: #a1ad99;
}
.brand {
  color: var(--accent);
}
.brand > span {
  font-size: 18px;
  letter-spacing: 3.6px;
}
.brand small {
  color: var(--muted);
  font-size: 9px;
}
.topbar {
  padding-top: 14px;
  padding-bottom: 14px;
}
.workspace {
  padding-top: 35px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
}
.inspector-heading h2 {
  font:
    400 28px/1.2 Georgia,
    serif;
}
.inspector-tabs button {
  font-size: 12px;
}
.inspector-panel label,
.keying {
  font-size: 12px;
}
.stage-shell {
  border: 1px solid #32503e;
  border-radius: 4px;
  box-shadow: 0 16px 34px #263a241a;
}
.stage-topline,
.transport {
  --text: #f4f0e6;
  --muted: #bdc8b7;
  --line: #466052;
  --surface: #294535;
  color: var(--text);
  background: #1d382b;
}
.stage-topline {
  font-size: 10px;
}
.stage-topline i {
  background: #ddbd7e;
}
.stage-mode {
  color: #bcc8b9;
}
.transport {
  flex-wrap: wrap;
  padding: 14px;
}
.device-controls button {
  font-size: 11px;
  border-color: #4b6454;
}
.record {
  background: #f1e6ce;
  color: #273e30;
  border-color: #f1e6ce;
}
.record:hover {
  background: #dbc59d;
  color: #173629;
}
.record.busy {
  background: #a53e31;
  color: #fff8ed;
  border-color: #a53e31;
}
.record-controls {
  flex-wrap: wrap;
}
.record-controls span {
  font-size: 10px;
}
#notice {
  color: #4d624e;
  font-size: 12px;
  min-height: 34px;
}
#notice.error,
#loginError {
  color: #9d3c30;
}
.conversation,
.episode {
  border-radius: 3px;
  padding: 20px;
}
.section-heading h2 {
  font-size: 14px;
}
.section-heading > span {
  font-size: 10px;
}
#transcript {
  height: 190px;
  font-size: 13px;
}
#transcript b {
  color: #765829;
  font-size: 10px;
}
.episode textarea {
  font-size: 13px;
}
.fine {
  font-size: 12px;
}
.inspector-footer {
  font-size: 9px;
}
.participant {
  border-radius: 3px;
}
.person-head small {
  font-size: 10px;
}
.upload {
  background: #38533c66;
}
.storage-symbol {
  color: var(--accent);
}
summary {
  line-height: 1.6;
}
dialog {
  background: var(--panel);
  border-color: var(--line);
  border-radius: 6px;
}
#loginDialog h2 {
  font:
    400 35px/1.12 Georgia,
    serif;
  letter-spacing: -1px;
}
#recordingsDialog {
  max-width: 860px;
  max-height: 88vh;
  overflow: auto;
}
#recordingsDialog h2 {
  font:
    400 30px Georgia,
    serif;
}
#recordingList article {
  padding: 24px 0;
}
.episode-outputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0;
}
#recordingList .episode-output {
  margin: 0;
  padding: 12px;
  display: block;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 3px;
  text-decoration: none;
  font-size: 13px;
}
.episode-output span {
  display: block;
  color: var(--muted);
  margin-top: 6px;
  font: 11px var(--mono);
}
.episode-output:hover {
  border-color: var(--accent);
}
.coverage-warning {
  color: #9d3c30;
  font-size: 12px;
  line-height: 1.5;
}
.tag {
  font-size: 10px;
  background: var(--soft);
  color: #31513c;
}
.tag[data-state="failed"],
.tag[data-state="degraded"] {
  background: #f4dfd6;
  color: #8b3326;
}
@media (min-width: 1500px) {
  h1 {
    font-size: 46px;
  }
}
@media (max-width: 1150px) {
  h1 {
    font-size: 33px;
  }
}
@media (max-width: 560px) {
  h1 {
    font-size: 31px;
  }
  .workspace {
    padding: 26px 12px;
  }
  .episode-outputs {
    grid-template-columns: 1fr;
  }
  .brand > span {
    font-size: 15px;
    letter-spacing: 2px;
  }
  .brand svg {
    width: 23px;
  }
  .header-actions {
    gap: 5px;
  }
  .record-controls {
    width: 100%;
    justify-content: space-between;
  }
  .record-controls span {
    max-width: 60%;
    display: block;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.rail-button:hover {
  background: #355341;
  color: #e4c58d;
}
.episode-output .download-affordance {
  color: var(--action);
  font:
    600 11px -apple-system,
    sans-serif;
  margin-top: 10px;
}
