﻿:root {
  --color-primary: #12372a;
  --color-bg: #f7f3ea;
  --color-card: #fffdf8;
  --color-border: #e6e1d8;
  --color-text: #111111;
  --color-muted: #66736b;
  --color-danger: #d94841;
  --color-warning: #c8a45d;
  --color-jade: #a8c3a0;
  --color-dark: #111111;
  --radius-card: 8px;
  --shadow-card: 0 16px 40px rgba(18, 55, 42, .08);
  --space-sm: 8px;
  --space-md: 14px;
  --space-lg: 22px;
  --font-size-title: 22px;
  --font-size-body: 14px;
  --font-size-small: 12px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  font-size: 14px;
  color: var(--color-text);
  background: var(--color-bg);
}
button, input, select, textarea { font: inherit; }
button {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: var(--color-primary);
  cursor: pointer;
  white-space: nowrap;
}
button.light, button.ghost {
  color: #172033;
  background: #eef2f7;
}
button.ghost { color: #fff; background: rgba(255,255,255,.16); }
button.danger, button.active-danger { background: var(--color-danger); }
button.black { background: #111827; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
button.green { background: #36b452; }
button.state-idle {
  color: #344054;
  border: 1px solid #d9e2ef;
  background: #fff;
}
button.state-on {
  box-shadow: 0 8px 18px rgba(54, 180, 82, .18);
}
button.state-off {
  box-shadow: 0 8px 18px rgba(238, 77, 77, .18);
}
button.link {
  min-height: auto;
  padding: 0 4px;
  color: #56a2ff;
  background: transparent;
}
button.tool-card {
  color: #172033;
  background: #fff;
  text-align: left;
}
input, select, textarea {
  width: 100%;
  border: 1px solid #d6dde8;
  border-radius: 6px;
  background: #fff;
}
input, select { height: 38px; padding: 0 10px; }
textarea { min-height: 96px; padding: 10px; resize: vertical; }
label { display: grid; gap: 6px; color: #4b5565; font-size: 14px; }
.upload-field {
  position: relative;
  min-height: 76px;
  align-content: center;
  padding: 12px;
  border: 1px dashed #9fb2d0;
  border-radius: 8px;
  background: #f8fbff;
  cursor: pointer;
}
.upload-field input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.upload-field span {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border-radius: 6px;
  color: #12372a;
  background: #edf3e9;
}
.avatar-preview {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid #e6ebf2;
  border-radius: 8px;
  background: #fff;
}
.avatar-preview img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
}
h1, h2, h3, p { margin: 0; }
h1 { font-size: 21px; }
h2 { font-size: 16px; }
h3 { font-size: 14px; }
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 18% 16%, rgba(168, 195, 160, .34), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(200, 164, 93, .18), transparent 28%),
    linear-gradient(135deg, #fbf8f1 0%, #f7f3ea 54%, #edf3e9 100%);
}
.login-card {
  width: min(980px, 100%);
  min-height: 580px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 380px;
  overflow: hidden;
  border: 1px solid rgba(18, 55, 42, .13);
  border-radius: 10px;
  background: rgba(255, 252, 246, .94);
  box-shadow: 0 24px 70px rgba(18, 55, 42, .13);
}
.login-visual {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 60px 54px;
  color: #12372a;
  background:
    radial-gradient(circle at 70% 22%, rgba(168, 195, 160, .28), transparent 34%),
    radial-gradient(circle at 18% 78%, rgba(200, 164, 93, .12), transparent 32%),
    linear-gradient(140deg, rgba(247, 243, 234, .96), rgba(237, 243, 233, .9));
}
.login-visual::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(200, 164, 93, .18);
  border-radius: 10px;
  pointer-events: none;
}
.login-visual::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -92px;
  bottom: -92px;
  border-radius: 50%;
  border: 1px solid rgba(18, 55, 42, .07);
  background: radial-gradient(circle, rgba(255,255,255,.18), transparent 62%);
  pointer-events: none;
}
.login-visual h1 {
  max-width: 520px;
  font-size: 38px;
  letter-spacing: 0;
  line-height: 1.2;
}
.login-brand-block {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 18px;
  transform: translateY(14px);
}
.login-brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 296px;
  height: 296px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,253,248,.68), rgba(255,253,248,.16) 58%, transparent 72%);
  box-shadow:
    0 26px 58px rgba(18, 55, 42, .12),
    0 0 0 1px rgba(200, 164, 93, .08);
}
.login-brand-mark::before,
.login-brand-mark::after {
  content: none;
}
.login-brand-mark img {
  width: 112%;
  height: 112%;
  object-fit: contain;
  display: block;
  border-radius: 50%;
  filter: drop-shadow(0 18px 26px rgba(18, 55, 42, .11));
}
.login-poem-watermark {
  position: absolute;
  inset: 44px 48px;
  z-index: 1;
  color: rgba(49, 89, 70, .48);
  font-family: "鍗庢枃琛屾シ", "STXingkai", "鍗庢枃鏂伴瓘", "鏂规鑸掍綋", "FZShuTi", "KaiTi", STKaiti, "Microsoft YaHei", serif;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: .18em;
  line-height: 1;
  opacity: .82;
  pointer-events: none;
  text-shadow: 0 1px 0 rgba(255,255,255,.48), 0 12px 26px rgba(18,55,42,.08);
}
.login-poem-watermark span {
  position: absolute;
  top: 26px;
  bottom: 28px;
  display: block;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  white-space: nowrap;
}
.login-poem-watermark span:first-child {
  left: 8px;
  transform: rotate(-1.2deg);
}
.login-poem-watermark span:last-child {
  right: 8px;
  transform: rotate(1.2deg);
}
.login-brand-text {
  display: grid;
  justify-items: center;
  gap: 13px;
  color: #12372a;
  text-align: center;
  margin-top: 4px;
}
.login-brand-text strong {
  font-family: KaiTi, STKaiti, "Microsoft YaHei", serif;
  font-size: 46px;
  font-weight: 700;
  letter-spacing: .22em;
  line-height: 1.1;
  text-indent: .22em;
}
.login-brand-text i {
  display: block;
  width: 196px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(200, 164, 93, .96), transparent);
}
.login-brand-text span {
  color: rgba(18, 55, 42, .72);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .28em;
  text-indent: .28em;
  margin-top: 6px;
}
.login-form {
  display: grid;
  align-content: center;
  gap: 19px;
  padding: 52px 46px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,253,248,.64));
}
.login-form-head {
  display: grid;
  gap: 10px;
  margin-bottom: 8px;
}
.login-form-head span {
  color: rgba(18, 55, 42, .58);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
}
.login-form h2 {
  color: #12372a;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
}
.login-form label {
  gap: 8px;
  color: rgba(17,17,17,.72);
  font-size: 13px;
}
.login-form input {
  height: 46px;
  border-color: rgba(18, 55, 42, .16);
  border-radius: 10px;
  background: rgba(255,255,255,.88);
  color: #111;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.login-form input:focus {
  outline: 0;
  border-color: rgba(18, 55, 42, .48);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(168, 195, 160, .18);
}
.login-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 4px;
  border-radius: 10px;
  color: #fffdf8;
  background:
    linear-gradient(135deg, rgba(200,164,93,.18), transparent 34%),
    linear-gradient(135deg, #12372a, #0b241b);
  box-shadow: 0 16px 30px rgba(18, 55, 42, .2);
  font-weight: 800;
}
.login-form button span {
  transform: translateY(-.5px);
}
.login-form .login-test-accounts {
  margin-top: -2px;
  color: rgba(102, 115, 107, .58);
  font-size: 11px;
  line-height: 1.7;
}
.login.hide-test-accounts .login-test-accounts {
  display: none;
}
.panel {
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-card);
  box-shadow: var(--shadow-card);
}
.notice {
  padding: 12px 14px;
  border-radius: 8px;
  color: #075985;
  background: #e0f2fe;
}
.portal {
  min-height: 100vh;
  display: grid;
  gap: 22px;
  align-content: start;
  padding: 34px;
}
.portal-hero {
  min-height: 210px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 32px;
  border-radius: 10px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(12, 23, 42, .88), rgba(24, 39, 61, .62)),
    url("https://images.unsplash.com/photo-1560472355-536de3962603?auto=format&fit=crop&w=1800&q=80") center/cover;
}
.portal-hero h1 { max-width: 760px; font-size: 34px; }
.portal-hero p { max-width: 780px; margin-top: 10px; color: #dbe7f5; line-height: 1.65; }
.eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #fff7dc;
  background: rgba(200, 164, 93, .28);
  font-size: 13px;
}
.portal-grid {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(0, 1.4fr);
  gap: 18px;
}
.stack { display: grid; gap: 12px; }
.field-row, .three-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.field-row.two { grid-template-columns: 1fr auto; align-items: end; }
.field-row.four { grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr) minmax(180px, 1fr) auto; align-items: end; }
.room-list, .card-grid, .mini-list { display: grid; gap: 10px; }
.room-card, .item-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e6ebf2;
  border-radius: 8px;
  background: #fff;
}
.room-card {
  grid-template-columns: 76px 1fr auto;
  align-items: center;
}
.room-card img, .table-cover {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 6px;
}
.room-card img { width: 76px; height: 76px; }
.item-card.compact { grid-template-columns: 1fr auto; align-items: center; }
.section-head, .topbar, .card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.subtle { color: #667085; font-size: 14px; }
.workspace {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 222px minmax(0, 1fr);
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  padding: 18px 14px;
  color: #fff;
  background: #101a16;
}
.brand {
  display: block;
  padding: 8px 6px 12px;
  border-bottom: 1px solid rgba(200, 164, 93, .22);
}
.brand strong {
  display: block;
  color: #f7f3ea;
  font-size: 22px;
  letter-spacing: .08em;
}
.brand small {
  display: block;
  margin-top: 4px;
  color: #a8c3a0;
  font-size: 12px;
}
.brand small + small { color: #b8c1bd; }
.nav { display: grid; align-content: start; gap: 6px; overflow: auto; }
.nav-group {
  display: grid;
  gap: 5px;
  padding: 6px 0 10px;
}
.nav-group > span {
  padding: 8px 12px 4px;
  color: #c8a45d;
  font-size: 12px;
  font-weight: 700;
}
.nav button, .logout {
  justify-content: flex-start;
  width: 100%;
  min-height: 40px;
  color: #d8e0ec;
  background: transparent;
  text-align: left;
}
.nav button.active {
  color: #fff;
  background: #12372a;
  box-shadow: inset 3px 0 0 #c8a45d;
}
.logout { color: #fecaca; }
.main { display: grid; gap: 18px; align-content: start; padding: 20px; }
.topbar {
  padding: 16px 18px;
  border: 1px solid rgba(214, 221, 232, .92);
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
}
.top-actions, .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.stat-card {
  display: grid;
  gap: 8px;
  min-height: 96px;
  align-content: center;
  padding: 16px;
  border: 1px solid rgba(214, 221, 232, .92);
  border-radius: 8px;
  background: #fff;
}
.stat-card span { color: #667085; font-size: 13px; }
.stat-card strong { font-size: 25px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 170px auto auto;
  gap: 10px;
}
.broadcast-screen {
  min-height: calc(100vh - 130px);
  padding: 18px;
  border-radius: 12px;
  color: #fff;
  background:
    radial-gradient(circle at 22% 0%, rgba(64, 99, 190, .34), transparent 32%),
    linear-gradient(135deg, #151b2a, #202a40 56%, #172034);
}
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-card);
  box-shadow: var(--shadow-card);
}
.page-head h2 { font-size: 24px; color: var(--color-primary); }
.dashboard-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  padding: 24px;
  border: 1px solid rgba(200, 164, 93, .24);
  border-radius: var(--radius-card);
  color: #f7f3ea;
  background: linear-gradient(135deg, #12372a, #1d4537 58%, #111111);
  box-shadow: var(--shadow-card);
}
.dashboard-hero h2 { margin-top: 8px; font-size: 28px; }
.dashboard-hero p { margin-top: 8px; color: #d6e4d2; }
.eyebrow.light { color: #12372a; background: #f7f3ea; }
.stats-grid.refined .stat-card {
  min-height: 112px;
  border-color: var(--color-border);
  background: var(--color-card);
}
.stat-card small { color: var(--color-muted); }
.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
  margin-top: 16px;
}
.live-status-card {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: #fff;
}
.live-status-card img { width: 118px; height: 86px; object-fit: cover; border-radius: 6px; }
.quick-entry-grid, .risk-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.risk-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}
.notice.jade { color: #12372a; background: #edf3e9; }
.pill.gold, .status.gold { color: #583d08; background: #fff2c6; }
.account-form .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.span-2 { grid-column: span 2; }
.permission-builder {
  display: grid;
  gap: 12px;
}
.permission-builder section {
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: #fff;
}
.risk-card {
  padding: 14px;
  border: 1px solid rgba(217, 72, 65, .18);
  border-radius: var(--radius-card);
  background: #fff7f5;
}
.role-page { margin-bottom: 16px; }
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 9999;
  max-width: 340px;
  padding: 12px 16px;
  border-radius: 999px;
  color: #fff;
  background: #12372a;
  box-shadow: 0 18px 42px rgba(0,0,0,.22);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -44%) scale(.96);
  transition: opacity .18s ease, transform .18s ease;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.toast.warn { background: #c8a45d; color: #111; }
.toast.error { background: var(--color-danger); }
.refactor-console {
  padding: 16px;
  background:
    radial-gradient(circle at 18% 0%, rgba(168, 195, 160, .16), transparent 28%),
    linear-gradient(135deg, #0b1210, #14251f 58%, #111111);
}
.console-top-status {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}
.console-top-status strong { display: block; margin-top: 8px; font-size: 20px; color: #fff; }
.console-top-status small { color: #9fb2aa; }
.console-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.console-metrics span {
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  color: #dce7df;
  background: rgba(255,255,255,.06);
}
.console-three-columns {
  display: grid;
  grid-template-columns: 330px minmax(420px, 1fr) 360px;
  gap: 16px;
}
.entrance-panel, .operation-panel, .refined-comments { min-width: 0; }
.operation-panel { display: grid; gap: 18px; }
.entrance-list, .comment-list { display: grid; gap: 10px; }
.entrance-item {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  background: rgba(255,255,255,.06);
}
.entrance-item p, .entrance-meta { color: #aebbb4; font-size: 12px; }
.entrance-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.status {
  padding: 2px 7px;
  border-radius: 999px;
  color: #dff0e5;
  background: rgba(168, 195, 160, .18);
}
.status.warn { color: #ffd7d7; background: rgba(217, 72, 65, .24); }
.mini-preview {
  margin-top: 14px;
  position: relative;
  transform-origin: top left;
}
.mini-preview .phone {
  width: 100%;
  min-height: 500px;
}
.manual-send-grid {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) auto;
  column-gap: 12px;
  row-gap: 14px;
  align-items: end;
}
.manual-vest-card,
.quick-comment-card {
  padding: 20px;
}
.manual-vest-card .section-head,
.quick-comment-card .section-head {
  margin-bottom: 16px;
}
.manual-send-grid label,
.quick-comment-card .comment-add {
  display: grid;
  gap: 8px;
}
.manual-send-grid select,
.manual-send-grid input,
.quick-comment-card .comment-add input {
  min-height: 42px;
}
.manual-send-grid button {
  min-height: 42px;
  align-self: end;
}
.recent-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.09);
  color: #9fb2aa;
}
.recent-line span {
  margin-right: 2px;
  line-height: 32px;
}
.quick-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 14px;
}
.quick-groups button {
  min-height: 34px;
  padding: 0 14px;
  color: #dbe7df;
  background: rgba(255,255,255,.08);
}
.quick-groups button.active { color: #111; background: #c8a45d; }
.console-quick-grid {
  gap: 10px;
}
.console-quick-grid button {
  min-height: 36px;
  padding: 0 14px;
  color: #12241d;
  background: #f7f3ea;
}
.compact-desk { align-content: start; }
.refined-comments .comment-item em {
  margin-left: 8px;
  color: #c8a45d;
  font-style: normal;
  font-size: 12px;
}
.refined-comments .comment-item small {
  color: #9fb2aa;
  font-size: 12px;
}
.vest-comment { border-color: rgba(200, 164, 93, .42) !important; }
.invite-board.inline { margin-top: 14px; }
.left-invite-board {
  margin-top: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(200, 164, 93, .18), transparent 28%),
    rgba(18, 55, 42, .38);
}
.screen-head {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) minmax(360px, 1fr) minmax(360px, 1fr);
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
.screen-head h2 { text-align: center; font-size: 20px; }
.screen-grid {
  display: grid;
  grid-template-columns: 300px minmax(460px, 1fr) 360px;
  gap: 16px;
}
.left-column, .center-column, .right-column { display: grid; gap: 14px; align-content: start; }
.live-preview {
  position: relative;
  padding: 0;
  border: 1px solid #303b55;
  border-radius: 8px;
  background: #111827;
}
.expand {
  position: absolute;
  z-index: 4;
  right: 10px;
  top: 10px;
  min-height: 28px;
  padding: 0 10px;
  background: rgba(47,109,246,.9);
}
.phone {
  position: relative;
  height: 520px;
  overflow: hidden;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(rgba(7, 10, 18, .28), rgba(7, 10, 18, .82)),
    url("https://images.unsplash.com/photo-1618220179428-22790b461013?auto=format&fit=crop&w=900&q=80") center/cover;
}
.phone.small-phone { height: 470px; }
.phone-profile {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 12px;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(0,0,0,.38);
  font-size: 13px;
}
.phone-profile strong { font-size: 14px; }
.phone-profile p { font-size: 12px; }
.avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #a8c3a0;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.phone-status {
  position: absolute;
  right: 12px;
  top: 90px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.45);
  font-size: 12px;
}
.phone-messages {
  position: absolute;
  left: 12px;
  right: 78px;
  bottom: 78px;
  display: grid;
  gap: 6px;
  max-height: 310px;
  overflow: hidden;
}
.bubble {
  width: fit-content;
  max-width: 100%;
  padding: 5px 8px;
  border-radius: 12px;
  background: rgba(0,0,0,.46);
  font-size: 13px;
  line-height: 1.35;
}
.rail {
  position: absolute;
  right: 12px;
  bottom: 96px;
  display: grid;
  gap: 10px;
}
.rail button {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  font-size: 12px;
}
.phone-input {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(0,0,0,.52);
}
.phone-input input { border: 0; border-radius: 999px; background: rgba(255,255,255,.16); color: #fff; }
.channel-phone {
  isolation: isolate;
  height: 100%;
  min-height: 640px;
  border-radius: 0;
  color: #fff;
  background: #111;
  font-size: 13px;
}
.mini-preview .channel-phone {
  min-height: 520px;
  border-radius: 8px;
}
.channel-live-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.1) 42%, rgba(0,0,0,.76)),
    url("https://images.unsplash.com/photo-1618220179428-22790b461013?auto=format&fit=crop&w=900&q=80") center / cover;
  filter: saturate(.9);
}
.channel-phone::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 72% 20%, rgba(200,164,93,.16), transparent 24%),
    linear-gradient(90deg, rgba(18,55,42,.22), transparent 46%);
}
.channel-topbar {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 14px;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(0,0,0,.42), rgba(0,0,0,.2));
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
  backdrop-filter: blur(10px);
}
.channel-host {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
}
.channel-host .avatar {
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 999px;
  background: #f7f3ea;
}
.channel-host .avatar img { width: 100%; height: 100%; object-fit: cover; }
.channel-host strong {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.channel-host p {
  overflow: hidden;
  color: rgba(255,255,255,.64);
  font-size: 11px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.channel-host-icons {
  display: flex;
  gap: 8px;
}
.channel-host-icons button {
  width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  color: rgba(255,255,255,.88);
  background: rgba(255,255,255,.08);
  font-size: 19px;
}
.channel-view-meta {
  grid-column: 1 / 3;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  color: rgba(255,255,255,.88);
  font-size: 15px;
  white-space: nowrap;
}
.channel-view-meta span {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.channel-lite-actions {
  display: flex;
  gap: 7px;
}
.channel-lite-actions button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.1);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
  font-size: 11px;
  font-weight: 700;
}
.channel-lite-actions i {
  font-style: normal;
  font-size: 12px;
}
.channel-lite-actions button.is-loading i {
  animation: spin .7s linear infinite;
}
.channel-live-pill {
  display: flex;
  gap: 6px;
  align-items: center;
  min-height: 30px;
  padding: 0 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0,0,0,.42);
  backdrop-filter: blur(10px);
  font-size: 11px;
}
.channel-live-pill span::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 4px;
  border-radius: 999px;
  background: #ff4d4f;
  vertical-align: middle;
}
.channel-stage-copy {
  position: absolute;
  left: 16px;
  top: 130px;
  max-width: 72%;
  color: rgba(255,255,255,.92);
}
.channel-stage-copy span {
  display: block;
  margin-bottom: 6px;
  color: #dbc486;
  font-size: 12px;
}
.channel-stage-copy strong {
  display: block;
  font-size: 24px;
  line-height: 1.18;
}
.channel-stage-copy p {
  margin-top: 6px;
  color: rgba(255,255,255,.72);
  font-size: 12px;
}
.channel-wish {
  position: absolute;
  left: 18px;
  top: 132px;
  z-index: 4;
  padding: 10px 18px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 100, 78, .82), rgba(216, 134, 81, .62));
  font-size: 17px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}
