:root {
  --bg: #f5f7fa;
  --panel: #ffffff;
  --panel-soft: #f8fafc;
  --line: #dbe3ec;
  --line-strong: #c4d0dd;
  --text: #172033;
  --muted: #64748b;
  --primary: #2563eb;
  --primary-soft: #e8f0ff;
  --green: #168a55;
  --green-soft: #e9f8ef;
  --red: #d93d3d;
  --red-soft: #fff0f0;
  --amber: #b86c00;
  --amber-soft: #fff6df;
  --cyan: #0e7490;
  --cyan-soft: #e6f7fb;
  --sidebar: #111827;
  --sidebar-soft: #1f2937;
  --shadow: 0 16px 42px rgba(15, 23, 42, 0.09);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 1180px;
  color: var(--text);
  background: var(--bg);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

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

button {
  cursor: pointer;
}

label.btn {
  cursor: pointer;
}

.app-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 236px 1fr;
}

.login-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  background: var(--bg);
  padding: 32px;
}

.login-panel {
  width: 420px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 28px;
}

.login-title {
  font-size: 22px;
  font-weight: 780;
}

.login-subtitle {
  margin: 6px 0 22px;
  color: var(--muted);
  font-size: 13px;
}

.captcha-row {
  display: grid;
  grid-template-columns: 1fr 96px;
  gap: 10px;
}

.captcha-code {
  display: grid;
  min-height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-soft);
  color: var(--text);
  font-weight: 760;
  line-height: 1.1;
}

.captcha-code span {
  font-size: 16px;
  letter-spacing: 2px;
}

.captcha-code small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.login-submit {
  width: 100%;
  margin-top: 18px;
}

.login-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.sidebar {
  display: flex;
  flex-direction: column;
  background: var(--sidebar);
  color: #e5e7eb;
}

.brand {
  padding: 24px 20px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-title {
  font-size: 18px;
  font-weight: 760;
}

.brand-subtitle {
  margin-top: 6px;
  color: #9ca3af;
  font-size: 12px;
}

.nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  padding: 16px 10px;
}

.nav button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 6px;
  padding: 11px 12px;
  color: #cbd5e1;
  background: transparent;
  text-align: left;
}

.nav button.active,
.nav button:hover {
  color: #ffffff;
  background: var(--sidebar-soft);
}

.nav-icon {
  width: 22px;
  flex: 0 0 22px;
  text-align: center;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ca3af;
  font-size: 12px;
}

.sidebar-clock {
  margin-top: 8px;
  color: #e5e7eb;
  font-size: 12px;
  line-height: 1.45;
}

.main {
  min-width: 0;
}

.topbar {
  display: flex;
  height: 68px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  padding: 0 28px;
}

.page-title {
  margin: 0;
  font-size: 20px;
  font-weight: 760;
}

.page-desc {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.market-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-soft);
  padding: 6px 10px;
  color: var(--muted);
  font-size: 13px;
}

.market-switcher .select {
  min-height: 30px;
  width: 118px;
  border-radius: 999px;
}

.top-clock {
  min-width: 210px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 9px 12px;
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  text-align: center;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 13px;
}

.user-menu {
  position: relative;
}

button.user-chip {
  cursor: pointer;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  min-width: 170px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 10px;
}

.dropdown-title {
  font-weight: 760;
}

.dropdown-muted {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.dropdown-action {
  width: 100%;
  min-height: 34px;
  margin-top: 10px;
  border: 1px solid #ffd0d0;
  border-radius: 6px;
  background: #fff;
  color: var(--red);
}

.avatar {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #0f766e;
  color: #fff;
  font-weight: 760;
}

.content {
  padding: 24px 28px 92px;
}

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

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.field,
.select,
.textarea {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  outline: none;
}

.field,
.select {
  padding: 0 11px;
}

.select.compact {
  width: auto;
  min-width: 120px;
}

.readonly-field {
  display: flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-soft);
  padding: 0 11px;
  color: var(--muted);
}

.permission-preview {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-soft);
  padding: 8px 10px;
}

