@import url('/workspace.css');
:root {
  --bg: #313338;
  --panel: #2b2d31;
  --deep: #1e1f22;
  --line: #3f4147;
  --text: #f2f3f5;
  --muted: #b5bac1;
  --quiet: #949ba4;
  --accent: #9ca5ff;
  --accent-bg: #5865f2;
  --green: #3ba55c;
  --red: #f38b90;
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-synthesis: none;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}
button,
input,
select {
  font: inherit;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: #41434a;
  color: var(--text);
  padding: 9px 14px;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.35;
}
button:hover,
.button:hover {
  background: #4e5058;
}
button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}
.primary {
  background: var(--accent-bg);
  color: #fff;
}
.primary:hover {
  background: #4752c4;
}
.danger {
  background: #a93c45;
  color: white;
}
.danger:hover {
  background: #bf424c;
}
.subtle {
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
}
.subtle:hover {
  color: var(--text);
}
.icon-button {
  width: 34px;
  height: 34px;
  padding: 7px;
  background: transparent;
  color: var(--muted);
  flex-shrink: 0;
}
.icon-button:hover {
  background: #41434a;
  color: #fff;
}
.icon,
[data-icon] svg {
  width: 20px;
  height: 20px;
  display: block;
  flex-shrink: 0;
}
input,
select {
  width: 100%;
  min-width: 0;
  background: var(--deep);
  color: var(--text);
  border: 1px solid #45474e;
  border-radius: 5px;
  padding: 10px 11px;
  outline: none;
}
input:focus,
select:focus {
  border-color: var(--accent);
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid #a4acff;
  outline-offset: 3px;
}
input::placeholder {
  color: #858c96;
}
label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  margin: 12px 0 6px;
}
label input,
label select {
  display: block;
  margin-top: 6px;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h2 {
  font-size: 23px;
  line-height: 1.3;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 16px;
}
p {
  color: var(--muted);
  margin: 9px 0 14px;
}
a {
  color: #a7b1ff;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
small,
.muted {
  color: var(--quiet);
}
.eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.8px;
  color: var(--accent);
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 100;
  background: var(--accent-bg);
  color: #fff;
  padding: 12px;
}
.skip-link:focus {
  top: 12px;
}
button,
select,
input,
a {
  touch-action: manipulation;
}
code {
  overflow-wrap: anywhere;
}
::selection {
  background: #5865f270;
}
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-thumb {
  background: #1e1f22;
  border-radius: 8px;
}
.server-rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: 68px;
  background: var(--deep);
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 10px;
  padding: 15px 0;
  z-index: 25;
}
.server-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  padding: 11px;
  color: #b5bac1;
  background: #35373c;
  position: relative;
}
.server-icon:hover {
  border-radius: 14px;
  background: var(--accent-bg);
  color: white;
  text-decoration: none;
}
.brand-icon {
  color: #eef0ff;
  background: #202125;
  padding: 0;
  overflow: hidden;
  border: 1px solid #80603a;
  box-shadow: 0 2px 14px #ffaf3312;
}
.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.brand-icon:hover {
  background: #202125;
  border-color: #ffc176;
}
.workspace-icon {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -1px;
  color: #f7f8ff;
  background: #464d82;
}
.rail-action {
  border-radius: 50%;
  color: #a6aaf7;
}
.rail-separator {
  width: 28px;
  height: 2px;
  background: #36383e;
}
.rail-bottom {
  margin-top: auto;
  color: #949ba4;
  padding: 10px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 68px;
  width: 240px;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  z-index: 24;
  border-right: 1px solid #25262b;
}
.workspace-brand {
  height: 64px;
  padding: 14px 16px;
  border-bottom: 1px solid #242529;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.workspace-brand > div {
  flex: 1;
}
.workspace-brand strong {
  font-size: 14px;
  display: block;
}
.workspace-brand span:not(.workspace-monogram) {
  font-size: 11px;
  color: var(--quiet);
}
.workspace-monogram {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid #777cbc;
  border-radius: 9px;
  color: #d0d2ff;
  font-size: 11px;
  font-weight: 800;
}
#signed-nav {
  flex: 1;
  overflow-y: auto;
  padding: 10px 8px;
}
.sidebar-shortcuts {
  padding: 0 0 12px;
  border-bottom: 1px solid #3a3c41;
  margin-bottom: 12px;
}
.nav {
  width: 100%;
  text-align: left;
  justify-content: flex-start;
  color: var(--muted);
  background: transparent;
  margin: 2px 0;
  padding: 9px 10px;
  font-size: 13px;
}
.nav:hover {
  background: #35373c;
}
.nav.active {
  color: #fff;
  background: #41434a;
}
.nav svg {
  width: 18px;
  height: 18px;
}
.nav-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--quiet);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 10px 8px;
}
.count {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 5px;
  background: #3a3c43;
  color: #b8bcc5;
}
.rooms {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.room {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 9px 10px;
  border-radius: 5px;
  min-height: 42px;
}
.room:hover {
  background: #35373c;
}
.room.selected {
  background: #42444b;
  color: #fff;
}
.room-line {
  display: flex;
  align-items: center;
  gap: 9px;
}
.room-line > .icon {
  width: 17px;
  height: 17px;
  color: #949ba4;
}
.room-name {
  font-size: 13px;
  font-weight: 600;
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.room-members {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 7px 0 0 26px;
  color: var(--quiet);
  font-size: 10px;
}
.room-members .avatar {
  width: 21px;
  height: 21px;
  font-size: 8px;
  margin-right: -9px;
  border: 2px solid var(--panel);
}
.room-member-count {
  margin-left: 9px;
}
.history-heading {
  display: flex;
  align-items: center;
  margin-top: 16px;
}
.history-heading .nav-label {
  flex: 1;
  margin-top: 4px;
  margin-bottom: 4px;
  font-size: 9px;
}
.history-heading .icon-button {
  width: 27px;
  height: 27px;
}
.sessions {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.session {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 8px 10px;
  background: transparent;
  gap: 2px;
  color: var(--quiet);
  font-size: 10px;
  font-weight: 400;
  text-align: left;
}
.session strong {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.session:hover,
.session.selected {
  background: #37394f;
}
.session.selected {
  box-shadow: inset 2px 0 0 var(--accent);
}
.session.selected strong {
  color: #e1e3ff;
}
.more-sessions {
  width: 100%;
  font-size: 11px;
  margin: 9px 0;
}
.sidebar-bottom {
  background: #232428;
  padding: 12px 10px;
  flex-shrink: 0;
  margin-top: auto;
}
.connection-state {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 5px 12px;
}
.connection-state strong {
  color: #56c890;
  display: block;
  font-size: 12px;
}
.connection-state span:not(.status-dot) {
  display: block;
  font-size: 10px;
  color: var(--quiet);
}
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #747b84;
}
.status-dot.green,
.status-dot.recording {
  background: #43b581;
  box-shadow: 0 0 0 3px #43b58112;
}
.status-dot.paused {
  background: #e2b35c;
}
.status-dot.error,
.status-dot.offline {
  background: #ed7075;
}
.account {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 10px;
  overflow: hidden;
  border-top: 1px solid #35363b;
  padding: 11px 3px 0;
}
.account .account-copy {
  flex: 1;
  overflow: hidden;
}
.account strong {
  font-size: 12px;
  display: block;
}
.account span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account .icon-button {
  width: 28px;
  height: 28px;
}
.account .avatar {
  width: 31px;
  height: 31px;
  font-size: 11px;
}
.badge {
  background: #3d4149;
  padding: 3px 8px;
  border-radius: 4px;
  color: #c3c6ce;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}
.badge.recording {
  background: #24865b25;
  color: #71d2a6;
}
.badge.paused {
  background: #ae83312b;
  color: #ebc986;
}
.badge.failed,
.badge.error {
  background: #a33f4929;
  color: #f2a0a5;
}
main {
  margin-left: 308px;
  min-width: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
}
.topbar {
  height: 64px;
  min-height: 64px;
  border-bottom: 1px solid #26272c;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 23px;
  background: var(--bg);
  box-shadow: 0 1px 2px #0002;
  z-index: 5;
}
.header-icon {
  color: #969da6;
}
.header-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 17px;
  flex: 1;
}
.header-title h1 {
  font-size: 16px;
  letter-spacing: -0.2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.header-title > span {
  font-size: 11px;
  color: var(--quiet);
  border-left: 1px solid #4b4d54;
  padding-left: 17px;
}
.header-actions {
  display: flex;
  gap: 7px;
  align-items: center;
}
.header-actions .subtle {
  border: 0;
  font-size: 12px;
  padding: 8px;
}
.header-actions svg {
  width: 17px;
  height: 17px;
}
#workspace {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.toast {
  position: absolute;
  top: 72px;
  left: 24px;
  right: 24px;
  margin: auto;
  max-width: 760px;
  padding: 12px 40px 12px 16px;
  border: 1px solid #707bc1;
  border-left: 3px solid var(--accent);
  border-radius: 7px;
  background: #292d40;
  box-shadow: 0 8px 32px #0004;
  z-index: 30;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.toast.error {
  border-color: #ad5965;
  background: #40282d;
}
.toast .icon-button {
  position: absolute;
  right: 4px;
  top: 5px;
}
.conversation-view {
  flex: 1;
  min-height: 0;
  display: flex;
}
.detail {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.people-panel {
  width: 246px;
  flex-shrink: 0;
  background: #2b2d31;
  border-left: 1px solid #292a2e;
  overflow-y: auto;
  padding: 23px 17px;
}
.panel-heading {
  font-size: 10px;
  color: var(--quiet);
  font-weight: 800;
  letter-spacing: 0.8px;
  margin-bottom: 15px;
}
.person {
  width: 100%;
  padding: 9px 5px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  gap: 10px;
  background: transparent;
  font-size: 12px;
}
.person .person-copy {
  min-width: 0;
  flex: 1;
}
.person strong {
  display: block;
  font-size: 12px;
  color: #d5d8de;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.person small {
  font-size: 10px;
  display: block;
  margin-top: 2px;
}
.person.active {
  background: #3a3d52;
}
.person:hover {
  background: #35373d;
}
.person .icon {
  width: 15px;
  height: 15px;
  color: #9098a4;
}
.avatar {
  display: inline-grid;
  place-items: center;
  position: relative;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  color: #f6f7ff;
  overflow: hidden;
  background: #626ab5;
}
.avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.color-0 {
  background: #5b6baa;
}
.color-1 {
  background: #95637a;
}
.color-2 {
  background: #397d85;
}
.color-3 {
  background: #8a7249;
}
.color-4 {
  background: #706398;
}
.color-5 {
  background: #598264;
}
.speaker-0 {
  color: #a8b7ff;
}
.speaker-1 {
  color: #eba4c0;
}
.speaker-2 {
  color: #81d4d6;
}
.speaker-3 {
  color: #e9c085;
}
.speaker-4 {
  color: #c3adf0;
}
.speaker-5 {
  color: #9bd0a7;
}
.stats-card {
  border-top: 1px solid #41434a;
  margin-top: 20px;
  padding-top: 20px;
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 10px;
}
.stat-value {
  display: block;
  font-size: 19px;
  letter-spacing: -0.6px;
  color: #e6e8ee;
  font-weight: 600;
}
.stat-label {
  font-size: 10px;
  color: var(--quiet);
}
.panel-tip {
  border-top: 1px solid #41434a;
  margin-top: 25px;
  padding-top: 20px;
  color: #9ea4b2;
}
.panel-tip p {
  font-size: 11px;
  line-height: 1.65;
  margin-top: 10px;
}
.speech-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  font-size: 11px;
  color: var(--muted);
}
.bar {
  flex: 1;
  height: 4px;
  min-width: 24px;
  border-radius: 3px;
  background: #42454e;
}
.bar span {
  height: 100%;
  background: #8891ed;
  display: block;
  border-radius: 3px;
}
.empty {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 50px 35px;
  min-height: 300px;
}
.empty-icon {
  width: 78px;
  height: 78px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: #45486b;
  color: #a8b1ff;
  margin-bottom: 25px;
}
.empty-icon svg {
  width: 38px;
  height: 38px;
}
.empty h2 {
  font-size: 23px;
}
.empty p {
  max-width: 370px;
  font-size: 13px;
  line-height: 1.8;
}
.empty-note {
  padding: 35px;
  text-align: center;
  border: 1px dashed #545662;
  border-radius: 8px;
}
.auth-layout {
  flex: 1;
  overflow: auto;
  padding: clamp(35px, 6vw, 95px);
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(290px, 430px);
  align-items: center;
  gap: 50px;
  background: radial-gradient(ellipse at 20% 20%, #5865f212, transparent 60%);
}
.auth-intro h2 {
  font-size: clamp(27px, 3vw, 42px);
  line-height: 1.2;
  letter-spacing: -1.5px;
  margin: 22px 0;
}
.auth-intro h2 > span {
  color: #a4adff;
}
.auth-intro > p {
  max-width: 430px;
  line-height: 1.8;
  font-size: 14px;
}
.auth-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
  margin-top: 35px;
}
.auth-preview b {
  font-size: 12px;
}
.auth-preview p {
  font-size: 11px;
  margin: 4px 0;
}
.auth-card {
  border: 1px solid #444753;
  background: #292b31;
  padding: 32px;
  border-radius: 13px;
  box-shadow: 0 16px 45px #15162035;
  min-width: 0;
}
.auth-card h2 {
  font-size: 23px;
  margin: 16px 0;
}
.auth-card p {
  font-size: 13px;
  line-height: 1.8;
}
.auth-card .button.primary,
.auth-card form > .primary {
  width: 100%;
  margin-top: 13px;
}
.auth-emblem {
  display: inline-flex;
  padding: 11px;
  background: #5865f228;
  color: #a7b1ff;
  border-radius: 12px;
}
.auth-emblem svg {
  width: 24px;
  height: 24px;
}
.auth-brand {
  display: block;
  border-radius: 28px;
  border: 1px solid #6c543544;
  margin-bottom: 26px;
  box-shadow: 0 16px 50px #0003;
}
.auth-bot-mark {
  padding: 0;
  background: #202125;
  border: 1px solid #6c543566;
  border-radius: 15px;
}
.scribe-pair {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.scribe-pair img {
  border: 2px solid #303136;
  border-radius: 50%;
}
.scribe-pair img + img {
  margin-left: -12px;
}
.auth-foot {
  font-size: 10px;
  color: var(--quiet);
  text-align: center;
  margin-top: 24px;
  line-height: 1.9;
}
.google-mark {
  display: grid;
  place-items: center;
  font-weight: 800;
  width: 22px;
  height: 22px;
  background: white;
  color: #5262d7;
  border-radius: 50%;
  margin-right: auto;
}
.auth-card .button > .icon {
  margin-left: auto;
}
#code {
  font-size: 26px;
  letter-spacing: 8px;
  text-align: center;
  padding: 14px;
}
#enroll-qr {
  display: block;
  width: 300px;
  max-width: 100%;
  height: auto;
  image-rendering: pixelated;
  margin: 15px auto;
  border-radius: 7px;
}
.manual-secret {
  font-size: 12px;
  margin: 15px 0;
}
#secret {
  display: block;
  padding: 12px;
  margin-top: 10px;
  background: var(--deep);
  word-break: break-all;
}
.page-view {
  flex: 1;
  overflow-y: auto;
  padding: 32px clamp(20px, 4vw, 58px);
  min-width: 0;
}
.page-heading {
  margin-bottom: 25px;
}
.page-heading h2 {
  font-size: 27px;
  margin: 6px 0 8px;
}
.page-heading p {
  font-size: 13px;
  max-width: 670px;
}
.surface,
.board-publication {
  padding: 23px;
  border: 1px solid #464851;
  border-radius: 9px;
  background: #2b2d31;
  margin-bottom: 18px;
}
.request-form {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) 140px minmax(140px, 1fr);
  gap: 8px 15px;
  align-items: end;
}
.request-form > label {
  margin: 0;
}
.request-title {
  grid-column: span 2;
}
.request-form > button {
  height: 42px;
}
.section-title {
  margin: 25px 0 14px;
  font-size: 14px;
}
.request-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}
.request-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  background: #2b2d31;
  border: 1px solid #454752;
  padding: 15px;
  gap: 7px;
}
.request-row span {
  font-size: 11px;
  color: var(--quiet);
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0;
}
.toolbar > select {
  width: auto;
  max-width: 100%;
}
.toolbar button,
.toolbar .button {
  font-size: 12px;
}
.warning {
  background: #ad823418;
  border: 1px solid #a080444f;
  color: #e6c987;
  padding: 12px 15px;
  border-radius: 6px;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.utterance {
  position: relative;
  padding: 14px 16px;
  border-bottom: 1px solid #ffffff05;
}
.utterance b {
  font-size: 14px;
}
.utterance time {
  color: var(--quiet);
  font-size: 10px;
  margin-left: 10px;
}
.utterance p {
  color: #d8dbe2;
  font-size: 14px;
  line-height: 1.7;
  margin: 5px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.board-form {
  background: #25272c;
  border: 1px solid #444758;
  padding: 20px;
  border-radius: 8px;
  margin: 18px 0 24px;
}
.board-form p {
  font-size: 12px;
}
.action-choice {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 8px 0;
  margin: 3px 0;
}
.action-choice input {
  width: 16px;
  height: 16px;
  margin: 2px 0;
  flex-shrink: 0;
  accent-color: var(--accent-bg);
}
.action-choice span {
  font-size: 13px;
  font-weight: 400;
  color: var(--text);
}
.board-form button[type='submit'] {
  margin-top: 15px;
}
.excerpt-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 15px 0 24px;
}
.excerpt-form > input:first-child {
  grid-column: 1/-1;
}
.excerpt-form > button {
  grid-column: 1/-1;
}
.event {
  display: flex;
  gap: 15px;
  font-size: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #42444d;
}
.event time {
  color: var(--quiet);
  flex-shrink: 0;
  min-width: 65px;
}
.clip-name {
  font-size: 12px;
  margin: 22px 0 8px;
}
audio {
  width: 100%;
  height: 38px;
}
.pairing {
  padding: 16px;
  background: #2b2d31;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 12px;
  overflow-wrap: anywhere;
  min-width: 0;
}
.copy-field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--deep);
  border-radius: 6px;
  padding: 12px;
  margin: 15px 0;
}
.copy-field code {
  flex: 1;
  min-width: 0;
  font-size: 12px;
}
.job-status {
  color: var(--muted);
  padding: 12px 0;
  font-size: 13px;
}
.settings-dialog {
  width: min(500px, calc(100vw - 30px));
  max-height: calc(100dvh - 40px);
  overflow: auto;
  background: #2b2d31;
  color: var(--text);
  border: 1px solid #53566a;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 25px 100px #0008;
}
.settings-dialog::backdrop {
  background: #101117b8;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: space-between;
  margin-bottom: 20px;
}
.dialog-heading h2 {
  font-size: 22px;
  margin-top: 6px;
}
.setting-group {
  padding: 20px 0;
  border-top: 1px solid var(--line);
  margin-top: 16px;
}
.setting-group p {
  font-size: 12px;
}
.setting-group button {
  width: 100%;
  margin-top: 14px;
}
.settings-dialog > button.primary {
  width: 100%;
  margin-top: 15px;
}
summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
}
details {
  margin: 12px 0;
  padding: 12px;
  background: #27292f;
  border-radius: 6px;
}
details h4 {
  font-size: 13px;
  margin-top: 18px;
}
details p {
  font-size: 12px;
}
.mobile-only {
  display: none;
}
.sidebar-backdrop {
  display: none;
}
@media (min-width: 1650px) {
  .sidebar {
    width: 260px;
  }
  main {
    margin-left: 328px;
  }
  .people-panel {
    width: 275px;
  }
}
@media (max-width: 1250px) {
  .header-title > span {
    display: none;
  }
  .people-panel {
    width: 210px;
    padding: 20px 12px;
  }
  .auth-layout {
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 650px;
    margin: auto;
  }
  .auth-intro {
    display: none;
  }
}
@media (max-width: 1050px) {
  .people-panel {
    display: none;
  }
  .conversation-view.show-people .people-panel {
    display: block;
    position: absolute;
    right: 0;
    top: 64px;
    bottom: 0;
    z-index: 16;
    width: 250px;
    box-shadow: -12px 0 35px #0004;
  }
  .sidebar {
    width: 215px;
  }
  main {
    margin-left: 283px;
  }
  .request-form {
    grid-template-columns: 1fr 1fr;
  }
  .request-title {
    grid-column: auto;
  }
}
@media (max-width: 760px) {
  .server-rail {
    display: none;
  }
  .sidebar {
    left: 0;
    width: 260px;
    visibility: hidden;
    transform: translateX(-100%);
    transition: transform 0.18s;
  }
  .navigation-open .sidebar {
    visibility: visible;
    transform: translateX(0);
  }
  .sidebar-backdrop:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
    background: #1118;
    z-index: 23;
  }
  .mobile-only {
    display: inline-flex;
  }
  main {
    margin-left: 0;
    height: 100dvh;
  }
  .topbar {
    height: 57px;
    min-height: 57px;
    padding: 0 10px;
    gap: 6px;
  }
  .header-title h1 {
    font-size: 14px;
  }
  .header-icon {
    display: none;
  }
  .wide-label {
    display: none;
  }
  .header-actions {
    gap: 0;
  }
  .header-actions .subtle {
    padding: 7px;
  }
  .topbar .badge {
    font-size: 9px;
    padding: 3px 5px;
  }
  .page-view {
    padding: 22px 16px;
  }
  .page-heading h2 {
    font-size: 24px;
  }
  .request-form {
    grid-template-columns: 1fr;
    padding: 18px;
  }
  .request-title {
    grid-column: auto;
  }
  .copy-field {
    flex-direction: column;
    align-items: flex-start;
  }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .toast {
    top: 63px;
    left: 10px;
    right: 10px;
    font-size: 12px;
  }
  .auth-layout {
    padding: 16px;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 460px;
    margin: auto;
  }
  .auth-card {
    width: 100%;
    padding: 23px;
  }
  .auth-card h2 {
    font-size: 23px;
  }
  .conversation-view.show-people .people-panel {
    top: 57px;
    width: 240px;
  }
  .surface {
    padding: 17px;
  }
  .excerpt-form {
    grid-template-columns: 1fr;
  }
  .excerpt-form > input:first-child,
  .excerpt-form > button {
    grid-column: auto;
  }
  .pairing {
    align-items: flex-start;
    flex-direction: column;
  }
  .board-form {
    padding: 16px;
  }
  .toolbar {
    gap: 7px;
  }
  .toolbar button,
  .toolbar .button {
    padding: 8px 10px;
  }
  .empty {
    padding: 30px 20px;
  }
  .settings-dialog {
    padding: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

/* Team access and recording moderation */
.qol-page {
  padding: 24px;
  overflow: auto;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}
.qol-card {
  padding: 20px;
  margin: 18px 0;
  background: var(--bg-secondary, #2b2d31);
  border: 1px solid #41434a;
  border-radius: 12px;
  overflow-wrap: anywhere;
}
.qol-card h3 {
  margin-top: 0;
}
.qol-row,
.audio-filter {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 12px 0;
}
.qol-row > strong {
  flex: 1 1 200px;
}
.qol-row input {
  min-width: 0;
  flex: 1;
}
.qol-dialog {
  width: min(640px, calc(100vw - 32px));
  max-height: 85vh;
  overflow: auto;
  padding: 24px;
  border: 1px solid #4e5058;
  border-radius: 14px;
}
.qol-dialog p {
  line-height: 1.55;
}
.qol-dialog textarea {
  display: block;
  width: 100%;
  margin: 10px 0;
}
.deletion-preview {
  max-height: 170px;
  overflow: auto;
  background: #1e1f22;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
}
.danger {
  color: #ffb2b6;
  border: 1px solid #a23d46;
  background: #512b32;
}
.danger:hover {
  background: #73323c;
}
.clip-select {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #b5bac1;
}
.clip-select input {
  width: 18px;
  height: 18px;
}
.audio-filter {
  position: sticky;
  top: 0;
  background: #2b2d31;
  z-index: 1;
  padding: 12px;
  border-radius: 8px;
}
.audio-filter input {
  min-width: 0;
  max-width: 100%;
}
body[data-role='member'] #pane-notes,
body[data-role='member'] #quick-extract,
body[data-role='member'] #listen-toggle {
  display: none;
}
@media (max-width: 600px) {
  .qol-page {
    padding: 14px;
  }
  .qol-card {
    padding: 14px;
  }
  .qol-row {
    align-items: stretch;
  }
  .qol-row form {
    width: 100%;
  }
  .qol-dialog {
    padding: 18px;
  }
  .conversation-tools {
    flex-wrap: wrap;
  }
  .audio-filter button {
    font-size: 12px;
  }
}

/* Calendar, focused search and personal review drafts. */
.recording-calendar {
  padding: 4px 10px 12px;
}
.calendar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  font-size: 12px;
  text-transform: capitalize;
}
.calendar-previous .icon {
  transform: rotate(90deg);
}
.calendar-next .icon {
  transform: rotate(-90deg);
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
  text-align: center;
}
.calendar-weekday {
  font-size: 10px;
  color: var(--muted);
  padding: 5px 0;
}
.calendar-day {
  padding: 4px 0;
  min-width: 0;
  border: 0;
  border-radius: 5px;
  font-size: 11px;
  background: transparent;
  position: relative;
}
.calendar-day:disabled {
  opacity: 0.28;
  cursor: default;
}
.calendar-day.has-recordings {
  background: #353744;
  color: #f1f1fa;
}
.calendar-day[aria-current] {
  background: #5865f2;
  color: white;
  box-shadow: inset 0 0 0 1px #a4acff;
}
.calendar-legend {
  font-size: 10px;
  color: #a6aafb;
  margin: 7px 0 0;
}
.qol-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: end;
  margin: 18px 0;
}
.qol-filters label {
  display: flex;
  flex: 1 1 150px;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  font-size: 12px;
}
.qol-filters input,
.qol-filters select {
  min-width: 0;
  width: 100%;
}
.global-search-form {
  flex-wrap: wrap;
}
.search-filters {
  flex-basis: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.search-preview {
  font-size: 12px;
  line-height: 1.6;
  white-space: normal;
  color: #c6c8d2;
  margin: 6px 0 0;
  overflow-wrap: anywhere;
}
.search-result > div {
  min-width: 0;
}
.audio-skip {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.audio-skip button {
  padding: 6px;
  font-size: 11px;
  white-space: nowrap;
}
.journal-entry code {
  overflow-wrap: anywhere;
  white-space: normal;
}
.journal-entry h3 {
  margin-bottom: 6px;
}
.draft-status {
  font-size: 12px;
  color: #a6c4a8;
}
.draft-conflict {
  border-left: 3px solid #e8b55d;
  padding: 10px 12px;
  background: #3b352b;
  font-size: 13px;
}
.draft-conflict button {
  margin: 8px 8px 0 0;
}
@media (max-width: 700px) {
  .audio-dock {
    flex-wrap: wrap;
  }
  .audio-dock audio {
    min-width: 0;
    flex: 1 1 180px;
  }
  .audio-skip {
    order: 3;
  }
  .audio-dock .speed-label {
    order: 4;
  }
  .audio-person {
    flex: 1 1 150px;
  }
  .qol-filters {
    gap: 8px;
  }
}
@media (max-width: 360px) {
  .search-filters {
    grid-template-columns: 1fr;
  }
}

/* Remembered browsers: the choice under the code, and the person's own list. */
label.trust-device {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.25rem 0 0.9rem;
  font-weight: 500;
  cursor: pointer;
}
label.trust-device input {
  width: 1.1rem;
  height: 1.1rem;
  flex: none;
  margin: 0;
}
.trusted-devices {
  margin-top: 1.75rem;
}
.trusted-devices h3 {
  margin: 0 0 0.35rem;
}
.trusted-devices .pairing small {
  display: block;
}