.channel-lucky-bag {
  position: absolute;
  left: 18px;
  top: 126px;
  z-index: 4;
  display: grid;
  justify-items: center;
  gap: 3px;
  width: 54px;
  min-height: 68px;
  padding: 7px 5px 6px;
  border-radius: 12px;
  color: #fff5e6;
  background: linear-gradient(180deg, #e85d45, #b92f27);
  box-shadow: 0 12px 24px rgba(185,47,39,.26);
}
.channel-lucky-bag b {
  display: grid;
  place-items: center;
  width: 38px;
  height: 36px;
  border-radius: 10px;
  color: #fff7e8;
  background: rgba(255,255,255,.14);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
  font-size: 19px;
}
.channel-lucky-bag span {
  font-size: 12px;
  font-weight: 800;
}
.channel-pinned-card {
  position: absolute;
  left: 84px;
  right: 20px;
  top: 128px;
  z-index: 4;
  display: grid;
  gap: 6px;
  padding: 12px 40px 13px 14px;
  border-radius: 18px;
  color: #111;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 36px rgba(0,0,0,.12);
  transition: opacity .42s ease, transform .42s ease, visibility .42s ease;
}
.channel-pinned-card button {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 24px;
  height: 24px;
  min-height: 24px;
  padding: 0;
  color: rgba(17,17,17,.56);
  background: rgba(17,17,17,.06);
}
.channel-pinned-card.pin-dismissed {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
}
.channel-pinned-card span {
  color: rgba(17,17,17,.52);
  font-size: 12px;
  font-weight: 800;
}
.channel-pinned-card strong {
  color: #111;
  font-size: 15px;
  line-height: 1.45;
}
.channel-action-rail {
  position: absolute;
  right: 10px;
  bottom: 76px;
  z-index: 3;
  display: grid;
  gap: 10px;
}
.channel-action-rail button {
  display: grid;
  place-items: center;
  gap: 3px;
  width: 48px;
  min-height: 48px;
  padding: 5px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0,0,0,.32);
  backdrop-filter: blur(10px);
  font-size: 11px;
}
.channel-action-rail b { font-size: 12px; }
.channel-action-rail span {
  color: rgba(255,255,255,.72);
  font-size: 10px;
}
.channel-comment-layer {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 112px;
  z-index: 2;
  display: grid;
  gap: 6px;
  align-content: end;
  max-height: 286px;
  overflow: hidden;
  pointer-events: none;
}
.channel-system-line,
.channel-comment {
  width: fit-content;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 14px;
  color: rgba(255,255,255,.94);
  background: rgba(0,0,0,.36);
  backdrop-filter: blur(8px);
  font-size: 12px;
  line-height: 1.35;
}
.channel-system-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 16px;
}
.channel-system-line b {
  flex: 0 0 auto;
  padding: 4px 9px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #ff8b2f, #e76f51);
  font-size: 13px;
}
.channel-comment strong {
  margin-right: 5px;
  color: #e8d8a6;
  font-weight: 800;
}
.channel-quick-replies {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 66px;
  z-index: 4;
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.channel-quick-replies::-webkit-scrollbar { display: none; }
.channel-quick-replies button {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  color: #12372a;
  background: rgba(247,243,234,.94);
  font-size: 12px;
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
}
.channel-quick-replies button.active {
  color: #111;
  background: #c8a45d;
}
.channel-input {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px 42px 42px;
  gap: 7px;
  padding: 7px;
  border-radius: 18px;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(12px);
}
.channel-input input {
  height: 38px;
  border: 0;
  border-radius: 999px;
  color: #f7f3ea;
  background: rgba(255,255,255,.14);
  font-size: 12px;
}
.channel-input input::placeholder { color: rgba(247,243,234,.58); }
.channel-input button {
  min-width: 0;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}
.channel-input .send {
  color: #111;
  background: #c8a45d;
}
.channel-input .share,
.channel-input .like {
  padding: 0;
  color: #f7f3ea;
  background: rgba(255,255,255,.14);
  font-size: 12px;
}
.viewer-report-mask {
  position: absolute;
  inset: 0;
  z-index: 18;
  display: none;
  visibility: hidden;
  opacity: 0;
  background: rgba(0,0,0,.36);
  transition: opacity .24s ease, visibility .24s ease;
}
.viewer-report-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 19;
  display: none;
  gap: 12px;
  max-height: 58%;
  padding: 16px;
  border-radius: 22px 22px 0 0;
  color: #12372a;
  background: rgba(255,253,248,.96);
  box-shadow: 0 -18px 42px rgba(0,0,0,.24);
  transform: translateY(105%);
  transition: transform .28s ease;
}
.channel-phone.report-open .viewer-report-mask {
  display: block;
  visibility: visible;
  opacity: 1;
}
.channel-phone.report-open .viewer-report-sheet {
  display: grid;
  transform: translateY(0);
}
.viewer-report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.viewer-report-head strong { font-size: 16px; }
.viewer-report-head button {
  width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  color: #12372a;
  background: rgba(18,55,42,.08);
}
.viewer-report-sheet label {
  gap: 7px;
  color: rgba(18,55,42,.78);
  font-size: 12px;
  font-weight: 700;
}
.viewer-report-sheet textarea {
  min-height: 76px;
  border-color: rgba(18,55,42,.14);
  border-radius: 12px;
  background: #fff;
  font-size: 12px;
}
.viewer-upload-box {
  position: relative;
  display: grid;
  place-items: center;
  width: 86px;
  height: 72px;
  overflow: hidden;
  border: 1px dashed rgba(18,55,42,.24);
  border-radius: 12px;
  background: rgba(247,243,234,.72);
}
.viewer-upload-box input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.viewer-upload-box span {
  color: rgba(18,55,42,.52);
  font-size: 26px;
}
.viewer-upload-box img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.viewer-upload-box.has-image span { display: none; }
.viewer-upload-box.has-image img { display: block; }
.viewer-report-submit {
  color: #fffdf8;
  background: #12372a;
}
.single-live {
  min-height: 100vh;
  max-width: 430px;
  margin: 0 auto;
  background: #111;
}
.single-live .mini-page,
.single-live .phone {
  height: 100vh;
  min-height: 100vh;
}
.channel-workbench {
  display: grid;
  gap: 16px;
}
.channel-workbench-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, #fffdf8, #f4efe4);
  box-shadow: var(--shadow-card);
}
.channel-workbench-head h2 {
  margin-top: 6px;
  color: var(--color-primary);
  font-size: 26px;
}
.channel-workbench-head p {
  margin-top: 6px;
  color: var(--color-muted);
}
.channel-room-grid {
  display: grid;
  gap: 16px;
}
.channel-room-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-card);
  box-shadow: var(--shadow-card);
}
.channel-room-cover {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  border-radius: 8px;
  background: #111;
}
.channel-room-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.channel-room-cover span {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0,0,0,.5);
  font-size: 12px;
}
.channel-room-body {
  display: grid;
  gap: 14px;
  align-content: center;
}
.channel-room-body h3 {
  color: var(--color-primary);
  font-size: 20px;
}
.channel-room-body b { color: var(--color-primary); }
.channel-room-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.channel-room-stats span {
  padding: 10px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-muted);
  background: #fbf8f1;
  font-size: 12px;
}
.channel-room-stats strong {
  display: block;
  margin-top: 5px;
  color: var(--color-text);
}
.channel-assistant-page .notice { margin-bottom: 4px; }
.channel-user-list {
  display: grid;
  gap: 10px;
}
.channel-user-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: #fffdf8;
}
.channel-user-card p {
  margin-top: 4px;
  color: var(--color-muted);
}
.channel-user-card > div:nth-child(2) {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  color: var(--color-muted);
  font-size: 12px;
}
.frontend-ui-page {
  display: grid;
  gap: 16px;
}
.sovereign-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(200, 164, 93, .72);
  border-radius: 999px;
  color: #f7f3ea;
  background:
    linear-gradient(135deg, rgba(200, 164, 93, .16), transparent 44%),
    linear-gradient(135deg, #12372a, #07100d);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.08),
    0 12px 28px rgba(18, 55, 42, .18);
  letter-spacing: 0;
}
.sovereign-badge::before,
.sovereign-badge::after {
  content: "";
  width: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c8a45d);
}
.sovereign-badge::after {
  background: linear-gradient(90deg, #c8a45d, transparent);
}
.sovereign-badge i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #c8a45d;
  box-shadow: 0 0 0 4px rgba(200, 164, 93, .14);
}
.sovereign-badge b {
  color: #e7d39a;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}
.sovereign-badge em {
  color: #f7f3ea;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}
.frontend-preview-grid {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(300px, 1fr) 390px;
  gap: 16px;
  align-items: start;
}
.frontend-preview-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-card);
  box-shadow: var(--shadow-card);
}
.frontend-switcher button.active {
  color: #111;
  background: var(--color-warning);
}
.frontend-single-workbench {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) 360px;
  gap: 16px;
  align-items: start;
}
.frontend-preview-card.single-editor {
  min-height: 820px;
}
.frontend-single-preview {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 740px;
  padding: 12px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 0%, rgba(168, 195, 160, .18), transparent 26%),
    linear-gradient(180deg, #f7f3ea, #eee8dc);
}
.frontend-config-panel {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: #fffdf8;
  box-shadow: var(--shadow-card);
}
.config-section {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fbf8f1;
}
.config-section strong {
  color: var(--color-primary);
}
.switch-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid rgba(18,55,42,.08);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--color-text);
}
.switch-line input {
  width: 16px;
  height: 16px;
}
.config-section input[type="range"] {
  width: 100%;
  margin-top: 8px;
}
.is-hidden-ui {
  display: none !important;
}
.frontend-ui-page {
  --front-comment-font: 13px;
  --front-comment-alpha: .34;
}
.frontend-ui-page .channel-comment,
.frontend-ui-page .channel-system-line,
.frontend-ui-page .anchor-comment,
.frontend-ui-page .assistant-comment,
.frontend-ui-page .assistant-entry-line {
  font-size: var(--front-comment-font);
  background-color: rgba(0,0,0,var(--front-comment-alpha));
}
.frontend-anchor-preview {
  display: grid;
  gap: 14px;
}
.anchor-live-phone {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 390px;
  min-height: 720px;
  margin: 0 auto;
  border-radius: 22px;
  color: #fff;
  background: #111;
  box-shadow: 0 22px 45px rgba(0,0,0,.18);
}
.anchor-camera-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.14), rgba(0,0,0,.08) 44%, rgba(0,0,0,.86)),
    url("https://images.unsplash.com/photo-1618220179428-22790b461013?auto=format&fit=crop&w=900&q=80") center / cover;
  filter: saturate(.92);
}
.anchor-status-bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 4;
  display: none;
  justify-content: space-between;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  background: rgba(0,0,0,.92);
}
.anchor-status-bar strong {
  font-size: 20px;
  letter-spacing: .04em;
}
.anchor-status-bar span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #22c55e;
}
.anchor-status-bar b {
  color: rgba(255,255,255,.9);
  font-size: 12px;
  font-weight: 700;
}
.anchor-host-panel {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 12px;
  z-index: 3;
  display: grid;
  gap: 10px;
  padding: 8px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(0,0,0,.42), rgba(0,0,0,.2));
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
  backdrop-filter: blur(10px);
}
.anchor-host-line {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}
.anchor-host-line .avatar {
  overflow: hidden;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #f7f3ea;
}
.anchor-host-line .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.anchor-host-line strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 18px;
}
.anchor-top-icons {
  display: flex;
  gap: 6px;
}
.anchor-top-icons button {
  width: 26px;
  height: 26px;
  min-height: 26px;
  padding: 0;
  color: rgba(255,255,255,.86);
  background: rgba(255,255,255,.08);
  font-size: 18px;
}
.anchor-live-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  overflow: hidden;
  color: rgba(255,255,255,.85);
  font-size: 13px;
  white-space: nowrap;
}
.anchor-live-meta em {
  padding: 5px 10px;
  border-radius: 999px;
  color: #fff;
  background: #ff704d;
  font-style: normal;
}
.anchor-live-meta b {
  color: #fff;
  font-weight: 700;
}
.anchor-product-panel {
  position: absolute;
  right: 10px;
  top: 160px;
  z-index: 2;
  width: 120px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(58, 36, 11, .45);
  backdrop-filter: blur(8px);
}
.anchor-product-panel strong,
.anchor-product-panel span {
  display: block;
  color: #fff;
  font-weight: 800;
}
.anchor-product-panel span {
  margin-top: 12px;
  color: rgba(255,255,255,.9);
}
.anchor-product-panel p {
  margin-top: 8px;
  color: rgba(255,255,255,.78);
  font-size: 12px;
}
.anchor-comment-zone {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 76px;
  z-index: 3;
  display: grid;
  gap: 6px;
  max-height: 380px;
  padding: 0 12px;
  align-content: end;
}
.anchor-comment {
  display: flex;
  align-items: center;
  width: fit-content;
  max-width: 78%;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0,0,0,.34);
  backdrop-filter: blur(8px);
  font-size: 13px;
}
.anchor-comment.important {
  background: rgba(255, 113, 76, .62);
}
.anchor-comment b {
  margin-right: 8px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 112, 77, .9);
}
.anchor-comment span {
  color: #f7f3ea;
  font-weight: 800;
}
.anchor-comment p {
  overflow: hidden;
  margin: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.anchor-product-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 70px;
  gap: 10px;
  align-items: center;
  max-width: 320px;
  padding: 10px;
  border-radius: 14px;
  color: #111;
  background: rgba(255,255,255,.94);
}
.anchor-product-card img {
  width: 74px;
  height: 74px;
  object-fit: cover;
  border-radius: 8px;
}
.anchor-product-card strong,
.anchor-product-card p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.anchor-product-card p {
  margin-top: 3px;
  color: #888;
}
.anchor-product-card b {
  display: block;
  margin-top: 7px;
  color: #ff5b42;
  font-size: 18px;
}
.anchor-product-card button {
  min-height: 42px;
  border-radius: 10px;
  background: #ff674f;
}
.anchor-quick-line {
  display: flex;
  gap: 6px;
  overflow-x: auto;
}
.anchor-quick-line button {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: #12372a;
  background: rgba(247,243,234,.94);
  font-size: 12px;
}
.anchor-bottom-toolbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px 58px;
  gap: 12px;
  align-items: center;
  min-height: 66px;
  padding: 10px 12px;
  background: rgba(0,0,0,.94);
}
.anchor-bottom-toolbar label {
  display: flex;
  align-items: center;
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  color: rgba(255,255,255,.66);
  background: rgba(255,255,255,.18);
}
.anchor-bottom-toolbar button {
  min-height: 44px;
  border-radius: 999px;
  color: #f7f3ea;
  background: rgba(255,255,255,.2);
}
.anchor-bottom-toolbar .flip-camera {
  font-size: 22px;
}
.anchor-bottom-toolbar .settings {
  color: #111;
  background: #c8a45d;
}
.assistant-phone-preview {
  display: flex;
  justify-content: center;
  min-height: 720px;
  padding: 0;
  border-radius: 22px;
  color: #f7f3ea;
  background: transparent;
}
.assistant-live-phone {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 390px;
  min-height: 720px;
  border-radius: 22px;
  color: #fff;
  background: #111;
  box-shadow: 0 22px 45px rgba(0,0,0,.18);
}
.assistant-camera-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.04) 45%, rgba(0,0,0,.76)),
    url("https://images.unsplash.com/photo-1618220179428-22790b461013?auto=format&fit=crop&w=900&q=80") center / cover;
  filter: saturate(.9);
}
.assistant-host-panel {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 12px;
  z-index: 4;
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(0,0,0,.42), rgba(0,0,0,.2));
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
  backdrop-filter: blur(10px);
}
.assistant-host-line {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}
.assistant-host-line .avatar {
  overflow: hidden;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: #f7f3ea;
}
.assistant-host-line .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.assistant-host-line strong {
  overflow: hidden;
  color: rgba(255,255,255,.94);
  font-size: 18px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.assistant-top-icons {
  display: flex;
  gap: 6px;
}
.assistant-top-icons button {
  width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.1);
  font-size: 18px;
}
.assistant-live-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  overflow-x: auto;
  color: rgba(255,255,255,.86);
  font-size: 13px;
  white-space: nowrap;
}
.assistant-live-meta span,
.assistant-live-meta b {
  flex: 0 0 auto;
}
.assistant-live-meta b {
  color: #f7d98b;
  font-weight: 800;
}
.assistant-pin-card {
  position: absolute;
  left: 54px;
  right: 28px;
  top: 138px;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 26px;
  gap: 4px 8px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 18px;
  color: #111;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 36px rgba(0,0,0,.14);
}
.assistant-pin-card strong {
  color: rgba(17,17,17,.7);
  font-size: 12px;
}
.assistant-pin-card p {
  grid-column: 1 / 2;
  margin: 0;
  color: #111;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.5;
}
.assistant-pin-card button {
  grid-row: 1 / 3;
  grid-column: 2;
  min-height: 26px;
  padding: 0;
  border-radius: 999px;
  color: rgba(17,17,17,.48);
  background: rgba(255,255,255,.42);
}
.assistant-product-panel {
  position: absolute;
  right: 0;
  top: 260px;
  z-index: 3;
  width: 132px;
  padding: 10px;
  border-radius: 14px 0 0 14px;
  background: rgba(31, 23, 13, .46);
  backdrop-filter: blur(9px);
}
.assistant-product-panel img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 8px;
}
.assistant-product-panel strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: 14px;
}
.assistant-product-panel p {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  color: rgba(255,255,255,.78);
  font-size: 12px;
}
.assistant-product-panel b {
  color: #fff;
  font-weight: 800;
}
.assistant-comment-zone {
  position: absolute;
  left: 0;
  right: 56px;
  bottom: 78px;
  z-index: 4;
  display: grid;
  gap: 6px;
  max-height: 410px;
  padding: 0 12px;
  align-content: end;
}
.assistant-entry-line {
  width: fit-content;
  max-width: 100%;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0,0,0,.34);
  font-size: 13px;
  font-weight: 800;
}
.assistant-comment {
  display: flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 14px;
  color: #fff;
  background: rgba(0,0,0,.34);
  backdrop-filter: blur(8px);
  font-size: 13px;
}
.assistant-comment em {
  flex: 0 0 auto;
  margin-right: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 99, 71, .88);
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
}
.assistant-comment span {
  flex: 0 0 auto;
  color: rgba(255,255,255,.8);
  font-weight: 800;
}
.assistant-comment p {
  overflow: hidden;
  margin: 0;
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.assistant-product-card {
  max-width: 300px;
  grid-template-columns: 70px minmax(0, 1fr) 62px;
}
.assistant-vest-dock {
  position: absolute;
  right: 10px;
  bottom: 116px;
  z-index: 7;
  display: grid;
  gap: 8px;
}
.assistant-vest-dock button {
  width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 999px;
  color: #111;
  background: rgba(200, 164, 93, .96);
  box-shadow: 0 10px 24px rgba(0,0,0,.2);
  font-size: 16px;
  font-weight: 900;
}
.assistant-vest-dock button:nth-child(2) {
  color: #f7f3ea;
  background: rgba(17,17,17,.58);
  backdrop-filter: blur(10px);
}
.assistant-vest-popover {
  position: absolute;
  right: 58px;
  bottom: 72px;
  z-index: 8;
  display: none;
  width: 226px;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  background: rgba(0,0,0,.68);
  box-shadow: 0 18px 36px rgba(0,0,0,.24);
  backdrop-filter: blur(14px);
}
.assistant-live-phone.vest-open .assistant-vest-popover {
  display: grid;
}
.assistant-vest-popover-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}
.assistant-vest-popover-head strong {
  color: #f7f3ea;
  font-size: 14px;
}
.assistant-vest-popover-head button {
  width: 26px;
  height: 26px;
  min-height: 26px;
  padding: 0;
  color: rgba(255,255,255,.76);
  background: rgba(255,255,255,.12);
}
.assistant-vest-panel {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 12px;
  z-index: 5;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(12px);
}
.assistant-vest-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.assistant-vest-tabs button {
  min-height: 34px;
  color: rgba(255,255,255,.74);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.1);
  font-size: 12px;
}
.assistant-vest-tabs button.active {
  color: #111;
  border-color: #c8a45d;
  background: #c8a45d;
}
.assistant-vest-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
}
.assistant-vest-row button {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 10px;
  color: #f7f3ea;
  background: rgba(255,255,255,.14);
  font-size: 12px;
}
.assistant-send-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 62px;
  gap: 8px;
}
.assistant-send-row input {
  height: 38px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,.14);
}
.assistant-send-row input::placeholder {
  color: rgba(255,255,255,.58);
}
.assistant-send-row button {
  min-height: 38px;
  color: #111;
  background: #c8a45d;
}
.assistant-phone-preview header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.assistant-phone-preview header strong {
  font-size: 18px;
}
.assistant-phone-preview header span {
  padding: 5px 10px;
  border-radius: 999px;
  color: #111;
  background: #c8a45d;
  font-size: 12px;
}
.assistant-stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.assistant-stat-row span {
  padding: 10px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  color: #b8c9c0;
  font-size: 12px;
}
.assistant-stat-row b {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: 18px;
}
.assistant-phone-preview .channel-user-card {
  grid-template-columns: minmax(0, 1fr) auto;
  border-color: rgba(255,255,255,.1);
  background: rgba(255,255,255,.07);
}
.assistant-phone-preview .channel-user-card strong {
  color: #fff;
}
.assistant-phone-preview .channel-user-card p,
.assistant-phone-preview .channel-user-card span {
  color: #b8c9c0;
}
.assistant-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
}
.assistant-actions button {
  color: #12372a;
  background: #f7f3ea;
}
.viewer-phone-frame {
  overflow: hidden;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  border-radius: 22px;
  background: #111;
  box-shadow: 0 22px 45px rgba(0,0,0,.16);
}
.viewer-phone-frame .channel-phone {
  min-height: 680px;
}