.field:focus,
.select:focus,
.textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.textarea {
  width: 100%;
  min-height: 130px;
  resize: vertical;
  padding: 10px 11px;
  line-height: 1.55;
}

.btn {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  background: var(--panel);
  color: var(--text);
  white-space: nowrap;
}

.btn:hover {
  border-color: var(--line-strong);
  background: var(--panel-soft);
}

.btn.primary {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.btn.danger {
  border-color: #ffd0d0;
  color: var(--red);
}

.btn.ghost {
  border-color: transparent;
  background: transparent;
}

.btn.small {
  min-height: 30px;
  padding: 0 9px;
  font-size: 12px;
}

.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.grid {
  display: grid;
  gap: 16px;
}

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

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.panel.flat {
  box-shadow: none;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 15px 16px;
}

.panel-title {
  font-size: 15px;
  font-weight: 760;
}

.panel-body {
  padding: 16px;
}

.stat-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 16px;
}

.stat-label {
  color: var(--muted);
  font-size: 13px;
}

.stat-value {
  margin-top: 8px;
  font-size: 28px;
  font-weight: 800;
}

.stat-note {
  margin-top: 6px;
  color: var(--green);
  font-size: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 13px 12px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  background: var(--panel-soft);
  font-size: 12px;
  font-weight: 700;
}

td {
  font-size: 13px;
}

tbody tr:hover {
  background: #fbfdff;
}

.table-title {
  font-weight: 720;
}

.muted {
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.device-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.device-switcher .select {
  width: 190px;
}

.tag,
.status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 650;
}

.tag {
  background: #eef2f7;
  color: #475569;
}

.status-draft {
  background: #eef2f7;
  color: #475569;
}

.status-pending {
  background: var(--amber-soft);
  color: var(--amber);
}

.status-approved {
  background: var(--green-soft);
  color: var(--green);
}

.status-published {
  background: var(--cyan-soft);
  color: var(--cyan);
}

.status-failed {
  background: var(--red-soft);
  color: var(--red);
}

.send-time {
  display: grid;
  gap: 5px;
  align-items: start;
}

.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 18px;
  align-items: start;
  height: calc(100vh - 116px);
  overflow: hidden;
}

