@font-face {
  font-family: system-fallback;
  src: local("PingFang SC");
}
:root {
  --bg: #f7f8fb;
  --paper: #fff;
  --text: #252839;
  --muted: #8a8f9e;
  --line: #eef0f5;
  --purple: #6d5bd0;
  --purple-bg: #f0edfb;
  --green: #309b7f;
  --radius: 13px;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Noto Sans CJK SC",
    "Microsoft YaHei",
    sans-serif;
  color: var(--text);
  font-size: 14px;
  font-synthesis: none;
}
.competitor-card {
  margin-bottom: 20px;
  padding: 18px 20px;
}
.brand-heading,
.product-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.brand-heading h2,
.product-card-heading h3 { margin: 0; }
.brand-heading p,
.product-card-heading p { margin: 7px 0 0; color: var(--muted); }
.catalog-products { display: grid; gap: 12px; margin-top: 16px; }
.product-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  background: #fcfbff;
}
.product-metrics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.product-metrics span,
.product-tab span { color: var(--muted); font-size: 12px; }
.product-tabs { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--line); margin-top: 12px; }
.product-tab {
  border: 0;
  border-radius: 8px 8px 0 0;
  background: transparent;
  color: var(--muted);
  padding: 9px 12px;
  cursor: pointer;
}
.product-tab.active { background: #eeeafd; color: #5543aa; font-weight: 650; }
.product-pane { padding-top: 10px; }
.product-pane[hidden] { display: none; }
.product-pane .panel-heading { padding: 2px 0 4px; margin: 0; flex-direction: row; }
.product-pane .panel-heading h4 { margin: 0; }
.product-pane .panel-heading button { flex-shrink: 0; }
.pill.monitor-status, #page-competitors .pill { background: #f1f2f4; color: #515866; }
.pill.monitor-status.is-recording, #page-competitors .pill.is-recording { background: #e0f3e7; color: #17663b; }
.product-pane table { min-width: 760px; }
.product-room-table th { padding-block: 10px; }
.product-room-table td { padding-block: 10px; vertical-align: middle; }
.product-room-table .candidate-title { margin-top: 4px; }
.product-room-table .recording-check summary { color: var(--muted); font-size: 11px; font-weight: 400; }
.product-room-table .archive-actions { align-items: center; justify-content: flex-start; }
.product-empty { margin: 8px 0 2px; padding: 12px 14px; border-radius: 9px; background: #f7f5fc; color: var(--muted); }
.pending-section { margin: 14px 0 24px; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; background: white; }
.pending-section summary { color: #5543aa; font-weight: 650; cursor: pointer; }
.pending-room { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 2px; border-top: 1px solid var(--line); }
.pending-room:first-of-type { margin-top: 10px; }
.pending-room small { display: block; color: var(--muted); margin-top: 4px; }
.recordings-list { display: grid; gap: 8px; }
.competitor-summary {
  padding: 0 24px 16px;
}
.competitor-details {
  border-top: 1px solid var(--line);
  padding: 16px 24px;
}
.competitor-details summary {
  cursor: pointer;
  font-weight: 600;
}
.competitor-details table {
  margin-top: 16px;
  min-width: 700px;
}
.competitor-details td {
  max-width: 280px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.candidate-title {
  display: block;
  color: var(--muted);
  margin-top: 8px;
}
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.login-card {
  width: min(440px, 100%);
  padding: 36px;
}
.settings-card form {
  display: grid;
  gap: 12px;
}
.key-output {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.account-action-cell {
  white-space: normal;
  min-width: 210px;
}
.account-action-cell .button {
  margin: 3px;
}
.login-details {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  padding: 16px 0;
}
.login-details dd {
  margin: 0;
  overflow-wrap: anywhere;
}
main.audit-page {
  margin: 0 auto;
  max-width: 1440px;
  padding: 32px 20px;
}
.transcript-page-content {
  padding: 24px;
  min-height: 240px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
}
button,
input {
  font: inherit;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
a {
  color: var(--purple);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #ad9eef;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 230px;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 32px 22px;
  display: flex;
  flex-direction: column;
  z-index: 5;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 25px;
  font-weight: 750;
  color: #343048;
  letter-spacing: 2px;
}
.brand:hover {
  text-decoration: none;
}
.brand small {
  display: block;
  font-size: 10px;
  font-weight: 450;
  color: var(--muted);
  letter-spacing: 2px;
  margin-top: 4px;
}
.company-logo {
  width: 62px;
  height: 62px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}
.login-logo {
  width: 130px;
  height: 130px;
}
.stop-button {
  background: #fff0ed;
  color: #a94436;
  border-color: #eed0ca;
}
.pill.stopped {
  background: #f1f2f6;
  color: #6c7282;
}
.workspace {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 37px 0 32px;
  padding: 13px 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 12px;
}
.workspace small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
}
.workspace-icon {
  background: #edeaf7;
  color: #7566b4;
  padding: 8px;
  border-radius: 7px;
}
.nav-label {
  color: #a6a9b5;
  font-size: 11px;
  letter-spacing: 1px;
  padding: 0 13px;
  margin-bottom: 14px;
}
.sidebar nav {
  margin-top: 32px;
}
.nav-item {
  border: 0;
  background: none;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #787b8c;
  width: 100%;
  padding: 14px;
  margin-bottom: 8px;
  border-radius: 8px;
  text-align: left;
  font-weight: 550;
}
.nav-item > span:first-child {
  display: inline-flex;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 400;
  line-height: 1;
}
.nav-item.active {
  background: var(--purple-bg);
  color: var(--purple);
}
.nav-count {
  margin-left: auto;
  background: #e0daf7;
  border-radius: 5px;
  padding: 2px 6px;
  font-size: 11px;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 20px 8px 0;
  border-top: 1px solid var(--line);
}
.local-label {
  font-size: 12px;
  color: #686c7e;
}
.sidebar-bottom p {
  font-size: 11px;
  color: #a2a6b2;
  line-height: 1.9;
  margin-bottom: 20px;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 7px;
  vertical-align: middle;
}
.green {
  background: #43b392;
}
.dot.red {
  background: #d97867;
}
main {
  margin-left: 230px;
}
.topbar {
  height: 77px;
  background: #ffffffc9;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  font-size: 12px;
}
.breadcrumb {
  color: #9b9eab;
}
.slash {
  margin: 0 15px;
  color: #c4c7d0;
}
.topbar-right {
  display: flex;
  gap: 23px;
  align-items: center;
}
.timezone {
  font-size: 11px;
  color: var(--muted);
}
.avatar {
  display: grid;
  place-items: center;
  background: #ede9f6;
  border: 3px solid white;
  border-radius: 50%;
  width: 33px;
  height: 33px;
  color: #8b7bae;
  font-size: 11px;
}
.content {
  padding: 35px 40px 16px;
  max-width: 1660px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}
.eyebrow {
  color: #9396a7;
  font-size: 11px;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}
h1 {
  font-size: 28px;
  letter-spacing: 1px;
  margin: 0 0 11px;
  font-weight: 650;
}
p {
  line-height: 1.8;
}
h2 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}
h3 {
  font-size: 16px;
  font-weight: 550;
}
.page-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.button {
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 10px 15px;
  font-size: 12px;
  line-height: 1.5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
  transition:
    background 0.15s,
    box-shadow 0.15s;
}
.primary {
  background: var(--purple);
  color: white;
  box-shadow: 0 3px 7px #6d5bd01c;
}
.primary:hover {
  background: #5d4bbe;
}
.primary > span {
  font-size: 18px;
}
.secondary {
  background: white;
  border-color: #e3e5ed;
  color: #696d7e;
}
.secondary:hover {
  background: #f6f5fa;
  border-color: #cdc5e9;
}
.text-button {
  background: none;
  border: 0;
  color: var(--purple);
  font-size: 11px;
  padding: 4px 0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 23px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 21px;
  box-shadow: 0 3px 7px #30325602;
}
.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #848899;
  font-size: 12px;
}
.stat-icon {
  width: 31px;
  height: 31px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 18px;
}
.lavender {
  background: #f0edfb;
  color: #9a88d2;
}
.mint {
  background: #e9f7f1;
  color: #65b69b;
}
.peach {
  background: #fff3e7;
  color: #dcaa69;
}
.blue {
  background: #edf3fe;
  color: #81a6dc;
}
.stat-number {
  font-size: 31px;
  font-weight: 600;
  margin: 5px 0 10px;
  letter-spacing: -0.8px;
  font-variant-numeric: tabular-nums;
}
.stat small {
  font-size: 10px;
  color: #a2a5b2;
}
.notice {
  display: flex;
  align-items: center;
  background: linear-gradient(105deg, #f1eefb, #f5f4fc);
  border: 1px solid #e9e4f8;
  border-radius: 10px;
  padding: 17px 20px;
  margin-bottom: 26px;
  gap: 14px;
}
.notice-icon {
  font-size: 25px;
  color: #9d8dce;
}
.notice strong {
  display: block;
  font-size: 12px;
  color: #756299;
  font-weight: 550;
  margin-bottom: 6px;
}
.notice div > span {
  font-size: 11px;
  color: #a095b4;
}
.notice-tag {
  margin-left: auto;
  font-size: 10px;
  color: #9a8bac;
  border: 1px solid #e3dcef;
  border-radius: 5px;
  padding: 5px 10px;
  white-space: nowrap;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.panel-heading {
  padding: 23px 23px 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.panel-heading p {
  margin: 7px 0 0;
  color: #a1a4b2;
  font-size: 11px;
}
.count-badge {
  display: inline-block;
  font-size: 10px;
  background: #f1eff8;
  color: #9c8bbd;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}
.table-toolbar {
  padding: 0 23px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.filter-tabs {
  display: flex;
  gap: 4px;
}
.filter-tabs button {
  border: 0;
  background: none;
  padding: 7px 13px;
  font-size: 11px;
  color: #9195a4;
  border-radius: 5px;
}
.filter-tabs .selected {
  color: var(--purple);
  background: #f1eefb;
}
.search {
  border: 1px solid #eceef3;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 11px;
  border-radius: 6px;
  color: #a4a8b6;
}
.search input {
  border: 0;
  background: transparent;
  outline: none;
  width: 160px;
  font-size: 11px;
  margin: 0;
  padding: 0;
}
.search input::placeholder {
  color: #b0b3bf;
}
.table-scroll {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  white-space: nowrap;
  font-size: 12px;
}
th {
  text-align: left;
  font-size: 10px;
  font-weight: 500;
  color: #969aa9;
  background: #fafbfc;
  padding: 14px 19px;
  border-top: 1px solid #f2f3f7;
  border-bottom: 1px solid #f2f3f7;
}
td {
  padding: 20px 19px;
  border-bottom: 1px solid #f2f3f7;
}
th:first-child,
td:first-child {
  padding-left: 24px;
}
.room-name {
  display: flex;
  align-items: center;
  gap: 11px;
}
.room-avatar {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #f0edf8;
  color: #9b8bb9;
  font-size: 13px;
}
.room-name strong {
  display: block;
  font-size: 12px;
  font-weight: 550;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.room-name small {
  display: block;
  font-size: 10px;
  color: #a6a9b5;
  margin-top: 5px;
}
.profile-link {
  display: block;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #9498aa;
  font-size: 11px;
}
.date-cell {
  font-size: 11px;
  color: #7f8494;
  font-variant-numeric: tabular-nums;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  font-size: 10px;
  border-radius: 5px;
  color: #969aaa;
  background: #f4f5f8;
  white-space: nowrap;
}
.pill.recording {
  background: #eaf7f1;
  color: #42a180;
}
.pill.waiting,
.pill.confirming,
.pill.transcribing {
  background: #fff5e7;
  color: #c39553;
}
.pill.attention,
.pill.failed,
.pill.capacity {
  background: #fff0ed;
  color: #c37d6d;
}
.pill.completed,
.pill.finished {
  background: #eef0fc;
  color: #8488b7;
}
.pill.live {
  background: #eeeafb;
  color: #8c73ba;
}
.actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  align-items: center;
}
.actions .button {
  padding: 7px 10px;
  font-size: 10px;
}
.actions .text-button {
  color: #9b9eb0;
  font-size: 10px;
}
.actions-heading {
  text-align: right;
  padding-right: 25px;
}
.monitor-button {
  background: #f0edfb;
  color: #8b78b7;
  border-color: #e7e1f5;
}
.message-row td {
  padding: 0 24px 14px;
  color: #b07b68;
  font-size: 10px;
  white-space: normal;
}
.message-row {
  background: #fffcfa;
}
.panel-footer {
  padding: 15px 23px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #a5a9b5;
  gap: 12px;
}
.empty-state {
  text-align: center;
  padding: 43px 16px 47px;
}
.empty-art {
  display: grid;
  place-items: center;
  margin: auto;
  background: #f3f0fb;
  color: #ab9ad4;
  width: 55px;
  height: 55px;
  border-radius: 17px;
  font-size: 28px;
}
.empty-state h3 {
  font-size: 14px;
  margin: 16px 0 8px;
}
.empty-state p {
  font-size: 12px;
  color: #a2a6b3;
  margin: 0 0 20px;
}
.bottom-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 22px;
  margin-top: 23px;
}
.compact .panel-heading {
  padding-bottom: 10px;
}
.recent-sessions {
  padding: 0 23px 18px;
  min-height: 114px;
  font-size: 11px;
}
.recent-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid #f5f5f9;
  gap: 10px;
}
.recent-item:last-child {
  border: 0;
}
.recent-item small {
  display: block;
  color: #a3a6b2;
  font-size: 10px;
  margin-top: 4px;
}
.storage-card {
  border: 1px solid #e9e9f3;
  border-radius: var(--radius);
  padding: 23px;
  background: linear-gradient(120deg, #f0f0f9, #f7f6fc);
}
.storage-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #827c9a;
  gap: 10px;
}
.storage-title .pill {
  background: #ffffff85;
  color: #a6a0b4;
  font-size: 9px;
}
.storage-card h3 {
  font-size: 26px;
  color: #726888;
  margin: 22px 0 12px;
}
.storage-card small {
  font-size: 11px;
  font-weight: 400;
  color: #a49bb4;
}
.storage-card p {
  font-size: 10px;
  color: #a69db4;
  margin-bottom: 0;
}
progress {
  display: block;
  width: 100%;
  height: 5px;
  border: none;
  border-radius: 8px;
  overflow: hidden;
  background: #e4deed;
  accent-color: #b9a8d8;
}
progress::-webkit-progress-bar {
  background: #e4deed;
}
progress::-webkit-progress-value {
  background: #b9a8d8;
}
.footer {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #b2b5c0;
  padding: 30px 0 8px;
}
.muted {
  color: var(--muted);
  font-size: 11px;
}
.archive-item {
  padding: 23px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}
.archive-item h3 {
  margin: 0 0 8px;
  font-size: 14px;
}
.archive-item p {
  font-size: 11px;
  color: #969aab;
  margin: 5px 0;
}
.archive-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 420px;
}
.audio-files {
  width: 100%;
  text-align: right;
  font-size: 11px;
  color: #9498a5;
}
.audio-files summary {
  cursor: pointer;
  padding: 8px 0;
}
.audio-files a {
  display: block;
  padding: 4px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.settings-card {
  padding: 25px;
}
.setting-symbol {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-size: 22px;
  margin-bottom: 18px;
}
.settings-card p {
  color: #9398a8;
  font-size: 12px;
}
.settings-card small {
  display: block;
  color: #aaaeb9;
  font-size: 10px;
  line-height: 1.8;
  margin-top: 16px;
}
dl {
  margin: 20px 0;
}
dl > div {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  gap: 20px;
}
dt {
  color: #969aa9;
}
dd {
  margin: 0;
}
code {
  font-size: 11px;
  background: #f4f2f9;
  padding: 2px 5px;
  border-radius: 4px;
}
dialog {
  border: 1px solid #e9e6f0;
  box-shadow: 0 25px 100px #30264430;
  border-radius: 16px;
  padding: 29px;
  width: min(490px, calc(100% - 30px));
  max-height: 90vh;
  color: var(--text);
}
dialog::backdrop {
  background: #24243666;
  backdrop-filter: blur(4px);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 23px;
}
.dialog-heading h2 {
  font-size: 20px;
}
.dialog-heading p {
  font-size: 12px;
  color: #9398a8;
  margin: 8px 0 0;
}
.icon-button {
  border: 0;
  background: #f6f5fa;
  color: #9c96ad;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 21px;
  flex-shrink: 0;
}
form > label,
.form-columns > label {
  display: block;
  font-size: 12px;
  margin: 20px 0;
  color: #747788;
}
input {
  width: 100%;
  margin-top: 9px;
  border: 1px solid #e2dfeb;
  border-radius: 7px;
  padding: 11px 12px;
  color: #4f5266;
  background: #fff;
}
label small {
  display: block;
  margin-top: 8px;
  font-size: 10px;
  color: #a4a6b2;
}
.form-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.form-columns > label {
  margin: 0 0 12px;
}
.form-note {
  font-size: 11px;
  color: #a09aaf;
  background: #f7f5fb;
  border-radius: 8px;
  padding: 12px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}
.auth-dialog {
  width: 370px;
  padding: 32px;
}
.auth-dialog h2 {
  margin-top: 24px;
  font-size: 22px;
}
.auth-dialog p {
  font-size: 12px;
  color: #9296a7;
}
.full-width {
  width: 100%;
}
.error-text {
  color: #c67a70 !important;
  min-height: 18px;
}
.wide-dialog {
  width: min(1100px, 95vw);
}
#login-screen {
  touch-action: none;
  user-select: none;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: crosshair;
  touch-action: none;
}
.login-loading {
  padding: 100px 10px;
  text-align: center;
  color: #a29aad;
  background: #f7f5fa;
}
.login-controls {
  display: flex;
  gap: 8px;
  margin: 15px 0;
  align-items: center;
}
.login-controls input {
  margin: 0;
  flex: 1;
  min-width: 100px;
}
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #343146;
  color: white;
  border-radius: 9px;
  box-shadow: 0 5px 20px #2222;
  max-width: 90vw;
  padding: 14px 22px;
  font-size: 12px;
  z-index: 100;
}
.transcript-content {
  max-height: 62vh;
  overflow: auto;
}
.transcript-line {
  display: grid;
  grid-template-columns: 95px 1fr;
  gap: 15px;
  padding: 13px 6px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.8;
}
.transcript-line time {
  color: #a79ab8;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.warning {
  padding: 12px;
  background: #fff5e9;
  color: #b48d54;
  border-radius: 7px;
  font-size: 12px;
  margin-bottom: 15px;
}
@media (min-width: 1600px) {
  .content {
    padding-top: 45px;
  }
  .page-heading {
    margin-bottom: 35px;
  }
  .stat {
    padding: 24px;
  }
  .notice {
    margin-top: 27px;
    margin-bottom: 30px;
  }
  td {
    padding-top: 23px;
    padding-bottom: 23px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 195px;
    padding: 28px 15px;
  }
  main {
    margin-left: 195px;
  }
  .content {
    padding: 30px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .stats {
    gap: 12px;
  }
  .stat {
    padding: 17px;
  }
  .notice-tag {
    display: none;
  }
  .workspace {
    font-size: 10px;
  }
  .workspace small {
    font-size: 9px;
  }
  .table-toolbar {
    flex-wrap: wrap;
  }
}
@media (max-width: 800px) {
  .sidebar .company-logo {
    width: 48px;
    height: 48px;
  }
  .sidebar {
    width: 72px;
    padding: 24px 11px;
  }
  .brand {
    justify-content: center;
  }
  .brand > span:last-child,
  .workspace,
  .nav-label,
  .nav-count,
  .sidebar-bottom {
    display: none;
  }
  .sidebar nav {
    margin-top: 35px;
  }
  .nav-item {
    font-size: 0;
    padding: 13px;
    justify-content: center;
  }
  .nav-item > span:first-child {
    font-size: 22px;
  }
  .nav-item > span:last-child:not(:first-child) {
    display: none;
  }
  main {
    margin-left: 72px;
  }
  .content {
    padding: 24px 18px;
  }
  .topbar {
    height: 60px;
    padding: 0 18px;
  }
  .timezone {
    display: none;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  h1 {
    font-size: 25px;
  }
  .eyebrow {
    font-size: 10px;
  }
  .page-heading p {
    font-size: 11px;
  }
  .page-heading .button {
    padding: 9px 10px;
  }
  .notice {
    padding: 13px;
    align-items: flex-start;
  }
  .notice div > span {
    line-height: 1.8;
    display: block;
  }
  .bottom-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .search {
    width: 100%;
  }
  .search input {
    width: 100%;
  }
  .table-toolbar,
  .panel-heading,
  .panel-footer {
    padding-left: 16px;
    padding-right: 16px;
  }
  .filter-tabs {
    width: 100%;
  }
  .filter-tabs button {
    flex: 1;
    padding: 7px;
  }
  .panel-footer {
    flex-direction: column;
    gap: 7px;
  }
  .footer {
    gap: 16px;
    line-height: 1.8;
  }
  .archive-item {
    flex-direction: column;
  }
  .archive-actions {
    justify-content: flex-start;
    max-width: none;
  }
  .audio-files {
    text-align: left;
  }
  .login-controls {
    flex-wrap: wrap;
  }
  .login-controls input {
    flex-basis: 100%;
  }
  .transcript-line {
    grid-template-columns: 74px 1fr;
    gap: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
#account-settings {
  grid-column: 1 / -1;
  padding: 0;
  overflow: hidden;
}
.accounts-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px;
  background: linear-gradient(115deg, #faf8ff, #fff 70%);
  border-bottom: 1px solid var(--line);
}
.account-eyebrow {
  color: var(--purple);
  font-size: 12px;
  letter-spacing: 1px;
}
.accounts-heading h2 {
  margin: 10px 0 6px;
  font-size: 22px;
}
.accounts-heading p {
  margin: 0;
}
.account-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 28px;
  flex-wrap: wrap;
}
.account-toolbar label {
  margin: 0;
}
.account-toolbar .search {
  flex: 1;
  min-width: 180px;
  max-width: 380px;
}
.role-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}
.role-filter select,
#user-form select {
  border: 1px solid #e3e0ef;
  border-radius: 8px;
  padding: 10px 12px;
  background: white;
  color: var(--text);
  font: inherit;
}
.accounts-table {
  min-width: 630px;
}
.accounts-table td:last-child {
  text-align: right;
}
.account-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}
.account-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #efedf9;
  color: #6652b5;
  font-weight: 700;
}
.current-account {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}
.account-role {
  display: inline-block;
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 600;
}
.role-admin {
  background: #efebff;
  color: #6b50c4;
}
.role-member {
  background: #eff5f8;
  color: #4d6b7d;
}
.account-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 28px;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--line);
}
@media (max-width: 640px) {
  .accounts-heading {
    flex-wrap: wrap;
    padding: 20px;
  }
  .account-toolbar {
    padding: 16px;
    gap: 12px;
  }
  .account-toolbar .search {
    max-width: none;
    flex-basis: 100%;
  }
  .account-footer {
    padding: 16px;
    flex-wrap: wrap;
  }
}