/* Frontend three-role preview polish */
.frontend-ui-page {
  --preview-phone-width: 360px;
  --preview-phone-height: 680px;
  --preview-radius: 22px;
  --preview-glass: linear-gradient(180deg, rgba(15, 18, 15, .46), rgba(15, 18, 15, .22));
  --preview-comment-bg: rgba(17, 17, 17, .38);
  --preview-gold: #c8a45d;
  --preview-green: #12372a;
}
.frontend-preview-grid {
  grid-template-columns: repeat(3, minmax(300px, 1fr));
  gap: 18px;
  align-items: stretch;
}
.frontend-preview-card {
  grid-template-rows: auto 1fr;
  gap: 16px;
  min-height: 780px;
  padding: 16px;
}
.frontend-preview-card .front-card-enter {
  width: 100%;
  margin-top: 2px;
}
.front-mode-actions button.active {
  color: #12372a;
  background: #f7f3ea;
  box-shadow: inset 0 0 0 1px rgba(200, 164, 93, .48);
}
.frontend-single-workbench {
  display: grid;
  grid-template-columns: minmax(420px, 560px) minmax(280px, 1fr);
  gap: 18px;
  align-items: start;
}
.frontend-single-phone {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-card);
  box-shadow: var(--shadow-card);
}
.frontend-single-phone .phone-preview-frame {
  --preview-phone-width: 390px;
  --preview-phone-height: 720px;
}
.frontend-control-panel {
  position: sticky;
  top: 20px;
}
.frontend-control-panel button {
  justify-self: start;
}
.frontend-preview-card .section-head {
  min-height: 72px;
  align-items: flex-start;
}
.frontend-preview-card .section-head h3 {
  font-size: 16px;
  line-height: 1.3;
}
.frontend-preview-card .section-head .subtle {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.45;
}
.phone-preview-frame {
  display: flex;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  max-width: var(--preview-phone-width);
  min-height: var(--preview-phone-height);
  margin: 0 auto;
  border-radius: var(--preview-radius);
}
.anchor-live-phone,
.assistant-live-phone,
.viewer-phone-frame {
  width: 100%;
  max-width: var(--preview-phone-width);
  min-height: var(--preview-phone-height);
  border-radius: var(--preview-radius);
  box-shadow: 0 18px 34px rgba(18, 55, 42, .16);
}
.viewer-phone-frame .channel-phone {
  width: 100%;
  min-height: var(--preview-phone-height);
  border-radius: var(--preview-radius);
}
.anchor-host-panel,
.assistant-host-panel,
.channel-topbar {
  left: 10px;
  right: 10px;
  top: 10px;
  min-height: 82px;
  padding: 10px;
  border: 0;
  border-radius: 16px;
  background: var(--preview-glass);
  box-shadow: 0 12px 28px rgba(0,0,0,.14);
  backdrop-filter: blur(12px);
}
.anchor-host-line,
.assistant-host-line {
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 9px;
}
.channel-host {
  grid-template-columns: 40px minmax(0, 1fr) 58px;
  gap: 9px;
}
.anchor-host-line .avatar,
.assistant-host-line .avatar,
.channel-host .avatar {
  width: 40px;
  height: 40px;
}
.anchor-host-line strong,
.assistant-host-line strong,
.channel-host strong {
  font-size: 14px;
  line-height: 1.2;
}
.channel-host p {
  max-width: 128px;
  font-size: 11px;
}
.channel-host button {
  min-height: 30px;
  padding: 0 9px;
  border-radius: 999px;
  background: #18b96f;
  font-size: 12px;
}
.anchor-top-icons,
.assistant-top-icons,
.channel-host-icons {
  gap: 6px;
}
.anchor-top-icons button,
.assistant-top-icons button,
.channel-host-icons button {
  width: 28px;
  height: 28px;
  min-height: 28px;
  border-radius: 9px;
  background: rgba(255,255,255,.11);
  font-size: 16px;
}
.anchor-live-meta,
.assistant-live-meta,
.channel-view-meta {
  gap: 7px;
  color: rgba(255,255,255,.86);
  font-size: 11px;
  line-height: 1.25;
}
.channel-view-meta {
  font-size: 14px;
}
.anchor-live-meta em {
  min-height: 24px;
  padding: 4px 8px;
  background: rgba(255, 111, 76, .86);
  font-size: 11px;
}
.anchor-comment,
.assistant-comment,
.channel-comment,
.channel-system-line,
.assistant-entry-line {
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 14px;
  background: var(--preview-comment-bg);
  color: rgba(255,255,255,.92);
  font-size: 12px;
  line-height: 1.35;
  backdrop-filter: blur(10px);
}
.anchor-comment.important,
.channel-system-line b,
.assistant-comment em {
  background: linear-gradient(135deg, rgba(229, 100, 75, .92), rgba(216, 139, 75, .82));
}
.channel-system-line {
  gap: 7px;
  font-size: 13px;
}
.anchor-comment span,
.assistant-comment span,
.channel-comment strong {
  color: #f1dc9b;
  font-weight: 800;
}
.channel-comment.is-vest strong {
  color: #a8c3a0;
}
.anchor-comment p,
.assistant-comment p,
.channel-comment span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.anchor-comment-zone {
  right: 50px;
  bottom: 74px;
  max-height: 390px;
  gap: 6px;
  padding: 0 12px;
}
.assistant-comment-zone {
  right: 58px;
  bottom: 84px;
  max-height: 372px;
}
.channel-comment-layer {
  right: 58px;
  bottom: 116px;
  max-height: 278px;
}
.anchor-quick-line,
.channel-quick-replies {
  gap: 7px;
}
.anchor-quick-line button,
.channel-quick-replies button,
.assistant-vest-row button {
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  color: #12372a;
  background: rgba(247,243,234,.94);
  font-size: 11px;
  font-weight: 700;
}
.anchor-bottom-toolbar,
.channel-input {
  left: 10px;
  right: 10px;
  bottom: 10px;
  min-height: 58px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(12px);
}
.anchor-bottom-toolbar {
  grid-template-columns: minmax(0, 1fr) 44px 54px;
  gap: 9px;
}
.anchor-bottom-toolbar label,
.channel-input input,
.assistant-send-row input {
  height: 40px;
  border-radius: 999px;
  font-size: 12px;
}
.anchor-bottom-toolbar button,
.channel-input button,
.assistant-send-row button {
  height: 40px;
  min-height: 40px;
  border-radius: 999px;
  font-size: 12px;
}
.anchor-bottom-toolbar .settings,
.channel-input button,
.assistant-send-row button,
.assistant-vest-dock button:first-child,
.assistant-vest-tabs button.active {
  color: #111;
  background: var(--preview-gold);
}
.channel-input {
  grid-template-columns: minmax(0, 1fr) 52px 42px 42px;
  background: rgba(247,243,234,.9);
}
.channel-input .share,
.channel-input .like {
  color: #f7f3ea;
  background: rgba(17,17,17,.54);
}
.channel-action-rail {
  right: 10px;
  bottom: 76px;
  gap: 8px;
}
.channel-action-rail button,
.assistant-vest-dock button {
  width: 42px;
  min-height: 42px;
  border-radius: 999px;
}
.channel-action-rail .product {
  color: #111;
  background: rgba(200, 164, 93, .96);
}
.channel-lucky-bag b {
  background: var(--preview-green);
}
.channel-pinned-card,
.assistant-pin-card {
  border-radius: 16px;
  background: rgba(255,255,255,.78);
}
.channel-pinned-card {
  left: 80px;
  right: 20px;
  top: 168px;
  padding: 14px 16px;
}
.assistant-pin-card {
  left: 54px;
  right: 24px;
  top: 128px;
  padding: 14px 16px;
}
.channel-pinned-card strong,
.assistant-pin-card p {
  font-size: 18px;
  line-height: 1.42;
}
.assistant-vest-dock {
  right: 10px;
  bottom: 112px;
}
.assistant-vest-popover {
  right: 58px;
  bottom: 72px;
  width: 220px;
  border: 0;
  border-radius: 16px;
  background: rgba(0,0,0,.74);
}
.assistant-send-row {
  grid-template-columns: minmax(0, 1fr) 56px;
  gap: 8px;
}
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--color-primary);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.dark-card, .invite-board {
  padding: 16px;
  border: 1px solid rgba(126, 149, 193, .26);
  border-radius: 10px;
  background: rgba(37, 46, 70, .86);
  box-shadow: 0 14px 36px rgba(7, 12, 24, .16);
}
.hero-vest {
  min-height: 300px;
  display: grid;
  align-content: start;
  gap: 16px;
  background:
    linear-gradient(135deg, rgba(47, 109, 246, .22), rgba(37, 46, 70, .88)),
    rgba(37, 46, 70, .92);
}
.console-quick-form {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 10px;
}
.console-quick-form input {
  border-color: rgba(255,255,255,.18);
  color: #eef4ff;
  background: rgba(255,255,255,.08);
}
.console-quick-form input::placeholder { color: #aebbd2; }
.console-summary {
  background: rgba(255,255,255,.08);
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.summary-grid div {
  display: grid;
  gap: 6px;
  min-height: 82px;
  align-content: center;
  padding: 14px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
}
.summary-grid span { color: #b9c5d9; font-size: 13px; }
.summary-grid strong { font-size: 24px; }
.product-now {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px;
  align-items: center;
}
.product-now img {
  width: 78px;
  height: 78px;
  object-fit: cover;
  border-radius: 8px;
}
.rank-row, .product-row, .invite-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.product-row { grid-template-columns: 1.5fr 1fr 1fr auto; }
.invite-row { grid-template-columns: 1fr auto; }
.empty-dark { padding: 24px; color: #b8c1d3; text-align: center; }
.metric-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff4f55, #ff7a32);
}
.metric-board div {
  display: grid;
  gap: 6px;
  min-height: 88px;
  align-content: center;
  padding: 16px 20px;
  border-right: 1px solid rgba(255,255,255,.18);
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.metric-board strong { font-size: 28px; }
.metric-board small { color: rgba(255,255,255,.82); }
.comments-card {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  height: min(620px, calc(100vh - 260px));
  overflow: hidden;
  background: rgba(37, 46, 70, .92);
}

.comment-stream-list {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 8px;
  padding-right: 6px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(200, 164, 93, .58) rgba(255, 255, 255, .08);
}

.comment-stream-list::-webkit-scrollbar {
  width: 6px;
}

.comment-stream-list::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
}

.comment-stream-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(200, 164, 93, .62);
}

.comments-card .comment-pill {
  margin: 0;
  max-width: 100%;
  line-height: 1.35;
}

.comment-scroll-tip {
  position: absolute;
  right: 14px;
  bottom: 12px;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(216, 191, 116, .48);
  border-radius: 999px;
  color: #12372a;
  background: #d9c078;
  box-shadow: 0 12px 28px rgba(0,0,0,.24);
  font-size: 12px;
  font-weight: 900;
}
.comment-list { display: grid; gap: 7px; margin-top: 12px; }
.comment-item {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  column-gap: 0;
  align-items: center;
  width: 100%;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: #fff;
  background: rgba(255,255,255,.08);
  font-size: 12px;
  line-height: 1.2;
  text-align: left;
}
.comment-item:hover, .comment-item.selected {
  border-color: rgba(255,255,255,.22);
  background: rgba(47,109,246,.32);
}
.comment-item span {
  min-width: 0;
  color: #ff8a6a;
  font-weight: 700;
  white-space: nowrap;
}
.comment-item p {
  overflow: hidden;
  margin: 0;
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.comment-item em {
  justify-self: end;
  margin-left: 8px;
  color: #aebbd2;
  font-size: 11px;
  font-style: normal;
  opacity: 0;
  white-space: nowrap;
}
.comment-item:hover em, .comment-item.selected em { opacity: 1; }
.comment-item small {
  grid-column: 1 / -1;
  display: none;
  margin-top: 2px;
  color: #aebbd2;
  font-size: 11px;
}
.comment-item:hover small,
.comment-item.selected small {
  display: block;
}
.comment-desk {
  min-height: 230px;
  background: rgba(255,255,255,.08);
}
.moderation-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.moderation-pills button {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #166534;
  background: #dcfce7;
  font-size: 12px;
  font-weight: 700;
}
.moderation-pills button:last-child {
  color: #fff;
  background: #111827;
}
.selected-comment {
  display: grid;
  gap: 8px;
  min-height: 86px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  background: rgba(0,0,0,.18);
}
.selected-comment span {
  color: #ff9b78;
  font-weight: 800;
}
.selected-comment p {
  color: #fff;
  line-height: 1.55;
}
.invite-board {
  min-height: 260px;
  background: linear-gradient(135deg, #3269e8, #5a7cf6);
}
.table-wrap { overflow: auto; }

.vest-rolling-main {
  min-width: 0;
  overflow: hidden;
}

.vest-rolling-table {
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

.vest-rolling-table table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.vest-rolling-table th:first-child,
.vest-rolling-table td:first-child {
  width: auto;
}

.vest-rolling-table th:last-child,
.vest-rolling-table td:last-child {
  width: 152px;
}

.vest-rolling-table td:last-child {
  white-space: nowrap;
}

.vest-rolling-table input {
  width: 100%;
  min-width: 0;
}

.vest-rolling-table button {
  min-height: 30px;
  padding: 0 9px;
  font-size: 12px;
}
table { width: 100%; min-width: 860px; border-collapse: collapse; }
th, td { padding: 10px; border-bottom: 1px solid #e5e7eb; text-align: left; font-size: 14px; }
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #e2e8f0;
  color: #334155;
}
.pill.red { color: #fff; background: #ee4d4d; }
.pill.green { color: #166534; background: #dcfce7; }
.quick-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.quick-grid button { color: #172033; background: #eef2f7; }
.danger-soft { color: #bd2f2f !important; background: #fee2e2 !important; }
.permission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.check-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid #e6ebf2;
  border-radius: 8px;
  background: #f8fafc;
  font-size: 14px;
}
.check-line input { width: 16px; height: 16px; accent-color: #12372a; }
.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.tool-card {
  display: grid;
  gap: 8px;
  min-height: 118px;
  align-content: start;
  padding: 16px;
  border: 1px solid #e4e9f0;
  border-radius: 8px;
}
.tool-card strong { font-size: 16px; }
.tool-card span { color: #667085; line-height: 1.5; }
.marketing-status {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.status-tool {
  display: grid;
  gap: 6px;
  align-content: center;
  min-height: 110px;
  padding: 18px;
  border: 1px solid #dce6f5;
  border-radius: 8px;
  color: #172033;
  background: #fff;
  text-align: left;
}
.status-tool strong { font-size: 22px; color: #1d4ed8; }
.status-tool span, .status-tool em { color: #667085; font-style: normal; }
.vest-layout {
  display: grid;
  grid-template-columns: 280px minmax(420px, 1fr) 320px;
  gap: 16px;
  align-items: start;
}
.control-strip {
  display: grid;
  grid-template-columns: 1fr 140px auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid #e4e9f0;
  border-radius: 8px;
  background: #f8fafc;
}
.comment-add {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}
.batch-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border: 1px solid #dbe5f3;
  border-radius: 8px;
  background: #eef5ff;
}
.batch-bar button {
  color: #1d4ed8;
  background: #dbeafe;
}
.comment-table {
  display: grid;
  border: 1px solid #e4e9f0;
  border-radius: 8px;
  overflow: hidden;
}
.comment-head, .comment-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #e4e9f0;
}
.comment-head {
  color: #667085;
  background: #f8fafc;
  font-weight: 700;
}
.comment-row:last-child { border-bottom: 0; }
.rolling-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #dbe5f3;
  border-radius: 8px;
  background: #f8fbff;
}
.rolling-panel textarea {
  min-height: 138px;
  line-height: 1.55;
}
.vest-layout .rolling-panel { display: none; }
.marketing-rolling { display: grid; margin-top: 14px; }
.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, .56);
}
.modal-card {
  position: relative;
  width: min(880px, 100%);
  max-height: calc(100vh - 60px);
  overflow: auto;
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(9, 16, 31, .26);
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 50%;
  color: #172033;
  background: #eef2f7;
  font-size: 20px;
}
.modal-phone {
  display: grid;
  justify-content: center;
}
.modal-phone .phone {
  width: 330px;
  height: 620px;
}
.empty { padding: 24px; color: #667085; text-align: center; }

.mini-program {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 18px;
  background: #f7f3ea;
}
.mini-shell {
  position: relative;
  width: min(430px, 100%);
  min-height: 820px;
  overflow: hidden;
  border: 1px solid rgba(18, 55, 42, .14);
  border-radius: 22px;
  background: #f7f3ea;
  box-shadow: 0 24px 70px rgba(17, 17, 17, .16);
}
.mini-page {
  min-height: 820px;
  padding: 22px 18px 86px;
  color: #111;
  background: linear-gradient(180deg, rgba(168, 195, 160, .22), rgba(247, 243, 234, .92) 260px), #f7f3ea;
}
.mini-live-page { padding: 0; background: #12372a; }
.mini-header { padding: 12px 2px 20px; }
.mini-header span { color: #c8a45d; font-size: 13px; }
.mini-header h1 { margin-top: 6px; color: #12372a; font-size: 26px; }
.mini-header p { margin-top: 8px; color: rgba(17,17,17,.58); line-height: 1.65; }
.mini-hero, .mini-card, .mini-list-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(18,55,42,.12);
  border-radius: 10px;
  background: rgba(255,255,255,.62);
  box-shadow: 0 12px 36px rgba(18, 55, 42, .07);
}
.mini-hero {
  min-height: 260px;
  align-content: end;
  color: #f7f3ea;
  background: linear-gradient(180deg, rgba(18,55,42,.2), rgba(18,55,42,.84)), url("https://images.unsplash.com/photo-1618220179428-22790b461013?auto=format&fit=crop&w=900&q=80") center/cover;
}
.mini-hero span, .mini-reward span { color: #d8bd7b; font-size: 13px; }
.mini-hero h2 { font-size: 24px; }
.mini-hero p { color: rgba(247,243,234,.82); line-height: 1.65; }
.mini-hero button, .mini-product button, .mini-reward button {
  width: fit-content;
  padding: 0 18px;
  color: #f7f3ea;
  background: #12372a;
}
.mini-card h3 { color: #12372a; font-size: 17px; }
.mini-card p { color: rgba(17,17,17,.62); line-height: 1.7; }
.mini-product {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(18,55,42,.1);
}
.mini-product:last-child { border-bottom: 0; }
.mini-product img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 8px;
}
.mini-product strong, .mini-reward strong { color: #12372a; font-size: 16px; }
.mini-product p, .mini-reward p { margin: 6px 0 10px; color: rgba(17,17,17,.58); }
.mini-reward {
  display: grid;
  gap: 6px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(18,55,42,.1);
}
.profile-card {
  grid-template-columns: 56px 1fr;
  align-items: center;
}
.mini-tabbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  padding: 8px 10px 12px;
  border-top: 1px solid rgba(18,55,42,.12);
  background: rgba(247,243,234,.96);
}
.mini-tabbar button {
  min-height: 42px;
  padding: 0;
  color: rgba(17,17,17,.56);
  background: transparent;
}
.mini-tabbar button.active {
  color: #12372a;
  background: rgba(168,195,160,.28);
}
.single-live {
  min-height: min(860px, 100vh);
}
.jade-phone {
  height: 560px;
  padding: 14px;
  color: #f7f3ea;
  background: linear-gradient(180deg, rgba(18,55,42,.08), rgba(18,55,42,.92)), url("https://images.unsplash.com/photo-1618220179428-22790b461013?auto=format&fit=crop&w=900&q=80") center/cover;
}
.mini-live-page .jade-phone {
  height: min(860px, 100vh);
  min-height: 760px;
  border-radius: 0;
}
.jade-live-stage {
  position: relative;
  height: 100%;
  border: 1px solid rgba(247,243,234,.18);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(18,55,42,.1), rgba(18,55,42,.76));
}
.jade-profile {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 14px;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 10px;
  background: rgba(18,55,42,.72);
}
.jade-profile strong { font-size: 15px; }
.jade-profile p { color: rgba(247,243,234,.72); font-size: 12px; }
.jade-status {
  position: absolute;
  right: 14px;
  top: 92px;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid rgba(200,164,93,.42);
  border-radius: 999px;
  background: rgba(17,17,17,.34);
  font-size: 12px;
}
.jade-status span { color: #d8bd7b; }
.jade-player-copy {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 166px;
}
.jade-player-copy span { color: #d8bd7b; font-size: 13px; }
.jade-player-copy strong { display: block; margin-top: 8px; font-size: 24px; }
.jade-player-copy p { margin-top: 8px; color: rgba(247,243,234,.76); }
.jade-messages {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 104px;
  display: grid;
  gap: 8px;
  max-height: 230px;
  overflow: hidden;
}
.jade-bubble {
  width: fit-content;
  max-width: 92%;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(17,17,17,.42);
  line-height: 1.45;
}
.jade-bubble strong { color: #d8bd7b; margin-right: 6px; }
.jade-quick-replies {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 74px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 2px 8px;
  scrollbar-width: none;
}
.jade-quick-replies::-webkit-scrollbar { display: none; }
.jade-quick-replies button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(200,164,93,.36);
  border-radius: 999px;
  color: #12372a;
  background: rgba(247,243,234,.92);
  box-shadow: 0 8px 22px rgba(17,17,17,.12);
}
.jade-quick-replies button.active {
  color: #f7f3ea;
  background: #12372a;
}
.jade-input {
  background: rgba(18,55,42,.82);
  border: 1px solid rgba(247,243,234,.16);
}
.jade-input input { background: rgba(247,243,234,.12); }
.jade-input button { color: #12372a; background: #c8a45d; }
.source-tag {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  margin-right: 6px;
  padding: 0 7px;
  border-radius: 5px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.source-tag.red { background: #e5484d; }
.source-tag.green { background: #1f8f5f; }
.source-tag.ops {
  color: #12372a;
  background: #c8a45d;
}
.source-tag.neutral {
  color: #52615b;
  background: #edf2ef;
}
.assistant-user-panel {
  margin-top: 16px;
}
.assistant-user-list {
  display: grid;
  gap: 10px;
}
.assistant-user-row {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(180px, auto) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: #fffdf8;
}
.assistant-user-main {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}
.assistant-user-main .avatar {
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #fff;
  background: var(--color-primary);
  font-weight: 800;
}
.assistant-user-main .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.assistant-user-main strong,
.assistant-user-main p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.assistant-user-tags {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.source-cell {
  display: grid;
  gap: 5px;
  align-items: start;
  justify-items: start;
}
.source-cell small {
  color: #667085;
  line-height: 1.45;
  white-space: nowrap;
}
.admin-hub {
  display: grid;
  gap: 16px;
}
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.module-card {
  display: grid;
  gap: 8px;
  justify-items: start;
  min-height: 92px;
  padding: 16px;
  color: #10233f;
  border: 1px solid #d9e2ef;
  background: linear-gradient(180deg, #fff, #f7f9fc);
}
.module-card strong { font-size: 16px; }
.module-card span {
  color: #667085;
  text-align: left;
  line-height: 1.55;
}
.module-card.active {
  border-color: #2f6fed;
  background: linear-gradient(180deg, #f4f8ff, #ffffff);
  box-shadow: 0 12px 28px rgba(47, 111, 237, .14);
}
.module-card.active strong {
  color: #2f6fed;
}
.admin-module-panel {
  animation: adminPanelIn .18s ease-out;
}
@keyframes adminPanelIn {
  from { opacity: .45; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.permission-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.permission-summary div {
  padding: 14px;
  border: 1px solid #d9e2ef;
  border-radius: 8px;
  background: #f8fafc;
}
.permission-summary p {
  margin-top: 6px;
  color: #667085;
  line-height: 1.6;
}
.admin-vest-console .batch-bar {
  grid-template-columns: minmax(240px, 1fr) repeat(3, auto);
  align-items: center;
}
.admin-vest-console .batch-bar input {
  min-height: 40px;
  border: 1px solid #d9e2ef;
  border-radius: 8px;
  background: #fff;
}
.admin-vest-console h3 {
  color: #10233f;
  font-size: 16px;
}
.admin-vest-console > .grid-2 {
  align-items: start;
}
.admin-vest-console > .grid-2 > .stack {
  align-self: start;
  align-content: start;
}
.admin-vest-console .comment-table,
.admin-vest-console .mini-list {
  align-self: start;
}
.pool-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.pool-head h3 {
  margin-bottom: 4px;
}
.pool-head .actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.pager {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}
.pager span {
  margin-right: auto;
  color: #667085;
  font-size: 13px;
}
.pager button {
  min-height: 32px;
  padding: 0 10px;
  color: #12372a;
  border: 1px solid #d9e2ef;
  background: #fff;
}
.pager button.active {
  color: #fff;
  border-color: #12372a;
  background: #12372a;
}
.vest-send-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  border: 1px solid #d9e2ef;
  border-radius: 10px;
  background: linear-gradient(180deg, #f8fbff, #ffffff);
}
.send-step {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #667085;
  font-size: 13px;
}
.send-step b {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: #fff;
  border-radius: 999px;
  background: #2f6fed;
}
.send-field {
  display: grid;
  gap: 6px;
  color: #475467;
  font-size: 13px;
}
.send-field.main-message {
  grid-column: span 2;
}
.send-field input,
.send-field select {
  min-height: 42px;
  border: 1px solid #d9e2ef;
  border-radius: 8px;
  background: #fff;
}
.send-actions {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  grid-column: 1 / -1;
}
.send-speed-panel {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 220px minmax(180px, auto);
  gap: 12px;
  align-items: center;
  grid-column: 1 / -1;
  padding: 14px;
  border: 1px solid rgba(47, 111, 237, .18);
  border-radius: 10px;
  background: #eef5ff;
}
.send-speed-panel strong {
  display: block;
  color: #2f6fed;
  font-size: 16px;
}
.send-speed-panel span,
.send-speed-panel em {
  color: #667085;
  font-style: normal;
  line-height: 1.5;
}
.send-speed-panel label {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #344054;
  font-weight: 700;
  white-space: nowrap;
}
.send-speed-panel input {
  width: 82px;
  min-height: 38px;
  border: 1px solid #b8cff5;
  border-radius: 8px;
  background: #fff;
  text-align: center;
  font-weight: 800;
}
.quick-pick-row {
  display: flex;
  gap: 8px;
  grid-column: 1 / -1;
  overflow-x: auto;
  padding-bottom: 4px;
}
.quick-pick-row button {
  flex: 0 0 auto;
  min-height: 34px;
  color: #344054;
  border: 1px solid #d9e2ef;
  background: #fff;
}
.comment-add.batch-add {
  grid-template-columns: minmax(0, 1fr) 118px;
  align-items: stretch;
}
.comment-add.batch-add textarea {
  min-height: 74px;
  line-height: 1.55;
  resize: vertical;
}
.comment-row .actions {
  justify-content: flex-end;
  flex-wrap: nowrap;
}
.comment-row .actions button {
  min-height: 34px;
  padding: 0 10px;
}
.random-line {
  display: grid;
  grid-template-columns: 180px auto;
  gap: 10px;
  align-items: end;
  grid-column: 1 / -1;
}
.random-line label {
  display: grid;
  gap: 6px;
  color: #475467;
  font-size: 13px;
}
.random-line input {
  min-height: 40px;
  border: 1px solid #d9e2ef;
  border-radius: 8px;
  background: #fff;
}
.rolling-console {
  gap: 16px;
}
.rolling-status-box {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.rolling-status-box div {
  padding: 16px;
  border: 1px solid #d9e2ef;
  border-radius: 8px;
  background: #f8fafc;
}
.rolling-status-box span {
  display: block;
  color: #667085;
  font-size: 13px;
}
.rolling-status-box strong {
  display: block;
  margin-top: 6px;
  color: #10233f;
  font-size: 22px;
}
.rolling-bulk {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: stretch;
}
.rolling-bulk textarea {
  min-height: 96px;
  resize: vertical;
  border: 1px solid #d9e2ef;
  border-radius: 8px;
  background: #fff;
}
.rolling-control-row {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) auto auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid #d9e2ef;
  border-radius: 8px;
  background: #f8fafc;
}
.rolling-control-row label {
  display: grid;
  gap: 6px;
}
.rolling-control-row input {
  max-width: 140px;
  font-weight: 800;
}
.rolling-console .comment-table {
  max-height: 300px;
  overflow: auto;
}
.export-filter {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
  align-items: end;
}
.export-filter.single {
  grid-template-columns: repeat(2, minmax(150px, 1fr));
}
.export-dashboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.export-card {
  min-height: 360px;
}
.export-card.primary-export {
  border-color: rgba(168, 195, 160, .62);
  background:
    radial-gradient(circle at 100% 0%, rgba(168, 195, 160, .16), transparent 28%),
    var(--color-card);
}
.export-card button[id^="export"] {
  margin-top: auto;
}
.export-permission-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 210px repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}
.export-permission-card h2 {
  align-self: center;
  color: var(--color-primary);
}
.export-permission-card .notice {
  grid-column: 1 / -1;
}
.advanced-filter {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr)) auto auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: #fbf8f1;
}
.advanced-filter label,
.export-filter label {
  display: grid;
  gap: 6px;
  color: var(--color-muted);
  font-size: 12px;
}
.advanced-filter input,
.advanced-filter select,
.export-filter input,
.export-filter select {
  min-height: 38px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fffdf8;
}
.user-stats .stat-card {
  border-color: rgba(168, 195, 160, .45);
  background: linear-gradient(180deg, #fffdf8, #f7f3ea);
}
.table-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.table-actions button {
  min-height: 30px;
  padding: 0 9px;
  font-size: 12px;
}
.source-cell {
  display: grid;
  gap: 4px;
}
.source-cell small {
  color: var(--color-muted);
  line-height: 1.45;
}
.relation-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.relation-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: #fffdf8;
  box-shadow: var(--shadow-card);
}
.relation-chain {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--color-primary);
  font-weight: 800;
}
.relation-chain i {
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--color-warning);
}
.relation-chain small {
  width: 100%;
  color: var(--color-muted);
  font-weight: 500;
}
.relation-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.relation-meta span {
  padding: 5px 8px;
  border: 1px solid rgba(168, 195, 160, .45);
  border-radius: 999px;
  color: var(--color-muted);
  background: #f7f3ea;
  font-size: 12px;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.detail-grid div {
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fbf8f1;
}
.detail-grid span {
  display: block;
  color: var(--color-muted);
  font-size: 12px;
}
.detail-grid strong {
  display: block;
  margin-top: 5px;
  color: var(--color-text);
}
.quick-group-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.quick-group-tabs button {
  min-height: 32px;
  color: var(--color-primary);
  border: 1px solid var(--color-border);
  background: #fffdf8;
}
.quick-group-tabs button.active {
  color: #fff;
  border-color: var(--color-primary);
  background: var(--color-primary);
}
.quick-grid.refined {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}
.quick-grid.refined button {
  color: var(--color-primary);
  border: 1px solid rgba(168, 195, 160, .55);
  background: #f7f3ea;
}
.log-timeline {
  display: grid;
  gap: 10px;
}
.log-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: #fffdf8;
}
.log-row.high-risk {
  border-color: rgba(217, 72, 65, .3);
  background: #fff7f5;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.grid-2 {
  align-items: start;
}
.card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.comment-item span {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
}
@media (max-width: 1280px) {
  .screen-grid, .vest-layout, .console-three-columns { grid-template-columns: 1fr; }
  .screen-head { grid-template-columns: 1fr; }
  .screen-head h2 { text-align: left; }
}
@media (max-width: 1100px) {
  .workspace, .portal-grid, .grid-2, .grid-3, .stats-grid, .tool-grid, .module-grid, .permission-summary, .vest-send-board, .send-actions, .send-speed-panel, .random-line, .rolling-status-box, .rolling-bulk, .export-filter, .export-filter.single, .export-dashboard, .export-permission-card, .advanced-filter, .relation-cards, .dashboard-layout, .console-top-status, .manual-send-grid, .quick-entry-grid, .risk-grid, .account-form .form-grid, .detail-grid, .channel-room-card, .channel-room-stats, .channel-user-card, .frontend-preview-grid, .assistant-stat-row, .assistant-actions { grid-template-columns: 1fr; }
  .send-field.main-message { grid-column: auto; }
  .sidebar { position: static; height: auto; }
  .login-card { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .portal, .main { padding: 14px; }
  .portal-hero, .topbar, .section-head { align-items: stretch; flex-direction: column; }
  .field-row, .three-fields, .filter-bar, .control-strip, .comment-add, .comment-head, .comment-row { grid-template-columns: 1fr; }
  .pool-head { flex-direction: column; }
  .pool-head .actions { justify-content: flex-start; }
  .room-card { grid-template-columns: 1fr; }
}

@media (min-width: 900px) {
  .admin-vest-console > .grid-2 {
    grid-template-columns: minmax(360px, .95fr) minmax(420px, 1.05fr) !important;
    align-items: start;
  }
}

/* Anchor preview polish: scoped to anchor preview only. */
.anchor-live-phone .anchor-host-panel {
  left: 12px;
  right: 10px;
  top: 16px;
  min-height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.anchor-live-phone .anchor-host-line {
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}
.anchor-live-phone .avatar {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,.38);
  box-shadow: 0 8px 22px rgba(0,0,0,.22);
}
.anchor-live-phone .anchor-camera-bg {
  background:
    linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.04) 48%, rgba(0,0,0,.42)),
    url("https://images.unsplash.com/photo-1618220179428-22790b461013?auto=format&fit=crop&w=900&q=80") center / cover;
}
.anchor-live-phone .anchor-title-stack {
  display: grid;
  min-width: 0;
  gap: 12px;
  padding-top: 2px;
}
.anchor-live-phone .anchor-title-stack strong {
  overflow: hidden;
  color: rgba(255,255,255,.95);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.12;
  text-shadow: 0 2px 8px rgba(0,0,0,.28);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.anchor-live-phone .anchor-live-meta {
  justify-content: flex-start;
  gap: 0;
  color: rgba(255,255,255,.88);
  font-size: 13px;
  line-height: 1.22;
  white-space: nowrap;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.anchor-live-phone .anchor-live-meta em {
  display: none;
}
.anchor-live-phone .anchor-live-meta span,
.anchor-live-phone .anchor-live-meta b {
  color: rgba(255,255,255,.86);
  font-weight: 500;
}
.anchor-live-phone .anchor-live-meta span + span::before,
.anchor-live-phone .anchor-live-meta span + b::before,
.anchor-live-phone .anchor-live-meta b::before {
  content: "路";
  margin: 0 7px;
  color: rgba(255,255,255,.72);
}
.anchor-live-phone .anchor-live-meta b {
  color: rgba(255,255,255,.92);
}
.anchor-live-phone .anchor-live-meta b::first-letter {
  color: #28d067;
}
.anchor-live-phone .anchor-top-icons {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 3px 2px 0 0;
}
.anchor-live-phone .anchor-top-icons button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: rgba(255,255,255,.94);
  background: transparent;
  font-size: 27px;
  font-weight: 300;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,.36);
}
.anchor-live-phone .anchor-icon-share::before {
  content: "鈫?;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 32px;
  font-weight: 300;
  transform: rotate(-12deg);
}
.anchor-live-phone .anchor-icon-share::after {
  content: none;
}
.anchor-live-phone .anchor-icon-mini::before,
.anchor-live-phone .anchor-icon-mini::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  border: 3px solid currentColor;
  border-radius: 3px;
}
.anchor-live-phone .anchor-icon-mini::before {
  left: 3px;
  top: 4px;
}
.anchor-live-phone .anchor-icon-mini::after {
  right: 2px;
  bottom: 2px;
}
.anchor-live-phone .anchor-icon-close {
  font-size: 34px;
}
.anchor-live-phone .anchor-comment-zone {
  left: 12px;
  right: 64px;
  bottom: 88px;
  gap: 8px;
  max-height: 335px;
  padding: 0;
}
.anchor-live-phone .anchor-comment {
  display: flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(16, 20, 18, .38);
  box-shadow: 0 8px 20px rgba(0,0,0,.1);
  color: rgba(255,255,255,.92);
  font-size: 12px;
  line-height: 1.28;
  backdrop-filter: blur(5px);
}
.anchor-live-phone .anchor-id-tag {
  flex: 0 0 auto;
  margin-right: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.2;
}
.anchor-live-phone .anchor-id-tag.vest {
  color: #2d2412;
  background: rgba(200, 164, 93, .9);
}
.anchor-live-phone .anchor-id-tag.staff {
  background: rgba(55, 88, 94, .9);
}
.anchor-live-phone .anchor-id-tag.assistant {
  background: rgba(212, 80, 74, .9);
}
.anchor-live-phone .anchor-id-tag.invited {
  background: rgba(54, 128, 88, .9);
}
.anchor-live-phone .anchor-id-tag.system {
  background: rgba(120, 125, 120, .82);
}
.anchor-live-phone .anchor-comment span {
  flex: 0 0 auto;
  color: #f7f3ea;
  font-weight: 800;
}
.anchor-live-phone .anchor-comment p {
  overflow: hidden;
  margin: 0;
  max-width: 205px;
  color: rgba(255,255,255,.94);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.anchor-live-phone .anchor-comment i {
  flex: 0 0 auto;
  margin-left: 6px;
  padding: 1px 5px;
  border-radius: 999px;
  color: #ffdf9b;
  background: rgba(54, 36, 36, .72);
  font-size: 10px;
  font-style: normal;
}
.anchor-live-phone .anchor-quick-line {
  display: none;
}
.anchor-live-phone .anchor-bottom-toolbar {
  left: 12px;
  right: 12px;
  bottom: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px 46px 52px;
  gap: 12px;
  align-items: center;
  min-height: 56px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.anchor-live-phone .anchor-chat-input {
  display: flex;
  align-items: center;
  height: 42px;
  min-width: 0;
  padding: 0 18px;
  border-radius: 999px;
  color: rgba(255,255,255,.74);
  background: rgba(255,255,255,.24);
  font-size: 14px;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 8px 22px rgba(0,0,0,.12);
  backdrop-filter: blur(12px);
}
.anchor-live-phone .anchor-tool {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 46px;
  height: 46px;
  min-height: 46px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: rgba(255,255,255,.94);
  background: rgba(255,255,255,.22);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 8px 22px rgba(0,0,0,.14);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  backdrop-filter: blur(12px);
}
.anchor-live-phone .anchor-tool.refresh span {
  transform: translateY(8px);
  font-size: 10px;
  font-weight: 700;
}
.anchor-live-phone .anchor-tool.refresh::before {
  content: "鈫?;
  position: absolute;
  top: 7px;
  left: 50%;
  color: rgba(255,255,255,.96);
  font-size: 17px;
  transform: translateX(-50%);
}
.anchor-live-phone .anchor-tool.flip-camera::before {
  content: "";
  width: 22px;
  height: 15px;
  border: 2px solid rgba(255,255,255,.95);
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.anchor-live-phone .anchor-tool.flip-camera::after {
  content: "鈫?;
  position: absolute;
  left: 50%;
  top: 50%;
  color: rgba(255,255,255,.96);
  font-size: 16px;
  transform: translate(-50%, -50%);
}
.anchor-live-phone .anchor-tool.gift {
  color: #111;
  background: #c8a45d;
}
.anchor-live-phone .anchor-tool.more {
  width: 52px;
  font-size: 12px;
  letter-spacing: 0;
}
.anchor-live-phone .anchor-more-panel {
  position: absolute;
  right: 12px;
  bottom: 76px;
  z-index: 5;
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  width: 190px;
  padding: 10px;
  border: 1px solid rgba(200,164,93,.24);
  border-radius: 16px;
  background: rgba(13, 24, 19, .92);
  box-shadow: 0 18px 34px rgba(0,0,0,.28);
  backdrop-filter: blur(14px);
}
.anchor-live-phone.more-open .anchor-more-panel {
  display: grid;
}
.anchor-live-phone .anchor-more-panel button {
  min-height: 30px;
  padding: 0 8px;
  border-radius: 10px;
  color: rgba(255,255,255,.86);
  background: rgba(255,255,255,.1);
  font-size: 11px;
}
.anchor-live-phone .anchor-more-panel button.danger {
  color: #ffe5e2;
  background: rgba(215, 76, 68, .58);
}

/* Assistant phone fine tuning */
.anchor-pin-card,
.assistant-pin-card,
.channel-pinned-card {
  transition: opacity .36s ease, transform .36s ease, visibility .36s ease;
}
.anchor-pin-card.pin-dismissed,
.assistant-pin-card.pin-dismissed,
.channel-pinned-card.pin-dismissed {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  pointer-events: none;
}
.anchor-pin-card,
.assistant-pin-card {
  position: absolute;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 26px;
  gap: 4px 8px;
  align-items: center;
  padding: 13px 15px;
  border-radius: 18px;
  color: #111;
  background: rgba(255,255,255,.78);
  box-shadow: 0 14px 36px rgba(0,0,0,.14);
  backdrop-filter: blur(12px);
}
.anchor-pin-card {
  left: 72px;
  right: 26px;
  top: 128px;
}
.assistant-pin-card {
  left: 56px;
  right: 30px;
  top: 126px;
}
.anchor-pin-card span,
.assistant-pin-card span,
.channel-pinned-card span {
  color: rgba(17,17,17,.56);
  font-size: 12px;
  font-weight: 800;
}
.anchor-pin-card strong,
.assistant-pin-card strong,
.channel-pinned-card strong {
  grid-column: 1 / 2;
  color: #111;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.42;
}
.anchor-pin-card button,
.assistant-pin-card button,
.channel-pinned-card button {
  grid-row: 1 / 3;
  grid-column: 2;
  width: 26px;
  height: 26px;
  min-height: 26px;
  padding: 0;
  border-radius: 999px;
  color: rgba(17,17,17,.52);
  background: rgba(255,255,255,.48);
  font-size: 14px;
}
.channel-pinned-card {
  grid-template-columns: minmax(0, 1fr) 26px;
}
.assistant-live-phone .assistant-top-icons {
  gap: 7px;
}
.assistant-live-phone .assistant-top-icons button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
  min-height: 29px;
  padding: 0;
  border-radius: 10px;
  color: rgba(255,255,255,.92);
  background: rgba(255,255,255,.12);
  font-size: 16px;
  line-height: 1;
}
.assistant-live-phone .assistant-live-meta b {
  display: none;
}
.assistant-live-phone .assistant-comment-zone {
  left: 8px;
  right: 62px;
  bottom: 88px;
  max-height: 462px;
  padding: 0 4px 0 6px;
  overflow: hidden;
}
.assistant-live-phone .assistant-comment {
  min-height: 31px;
  max-width: 100%;
  border-radius: 15px;
}
.assistant-live-phone .assistant-comment p {
  max-width: 178px;
}
.assistant-live-phone .assistant-vest-dock {
  right: 10px;
  top: 360px;
  bottom: auto;
  z-index: 8;
}
.assistant-live-phone .assistant-vest-dock button {
  width: 42px;
  height: 42px;
  min-height: 42px;
  border: 1px solid rgba(255,255,255,.14);
}

.assistant-live-phone .assistant-vest-dock .assistant-vest-icon-button {
  display: inline-grid;
  place-items: center;
  padding: 0;
  overflow: visible;
  color: inherit;
  background: rgba(255,255,255,.1);
}

.assistant-live-phone .assistant-vest-dock .assistant-vest-icon-button svg,
.assistant-live-phone .assistant-vest-dock .assistant-vest-icon-button img {
  display: block;
  width: 34px;
  height: 34px;
  overflow: visible;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .28));
}

.assistant-live-phone .assistant-vest-dock .assistant-vest-icon-button img {
  object-fit: contain;
}
.assistant-bottom-bar {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 7;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px 38px 38px 38px;
  gap: 7px;
  align-items: center;
  min-height: 58px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(0,0,0,.74);
  box-shadow: 0 -10px 28px rgba(0,0,0,.18);
  backdrop-filter: blur(14px);
}
.assistant-bottom-bar input {
  height: 40px;
  min-width: 0;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,.14);
  font-size: 12px;
}
.assistant-bottom-bar input::placeholder {
  color: rgba(255,255,255,.56);
}
.assistant-bottom-bar button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 40px;
  min-height: 40px;
  min-width: 0;
  padding: 0;
  border-radius: 999px;
  color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.14);
  font-size: 12px;
  font-weight: 800;
}
.assistant-bottom-bar .assistant-send-main {
  color: #111;
  background: #c8a45d;
}
.assistant-bottom-bar button.is-loading {
  animation: assistant-refresh-spin .62s linear infinite;
}
@keyframes assistant-refresh-spin {
  to { transform: rotate(360deg); }
}
.assistant-sheet-mask {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: none;
  background: rgba(0,0,0,.18);
}
.assistant-live-phone.vest-open .assistant-sheet-mask {
  display: block;
}
.assistant-live-phone .assistant-vest-popover {
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 9;
  display: grid;
  width: auto;
  max-height: 390px;
  padding: 14px;
  border: 1px solid rgba(200,164,93,.2);
  border-radius: 22px 22px 18px 18px;
  background: rgba(15, 19, 16, .9);
  box-shadow: 0 -22px 48px rgba(0,0,0,.34);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(110%);
  transition: transform .32s ease, opacity .32s ease, visibility .32s ease;
}
.assistant-live-phone.vest-open .assistant-vest-popover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.assistant-vest-popover-head strong {
  font-size: 16px;
}
.assistant-fixed-panel,
.assistant-random-panel {
  display: grid;
  gap: 10px;
  min-height: 0;
}
.assistant-live-phone[data-vest-mode="fixed"] .assistant-random-panel,
.assistant-live-phone[data-vest-mode="random"] .assistant-fixed-panel,
.assistant-live-phone[data-vest-mode="quick"] .assistant-fixed-panel {
  display: none;
}
.assistant-live-phone[data-vest-mode="quick"] .assistant-random-panel {
  display: grid;
}
.assistant-create-row,
.assistant-send-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 78px;
  gap: 8px;
}
.assistant-create-row input,
.assistant-send-row input,
.assistant-random-panel textarea {
  min-width: 0;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: rgba(255,255,255,.13);
  font-size: 12px;
}
.assistant-create-row input,
.assistant-send-row input {
  height: 38px;
}
.assistant-random-panel textarea {
  min-height: 64px;
  padding: 10px;
  resize: none;
}
.assistant-create-row button,
.assistant-send-row button,
.assistant-batch-buttons button,
.assistant-batch-status button {
  min-height: 38px;
  padding: 0 10px;
  border-radius: 12px;
  color: #111;
  background: #c8a45d;
  font-size: 12px;
  font-weight: 800;
}
.assistant-vest-row,
.assistant-quick-list {
  display: flex;
  gap: 7px;
  max-height: 88px;
  overflow: auto;
  flex-wrap: wrap;
  padding-right: 2px;
}
.assistant-vest-row button,
.assistant-quick-list button {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: rgba(255,255,255,.84);
  background: rgba(255,255,255,.12);
  font-size: 12px;
}
.assistant-vest-row button.selected {
  color: #111;
  background: #c8a45d;
}
.assistant-mini-section {
  display: grid;
  gap: 6px;
  min-height: 0;
}
.assistant-mini-section > span {
  color: rgba(247, 243, 234, .7);
  font-size: 11px;
  font-weight: 900;
}
.assistant-saved-phrases {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 72px;
  overflow: auto;
  padding-right: 2px;
}
.assistant-saved-phrases button {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  color: #12372a;
  background: rgba(247, 243, 234, .9);
  font-size: 11px;
  font-weight: 900;
}
.assistant-saved-phrases em {
  color: rgba(247, 243, 234, .52);
  font-size: 11px;
  font-style: normal;
}
.assistant-batch-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.assistant-batch-buttons button {
  min-height: 34px;
  color: #f7f3ea;
  background: rgba(255,255,255,.12);
}
.assistant-batch-status {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  color: rgba(255,255,255,.72);
  font-size: 12px;
}
.assistant-batch-status button {
  min-height: 30px;
  color: #ffe5e2;
  background: rgba(215, 76, 68, .58);
}

/* Viewer endpoint detail polish */
.channel-phone .channel-host {
  grid-template-columns: 40px minmax(0, 1fr);
}
.channel-phone .channel-host .avatar {
  width: 40px;
  height: 40px;
}
.channel-phone .channel-host strong {
  font-size: 14px;
  line-height: 1.2;
}
.channel-phone .channel-host p {
  max-width: none;
  color: rgba(255,255,255,.64);
  font-size: 11px;
}
.channel-phone .channel-view-meta {
  right: auto;
  font-size: 14px;
}
.channel-phone .channel-lite-actions {
  display: flex;
  gap: 7px;
}
.channel-phone .channel-lite-actions button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.1);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
  font-size: 11px;
  font-weight: 700;
}
.channel-phone .channel-lite-actions i {
  font-style: normal;
}
.channel-phone .channel-lite-actions button.is-loading i {
  animation: spin .7s linear infinite;
}
.channel-phone .channel-lucky-bag {
  left: 18px;
  top: 126px;
  width: 54px;
  min-height: 68px;
  padding: 7px 5px 6px;
  border-radius: 12px;
  color: #fff5e6;
  background: linear-gradient(180deg, #e85d45, #b92f27);
  box-shadow: 0 12px 24px rgba(185,47,39,.26);
}
.channel-phone .channel-lucky-bag b {
  width: 38px;
  height: 36px;
  color: #fff7e8;
  background: rgba(255,255,255,.14);
}
.channel-phone .channel-lucky-bag span {
  font-size: 12px;
}
.channel-phone .channel-pinned-card {
  left: 84px;
  right: 20px;
  top: 128px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  padding: 12px 12px 13px 14px;
  border-radius: 16px;
}
.channel-phone .channel-pinned-card strong {
  font-size: 15px;
}
.channel-phone .channel-comment-layer {
  right: 12px;
  bottom: 112px;
  max-height: 286px;
}
.channel-phone .channel-comment {
  padding: 6px 10px;
  border-radius: 14px;
}
.channel-phone .channel-comment strong {
  color: #f1dc9b;
}
.channel-phone .channel-quick-replies {
  right: 12px;
  bottom: 66px;
  gap: 7px;
}
.channel-phone .channel-quick-replies button {
  min-height: 30px;
  padding: 0 11px;
  font-size: 11px;
}
.channel-phone .channel-input {
  grid-template-columns: minmax(0, 1fr) 42px 42px 42px;
  gap: 7px;
  min-height: 52px;
  padding: 7px;
  background: rgba(0,0,0,.72);
}
.channel-phone .channel-input input {
  height: 38px;
  color: #f7f3ea;
  background: rgba(255,255,255,.14);
}
.channel-phone .channel-input input::placeholder {
  color: rgba(247,243,234,.58);
}
.channel-phone .channel-input button {
  height: 38px;
  min-height: 38px;
  padding: 0;
}
.channel-phone .channel-input .send {
  color: #111;
  background: #c8a45d;
}
.channel-phone .channel-input .share,
.channel-phone .channel-input .like {
  color: #f7f3ea;
  background: rgba(255,255,255,.14);
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Three-end live UI unification */
.channel-phone .channel-topbar,
.anchor-live-phone .anchor-host-panel,
.assistant-live-phone .assistant-host-panel {
  left: 12px;
  right: 12px;
  top: 14px;
  z-index: 8;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.channel-phone .channel-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}
.channel-phone .channel-host,
.anchor-live-phone .anchor-host-line,
.assistant-live-phone .assistant-host-line {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  min-width: 0;
}
.channel-phone .channel-host {
  grid-template-columns: 44px minmax(0, 1fr);
}
.channel-phone .channel-host .avatar,
.anchor-live-phone .avatar,
.assistant-live-phone .assistant-host-line .avatar {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.36);
  border-radius: 999px;
  background: rgba(247,243,234,.9);
  box-shadow: 0 8px 20px rgba(0,0,0,.22);
}
.channel-title-stack,
.anchor-title-stack,
.assistant-title-stack {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding-top: 1px;
}
.channel-phone .channel-host strong,
.anchor-live-phone .anchor-title-stack strong,
.assistant-live-phone .assistant-title-stack strong {
  overflow: hidden;
  color: rgba(255,255,255,.96);
  font-size: 15px;
  font-weight: 760;
  line-height: 1.18;
  text-shadow: 0 2px 8px rgba(0,0,0,.32);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.channel-phone .channel-host p,
.anchor-live-phone .anchor-title-stack p,
.assistant-live-phone .assistant-title-stack p {
  overflow: hidden;
  max-width: 176px;
  margin: 0;
  color: rgba(255,255,255,.68);
  font-size: 10px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.live-counter-row,
.anchor-live-phone .anchor-live-meta,
.assistant-live-phone .assistant-live-meta {
  display: flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
  color: rgba(255,255,255,.86);
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
  text-shadow: 0 2px 8px rgba(0,0,0,.28);
}
.live-counter-row span,
.live-counter-row b,
.anchor-live-phone .anchor-live-meta span,
.anchor-live-phone .anchor-live-meta b,
.assistant-live-phone .assistant-live-meta span {
  flex: 0 0 auto;
  color: rgba(255,255,255,.84);
  font-weight: 560;
}
.live-counter-row span + span::before,
.live-counter-row span + b::before,
.live-counter-row b::before,
.anchor-live-phone .anchor-live-meta span + span::before,
.anchor-live-phone .anchor-live-meta span + b::before,
.anchor-live-phone .anchor-live-meta b::before,
.assistant-live-phone .assistant-live-meta span + span::before {
  content: "路";
  margin: 0 5px;
  color: rgba(255,255,255,.58);
}
.anchor-live-phone .anchor-live-meta b {
  color: rgba(255,255,255,.9);
}
.anchor-live-phone .anchor-live-meta b::first-letter {
  color: #22c55e;
}
.live-top-icons,
.channel-host-icons,
.anchor-live-phone .anchor-top-icons,
.assistant-live-phone .assistant-top-icons {
  display: flex;
  gap: 8px;
  align-items: center;
  padding-top: 1px;
}
.live-top-icon,
.channel-host-icons .live-top-icon,
.anchor-live-phone .anchor-top-icons .live-top-icon,
.assistant-live-phone .assistant-top-icons .live-top-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: rgba(255,255,255,.95);
  background: rgba(17,17,17,.16);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 8px 18px rgba(0,0,0,.16);
  backdrop-filter: blur(9px);
}
.live-top-icon svg {
  width: 19px;
  height: 19px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.live-top-icon.icon-share svg {
  width: 20px;
  height: 20px;
  transform: translate(1px, -1px);
}
.live-top-icon.icon-mini svg {
  width: 18px;
  height: 18px;
  opacity: .94;
}
.live-top-icon.icon-close svg {
  width: 19px;
  height: 19px;
}
.live-top-icon span,
.live-top-icon::before,
.live-top-icon::after {
  position: absolute;
  content: "";
}
.live-top-icon.icon-share::before,
.live-top-icon.icon-share::after,
.live-top-icon.icon-mini::before,
.live-top-icon.icon-mini::after,
.live-top-icon.icon-close::before,
.live-top-icon.icon-close::after {
  content: none;
}
.icon-share-action::before {
  width: 15px;
  height: 15px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translate(-2px, 1px) rotate(14deg);
}
.icon-share-action::after {
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-2px, 5px) rotate(-38deg);
  transform-origin: right center;
}
.live-gift-entry,
.channel-phone .channel-lucky-bag,
.anchor-live-phone .anchor-lucky-bag,
.assistant-live-phone .assistant-lucky-bag {
  position: absolute;
  left: 18px;
  top: 124px;
  z-index: 5;
  display: grid;
  justify-items: center;
  gap: 3px;
  width: 52px;
  min-height: 66px;
  padding: 7px 5px 6px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  color: #fff6e6;
  background: linear-gradient(180deg, rgba(238, 99, 72, .92), rgba(187, 51, 39, .9));
  box-shadow: 0 12px 24px rgba(187,51,39,.22);
  backdrop-filter: blur(10px);
}
.live-gift-entry b {
  display: grid;
  place-items: center;
  width: 36px;
  height: 34px;
  border-radius: 10px;
  color: #fff7e8;
  background: rgba(255,255,255,.14);
  font-size: 18px;
}
.live-gift-entry span {
  font-size: 11px;
  font-weight: 800;
}
.anchor-pin-card,
.assistant-pin-card,
.channel-phone .channel-pinned-card {
  left: 82px;
  right: 18px;
  top: 125px;
  z-index: 6;
  min-height: 66px;
  padding: 12px 40px 12px 14px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 18px;
  background: rgba(255,255,255,.76);
  box-shadow: 0 14px 36px rgba(0,0,0,.12);
  backdrop-filter: blur(14px);
}
.anchor-pin-card strong,
.assistant-pin-card strong,
.channel-phone .channel-pinned-card strong {
  color: #111;
  font-size: 16px;
  line-height: 1.38;
}
.anchor-live-phone .anchor-comment-zone,
.assistant-live-phone .assistant-comment-zone,
.channel-phone .channel-comment-layer {
  left: 12px;
  right: 62px;
  bottom: 112px;
  gap: 7px;
  max-height: 382px;
  padding: 0;
  align-content: end;
}
.anchor-live-phone .anchor-comment,
.assistant-live-phone .assistant-comment,
.channel-phone .channel-comment {
  display: flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 29px;
  padding: 5px 10px;
  border-radius: 999px;
  color: rgba(255,255,255,.94);
  background: rgba(14, 18, 16, .38);
  box-shadow: 0 8px 20px rgba(0,0,0,.1);
  font-size: 13px;
  line-height: 1.28;
  backdrop-filter: blur(7px);
}
.anchor-live-phone .anchor-comment p,
.assistant-live-phone .assistant-comment p,
.channel-phone .channel-comment span {
  overflow: hidden;
  max-width: 210px;
  margin: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.channel-phone .channel-comment strong {
  color: #fff;
}
.anchor-live-phone .anchor-id-tag,
.assistant-live-phone .assistant-comment em {
  margin-right: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
}
.anchor-live-phone .anchor-id-tag.vest,
.assistant-live-phone .assistant-comment em {
  color: #2b2413;
  background: rgba(200,164,93,.92);
}
.anchor-live-phone .anchor-bottom-toolbar,
.assistant-bottom-bar,
.channel-phone .channel-input {
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 8;
  min-height: 54px;
  padding: 7px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px;
  background: rgba(18, 18, 18, .36);
  box-shadow: 0 -8px 24px rgba(0,0,0,.1);
  backdrop-filter: blur(16px);
}
.anchor-live-phone .anchor-bottom-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px 42px 42px;
  gap: 8px;
}
.assistant-bottom-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px 38px 38px 38px;
  gap: 7px;
}
.channel-phone .channel-input {
  grid-template-columns: minmax(0, 1fr) 40px 40px 40px;
}
.anchor-live-phone .anchor-chat-input,
.assistant-bottom-bar input,
.channel-phone .channel-input input {
  height: 38px;
  min-width: 0;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: rgba(255,255,255,.86);
  background: rgba(255,255,255,.18);
  font-size: 12px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
}
.anchor-live-phone .anchor-tool,
.assistant-bottom-bar button,
.channel-phone .channel-input button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  min-height: 38px;
  min-width: 0;
  padding: 0;
  border-radius: 999px;
  color: #f7f3ea;
  background: rgba(255,255,255,.16);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
  font-size: 12px;
  font-weight: 800;
}
.assistant-bottom-bar .assistant-send-main,
.channel-phone .channel-input .send {
  color: #16120b;
  background: #c8a45d;
}
.anchor-tool.refresh span,
.assistant-refresh-icon::before {
  content: "鈫?;
  font-size: 19px;
  line-height: 1;
}
.anchor-tool.refresh::before {
  content: "鈫?;
  color: rgba(255,255,255,.95);
  font-size: 19px;
}
.anchor-tool.refresh span {
  display: none;
}
.anchor-tool.refresh.is-loading,
.assistant-bottom-bar button.is-loading,
.viewer-tool.is-loading i {
  animation: spin .7s linear infinite;
}
.anchor-live-phone .anchor-tool.flip-camera::before {
  width: 21px;
  height: 15px;
  border: 2px solid rgba(255,255,255,.94);
  border-radius: 5px;
}
.anchor-live-phone .anchor-tool.flip-camera::after {
  content: "鈫?;
  top: 50%;
  left: 50%;
  color: rgba(255,255,255,.96);
  font-size: 14px;
  transform: translate(-50%, -52%);
}
.anchor-live-phone .anchor-tool.more span::before {
  content: "鈿?;
  font-size: 17px;
}
.icon-send::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 13px solid currentColor;
  transform: translateX(2px);
}
.icon-like::before {
  content: "璧?;
  font-size: 12px;
}
.viewer-side-tools {
  position: absolute;
  right: 14px;
  top: 86px;
  z-index: 7;
  display: flex;
  gap: 7px;
}
.viewer-tool {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: rgba(255,255,255,.92);
  background: rgba(18,18,18,.24);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 8px 18px rgba(0,0,0,.12);
  backdrop-filter: blur(10px);
  font-size: 11px;
  font-weight: 800;
}
.channel-phone .viewer-tool img {
  display: block;
  width: 18px;
  height: 18px;
  max-width: 18px;
  max-height: 18px;
  object-fit: contain;
  flex: 0 0 18px;
  pointer-events: none;
}
.channel-phone .viewer-report img {
  width: 20px;
  height: 20px;
  max-width: 20px;
  max-height: 20px;
  flex-basis: 20px;
}
.viewer-refresh i::before {
  content: "鈫?;
  font-style: normal;
  font-size: 13px;
}
.viewer-report i {
  width: 12px;
  height: 14px;
  border-radius: 6px 6px 8px 8px;
  background: currentColor;
  clip-path: polygon(50% 0, 100% 18%, 92% 72%, 50% 100%, 8% 72%, 0 18%);
  opacity: .9;
}
.assistant-quick-strip {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 72px;
  z-index: 7;
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.assistant-quick-strip::-webkit-scrollbar {
  display: none;
}
.assistant-quick-strip button,
.channel-phone .channel-quick-replies button {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: #12372a;
  background: rgba(247,243,234,.92);
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
  font-size: 12px;
}
.assistant-live-phone .assistant-comment-zone {
  bottom: 114px;
}
.anchor-live-phone .anchor-comment-zone,
.channel-phone .channel-comment-layer {
  bottom: 112px;
  max-height: 382px;
}
.assistant-live-phone .assistant-vest-dock {
  right: 10px;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
}
.assistant-live-phone .assistant-vest-dock button {
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
}
.channel-phone .viewer-report-sheet {
  gap: 14px;
  padding: 18px 16px 20px;
  border: 1px solid rgba(200,164,93,.18);
  border-radius: 24px 24px 0 0;
  background: rgba(255,253,248,.97);
}
.viewer-report-head strong {
  color: #12372a;
  font-size: 18px;
}
.viewer-report-sheet textarea,
.viewer-upload-box {
  border-color: rgba(18,55,42,.16);
  background: rgba(247,243,234,.68);
}

/* Detail fix from reference live UI: keep structure, polish only. */
.channel-phone .channel-topbar,
.anchor-live-phone .anchor-host-panel,
.assistant-live-phone .assistant-host-panel {
  left: 16px;
  right: 14px;
  top: 22px;
}
.channel-phone .channel-host,
.anchor-live-phone .anchor-host-line,
.assistant-live-phone .assistant-host-line {
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
}
.channel-phone .channel-host {
  grid-template-columns: 46px minmax(0, 1fr);
}
.channel-phone .channel-host .avatar,
.anchor-live-phone .avatar,
.assistant-live-phone .assistant-host-line .avatar {
  width: 46px;
  height: 46px;
}
.channel-phone .channel-host strong,
.anchor-live-phone .anchor-title-stack strong,
.assistant-live-phone .assistant-title-stack strong {
  font-size: 16px;
  font-weight: 680;
}
.channel-phone .channel-host p,
.anchor-live-phone .anchor-title-stack p,
.assistant-live-phone .assistant-title-stack p {
  max-width: 210px;
  font-size: 10.5px;
}
.live-top-icons,
.channel-host-icons,
.anchor-live-phone .anchor-top-icons,
.assistant-live-phone .assistant-top-icons {
  gap: 13px;
  padding-top: 0;
}
.live-top-icon,
.channel-host-icons .live-top-icon,
.anchor-live-phone .anchor-top-icons .live-top-icon,
.assistant-live-phone .assistant-top-icons .live-top-icon {
  width: 31px;
  height: 31px;
  min-height: 31px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.live-top-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.35;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,.34));
}
.live-top-icon.icon-share svg {
  width: 27px;
  height: 27px;
  transform: translate(1px, 0);
}
.live-top-icon.icon-mini svg {
  width: 25px;
  height: 25px;
}
.live-top-icon.icon-close svg {
  width: 28px;
  height: 28px;
  stroke-width: 2.15;
}
.anchor-live-phone .anchor-comment-zone,
.assistant-live-phone .assistant-comment-zone,
.channel-phone .channel-comment-layer {
  top: 214px;
  bottom: 86px;
  max-height: none;
  align-content: end;
}
.assistant-live-phone .assistant-comment-zone,
.channel-phone .channel-comment-layer {
  bottom: 108px;
}
.anchor-live-phone .anchor-comment,
.assistant-live-phone .assistant-comment,
.channel-phone .channel-comment {
  min-height: 28px;
  padding: 5px 10px;
  background: rgba(14,18,16,.34);
}
.anchor-live-phone .anchor-bottom-toolbar,
.assistant-bottom-bar,
.channel-phone .channel-input {
  bottom: 12px;
  border: 0;
  background: rgba(255,255,255,.16);
  box-shadow: none;
  backdrop-filter: blur(18px);
}
.anchor-live-phone .anchor-chat-input,
.assistant-bottom-bar input,
.channel-phone .channel-input input {
  background: rgba(17,17,17,.24);
}
.anchor-live-phone .anchor-tool,
.assistant-bottom-bar button,
.channel-phone .channel-input button {
  background: rgba(255,255,255,.2);
  box-shadow: none;
}
.anchor-live-phone .anchor-tool.more {
  font-size: 0;
}
.anchor-live-phone .anchor-tool.more span {
  position: relative;
  display: block;
  width: 19px;
  height: 19px;
}
.anchor-live-phone .anchor-tool.more span::before,
.anchor-live-phone .anchor-tool.more span::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: rgba(255,255,255,.94);
  box-shadow: 11px 0 0 rgba(255,255,255,.94), 0 11px 0 rgba(255,255,255,.94), 11px 11px 0 rgba(255,255,255,.94);
}
.anchor-live-phone .anchor-tool.more span::after {
  display: none;
}

/* Bottom/detail alignment: make the three phone previews feel like one live UI. */
.anchor-live-phone .anchor-comment-zone,
.assistant-live-phone .assistant-comment-zone,
.channel-phone .channel-comment-layer {
  top: 226px;
  gap: 7px;
}
.anchor-entry-line {
  position: absolute;
  left: 12px;
  top: 198px;
  z-index: 6;
  width: fit-content;
  max-width: calc(100% - 76px);
  min-height: 28px;
  padding: 5px 11px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, rgba(236, 88, 58, .94), rgba(217, 76, 51, .62));
  box-shadow: 0 10px 22px rgba(166, 50, 34, .2);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.28;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}
.assistant-entry-line {
  margin-bottom: 1px;
}
.anchor-live-phone .anchor-comment-zone {
  bottom: 66px;
  max-height: none;
}
.assistant-live-phone .assistant-comment-zone,
.channel-phone .channel-comment-layer {
  bottom: 106px;
  max-height: none;
}
.anchor-live-phone .anchor-comment.is-entry,
.assistant-entry-line,
.channel-phone .channel-comment.entry-comment {
  color: #fff;
  background: linear-gradient(90deg, rgba(236, 88, 58, .92), rgba(217, 76, 51, .62));
  box-shadow: 0 10px 22px rgba(166, 50, 34, .2);
}
.anchor-live-phone .anchor-id-tag.entry {
  color: #fff7ef;
  background: rgba(217, 70, 44, .96);
}
.channel-phone .channel-comment.entry-comment strong,
.channel-phone .channel-comment.entry-comment span {
  color: #fff;
}
.anchor-live-phone .anchor-bottom-toolbar,
.assistant-bottom-bar,
.channel-phone .channel-input {
  left: 12px;
  right: 12px;
  bottom: 14px;
  min-height: 42px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.anchor-live-phone .anchor-bottom-toolbar {
  grid-template-columns: minmax(0, 1fr) 40px 40px 40px;
  gap: 12px;
}
.assistant-bottom-bar {
  grid-template-columns: minmax(0, 1fr) 44px 36px 36px 36px;
  gap: 9px;
}
.channel-phone .channel-input {
  grid-template-columns: minmax(0, 1fr) 38px 38px 38px;
  gap: 13px;
}
.anchor-live-phone .anchor-chat-input,
.assistant-bottom-bar input,
.channel-phone .channel-input input {
  height: 40px;
  border-radius: 999px;
  background: rgba(20, 18, 15, .36);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 10px 22px rgba(0,0,0,.12);
  backdrop-filter: blur(12px);
}
.anchor-live-phone .anchor-tool,
.assistant-bottom-bar button,
.channel-phone .channel-input button {
  width: 40px;
  height: 40px;
  min-height: 40px;
  border-radius: 50%;
  color: rgba(255,255,255,.94);
  background: rgba(20,18,15,.22);
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
  backdrop-filter: blur(10px);
}
.assistant-bottom-bar .assistant-send-main,
.channel-phone .channel-input .send {
  color: #1c1508;
  background: rgba(200,164,93,.94);
}
.anchor-live-phone .anchor-tool.more {
  background: rgba(200,164,93,.38);
}
.assistant-bottom-bar button[data-assistant-vest-mode="quick"],
.assistant-bottom-bar button[data-assistant-more] {
  color: rgba(255,255,255,.92);
  background: rgba(255,255,255,.18);
}
.assistant-bottom-bar button[data-assistant-vest-mode="quick"] {
  color: #1c1508;
  background: rgba(200,164,93,.9);
}
.anchor-tool.refresh::before,
.assistant-refresh-icon::before,
.viewer-refresh i::before {
  content: "";
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.9);
  border-left-color: transparent;
  border-radius: 50%;
}
.anchor-tool.refresh::after,
.assistant-refresh-icon::after,
.viewer-refresh i::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-top: 2px solid rgba(255,255,255,.9);
  border-right: 2px solid rgba(255,255,255,.9);
  transform: translate(7px, -7px) rotate(35deg);
}
.anchor-live-phone .anchor-tool.flip-camera::before {
  width: 20px;
  height: 14px;
  border: 2px solid rgba(255,255,255,.92);
  border-radius: 5px;
}
.anchor-live-phone .anchor-tool.flip-camera::after {
  content: "";
  width: 8px;
  height: 8px;
  border: 2px solid rgba(255,255,255,.92);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(35deg);
}
.icon-like::before {
  content: "";
  width: 16px;
  height: 14px;
  background: currentColor;
  clip-path: polygon(50% 18%, 61% 5%, 78% 5%, 92% 18%, 92% 38%, 50% 92%, 8% 38%, 8% 18%, 22% 5%, 39% 5%);
}
.icon-share-action::before {
  content: "";
  width: 18px;
  height: 18px;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
  transform: rotate(45deg) translate(-1px, 3px);
}
.icon-share-action::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 15px;
  border-bottom: 3px solid currentColor;
  border-left: 3px solid currentColor;
  border-radius: 0 0 0 12px;
  transform: translate(-5px, 3px);
}

.icon-share-embedded::before,
.icon-share-embedded::after {
  content: none !important;
  display: none !important;
}

.icon-share-embedded svg {
  display: block;
  width: 28px;
  height: 28px;
  overflow: visible;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .24));
}

.channel-phone .channel-input .icon-share-embedded {
  background: transparent;
  box-shadow: none;
}

/* Unified refresh icon for anchor, assistant and viewer. */
.anchor-tool.refresh::before,
.assistant-refresh-icon::before,
.viewer-refresh i::before {
  content: "";
  display: block;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 0;
  background: url("data:image/svg+xml,%3Csvg width='72' height='72' viewBox='0 0 72 72' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='36' cy='36' r='30' stroke='%2312372A' stroke-width='6.5'/%3E%3Cpath d='M21 31.8C24 23.8 31.4 18.5 40 19.5C46.5 20.2 51.7 24.1 54.3 29.6' stroke='%23C8A45D' stroke-width='6' stroke-linecap='round'/%3E%3Cpath d='M53.8 18.9V30.9H41.8' stroke='%23C8A45D' stroke-width='6' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M51 40.2C48 48.2 40.6 53.5 32 52.5C25.5 51.8 20.3 47.9 17.7 42.4' stroke='%23C8A45D' stroke-width='6' stroke-linecap='round'/%3E%3Cpath d='M18.2 53.1V41.1H30.2' stroke='%23C8A45D' stroke-width='6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: none;
}
.anchor-tool.refresh::after,
.assistant-refresh-icon::after,
.viewer-refresh i::after {
  content: none;
}

/* Viewer report icon: green shield with gold warning mark, matching the provided reference. */
.viewer-report i {
  flex: 0 0 auto;
  width: 18px;
  height: 20px;
  border-radius: 0;
  background: url("data:image/svg+xml,%3Csvg width='64' height='72' viewBox='0 0 64 72' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M32 5C22.5 15.3 12.4 20.8 5 22.1V35.4C5 50 14.3 62.3 32 68C49.7 62.3 59 50 59 35.4V22.1C51.6 20.8 41.5 15.3 32 5Z' stroke='%2312372A' stroke-width='6.5' stroke-linejoin='round'/%3E%3Cpath d='M18 29.5C20.4 43.8 24.6 53.5 32 59' stroke='%23C8A45D' stroke-width='5' stroke-linecap='round' opacity='.9'/%3E%3Cpath d='M46 29.5C43.6 43.8 39.4 53.5 32 59' stroke='%23C8A45D' stroke-width='5' stroke-linecap='round' opacity='.9'/%3E%3Cpath d='M32 24V45' stroke='%23C8A45D' stroke-width='7' stroke-linecap='round'/%3E%3Ccircle cx='32' cy='55' r='4.2' fill='%23C8A45D'/%3E%3C/svg%3E") center / contain no-repeat;
  clip-path: none;
  opacity: 1;
}
.viewer-report i::before,
.viewer-report i::after {
  content: none;
}

.viewer-report {
  gap: 4px;
  padding: 4px 7px 4px 6px;
  color: #f7f3ea;
  background: rgba(18, 18, 18, .2);
}
.viewer-report span {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  color: rgba(255,255,255,.95);
  background: rgba(0,0,0,.28);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

/* Assistant vest picker: large bottom drawer, about three quarters of the phone. */
.assistant-live-phone .assistant-vest-popover {
  left: 10px !important;
  right: 10px !important;
  top: 27% !important;
  bottom: 10px !important;
  width: auto !important;
  max-height: none !important;
  padding: 14px;
  border: 1px solid rgba(200,164,93,.22);
  border-radius: 24px 24px 18px 18px;
  background: linear-gradient(180deg, rgba(18, 24, 20, .94), rgba(10, 12, 10, .9));
  box-shadow: 0 -22px 54px rgba(0,0,0,.36);
  overflow: hidden;
}
.assistant-live-phone.vest-open .assistant-vest-popover {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}
.assistant-live-phone .assistant-fixed-panel,
.assistant-live-phone .assistant-random-panel {
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
}
.assistant-live-phone .assistant-vest-row,
.assistant-live-phone .assistant-quick-list,
.assistant-live-phone .assistant-batch-buttons {
  max-height: none;
}

/* Tidy the large assistant vest drawer so fixed/random vest controls read cleanly. */
.assistant-live-phone .assistant-vest-popover-head {
  min-height: 34px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.assistant-live-phone .assistant-vest-popover-head strong {
  font-size: 15px;
  letter-spacing: .02em;
}
.assistant-live-phone .assistant-vest-popover-head button {
  width: 30px;
  height: 30px;
  min-height: 30px;
  border-radius: 50%;
}
.assistant-live-phone .assistant-fixed-panel,
.assistant-live-phone .assistant-random-panel {
  gap: 12px;
  padding-top: 12px;
}
.assistant-live-phone .assistant-create-row,
.assistant-live-phone .assistant-send-row {
  grid-template-columns: minmax(0, 1fr) 72px;
  align-items: start;
  gap: 8px;
  min-height: 36px;
}
.assistant-live-phone .assistant-create-row {
  max-height: 36px;
}
.assistant-live-phone .assistant-create-row input,
.assistant-live-phone .assistant-send-row input {
  height: 36px;
  padding: 0 10px;
  border-radius: 11px;
}
.assistant-live-phone .assistant-create-row button,
.assistant-live-phone .assistant-send-row button {
  align-self: start;
  width: auto;
  height: 36px;
  min-height: 36px;
  padding: 0 8px;
  border-radius: 11px;
  white-space: nowrap;
  line-height: 36px;
  font-size: 12px;
}
.assistant-live-phone .assistant-vest-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 190px;
  overflow-y: auto;
  padding: 2px 2px 4px;
}
.assistant-live-phone .assistant-vest-row button {
  width: 100%;
  min-width: 0;
  height: 32px;
  min-height: 32px;
  padding: 0 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 32px;
  text-align: center;
  font-size: 12px;
}
.assistant-live-phone .assistant-send-row {
  margin-top: auto;
}
.assistant-live-phone .assistant-quick-list {
  max-height: 104px;
}
.assistant-live-phone .assistant-random-panel textarea {
  min-height: 76px;
  max-height: 92px;
}

/* Refine refresh buttons: fixed green ring, only the gold arrows rotate once. */
.anchor-tool.refresh.is-loading,
.assistant-refresh-icon.is-loading,
.viewer-tool.is-loading i {
  animation: none !important;
  transform: none !important;
}
.anchor-tool.refresh,
.assistant-refresh-icon,
.viewer-refresh i {
  position: relative;
  overflow: visible;
}
.viewer-refresh i {
  display: inline-block;
  width: 24px;
  height: 24px;
}
.anchor-tool.refresh::before,
.assistant-refresh-icon::before,
.viewer-refresh i::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 0;
  background: url("data:image/svg+xml,%3Csvg width='72' height='72' viewBox='0 0 72 72' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='36' cy='36' r='30' stroke='%2312372A' stroke-width='6.8'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: translate(-50%, -50%);
}
.anchor-tool.refresh::after,
.assistant-refresh-icon::after,
.viewer-refresh i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg width='72' height='72' viewBox='0 0 72 72' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M19.5 31.8C23 23.8 30.2 19.2 38.6 20.1C45.6 20.9 51 25.1 53.5 31' stroke='%23C8A45D' stroke-width='7' stroke-linecap='round'/%3E%3Cpath d='M54 19.6V31.8H41.8' stroke='%23C8A45D' stroke-width='7' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M52.5 40.2C49 48.2 41.8 52.8 33.4 51.9C26.4 51.1 21 46.9 18.5 41' stroke='%23C8A45D' stroke-width='7' stroke-linecap='round'/%3E%3Cpath d='M18 52.4V40.2H30.2' stroke='%23C8A45D' stroke-width='7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: translate(-50%, -50%);
  transform-origin: 50% 50%;
}
.anchor-tool.refresh.is-loading::after,
.assistant-refresh-icon.is-loading::after,
.viewer-tool.is-loading i::after {
  animation: refreshArrowTurn .52s ease-in-out 1;
}
@keyframes refreshArrowTurn {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Final live icon assets from the user's desktop folder. */
.live-top-icon img,
.anchor-tool.image-icon img,
.assistant-vest-icon-button img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
  pointer-events: none;
}
.live-top-icon.icon-share img {
  width: 30px;
  height: 30px;
}
.anchor-tool.image-icon::before,
.anchor-tool.image-icon::after,
.anchor-live-phone .anchor-tool.flip-camera::before,
.anchor-live-phone .anchor-tool.flip-camera::after,
.anchor-live-phone .anchor-tool.more span::before,
.anchor-live-phone .anchor-tool.more span::after {
  content: none !important;
  display: none !important;
}
.anchor-tool.refresh::before,
.assistant-refresh-icon::before,
.viewer-refresh i::before {
  width: 25px;
  height: 25px;
  background: url("/assets/icons/frontend-clean/refresh.png") center / contain no-repeat;
}
.anchor-tool.refresh::after,
.assistant-refresh-icon::after,
.viewer-refresh i::after {
  content: none !important;
  display: none !important;
}
.anchor-tool.refresh.is-loading::before,
.assistant-refresh-icon.is-loading::before,
.viewer-tool.is-loading i::before {
  animation: refreshPngTurn .52s ease-in-out 1;
}
@keyframes refreshPngTurn {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
.viewer-report i {
  width: 22px;
  height: 24px;
  background: url("/assets/icons/frontend-clean/report.png") center / contain no-repeat !important;
}
.assistant-vest-icon-button img {
  width: 31px;
  height: 31px;
}
.assistant-vest-icon-button.fixed,
.assistant-vest-icon-button.random {
  display: grid;
  place-items: center;
  background: rgba(15, 18, 15, .36);
}

/* Anchor-only member entry and management drawer. */
.anchor-member-entry {
  position: absolute;
  right: 18px;
  top: 124px;
  z-index: 8;
  display: grid;
  place-items: center;
  gap: 2px;
  width: 52px;
  min-height: 66px;
  padding: 6px 5px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 15px;
  color: #fff8ea;
  background: rgba(18, 55, 42, .42);
  box-shadow: 0 12px 24px rgba(0,0,0,.18);
  backdrop-filter: blur(12px);
}
.anchor-member-entry img {
  width: 35px;
  height: 35px;
  object-fit: contain;
}
.anchor-member-entry span {
  font-size: 11px;
  font-weight: 900;
}
.anchor-member-mask {
  position: absolute;
  inset: 0;
  z-index: 39;
  display: none;
  background: rgba(0,0,0,.28);
  backdrop-filter: blur(2px);
}
.anchor-member-panel {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 22%;
  bottom: 9px;
  z-index: 40;
  display: none;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 7px;
  padding: 10px;
  border: 1px solid rgba(200,164,93,.24);
  border-radius: 24px 24px 18px 18px;
  color: #f8f3e6;
  background: linear-gradient(180deg, rgba(17, 25, 20, .95), rgba(9, 11, 10, .92));
  box-shadow: 0 -24px 60px rgba(0,0,0,.42);
  overflow: hidden;
}
.anchor-live-phone.member-open .anchor-member-mask,
.anchor-live-phone.member-open .anchor-member-panel {
  display: grid;
}
.anchor-member-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: start;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.anchor-member-head strong {
  font-size: 14px;
}
.anchor-member-head p,
.anchor-member-main p {
  margin: 2px 0 0;
  color: rgba(247,243,234,.66);
  font-size: 10px;
  line-height: 1.25;
}
.anchor-member-head button {
  width: 30px;
  height: 30px;
  min-height: 30px;
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,.12);
}
.anchor-member-summary {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 5px;
  align-items: center;
}
.anchor-member-summary span,
.member-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  color: #f8f3e6;
  background: rgba(255,255,255,.1);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}
.anchor-member-summary button {
  height: 24px;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  color: #1b1508;
  background: rgba(200,164,93,.92);
  font-size: 10px;
  font-weight: 900;
}
.anchor-member-list {
  display: grid;
  gap: 6px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
}
.anchor-member-row {
  display: grid;
  gap: 5px;
  padding: 7px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 13px;
  background: rgba(255,255,255,.07);
}
.anchor-member-main {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
}
.anchor-member-main .avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(247,243,234,.18);
  color: #fff;
  font-weight: 900;
}
.anchor-member-main strong {
  display: block;
  overflow: hidden;
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}
.anchor-member-tags,
.anchor-member-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
}
.anchor-member-tags {
  overflow: hidden;
}
.member-pill.red {
  background: rgba(217, 70, 44, .9);
}
.member-pill.green {
  background: rgba(50, 128, 82, .9);
}
.anchor-member-actions button {
  min-height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  color: #12372a;
  background: rgba(247,243,234,.92);
  font-size: 10px;
  font-weight: 900;
}
.anchor-member-actions button.danger {
  color: #fff;
  background: rgba(217, 70, 44, .92);
}