.editor-layout > .panel {
  max-height: 100%;
  overflow: auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-row {
  display: grid;
  gap: 7px;
}

.form-row.full {
  grid-column: 1 / -1;
}

.publish-settings {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 14px;
}

.publish-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.publish-badge {
  border-radius: 999px;
  background: var(--primary-soft);
  padding: 5px 10px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 760;
}

.publish-mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.publish-mode {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 13px;
  color: var(--text);
  text-align: left;
}

.publish-mode:hover {
  border-color: var(--line-strong);
}

.publish-mode.active {
  border-color: var(--primary);
  background: #f8fbff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.mode-title {
  font-weight: 760;
}

.mode-desc {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.schedule-box {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr) auto auto;
  align-items: end;
  gap: 10px;
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.schedule-note {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.schedule-note strong {
  color: var(--text);
  font-size: 13px;
}

.label {
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.helper {
  color: var(--muted);
  font-size: 12px;
}

.button-list,
.link-list {
  display: grid;
  gap: 8px;
}

.inline-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr auto;
  gap: 8px;
}

.phone-preview {
  position: sticky;
  top: 0;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 10px;
  max-height: calc(100vh - 116px);
}

.phone-toolbar {
  display: flex;
  width: min(var(--phone-width, 390px), 100%);
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.phone-toolbar .select {
  width: 220px;
}

.phone {
  width: var(--phone-width, 390px);
  border-radius: 34px;
  background: #0b1220;
  padding: 12px;
  box-shadow: 0 24px 58px rgba(15, 23, 42, 0.24);
}

.phone-android20 {
  --phone-width: 390px;
  --phone-height: 780px;
}

.phone-redmiNote {
  --phone-width: 393px;
  --phone-height: 820px;
}

.phone-oppoA {
  --phone-width: 360px;
  --phone-height: 780px;
}

.phone-compact {
  --phone-width: 360px;
  --phone-height: 700px;
}

.phone-screen {
  overflow: hidden;
  min-height: 0;
  height: min(var(--phone-height, 780px), calc(100vh - 176px));
  border-radius: 26px;
  background: #e7eef4;
}

.phone-top {
  display: flex;
  height: 54px;
  align-items: center;
  gap: 10px;
  background: #2aabee;
  color: #fff;
  padding: 0 14px;
}

.channel-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #087db2;
  font-weight: 800;
}

.phone-channel {
  font-size: 14px;
  font-weight: 760;
}

.phone-subs {
  font-size: 11px;
  opacity: 0.82;
}

.chat-area {
  padding: 18px 12px;
}

.message {
  max-width: calc(var(--phone-width, 390px) - 74px);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
}

.message-image {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
  background: #d6e2ea;
}

video.message-image {
  background: #0b1220;
}

.message-body {
  white-space: pre-wrap;
  padding: 10px 11px;
  font-size: 14px;
  line-height: 1.45;
}

.preview-link {
  color: #168acd;
  text-decoration: underline;
  font-weight: 650;
}

.message-links {
  display: grid;
  gap: 1px;
  border-top: 1px solid #edf2f7;
}

.message-button {
  border: 0;
  background: #f8fbff;
  color: #168acd;
  padding: 10px;
  font-weight: 720;
}

.message-meta {
  padding: 0 11px 9px;
  color: #8a98a8;
  font-size: 11px;
  text-align: right;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

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

.help-menu {
  display: grid;
  gap: 10px;
  max-width: 1120px;
}

.help-row {
  display: grid;
  grid-template-columns: 42px minmax(220px, 1fr) minmax(280px, auto) 92px;
  align-items: center;
  gap: 14px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 14px 16px;
  color: var(--text);
  text-align: left;
}

.help-row:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08);
}

.help-row-index {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 800;
}

.help-row-main {
  display: grid;
  gap: 4px;
}

.help-row-title {
  font-size: 15px;
  font-weight: 760;
}

.help-row-desc {
  color: var(--muted);
  font-size: 13px;
}

.help-row-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.help-row-tags em {
  border-radius: 999px;
  background: var(--panel-soft);
  padding: 4px 8px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.help-row-arrow {
  justify-self: end;
  color: var(--primary);
  font-size: 13px;
  font-weight: 760;
}

.help-modal {
  width: min(980px, calc(100vw - 48px));
}

.help-modal .help-card {
  border: 0;
  padding: 0;
}

.help-modal .help-shot {
  min-height: 250px;
}

.help-detail .help-list {
  columns: 2;
  column-gap: 28px;
}

.help-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 18px;
}

.help-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.help-title {
  font-size: 16px;
  font-weight: 760;
}

.help-desc {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.help-shot {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
  padding: 14px;
}

.help-shot::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(100, 116, 139, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 116, 139, 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}

.help-dot {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.24);
  font-size: 12px;
  font-weight: 800;
}

.help-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.help-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-soft);
  padding: 4px 9px;
  color: var(--muted);
  font-size: 12px;
}

.help-legend b {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
}

.mini-toolbar,
.mini-stats,
.mini-cards,
.mini-assets,
.mini-editor {
  position: relative;
  z-index: 1;
}

.mini-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.mini-toolbar span,
.mini-toolbar button {
  display: grid;
  height: 30px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 0 10px;
  color: var(--muted);
  font-size: 12px;
}

.mini-toolbar span {
  width: 116px;
}

.mini-toolbar button {
  width: auto;
  margin-left: auto;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}

.mini-table {
  position: relative;
  z-index: 1;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
}

.mini-table th,
.mini-table td {
  border-bottom: 1px solid var(--line);
  padding: 7px 8px;
  color: var(--text);
  text-align: left;
  vertical-align: top;
}

.mini-table th {
  background: var(--panel-soft);
  color: var(--muted);
  font-weight: 760;
}