#remote-desktop { width:100%; height:70vh; border:0; background:#222; }

/* Product configuration stays inside the existing room dialog. */
#room-form .product-toggle { display: flex; align-items: center; gap: 8px; }
#room-form .product-toggle input { width: auto; margin: 0; }
#product-fields { border: 1px solid var(--border); border-radius: 10px; padding: 14px; margin: 16px 0; }
#product-fields[hidden] { display: none; }
#product-fields label { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; font-size: 12px; }
#product-fields p, #product-fields small { font-size: 12px; color: #827c9a; line-height: 1.7; }
#product-fields textarea { width: 100%; min-height: 80px; padding: 10px; font: inherit; border: 1px solid var(--border); border-radius: 8px; resize: vertical; }

/* Phone layout only: desktop tables and business state renderers stay unchanged. */
@media (max-width: 700px) {
  .sidebar { inset: 0 0 auto; width: 100%; height: 60px; padding: 4px 8px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar .brand, .sidebar .workspace, .sidebar-bottom { display: none; }
  .sidebar nav { display: flex; gap: 4px; margin: 0; width: 100%; }
  .sidebar .nav-item { flex: 1; min-width: 0; margin: 0; padding: 8px 2px; gap: 4px; font-size: 12px; white-space: nowrap; }
  .sidebar .nav-item > span:first-child { font-size: 16px; }
  main { margin-left: 0; padding-top: 60px; min-width: 0; }
  main.audit-page { padding: 16px 12px; }
  .topbar { height: 48px; padding: 0 12px; }
  .content { padding: 20px 12px; }
  .page-heading { gap: 12px; margin-bottom: 20px; }
  .page-heading > div, .brand-heading > div, .product-card-heading > div { min-width: 0; max-width: 100%; }
  .page-heading p, .competitor-card, .product-card, .archive-item, .transcript-line span { overflow-wrap: anywhere; }
  .competitor-card { padding: 14px 12px; }
  .product-card { padding: 12px 10px; min-width: 0; }
  .brand-heading, .product-card-heading { gap: 10px; }
  .brand-heading .actions, .archive-actions { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; max-width: 100%; }
  .product-tabs { gap: 2px; }
  .product-tab { padding: 10px 6px; min-height: 44px; font-size: 12px; }
  .product-pane { min-width: 0; }
  .product-pane .panel-heading { flex-wrap: wrap; gap: 8px; }
  .product-pane .panel-heading h4 { font-size: 13px; }
  .product-pane .panel-heading button { padding: 9px 8px; font-size: 12px; }
  .product-pane table, .competitor-details table, #page-monitor table { min-width: 0; width: 100%; white-space: normal; }
  .product-room-table, .product-room-table tbody, #page-monitor table, #room-rows, .competitor-details table, .competitor-details tbody { display: block; }
  .product-room-table thead, #page-monitor thead, .competitor-details thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
  .product-room-table tr, #room-rows > tr, .competitor-details tr { display: block; min-width: 0; margin: 10px 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: white; }
  .product-room-table td, #room-rows > tr > td, .competitor-details td { display: block; max-width: none; width: 100%; padding: 7px 0; border: 0; white-space: normal; overflow-wrap: anywhere; line-height: 1.65; }
  .product-room-table td::before, #room-rows > tr:not(.message-row) > td::before, .competitor-details td:not([colspan])::before { display: block; color: var(--muted); font-size: 11px; margin-bottom: 3px; }
  .product-room-table td:nth-child(1)::before { content: '主播 / 直播间'; }
  .product-room-table td:nth-child(2)::before { content: '开播状态'; }
  .product-room-table td:nth-child(3)::before { content: '产品讲解状态'; }
  .product-room-table td:nth-child(4)::before { content: '录音与转写'; }
  .product-room-table td:nth-child(5)::before { content: '最近检查'; }
  .product-room-table td:nth-child(6)::before { content: '操作'; }
  #room-rows > tr:not(.message-row) > td:nth-child(1)::before { content: '直播间名称'; }
  #room-rows > tr:not(.message-row) > td:nth-child(2)::before { content: '日期'; }
  #room-rows > tr:not(.message-row) > td:nth-child(3)::before { content: '时间 · UTC+8'; }
  #room-rows > tr:not(.message-row) > td:nth-child(4)::before { content: '用户主页链接'; }
  #room-rows > tr:not(.message-row) > td:nth-child(5)::before { content: '监控状态'; }
  #room-rows > tr:not(.message-row) > td:nth-child(6)::before { content: '操作'; }
  .competitor-details td:nth-child(1)::before { content: '搜索结果'; }
  .competitor-details td:nth-child(2)::before { content: '状态'; }
  .competitor-details td:nth-child(3)::before { content: '商品与匹配依据'; }
  #room-rows .room-name strong { max-width: none; white-space: normal; overflow: visible; }
  #room-rows .room-name > div { min-width: 0; }
  #room-rows .room-avatar { flex-shrink: 0; }
  #room-rows .message-row { margin-top: -11px; border-top: 0; border-radius: 0 0 10px 10px; }
  .candidate-title { line-height: 1.7; font-size: 12px; }
  .profile-link { max-width: none; white-space: normal; overflow: visible; }
  .pill:not(.recording):not(.is-recording) { background: #f1f2f4; color: #515866; }
  .competitor-details { padding: 12px 0; overflow-wrap: anywhere; }
  .archive-item { min-width: 0; gap: 12px; }
  .archive-item > div { min-width: 0; max-width: 100%; }
  .archive-actions a, .archive-actions button, #room-rows .text-button, .product-room-table .text-button, .brand-heading .text-button, .product-card-heading .text-button { min-height: 44px; display: inline-flex; align-items: center; }
  .archive-actions .audio-files { width: 100%; overflow-wrap: anywhere; }
  .table-toolbar, .panel-heading { gap: 10px; flex-wrap: wrap; }
  .stats { gap: 10px; }
  .stat { padding: 14px 12px; min-width: 0; }
  .notice { overflow-wrap: anywhere; }
  .form-columns, #room-product-checkboxes { grid-template-columns: minmax(0, 1fr); }
  input, select, textarea { min-width: 0; max-width: 100%; font-size: 16px; }
  fieldset { min-width: 0; margin-inline: 0; }
  #room-form .product-toggle { min-height: 44px; overflow-wrap: anywhere; }
  #room-form .product-toggle input { flex-shrink: 0; }
  dialog, dialog.wide-dialog, dialog.auth-dialog { width: calc(100% - 24px); max-width: none; max-height: calc(100dvh - 24px); padding: 18px; overflow-y: auto; overscroll-behavior: contain; }
  .dialog-heading { margin-bottom: 14px; }
  .dialog-heading > div { min-width: 0; overflow-wrap: anywhere; }
  .dialog-heading .icon-button { width: 40px; height: 40px; }
  .dialog-actions { position: sticky; bottom: -18px; background: white; margin-top: 16px; padding: 12px 0; flex-wrap: wrap; gap: 8px; z-index: 1; }
  .dialog-actions .button, .dialog-actions .text-button { min-height: 44px; }
  #delete-room { margin-right: auto; }
  .transcript-page-content { padding: 14px 12px; overflow-wrap: anywhere; }
  .transcript-line { grid-template-columns: 60px minmax(0, 1fr); }
  #live-transcript-actions { display: flex; flex-wrap: wrap; gap: 8px; }
  .footer { flex-wrap: wrap; }
}