/* Use the provided PNG icons as the actual visual body: no extra pale button shell. */
.anchor-live-phone .anchor-top-icons .live-top-icon,
.assistant-live-phone .assistant-top-icons .live-top-icon,
.anchor-live-phone .anchor-tool,
.assistant-bottom-bar button,
.channel-phone .channel-input button,
.anchor-member-entry,
.assistant-vest-icon-button.fixed,
.assistant-vest-icon-button.random {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
.anchor-live-phone .anchor-top-icons .live-top-icon,
.assistant-live-phone .assistant-top-icons .live-top-icon {
  width: 34px;
  height: 34px;
  min-height: 34px;
}
.live-top-icon img {
  width: 34px;
  height: 34px;
}
.live-top-icon.icon-share img {
  width: 38px;
  height: 38px;
}
.live-top-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.35;
}
.anchor-member-entry {
  right: 17px;
  top: 123px;
  width: 58px;
  min-height: 58px;
  padding: 0;
}
.anchor-member-entry img {
  width: 52px;
  height: 52px;
}
.anchor-member-entry span {
  display: none;
}
.anchor-live-phone .anchor-tool,
.assistant-bottom-bar button,
.channel-phone .channel-input button {
  width: 42px;
  height: 42px;
  min-height: 42px;
}
.anchor-tool.refresh::before,
.assistant-refresh-icon::before,
.viewer-refresh i::before {
  width: 36px;
  height: 36px;
}
.anchor-tool.refresh.is-loading::before,
.assistant-refresh-icon.is-loading::before,
.viewer-tool.is-loading i::before {
  animation: refreshPngTurn .52s ease-in-out 1;
}
.anchor-tool.image-icon img {
  width: 38px;
  height: 38px;
}
.assistant-vest-icon-button img {
  width: 44px;
  height: 44px;
}
.viewer-report i {
  width: 32px;
  height: 34px;
}