.mini-table tr:last-child td {
  border-bottom: 0;
}

.mini-table small {
  color: var(--muted);
}

.mini-table em {
  display: inline-block;
  border-radius: 999px;
  background: var(--cyan-soft);
  padding: 2px 6px;
  color: var(--cyan);
  font-style: normal;
  font-weight: 700;
}

.mini-editor {
  display: grid;
  grid-template-columns: 1fr 118px;
  gap: 14px;
}

.mini-form {
  display: grid;
  gap: 10px;
}

.mini-form label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.mini-form input,
.mini-form textarea {
  width: 100%;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 6px 8px;
  color: var(--text);
  font-size: 12px;
}

.mini-form textarea {
  height: 84px;
  resize: none;
}

.mini-phone {
  min-height: 154px;
  border: 9px solid #111827;
  border-radius: 22px;
  background: #e7f0f6;
  padding: 16px 10px;
}

.mini-phone i {
  display: grid;
  width: 82px;
  height: 50px;
  margin: 0 auto 12px;
  place-items: center;
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.mini-phone p {
  min-height: 16px;
  margin: 8px 0;
  border-radius: 7px;
  background: #fff;
  padding: 7px;
  font-size: 11px;
}

.mini-phone button {
  width: 100%;
  border: 0;
  border-radius: 7px;
  background: #f8fbff;
  color: #168acd;
  padding: 7px;
  font-weight: 760;
}

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

.mini-cards article,
.mini-assets article {
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  font-size: 12px;
}

.mini-cards b,
.mini-assets b {
  display: block;
  margin-bottom: 4px;
}

.mini-cards small,
.mini-assets small {
  display: inline-block;
  margin-bottom: 5px;
  border-radius: 999px;
  background: var(--panel-soft);
  padding: 2px 6px;
  color: var(--muted);
}

.mini-cards p {
  margin: 4px 0 8px;
  color: var(--muted);
}

.mini-cards button,
.mini-assets button {
  border: 0;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 700;
}

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

.mini-assets i {
  display: block;
  height: 58px;
  margin: -10px -10px 9px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(135deg, #bfdbfe, #fff 48%, #99f6e4);
}

.mini-guide {
  position: relative;
  z-index: 1;
  height: 62px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  font-size: 12px;
}

.mini-guide b {
  display: block;
  margin-bottom: 6px;
}

.mini-guide span {
  color: var(--muted);
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.mini-stats span {
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 9px;
}

.mini-stats b {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.mini-stats strong {
  display: block;
  margin-top: 5px;
  font-size: 20px;
}

.mini-chart {
  position: relative;
  z-index: 1;
  display: flex;
  height: 92px;
  align-items: end;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.mini-chart i {
  flex: 1;
  border-radius: 6px 6px 0 0;
  background: var(--primary);
}

.mini-chart i:nth-child(1) {
  height: 52px;
}

.mini-chart i:nth-child(2) {
  height: 34px;
  background: #0f766e;
}

.mini-chart i:nth-child(3) {
  height: 68px;
}

.role-lines {
  margin-bottom: 12px;
}

.account-lines td,
.account-lines th {
  padding-top: 6px;
  padding-bottom: 6px;
}

.help-shot-list .dot-1,
.help-shot-cards .dot-1,
.help-shot-logs .dot-1 {
  top: 16px;
  left: 24px;
}

.help-shot-list .dot-2,
.help-shot-cards .dot-2,
.help-shot-assets .dot-1 {
  top: 16px;
  right: 26px;
}

.help-shot-list .dot-3,
.help-shot-logs .dot-2 {
  right: 50px;
  bottom: 38px;
}

.help-shot-editor .dot-1 {
  top: 46px;
  left: 48px;
}

.help-shot-editor .dot-2 {
  left: 48px;
  bottom: 52px;
}

.help-shot-editor .dot-3 {
  top: 54px;
  right: 58px;
}

.help-shot-cards .dot-3 {
  left: 38px;
  bottom: 38px;
}

.help-shot-assets .dot-2 {
  top: 54px;
  left: 130px;
}

.help-shot-assets .dot-3 {
  right: 86px;
  bottom: 34px;
}

.help-shot-device .dot-1 {
  top: 28px;
  left: 44px;
}

.help-shot-device .dot-2 {
  top: 28px;
  right: 42px;
}

.help-shot-device .dot-3 {
  right: 92px;
  bottom: 44px;
}

.help-shot-stats .dot-1 {
  top: 32px;
  left: 68px;
}

.help-shot-stats .dot-2 {
  right: 90px;
  bottom: 58px;
}

.help-shot-stats .dot-3 {
  left: 92px;
  bottom: 42px;
}

.help-shot-logs .dot-3 {
  top: 18px;
  right: 28px;
}

.help-shot-roles .dot-1 {
  top: 38px;
  left: 52px;
}

.help-shot-roles .dot-2 {
  left: 52px;
  bottom: 48px;
}

.help-shot-roles .dot-3 {
  right: 64px;
  bottom: 42px;
}

.help-list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.75;
}

.help-list li + li {
  margin-top: 4px;
}

.tab {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 8px 12px;
  color: var(--muted);
}

.tab.active {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 720;
}

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

.asset-guide {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.guide-title {
  font-weight: 760;
  margin-bottom: 6px;
}

.guide-text,
.guide-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.guide-note {
  max-width: 360px;
}

.asset-card,
.template-card,
.channel-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.split-two .channel-grid {
  grid-template-columns: 1fr;
}

.bound-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
  min-height: 28px;
}

.compact-bound-list {
  align-items: center;
  flex-wrap: nowrap;
  max-width: 100%;
}

.compact-tag {
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.more-tag {
  position: relative;
  cursor: default;
  outline: none;
}

.channel-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 20;
  display: grid;
  min-width: 260px;
  max-width: 420px;
  max-height: 260px;
  gap: 6px;
  padding: 10px 12px;
  overflow: auto;
  color: #e5edff;
  font-size: 12px;
  line-height: 1.4;
  background: #111827;
  border-radius: 8px;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.channel-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 12px;
  height: 12px;
  background: #111827;
  transform: translateX(-50%) rotate(45deg);
}

.more-tag:hover .channel-tooltip,
.more-tag:focus .channel-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.channel-list {
  display: grid;
  gap: 10px;
}

.channel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 13px;
}

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

.roles-layout {
  display: grid;
  gap: 16px;
}

.role-permission-board {
  display: grid;
  gap: 10px;
}

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

.role-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.role-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.role-title,
.account-name,
.section-title {
  font-weight: 760;
}

.role-desc,
.account-username,
.account-meta {
  color: var(--muted);
  font-size: 12px;
}

.role-count {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 760;
}

.role-status,
.role-permissions,
.account-permissions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.role-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.accounts-board {
  display: grid;
  gap: 16px;
}

.account-section {
  display: grid;
  gap: 10px;
}

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

.account-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.account-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.account-meta {
  display: grid;
  gap: 5px;
  margin-top: 12px;
}

.account-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-soft);
  padding: 9px 10px;
  font-size: 13px;
}

.asset-media-wrap {
  position: relative;
  overflow: hidden;
  background: #e7eef4;
}

.asset-thumb {
  width: 100%;
  height: 146px;
  object-fit: cover;
  display: block;
  background: #e7eef4;
}

.asset-preview-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  transform: translate(-50%, -50%) scale(0.96);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  padding: 7px 13px;
  font-size: 12px;
  font-weight: 720;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.24);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.asset-media-wrap:hover .asset-preview-btn,
