:root {
  --bg: #101112;
  --panel: #191b1d;
  --line: #303235;
  --text: #ece9e2;
  --muted: #a0a19e;
  --accent: #db995e;
  --green: #91c4a1;
  --red: #e69088;
  font-family:
    Inter,
    Segoe UI,
    sans-serif;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 14px;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
button,
.button {
  border: 1px solid var(--line);
  background: #24272a;
  color: var(--text);
  padding: 10px 16px;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  gap: 22px;
  align-items: center;
  justify-content: center;
}
button:hover,
.button:hover {
  background: #333638;
  border-color: #62615b;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #20170f;
  font-weight: 600;
}
.primary:hover {
  background: #edb17c;
}
input,
select {
  background: #101214;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 6px;
  padding: 10px 12px;
  min-width: 0;
}
input:focus,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0 5px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(28px, 3.1vw, 46px);
  line-height: 1.13;
  letter-spacing: -1.8px;
  font-weight: 520;
  max-width: 660px;
  margin-bottom: 18px;
}
h1 span {
  color: var(--accent);
}
h2 {
  font-size: 18px;
  font-weight: 550;
  letter-spacing: -0.3px;
  margin: 0;
}
h3 {
  font-size: 16px;
  font-weight: 550;
}
p {
  color: var(--muted);
}
small {
  font-size: 10px;
  letter-spacing: 1px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 235px;
  border-right: 1px solid var(--line);
  padding: 35px 21px;
  display: flex;
  flex-direction: column;
  background: #141617;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 1.4px;
  line-height: 1.5;
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 1.5px;
  color: var(--muted);
  font-weight: 400;
}
.eye {
  color: var(--accent);
  font-size: 39px;
  line-height: 1;
}
.nav-label {
  font-size: 9px;
  letter-spacing: 2px;
  color: #777c7d;
  margin: 64px 12px 13px;
}
.nav {
  padding: 12px;
  display: flex;
  gap: 14px;
  color: var(--muted);
  border-radius: 6px;
  margin: 3px 0;
}
.nav.active {
  background: #252321;
  color: #e6bc96;
}
.sidebar-bottom {
  margin-top: auto;
  font-size: 10px;
  letter-spacing: 1px;
  color: #acafa9;
}
.sidebar-bottom small {
  display: block;
  margin-top: 10px;
  letter-spacing: 0;
  color: #707775;
  font-size: 11px;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 7px;
}
main {
  margin-left: 235px;
  padding: 0 42px;
  max-width: 1700px;
}
header {
  height: 95px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.crumb {
  font-size: 10px;
  letter-spacing: 1.4px;
  color: var(--muted);
}
.crumb span {
  color: #555;
  margin: 0 13px;
}
.muted {
  color: var(--muted);
  font-size: 12px;
}
.intro {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 51px 0 34px;
}
.intro p {
  font-size: 14px;
  max-width: 620px;
}
.eyebrow {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2.3px;
  color: var(--accent);
  margin-bottom: 17px;
}
.seal {
  border: 1px solid #534437;
  border-radius: 50%;
  width: 103px;
  height: 103px;
  flex: 0 0 103px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 3px;
  line-height: 1.5;
  transform: rotate(11deg);
  margin-top: 10px;
}
.seal b {
  font-size: 13px;
  letter-spacing: 1.7px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.count {
  font-size: 11px;
  background: #27292a;
  border-radius: 4px;
  padding: 3px 6px;
  margin-left: 8px;
  color: var(--muted);
}
.rooms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 13px;
}
.room {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 20px;
}
.room-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.badge {
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 4px;
  background: #2d302e;
  color: var(--muted);
}
.badge.recording {
  background: #26352c;
  color: var(--green);
}
.badge.paused {
  background: #3b3025;
  color: var(--accent);
}
.badge.error,
.badge.capacity_wait {
  background: #3e2c2a;
  color: var(--red);
}
.room h3 {
  margin: 20px 0 4px;
}
.room p {
  margin: 0;
  font-size: 12px;
}
.room-actions {
  display: flex;
  gap: 8px;
  margin-top: 19px;
}
.room-actions button {
  font-size: 11px;
  padding: 7px 10px;
}
.room-actions select {
  padding: 5px;
  font-size: 11px;
}
.job-status {
  font-size: 11px;
  color: var(--muted);
  margin: 14px 0 35px;
}
.library {
  border-top: 1px solid var(--line);
  padding-top: 26px;
}
.search {
  display: flex;
  gap: 8px;
}
.search input {
  width: 235px;
  font-size: 12px;
}
.search button {
  font-size: 11px;
}
.library-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 22px;
}
.sessions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.session {
  display: block;
  text-align: left;
  width: 100%;
  padding: 18px;
  background: var(--panel);
  border-color: var(--line);
}
.session.selected {
  border-color: var(--accent);
  background: #26221e;
}
.session strong {
  display: block;
  font-weight: 500;
  font-size: 14px;
  margin: 7px 0;
}
.session span {
  display: block;
  font-size: 10px;
  color: var(--muted);
}
.detail {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 9px;
  min-height: 360px;
  padding: 25px;
  overflow: hidden;
}
.empty {
  padding: 45px 16px;
  text-align: center;
  color: var(--muted);
}
.empty > span {
  display: block;
  font-size: 40px;
  color: #7d7469;
  margin-bottom: 12px;
}
.empty p {
  font-size: 12px;
  max-width: 340px;
  margin: 0 auto;
}
.detail h2 {
  margin-bottom: 8px;
}
.detail h3 {
  margin: 28px 0 12px;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
.toolbar button,
.toolbar a {
  font-size: 11px;
  padding: 7px 10px;
}
.speech-row {
  display: grid;
  grid-template-columns: 110px 1fr 50px;
  gap: 12px;
  align-items: center;
  font-size: 11px;
  margin: 10px 0;
}
.bar {
  height: 5px;
  background: #313536;
  border-radius: 5px;
  overflow: hidden;
}
.bar > span {
  display: block;
  height: 100%;
  background: var(--accent);
}
.transcript {
  max-height: 450px;
  overflow: auto;
}
.utterance {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.utterance b {
  font-size: 11px;
  font-weight: 550;
}
.utterance time {
  font-size: 10px;
  color: var(--muted);
  margin-left: 10px;
}
.utterance p {
  font-size: 13px;
  color: var(--text);
  margin: 6px 0 0;
}
.event {
  font-size: 11px;
  color: var(--muted);
  padding: 7px 0;
}
.event time {
  color: #787e7d;
  margin-right: 12px;
}
audio {
  display: block;
  width: 100%;
  height: 34px;
  margin: 8px 0 15px;
}
.clip-name {
  font-size: 11px;
}
.subtle {
  background: transparent;
  font-size: 11px;
  margin-top: 12px;
}
.connections {
  margin: 45px 0 30px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}
.connections p {
  font-size: 12px;
}
.pairing {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.pairing button {
  font-size: 11px;
  padding: 7px 12px;
}
code {
  color: var(--accent);
  font-size: 12px;
  overflow-wrap: anywhere;
}
footer {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 0;
  margin-top: 45px;
  font-size: 9px;
  letter-spacing: 1.4px;
  color: #747975;
}
.auth-card {
  background: linear-gradient(125deg, #22221f, #191b1d);
  border: 1px solid #454035;
  border-radius: 10px;
  padding: 38px;
  max-width: 670px;
  margin: 9px 0 55px;
}
.auth-card h2 {
  font-size: 30px;
  line-height: 1.25;
  margin: 20px 0;
  letter-spacing: -0.7px;
}
.auth-card p {
  max-width: 500px;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.8;
}
.auth-foot {
  font-size: 10px;
  color: #90918b;
  margin-top: 25px;
}
.auth-card form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 340px;
}
.auth-card input {
  font-size: 20px;
  letter-spacing: 8px;
}
.auth-card code {
  display: block;
  margin: 14px 0;
  overflow-wrap: anywhere;
}
#enroll-qr {
  display: block;
  width: 300px;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  background: #fff;
}
.manual-secret {
  margin: 18px 0 24px;
}
.manual-secret summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
}
.auth-card button {
  margin: 4px 0;
}
#message {
  padding: 12px 16px;
  background: #392c20;
  border: 1px solid #725131;
  color: #f0c49e;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 12px;
}
.excerpt-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.excerpt-form input {
  max-width: 100%;
  font-size: 11px;
}
.excerpt-form button {
  font-size: 11px;
}
.warning {
  font-size: 11px;
  color: var(--accent);
  padding: 10px;
  background: #2b271f;
  border-radius: 5px;
}
.requests {
  border-top: 1px solid var(--line);
  padding: 22px 0 32px;
}
.request-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin: 20px 0;
}
.request-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 145px;
  font-size: 11px;
  color: var(--muted);
}
.request-form input,
.request-form select {
  width: 100%;
  min-width: 0;
}
.request-form .request-title {
  flex-basis: 210px;
}
.request-list {
  max-height: 240px;
  overflow: auto;
}
.request-row {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  text-align: left;
  margin: 5px 0;
}
.request-row span {
  color: var(--muted);
  font-size: 11px;
}
#request-result {
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 15px;
  max-height: 650px;
  overflow: auto;
}
#request-result p {
  overflow-wrap: anywhere;
}
.board-form {
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: 8px;
  margin: 20px 0;
}
.board-form > label {
  display: block;
  font-size: 12px;
  margin: 12px 0;
}
.board-form > label > input:not([type='checkbox']) {
  display: block;
  width: 100%;
  margin-top: 6px;
}
.board-form .action-choice {
  display: flex;
  gap: 10px;
  align-items: start;
}
.action-choice input {
  accent-color: var(--accent);
  margin-top: 4px;
  flex: 0 0 auto;
}
.board-publication {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 18px;
  margin: 12px 0;
  border-radius: 8px;
}
.board-publication select {
  max-width: 100%;
}
.board-publication p {
  overflow-wrap: anywhere;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
[hidden] {
  display: none !important;
}
@media (max-width: 1150px) {
  .sidebar {
    width: 200px;
    padding: 30px 15px;
  }
  main {
    margin-left: 200px;
    padding: 0 25px;
  }
  .library-grid {
    grid-template-columns: 240px minmax(0, 1fr);
  }
  .seal {
    display: none;
  }
  .search input {
    width: 170px;
  }
}
@media (max-width: 820px) {
  .sidebar {
    position: static;
    width: auto;
    height: auto;
    padding: 20px;
  }
  .nav,
  .nav-label,
  .sidebar-bottom {
    display: none;
  }
  main {
    margin: 0;
    padding: 0 20px;
  }
  header {
    height: 66px;
  }
  .intro {
    padding: 35px 0 20px;
  }
  .library-grid {
    grid-template-columns: 1fr;
  }
  .sessions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  }
  .section-heading {
    flex-wrap: wrap;
  }
  .auth-card {
    padding: 25px;
  }
  .crumb {
    font-size: 8px;
  }
  .search input {
    width: 100%;
  }
  .search {
    width: 100%;
  }
  footer {
    font-size: 8px;
  }
  .detail {
    padding: 18px;
  }
  h1 {
    letter-spacing: -1px;
  }
  #account {
    font-size: 10px;
  }
}