/* Complete 14-icon replacement: gift, send, quick-send, like, mini, close. */
.live-gift-entry {
  width: 58px;
  min-height: 66px;
  padding: 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
.live-gift-entry img {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
}
.live-gift-entry b {
  display: none !important;
}
.live-gift-entry span {
  margin-top: -5px;
  padding: 1px 6px;
  border-radius: 999px;
  color: #4b2118;
  background: rgba(247,243,234,.9);
  font-size: 10px;
}
.live-top-icon.icon-mini img,
.live-top-icon.icon-close img {
  width: 34px;
  height: 34px;
}
.image-button img,
.assistant-send-main img,
.assistant-quick-send img,
.assistant-more-icon img,
.channel-phone .channel-input .image-button img {
  display: block;
  width: 38px;
  height: 38px;
  object-fit: contain;
  pointer-events: none;
}
.image-button::before,
.image-button::after,
.icon-send::before,
.icon-send::after,
.icon-like::before,
.icon-like::after,
.icon-share-action::before,
.icon-share-action::after {
  content: none !important;
  display: none !important;
}
.assistant-bottom-bar .assistant-send-main,
.assistant-bottom-bar .assistant-quick-send,
.assistant-bottom-bar .assistant-more-icon,
.channel-phone .channel-input .send,
.channel-phone .channel-input .share,
.channel-phone .channel-input .like {
  color: inherit !important;
  background: transparent !important;
  box-shadow: none !important;
}
.assistant-bottom-bar .assistant-send-main img,
.channel-phone .channel-input .send img {
  width: 40px;
  height: 40px;
}
.assistant-bottom-bar .assistant-quick-send img {
  width: 42px;
  height: 42px;
}
.channel-phone .channel-input .like img,
.channel-phone .channel-input .share img {
  width: 42px;
  height: 42px;
}

/* Refresh icon must stay visually locked in place; rotate the PNG itself only. */
.anchor-tool.refresh::before,
.anchor-tool.refresh::after,
.assistant-refresh-icon::before,
.assistant-refresh-icon::after,
.viewer-refresh i,
.viewer-refresh i::before,
.viewer-refresh i::after {
  content: none !important;
  display: none !important;
  background: none !important;
  animation: none !important;
}
.anchor-tool.refresh img,
.assistant-refresh-icon img,
.viewer-refresh img {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
  transform-origin: 50% 50%;
  pointer-events: none;
}
.anchor-tool.refresh.is-loading img,
.assistant-refresh-icon.is-loading img,
.viewer-tool.is-loading img {
  animation: refreshIconSpin .52s ease-in-out 1;
}
@keyframes refreshIconSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.viewer-refresh {
  gap: 4px;
}
.viewer-refresh img {
  width: 24px;
  height: 24px;
}

/* Make all live control PNG icons visually bolder without changing their shape. */
.live-top-icon img,
.anchor-member-entry img,
.live-gift-entry img,
.anchor-tool.image-button img,
.anchor-tool.refresh img,
.assistant-vest-icon-button img,
.assistant-bottom-bar .image-button img,
.assistant-refresh-icon img,
.channel-phone .channel-input .image-button img,
.viewer-refresh img,
.viewer-report i {
  filter:
    drop-shadow(.55px 0 0 currentColor)
    drop-shadow(-.55px 0 0 currentColor)
    drop-shadow(0 .55px 0 currentColor)
    drop-shadow(0 -.55px 0 currentColor)
    drop-shadow(0 2px 4px rgba(0,0,0,.18));
}

/* Comment row baseline fix: keep identity tag, nickname and content on one clean line. */
.frontend-ui-page .anchor-comment,
.frontend-ui-page .assistant-comment,
.frontend-ui-page .channel-comment {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 27px;
  line-height: 1;
}

.frontend-ui-page .anchor-comment em,
.frontend-ui-page .assistant-comment em,
.frontend-ui-page .anchor-comment .anchor-id-tag {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 17px;
  margin: 0;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  line-height: 17px;
  vertical-align: middle;
}

.frontend-ui-page .anchor-comment span,
.frontend-ui-page .assistant-comment span,
.frontend-ui-page .channel-comment strong {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: 17px;
  line-height: 17px;
  white-space: nowrap;
}

.frontend-ui-page .anchor-comment p,
.frontend-ui-page .assistant-comment p,
.frontend-ui-page .channel-comment span {
  display: block;
  min-width: 0;
  margin: 0;
  line-height: 17px;
}

/* Locked recovery refinements: keep these late so restored pages do not regress. */
.live-console-pro {
  padding: 18px;
  border-radius: 14px;
  background: #101915;
}

.live-console-layout {
  display: grid;
  grid-template-columns: 360px minmax(420px, 1fr) 360px;
  gap: 16px;
  align-items: start;
}

.console-preview-column,
.console-center-column {
  display: grid;
  gap: 16px;
  align-content: start;
}

.console-phone-preview {
  overflow: hidden;
}

.mini-console-phone {
  display: grid;
  place-items: center;
  min-height: 620px;
}

.mini-console-phone .anchor-live-phone {
  transform: scale(.88);
  transform-origin: center center;
  margin: -34px 0;
}

.console-user-row {
  padding: 12px;
  border: 1px solid rgba(200, 164, 93, .18);
  border-radius: 10px;
  background: rgba(255, 255, 255, .05);
  margin-bottom: 10px;
}

.console-user-row strong {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}

.console-user-row p,
.console-live-comments .subtle {
  color: rgba(255, 255, 255, .68);
  margin: 6px 0 0;
  font-size: 12px;
}

.console-send-panel,
.console-quick-panel,
.console-ops-panel {
  min-height: 160px;
}

.recent-vest-line,
.mini-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.recent-vest-line button,
.mini-tabs span {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(247, 243, 234, .9);
  color: #12372a;
  font-weight: 700;
}

.console-quick-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.console-quick-grid button {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 8px;
}

.console-selected-comment {
  border: 1px solid rgba(200, 164, 93, .22);
  border-radius: 10px;
  padding: 14px;
  background: rgba(0, 0, 0, .16);
  color: #fff;
}

.console-live-comments .comment-list {
  display: grid;
  gap: 10px;
  max-height: 760px;
  overflow: auto;
  padding-right: 4px;
}

.console-live-comments .comment-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 8px;
  align-items: baseline;
  border: 1px solid rgba(200, 164, 93, .2);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, .06);
}

.console-live-comments .comment-item span {
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(200, 164, 93, .18);
  color: #f0d892;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.console-live-comments .comment-item p {
  margin: 0;
  color: #fff;
  line-height: 1.5;
}

.console-live-comments .comment-item small {
  grid-column: 2;
  color: rgba(255, 255, 255, .52);
}

.users-page .user-stats {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.user-filter {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  background: #f7f3ea;
}

.user-filter input,
.user-filter select {
  height: 40px;
  border: 1px solid #e6e1d8;
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
}

.user-table-wrap table {
  min-width: 1120px;
}

.clean-table td p {
  margin: 4px 0 0;
  color: #7c7467;
  font-size: 12px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tag-list span {
  border-radius: 999px;
  padding: 3px 8px;
  background: #eef4ec;
  color: #12372a;
  font-size: 12px;
}

.user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.send-progress {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  background: #eef7ee;
  border: 1px solid rgba(18, 55, 42, .12);
}

.send-progress[hidden] {
  display: none;
}

.send-progress > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #12372a;
}

.send-progress-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(18, 55, 42, .12);
}

.send-progress-bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #12372a, #c8a45d);
  transition: width .18s ease;
}

.rolling-pager {
  margin-top: auto;
}

.admin-vest-console .grid-2 {
  align-items: stretch;
}

.admin-vest-console .panel {
  min-width: 0;
}

@media (max-width: 1280px) {
  .live-console-layout {
    grid-template-columns: 1fr;
  }

  .mini-console-phone {
    min-height: auto;
  }

  .mini-console-phone .anchor-live-phone {
    transform: scale(.82);
  }

  .users-page .user-stats,
  .user-filter {
    grid-template-columns: 1fr;
  }
}

/* Login logo must use the real transparent PNG directly, without a baked white tile. */
.login-brand-mark {
  width: 326px;
  height: 326px;
  background: transparent !important;
  box-shadow: none !important;
}

.login-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
  filter: drop-shadow(0 18px 28px rgba(18, 55, 42, .13));
}

/* Stable backend shell: keep the approved left menu vertical and readable. */
.workspace {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  background: #f7f3ea;
}

.content {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 18px 22px 28px;
}

.sidebar {
  width: 248px;
  background: #0d2119;
  border-right: 1px solid rgba(200, 164, 93, .18);
}

.brand {
  padding: 12px 8px 16px;
}

.brand strong {
  overflow: hidden;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: .04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand small {
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav {
  display: flex !important;
  flex-direction: column;
  gap: 10px;
  padding-right: 4px;
}

.nav-group {
  display: flex !important;
  flex-direction: column;
  gap: 5px;
  padding: 4px 0 8px;
}

.nav-group > span {
  padding: 8px 10px 3px;
  color: #d5b56d;
  font-size: 12px;
  line-height: 1;
}

.nav button {
  display: flex !important;
  width: 100% !important;
  min-height: 38px;
  align-items: center;
  justify-content: flex-start !important;
  padding: 0 12px;
  border-radius: 7px;
  color: #e6eee9;
  background: transparent;
  box-shadow: none;
  text-align: left;
}

.nav button:hover {
  background: rgba(168, 195, 160, .1);
}

.nav button.active {
  color: #fff;
  background: #124332;
  box-shadow: inset 4px 0 0 #c8a45d;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar h1 {
  margin: 0 0 4px;
  color: #12372a;
  font-size: 24px;
}

.hero-actions {
  display: flex;
  gap: 10px;
}

.quick-entry-grid .tool-card {
  min-height: 76px;
  display: grid;
  align-content: center;
  justify-items: start;
  padding: 12px;
  color: #12372a;
  background: #f7f3ea;
  border: 1px solid rgba(200, 164, 93, .28);
}

.quick-entry-grid .tool-card span {
  color: #667085;
  font-size: 12px;
}

.account-page,
.role-page {
  display: grid;
  gap: 16px;
}

.account-create-panel {
  display: grid;
  gap: 16px;
}

.account-form {
  display: grid;
  gap: 16px;
}

.account-form-inline {
  margin-top: 12px;
}

.permission-check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.permission-check-grid label,
.risk-permission-grid label,
.role-card label {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(214, 221, 232, .92);
  border-radius: 7px;
  background: #fbfaf6;
}

.role-permission-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.role-card {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(214, 221, 232, .92);
  border-radius: 8px;
  background: #fff;
}

.role-card h3 {
  color: #12372a;
}

.risk-permission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.risk-permission-grid small {
  margin-left: auto;
  color: #c0443e;
  font-size: 12px;
}

.table-actions,
.user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.table-actions button {
  min-height: 32px;
  padding: 0 10px;
}

@media (max-width: 1380px) {
  .role-permission-grid,
  .permission-check-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Step 3: full live operation console. Scoped to avoid changing other pages. */
.full-console {
  display: grid;
  grid-template-rows: auto minmax(560px, 1fr) 300px;
  gap: 14px;
  min-height: calc(100vh - 128px);
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 0%, rgba(168, 195, 160, .12), transparent 28%),
    linear-gradient(135deg, #0c1714, #17231f 52%, #111111);
}

.console-status-bar {
  display: grid;
  grid-template-columns: 1.05fr 1.55fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(200, 164, 93, .2);
  border-radius: 10px;
  background: rgba(13, 33, 25, .86);
}

.console-room-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.console-room-title h2 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 22px;
}

.console-room-title p,
.console-panel-head p,
.console-source-notes,
.comment-meta-line {
  color: rgba(230, 238, 233, .68);
  font-size: 12px;
}

.console-mock-badge {
  display: inline-flex;
  min-height: 20px;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  color: #ffe9a8;
  background: rgba(200, 164, 93, .14);
  border: 1px solid rgba(200, 164, 93, .32);
  font-size: 11px;
  font-weight: 700;
}

.console-status-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(72px, 1fr));
  gap: 8px;
}

.console-status-metrics span {
  min-height: 48px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 8px;
  color: rgba(230, 238, 233, .72);
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.08);
}

.console-status-metrics b {
  color: #fff;
  font-size: 17px;
}

.console-status-actions {
  max-width: 360px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.console-status-actions button {
  min-height: 32px;
  padding: 0 10px;
}

.console-status-actions .console-mock-badge {
  margin-left: 4px;
  color: inherit;
  background: rgba(255,255,255,.15);
}

.console-main-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: 300px minmax(360px, 1fr) 330px;
  gap: 14px;
}

.console-bottom-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(420px, 1fr);
  gap: 14px;
}

.console-panel {
  min-height: 0;
  padding: 14px;
  border: 1px solid rgba(200, 164, 93, .18);
  border-radius: 10px;
  color: #f7f3ea;
  background: rgba(27, 40, 36, .86);
  box-shadow: 0 18px 36px rgba(0,0,0,.18);
}

.console-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.console-panel-head h3 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 16px;
}

.console-preview-panel,
.console-workbench,
.console-comments-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.console-workbench {
  grid-template-rows: auto auto auto auto;
  gap: 12px;
  overflow: hidden;
}

.console-preview-tabs,
.comment-filter-tabs,
.console-quick-tools,
.console-send-type {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.console-preview-tabs button,
.comment-filter-tabs button,
.console-quick-tools button,
.console-send-type label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: #e6eee9;
  background: rgba(255,255,255,.08);
}

.console-preview-tabs button.active,
.comment-filter-tabs button.active {
  color: #12372a;
  background: #d9c078;
}

.console-phone-scroll {
  min-height: 0;
  overflow: auto;
  display: grid;
  justify-items: center;
  padding: 6px 0;
}

.console-phone-frame {
  width: 282px;
  display: grid;
  justify-items: center;
}

.console-phone-frame .anchor-live-phone,
.console-phone-frame .assistant-live-phone,
.console-phone-frame .phone {
  transform: scale(.76);
  transform-origin: top center;
}

.console-source-notes {
  display: grid;
  gap: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.work-card {
  min-height: 0;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 9px;
  background: rgba(25, 35, 49, .68);
}

.console-send-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
}

.console-send-row.pin-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.console-send-row input,
.console-send-row select,
.console-quick-tools input {
  min-height: 36px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 7px;
  color: #fff;
  background: rgba(255,255,255,.08);
}

.console-send-row button {
  min-height: 36px;
}

.recent-send-line {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  align-items: center;
  color: rgba(230, 238, 233, .7);
  font-size: 12px;
}

.recent-send-line button {
  max-width: 170px;
  min-height: 28px;
  overflow: hidden;
  padding: 0 10px;
  color: #12372a;
  background: #f7f3ea;
  text-overflow: ellipsis;
}

.quick-send-card {
  min-height: 180px;
}

.console-quick-scroll {
  max-height: 132px;
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.quick-send-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
}

.quick-send-item button:first-child {
  overflow: hidden;
  color: #172033;
  background: #f7f3ea;
  text-overflow: ellipsis;
}

.console-current-pin,
.reward-status-row {
  margin: 0;
  color: rgba(230, 238, 233, .78);
}

.reward-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.console-comments-panel {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.console-comment-list {
  min-height: 0;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 8px;
  padding-right: 4px;
}

.console-comment-row {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  cursor: pointer;
}

.console-comment-row:hover,
.console-comment-row.selected {
  border-color: rgba(200, 164, 93, .62);
  background: rgba(200, 164, 93, .12);
}

.comment-main-line {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.comment-main-line strong,
.comment-main-line span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.full-console .comment-main-line {
  align-items: flex-start;
}

.full-console .comment-main-line span:last-child {
  display: -webkit-box;
  white-space: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.35;
}

.comment-main-line strong {
  color: #ffd982;
}

.tag {
  display: inline-flex;
  min-width: 44px;
  min-height: 22px;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.tag.vest { color: #12372a; background: #d9c078; }
.tag.user { background: rgba(168, 195, 160, .5); }
.tag.insider { background: #2b8a57; }
.tag.source-red { background: #d94841; }
.tag.source-green { background: #28865d; }
.tag.filtered { background: #7c2d12; }
.tag.restricted { background: #991b1b; }

.comment-meta-line,
.comment-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.comment-row-actions {
  display: none;
}

.console-comment-row:hover .comment-row-actions,
.console-comment-row.selected .comment-row-actions {
  display: flex;
}

.comment-row-actions button {
  min-height: 26px;
  padding: 0 8px;
  color: #12372a;
  background: #edf3e9;
  font-size: 12px;
}

.selected-comment-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.selected-comment-card div {
  display: grid;
  gap: 4px;
  min-height: 58px;
  padding: 9px;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
}

.selected-comment-card span {
  color: rgba(230, 238, 233, .62);
  font-size: 12px;
}

.selected-comment-card strong {
  overflow: hidden;
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.danger-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.invite-entry-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 12px;
}

.invite-rank-table,
.entry-record-list {
  min-height: 0;
  overflow: auto;
}

.invite-rank-table h4,
.entry-record-list h4 {
  margin: 0 0 8px;
  color: #fff;
}

.invite-rank-table table {
  width: 100%;
  border-collapse: collapse;
  color: #e6eee9;
  font-size: 12px;
}

.invite-rank-table th,
.invite-rank-table td {
  padding: 8px 6px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  text-align: left;
}

.entry-record-list {
  display: grid;
  align-content: start;
  gap: 8px;
}

.entry-record-row {
  min-height: auto;
  display: grid;
  justify-items: start;
  gap: 4px;
  padding: 9px;
  border-radius: 8px;
  color: #e6eee9;
  background: rgba(255,255,255,.06);
  text-align: left;
}

.entry-record-row span,
.entry-record-row em {
  color: rgba(230, 238, 233, .66);
  font-size: 12px;
  font-style: normal;
}

@media (max-width: 1180px) {
  .console-status-bar,
  .console-main-grid,
  .console-bottom-grid {
    grid-template-columns: 1fr;
  }

  .full-console {
    overflow: visible;
  }
}

/* Step 4: operation vest management page */
.step4-vest-page {
  display: grid;
  gap: 14px;
  color: #173a2d;
}

.vest-page-hero,
.vest-pane,
.vest-stat-grid,
.vest-main-tabs {
  border: 1px solid #e6e1d8;
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 12px 28px rgba(18, 55, 42, .07);
}

.vest-page-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 20px;
  background:
    linear-gradient(100deg, rgba(247, 243, 234, .96), rgba(255, 253, 248, .96)),
    radial-gradient(circle at 85% 10%, rgba(168, 195, 160, .25), transparent 30%);
}

.vest-page-hero h2 {
  margin: 3px 0 5px;
  font-size: 24px;
  color: #12372a;
}

.vest-page-hero p,
.vest-pane-head p {
  margin: 0;
  color: #6f7b74;
  font-size: 12px;
  line-height: 1.6;
}

.vest-page-hero .eyebrow {
  color: #a17d35;
  font-size: 11px;
  font-weight: 800;
}

.vest-hero-actions,
.vest-card-actions,
.vest-batch-bar,
.vest-record-filters,
.form-actions,
.quick-pick-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.vest-hero-actions {
  justify-content: flex-end;
}

.vest-stat-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(90px, 1fr));
  gap: 1px;
  overflow: hidden;
  background: #e6e1d8;
}

.vest-stat-grid > div {
  min-width: 0;
  padding: 11px 12px;
  background: #fffdf8;
}

.vest-stat-grid span {
  display: block;
  margin-bottom: 3px;
  color: #78837c;
  font-size: 11px;
}

.vest-stat-grid strong {
  display: block;
  overflow: hidden;
  color: #12372a;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vest-main-tabs {
  display: flex;
  gap: 5px;
  padding: 6px;
  overflow-x: auto;
}

.vest-main-tabs button {
  flex: 0 0 auto;
  color: #40564c;
  border-color: transparent;
  background: transparent;
}

.vest-main-tabs button.active {
  color: #fff;
  border-color: #12372a;
  background: #12372a;
}

.vest-three-column {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(330px, .95fr) minmax(430px, 1.35fr) minmax(270px, .75fr);
  align-items: stretch;
  gap: 14px;
}

.vest-pane {
  min-width: 0;
  padding: 15px;
}

.vest-pane-head {
  min-height: 44px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.vest-pane-head h3,
.vest-guide-grid h4 {
  margin: 0 0 3px;
  color: #12372a;
}

.vest-filter-grid,
.vest-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.vest-filter-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 9px;
}

.vest-filter-grid input,
.vest-filter-grid select,
.vest-form-grid input,
.vest-form-grid select,
.vest-form-grid textarea,
.vest-record-filters input,
.vest-record-filters select {
  width: 100%;
  min-width: 0;
  border: 1px solid #ddd7cc;
  background: #fff;
}

.vest-form-grid label {
  min-width: 0;
  display: grid;
  gap: 5px;
  color: #526159;
  font-size: 12px;
}

.vest-form-grid textarea {
  min-height: 92px;
  resize: vertical;
}

.vest-form-grid .span-2 {
  grid-column: 1 / -1;
}

.vest-batch-bar {
  margin-bottom: 9px;
  padding: 7px 8px;
  border: 1px solid #e8e3da;
  border-radius: 6px;
  background: #f8f5ed;
}

.vest-batch-bar span {
  margin-right: auto;
  color: #6c786f;
  font-size: 12px;
}

.vest-card-list,
.vest-identity-list,
.vest-random-pool,
.vest-log-mini,
.vest-preview-grid,
.vest-record-table {
  scrollbar-color: rgba(18, 55, 42, .35) transparent;
  scrollbar-width: thin;
}

.vest-card-list {
  max-height: 430px;
  display: grid;
  gap: 8px;
  overflow-y: auto;
  padding-right: 4px;
}

.vest-account-card {
  position: relative;
  display: grid;
  grid-template-columns: 28px 38px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 9px;
  border: 1px solid #e5dfd5;
  border-radius: 7px;
  background: #fff;
}

.vest-account-card.disabled {
  opacity: .65;
}

.vest-check {
  display: grid;
  place-items: center;
}

.vest-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: #12372a;
  font-weight: 900;
}

.vest-account-main {
  min-width: 0;
}

.vest-account-main > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.vest-account-main p,
.vest-account-main small {
  display: block;
  overflow: hidden;
  margin: 3px 0 0;
  color: #758178;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vest-card-actions {
  grid-column: 2 / -1;
  padding-top: 2px;
}

.vest-card-actions button,
.vest-batch-bar button,
.vest-record-filters button,
.quick-pick-row button,
.vest-identity-list button {
  padding: 6px 8px;
  font-size: 11px;
}

.vest-side-pane {
  display: flex;
  flex-direction: column;
}

.vest-guide-list,
.vest-log-mini {
  display: grid;
  gap: 8px;
}

.vest-guide-list > div,
.vest-log-mini > div {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid #e6e1d8;
  border-radius: 7px;
  background: #f8f5ed;
}

.vest-guide-list span,
.vest-log-mini span,
.vest-log-mini small {
  color: #758178;
  font-size: 11px;
  line-height: 1.5;
}

.vest-log-mini {
  max-height: 440px;
  overflow-y: auto;
  margin-bottom: 10px;
}

.vest-identity-list,
.vest-random-pool {
  max-height: 470px;
  overflow-y: auto;
}

.vest-identity-list {
  display: grid;
  gap: 7px;
}

.fixed-vest-quick-tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 0 0 10px;
  padding: 8px;
  border: 1px solid #e6dfd2;
  border-radius: 7px;
  background: #f8f5ed;
}

.fixed-vest-quick-tools button {
  min-width: 0;
  padding: 7px 8px;
  font-size: 11px;
  white-space: nowrap;
}

.random-vest-create-tools {
  display: grid;
  gap: 8px;
  margin: 0 0 10px;
  padding: 8px;
  border: 1px solid #e6dfd2;
  border-radius: 7px;
  background: #f8f5ed;
}

.random-vest-preset-row,
.random-vest-custom-row {
  display: grid;
  gap: 7px;
}

.random-vest-preset-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.random-vest-custom-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.random-vest-create-tools button {
  min-width: 0;
  padding: 7px 8px;
  font-size: 11px;
  white-space: nowrap;
}

.random-vest-create-tools input {
  height: 32px;
  font-size: 12px;
}

.vest-identity-list button {
  min-width: 0;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 2px 8px;
  color: #173a2d;
  text-align: left;
  border-color: #e2dccf;
  background: #f8f5ed;
}

.vest-identity-list button span {
  grid-row: 1 / 3;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: #12372a;
}

.vest-identity-list button small {
  overflow: hidden;
  color: #758178;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vest-mini-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 6px;
  align-items: stretch;
}

.vest-mini-row > button:first-child {
  min-width: 0;
}

.vest-mini-row .mini-delete {
  min-height: 34px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 11px;
}

.vest-random-pool,
.vest-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.vest-random-pool span,
.vest-preview-grid span {
  overflow: hidden;
  padding: 7px 8px;
  color: #40564c;
  border: 1px solid #e5dfd5;
  border-radius: 6px;
  background: #f8f5ed;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vest-random-pool .vest-random-chip {
  display: inline-grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 6px;
  align-items: center;
  padding: 5px 6px 5px 8px;
}

.vest-random-chip i {
  overflow: hidden;
  font-style: normal;
  text-overflow: ellipsis;
}

.vest-random-chip button {
  width: 42px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: #d94841;
  color: #fff;
  font-size: 11px;
  line-height: 22px;
  cursor: pointer;
}

.vest-preview-grid {
  max-height: 485px;
  overflow-y: auto;
}

.vest-task-progress {
  display: grid;
  gap: 9px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #e2dccf;
  border-radius: 7px;
  background: #f8f5ed;
}

.vest-task-progress > div:first-child,
.vest-task-metrics {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.vest-task-metrics span {
  color: #66746b;
  font-size: 11px;
}

.progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6e1d8;
}

.progress-track i {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #12372a, #c8a45d);
  transition: width .25s ease;
}

.vest-records-pane {
  min-height: 590px;
}

.vest-record-filters {
  margin-bottom: 10px;
}

.vest-record-filters input {
  min-width: 220px;
  flex: 1;
}

.vest-record-table {
  max-height: 500px;
  overflow: auto;
}

.vest-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.vest-guide-grid article {
  min-height: 112px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  padding: 13px;
  border: 1px solid #e5dfd5;
  border-radius: 7px;
  background: #f8f5ed;
}

.vest-guide-grid article > b {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: #12372a;
}

.vest-guide-grid p {
  margin: 0;
  color: #6f7b74;
  font-size: 12px;
  line-height: 1.65;
}

.vest-pane .wide {
  width: 100%;
  margin-top: auto;
}

@media (max-width: 1450px) {
  .vest-stat-grid {
    grid-template-columns: repeat(4, minmax(90px, 1fr));
  }

  .vest-three-column {
    grid-template-columns: minmax(310px, .9fr) minmax(400px, 1.25fr) minmax(250px, .7fr);
  }
}

@media (max-width: 1180px) {
  .vest-page-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .vest-three-column {
    grid-template-columns: 1fr;
  }

  .vest-card-list,
  .vest-identity-list,
  .vest-random-pool,
  .vest-log-mini,
  .vest-preview-grid,
  .vest-record-table {
    max-height: 420px;
  }

  .vest-guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Step 3 console final refinement: keep this block scoped to the live console only. */
.full-console .console-status-actions {
  max-width: 460px;
}

.full-console .console-status-actions button {
  min-width: 84px;
}

.full-console .console-main-grid {
  grid-template-columns: 346px minmax(390px, 1fr) 330px;
}

.full-console .console-preview-panel {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.full-console .console-phone-scroll {
  align-content: start;
  padding: 2px 0 4px;
}

.full-console .console-phone-frame {
  width: 326px;
  min-height: 570px;
}

.full-console .console-phone-frame .anchor-live-phone,
.full-console .console-phone-frame .assistant-live-phone,
.full-console .console-phone-frame .phone {
  transform: scale(.88);
  transform-origin: top center;
}

.full-console .console-source-notes {
  gap: 6px;
  padding-top: 10px;
}

.full-console .console-source-notes span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: rgba(255, 255, 255, .045);
}

.full-console .console-source-notes b {
  color: #d9c078;
  font-weight: 800;
}

.full-console .console-workbench {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.console-work-tabs,
.console-segmented,
.console-entry-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(200, 164, 93, .2);
  border-radius: 10px;
  background: rgba(255, 255, 255, .055);
}

.console-work-tabs {
  width: fit-content;
  margin-bottom: 2px;
}

.console-work-tabs button,
.console-segmented button,
.console-entry-tabs button {
  min-height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  color: rgba(230, 238, 233, .76);
  background: transparent;
  font-size: 13px;
  font-weight: 800;
}

.console-work-tabs button.active,
.console-segmented button.active,
.console-entry-tabs button.active {
  color: #12372a;
  background: #d9c078;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .16);
}

.console-tab-card {
  min-height: 0;
  overflow: hidden;
  align-content: start;
}

.console-tab-card .console-panel-head {
  margin-bottom: 2px;
}

.console-segmented {
  width: fit-content;
}

.console-mode-note {
  padding: 8px 10px;
  border: 1px solid rgba(200, 164, 93, .18);
  border-radius: 8px;
  color: rgba(230, 238, 233, .78);
  background: rgba(200, 164, 93, .08);
  font-size: 12px;
  line-height: 1.5;
}

.console-tab-card .recent-send-line {
  min-height: 34px;
}

.console-pin-current {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 9px;
  color: rgba(230, 238, 233, .72);
  background: rgba(255, 255, 255, .055);
}

.console-pin-current strong {
  color: #fff;
  font-size: 16px;
}

.reward-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.reward-status-grid div {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 9px;
  background: rgba(255, 255, 255, .055);
}

.reward-status-grid span {
  color: rgba(230, 238, 233, .64);
  font-size: 12px;
}

.reward-status-grid strong {
  color: #fff;
}

.full-console .comment-row-actions {
  display: none;
}

.full-console .console-comment-row:hover .comment-row-actions {
  display: none;
}

.full-console .console-comment-row.selected .comment-row-actions {
  display: flex;
}

.full-console .console-comment-row.selected {
  border-color: rgba(216, 191, 116, .82);
  background: rgba(200, 164, 93, .16);
  box-shadow: inset 0 0 0 1px rgba(216, 191, 116, .28);
}

.full-console .console-comment-row:not(.selected):hover {
  border-color: rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .075);
}

.console-entry-tabs {
  width: fit-content;
  margin-bottom: 10px;
}

/* Step 3 scroll guard: keep the live comment stream inside the right panel. */
.full-console {
  height: calc(100vh - 128px);
  min-height: 760px;
  grid-template-rows: auto minmax(0, 1fr) 300px;
}

.full-console .console-main-grid {
  min-height: 0;
  height: clamp(430px, calc(100vh - 420px), 560px);
  overflow: hidden;
}

.full-console .console-comments-panel {
  position: relative;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  align-self: stretch;
  overflow: hidden;
  grid-template-rows: auto auto minmax(0, 1fr);
}

.full-console .console-comment-list {
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(200, 164, 93, .58) rgba(255, 255, 255, .055);
}

.full-console .console-comment-list::-webkit-scrollbar {
  width: 6px;
}

.full-console .console-comment-list::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, .055);
}

.full-console .console-comment-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(200, 164, 93, .62);
}

.console-comment-new-tip {
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 3;
  display: none;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(216, 191, 116, .5);
  border-radius: 999px;
  color: #12372a;
  background: #d9c078;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .28);
  font-size: 12px;
  font-weight: 900;
}

.console-comment-new-tip.show {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1180px) {
  .full-console {
    height: auto;
    min-height: calc(100vh - 128px);
  }

  .full-console .console-main-grid,
  .full-console .console-comments-panel {
    overflow: visible;
  }

  .full-console .console-comment-list {
    max-height: 420px;
  }
}

.console-entry-body {
  min-height: 0;
  overflow: auto;
}

/* Recovery guard: restore Step 3 console layout without overlapping panels. */
.full-console {
  height: auto;
  min-height: calc(100vh - 128px);
  grid-template-rows: auto auto auto;
  overflow: visible;
}

.full-console .console-status-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.full-console .console-status-title h2 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 22px;
}

