@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&family=Noto+Sans+SC:wght@400;500;600;700;800&display=swap");

:root {
  --ink: #171815;
  --ink-soft: #2c2e29;
  --paper: #f6f7f2;
  --paper-raised: #ffffff;
  --muted: #747970;
  --line: #dfe2d9;
  --line-strong: #c5cbc0;
  --acid: #d4f64a;
  --acid-deep: #9ab823;
  --coral: #ff6e5b;
  --sky: #73c5e2;
  --violet: #9c8bff;
  --success: #43b777;
  --warning: #e5a33d;
  --danger: #df5548;
  --sidebar: 248px;
  --topbar: 72px;
  font-family: "Manrope", "Noto Sans SC", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html, body, #app { min-height: 100%; margin: 0; }
body { min-width: 320px; background: var(--paper); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(115, 197, 226, 0.5);
  outline-offset: 2px;
}

.app-shell { display: flex; min-width: 0; min-height: 100vh; overflow-x: clip; }
.sidebar {
  width: var(--sidebar);
  background: var(--ink);
  color: #eef0e6;
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
}
.brand {
  height: var(--topbar);
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: var(--acid);
  color: var(--ink);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}
.brand-name { font-size: 15px; font-weight: 800; letter-spacing: 0.02em; }
.brand-sub { color: #949b8b; font-family: "DM Mono", monospace; font-size: 9px; letter-spacing: 0.12em; }
.sidebar-scroll { padding: 23px 13px 18px; overflow: auto; flex: 1; }
.nav-label {
  padding: 0 12px 10px;
  color: #767d70;
  font-family: "DM Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav-group { margin-bottom: 22px; }
.nav-item {
  width: 100%;
  border: 0;
  background: transparent;
  color: #aeb5a6;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 6px;
  margin: 2px 0;
  font-size: 13px;
  text-align: left;
  text-decoration: none;
  transition: background 160ms, color 160ms;
}
.nav-item:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.nav-item.active { background: var(--acid); color: var(--ink); font-weight: 700; }
.nav-item svg { width: 16px; height: 16px; stroke-width: 1.9; }
.nav-count {
  margin-left: auto;
  padding: 1px 6px;
  color: var(--ink);
  background: var(--coral);
  border-radius: 12px;
  font-family: "DM Mono", monospace;
  font-size: 10px;
}
.sidebar-foot {
  padding: 15px 17px 19px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.usage-row { display: flex; justify-content: space-between; color: #aeb5a6; font-size: 11px; margin-bottom: 8px; }
.usage-row strong { color: var(--acid); font-family: "DM Mono", monospace; font-weight: 500; }
.progress { height: 5px; overflow: hidden; background: rgba(255,255,255,0.12); border-radius: 3px; }
.progress > i { display: block; height: 100%; background: var(--acid); border-radius: inherit; }

.workspace { width: calc(100% - var(--sidebar)); min-width: 0; margin-left: var(--sidebar); min-height: 100vh; }
.topbar {
  height: var(--topbar);
  background: rgba(246,247,242,0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.topbar-left { display: flex; align-items: center; gap: 13px; }
.mobile-menu { display: none; }
.crumb { color: var(--muted); font-family: "DM Mono", monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.topbar-title { font-size: 16px; font-weight: 700; }
.topbar-right { display: flex; align-items: center; gap: 9px; }
.icon-button, .avatar-button {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.icon-button:hover, .avatar-button:hover { border-color: var(--ink); background: var(--paper-raised); }
.icon-button svg { width: 16px; height: 16px; }
.avatar-button {
  width: 36px;
  border: 0;
  color: var(--ink);
  background: var(--coral);
  font-size: 11px;
  font-weight: 800;
}
.avatar-button.avatar-media { padding: 0; overflow: hidden; border-radius: 50%; background: transparent; }
.avatar {
  position: relative;
  width: 34px;
  height: 34px;
  flex: none;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--avatar-bg, var(--coral));
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
}
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar.avatar-lg { width: 54px; height: 54px; font-size: 17px; }
.avatar.avatar-xl { width: 72px; height: 72px; font-size: 23px; }
.avatar.avatar-fill { width: 100%; height: 100%; }
.user-cell { display: flex; align-items: center; gap: 10px; }
.dm-unread {
  flex: none;
  align-self: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--coral);
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
}
.conv-type {
  display: inline-block;
  margin-right: 5px;
  padding: 0 5px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  line-height: 15px;
  vertical-align: 1px;
}
.conv-type.group { background: var(--acid); color: var(--ink); }
.conv-type.c2c { background: var(--sky); color: var(--ink); }
.account-head { display: flex; align-items: center; gap: 14px; }
.avatar-preview { display: flex; justify-content: center; margin: 4px 0 14px; }
.page { width: 100%; min-width: 0; padding: 31px 34px 46px; max-width: 1600px; margin: 0 auto; overflow: hidden; }
.platform-footer { padding: 0 34px 20px; text-align: center; color: var(--muted); font-size: 12px; }
.platform-footer a { color: inherit; text-decoration: none; }
.platform-footer a:hover { color: var(--text); text-decoration: underline; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 28px; }
.eyebrow {
  display: flex; align-items: center; gap: 8px;
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 11px;
}
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 38px; line-height: 1.12; letter-spacing: 0; }
h2 { font-size: 18px; line-height: 1.25; letter-spacing: 0; }
h3 { font-size: 13px; }
.subtitle { color: var(--muted); font-size: 13px; line-height: 1.7; margin-top: 11px; }
.actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--paper-raised);
  color: var(--ink);
  font-size: 12px; font-weight: 700;
}
.button:hover { border-color: var(--ink); transform: translateY(-1px); }
.button:disabled { opacity: 0.62; cursor: not-allowed; transform: none; }
.button.primary { background: var(--ink); color: var(--acid); border-color: var(--ink); }
.button.primary:hover { background: var(--ink-soft); }
.button.acid { background: var(--acid); border-color: var(--acid); }
.button.ghost { background: transparent; border-color: transparent; }
.button.danger { color: var(--danger); border-color: rgba(223,85,72,0.4); background: transparent; }
.button svg { width: 15px; height: 15px; }

.grid { display: grid; gap: 13px; }
.stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 13px; }
.stat-card, .panel, .table-wrap, .metric-panel {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 7px;
  min-width: 0;
}
.stat-card { padding: 17px 18px; min-height: 133px; position: relative; overflow: hidden; }
.stat-card::after {
  content: "";
  width: 80px; height: 80px;
  position: absolute; right: -23px; bottom: -32px;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.stat-top { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }
.stat-icon { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 5px; }
.stat-icon svg { width: 15px; height: 15px; }
.stat-value { margin-top: 14px; font-family: "DM Mono", monospace; font-size: 28px; letter-spacing: 0; }
.stat-foot { margin-top: 7px; display: flex; align-items: center; gap: 5px; color: var(--muted); font-family: "DM Mono", monospace; font-size: 10px; }
.stat-foot.up { color: var(--success); }
.stat-foot.warn { color: var(--warning); }

.main-grid { grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.95fr); }
.panel { padding: 21px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.panel-head-left { display: flex; align-items: center; gap: 10px; }
.panel-kicker { color: var(--muted); font-family: "DM Mono", monospace; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(67,183,119,0.12); }
.chart-wrap { height: 266px; position: relative; }
.chart-wrap canvas { width: 100%; height: 100%; }
.chart-legend { display: flex; gap: 16px; color: var(--muted); font-family: "DM Mono", monospace; font-size: 10px; }
.legend-dot { width: 7px; height: 7px; display: inline-block; margin-right: 5px; border-radius: 2px; }
.legend-dot.coral { background: var(--coral); }
.legend-dot.sky { background: var(--sky); }
.metric-panel { padding: 19px 20px; }
.metric-row { display: flex; justify-content: space-between; align-items: flex-end; padding: 12px 0; border-bottom: 1px solid var(--line); }
.metric-row:last-child { border-bottom: 0; padding-bottom: 0; }
.metric-row:first-of-type { padding-top: 0; }
.metric-label { color: var(--muted); font-size: 11px; }
.metric-number { font-family: "DM Mono", monospace; font-size: 20px; letter-spacing: 0; }
.bar-list { display: grid; gap: 14px; }
.bar-item { display: grid; grid-template-columns: 104px 1fr 45px; align-items: center; gap: 11px; font-size: 11px; }
.bar-track { height: 7px; background: var(--paper); border-radius: 2px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: inherit; background: var(--ink); }
.bar-fill.acid { background: var(--acid-deep); }
.bar-fill.coral { background: var(--coral); }
.bar-fill.sky { background: var(--sky); }
.bar-value { color: var(--muted); font-family: "DM Mono", monospace; text-align: right; }

.lower-grid { grid-template-columns: minmax(0, 1.2fr) minmax(310px, 0.8fr); margin-top: 13px; }
.event-list { display: grid; }
.event {
  display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 11px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.event:last-child { border-bottom: 0; }
.event-icon { width: 30px; height: 30px; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 5px; }
.event-icon svg { width: 14px; height: 14px; }
.event-title { font-size: 12px; font-weight: 700; }
.event-sub { margin-top: 3px; color: var(--muted); font-family: "DM Mono", monospace; font-size: 10px; }
.event-time { color: var(--muted); font-family: "DM Mono", monospace; font-size: 10px; }
.queue-list { display: grid; gap: 8px; }
.queue-item { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--paper-raised); color: var(--ink); text-align: left; }
.queue-item:hover { border-color: var(--ink); background: var(--paper); }
.queue-check { width: 18px; height: 18px; accent-color: var(--ink); }
.queue-check-icon { display: grid; place-items: center; color: var(--muted); }
.queue-check-icon svg { width: 18px; height: 18px; }
.queue-text { flex: 1; font-size: 11px; }
.queue-text small { display: block; color: var(--muted); margin-top: 3px; font-family: "DM Mono", monospace; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 20px; background: var(--paper); color: var(--muted); font-family: "DM Mono", monospace; font-size: 10px; white-space: nowrap; }
.pill.success { background: rgba(67,183,119,0.12); color: var(--success); }
.pill.warning { background: rgba(229,163,61,0.14); color: #a8711c; }
.pill.danger { background: rgba(223,85,72,0.12); color: var(--danger); }
.pill.acid { background: rgba(212,246,74,0.26); color: #647e12; }

.toolbar { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.toolbar-left, .toolbar-right { display: flex; gap: 8px; flex-wrap: wrap; }
.input, .select, .textarea {
  height: 36px; padding: 0 11px; border: 1px solid var(--line-strong); border-radius: 5px; background: var(--paper-raised); color: var(--ink); font-size: 12px;
}
.textarea { min-height: 112px; padding: 10px 11px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: #a2a79c; }
.search { min-width: 230px; }
.table-wrap { overflow: auto; }
.cmd-table { table-layout: fixed; width: 100%; }
.cmd-table th:nth-child(1), .cmd-table td:nth-child(1) { width: 42%; }
.cmd-table td { white-space: normal; overflow-wrap: anywhere; word-break: break-word; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 13px 15px; text-align: left; border-bottom: 1px solid var(--line); font-size: 12px; white-space: nowrap; }
th { color: var(--muted); background: #fafbf8; font-family: "DM Mono", monospace; font-size: 10px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfcf9; }
.bot-cell { display: flex; align-items: center; gap: 10px; }
.bot-avatar { width: 31px; height: 31px; display: grid; place-items: center; overflow: hidden; border-radius: 6px; font-family: "DM Mono", monospace; font-size: 11px; font-weight: 500; }
.bot-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.bot-name { font-weight: 700; }
.bot-id { margin-top: 3px; color: var(--muted); font-family: "DM Mono", monospace; font-size: 10px; }
.bot-developer-label { margin-top: 3px; color: var(--muted); font-size: 10px; }
.bot-developer-row td, tbody .bot-developer-row:hover td { padding: 9px 15px; background: #f2f5ee; border-bottom: 1px solid var(--line-strong); }
.bot-developer-row td > svg { width: 15px; height: 15px; margin-right: 7px; vertical-align: -3px; color: var(--muted); }
.bot-developer-row strong { margin-right: 12px; font-size: 12px; }
.bot-developer-row span { color: var(--muted); font-size: 10px; }
.welcome-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1100px) { .welcome-grid { grid-template-columns: minmax(0, 1fr); } }
.toggle { width: 34px; height: 19px; padding: 2px; border: 0; border-radius: 15px; background: var(--line-strong); }
.toggle i { width: 15px; height: 15px; display: block; border-radius: 50%; background: white; transition: transform 160ms; }
.toggle.on { background: var(--success); }
.toggle.on i { transform: translateX(15px); }
.row-actions { display: flex; gap: 3px; }
.row-actions .icon-button { width: 29px; height: 29px; border-color: transparent; }
.row-actions .danger-icon { color: var(--danger); }
.row-actions .danger-icon:hover { border-color: rgba(223,85,72,0.4); background: rgba(223,85,72,0.08); }

.filter-tabs { display: flex; gap: 3px; padding: 3px; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; }
.dm-tabs { margin-bottom: 12px; width: fit-content; }
.filter-tab { border: 0; background: transparent; border-radius: 4px; padding: 7px 10px; color: var(--muted); font-size: 11px; }
.filter-tab.active { background: var(--paper-raised); color: var(--ink); box-shadow: 0 1px 3px rgba(23,24,21,0.08); font-weight: 700; }
.bot-overview { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin-bottom: 14px; }
.mini-stat { padding: 15px 16px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper-raised); }
.mini-stat-label { color: var(--muted); font-size: 11px; }
.mini-stat-value { margin-top: 8px; font-family: "DM Mono", monospace; font-size: 22px; letter-spacing: 0; }
.auth-split { display: flex; align-items: baseline; gap: 16px; }
.auth-split span { display: inline-flex; align-items: baseline; gap: 6px; }
.auth-split small { font-size: 11px; font-family: "Manrope", "Noto Sans SC", sans-serif; color: var(--muted); }
.auth-ok { color: var(--success); }
.auth-no { color: var(--warning); }

.rule-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr); gap: 13px; }
.rule-list { display: grid; gap: 8px; }
.rule-card { display: grid; grid-template-columns: 8px 1fr auto; align-items: center; gap: 13px; padding: 15px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper-raised); }
.rule-card:hover { border-color: var(--ink); }
.rule-accent { width: 8px; height: 45px; border-radius: 4px; background: var(--acid-deep); }
.rule-card:nth-child(2) .rule-accent { background: var(--sky); }
.rule-card:nth-child(3) .rule-accent { background: var(--coral); }
.rule-card:nth-child(4) .rule-accent { background: var(--violet); }
.rule-title { font-size: 12px; font-weight: 700; }
.rule-meta { display: flex; gap: 8px; margin-top: 7px; color: var(--muted); font-family: "DM Mono", monospace; font-size: 10px; }
.rule-reply { margin-top: 7px; color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rule-preset { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; color: var(--muted); font-family: "DM Mono", monospace; font-size: 10px; }
.rule-preset svg { width: 13px; height: 13px; }
.announcement-body { white-space: normal; text-overflow: clip; line-height: 1.7; }
.announcement-link { color: var(--sky, #73c5e2); text-decoration: underline; word-break: break-all; }
.announcement-link:hover { filter: brightness(1.2); }
.rule-controls { display: flex; align-items: center; gap: 7px; }
.simulator { align-self: start; position: sticky; top: calc(var(--topbar) + 18px); }
.sim-window { min-height: 242px; padding: 12px; background: var(--ink); border-radius: 6px; color: #f5f7ef; }
.sim-message { max-width: 88%; margin-bottom: 10px; padding: 9px 11px; border-radius: 5px; background: #2b2d28; font-size: 11px; line-height: 1.6; }
.sim-message.user { margin-left: auto; background: var(--acid); color: var(--ink); }
.sim-message.bot { background: #f5f7ef; color: var(--ink); }
.sim-time { margin-top: 4px; color: #91988a; font-family: "DM Mono", monospace; font-size: 9px; }
.sim-footer { display: flex; gap: 7px; margin-top: 14px; }
.sim-footer .input { flex: 1; min-width: 0; }

.chat-layout { display: grid; grid-template-columns: 280px minmax(0,1fr); height: max(585px, calc(100vh - 290px)); border: 1px solid var(--line); border-radius: 7px; overflow: hidden; background: var(--paper-raised); }
.conversation-list { border-right: 1px solid var(--line); background: #fbfcf9; }
.conversation-head { padding: 16px; border-bottom: 1px solid var(--line); }
.conversation { display: flex; gap: 9px; align-items: center; padding: 13px 15px; border-left: 3px solid transparent; cursor: pointer; }
.conversation:hover { background: var(--paper); }
.conversation.active { border-left-color: var(--coral); background: var(--paper); }
.conversation-avatar { position: relative; flex-shrink: 0; overflow: hidden; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--sky); font-family: "DM Mono", monospace; font-size: 10px; }
.conversation-avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.bot-avatar { position: relative; overflow: hidden; }
.avatar-fallback { display: grid; place-items: center; width: 100%; height: 100%; }
.conversation-avatar img, .bot-avatar img { position: absolute; inset: 0; background: inherit; }
.conversation-text { flex: 1; min-width: 0; }
.conversation-name { font-size: 11px; font-weight: 700; }
.conversation-preview { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; margin-top: 3px; }
.conversation-time { color: var(--muted); font-family: "DM Mono", monospace; font-size: 9px; align-self: flex-start; }
.chat-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.chat-person { display: flex; align-items: center; gap: 10px; }
.chat-person > div:last-child { min-width: 0; }
.chat-person strong { display: block; font-size: 13px; }
.chat-person span { display: block; max-width: min(560px, 62vw); overflow: hidden; margin-top: 3px; color: var(--muted); font-family: "DM Mono", monospace; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.chat-messages { flex: 1; min-height: 0; padding: 21px; overflow-y: auto; overflow-x: hidden; background: #fbfcf9; }
.chat-day { display: flex; align-items: center; gap: 10px; margin: 0 auto 22px; color: var(--muted); font-family: "DM Mono", monospace; font-size: 9px; }
.chat-day::before, .chat-day::after { content: ""; height: 1px; width: 55px; background: var(--line); }
.message { display: flex; gap: 9px; margin: 13px 0; }
.message.outgoing { justify-content: flex-end; }
.message-content { min-width: 0; max-width: min(620px, calc(100% - 36px)); }
.message-bubble { width: fit-content; min-width: 92px; max-width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 5px; background: var(--paper-raised); font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; word-break: break-word; }
.message.outgoing .message-bubble { border-color: var(--ink); background: var(--ink); color: var(--acid); }
.message-image { display: block; width: auto; max-width: min(100%, 420px); max-height: 360px; margin-bottom: 8px; border-radius: 5px; object-fit: contain; }
.message-inline-image { width: 22px; height: 22px; margin: 0 3px; border-radius: 50%; vertical-align: middle; object-fit: cover; }
.message-command { display: inline-block; margin: 2px 3px 2px 0; padding: 2px 7px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); font-size: 11px; }
.message-link { color: #2374a8; text-decoration: underline; }
.message.outgoing .message-link { color: inherit; }
.message-meta { margin-top: 5px; color: var(--muted); font-family: "DM Mono", monospace; font-size: 9px; }
.message.outgoing .message-meta { color: #aeb5a6; text-align: right; }
.composer { display: flex; gap: 8px; padding: 13px 16px; border-top: 1px solid var(--line); }
.composer .input { flex: 1; min-width: 0; }

.plugin-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.plugin-card { display: flex; flex-direction: column; min-height: 225px; padding: 17px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper-raised); }
.plugin-card:hover { border-color: var(--ink); transform: translateY(-2px); transition: transform 160ms, border-color 160ms; }
.plugin-icon { width: 36px; height: 36px; display: grid; place-items: center; margin-bottom: 16px; border-radius: 7px; }
.plugin-icon svg { width: 18px; height: 18px; }
.plugin-title { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13px; font-weight: 800; }
.plugin-desc { min-height: 39px; margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.plugin-foot { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin-top: auto; padding-top: 15px; }
.plugin-meta { color: var(--muted); font-family: "DM Mono", monospace; font-size: 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.plugin-card .actions { justify-content: flex-start; gap: 6px; }
.plugin-card .button { height: 29px; padding: 0 9px; font-size: 10px; flex-shrink: 0; }
.plugin-settings { display: none; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.plugin-settings.open { display: block; }
.plugin-settings .field { margin-bottom: 8px; }
.plugin-settings .modal-foot { margin-top: 4px; }

.notification-bell { position: relative; }
.notification-badge { position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--coral); color: #fff; font-size: 9px; font-weight: 700; line-height: 16px; text-align: center; pointer-events: none; }
.notification-list { display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow-y: auto; }
.notification-item { padding: 12px 14px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper-raised); }
.notification-item.unread { border-left: 3px solid var(--acid); }
.notification-item-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px; }
.notification-item p { margin: 0 0 6px; color: var(--muted); font-size: 12px; line-height: 1.6; white-space: pre-wrap; }
.notification-item small { color: var(--muted); font-family: "DM Mono", monospace; font-size: 10px; }
.notification-send { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }

.log-summary { display: flex; gap: 8px; margin-bottom: 15px; }
.log-chip { flex: 1; padding: 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper-raised); }
.log-chip strong { display: block; font-family: "DM Mono", monospace; font-size: 21px; letter-spacing: 0; }
.log-chip span { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.log-type { display: inline-flex; align-items: center; gap: 5px; }
.log-type i { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.log-type.warn i { background: var(--warning); }
.log-type.error i { background: var(--danger); }

.empty { padding: 42px 20px; text-align: center; color: var(--muted); }
.empty svg { width: 28px; height: 28px; margin-bottom: 10px; color: var(--line-strong); }
.empty p { font-size: 12px; }

.toast {
  position: fixed; right: 24px; bottom: 24px; z-index: 100;
  display: flex; align-items: center; gap: 10px; max-width: min(360px, calc(100vw - 32px));
  padding: 12px 15px; border: 1px solid var(--ink); border-radius: 5px;
  background: var(--ink); color: var(--acid); box-shadow: 0 10px 32px rgba(23,24,21,0.18);
  font-size: 12px; animation: rise 180ms ease-out;
}
.toast svg { width: 15px; height: 15px; flex: 0 0 auto; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.modal-backdrop { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(23,24,21,0.48); }
.modal { width: min(500px, 100%); max-height: min(700px, calc(100vh - 40px)); overflow: auto; padding: 21px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper-raised); box-shadow: 0 18px 60px rgba(23,24,21,0.24); }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.modal-head h2 { max-width: 350px; }
.button-preset-modal { width: min(960px, 100%); max-height: calc(100vh - 40px); }
.button-preset-modal .modal-head h2 { max-width: none; }
.modal-head-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
.modal-close { border: 0; background: transparent; color: var(--muted); padding: 3px; }
.modal-close svg { width: 18px; height: 18px; }
.platform-announcement-copy { color: var(--muted); font-size: 13px; line-height: 1.9; }
.platform-announcement-copy > p { margin: 0; }
.platform-announcement-reward { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; padding: 13px 14px; border-left: 3px solid var(--acid); background: var(--paper); color: var(--ink); }
.platform-announcement-reward svg { width: 19px; height: 19px; margin-top: 3px; flex: 0 0 auto; color: var(--success); }
.platform-announcement-reward p { margin: 0; }
.platform-announcement-reward strong { color: var(--ink); }
.form-grid { display: grid; gap: 13px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.field { display: grid; gap: 6px; }
.field label { color: var(--muted); font-family: "DM Mono", monospace; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; }
.field-hint { color: var(--success); font-family: inherit; font-size: 10px; letter-spacing: 0; text-transform: none; }
.field-combo { display: flex; gap: 8px; align-items: stretch; }
.field-combo .input { flex: 1; min-width: 0; }
.field-combo .button { flex-shrink: 0; white-space: nowrap; }
.field-combo .button svg { width: 14px; height: 14px; }
.model-picker { margin-top: 2px; }
.model-picker-select { width: 100%; }
.selftest-list { display: grid; gap: 8px; margin-top: 14px; max-height: 380px; overflow-y: auto; }
.selftest-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.selftest-name { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 12px; white-space: nowrap; min-width: 130px; }
.selftest-name .field-hint { margin-left: 4px; }
.selftest-icon { width: 15px; height: 15px; flex-shrink: 0; }
.selftest-detail { color: var(--muted); font-size: 11px; word-break: break-all; }
.license-expiry { color: var(--muted); font-size: 10px; margin-top: 4px; white-space: nowrap; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 21px; }

.preset-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: -8px 0 18px; color: var(--muted); font-size: 12px; }
.preset-summary span { display: inline-flex; align-items: center; gap: 7px; }
.preset-summary svg { width: 16px; height: 16px; }
.preset-summary strong { color: var(--ink); }
.button-preset-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.button-preset-card { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper-raised); }
.preset-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 15px; }
.preset-card-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 6px; background: rgba(115,197,226,0.18); color: var(--ink); }
.preset-card-icon svg { width: 17px; height: 17px; }
.preset-card-actions { display: flex; gap: 6px; }
.preset-card-actions .icon-button, .preset-id .icon-button { width: 29px; height: 29px; }
.preset-card-actions .icon-button svg, .preset-id .icon-button svg { width: 14px; height: 14px; }
.preset-delete { color: var(--danger); }
.button-preset-card h2 { overflow-wrap: anywhere; font-size: 16px; }
.preset-description { min-height: 38px; margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.preset-id { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 13px 0; padding: 6px 7px 6px 10px; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); }
.preset-id code { min-width: 0; overflow: hidden; color: var(--muted); font-family: "DM Mono", monospace; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.preset-id .icon-button { flex: 0 0 auto; border: 0; }
.preset-preview { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; min-height: 60px; }
.preset-button-sample { max-width: 100%; padding: 5px 9px; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 4px; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.preset-button-sample.blue { border-color: #65a9d2; color: #377da9; }
.preset-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.preset-empty { display: grid; justify-items: center; gap: 12px; padding: 70px 20px; }
.preset-empty svg { margin: 0; }
.preset-empty .button { margin-top: 6px; }
.button-preset-form { display: grid; gap: 16px; }
.button-preset-form .form-row { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.preset-editor-tabs { display: flex; align-items: center; gap: 14px; }
.preset-editor-tabs > span { color: var(--muted); font-size: 11px; }
.preset-editor-tabs .filter-tab { display: inline-flex; align-items: center; gap: 6px; }
.preset-editor-tabs svg { width: 13px; height: 13px; }
.preset-editor-body { min-width: 0; }
.preset-editor-rows { display: grid; gap: 12px; }
.preset-editor-row { padding: 14px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--paper); }
.preset-row-head, .preset-button-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.preset-row-head { margin-bottom: 12px; font-size: 12px; }
.preset-row-head .button { height: 27px; padding: 0 5px; font-size: 10px; }
.preset-row-head .button svg { width: 13px; height: 13px; }
.preset-row-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
.preset-button-editor { display: grid; gap: 11px; min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 5px; background: var(--paper-raised); }
.preset-button-head { font-size: 11px; }
.preset-button-head .icon-button { width: 25px; height: 25px; border: 0; color: var(--danger); }
.preset-button-head .icon-button svg { width: 14px; height: 14px; }
.preset-button-editor .form-row { gap: 9px; }
.preset-button-editor .field label { font-size: 9px; }
.preset-button-editor .input, .preset-button-editor .select { width: 100%; min-width: 0; }
.preset-type-hint { color: var(--muted); font-size: 10px; line-height: 1.6; }
.preset-checks { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 10px; }
.preset-checks label { display: inline-flex; align-items: center; gap: 6px; }
.preset-checks input { accent-color: var(--ink); }
.preset-add-button { min-height: 72px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 1px dashed var(--line-strong); border-radius: 5px; background: transparent; color: var(--muted); font-size: 11px; }
.preset-add-button:hover { border-color: var(--ink); color: var(--ink); }
.preset-add-button svg { width: 16px; height: 16px; }
.preset-add-row { width: 100%; margin-top: 11px; border-style: dashed; }
.preset-advanced summary { color: var(--muted); cursor: pointer; font-size: 10px; }
.preset-advanced[open] summary { margin-bottom: 10px; }
.preset-json-editor { width: 100%; min-height: 390px; font-family: "DM Mono", monospace; font-size: 11px; line-height: 1.7; tab-size: 2; }
.bot-add-tabs { margin-bottom: 16px; }
.bot-add-tabs .filter-tab { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.bot-add-tabs .filter-tab svg { width: 14px; height: 14px; }
.bot-scan-panel { display: grid; gap: 13px; }
.bot-scan-qr { width: 226px; height: 226px; display: grid; place-items: center; justify-self: center; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 7px; background: #fff; }
.bot-scan-qr img { display: block; width: 100%; height: 100%; object-fit: contain; }
.scan-loading { display: grid; justify-items: center; gap: 10px; color: var(--muted); font-size: 11px; }
.scan-loading svg { width: 24px; height: 24px; animation: scan-spin 1s linear infinite; }
.bot-scan-status { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 22px; color: var(--muted); font-size: 11px; text-align: center; }
.bot-scan-status svg { width: 15px; height: 15px; color: var(--ink); }
.scan-developer-list { display: grid; gap: 7px; margin-top: 8px; }
.scan-developer { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper-raised); text-align: left; }
.scan-developer:hover, .scan-developer.active { border-color: var(--ink); background: var(--paper); }
.scan-developer span { display: grid; gap: 4px; min-width: 0; }
.scan-developer strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.scan-developer small { color: var(--muted); font-size: 10px; }
.scan-developer svg { width: 15px; height: 15px; flex: 0 0 auto; }
.bot-scan-bots { display: grid; gap: 7px; }
.scan-bot-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.scan-bot-toolbar-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.scan-bot-toolbar .button { height: 28px; padding: 0 9px; font-size: 10px; }
.scan-bot-item { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 11px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper-raised); }
.scan-bot-item.connected { background: color-mix(in srgb, var(--success) 5%, var(--paper-raised)); }
.scan-bot-avatar { width: 42px; height: 42px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: var(--sky); font-family: "DM Mono", monospace; font-size: 12px; }
.scan-bot-avatar img { width: 100%; height: 100%; object-fit: cover; }
.scan-bot-copy { min-width: 0; }
.scan-bot-item strong { display: block; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.scan-bot-item small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.scan-bot-item p { margin-top: 5px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.scan-bot-item .button { height: 30px; padding: 0 10px; font-size: 10px; }
.scan-bot-actions { display: flex; align-items: center; gap: 7px; }
.scan-bot-check { position: relative; display: grid; width: 22px; height: 22px; place-items: center; cursor: pointer; }
.scan-bot-check input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.scan-bot-check span { width: 18px; height: 18px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--paper); }
.scan-bot-check input:checked + span { border-color: var(--ink); background: var(--ink); box-shadow: inset 0 0 0 4px var(--paper); }
.scan-bot-check input:focus-visible + span { outline: 2px solid var(--acid); outline-offset: 2px; }
.scan-error { padding: 10px 12px; border: 1px solid rgba(201,91,91,0.35); border-radius: 5px; background: rgba(201,91,91,0.08); color: var(--danger); font-size: 11px; line-height: 1.6; }
@keyframes scan-spin { to { transform: rotate(360deg); } }

.drawer {
  position: fixed; inset: 0 0 0 auto; z-index: 75; width: min(430px, 100%);
  padding: 22px; overflow: auto; background: var(--paper-raised); box-shadow: -14px 0 50px rgba(23,24,21,0.16);
}
.drawer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.drawer-section { padding: 18px 0; border-bottom: 1px solid var(--line); }
.drawer-section:last-child { border-bottom: 0; }
.drawer-label { color: var(--muted); font-family: "DM Mono", monospace; font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; }
.drawer-value { margin-top: 8px; font-family: "DM Mono", monospace; font-size: 13px; }

.login-screen {
  min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 0.76fr); background: var(--paper);
}
.login-visual {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 42px 52px; background: var(--ink); color: var(--acid);
}
.login-visual::before, .login-visual::after { content: ""; position: absolute; border: 1px solid rgba(212,246,74,0.3); border-radius: 50%; }
.login-visual::before { width: 680px; height: 680px; right: -270px; bottom: -225px; }
.login-visual::after { width: 430px; height: 430px; right: -145px; bottom: -102px; }
.login-brand { display: flex; align-items: center; gap: 11px; position: relative; z-index: 1; }
.login-brand .brand-mark { background: var(--acid); }
.login-hero { position: relative; z-index: 1; max-width: 580px; }
.login-hero h1 { font-size: 68px; letter-spacing: 0; color: #f6f7f2; }
.login-hero h1 em { color: var(--acid); font-style: normal; }
.login-hero p { max-width: 430px; color: #bdc5b4; line-height: 1.8; font-size: 14px; margin-top: 20px; }
.login-visual-foot { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; color: #9fa997; font-family: "DM Mono", monospace; font-size: 10px; }
.pulse-line { width: 75px; height: 1px; background: var(--acid); }
.login-panel { display: flex; align-items: center; padding: 45px clamp(26px, 6vw, 92px); background: var(--paper); }
.login-form { width: 100%; max-width: 390px; }
.login-form h2 { margin-top: 8px; font-size: 26px; }
.login-form .subtitle { margin-bottom: 25px; }
.login-form .field { margin-bottom: 13px; }
.login-form .input { width: 100%; height: 43px; }
.login-link { display: block; margin: 15px 0 23px; color: var(--muted); font-family: "DM Mono", monospace; font-size: 10px; text-align: right; }
.login-recovery-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 14px; }
.login-recovery-links .login-link { margin-left: auto; }
.login-recovery-links .login-link + .login-link { margin-left: 0; }
.login-form .button { width: 100%; height: 43px; }
.login-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0; color: var(--muted); font-family: "DM Mono", monospace; font-size: 10px; }
.login-divider::before, .login-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.login-demo { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 43px; border: 1px solid var(--line-strong); border-radius: 5px; background: transparent; color: var(--ink); font-size: 12px; font-weight: 700; }
.login-demo:hover { border-color: var(--ink); background: var(--paper-raised); }
.login-demo svg { width: 15px; height: 15px; }
.login-foot { margin-top: 32px; color: var(--muted); font-family: "DM Mono", monospace; font-size: 9px; line-height: 1.8; }
.login-foot a { color: inherit; text-decoration: none; }
.login-foot a:hover { color: var(--text); text-decoration: underline; }
.register-bonus-hint { margin: 4px 0 12px; color: var(--acid); }
.security-challenge { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 15px; padding: 13px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--paper-raised); }
.security-challenge-icon { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 6px; background: var(--acid); }
.security-challenge-icon svg { width: 17px; height: 17px; }
.security-challenge strong { font-size: 12px; }
.security-challenge p { margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.captcha-row { display: grid; grid-template-columns: minmax(0, 1fr) 112px; gap: 8px; }
.captcha-button { height: 43px; padding: 0; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 5px; background: var(--paper-raised); color: var(--muted); font-size: 10px; }
.captcha-button img { display: block; width: 100%; height: 100%; object-fit: cover; }
.login-back-button { margin-top: 8px; }

.security-panel { margin-top: 13px; }
.security-toggle { display: flex; gap: 10px; align-items: flex-start; padding: 13px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper-raised); }
.security-toggle input { margin-top: 2px; flex: 0 0 auto; }
.security-toggle span { display: grid; gap: 4px; }
.security-toggle strong { font-size: 12px; }
.security-toggle small { color: var(--muted); font-size: 10px; line-height: 1.5; }
.security-log-list { display: grid; gap: 1px; }
.security-log-item { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.security-log-item:last-child { border-bottom: 0; }
.security-log-item strong { display: block; font-size: 11px; }
.security-log-item small { display: block; margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.security-log-item time { color: var(--muted); font-family: "DM Mono", monospace; font-size: 9px; text-align: right; }

.security-account-grid { display: grid; gap: 8px; }
.security-account-item { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 6px; }
.security-account-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 6px; background: var(--paper); }
.security-account-icon svg { width: 17px; height: 17px; }
.security-account-item strong { display: block; font-size: 11px; }
.security-account-item small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.security-account-item .button { height: 29px; padding: 0 9px; font-size: 10px; }
.security-panel + .security-panel { margin-top: 18px; }
.security-form-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.security-form-actions > span { color: var(--muted); font-size: 10px; line-height: 1.6; }
.security-form-actions .button { flex-shrink: 0; }
.sms-code-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.sms-template-list { display: grid; gap: 8px; max-height: 440px; overflow: auto; }
.sms-template-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper-raised); color: var(--text); text-align: left; }
.sms-template-item:hover { border-color: var(--line-strong); background: var(--paper); }
.sms-template-item span { display: grid; gap: 5px; min-width: 0; }
.sms-template-item strong { font-size: 12px; }
.sms-template-item code { color: var(--muted); font-size: 10px; }
.sms-template-item small { grid-column: 1 / -1; color: var(--muted); font-size: 10px; line-height: 1.6; overflow-wrap: anywhere; }
.sms-template-item svg { width: 16px; height: 16px; color: var(--muted); }
@media (max-width: 520px) { .security-form-actions { align-items: stretch; flex-direction: column; gap: 10px; } }
.security-setup { margin-top: 15px; padding: 15px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--paper); }
.security-setup h3 { font-size: 13px; }
.security-setup .button { margin-top: 10px; }
.secret-box { display: flex; align-items: center; gap: 8px; margin: 13px 0; padding: 11px 12px; border: 1px dashed var(--line-strong); border-radius: 5px; background: var(--paper-raised); }
.secret-box code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-family: "DM Mono", monospace; font-size: 11px; }
.delivery-tabs { margin: 6px 0 10px; width: fit-content; }
.callback-row { display: flex; align-items: center; gap: 8px; margin: 6px 0 8px; padding: 11px 12px; border: 1px dashed var(--line-strong); border-radius: 5px; background: var(--paper-raised); }
.callback-url { flex: 1; min-width: 0; overflow-wrap: anywhere; font-family: "DM Mono", monospace; font-size: 11px; }
.callback-row .input { flex: 1; min-width: 0; font-family: "DM Mono", monospace; font-size: 11px; }
.recovery-code-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px; margin: 13px 0; }
.recovery-code-grid code { padding: 9px; border: 1px solid var(--line); border-radius: 5px; background: var(--paper-raised); font-family: "DM Mono", monospace; font-size: 11px; text-align: center; }
.privacy-policy-content { max-height: 300px; overflow: auto; padding: 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--muted); font-size: 11px; line-height: 1.8; }

@media (max-width: 1120px) {
  .button-preset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .main-grid, .lower-grid, .rule-grid { grid-template-columns: minmax(0, 1fr); }
  .simulator { position: static; }
  .plugin-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .bot-overview { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 820px) {
  .button-preset-modal { max-height: calc(100vh - 24px); }
  .preset-row-buttons { grid-template-columns: minmax(0, 1fr); }
  .preset-add-button { min-height: 48px; }
  :root { --sidebar: 0px; --topbar: 62px; }
  .sidebar { width: 248px; transform: translateX(-100%); transition: transform 180ms ease; box-shadow: 10px 0 30px rgba(23,24,21,0.16); }
  .sidebar.open { transform: translateX(0); }
  .workspace { width: 100%; min-width: 0; margin-left: 0; }
  .topbar { min-width: 0; padding: 0 17px; overflow: hidden; }
  .topbar-left, .topbar-right { min-width: 0; flex: 0 1 auto; }
  .topbar-right { gap: 6px; margin-left: auto; }
  .mobile-menu { display: grid; }
  .topbar-title { font-size: 14px; }
  .crumb { display: none; }
  .page { padding: 24px 17px 36px; }
.platform-footer { padding: 0 17px 16px; }
  .page-head { min-width: 0; flex-direction: column; margin-bottom: 23px; }
  .page-head > div:first-child { min-width: 0; width: 100%; }
  .actions { width: 100%; min-width: 0; }
  .actions .button { flex: 1 1 0; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .page-head .actions { display: grid; grid-template-columns: minmax(0, 1fr); }
  .stat-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 9px; }
  .stat-card { padding: 14px; min-height: 116px; }
  .stat-value { font-size: 23px; }
  .toolbar { flex-direction: column; }
  .search { min-width: 0; width: 100%; }
  .toolbar-left, .toolbar-right { width: 100%; }
  .toolbar-left .select, .toolbar-right .button { flex: 1; }
  .bot-overview { grid-template-columns: repeat(2, minmax(110px, 1fr)); }
  .mini-stat { min-width: 110px; padding: 12px; }
  .chat-layout { grid-template-columns: minmax(0, 1fr); }
  .conversation-list { display: none; }
  .plugin-grid { grid-template-columns: minmax(0, 1fr); }
  .login-screen { grid-template-columns: 1fr; }
  .login-visual { min-height: 340px; padding: 28px 24px; }
  .login-hero h1 { font-size: 45px; }
  .login-panel { padding: 35px 24px; }
  .security-log-item { grid-template-columns: 54px minmax(0, 1fr); }
  .security-log-item time { grid-column: 2; text-align: left; }
  .security-account-item { grid-template-columns: 34px minmax(0, 1fr); }
  .security-account-item .button, .security-account-item .pill { grid-column: 2; justify-self: start; }
}
@media (max-width: 520px) {
  .modal-backdrop { padding: 12px; }
  .button-preset-modal { max-height: calc(100vh - 24px); padding: 16px; }
  .button-preset-grid { grid-template-columns: minmax(0, 1fr); }
  .preset-summary { align-items: flex-start; flex-direction: column; gap: 7px; }
  .button-preset-form .form-row, .preset-button-editor .form-row { grid-template-columns: minmax(0, 1fr); }
  .preset-editor-tabs { align-items: flex-start; flex-direction: column; gap: 8px; }
  .preset-editor-tabs .filter-tabs { width: 100%; }
  .preset-editor-tabs .filter-tab { flex: 1; justify-content: center; }
  .preset-editor-row { padding: 10px; }
  .preset-json-editor { min-height: 330px; }
  #friend-welcome-preset { flex: 1; min-width: 0; }
  h1 { font-size: 30px; }
  .topbar-right .icon-button[data-action="refresh"] { display: none; }
  .topbar-right .icon-button { width: 33px; height: 33px; }
  .avatar-button { width: 34px; height: 34px; flex: 0 0 auto; }
  .stat-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .stat-card::after { display: none; }
  .stat-top { display: block; }
  .stat-icon { margin-top: 8px; }
  .panel { padding: 15px; }
  .panel-head { align-items: flex-start; flex-direction: column; }
  .chart-wrap { height: 225px; }
  .bar-item { grid-template-columns: 82px 1fr 38px; gap: 7px; }
  .form-row { grid-template-columns: 1fr; }
  .event { grid-template-columns: 29px 1fr; }
  .event-time { grid-column: 2; }
  .login-visual { min-height: 270px; }
  .login-visual-foot { display: none; }
  .captcha-row { grid-template-columns: minmax(0, 1fr) 104px; }
  .recovery-code-grid { grid-template-columns: minmax(0, 1fr); }
  .security-setup { padding: 12px; }
  .bot-scan-qr { width: 196px; height: 196px; }
  .scan-bot-toolbar { align-items: flex-start; flex-direction: column; }
  .scan-bot-toolbar-actions { justify-content: flex-start; }
  .scan-bot-item { grid-template-columns: 38px minmax(0, 1fr); }
  .scan-bot-avatar { width: 38px; height: 38px; }
  .scan-bot-actions { grid-column: 2; justify-self: start; flex-wrap: wrap; }
  .bot-scan-panel .modal-foot { flex-wrap: wrap; }
  .bot-scan-panel .modal-foot .button {
    flex: 1 1 calc(50% - 5px);
    min-width: 0;
    height: 36px;
    padding: 0 8px;
    white-space: nowrap;
  }
}

/* ---------- 前置首页（未登录访客） ---------- */
.landing { background: var(--ink); color: #eef0e6; min-height: 100vh; }
.landing-hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.landing-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.landing-nav {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px clamp(20px, 5vw, 64px);
}
.landing-nav .login-brand { z-index: auto; }
.landing-nav .brand-name { color: #eef0e6; }
.landing-nav-cta {
  background: rgba(238, 240, 230, 0.08);
  border: 1px solid rgba(238, 240, 230, 0.22);
  color: #eef0e6;
}
.landing-nav-cta:hover { background: rgba(238, 240, 230, 0.16); }
.landing-hero-body {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 22px 90px;
}
.landing-hero-body h1 {
  font-size: clamp(44px, 7vw, 84px);
  line-height: 1.04;
  margin: 18px 0 0;
  letter-spacing: 0;
  font-weight: 800;
}
.landing .eyebrow { margin-bottom: 0; letter-spacing: 0.16em; }
.eyebrow.light { color: rgba(238, 240, 230, 0.62); }
.landing-tagline {
  margin: 22px 0 0;
  max-width: 560px;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(238, 240, 230, 0.72);
}
.landing-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}
.landing-cta {
  height: 52px;
  padding: 0 28px;
  font-size: 15px;
  border-radius: 8px;
}
.landing .button.primary {
  background: var(--acid);
  color: var(--ink);
  border-color: var(--acid);
  font-weight: 700;
}
.landing .button.primary:hover { background: #e4fb6d; border-color: #e4fb6d; }
.landing-cta-ghost {
  height: 52px;
  padding: 0 28px;
  font-size: 15px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid rgba(238, 240, 230, 0.28);
  color: #eef0e6;
}
.landing-cta-ghost:hover { background: rgba(238, 240, 230, 0.1); }
.landing-proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  margin-top: 46px;
  font-family: "DM Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(238, 240, 230, 0.58);
}
.landing-proof span { display: inline-flex; align-items: center; gap: 7px; }
.landing-proof .icon { width: 14px; height: 14px; color: var(--acid); }
.landing-access { padding: clamp(64px, 9vw, 110px) clamp(20px, 5vw, 64px); background: #eef4f5; color: var(--ink); }
.landing-mobile-auth { padding: clamp(64px, 9vw, 110px) clamp(20px, 5vw, 64px); background: #f7f9f2; color: var(--ink); scroll-margin-top: 20px; }
.landing-mobile-auth-options { max-width: 820px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.landing-mobile-auth-option { padding: 28px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper-raised); }
.landing-mobile-auth-option h3 { margin: 0; font-size: 17px; letter-spacing: 0; }
.landing-mobile-auth-option p { min-height: 46px; margin: 12px 0 22px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.landing-mobile-auth-option .button { width: 100%; }
.landing-access-layout { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 7vw, 90px); align-items: center; }
.landing-access-steps { display: grid; gap: 30px; }
.landing-access-step { display: grid; grid-template-columns: 24px 44px minmax(0, 1fr); align-items: start; gap: 14px; }
.landing-access-number { font: 11px "DM Mono", monospace; color: #7c8c90; padding-top: 14px; }
.landing-access-step-icon { width: 44px; height: 44px; display: grid; place-items: center; background: #fff; border: 1px solid #d3dfe1; border-radius: 8px; color: #326777; }
.landing-access-step-icon .icon { width: 20px; height: 20px; }
.landing-access-step h3 { margin: 1px 0 7px; font-size: 16px; letter-spacing: 0; }
.landing-access-step p { margin: 0; color: #68797e; font-size: 13px; line-height: 1.75; }
.landing-connect-window { overflow: hidden; background: #fff; border: 1px solid #cbd9dc; border-radius: 8px; box-shadow: 0 22px 50px rgba(36, 65, 73, .12); }
.landing-window-bar { height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; background: #f8fafb; border-bottom: 1px solid #e4ecee; color: #75878d; }
.landing-window-bar > span { display: flex; gap: 5px; }
.landing-window-bar i { width: 7px; height: 7px; border-radius: 50%; background: #b9cace; }
.landing-window-bar i:first-child { background: #ff8e7d; }
.landing-window-bar i:nth-child(2) { background: #e7bd54; }
.landing-window-bar i:last-child { background: #71c29c; }
.landing-window-bar small { font-size: 11px; }
.landing-window-bar > .icon { width: 16px; }
.landing-connect-content { padding: 24px; }
.landing-connect-title { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 17px; }
.landing-connect-title strong { display: block; font-size: 15px; }
.landing-connect-title span:not(.landing-mini-badge) { display: block; margin-top: 5px; font-size: 11px; color: #7b8b90; }
.landing-mini-badge { padding: 4px 8px; background: #e4f5e9; color: #267744; font-size: 11px; border-radius: 4px; }
.landing-connect-bot { display: flex; align-items: center; gap: 11px; padding: 13px 0; border-bottom: 1px solid #edf1f2; }
.landing-demo-check { width: 18px; height: 18px; display: grid; place-items: center; flex: 0 0 auto; background: #6599a8; color: #fff; border-radius: 4px; }
.landing-demo-check .icon { width: 12px; height: 12px; }
.landing-demo-avatar { width: 35px; height: 35px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 7px; color: var(--ink); }
.landing-demo-avatar.acid { background: var(--acid); }
.landing-demo-avatar.sky { background: var(--sky); }
.landing-demo-avatar.violet { background: var(--violet); }
.landing-demo-avatar .icon { width: 18px; height: 18px; }
.landing-connect-bot strong { display: block; font-size: 12px; }
.landing-connect-bot small { display: block; font-size: 10px; color: #849398; margin-top: 4px; }
.landing-demo-status { margin-left: auto; font-size: 10px; color: #819398; }
.landing-connect-action { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 20px; font-size: 11px; color: #7b8b90; }
.landing-demo-button { display: inline-flex; align-items: center; gap: 7px; padding: 10px 13px; border-radius: 5px; background: var(--acid); color: var(--ink); font-weight: 700; }
.landing-demo-button .icon { width: 14px; height: 14px; }
.landing-license { background: #22282a; padding: clamp(64px, 9vw, 110px) clamp(20px, 5vw, 64px); }
.landing-license .landing-section-head p { color: #aebfc3; }
.landing-license-plans { max-width: 960px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.landing-license-plan { position: relative; padding: 28px 26px; border: 1px solid #475356; border-radius: 8px; background: #2c3538; }
.landing-license-plan:nth-child(2) { border-color: #a6c658; background: #303a32; }
.landing-plan-icon { color: var(--acid); }
.landing-plan-icon .icon { width: 23px; height: 23px; }
.landing-license-plan h3 { margin: 18px 0 10px; font-size: 14px; color: #c1d0d4; letter-spacing: 0; }
.landing-license-plan strong { display: block; color: #f1f5ee; font-size: 28px; line-height: 1.25; letter-spacing: 0; }
.landing-license-plan p { margin: 12px 0 0; font-size: 12px; color: #aebfc3; }
.landing-plan-badge { position: absolute; top: 20px; right: 20px; padding: 3px 7px; border-radius: 4px; background: var(--acid); color: var(--ink); font-size: 10px; }
.landing-license-notes { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px 32px; margin-top: 30px; color: #c1d0d4; font-size: 12px; }
.landing-license-notes span { display: inline-flex; align-items: center; gap: 7px; }
.landing-license-notes .icon { width: 14px; height: 14px; color: var(--acid); }
.landing-notifications { padding: clamp(64px, 9vw, 110px) clamp(20px, 5vw, 64px); background: #f7f9f2; color: var(--ink); }
.landing-notify-layout { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 7vw, 90px); align-items: center; }
.landing-notify-copy { display: grid; gap: 26px; }
.landing-notify-feature { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; }
.landing-notify-feature h3 { margin: 1px 0 7px; font-size: 16px; letter-spacing: 0; }
.landing-notify-feature p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.landing-notify-icon { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; }
.landing-notify-icon .icon { width: 20px; height: 20px; }
.landing-notify-icon.acid { background: var(--acid); }
.landing-notify-icon.sky { background: var(--sky); }
.landing-notify-icon.coral { background: #ffb2a7; }
.landing-notify-cta { justify-self: start; height: 46px; padding: 0 20px; }
.landing-notify-preview { min-width: 0; padding: 22px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--paper-raised); box-shadow: 0 20px 45px rgba(23, 24, 21, .08); }
.landing-notify-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 700; }
.landing-notify-preview-head > span:first-child { display: flex; align-items: center; gap: 8px; }
.landing-notify-preview-head i { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.landing-notify-live { color: var(--muted); font-size: 10px; font-weight: 500; }
.landing-notify-tabs { display: flex; gap: 18px; margin: 22px 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.landing-notify-tabs span { display: flex; align-items: center; gap: 6px; }
.landing-notify-tabs .active { color: var(--ink); font-weight: 700; }
.landing-notify-tabs .icon { width: 14px; height: 14px; }
.landing-notify-message { display: grid; grid-template-columns: 35px minmax(0, 1fr) 20px; gap: 11px; align-items: start; padding: 15px 0; border-bottom: 1px solid var(--line); }
.landing-notify-message-icon { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 7px; background: var(--acid); }
.landing-notify-message-icon.sky { background: var(--sky); }
.landing-notify-message-icon .icon { width: 17px; height: 17px; }
.landing-notify-message strong { display: block; font-size: 12px; }
.landing-notify-message p { margin: 5px 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.landing-notify-message small { color: var(--muted); font-size: 9px; }
.landing-notify-check { width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; background: #e4f5e9; color: #267744; }
.landing-notify-check .icon { width: 12px; height: 12px; }
.landing-notify-channels { display: flex; flex-wrap: wrap; gap: 12px 18px; padding-top: 18px; color: var(--muted); font-size: 10px; }
.landing-notify-channels span { display: flex; align-items: center; gap: 5px; }
.landing-notify-channels .icon { width: 14px; height: 14px; }
.landing-scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: "DM Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(238, 240, 230, 0.45);
}
.landing-scroll-hint i {
  width: 1px;
  height: 34px;
  background: linear-gradient(to bottom, rgba(238, 240, 230, 0), var(--acid));
  animation: landing-scroll-pulse 1.8s ease-in-out infinite;
}
@keyframes landing-scroll-pulse {
  0%, 100% { opacity: 0.35; transform: scaleY(0.75); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}
.landing-features {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(60px, 9vw, 110px) clamp(20px, 5vw, 64px);
}
.landing-section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.landing-section-head h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 14px 0 0; line-height: 1.2; letter-spacing: 0; }
.landing-section-head p { margin: 14px 0 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.landing-feature-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.landing-feature {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px 24px;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.landing-feature:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(23, 24, 21, 0.08);
}
.landing-feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--ink);
  margin-bottom: 18px;
}
.landing-feature-icon .icon { width: 19px; height: 19px; }
.landing-feature h3 { margin: 0; font-size: 16px; letter-spacing: 0; }
.landing-feature p { margin: 10px 0 0; font-size: 13px; line-height: 1.75; color: var(--muted); }
.landing-steps {
  background: var(--ink-soft);
  padding: clamp(60px, 9vw, 100px) clamp(20px, 5vw, 64px);
}
.landing-step-grid {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.landing-step {
  border: 1px solid rgba(238, 240, 230, 0.14);
  border-radius: 8px;
  padding: 26px 24px;
  background: rgba(238, 240, 230, 0.03);
}
.landing-step-num {
  font-family: "DM Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--acid);
  margin-bottom: 16px;
}
.landing-step h3 { margin: 0; font-size: 16px; color: #eef0e6; letter-spacing: 0; }
.landing-step p { margin: 10px 0 0; font-size: 13px; line-height: 1.75; color: rgba(238, 240, 230, 0.6); }
.landing-final-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 42px; }
.landing-footer {
  background: var(--ink);
  border-top: 1px solid rgba(238, 240, 230, 0.1);
  padding: 30px clamp(20px, 5vw, 64px) 40px;
}
.landing-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}
.landing-footer .brand-name { color: #eef0e6; }
.landing-footer-links { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.landing-footer-links a {
  color: rgba(238, 240, 230, 0.6);
  font-size: 12px;
  text-decoration: none;
  transition: color 120ms ease;
}
.landing-footer-links a:hover { color: var(--acid); }
@media (max-width: 1120px) {
  .landing-access-layout { gap: 36px; }
  .landing-notify-layout { gap: 36px; }
  .landing-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .landing-step-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
}
@media (max-width: 820px) {
  .landing-hero { min-height: 92vh; }
  .landing-hero-body { padding: 24px 18px 96px; }
  .landing-cta-row { flex-direction: column; width: min(340px, 100%); }
  .landing-cta, .landing-cta-ghost { width: 100%; }
  .landing-feature-grid { grid-template-columns: minmax(0, 1fr); }
  .landing-scroll-hint { display: none; }
  .landing-footer-inner { flex-direction: column; align-items: flex-start; }
  .landing-access-layout { grid-template-columns: minmax(0, 1fr); }
  .landing-notify-layout { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .landing-notify-cta { width: 100%; }
  .landing-notify-preview { padding: 18px; }
  .landing-access-steps { gap: 24px; }
  .landing-license-plans { grid-template-columns: minmax(0, 1fr); max-width: 420px; }
  .landing-license-plan { padding: 24px; }
  .landing-license-plan h3 { margin-top: 12px; }
  .landing-connect-content { padding: 18px; }
  .landing-mobile-auth-options { grid-template-columns: minmax(0, 1fr); max-width: 420px; }
  .landing-mobile-auth-option p { min-height: 0; }
}
@media (max-width: 420px) {
  .landing-access-step { grid-template-columns: 20px 38px minmax(0, 1fr); gap: 10px; }
  .landing-access-step-icon { width: 38px; height: 38px; }
  .landing-connect-bot { gap: 8px; }
  .landing-connect-bot small { max-width: 140px; }
  .landing-demo-status { display: none; }
  .landing-connect-action { font-size: 10px; }
}

/* 我的通知：与管理员告警分开的个人工作区。 */
.personal-notification-intro { display: flex; align-items: center; gap: 16px; }
.personal-notification-intro-icon { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border-radius: 7px; background: var(--acid); }
.personal-notification-intro h2 { margin: 0; font-size: 16px; }
.personal-notification-intro p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.personal-notification-intro > .pill { margin-left: auto; flex-shrink: 0; }
.personal-notification-grid { align-items: start; }
.personal-choice-group { display: grid; gap: 8px; }
.field-label { display: block; margin-bottom: 7px; font-size: 11px; font-weight: 600; }
.personal-event-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.personal-event-choices label { display: flex; align-items: center; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; font-size: 11px; }
.personal-event-choices label > span { display: flex; align-items: center; gap: 6px; }
.personal-event-choices .icon { width: 15px; height: 15px; }
.personal-test-list { display: grid; margin-top: 12px; }
.personal-test-list > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.personal-test-list > div > span { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.personal-test-list .icon { width: 16px; height: 16px; }
.personal-channel-empty { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 12px; border: 1px dashed var(--line-strong); border-radius: 6px; font-size: 11px; }
.personal-channel-empty span { flex: 1; min-width: 150px; }
.personal-channel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-top: 13px; align-items: start; }
.personal-channel-panel h2 { display: flex; align-items: center; gap: 7px; font-size: 14px; }
.personal-channel-panel h2 .icon { width: 17px; height: 17px; }
.personal-channel-panel .form-grid { margin-top: 16px; }
.personal-bound-account { display: grid; gap: 6px; padding: 16px 0; }
.personal-bound-account strong { font-size: 16px; overflow-wrap: anywhere; }
.personal-bound-account span { font-size: 12px; color: var(--muted); }
.personal-bound-account small { font-size: 10px; color: var(--muted); }
.personal-channel-panel .modal-foot { justify-content: flex-start; }
.personal-notification-history { margin-top: 13px; }
.notification-log-title { font-size: 12px; font-weight: 600; }
.notification-log-reason { display: block; max-width: 270px; margin-top: 5px; color: var(--muted); overflow-wrap: anywhere; }
.personal-qq-challenge-step { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; }
.personal-qq-challenge-step > span { width: 24px; height: 24px; flex: 0 0 24px; display: grid; place-items: center; border-radius: 50%; background: var(--acid); font-size: 11px; font-weight: 700; }
.personal-qq-challenge-step p { margin: 2px 0 0; font-size: 12px; line-height: 1.7; }

/* 触屏没有稳定悬停位置，避免自动滚动后按钮反复上移、回落。 */
@media (hover: none) {
  .button:hover, .plugin-card:hover, .landing-feature:hover { transform: none; }
}

@media (max-width: 1120px) {
  .personal-channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .personal-notification-intro { align-items: flex-start; flex-wrap: wrap; }
  .personal-notification-intro > .pill { margin-left: 60px; }
  .personal-channel-grid, .personal-event-choices { grid-template-columns: minmax(0, 1fr); }
  .personal-event-choices label { padding: 10px 12px; }
}