.asset-preview-btn:focus-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

video.asset-thumb {
  background: #0b1220;
}

.asset-preview-modal {
  width: min(980px, calc(100vw - 48px));
}

.asset-preview-stage {
  display: grid;
  min-height: 360px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  overflow: hidden;
}

.asset-preview-media {
  display: block;
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
}

.asset-usage {
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-soft);
  padding: 8px 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.asset-card.selected,
.template-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.card-content {
  padding: 13px;
}

.card-title {
  font-weight: 760;
}

.card-text {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.split-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.chart {
  display: flex;
  height: 230px;
  align-items: end;
  gap: 14px;
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 14px 0;
}

.bar-wrap {
  display: grid;
  flex: 1;
  gap: 8px;
  justify-items: center;
  position: relative;
  outline: none;
}

.bar {
  width: 100%;
  min-height: 16px;
  border-radius: 5px 5px 0 0;
  background: var(--primary);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.bar.secondary {
  background: #0f766e;
}

.bar-wrap:hover .bar,
.bar-wrap:focus .bar {
  filter: brightness(1.05);
  transform: translateY(-2px);
}

.chart-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 5;
  display: grid;
  min-width: 190px;
  gap: 5px;
  padding: 10px 12px;
  color: #ffffff;
  font-size: 12px;
  line-height: 1.4;
  background: #111827;
  border-radius: 8px;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.chart-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 12px;
  height: 12px;
  background: #111827;
  transform: translateX(-50%) rotate(45deg);
}

.chart-tooltip strong {
  font-size: 13px;
}

.chart-tooltip span {
  color: #dbeafe;
}

.bar-wrap:hover .chart-tooltip,
.bar-wrap:focus .chart-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.bar-label {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.empty {
  display: grid;
  min-height: 220px;
  place-items: center;
  color: var(--muted);
}

.quick-query-bar {
  position: sticky;
  bottom: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  padding: 10px 28px;
  backdrop-filter: blur(10px);
}

.quick-query-title {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.quick-query-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  padding: 8px 13px;
  color: var(--text);
  font-size: 13px;
}

.quick-query-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.quick-query-btn.sync {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.quick-query-btn.sync:hover {
  background: var(--primary-dark);
  color: #fff;
}

.quick-query-modal {
  width: min(980px, calc(100vw - 48px));
}

.quick-list {
  display: grid;
  gap: 8px;
}

.quick-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 12px;
  color: var(--text);
  text-align: left;
}

.quick-list-row:hover {
  border-color: var(--primary);
}

.quick-list-row span {
  display: grid;
  gap: 4px;
}

.quick-list-row small {
  color: var(--muted);
}

.quick-list-row em {
  color: var(--primary);
  font-size: 12px;
  font-style: normal;
  font-weight: 760;
}

.quick-stat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.quick-stat-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 12px;
}

.quick-stat-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.quick-stat-grid strong {
  display: block;
  margin-top: 5px;
  font-size: 22px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  border-radius: 7px;
  background: #111827;
  color: #fff;
  padding: 12px 14px;
  box-shadow: var(--shadow);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.5);
}