.full-console .console-status-title p {
  margin: 0;
  color: rgba(230, 238, 233, .68);
  font-size: 12px;
}

.full-console .console-status-metrics div {
  min-height: 48px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  color: rgba(230, 238, 233, .72);
  background: rgba(255, 255, 255, .055);
}

.full-console .console-status-metrics strong {
  color: #fff;
  font-size: 17px;
}

.full-console .console-main-grid {
  height: 640px;
  min-height: 640px;
  overflow: hidden;
}

.full-console .console-bottom-grid {
  min-height: 280px;
}

.full-console .console-tab-body {
  min-height: 0;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 12px;
}

.full-console .segmented {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(200, 164, 93, .2);
  border-radius: 10px;
  background: rgba(255, 255, 255, .055);
}

.full-console .segmented button {
  min-height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  color: rgba(230, 238, 233, .76);
  background: transparent;
  font-size: 13px;
  font-weight: 800;
}

.full-console .segmented button.active {
  color: #12372a;
  background: #d9c078;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .16);
}

.full-console .manual-send-grid {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: end;
}

.full-console .manual-send-grid label {
  display: grid;
  gap: 6px;
  color: rgba(230, 238, 233, .72);
  font-size: 12px;
}

.full-console .manual-send-grid input,
.full-console .manual-send-grid select,
.full-console .wide-input,
.full-console textarea {
  min-height: 36px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 7px;
  color: #fff;
  background: rgba(255,255,255,.08);
}

.full-console textarea {
  min-height: 100px;
  padding: 10px;
  resize: vertical;
}

.full-console .mini-table {
  display: grid;
  gap: 8px;
  max-height: 190px;
  overflow: auto;
}

.full-console .mini-table > div {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  padding: 9px;
  border-radius: 8px;
  color: #e6eee9;
  background: rgba(255, 255, 255, .06);
  font-size: 12px;
}

.full-console .selected-comment-detail {
  display: grid;
  gap: 10px;
}

.full-console .detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.full-console .detail-grid span {
  padding: 8px;
  border-radius: 8px;
  color: rgba(230, 238, 233, .76);
  background: rgba(255, 255, 255, .06);
  font-size: 12px;
}

.full-console .comment-scroll-tip {
  position: absolute;
  right: 14px;
  bottom: 12px;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(216, 191, 116, .48);
  border-radius: 999px;
  color: #12372a;
  background: #d9c078;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .24);
  font-size: 12px;
  font-weight: 900;
}

/* Recovery guard: stable brand login visual using the provided transparent PNG logo. */
.login-visual .login-logo-orbit {
  position: relative;
  z-index: 2;
  width: 220px;
  height: 220px;
  display: grid;
  place-items: center;
  margin: 0 auto 24px;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
}

.login-visual .login-logo-orbit img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 18px 24px rgba(18, 55, 42, .11));
}

.login-visual > h1 {
  position: relative;
  z-index: 2;
  margin: 0;
  color: #12372a;
  font-family: "STKaiti", "KaiTi", "Microsoft YaHei", serif;
  font-size: 42px;
  font-weight: 800;
  text-align: center;
}

.login-visual > i {
  position: relative;
  z-index: 2;
  width: 96px;
  height: 2px;
  margin: 16px auto 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #c8a45d, transparent);
}

.login-visual > p {
  position: relative;
  z-index: 2;
  margin: 0;
  color: rgba(18, 55, 42, .68);
  font-size: 16px;
  letter-spacing: .18em;
}

.login-visual .poem {
  position: absolute;
  z-index: 1;
  top: 92px;
  bottom: 86px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  color: rgba(49, 89, 70, .36);
  font-family: "STXingkai", "STKaiti", "KaiTi", "Microsoft YaHei", serif;
  font-size: 26px;
  letter-spacing: .22em;
  pointer-events: none;
}

.login-visual .poem.left {
  left: 48px;
}

.login-visual .poem.right {
  right: 48px;
}

/* Login brand composition polish: keep the supplied logo, tighten the couplet, and lift the brand feel. */
.login-visual .login-logo-orbit {
  width: 246px;
  height: 246px;
  margin: 8px auto 32px;
  transform: translateY(-4px);
}

.login-visual .login-logo-orbit img {
  width: 108%;
  height: 108%;
  filter: drop-shadow(0 22px 30px rgba(18, 55, 42, .13));
}

.login-visual > h1 {
  transform: translateY(10px);
  font-size: 44px;
  letter-spacing: .2em;
  text-indent: .2em;
  font-family: "STXingkai", "华文行楷", "STKaiti", "KaiTi", "Microsoft YaHei", serif;
  font-weight: 700;
}

.login-visual > i {
  width: 148px;
  margin: 28px auto 20px;
  background: linear-gradient(90deg, transparent 3%, rgba(200, 164, 93, .98), transparent 97%);
}

.login-visual > p {
  transform: translateY(2px);
  font-size: 15px;
  letter-spacing: .26em;
  text-indent: .26em;
}

.login-visual .poem {
  top: 78px;
  bottom: 88px;
  color: rgba(49, 89, 70, .42);
  font-family: "STXingkai", "华文行楷", "LiSu", "隶书", "STKaiti", "KaiTi", "Microsoft YaHei", serif;
  font-size: 27px;
  font-weight: 500;
  letter-spacing: .18em;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255,255,255,.55), 0 14px 24px rgba(18,55,42,.09);
}

.login-visual .poem.left {
  left: auto;
  right: 78px;
  transform: rotate(.8deg);
}

.login-visual .poem.right {
  right: auto;
  left: 78px;
  transform: rotate(-.8deg);
}

.invite-entry-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
}

.invite-entry-panel .invite-rank-table,
.invite-entry-panel .entry-record-list {
  max-height: 230px;
}

/* Integration configuration center */
.integration-center {
  gap: 16px;
}

.integration-hero {
  background:
    linear-gradient(135deg, rgba(18, 55, 42, .95), rgba(18, 55, 42, .74)),
    radial-gradient(circle at 82% 12%, rgba(200, 164, 93, .18), transparent 36%);
  color: #fff;
}

.integration-db-note {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  border-color: rgba(200, 164, 93, .22);
  background: #fffdf7;
}

.integration-db-note h3,
.integration-db-note p {
  margin: 0;
}

.integration-db-note p {
  color: #66746c;
}

.integration-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  border: 1px solid #e6e1d8;
  border-radius: 10px;
  background: #fffdf7;
}

.integration-tabs button {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  color: #365146;
  background: #f7f3ea;
  font-weight: 800;
}

.integration-tabs button.active {
  color: #fff;
  background: #12372a;
  box-shadow: 0 10px 22px rgba(18, 55, 42, .18);
}

.integration-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: start;
}

.integration-form {
  display: grid;
  gap: 16px;
}

.integration-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.integration-field-grid label,
.integration-form label {
  display: grid;
  gap: 7px;
  color: #2a3b34;
  font-size: 13px;
  font-weight: 800;
}

.integration-field-grid input,
.integration-field-grid select,
.secret-input input {
  width: 100%;
  min-height: 38px;
  border: 1px solid #ddd6c8;
  border-radius: 8px;
  color: #12372a;
  background: #fff;
  font-size: 14px;
}

.secret-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.secret-input small {
  grid-column: 1 / -1;
  color: #8a7560;
  font-weight: 700;
}

.integration-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid #ece5d8;
}

.integration-help {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(200, 164, 93, .28);
  border-radius: 12px;
  background: linear-gradient(180deg, #fffdf7, #f7f3ea);
  box-shadow: 0 16px 36px rgba(18, 55, 42, .08);
}

.integration-help h3 {
  margin: 0;
  color: #12372a;
}

.integration-help p {
  margin: 0;
  padding-left: 10px;
  border-left: 3px solid rgba(200, 164, 93, .52);
  color: #50645a;
  line-height: 1.55;
}

.integration-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
  border: 1px solid #e7dfd2;
  border-radius: 10px;
  background: #fbf8f0;
}

.integration-checks legend {
  padding: 0 6px;
  color: #12372a;
  font-weight: 900;
}

.integration-checks label {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff;
  color: #375046;
  font-size: 13px;
}

.integration-status-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.integration-status-strip span,
.obs-card,
.callback-log-preview {
  padding: 12px;
  border: 1px solid #e6e1d8;
  border-radius: 10px;
  background: #fbf8f0;
  color: #40564b;
}

.obs-card h3,
.callback-log-preview h3 {
  margin: 0 0 8px;
  color: #12372a;
}

.obs-card p,
.callback-log-preview p {
  margin: 4px 0;
}

.integration-diagnostics {
  display: grid;
  gap: 16px;
}

.diagnostic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.diagnostic-grid article {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid #e6e1d8;
  border-radius: 10px;
  background: #fffdf7;
}

.diagnostic-grid h3 {
  margin: 0;
  color: #12372a;
  font-size: 15px;
}

.diagnostic-grid p {
  margin: 0;
  color: #66746c;
  font-size: 12px;
}

.integration-log-table {
  overflow: auto;
}

.integration-log-table table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

.integration-log-table th,
.integration-log-table td {
  padding: 10px;
  border-bottom: 1px solid #e9e2d6;
  color: #32443c;
  text-align: left;
  white-space: nowrap;
}

.integration-log-table th {
  color: #12372a;
  background: #f7f3ea;
}

@media (max-width: 1180px) {
  .integration-layout,
  .integration-field-grid,
  .diagnostic-grid,
  .integration-status-strip {
    grid-template-columns: 1fr;
  }

  .integration-help {
    position: static;
  }
}

.integration-global-actions {
  align-items: center;
  flex-wrap: wrap;
}

.integration-global-actions button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid rgba(200, 164, 93, .38);
  color: #fff;
  background: rgba(18, 55, 42, .92);
  font-weight: 900;
}

.integration-global-actions button.light {
  color: #12372a;
  background: #fffdf7;
}

.integration-layout.has-guide {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
}

.integration-main-col {
  min-width: 0;
}

.integration-guide {
  position: sticky;
  top: 18px;
  max-height: calc(100vh - 120px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(200, 164, 93, .32);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 253, 247, .98), rgba(247, 243, 234, .98)),
    radial-gradient(circle at 90% 0, rgba(168, 195, 160, .18), transparent 34%);
  box-shadow: 0 18px 42px rgba(18, 55, 42, .1);
}

.integration-guide.collapsed {
  grid-template-rows: auto;
}

.integration-guide-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border-bottom: 1px solid rgba(230, 225, 216, .9);
}

.integration-guide-head h3 {
  margin: 4px 0 0;
  color: #12372a;
  font-size: 18px;
}

.integration-guide-head .eyebrow {
  color: #9b7a38;
}

.integration-guide.collapsed .integration-guide-body {
  display: none;
}

.integration-guide-body {
  display: grid;
  gap: 14px;
  padding: 16px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(18, 55, 42, .28) transparent;
}

.integration-guide-body::-webkit-scrollbar,
.integration-drawer::-webkit-scrollbar {
  width: 7px;
}

.integration-guide-body::-webkit-scrollbar-thumb,
.integration-drawer::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(18, 55, 42, .25);
}

.integration-guide-body section {
  display: grid;
  gap: 8px;
}

.integration-guide-body h4 {
  margin: 0;
  color: #12372a;
  font-size: 14px;
}

.integration-guide-body p,
.integration-guide-body li {
  margin: 0;
  color: #50645a;
  font-size: 13px;
  line-height: 1.65;
}

.integration-guide-body ul {
  margin: 0;
  padding-left: 18px;
}

.integration-guide-body .ordered-like {
  counter-reset: integration-step;
  list-style: none;
  padding-left: 0;
}

.integration-guide-body .ordered-like li {
  counter-increment: integration-step;
  position: relative;
  padding-left: 28px;
}

.integration-guide-body .ordered-like li::before {
  content: counter(integration-step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #12372a;
  font-size: 11px;
  font-weight: 900;
}

.integration-field-help {
  display: grid;
  gap: 8px;
}

.integration-field-help article {
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid rgba(230, 225, 216, .95);
  border-radius: 10px;
  background: #fffdf7;
}

.integration-field-help strong {
  color: #12372a;
}

.integration-field-help .pill {
  justify-self: start;
}

.integration-code {
  display: grid;
  gap: 7px;
  padding: 10px;
  border-radius: 10px;
  background: #eef2ea;
  border: 1px solid #dde7d9;
}

.integration-code code {
  white-space: normal;
  word-break: break-all;
  color: #183d2f;
  font-size: 12px;
}

.integration-guide-body .warning {
  padding: 10px;
  border-radius: 10px;
  background: rgba(200, 164, 93, .13);
}

.integration-guide-body .danger {
  padding: 10px;
  border-radius: 10px;
  background: rgba(220, 61, 61, .08);
  border: 1px solid rgba(220, 61, 61, .12);
}

.integration-wide-btn {
  width: 100%;
  min-height: 38px;
  border-radius: 9px;
  color: #fff;
  background: #12372a;
  font-weight: 900;
}

.integration-drawer-mask {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  justify-content: flex-end;
  background: rgba(17, 17, 17, .32);
  backdrop-filter: blur(5px);
}

.integration-drawer {
  width: min(560px, 94vw);
  height: 100%;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 24px;
  background: #fffdf7;
  box-shadow: -24px 0 60px rgba(18, 55, 42, .18);
}

.integration-drawer-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid #e6e1d8;
}

.integration-drawer-head h2 {
  margin: 4px 0 0;
  color: #12372a;
}

.integration-drawer section {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #e6e1d8;
  border-radius: 12px;
  background: #f9f5ec;
}

.integration-drawer h3 {
  margin: 0;
  color: #12372a;
}

.integration-drawer li,
.integration-drawer p {
  color: #50645a;
  line-height: 1.7;
}

@media (max-width: 1180px) {
  .integration-layout.has-guide {
    grid-template-columns: 1fr;
  }

  .integration-guide {
    position: static;
    max-height: none;
  }
}

/* Frontend UI icon replacement: use only the copied transparent PNG assets. */
.frontend-ui-page img[src*="/assets/icons/frontend"],
.anchor-live-phone img[src*="/assets/icons/frontend"],
.assistant-live-phone img[src*="/assets/icons/frontend"],
.channel-phone img[src*="/assets/icons/frontend"] {
  display: block;
  object-fit: contain;
  object-position: center;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  pointer-events: none;
}

.frontend-ui-page .live-top-icon,
.frontend-ui-page .anchor-tool,
.frontend-ui-page .assistant-bottom-bar button,
.frontend-ui-page .channel-input button,
.frontend-ui-page .assistant-vest-icon-button,
.frontend-ui-page .anchor-member-entry,
.frontend-ui-page .live-gift-entry {
  display: inline-grid;
  place-items: center;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.frontend-ui-page .live-top-icon {
  width: 46px;
  height: 46px;
  min-height: 46px;
  padding: 0;
}

.frontend-ui-page .live-top-icon img {
  width: 38px;
  height: 38px;
}

.frontend-ui-page .live-top-icon.icon-share img {
  width: 42px;
  height: 42px;
}

.frontend-ui-page .anchor-tool,
.frontend-ui-page .assistant-bottom-bar button,
.frontend-ui-page .channel-input button {
  width: 52px;
  height: 52px;
  min-height: 52px;
  padding: 0;
}

.frontend-ui-page .anchor-tool img,
.frontend-ui-page .assistant-bottom-bar button img,
.frontend-ui-page .channel-input button img {
  width: 44px;
  height: 44px;
}

.frontend-ui-page .anchor-tool.refresh img,
.frontend-ui-page .assistant-refresh-icon img,
.frontend-ui-page .viewer-refresh img {
  width: 42px;
  height: 42px;
}

.frontend-ui-page .assistant-vest-icon-button img {
  width: 52px;
  height: 52px;
}

.frontend-ui-page .live-gift-entry img {
  width: 58px;
  height: 58px;
}

.frontend-ui-page .anchor-member-entry img {
  width: 60px;
  height: 60px;
}

.frontend-ui-page .viewer-report i,
.frontend-ui-page .viewer-refresh i {
  display: none !important;
}

.frontend-ui-page .viewer-report img {
  width: 38px;
  height: 38px;
}

.frontend-ui-page .viewer-tool {
  gap: 4px;
}

.frontend-ui-page .anchor-tool.refresh.is-loading img,
.frontend-ui-page .assistant-refresh-icon.is-loading img,
.frontend-ui-page .viewer-tool.is-loading img {
  animation: refreshIconSpin .52s ease-in-out 1;
}

/* Step 3 console layout fix 2026-06-03: compact, one-screen control room. */
.full-console {
  height: calc(100vh - 112px);
  min-height: 720px;
  max-height: none;
  overflow: hidden;
  display: grid;
  grid-template-rows: 112px minmax(0, 1fr) 132px;
  gap: 10px;
  padding: 10px;
}

.full-console .console-status-bar {
  min-height: 0;
  max-height: 112px;
  grid-template-columns: minmax(250px, .95fr) minmax(430px, 1.65fr) minmax(250px, auto);
  gap: 10px;
  padding: 10px 12px;
  overflow: hidden;
}

.full-console .console-status-title {
  gap: 10px;
}

.full-console .console-status-title h2 {
  max-width: 300px;
  margin: 0 0 3px;
  overflow: hidden;
  color: #fff;
  font-size: 18px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.full-console .console-status-title p {
  max-width: 340px;
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.full-console .console-status-metrics {
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px;
}

.full-console .console-status-metrics div,
.full-console .console-status-metrics span {
  min-height: 30px;
  padding: 3px 8px;
  border-radius: 7px;
}

.full-console .console-status-metrics span,
.full-console .console-status-metrics div span {
  color: rgba(230, 238, 233, .62);
  font-size: 10px;
}

.full-console .console-status-metrics strong,
.full-console .console-status-metrics b {
  font-size: 14px;
  line-height: 1.1;
}

.full-console .console-status-actions {
  max-width: 278px;
  gap: 6px;
}

.full-console .console-status-actions button {
  min-width: 0;
  min-height: 27px;
  padding: 0 8px;
  font-size: 11px;
}

.full-console .console-main-grid {
  min-height: 0;
  height: auto;
  overflow: hidden;
  grid-template-columns: 344px minmax(360px, 1fr) 318px;
  gap: 10px;
}

.full-console .console-bottom-grid {
  min-height: 0;
  height: 132px;
  overflow: hidden;
  gap: 10px;
}

.full-console .console-panel {
  min-height: 0;
  padding: 10px;
  overflow: hidden;
}

.full-console .console-panel-head {
  gap: 8px;
  margin-bottom: 7px;
}

.full-console .console-panel-head h3 {
  margin-bottom: 2px;
  font-size: 14px;
}

.full-console .console-panel-head p {
  font-size: 11px;
  line-height: 1.35;
}

.full-console .console-preview-panel {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.full-console .console-preview-tabs {
  gap: 5px;
  margin-bottom: 4px;
}

.full-console .console-preview-tabs button {
  min-height: 24px;
  padding: 0 9px;
  font-size: 12px;
}

.full-console .console-preview-panel .console-panel-head {
  min-height: 28px;
  margin-bottom: 4px;
}

.full-console .console-preview-panel .console-panel-head p {
  display: none;
}

.full-console .console-phone-scroll {
  min-height: 0;
  height: 100%;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 0 0 2px;
}

.full-console .console-phone-frame {
  width: 215px;
  min-height: 0;
  height: 398px;
  display: grid;
  place-items: start;
  overflow: hidden;
}

.full-console .console-phone-frame .anchor-live-phone,
.full-console .console-phone-frame .assistant-live-phone,
.full-console .console-phone-frame .phone {
  width: 390px !important;
  max-width: none !important;
  min-height: 720px !important;
  height: 720px !important;
  margin: 0 !important;
  transform: scale(.55);
  transform-origin: top left;
}

.full-console .console-source-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  padding-top: 3px;
  font-size: 10px;
}

.full-console .console-source-notes span {
  display: grid;
  gap: 2px;
  padding: 3px 5px;
}

.full-console .console-workbench {
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 8px;
}

.full-console .console-work-tabs {
  margin-bottom: 0;
}

.full-console .console-work-tabs button,
.full-console .segmented button {
  min-height: 28px;
  padding: 0 10px;
  font-size: 12px;
}

.full-console .console-tab-body {
  min-height: 0;
  max-height: 100%;
  overflow: auto;
  gap: 8px;
  padding-right: 3px;
}

.full-console .segmented {
  margin-bottom: 0;
}

.full-console .manual-send-grid {
  grid-template-columns: 128px minmax(0, 1fr) 56px 56px;
  gap: 7px;
  align-items: end;
}

.full-console .manual-send-grid input,
.full-console .manual-send-grid select,
.full-console .wide-input,
.full-console textarea {
  min-height: 32px;
  font-size: 12px;
}

.full-console textarea {
  min-height: 74px;
}

.full-console .recent-line,
.full-console .quick-groups,
.full-console .actions {
  gap: 6px;
}

.full-console .notice {
  padding: 8px 10px;
  font-size: 12px;
}

.full-console .console-comments-panel {
  position: relative;
  height: 100%;
  max-height: 100%;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.full-console .console-comment-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 7px;
}

.full-console .console-comment-filters button {
  min-height: 25px;
  padding: 0 8px;
  font-size: 11px;
}

.full-console .console-comment-list {
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  gap: 6px;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(200, 164, 93, .58) rgba(255, 255, 255, .055);
}

.full-console .comment-back-latest {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 50px;
  z-index: 5;
  min-height: 28px;
  padding: 0 14px;
  border: 1px solid rgba(200, 164, 93, .42);
  border-radius: 999px;
  color: #12372a;
  background: #f9edbd;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .24);
  font-size: 12px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(6px);
  transition: opacity .18s ease, transform .18s ease;
}

.full-console .comment-back-latest.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.full-console .console-comment-list::-webkit-scrollbar,
.full-console .console-tab-body::-webkit-scrollbar,
.full-console .mini-table::-webkit-scrollbar {
  width: 6px;
}

.full-console .console-comment-list::-webkit-scrollbar-track,
.full-console .console-tab-body::-webkit-scrollbar-track,
.full-console .mini-table::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, .055);
}

.full-console .console-comment-list::-webkit-scrollbar-thumb,
.full-console .console-tab-body::-webkit-scrollbar-thumb,
.full-console .mini-table::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(200, 164, 93, .62);
}

.full-console .console-comment-row {
  gap: 4px;
  padding: 8px 9px;
}

.full-console .console-comment-row p {
  margin: 0;
  overflow: hidden;
  color: rgba(255,255,255,.92);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.full-console .console-comment-row small {
  display: none;
}

.full-console .comment-main-line {
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.full-console .comment-main-line span:first-child {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.full-console .comment-main-line span:last-child {
  flex: 0 0 auto;
  display: inline;
  max-width: 48px;
  overflow: hidden;
  color: rgba(230, 238, 233, .48);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.full-console .comment-row-actions,
.full-console .console-comment-row:hover .comment-row-actions,
.full-console .console-comment-row.selected .comment-row-actions {
  display: none !important;
}

.full-console .comment-process-panel,
.full-console .invite-entry-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.full-console .selected-comment-detail {
  min-height: 0;
  overflow: auto;
  gap: 7px;
}

.full-console .selected-comment-detail p {
  margin: 0;
}

.full-console .detail-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.full-console .detail-grid span {
  padding: 6px;
  font-size: 11px;
}

.full-console .selected-comment-detail .actions {
  gap: 6px;
}

.full-console .selected-comment-detail .actions button {
  min-height: 28px;
  padding: 0 8px;
  font-size: 12px;
}

.full-console .console-entry-tabs {
  margin-bottom: 6px;
}

.full-console .mini-table {
  max-height: 62px;
  overflow: auto;
  gap: 5px;
}

.full-console .mini-table > div {
  gap: 5px;
  padding: 6px 7px;
  font-size: 11px;
}

@media (max-width: 1180px) {
  .full-console {
    height: auto;
    max-height: none;
    overflow: visible;
    grid-template-rows: auto auto auto;
  }

  .full-console .console-main-grid,
  .full-console .console-bottom-grid {
    height: auto;
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .full-console .console-comment-list {
    max-height: 420px;
  }
}

/* Step 3 console visual polish 2026-06-03: improve proportion, fill, and preview size. */
.full-console {
  height: calc(100vh - 96px);
  min-height: 780px;
  grid-template-rows: 92px minmax(0, 1fr) 168px;
  gap: 12px;
  padding: 12px;
}

.full-console .console-status-bar {
  max-height: 92px;
  grid-template-columns: minmax(240px, .9fr) minmax(460px, 1.7fr) minmax(270px, auto);
  padding: 9px 12px;
  border-radius: 14px;
}

.full-console .console-status-title h2 {
  font-size: 17px;
}

.full-console .console-status-metrics {
  grid-template-columns: repeat(8, minmax(54px, 1fr));
}

.full-console .console-status-metrics div,
.full-console .console-status-metrics span {
  min-height: 28px;
  padding: 2px 7px;
}

.full-console .console-main-grid {
  grid-template-columns: 392px minmax(420px, 1fr) 336px;
  gap: 12px;
}

.full-console .console-bottom-grid {
  height: 168px;
  gap: 12px;
}

.full-console .console-panel {
  padding: 11px;
  border-radius: 14px;
}

.full-console .console-preview-panel {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.full-console .console-phone-scroll {
  place-items: center;
  padding: 2px 0;
}

.full-console .console-phone-frame {
  width: 281px;
  height: 518px;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, .22));
}

.full-console .console-phone-frame .anchor-live-phone,
.full-console .console-phone-frame .assistant-live-phone,
.full-console .console-phone-frame .phone {
  transform: scale(.72);
}

.full-console .console-source-notes {
  gap: 6px;
  padding-top: 5px;
}

.full-console .console-source-notes span {
  padding: 5px 7px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.full-console .console-workbench,
.full-console .console-comments-panel {
  border-color: rgba(200, 164, 93, .22);
}

.full-console .console-tab-body {
  padding-right: 5px;
}

.full-console .console-comment-list {
  gap: 7px;
  padding-right: 5px;
}

.full-console .console-comment-row {
  min-height: 38px;
  padding: 7px 9px;
  border-radius: 9px;
}

.full-console .comment-process-panel,
.full-console .invite-entry-panel {
  grid-template-rows: auto minmax(0, 1fr);
}

.full-console .mini-table {
  max-height: 92px;
}

.full-console .selected-comment-detail {
  max-height: none;
  overflow: visible;
}

.full-console .comment-main-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.full-console .comment-main-line span:first-child {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.full-console .comment-main-line b {
  flex: 0 0 auto;
  color: #fff1b7;
  font-weight: 900;
}

.full-console .comment-main-line em {
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, .9);
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.full-console .comment-main-line span:last-child {
  max-width: 42px;
  color: rgba(230, 238, 233, .42);
  font-size: 10px;
}

.full-console .source-tag {
  flex: 0 0 auto;
  min-width: 34px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.full-console .source-tag.gold {
  color: #2c2815;
  background: #d9c078;
}

.full-console .source-tag.red {
  color: #fff;
  background: linear-gradient(135deg, #d84b3f, #ad2f2f);
}

.full-console .source-tag.jade {
  color: #09291e;
  background: #a8c3a0;
}

.full-console .source-tag.neutral {
  color: #ecf3ee;
  background: rgba(255, 255, 255, .18);
}

@media (min-height: 1000px) and (min-width: 1300px) {
  .full-console {
    grid-template-rows: 96px minmax(0, 1fr) 186px;
  }

  .full-console .console-main-grid {
    grid-template-columns: 430px minmax(440px, 1fr) 350px;
  }

  .full-console .console-bottom-grid {
    height: 186px;
  }

  .full-console .console-phone-frame {
    width: 316px;
    height: 583px;
  }

  .full-console .console-phone-frame .anchor-live-phone,
  .full-console .console-phone-frame .assistant-live-phone,
  .full-console .console-phone-frame .phone {
    transform: scale(.81);
  }

  .full-console .mini-table {
    max-height: 112px;
  }
}

@media (max-width: 1180px) {
  .full-console {
    height: auto;
    min-height: calc(100vh - 128px);
    grid-template-rows: auto auto auto;
  }

  .full-console .console-main-grid,
  .full-console .console-bottom-grid {
    height: auto;
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .full-console .console-phone-frame {
    width: min(316px, 86vw);
    height: min(583px, 155vw);
  }
}

/* Frontend preview detail polish 2026-06-05: shrink icons and align three role headers. */
.frontend-ui-page .channel-phone .channel-topbar,
.frontend-ui-page .anchor-live-phone .anchor-host-panel,
.frontend-ui-page .assistant-live-phone .assistant-host-panel {
  left: 16px;
  right: 16px;
  top: 22px;
  min-height: 48px;
  height: 48px;
  padding: 0;
}

.frontend-ui-page .channel-phone .channel-host,
.frontend-ui-page .anchor-live-phone .anchor-host-line,
.frontend-ui-page .assistant-live-phone .assistant-host-line {
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-height: 48px;
}

.frontend-ui-page .channel-phone .channel-host {
  grid-template-columns: 38px minmax(0, 1fr);
}

.frontend-ui-page .channel-phone .channel-host .avatar,
.frontend-ui-page .anchor-live-phone .avatar,
.frontend-ui-page .assistant-live-phone .assistant-host-line .avatar {
  width: 38px;
  height: 38px;
}

.frontend-ui-page .channel-title-stack,
.frontend-ui-page .anchor-title-stack,
.frontend-ui-page .assistant-title-stack {
  gap: 3px;
  padding-top: 0;
}

.frontend-ui-page .channel-phone .channel-host strong,
.frontend-ui-page .anchor-live-phone .anchor-title-stack strong,
.frontend-ui-page .assistant-live-phone .assistant-title-stack strong {
  font-size: 14px;
  line-height: 1.16;
}

.frontend-ui-page .channel-phone .channel-host p,
.frontend-ui-page .anchor-live-phone .anchor-title-stack p,
.frontend-ui-page .assistant-live-phone .assistant-title-stack p {
  max-width: 178px;
  font-size: 9.5px;
  line-height: 1.2;
}

.frontend-ui-page .live-counter-row,
.frontend-ui-page .anchor-live-phone .anchor-live-meta,
.frontend-ui-page .assistant-live-phone .assistant-live-meta {
  min-height: 12px;
  font-size: 9.5px;
  line-height: 1.15;
}

.frontend-ui-page .live-top-icons,
.frontend-ui-page .channel-host-icons,
.frontend-ui-page .anchor-live-phone .anchor-top-icons,
.frontend-ui-page .assistant-live-phone .assistant-top-icons {
  align-items: center;
  gap: 8px;
  height: 38px;
  padding-top: 0;
}

.frontend-ui-page .channel-host-icons {
  padding-top: 7px;
}

.frontend-ui-page .live-top-icon,
.frontend-ui-page .channel-host-icons .live-top-icon,
.frontend-ui-page .anchor-live-phone .anchor-top-icons .live-top-icon,
.frontend-ui-page .assistant-live-phone .assistant-top-icons .live-top-icon {
  width: 28px;
  height: 28px;
  min-height: 28px;
}

.frontend-ui-page .live-top-icon img,
.frontend-ui-page .live-top-icon.icon-share img,
.frontend-ui-page .live-top-icon.icon-mini img,
.frontend-ui-page .live-top-icon.icon-close img {
  width: 24px;
  height: 24px;
}

.frontend-ui-page .live-top-icon.icon-share img {
  width: 25px;
  height: 25px;
}

.frontend-ui-page .live-top-icon.icon-close img {
  width: 26px;
  height: 26px;
}

.frontend-ui-page .anchor-bottom-toolbar,
.frontend-ui-page .assistant-bottom-bar,
.frontend-ui-page .channel-input {
  left: 12px;
  right: 12px;
  bottom: 11px;
  min-height: 42px;
  height: 42px;
  align-items: center;
  gap: 8px;
  padding: 5px 7px;
}

.frontend-ui-page .anchor-chat-input,
.frontend-ui-page .assistant-bottom-bar input,
.frontend-ui-page .channel-input input {
  height: 32px;
  min-height: 32px;
  line-height: 32px;
}

.frontend-ui-page .anchor-tool,
.frontend-ui-page .assistant-bottom-bar button,
.frontend-ui-page .channel-input button {
  width: 34px;
  height: 34px;
  min-height: 34px;
  flex: 0 0 34px;
  padding: 0;
}

.frontend-ui-page .anchor-tool.more {
  width: 34px;
  height: 34px;
  min-width: 34px;
  flex: 0 0 34px;
}

.frontend-ui-page .anchor-tool img,
.frontend-ui-page .assistant-bottom-bar button img,
.frontend-ui-page .channel-input button img,
.frontend-ui-page .anchor-tool.refresh img,
.frontend-ui-page .assistant-refresh-icon img,
.frontend-ui-page .viewer-refresh img,
.frontend-ui-page .assistant-bottom-bar .assistant-send-main img,
.frontend-ui-page .channel-phone .channel-input .send img {
  width: 27px;
  height: 27px;
  max-width: 27px;
  max-height: 27px;
}

.frontend-ui-page .assistant-bottom-bar .assistant-quick-send img,
.frontend-ui-page .channel-phone .channel-input .share img,
.frontend-ui-page .channel-phone .channel-input .like img {
  width: 28px;
  height: 28px;
  max-width: 28px;
  max-height: 28px;
}

.vest-random-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.vest-clear-random {
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  white-space: nowrap;
}

/* Account and permission workspace polish 2026-06-06. */
.account-management-page,
.role-permission-page-v2 {
  display: grid;
  gap: 16px;
  align-content: start;
}

.account-page-intro {
  padding: 0;
  overflow: hidden;
}

.account-page-heading {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(200, 164, 93, .22);
  background:
    linear-gradient(90deg, rgba(168, 195, 160, .15), transparent 48%),
    #fffdf8;
}

.account-page-heading h2,
.role-permission-hero h2 {
  margin: 5px 0 6px;
  color: #12372a;
  font-size: 24px;
}

.account-page-heading p,
.role-permission-hero p {
  max-width: 760px;
  color: #66736b;
  line-height: 1.65;
}

.account-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid rgba(200, 164, 93, .28);
  border-radius: 999px;
  color: #8b6c2e;
  background: #fbf5e6;
  font-size: 12px;
  font-weight: 700;
}

.account-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.account-stat-card {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 16px 20px 18px;
  border-right: 1px solid var(--color-border);
  background: rgba(255, 255, 255, .54);
  transition: background .18s ease, transform .18s ease;
}

.account-stat-card:last-child {
  border-right: 0;
}

.account-stat-card:hover {
  z-index: 1;
  background: #fff;
  transform: translateY(-2px);
}

.account-stat-card span {
  color: #66736b;
  font-size: 12px;
}

.account-stat-card strong {
  overflow: hidden;
  color: #12372a;
  font-size: 22px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-stat-card small {
  overflow: hidden;
  color: #8a918d;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-workspace-grid {
  display: grid;
  grid-template-columns: minmax(300px, .82fr) minmax(390px, 1.25fr) minmax(260px, .76fr);
  gap: 16px;
  align-items: stretch;
}

.account-create-card,
.account-list-panel,
.account-detail-panel,
.assistant-create-card,
.assistant-authorized-card {
  min-width: 0;
}

.account-create-card,
.assistant-create-card {
  display: grid;
  align-content: start;
  gap: 16px;
  background:
    linear-gradient(145deg, rgba(168, 195, 160, .12), transparent 46%),
    #fffdf8;
}

.account-card-heading {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.account-card-heading h2 {
  margin: 1px 0 4px;
  color: #12372a;
  font-size: 17px;
}

.account-card-heading p {
  color: #758079;
  font-size: 12px;
  line-height: 1.55;
}

.account-card-mark {
  min-width: 42px;
  min-height: 28px;
  display: inline-grid;
  place-items: center;
  padding: 0 8px;
  border-radius: 6px;
  color: #fff;
  background: #12372a;
  font-size: 11px;
  font-weight: 700;
}

.account-form-fields,
.assistant-form-grid {
  display: grid;
  gap: 12px;
}

.assistant-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-form-fields label,
.assistant-form-grid label {
  color: #4f5f56;
  font-size: 12px;
  font-weight: 700;
}

.account-form-fields input,
.assistant-form-grid input,
.assistant-form-grid select {
  height: 42px;
  border-color: #ddd8ce;
  background: rgba(255, 255, 255, .88);
}

.account-form-fields input:focus,
.assistant-form-grid input:focus,
.assistant-form-grid select:focus {
  outline: 2px solid rgba(168, 195, 160, .35);
  border-color: #79957e;
}

.account-create-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 11px;
  border: 1px solid rgba(168, 195, 160, .35);
  border-radius: 7px;
  color: #315c46;
  background: #eff5ec;
  font-size: 12px;
}

.account-create-note small {
  color: #758079;
  font-size: 11px;
}

.account-primary-action {
  min-height: 42px;
  box-shadow: 0 10px 22px rgba(18, 55, 42, .14);
  font-weight: 700;
}

.account-list-panel,
.assistant-authorized-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
}

.account-count {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: #76591d;
  background: #fff2c9;
  font-size: 12px;
  white-space: nowrap;
}

.account-record-list,
.assistant-account-list {
  display: grid;
  gap: 9px;
  align-content: start;
  max-height: 390px;
  overflow-y: auto;
  padding-right: 3px;
}

.account-record-list::-webkit-scrollbar,
.assistant-account-list::-webkit-scrollbar,
.assistant-user-table::-webkit-scrollbar,
.permission-matrix-wrap::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.account-record-list::-webkit-scrollbar-thumb,
.assistant-account-list::-webkit-scrollbar-thumb,
.assistant-user-table::-webkit-scrollbar-thumb,
.permission-matrix-wrap::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(18, 55, 42, .22);
}

.account-record-card,
.assistant-account-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e6e1d8;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.account-record-card:hover,
.assistant-account-card:hover {
  border-color: rgba(18, 55, 42, .34);
  box-shadow: 0 10px 24px rgba(18, 55, 42, .07);
}

.account-record-card.selected,
.assistant-account-card.selected {
  border-color: #8eaa8a;
  background: #f2f7ef;
  box-shadow: inset 3px 0 0 #c8a45d;
}

.account-avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fffdf8;
  background: linear-gradient(145deg, #12372a, #315c46);
  font-size: 15px;
  font-weight: 700;
}

.account-avatar.large {
  width: 50px;
  height: 50px;
  font-size: 18px;
}

.account-record-main,
.assistant-account-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.account-record-title,
.assistant-account-main > div {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.account-record-main strong,
.assistant-account-main strong {
  color: #12372a;
}

.account-record-main p,
.assistant-account-main p {
  color: #66736b;
  font-size: 12px;
}

.account-record-main small,
.assistant-account-main small {
  overflow: hidden;
  color: #8a918d;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.role-tag,
.status-tag,
.identity-chip,
.soft-tag {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 11px;
  white-space: nowrap;
}

.role-tag {
  color: #725719;
  background: #fbefc9;
}

.status-tag.enabled {
  color: #1d6a3e;
  background: #dcf7e5;
}

.status-tag.disabled {
  color: #a13e39;
  background: #fde7e4;
}

.account-record-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.account-record-actions button {
  min-height: 30px;
  padding: 0 9px;
  font-size: 12px;
}

.account-record-actions .account-stop {
  color: #8d6115;
  border: 1px solid #ead8a8;
  background: #fff8e7;
}

.account-detail-panel {
  display: grid;
  align-content: start;
  gap: 15px;
  background:
    linear-gradient(160deg, rgba(200, 164, 93, .1), transparent 42%),
    #fffdf8;
}

.account-detail-identity {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(200, 164, 93, .24);
  border-radius: 8px;
  background: #fff;
}

.account-detail-identity strong {
  color: #12372a;
  font-size: 15px;
}

.account-detail-identity p {
  margin-top: 3px;
  color: #758079;
  font-size: 12px;
}

.account-detail-list {
  display: grid;
  gap: 0;
  margin: 0;
  border: 1px solid #e6e1d8;
  border-radius: 8px;
  overflow: hidden;
}

.account-detail-list > div {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 11px;
  border-bottom: 1px solid #eee9df;
  background: rgba(255, 255, 255, .72);
}

.account-detail-list > div:last-child {
  border-bottom: 0;
}

.account-detail-list dt {
  color: #879088;
  font-size: 11px;
}

.account-detail-list dd {
  margin: 0;
  color: #344b3e;
  font-size: 12px;
  line-height: 1.5;
}

.account-detail-tip {
  padding: 12px;
  border-left: 3px solid #c8a45d;
  border-radius: 0 7px 7px 0;
  background: #fbf7ec;
}

.account-detail-tip strong {
  color: #76591d;
  font-size: 12px;
}

.account-detail-tip p {
  margin-top: 4px;
  color: #7a756b;
  font-size: 11px;
  line-height: 1.6;
}

.account-detail-placeholder,
.account-empty-state {
  min-height: 130px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  padding: 20px;
  border: 1px dashed #d8d3c9;
  border-radius: 8px;
  color: #879088;
  text-align: center;
}

.account-detail-placeholder strong,
.account-empty-state strong {
  color: #4f5f56;
}

.account-detail-placeholder span,
.account-empty-state span {
  font-size: 12px;
}

.account-guidance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.account-guidance-card {
  min-height: 92px;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  box-shadow: 0 10px 28px rgba(18, 55, 42, .05);
}

.guidance-dot {
  width: 9px;
  height: 9px;
  margin-top: 4px;
  border-radius: 50%;
  background: #c8a45d;
  box-shadow: 0 0 0 5px rgba(200, 164, 93, .12);
}

.account-guidance-card h3 {
  margin-bottom: 6px;
  color: #12372a;
}

.account-guidance-card p {
  color: #66736b;
  font-size: 12px;
  line-height: 1.65;
}

.assistant-account-grid {
  display: grid;
  grid-template-columns: minmax(310px, .85fr) minmax(380px, 1.15fr) minmax(260px, .72fr);
  gap: 16px;
  align-items: stretch;
}

.assistant-create-card {
  display: grid;
  align-content: start;
  gap: 16px;
}

.assistant-user-panel-v2 {
  display: grid;
  gap: 14px;
}

.assistant-user-legend,
.assistant-user-tags-v2,
.assistant-user-actions-v2 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.identity-chip.viewer {
  color: #425466;
  background: #eef1f4;
}

.identity-chip.insider {
  color: #a33c35;
  background: #fde8e5;
}

.identity-chip.assistant {
  color: #1b6a4d;
  background: #dff5e8;
}

.soft-tag {
  color: #705a29;
  background: #f7f0de;
}

.assistant-user-table {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 3px;
}

.assistant-user-row-v2 {
  display: grid;
  grid-template-columns: minmax(180px, .85fr) minmax(260px, 1.2fr) minmax(210px, .9fr) auto;
  gap: 14px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid #e6e1d8;
  border-radius: 8px;
  background: #fff;
}

.assistant-user-identity {
  min-width: 0;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.assistant-user-identity strong {
  color: #12372a;
}

.assistant-user-identity p,
.assistant-user-source small {
  color: #879088;
  font-size: 11px;
}

.assistant-user-source {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.assistant-user-source span {
  overflow: hidden;
  color: #53635a;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assistant-user-actions-v2 {
  justify-content: flex-end;
}

.assistant-user-actions-v2 button {
  min-height: 31px;
  padding: 0 10px;
  font-size: 12px;
}

.role-permission-hero {
  min-height: 126px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background:
    linear-gradient(100deg, rgba(168, 195, 160, .18), transparent 54%),
    #fffdf8;
}

.role-hero-note {
  width: min(330px, 100%);
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  border: 1px solid rgba(200, 164, 93, .26);
  border-radius: 8px;
  color: #12372a;
  background: #fbf7ec;
}

.role-hero-note span {
  color: #756f63;
  font-size: 12px;
  line-height: 1.55;
}

.role-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.role-overview-card {
  min-height: 168px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-content: start;
  padding: 17px;
  border: 1px solid #e6e1d8;
  border-radius: 8px;
  color: #24372d;
  background: #fffdf8;
  text-align: left;
  white-space: normal;
  box-shadow: 0 12px 28px rgba(18, 55, 42, .05);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.role-overview-card:hover {
  transform: translateY(-2px);
  border-color: rgba(18, 55, 42, .34);
}

.role-overview-card.selected {
  border-color: #8eaa8a;
  background: #f3f7ef;
  box-shadow: inset 0 3px 0 #c8a45d, 0 14px 30px rgba(18, 55, 42, .08);
}

.role-card-index {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #12372a;
  font-size: 16px;
  font-weight: 700;
}

.role-overview-card.tone-gold .role-card-index {
  color: #31250f;
  background: #c8a45d;
}

.role-overview-card.tone-jade .role-card-index {
  color: #183425;
  background: #a8c3a0;
}

.role-overview-card.tone-red .role-card-index {
  background: #a94b45;
}

.role-overview-card small {
  color: #9a7c3b;
  font-size: 11px;
}

.role-overview-card h3 {
  margin: 3px 0 7px;
  color: #12372a;
  font-size: 17px;
}

.role-overview-card p {
  color: #66736b;
  font-size: 12px;
  line-height: 1.55;
}

.role-card-arrow {
  grid-column: 2;
  align-self: end;
  margin-top: 12px;
  color: #315c46;
  font-size: 11px;
  font-weight: 700;
}

.role-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
}

.role-detail-panel {
  display: grid;
  gap: 16px;
}

.role-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #ece7de;
}

.role-detail-head h2 {
  margin: 5px 0;
  color: #12372a;
  font-size: 21px;
}

.role-detail-head p {
  color: #66736b;
}

.role-scope-badge {
  max-width: 340px;
  padding: 9px 11px;
  border-radius: 7px;
  color: #76591d;
  background: #fbf3dc;
  font-size: 12px;
  line-height: 1.5;
}

.role-detail-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.role-detail-columns article {
  min-width: 0;
  padding: 13px;
  border: 1px solid #e6e1d8;
  border-radius: 8px;
  background: #fff;
}

.role-detail-columns h3 {
  margin-bottom: 10px;
  color: #12372a;
}

.role-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.role-chip-list span {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  padding: 0 8px;
  border-radius: 6px;
  color: #315c46;
  background: #edf4ea;
  font-size: 11px;
}

.role-detail-columns ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 17px;
  color: #516158;
  font-size: 12px;
  line-height: 1.5;
}

.role-detail-columns ul.denied {
  color: #8d514b;
}

.role-detail-footer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.role-detail-footer > div {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border-radius: 7px;
  background: #f7f4ec;
}

.role-detail-footer strong {
  color: #76591d;
  font-size: 12px;
}

.role-detail-footer span {
  color: #716d63;
  font-size: 11px;
  line-height: 1.5;
}

.role-risk-panel {
  display: grid;
  align-content: start;
  gap: 14px;
}

.role-risk-panel ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.role-risk-panel li {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid #eee4cf;
  border-radius: 7px;
  background: #fffaf0;
}

.role-risk-panel li strong {
  color: #76591d;
  font-size: 12px;
}

.role-risk-panel li span {
  color: #80776a;
  font-size: 11px;
}

.permission-matrix-panel {
  display: grid;
  gap: 14px;
}

.permission-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.permission-legend span,
.matrix-status {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  white-space: nowrap;
}

.permission-legend .full,
.matrix-status.full {
  color: #1d6a3e;
  background: #dcf7e5;
}

.permission-legend .limited,
.matrix-status.limited {
  color: #76591d;
  background: #fff1c8;
}

.permission-legend .none,
.matrix-status.none {
  color: #8a5752;
  background: #f5e7e5;
}

.permission-matrix-wrap {
  overflow-x: auto;
  border: 1px solid #e6e1d8;
  border-radius: 8px;
}

.permission-matrix {
  min-width: 900px;
}

.permission-matrix th,
.permission-matrix td {
  padding: 10px 12px;
  border-bottom: 1px solid #eee9df;
  text-align: left;
}

.permission-matrix thead th {
  color: #12372a;
  background: #edf3e9;
  font-size: 12px;
}

.permission-matrix tbody th {
  width: 150px;
  color: #43564b;
  background: #fbfaf6;
  font-size: 12px;
}

.permission-matrix tbody tr:last-child th,
.permission-matrix tbody tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 1480px) {
  .account-workspace-grid,
  .assistant-account-grid {
    grid-template-columns: minmax(280px, .82fr) minmax(360px, 1.18fr);
  }

  .account-detail-panel {
    grid-column: 1 / -1;
    grid-template-columns: minmax(220px, .6fr) minmax(0, 1fr);
  }

  .account-detail-panel .account-card-heading,
  .account-detail-panel .account-detail-tip {
    grid-column: 1 / -1;
  }

  .assistant-user-row-v2 {
    grid-template-columns: minmax(160px, .8fr) minmax(220px, 1fr) minmax(190px, .8fr);
  }

  .assistant-user-actions-v2 {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-left: 50px;
  }
}

@media (max-width: 1120px) {
  .account-overview-grid,
  .role-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-stat-card:nth-child(2) {
    border-right: 0;
  }

  .account-stat-card:nth-child(-n + 2) {
    border-bottom: 1px solid var(--color-border);
  }

  .account-workspace-grid,
  .assistant-account-grid,
  .role-detail-layout {
    grid-template-columns: 1fr;
  }

  .account-detail-panel {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .account-detail-panel .account-card-heading,
  .account-detail-panel .account-detail-tip {
    grid-column: auto;
  }

  .assistant-user-row-v2 {
    grid-template-columns: minmax(160px, .8fr) minmax(220px, 1fr);
  }

  .assistant-user-tags-v2,
  .assistant-user-actions-v2 {
    grid-column: auto;
    padding-left: 0;
  }

  .role-detail-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .account-page-heading,
  .role-permission-hero,
  .role-detail-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-overview-grid,
  .role-overview-grid,
  .account-guidance-grid,
  .assistant-form-grid,
  .role-detail-footer {
    grid-template-columns: 1fr;
  }

  .account-stat-card {
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
  }

  .account-stat-card:last-child {
    border-bottom: 0;
  }

  .account-record-card,
  .assistant-account-card,
  .assistant-user-row-v2 {
    grid-template-columns: 1fr;
  }

  .account-record-actions,
  .assistant-user-actions-v2 {
    justify-content: flex-start;
  }
}

/* Live room entrance and creation flow */
.portal {
  max-width: 1680px;
  margin: 0 auto;
  padding: 24px clamp(20px, 3vw, 46px) 40px;
  gap: 18px;
}
.portal-hero {
  min-height: 188px;
  align-items: center;
  padding: 30px 34px;
  background:
    linear-gradient(90deg, rgba(10, 31, 24, .94), rgba(18, 55, 42, .7) 58%, rgba(17, 17, 17, .44)),
    url("https://images.unsplash.com/photo-1618220179428-22790b461013?auto=format&fit=crop&w=1800&q=84") center 58%/cover;
}
.portal-hero h1 {
  max-width: 820px;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0;
}
.portal-hero p { max-width: 850px; color: rgba(255, 255, 255, .76); }
.portal-hero > button {
  align-self: center;
  color: #17362b;
  background: #f7f3ea;
}
.portal-grid {
  grid-template-columns: minmax(560px, .94fr) minmax(620px, 1.06fr);
  align-items: start;
  gap: 18px;
}
.room-create-card,
.room-list-panel {
  padding: 0;
  overflow: hidden;
}
.room-create-heading,
.room-list-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 18px;
  border-bottom: 1px solid var(--color-border);
}
.room-create-heading h2,
.room-list-heading h2 {
  margin-top: 7px;
  font-size: 20px;
  color: #12372a;
}
.room-create-heading p,
.room-list-heading p {
  margin-top: 6px;
  color: var(--color-muted);
  line-height: 1.55;
}
.room-step-mark {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  color: #71571f;
  background: #f5e9c8;
  font-size: 12px;
  font-weight: 700;
}
.room-form-section {
  padding: 20px 22px;
  border-bottom: 1px solid var(--color-border);
}
.room-section-title {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}
.room-section-title > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #12372a;
  font-size: 11px;
  font-weight: 700;
}
.room-section-title h3 { color: #12372a; font-size: 15px; }
.room-section-title p { margin-top: 3px; color: var(--color-muted); font-size: 12px; }
.room-basic-grid {
  display: grid;
  grid-template-columns: minmax(230px, .72fr) minmax(310px, 1.28fr);
  gap: 18px;
}
.room-avatar-config {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 15px;
  border: 1px solid #dbe5dc;
  border-radius: 8px;
  background: #f7faf5;
}
.room-avatar-preview {
  width: 80px;
  height: 80px;
  overflow: hidden;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #edf3e9;
  box-shadow: 0 8px 20px rgba(18, 55, 42, .14);
}
.room-avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.room-avatar-copy { min-width: 0; }
.room-avatar-copy strong { color: #12372a; }
.room-avatar-title-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.room-avatar-status {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #edf4eb;
  color: #356047;
  font-size: 11px;
  font-weight: 700;
}
.room-avatar-copy p {
  margin: 5px 0 10px;
  color: var(--color-muted);
  font-size: 12px;
  line-height: 1.5;
}
.room-avatar-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.room-upload-button {
  position: relative;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  overflow: hidden;
  border-radius: 6px;
  color: #fff;
  background: #12372a;
  cursor: pointer;
  font-size: 13px;
}
.room-upload-button input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.room-avatar-actions button { min-height: 34px; padding: 0 11px; font-size: 13px; }
.room-basic-fields { display: grid; gap: 12px; }
.room-inline-fields {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 10px;
  align-items: stretch;
}
.room-inline-fields > label {
  grid-template-rows: 18px 38px 16px;
  align-content: start;
  min-height: 84px;
}
.room-inline-fields > label > select {
  align-self: stretch;
}
.room-inline-fields > label > small {
  min-height: 16px;
}
.room-create-card label small {
  color: #849188;
  font-size: 11px;
  line-height: 1.4;
}
.room-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.room-metric-grid label {
  padding: 12px;
  border: 1px solid #e6e1d8;
  border-radius: 8px;
  background: #fbfaf6;
}
.room-metric-grid input {
  color: #12372a;
  font-size: 17px;
  font-weight: 700;
}
.room-switch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.room-switch {
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid #e6e1d8;
  border-radius: 8px;
  background: #fffdf8;
  cursor: pointer;
}
.room-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.room-switch > span {
  position: relative;
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: #cbd3cc;
  transition: background .18s ease;
}
.room-switch > span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .18);
  transition: transform .18s ease;
}
.room-switch input:checked + span { background: #12372a; }
.room-switch input:checked + span::after { transform: translateX(16px); }
.room-switch div { display: grid; gap: 3px; }
.room-switch strong { color: #1d3b31; font-size: 13px; }
.room-switch small { color: var(--color-muted); font-size: 11px; }
.room-form-actions {
  display: flex;
  gap: 9px;
  padding: 18px 22px 22px;
}
.room-form-actions button:first-child { min-width: 150px; background: #12372a; }
.room-count {
  flex: none;
  padding: 5px 9px;
  border-radius: 999px;
  color: #71571f;
  background: #f5e9c8;
  font-size: 12px;
}
.room-list-panel .room-list {
  max-height: 704px;
  padding: 16px;
  overflow-y: auto;
}
.portal-room-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 15px;
  border: 1px solid #e6e1d8;
  border-radius: 8px;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.portal-room-card.current {
  border-color: #a8c3a0;
  box-shadow: 0 10px 24px rgba(18, 55, 42, .08);
}
.portal-room-avatar { position: relative; }
.portal-room-avatar img {
  display: block;
  width: 68px;
  height: 68px;
  object-fit: cover;
  border: 1px solid #ded8cd;
  border-radius: 50%;
  background: #f7f3ea;
}
.room-status {
  position: absolute;
  right: -3px;
  bottom: -3px;
  padding: 3px 6px;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #71571f;
  background: #f5e9c8;
  font-size: 10px;
  white-space: nowrap;
}
.room-status.living { color: #fff; background: #d94841; }
.room-status.ended { color: #fff; background: #66736b; }
.portal-room-main { min-width: 0; }
.portal-room-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.portal-room-title strong { color: #12372a; font-size: 15px; }
.portal-room-title p {
  margin-top: 4px;
  overflow: hidden;
  color: var(--color-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.portal-room-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(65px, 1fr));
  gap: 6px;
  margin-top: 11px;
}
.portal-room-metrics span {
  display: grid;
  gap: 2px;
  padding: 7px 8px;
  border-radius: 6px;
  background: #f7f7f3;
}
.portal-room-metrics small { color: #7f8a83; font-size: 10px; }
.portal-room-metrics strong { color: #12372a; font-size: 13px; }
.portal-room-features { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.portal-room-features span {
  padding: 3px 7px;
  border-radius: 999px;
  color: #4f6359;
  background: #edf3e9;
  font-size: 10px;
}
.portal-room-actions { display: grid; gap: 7px; }
.portal-room-actions button { min-height: 34px; padding: 0 11px; font-size: 12px; }
.dashboard-room-summary,
.room-manage-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}
.dashboard-room-summary { grid-template-columns: 54px minmax(0, 1fr); }
.dashboard-room-summary img,
.room-manage-row > img,
.console-room-avatar {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 50%;
  background: #edf3e9;
}
.room-manage-row {
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
}
.console-status-title .console-room-avatar {
  flex: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .2);
}
@media (max-width: 1180px) {
  .portal-grid { grid-template-columns: 1fr; }
  .room-list-panel .room-list { max-height: none; }
}
@media (max-width: 760px) {
  .portal { padding: 12px; }
  .portal-hero { min-height: 170px; padding: 22px; }
  .portal-hero h1 { font-size: 25px; }
  .room-basic-grid,
  .room-metric-grid,
  .room-switch-grid,
  .room-inline-fields { grid-template-columns: 1fr; }
  .portal-room-card { grid-template-columns: 62px minmax(0, 1fr); }
  .portal-room-avatar img { width: 56px; height: 56px; }
  .portal-room-actions { grid-column: 1 / -1; grid-template-columns: 1fr auto; }
  .portal-room-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ==========================================================================
   Product Design Global UI v2026.06.06
   A final visual layer that preserves existing markup, state and API wiring.
   ========================================================================== */
:root {
  --pd-ink: #102f25;
  --pd-ink-strong: #09271e;
  --pd-jade: #8eae91;
  --pd-jade-soft: #e7eee5;
  --pd-gold: #c5a45f;
  --pd-gold-soft: #f4ead0;
  --pd-paper: #f5f2ea;
  --pd-card: #fffefa;
  --pd-line: #e4dfd4;
  --pd-text: #18382d;
  --pd-muted: #718078;
  --pd-danger: #d84a43;
  --pd-shadow: 0 14px 34px rgba(22, 48, 38, .075);
  --pd-shadow-soft: 0 8px 22px rgba(22, 48, 38, .055);
  --pd-radius: 8px;
  --pd-space-1: 6px;
  --pd-space-2: 10px;
  --pd-space-3: 14px;
  --pd-space-4: 18px;
  --pd-space-5: 24px;
}

html {
  color: var(--pd-text);
  background: var(--pd-paper);
}

body {
  overflow-x: hidden;
  color: var(--pd-text);
  background:
    radial-gradient(circle at 92% 5%, rgba(197, 164, 95, .07), transparent 28%),
    linear-gradient(135deg, #f8f6ef 0%, #f1f4ee 100%);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  min-height: 36px;
  border-radius: 6px;
  letter-spacing: 0;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease,
    box-shadow .18s ease, transform .18s ease;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
}

button:active:not(:disabled) {
  transform: translateY(0);
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(197, 164, 95, .68);
  outline-offset: 2px;
}

input,
select,
textarea {
  min-width: 0;
  border-color: var(--pd-line);
  border-radius: 6px;
  color: var(--pd-text);
  background: #fff;
}

input::placeholder,
textarea::placeholder {
  color: #9aa49e;
}

/* Login */
.login {
  min-height: 100vh;
  padding: 28px;
  background:
    radial-gradient(circle at 14% 18%, rgba(142, 174, 145, .18), transparent 33%),
    radial-gradient(circle at 83% 22%, rgba(197, 164, 95, .13), transparent 30%),
    linear-gradient(135deg, #f8f6ef, #eef2eb);
}

.login-card {
  width: min(920px, calc(100vw - 48px));
  min-height: 570px;
  overflow: hidden;
  border: 1px solid rgba(228, 223, 212, .9);
  border-radius: 12px;
  background: rgba(255, 254, 250, .94);
  box-shadow: 0 28px 80px rgba(20, 48, 38, .16);
}

.login-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 570px;
  overflow: hidden;
  border-right: 1px solid rgba(197, 164, 95, .16);
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, .92), transparent 29%),
    linear-gradient(145deg, rgba(232, 240, 229, .96), rgba(246, 242, 228, .88));
}

.login-visual::before,
.login-visual::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.login-visual::before {
  inset: 18px;
  border: 1px solid rgba(197, 164, 95, .2);
  border-radius: 9px;
}

.login-visual::after {
  right: -70px;
  bottom: -82px;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(16, 47, 37, .08);
  border-radius: 50%;
}

.login-brand-block {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 20px;
  transform: translateY(8px);
}

.login-brand-mark {
  display: grid;
  place-items: center;
  width: 218px;
  height: 218px;
}

.login-brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 15px 22px rgba(16, 47, 37, .12));
}

.login-brand-text {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.login-brand-text h1 {
  margin: 0;
  color: var(--pd-ink);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 36px;
  font-weight: 600;
}

.login-brand-text i {
  width: 94px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--pd-gold), transparent);
}

.login-brand-text p {
  margin: 0;
  color: #60776b;
  font-family: "STSong", "SimSun", serif;
  font-size: 14px;
}

.login-poem-watermark {
  position: absolute;
  z-index: 1;
  top: 50%;
  color: rgba(16, 47, 37, .42);
  font-family: "STXingkai", "FZShuTi", "KaiTi", serif;
  font-size: 21px;
  line-height: 1.55;
  writing-mode: vertical-rl;
  transform: translateY(-50%);
}

.login-poem-watermark.left { left: 38px; }
.login-poem-watermark.right { right: 38px; }

.login-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  min-width: 0;
  padding: 56px;
  background: rgba(255, 255, 255, .86);
}

.login-form-head {
  display: grid;
  gap: 7px;
  margin-bottom: 6px;
}

.login-form-head span {
  color: #6d806f;
  font-size: 12px;
  font-weight: 700;
}

.login-form-head h2 {
  margin: 0;
  color: var(--pd-ink);
  font-size: 27px;
}

.login-form-head p {
  margin: 0;
  color: var(--pd-muted);
  font-size: 13px;
}

.login-form label {
  display: grid;
  gap: 7px;
  color: #4c5f55;
  font-size: 13px;
}

.login-form input {
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--pd-line);
  background: #fff;
}

.login-form > button {
  height: 46px;
  border: 1px solid var(--pd-ink);
  color: #fff;
  background: linear-gradient(110deg, #1d533f, #082b21);
  box-shadow: 0 11px 24px rgba(16, 47, 37, .17);
}

.login-test-accounts {
  padding-top: 6px;
  border-top: 1px solid #efebe2;
  color: #9aa49e;
  font-size: 11px;
  line-height: 1.65;
}

/* Application shell */
.workspace {
  grid-template-columns: 224px minmax(0, 1fr);
  min-height: 100vh;
  background: transparent;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  width: auto;
  height: 100vh;
  overflow: hidden;
  border-right: 1px solid rgba(197, 164, 95, .18);
  color: #edf4ee;
  background:
    linear-gradient(180deg, rgba(7, 37, 28, .98), rgba(10, 43, 33, .99));
  box-shadow: 8px 0 28px rgba(9, 39, 30, .08);
}

.sidebar .brand {
  flex: none;
  padding: 24px 20px 18px;
  border-bottom: 1px solid rgba(197, 164, 95, .18);
}

.sidebar .brand strong {
  color: #fffaf0;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 24px;
}

.sidebar .brand span,
.sidebar .brand small {
  color: rgba(232, 240, 229, .68);
  line-height: 1.55;
}

.sidebar .nav {
  flex: 1;
  min-height: 0;
  padding: 12px 10px 18px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(197, 164, 95, .42) transparent;
}

.sidebar .nav::-webkit-scrollbar { width: 5px; }
.sidebar .nav::-webkit-scrollbar-track { background: transparent; }
.sidebar .nav::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: rgba(197, 164, 95, .42);
}

.sidebar .nav h4 {
  margin: 17px 10px 7px;
  color: rgba(223, 194, 126, .9);
  font-size: 11px;
  font-weight: 700;
}

.sidebar .nav button {
  width: 100%;
  min-height: 37px;
  margin: 2px 0;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: rgba(243, 247, 243, .86);
  background: transparent;
  text-align: left;
  font-size: 13px;
}

.sidebar .nav button:hover {
  color: #fff;
  background: rgba(142, 174, 145, .1);
}

.sidebar .nav button.active {
  border-left-color: var(--pd-gold);
  color: #fff;
  background: rgba(37, 103, 76, .46);
  box-shadow: inset 3px 0 0 var(--pd-gold);
}

.sidebar > button:last-child {
  flex: none;
  min-height: 48px;
  border: 0;
  border-top: 1px solid rgba(197, 164, 95, .16);
  border-radius: 0;
  color: #e8c3bd;
  background: transparent;
}

.content {
  min-width: 0;
  padding: 18px 20px 28px;
}

.topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  min-height: 72px;
  margin-bottom: 16px;
  padding: 14px 18px;
  border: 1px solid rgba(228, 223, 212, .94);
  border-radius: var(--pd-radius);
  background: rgba(255, 254, 250, .94);
  box-shadow: var(--pd-shadow-soft);
  backdrop-filter: blur(16px);
}

.topbar h1,
.topbar h2 {
  color: var(--pd-ink);
  font-size: 22px;
}

.topbar p,
.topbar small {
  color: var(--pd-muted);
}

#page {
  min-width: 0;
}

.panel,
.card,
.frontend-preview-card,
.account-intro,
.account-list-panel,
.account-editor-panel,
.account-guide-panel,
.permission-role-card,
.role-overview-card {
  border: 1px solid var(--pd-line);
  border-radius: var(--pd-radius);
  background: rgba(255, 254, 250, .97);
  box-shadow: var(--pd-shadow-soft);
}

.panel h2,
.panel h3,
.card h2,
.card h3 {
  color: var(--pd-ink);
}

.stats {
  gap: 12px;
}

.stat {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--pd-line);
  border-radius: var(--pd-radius);
  background:
    linear-gradient(145deg, #fffefa, #f7f8f3);
  box-shadow: var(--pd-shadow-soft);
}

.stat strong {
  color: var(--pd-ink);
  font-size: 23px;
}

.stat span,
.stat small {
  color: var(--pd-muted);
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

thead th {
  color: #4a6257;
  background: #f1f5ef;
  font-size: 12px;
}

tbody tr:hover {
  background: #fbfaf5;
}

th,
td {
  border-color: #ece8df;
}

.pill,
.tag,
.status-tag {
  border-radius: 999px;
  letter-spacing: 0;
}

/* Portal / room entry */
.portal {
  min-height: 100vh;
  padding: 22px;
  background:
    radial-gradient(circle at 92% 2%, rgba(197, 164, 95, .09), transparent 27%),
    linear-gradient(145deg, #f7f4ec, #f0f4ee);
}

.portal-hero {
  min-height: 194px;
  border-radius: 10px;
  box-shadow: 0 22px 50px rgba(15, 42, 32, .12);
}

.portal-hero > div {
  max-width: 760px;
}

.portal-hero h1 {
  max-width: 650px;
  font-family: "STSong", "SimSun", serif;
  font-size: 32px;
  font-weight: 700;
}

.portal-grid {
  align-items: start;
  gap: 18px;
  margin-top: 18px;
}

.room-create-card,
.room-list-panel {
  overflow: hidden;
  box-shadow: var(--pd-shadow);
}

.room-create-heading,
.room-list-heading {
  border-bottom-color: var(--pd-line);
}

.room-section-title > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(197, 164, 95, .34);
  border-radius: 50%;
  color: #80672d;
  background: var(--pd-gold-soft);
  font-size: 11px;
}

.room-avatar-preview {
  border-color: rgba(197, 164, 95, .34);
  background: #f6f3ea;
}

.portal-room-card {
  border-radius: 8px;
}

.portal-room-card:hover {
  border-color: rgba(142, 174, 145, .8);
  box-shadow: var(--pd-shadow-soft);
}

/* Backend content density */
.account-workspace,
.vest-three-column,
.integration-workspace,
.permission-workspace {
  gap: 14px;
}

.account-intro,
.account-list-panel,
.account-editor-panel,
.account-guide-panel,
.permission-role-card,
.role-overview-card {
  overflow: hidden;
}

.account-stat-grid,
.permission-summary-grid {
  gap: 10px;
}

.account-stat,
.permission-summary-item {
  border-color: var(--pd-line);
  background: #f7f8f3;
}

.account-list-item,
.permission-option,
.role-permission-row {
  border-color: var(--pd-line);
  background: #fff;
}

.account-list-item.active,
.permission-option:has(input:checked) {
  border-color: rgba(142, 174, 145, .9);
  background: #eef4eb;
}

/* Live console: keep the established structure, improve legibility */
.broadcast-screen.full-console {
  border: 1px solid rgba(197, 164, 95, .22);
  border-radius: 10px;
  background: #0c261e;
  box-shadow: 0 22px 55px rgba(6, 28, 21, .18);
}

.console-status-bar,
.console-panel,
.console-bottom-card {
  border-color: rgba(197, 164, 95, .2);
  background: rgba(19, 46, 37, .96);
}

.console-status-chip,
.console-filter-button,
.console-tab-button {
  border-color: rgba(174, 195, 160, .16);
  background: rgba(255, 255, 255, .055);
}

.console-tab-button.active,
.console-filter-button.active {
  color: #1d342b;
  background: #d8c181;
}

.console-comment-item {
  border-color: rgba(174, 195, 160, .14);
  background: rgba(255, 255, 255, .055);
}

.console-comment-item.selected {
  border-color: rgba(216, 193, 129, .9);
  background: rgba(197, 164, 95, .12);
}

.console-comment-list {
  scrollbar-width: thin;
  scrollbar-color: rgba(197, 164, 95, .52) rgba(255, 255, 255, .04);
}

.console-comment-list::-webkit-scrollbar { width: 5px; }
.console-comment-list::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: rgba(197, 164, 95, .52);
}

/* Frontend UI preview page */
.frontend-ui-page {
  display: grid;
  gap: 14px;
}

.channel-workbench-head {
  border: 1px solid var(--pd-line);
  border-radius: var(--pd-radius);
  background:
    linear-gradient(120deg, rgba(232, 240, 229, .86), rgba(255, 253, 247, .96));
  box-shadow: var(--pd-shadow-soft);
}

.frontend-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.frontend-preview-card {
  min-width: 0;
  padding: 16px;
}

.frontend-preview-card > header,
.frontend-preview-card > .frontend-card-head {
  min-height: 58px;
}

.frontend-preview-card .phone-preview-frame,
.frontend-preview-card .frontend-anchor-preview,
.frontend-preview-card .assistant-phone-preview {
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 12px 6px 8px;
}

/* Shared three-end phone language */
.anchor-live-phone,
.assistant-live-phone,
.channel-phone {
  position: relative;
  width: 344px !important;
  max-width: 100% !important;
  height: auto !important;
  aspect-ratio: 9 / 16;
  min-height: 0 !important;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 22px;
  color: #fff;
  background: #171b18;
  box-shadow:
    0 22px 38px rgba(17, 30, 24, .2),
    inset 0 0 0 1px rgba(255, 255, 255, .08);
  isolation: isolate;
}

.viewer-phone-frame .channel-phone,
.mini-preview .channel-phone {
  min-height: 0 !important;
}

.anchor-camera-bg,
.assistant-camera-bg,
.channel-live-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-position: center;
  background-size: cover;
}

.anchor-live-phone::after,
.assistant-live-phone::after,
.channel-phone::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 19, 15, .44) 0%, transparent 27%, transparent 56%, rgba(5, 12, 9, .4) 100%);
}

.anchor-host-panel,
.assistant-host-panel,
.channel-topbar {
  position: absolute;
  z-index: 12;
  top: 14px;
  right: 12px;
  left: 12px;
  padding: 0;
  border: 0;
  background: transparent;
}

.anchor-host-line,
.assistant-host-line,
.channel-topbar,
.channel-host {
  display: flex;
  align-items: flex-start;
  min-width: 0;
}

.anchor-host-line,
.assistant-host-line,
.channel-topbar {
  gap: 9px;
}

.anchor-host-panel .avatar,
.assistant-host-panel .avatar,
.channel-host .avatar {
  flex: none;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 50%;
  background: rgba(255, 255, 255, .8);
  box-shadow: 0 5px 13px rgba(0, 0, 0, .13);
}

.anchor-host-panel .avatar img,
.assistant-host-panel .avatar img,
.channel-host .avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.anchor-title-stack,
.assistant-title-stack,
.channel-title-stack {
  display: grid;
  flex: 1;
  min-width: 0;
  gap: 2px;
  padding-top: 1px;
  text-shadow: 0 2px 7px rgba(0, 0, 0, .52);
}

.anchor-title-stack strong,
.assistant-title-stack strong,
.channel-title-stack strong {
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.anchor-title-stack p,
.assistant-title-stack p,
.channel-title-stack p {
  overflow: hidden;
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: 10px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-counter-row {
  display: flex;
  gap: 8px;
  color: rgba(255, 255, 255, .85);
  font-size: 10px;
  line-height: 1.3;
}

.live-top-icons {
  display: flex;
  flex: none;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.anchor-live-phone .live-top-icon,
.assistant-live-phone .live-top-icon,
.channel-phone .live-top-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(8, 20, 15, .2);
  box-shadow: none;
  backdrop-filter: blur(5px);
}

.anchor-live-phone .live-top-icon img,
.assistant-live-phone .live-top-icon img,
.channel-phone .live-top-icon img {
  display: block;
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.anchor-live-phone .live-top-icon:hover,
.assistant-live-phone .live-top-icon:hover,
.channel-phone .live-top-icon:hover {
  background: rgba(8, 20, 15, .38);
}

.anchor-lucky-bag,
.assistant-lucky-bag,
.channel-lucky-bag {
  z-index: 10;
  top: 88px;
  left: 12px;
  transform: none;
}

.anchor-member-entry {
  top: 93px;
  right: 14px;
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
}

.anchor-member-entry img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.assistant-pin-card,
.channel-pinned-card {
  top: 98px;
  right: 12px;
  left: 64px;
  max-width: none;
}

.viewer-side-tools {
  top: 74px;
  right: 12px;
}

.viewer-tool {
  min-height: 28px;
  padding: 4px 8px;
  border: 0;
  background: rgba(8, 20, 15, .25);
  backdrop-filter: blur(7px);
}

.viewer-tool img {
  width: 18px;
  height: 18px;
}

.anchor-entry-line,
.assistant-entry-line {
  border-radius: 999px;
  color: #fff;
  background: rgba(213, 71, 60, .83);
  box-shadow: 0 5px 14px rgba(93, 24, 20, .16);
}

.anchor-comment-zone,
.assistant-comment-zone,
.channel-comment-layer {
  position: absolute;
  z-index: 8;
  top: 43%;
  right: 36px;
  bottom: 92px;
  left: 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  overflow: hidden;
}

.assistant-comment-zone,
.channel-comment-layer {
  bottom: 116px;
}

.anchor-comment,
.assistant-comment,
.channel-comment {
  display: flex;
  align-items: center;
  align-self: flex-start;
  max-width: 100%;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 10px;
  color: #fff;
  background: rgba(12, 22, 17, .55);
  font-size: 11px;
  line-height: 1.35;
  backdrop-filter: blur(4px);
}

.anchor-comment *,
.assistant-comment *,
.channel-comment * {
  min-width: 0;
}

.anchor-comment p,
.assistant-comment p,
.channel-comment span {
  overflow: hidden;
  margin: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.anchor-comment em,
.assistant-comment em {
  flex: none;
  margin-right: 5px;
  padding: 2px 5px;
  border-radius: 999px;
  color: #3f3010;
  background: #d6bb70;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
}

.channel-comment strong {
  flex: none;
  margin-right: 5px;
  color: #fff;
  font-size: 11px;
}

.assistant-vest-dock {
  right: 10px;
  bottom: 118px;
  gap: 6px;
}

.assistant-vest-icon-button {
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 0;
  background: rgba(8, 20, 15, .28);
}

.assistant-vest-icon-button img {
  width: 32px;
  height: 32px;
}

.assistant-quick-strip,
.channel-quick-replies {
  position: absolute;
  z-index: 10;
  right: 10px;
  bottom: 60px;
  left: 10px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px;
  scrollbar-width: none;
}

.assistant-quick-strip::-webkit-scrollbar,
.channel-quick-replies::-webkit-scrollbar {
  display: none;
}

.assistant-quick-strip button,
.channel-quick-replies button {
  flex: none;
  min-height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  color: #173a2d;
  background: rgba(255, 253, 245, .92);
  font-size: 10px;
  box-shadow: 0 4px 12px rgba(5, 15, 11, .12);
}

.anchor-bottom-toolbar,
.assistant-bottom-bar,
.channel-input {
  position: absolute;
  z-index: 14;
  right: 10px;
  bottom: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.anchor-chat-input,
.assistant-bottom-bar input,
.channel-input input {
  flex: 1;
  height: 38px;
  min-width: 0;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(7, 16, 12, .48);
  font-size: 11px;
  line-height: 38px;
  backdrop-filter: blur(10px);
}

.assistant-bottom-bar button,
.channel-input button,
.anchor-bottom-toolbar .anchor-tool {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(8, 20, 15, .18);
  box-shadow: none;
  backdrop-filter: blur(7px);
}

.assistant-bottom-bar button img,
.channel-input button img,
.anchor-bottom-toolbar .anchor-tool img {
  display: block;
  width: 31px;
  height: 31px;
  object-fit: contain;
}

.assistant-vest-popover {
  right: 8px;
  bottom: 8px;
  left: 8px;
  width: auto;
  max-height: 74%;
  border: 1px solid rgba(197, 164, 95, .25);
  border-radius: 14px;
  background: rgba(8, 28, 21, .96);
  box-shadow: 0 -18px 45px rgba(0, 0, 0, .28);
}

.assistant-vest-popover-head {
  padding: 11px 12px;
}

.assistant-fixed-panel,
.assistant-random-panel {
  max-height: calc(74vh - 64px);
  overflow-y: auto;
}

.assistant-sheet-mask {
  background: rgba(5, 12, 9, .24);
}

/* Avoid icon assets ever expanding beyond their controls. */
.anchor-live-phone img[src*="/assets/icons/"],
.assistant-live-phone img[src*="/assets/icons/"],
.channel-phone img[src*="/assets/icons/"] {
  max-width: 100%;
  max-height: 100%;
}

/* Responsive */
@media (max-width: 1320px) {
  .workspace { grid-template-columns: 208px minmax(0, 1fr); }
  .content { padding-inline: 14px; }
  .frontend-preview-grid { gap: 10px; }
  .frontend-preview-card { padding: 12px; }
}

@media (max-width: 1120px) {
  .frontend-preview-grid { grid-template-columns: 1fr; }
  .frontend-preview-card .phone-preview-frame,
  .frontend-preview-card .frontend-anchor-preview,
  .frontend-preview-card .assistant-phone-preview { padding-block: 18px; }
}

@media (max-width: 880px) {
  .workspace { display: block; }
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
  }
  .sidebar .nav { max-height: 320px; }
  .content { padding: 12px; }
  .topbar { position: relative; }
  .login-card { grid-template-columns: 1fr; }
  .login-visual { display: none; }
  .login-form { min-height: 520px; padding: 34px; }
}

@media (max-width: 560px) {
  .login { padding: 12px; }
  .login-card { width: 100%; }
  .login-form { padding: 26px 22px; }
  .portal { padding: 10px; }
  .portal-hero { padding: 20px; }
  .portal-hero h1 { font-size: 24px; }
}

/* Product Design enhancement: viewer commerce and responsive workspaces. */
.viewer-product-strip {
  position: absolute;
  z-index: 12;
  right: 10px;
  bottom: 96px;
  left: 10px;
  height: 88px;
  padding: 7px 8px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 10px;
  background: rgba(9, 24, 18, .48);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  backdrop-filter: blur(10px);
}

.viewer-product-strip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
  color: #fff;
  font-size: 10px;
}

.mock-mini {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  color: #664c12;
  background: rgba(245, 221, 157, .94);
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0;
}

.viewer-product-carousel {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.viewer-product-carousel::-webkit-scrollbar {
  display: none;
}

.viewer-product-card {
  position: relative;
  flex: 0 0 142px;
  height: 51px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 8px;
  background: rgba(255, 253, 247, .94);
  scroll-snap-align: start;
}

.viewer-product-main {
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-columns: 45px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  padding: 3px 28px 3px 3px;
  border: 0;
  color: #183b2e;
  background: transparent;
  text-align: left;
}

.viewer-product-main img {
  width: 45px;
  height: 45px;
  border-radius: 6px;
  object-fit: cover;
}

.viewer-product-main span {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.viewer-product-main strong {
  overflow: hidden;
  font-size: 9px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viewer-product-main em {
  color: #b34032;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.viewer-product-add {
  position: absolute;
  right: 4px;
  bottom: 5px;
  display: grid;
  width: 22px;
  height: 22px;
  min-height: 22px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: #174c38;
  font-size: 15px;
  line-height: 1;
}

.viewer-product-add.added {
  background: #c8a45d;
  transform: scale(.9);
}

.channel-phone .channel-comment-layer {
  bottom: 193px;
}

.channel-phone .channel-input {
  gap: 4px;
}

.channel-phone .channel-input button {
  width: 32px;
  height: 32px;
  min-height: 32px;
}

.channel-phone .channel-input button img {
  width: 27px;
  height: 27px;
}

.viewer-commerce-button {
  position: relative;
}

.viewer-commerce-button [data-viewer-cart-count] {
  position: absolute;
  top: -4px;
  right: -4px;
  display: grid;
  min-width: 17px;
  height: 17px;
  place-items: center;
  padding: 0 4px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 999px;
  color: #fff;
  background: #b33f34;
  font-size: 8px;
  font-weight: 800;
}

.viewer-commerce-mask {
  position: absolute;
  z-index: 48;
  inset: 0;
  display: none;
  background: rgba(4, 12, 9, .38);
  backdrop-filter: blur(2px);
}

.viewer-bottom-sheet {
  position: absolute;
  z-index: 49;
  right: 0;
  bottom: 0;
  left: 0;
  display: none;
  max-height: 74%;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  background: #f8f5ed;
  box-shadow: 0 -16px 44px rgba(0, 0, 0, .28);
  transform: translateY(105%);
  transition: transform .24s ease;
}

.channel-phone.product-detail-open .viewer-commerce-mask,
.channel-phone.cart-open .viewer-commerce-mask,
.channel-phone.gift-open .viewer-commerce-mask {
  display: block;
}

.channel-phone.product-detail-open .viewer-product-detail,
.channel-phone.cart-open .viewer-cart-sheet,
.channel-phone.gift-open .viewer-gift-sheet {
  display: block;
  transform: translateY(0);
}

.viewer-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 45px;
  padding: 9px 12px;
  border-bottom: 1px solid #e4ded1;
}

.viewer-sheet-head > div {
  display: flex;
  align-items: center;
  gap: 7px;
}

.viewer-sheet-head strong {
  color: #12372a;
  font-size: 13px;
}

.viewer-sheet-head > button {
  width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #5f665f;
  background: #ebe7de;
  font-size: 18px;
}

.viewer-product-detail-body {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 13px;
  padding: 14px;
}

.viewer-product-detail-body > img {
  width: 118px;
  aspect-ratio: 1;
  border-radius: 10px;
  object-fit: cover;
}

.viewer-product-detail-body > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}

.viewer-product-detail-body h3,
.viewer-product-detail-body p {
  margin: 0;
}

.viewer-product-detail-body h3 {
  color: #173b2e;
  font-size: 14px;
  line-height: 1.35;
}

.viewer-product-detail-body p,
.viewer-product-detail-body small {
  color: #72786f;
  font-size: 9px;
  line-height: 1.5;
}

.viewer-product-detail-body > div > strong {
  color: #b24035;
  font-size: 17px;
}

.viewer-product-detail-body > div > button {
  width: 100%;
  min-height: 32px;
  margin-top: auto;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: #123f31;
  font-size: 10px;
}

.viewer-product-tag {
  padding: 2px 6px;
  border-radius: 999px;
  color: #6f5112;
  background: #ead7a2;
  font-size: 8px;
  font-weight: 700;
}

.viewer-cart-items {
  max-height: 300px;
  overflow-y: auto;
  padding: 10px 12px;
  scrollbar-width: thin;
  scrollbar-color: #a9a18e transparent;
}

.viewer-cart-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #e5dfd3;
}

.viewer-cart-item > img {
  width: 44px;
  height: 44px;
  border-radius: 7px;
  object-fit: cover;
}

.viewer-cart-item > div:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.viewer-cart-item > div:nth-child(2) strong {
  overflow: hidden;
  color: #263c32;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viewer-cart-item > div:nth-child(2) span {
  color: #b24035;
  font-size: 10px;
  font-weight: 700;
}

.viewer-cart-quantity {
  display: flex;
  align-items: center;
  gap: 3px;
}

.viewer-cart-quantity button {
  display: grid;
  width: 23px;
  height: 23px;
  min-height: 23px;
  place-items: center;
  padding: 0;
  border: 1px solid #d9d2c5;
  border-radius: 5px;
  background: #fff;
}

.viewer-cart-quantity em {
  min-width: 18px;
  color: #233b31;
  font-size: 9px;
  font-style: normal;
  text-align: center;
}

.viewer-cart-remove {
  grid-column: 3;
  min-height: 22px;
  padding: 0 6px;
  border: 0;
  border-radius: 5px;
  color: #a53832;
  background: #f6ddd8;
  font-size: 8px;
}

.viewer-cart-empty {
  display: grid;
  min-height: 170px;
  place-items: center;
  align-content: center;
  gap: 7px;
  color: #747b74;
  font-size: 10px;
}

.viewer-cart-empty img {
  width: 42px;
  height: 42px;
  opacity: .55;
}

.viewer-cart-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px 12px;
  border-top: 1px solid #e4ded1;
}

.viewer-cart-footer > div {
  display: grid;
  gap: 2px;
  color: #7b7e76;
  font-size: 9px;
}

.viewer-cart-footer strong {
  color: #b24035;
  font-size: 15px;
}

.viewer-cart-footer > button,
.viewer-gift-action > button {
  min-height: 35px;
  padding: 0 16px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: #123f31;
  font-size: 10px;
}

.viewer-cart-footer small {
  font-size: 8px;
  opacity: .7;
}

.viewer-gift-balance {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px 0;
  color: #7b7e76;
  font-size: 9px;
}

.viewer-gift-balance strong {
  color: #9a6c1e;
}

.viewer-gift-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  padding: 10px 12px;
}

.viewer-gift-item {
  display: grid;
  min-height: 72px;
  place-items: center;
  gap: 3px;
  padding: 7px;
  border: 1px solid #ded8cc;
  border-radius: 9px;
  color: #2f473b;
  background: #fffdf8;
}

.viewer-gift-item img {
  width: 29px;
  height: 29px;
  object-fit: contain;
}

.viewer-gift-item strong,
.viewer-gift-item span {
  font-size: 9px;
}

.viewer-gift-item span {
  color: #a76d20;
}

.viewer-gift-item.selected {
  border-color: #c8a45d;
  background: #fff7df;
  box-shadow: 0 0 0 2px rgba(200, 164, 93, .16);
}

.viewer-gift-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px 12px;
  border-top: 1px solid #e4ded1;
}

.viewer-gift-action label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #687069;
  font-size: 9px;
}

.viewer-gift-action input {
  width: 52px;
  height: 32px;
  padding: 0 7px;
  border: 1px solid #d9d2c5;
  border-radius: 6px;
}

.viewer-gift-animation {
  position: absolute;
  z-index: 70;
  top: 47%;
  left: 50%;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  color: #fff;
  background: rgba(18, 55, 42, .9);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .22);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(10px);
}

.viewer-gift-animation.show {
  display: flex;
  animation: viewerGiftPop 1.6s ease both;
}

.viewer-gift-animation img {
  width: 30px;
  height: 30px;
}

.viewer-gift-animation strong {
  white-space: nowrap;
  font-size: 11px;
}

@keyframes viewerGiftPop {
  0% { opacity: 0; transform: translate(-50%, -20%) scale(.75); }
  20%, 68% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -95%) scale(.9); }
}