.modal {
  width: min(720px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
}

.preview-modal {
  width: min(1180px, calc(100vw - 48px));
}

.preview-layout {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) 420px;
  gap: 18px;
  align-items: start;
}

.preview-layout .phone {
  position: static;
  width: 390px;
  justify-self: end;
}

.preview-compare {
  display: grid;
  gap: 12px;
  max-height: 720px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 14px;
}

.compare-block {
  display: grid;
  gap: 6px;
}

.compare-text {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 10px 11px;
  color: var(--text);
  line-height: 1.55;
}

.compare-text.multiline {
  white-space: pre-wrap;
}

.modal .panel-header {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}

@media (max-width: 900px) {
  body {
    min-width: 0;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

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

  .topbar,
  .toolbar,
  .editor-layout,
  .split-two {
    display: grid;
    height: auto;
    gap: 14px;
  }

  .content {
    padding: 18px;
  }

  .grid.stats,
  .asset-grid,
  .template-grid,
  .channel-grid,
  .role-summary-grid,
  .account-card-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .phone {
    width: min(390px, 100%);
    max-height: none;
  }

  .phone-preview {
    position: static;
    max-height: none;
  }

  .phone-toolbar {
    width: min(390px, 100%);
  }

  .phone-screen {
    height: min(var(--phone-height, 720px), 720px);
  }
}