.sidebar-mobile-toggle,
.sidebar-backdrop {
  display: none;
}

@media (min-width: 1920px) {
  .workspace {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .sidebar {
    padding: 24px 18px;
  }

  .content {
    width: 100%;
    max-width: 1720px;
    margin: 0 auto;
    padding: 24px 28px 36px;
    box-sizing: border-box;
  }

  .frontend-preview-grid {
    gap: 22px;
  }

  .frontend-preview-card {
    padding: 20px;
  }
}

@media (min-width: 1367px) {
  .frontend-single-workbench {
    grid-template-columns: minmax(420px, 560px) minmax(320px, 420px);
    justify-content: start;
  }

  .frontend-control-panel {
    width: 100%;
    max-width: 420px;
  }
}

@media (min-width: 1024px) and (max-width: 1366px) {
  .workspace {
    grid-template-columns: 204px minmax(0, 1fr);
  }

  .content {
    padding: 14px;
  }

  .frontend-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .frontend-preview-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .workspace {
    display: block;
  }

  .sidebar-mobile-toggle {
    position: fixed;
    z-index: 1002;
    top: 14px;
    left: 14px;
    display: grid;
    width: 42px;
    height: 42px;
    min-height: 42px;
    place-content: center;
    gap: 4px;
    padding: 0;
    border: 1px solid rgba(200, 164, 93, .4);
    border-radius: 7px;
    background: #12372a;
    box-shadow: 0 8px 22px rgba(12, 35, 27, .18);
  }

  .sidebar-mobile-toggle span {
    width: 19px;
    height: 2px;
    background: #f7f3ea;
  }

  .sidebar {
    position: fixed;
    z-index: 1001;
    inset: 0 auto 0 0;
    width: 248px;
    height: 100dvh;
    transform: translateX(-105%);
    transition: transform .24s ease;
  }

  .sidebar-backdrop {
    position: fixed;
    z-index: 1000;
    inset: 0;
    background: rgba(6, 18, 13, .42);
    backdrop-filter: blur(2px);
  }

  .workspace.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .workspace.sidebar-open .sidebar-backdrop {
    display: block;
  }

  .content {
    padding: 12px 14px 28px;
  }

  .topbar {
    min-height: 66px;
    padding-left: 58px;
  }

  .frontend-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .frontend-preview-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .workspace {
    display: block;
  }

  .sidebar-mobile-toggle {
    position: fixed;
    z-index: 1002;
    top: 10px;
    left: 10px;
    display: grid;
    width: 40px;
    height: 40px;
    min-height: 40px;
    place-content: center;
    gap: 4px;
    padding: 0;
    border: 1px solid rgba(200, 164, 93, .4);
    border-radius: 7px;
    background: #12372a;
  }

  .sidebar-mobile-toggle span {
    width: 18px;
    height: 2px;
    background: #f7f3ea;
  }

  .sidebar {
    position: fixed;
    z-index: 1001;
    inset: 0 auto 0 0;
    width: min(82vw, 280px);
    height: 100dvh;
    transform: translateX(-105%);
    transition: transform .24s ease;
  }

  .sidebar-backdrop {
    position: fixed;
    z-index: 1000;
    inset: 0;
    background: rgba(6, 18, 13, .46);
  }

  .workspace.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .workspace.sidebar-open .sidebar-backdrop {
    display: block;
  }

  .content {
    padding: 8px 8px 24px;
  }

  .topbar {
    min-height: 62px;
    padding: 10px 8px 10px 52px;
  }

  .topbar h1 {
    font-size: 18px;
  }

  .topbar .subtle {
    display: none;
  }

  .top-actions {
    gap: 5px;
  }

  .top-actions .pill,
  .top-actions #backPortal {
    display: none;
  }

  .frontend-preview-grid {
    grid-template-columns: 1fr;
  }

  .frontend-preview-card:last-child {
    grid-column: auto;
  }

  .channel-workbench-head {
    display: grid;
    align-items: start;
    gap: 12px;
    padding: 14px;
  }

  .channel-workbench-head h2 {
    font-size: 22px;
  }

  .front-mode-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    width: 100%;
  }

  .front-mode-actions button {
    width: 100%;
    min-width: 0;
    padding-inline: 8px;
    white-space: normal;
  }

  .frontend-single-workbench {
    grid-template-columns: minmax(0, 1fr);
  }

  .frontend-preview-card,
  .frontend-preview-card.single-editor,
  .frontend-single-preview {
    min-height: 0;
  }

  .frontend-control-panel {
    position: static;
  }

  .channel-phone,
  .anchor-live-phone,
  .assistant-live-phone {
    max-width: calc(100vw - 28px);
  }
}

@media (max-width: 390px) {
  .viewer-product-card {
    flex-basis: 132px;
  }

  .channel-phone .channel-input {
    gap: 3px;
  }

  .channel-phone .channel-input button {
    width: 30px;
    height: 30px;
    min-height: 30px;
  }

  .channel-phone .channel-input button img {
    width: 25px;
    height: 25px;
  }
}

/* Real mobile live room: fill the device viewport without preview-frame bars. */
@media (max-width: 767px) {
  html:has(body.user-live-mode),
  body.user-live-mode {
    width: 100%;
    min-width: 0;
    height: 100%;
    min-height: 100%;
    overflow: hidden;
    background: #111;
  }

  body.user-live-mode #app {
    width: 100vw;
    height: 100vh;
    height: 100svh;
    height: 100dvh;
    overflow: hidden;
  }

  body.user-live-mode .channel-phone {
    width: 100vw !important;
    max-width: none !important;
    height: 100vh !important;
    height: 100svh !important;
    height: 100dvh !important;
    min-height: 0 !important;
    aspect-ratio: auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  body.user-live-mode .channel-live-bg {
    inset: -1px;
    background-position: center center;
    background-size: cover;
  }

  body.user-live-mode .channel-topbar {
    top: max(10px, env(safe-area-inset-top));
  }

  body.user-live-mode .channel-input {
    bottom: max(8px, env(safe-area-inset-bottom));
  }
}

/* Login couplet: keep each vertical verse on its own side of the brand. */
.login-visual > .login-poem-watermark {
  inset: auto;
  top: 50%;
  width: max-content;
  height: max-content;
  margin: 0;
  writing-mode: vertical-rl;
  text-orientation: upright;
  white-space: nowrap;
  transform: translateY(-50%);
}

.login-visual > .login-poem-watermark.left {
  right: auto;
  left: 34px;
}

.login-visual > .login-poem-watermark.right {
  right: 34px;
  left: auto;
}
