html,
body {
  height: 100%;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  background: radial-gradient(circle at top, #eaf0ff 0%, #f4f7fb 38%, #f3f5f9 100%);
  color: #1c2434;
  overflow: hidden;
}

.app {
  height: 100vh;
  display: grid;
  grid-template-columns: 300px 1fr;
  backdrop-filter: blur(3px);
}

.sidebar {
  background: linear-gradient(180deg, #0b1736 0%, #0a1330 100%);
  color: #d1d5db;
  padding: 20px;
  border-right: 1px solid #1f2c4f;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.logo-title {
  margin: 0;
  width: 82px;
  height: 82px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.logo-title picture {
  width: 100%;
  height: 100%;
  display: block;
}

.logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(8, 21, 52, 0.3));
}

.brand-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-height: 62px;
  padding: 0 0 0 12px;
  border-left: 1px solid rgba(168, 187, 227, 0.45);
}

.brand-name {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(24px, 1.75vw, 30px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.025em;
  color: #f2f6ff;
  text-shadow: 0 6px 16px rgba(7, 20, 48, 0.28);
}

.subtitle {
  margin: 0;
  font-family: Inter, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  width: auto;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.06em;
  color: #e5eeff;
  text-shadow: 0 3px 10px rgba(9, 23, 56, 0.26);
}

.sidebar-tools {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

#bossSearchInput,
#bossSearchInput {
  width: 100%;
  border: 1px solid rgba(157, 181, 232, 0.38);
  background: rgba(255, 255, 255, 0.08);
  color: #dbe7ff;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
}

#bossSearchInput::placeholder {
  color: #94a9d6;
}

.file-protocol-warning {
  position: sticky;
  top: 0;
  z-index: 9999;
  padding: 12px 16px;
  background: #fff3cd;
  color: #664d03;
  border-bottom: 1px solid #e6d5a8;
  font-size: 14px;
  line-height: 1.5;
}

.file-protocol-warning code {
  background: rgba(0, 0, 0, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
}

.changelog-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(157, 181, 232, 0.38);
  background: rgba(255, 255, 255, 0.08);
  color: #dbe7ff;
  text-decoration: none;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
  cursor: pointer;
}

.sidebar-divider {
  margin: 12px 2px 10px;
  height: 1px;
  background: linear-gradient(90deg, rgba(130, 158, 219, 0), rgba(130, 158, 219, 0.52), rgba(130, 158, 219, 0));
}

.sidebar-ad-banner {
  display: block;
  margin: 10px 2px 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(158, 182, 232, 0.42);
  box-shadow: 0 8px 18px rgba(10, 25, 59, 0.3);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.sidebar-ad-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.sidebar-ad-banner:hover {
  transform: translateY(-1px);
  border-color: rgba(166, 196, 255, 0.9);
  box-shadow: 0 12px 24px rgba(10, 25, 59, 0.38);
}

.boss-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 120px;
  flex: 1;
  overflow: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(149, 169, 214, 0.35) transparent;
}

.boss-list::-webkit-scrollbar {
  width: 8px;
}

.boss-list::-webkit-scrollbar-track {
  background: transparent;
}

.boss-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(150, 172, 219, 0.35), rgba(128, 148, 192, 0.42));
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.boss-list::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(170, 191, 233, 0.46), rgba(136, 160, 208, 0.55));
  background-clip: padding-box;
}

.boss-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e5e7eb;
  border-radius: 12px;
  padding: 10px 10px;
  text-align: left;
  cursor: pointer;
  transition: all 0.18s ease;
  display: grid;
  grid-template-columns: 34px 1fr 24px 28px;
  align-items: center;
  gap: 10px;
}

.boss-item.active {
  border-color: #6ea2ff;
  background: linear-gradient(160deg, rgba(47, 94, 190, 0.45), rgba(21, 38, 80, 0.72));
  box-shadow: 0 8px 20px rgba(16, 34, 77, 0.35);
}

.boss-item:hover {
  border-color: rgba(140, 175, 245, 0.8);
  transform: translateY(-1px);
}

.boss-item.dragging {
  opacity: 0.55;
  transform: scale(0.99);
}

.boss-item.drop-target {
  border-color: #8bb0ff;
  box-shadow: inset 0 0 0 1px rgba(139, 176, 255, 0.35);
}

.boss-list-empty {
  border: 1px dashed rgba(157, 181, 232, 0.4);
  color: #9ab0df;
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  font-size: 13px;
}

.boss-avatar-wrap {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.boss-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  display: block;
}

.boss-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.boss-text strong {
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.boss-status-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  padding: 0 6px;
  height: 16px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  color: #fef3c7;
  background: rgba(251, 146, 60, 0.32);
  border: 1px solid rgba(252, 211, 77, 0.6);
  vertical-align: middle;
}

.boss-text small {
  font-size: 12px;
  color: #b8c4e2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.boss-company-logo-wrap {
  width: 28px;
  height: 18px;
  border-radius: 7px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  background: rgba(255, 255, 255, 0.96);
}

.boss-pin-wrap {
  width: 24px;
  display: flex;
  justify-content: center;
}

.boss-pin-btn {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(158, 179, 226, 0.5);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #c8d7fb;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.boss-pin-btn:hover {
  border-color: rgba(192, 211, 255, 0.9);
  color: #fff1b3;
}

.boss-pin-btn.pinned {
  color: #ffd766;
  border-color: rgba(255, 220, 122, 0.85);
  background: rgba(255, 215, 102, 0.12);
}

.boss-company-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.main-header {
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.88);
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(10px);
}

.header-actions {
  display: flex;
  gap: 8px;
}

.main-header h2 {
  margin: 0;
}

.header-boss-identity {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.header-boss-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #d8e2f8;
  object-fit: cover;
  object-position: 50% 22%;
}

.header-boss-title {
  line-height: 1.2;
}

.header-boss-logo-wrap {
  width: 38px;
  height: 22px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #d9e3f5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
}

.header-boss-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.desc {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 14px;
}

.ghost-btn {
  border: 1px solid #d4def0;
  background: linear-gradient(180deg, #ffffff, #f7f9ff);
  color: #253453;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.ghost-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(43, 66, 112, 0.14);
}

.chat-window {
  flex: 1;
  overflow: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
}

.msg {
  max-width: min(860px, 90%);
  padding: 14px 16px;
  border-radius: 14px;
  line-height: 1.6;
  box-shadow: 0 8px 20px rgba(25, 38, 67, 0.07);
}

.msg.user {
  align-self: flex-end;
  background: linear-gradient(140deg, #3b82f6, #2563eb);
  color: #ffffff;
}

.msg.assistant {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #e6ebf5;
}

.msg.assistant.degraded {
  border-color: #f1d5a5;
  background: #fffdf8;
}

.msg-meta {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7183a7;
}

.msg-meta.with-avatar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.04em;
}

.meta-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid #d8e2f8;
  object-fit: cover;
  object-position: 50% 22%;
}

.md-content {
  font-family: "Noto Serif SC", "Songti SC", Georgia, serif;
  color: #1d2434;
  line-height: 1.84;
  font-size: 16px;
}

.md-content p {
  margin: 0 0 10px;
}

.md-content h1,
.md-content h2,
.md-content h3,
.md-content h4 {
  font-family: Inter, "PingFang SC", sans-serif;
  margin: 18px 0 10px;
  line-height: 1.4;
  color: #17243f;
}

.md-content ul,
.md-content ol {
  margin: 8px 0 12px;
  padding-left: 24px;
}

.md-content li {
  margin: 6px 0;
}

.md-content blockquote {
  margin: 12px 0;
  padding: 10px 12px;
  border-left: 3px solid #5f8ef8;
  background: #f3f7ff;
  color: #243b63;
  border-radius: 6px;
}

.md-content code {
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  background: #eef3ff;
  color: #24428d;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 14px;
}

.md-content pre {
  background: #0f172a;
  color: #e5ecff;
  border-radius: 10px;
  padding: 12px;
  overflow: auto;
  margin: 10px 0 14px;
}

.md-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.topic-link {
  color: #9a6700;
  background: rgba(255, 223, 93, 0.26);
  border-radius: 4px;
  padding: 0 2px;
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.topic-link:hover {
  color: #7a4f00;
  background: rgba(255, 214, 51, 0.38);
  text-decoration-style: solid;
}

.quick-questions {
  border-top: 1px solid #e6ebf4;
  background: rgba(255, 255, 255, 0.52);
  padding: 16px 20px 10px;
}

.quick-questions::before {
  content: "";
  display: block;
  height: 1px;
  margin-bottom: 12px;
  background: linear-gradient(90deg, rgba(113, 141, 206, 0), rgba(113, 141, 206, 0.35), rgba(113, 141, 206, 0));
}

.quick-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #7383a6;
  margin: 0 0 10px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #dbe5f7;
  background: linear-gradient(180deg, #ffffff, #f5f9ff);
  box-shadow: 0 4px 10px rgba(47, 74, 130, 0.08);
}

.quick-title::before {
  content: "✦";
  font-size: 11px;
  color: #5e84d8;
}

.quick-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.quick-header .quick-title {
  margin: 0;
}

.quick-refresh {
  border: 1px solid #d2def6;
  background: linear-gradient(180deg, #ffffff, #f4f8ff);
  color: #2f4572;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.quick-refresh:hover {
  border-color: #92b1ef;
  color: #223a67;
  box-shadow: 0 4px 10px rgba(56, 88, 149, 0.14);
}

.quick-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 2px 0 4px;
}

.quick-item {
  width: 100%;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #dbe6fb;
  background: linear-gradient(180deg, #ffffff, #f3f8ff);
  color: #1f3154;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 4px 12px rgba(49, 81, 145, 0.12);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quick-item:hover {
  border-color: #8bb0f9;
  background: linear-gradient(180deg, #fbfdff, #ecf3ff);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(43, 78, 149, 0.18);
}

.quick-item:active {
  transform: translateY(0);
}

.hidden {
  display: none !important;
}

.admin-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 16, 37, 0.35);
  backdrop-filter: blur(3px);
  z-index: 30;
  display: flex;
  justify-content: flex-end;
}

.admin-panel {
  width: min(720px, 92vw);
  height: 100%;
  background: linear-gradient(180deg, #f9fbff, #f2f6ff);
  border-left: 1px solid #dbe5f9;
  box-shadow: -20px 0 40px rgba(14, 29, 63, 0.24);
  padding: 16px;
  overflow: auto;
}

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

.admin-head h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.admin-subtext {
  margin: 0;
  color: #64779d;
  font-size: 13px;
}

.admin-toolbar {
  margin-bottom: 12px;
}

.admin-topic-box {
  background: #fff;
  border: 1px solid #dbe5f8;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(38, 62, 112, 0.08);
}

.admin-topic-box h4 {
  margin: 0 0 6px;
  color: #1c315b;
}

.admin-topic-tip {
  margin: 0 0 10px;
  font-size: 12px;
  color: #6d81a8;
}

.admin-topic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.admin-topic-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: #5c729d;
}

.admin-topic-col textarea {
  width: 100%;
  resize: vertical;
  min-height: 88px;
  border: 1px solid #d2def5;
  border-radius: 10px;
  padding: 8px;
  font-size: 12px;
  line-height: 1.5;
}

.admin-topic-actions {
  margin-top: 10px;
}

.admin-topic-preview {
  margin-top: 10px;
  font-size: 12px;
  color: #6078a6;
  line-height: 1.6;
}

.admin-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-item {
  background: #fff;
  border: 1px solid #dbe5f8;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 4px 12px rgba(38, 62, 112, 0.09);
}

.admin-question {
  font-size: 14px;
  color: #152749;
  line-height: 1.5;
  margin-bottom: 8px;
}

.admin-meta {
  font-size: 12px;
  color: #7083a8;
  margin-bottom: 10px;
}

.admin-actions {
  display: flex;
  gap: 8px;
}

.admin-btn {
  border: 1px solid #cddaf4;
  background: linear-gradient(180deg, #ffffff, #f2f7ff);
  color: #223965;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
}

.admin-btn.danger {
  border-color: #f0cfd2;
  color: #933844;
  background: linear-gradient(180deg, #fff, #fff4f4);
}

.admin-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.admin-empty {
  border: 1px dashed #c9d8f6;
  border-radius: 12px;
  padding: 16px;
  color: #6077a4;
  background: #f8fbff;
}

.chat-form {
  border-top: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.86);
  padding: 14px 20px 18px;
  display: grid;
  grid-template-columns: 1fr 100px;
  gap: 12px;
  backdrop-filter: blur(10px);
}

.changelog-view {
  flex: 1;
  overflow: auto;
  padding: 20px 24px 26px;
  background: linear-gradient(180deg, #f8fbff, #f2f7ff);
}

.changelog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.changelog-head h3 {
  margin: 0;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.timeline-item {
  background: transparent;
}

.timeline-head {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 2px solid #f0b236;
  padding-bottom: 8px;
}

.timeline-version {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(180deg, #f2c55f, #eea91f);
  color: #fff;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
}

.timeline-date {
  font-weight: 800;
  font-size: 26px;
  color: #1c2a47;
}

.timeline-card {
  border: 1px solid #dbe6f8;
  border-radius: 12px;
  background: white;
  padding: 10px 12px;
  box-shadow: 0 4px 12px rgba(44, 75, 133, 0.08);
  color: #3a4e77;
  line-height: 1.7;
}

.timeline-card.modern {
  border: none;
  box-shadow: none;
  background: transparent;
  padding: 2px 0 0;
}

.timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(161, 176, 205, 0.35);
  color: #1f2a3d;
}

.timeline-tag {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #16a26e;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  line-height: 1.5;
}

.timeline-empty {
  border: 1px dashed #c8d9f7;
  border-radius: 12px;
  padding: 14px;
  color: #5f78a5;
  background: rgba(255, 255, 255, 0.8);
}

#questionInput {
  width: 100%;
  resize: vertical;
  border: 1px solid #d3dff6;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.95);
  transition: all 0.15s ease;
}

#questionInput:focus {
  outline: none;
  border-color: #6b93ea;
  box-shadow: 0 0 0 3px rgba(93, 137, 238, 0.16);
}

#sendBtn {
  border: none;
  background: linear-gradient(145deg, #2f72f4, #255de0);
  color: white;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 10px 20px rgba(48, 99, 216, 0.28);
  transition: all 0.18s ease;
}

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

#sendBtn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

@media (max-width: 900px) {
  .app {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    height: 100dvh;
  }

  .sidebar {
    border-right: none;
    border-bottom: 1px solid #1f2937;
    padding: 12px;
    gap: 8px;
    position: relative;
  }

  .logo-image {
    width: 100%;
  }

  .brand-name {
    font-size: 20px;
    letter-spacing: 0.02em;
  }

  .subtitle {
    width: auto;
    font-size: 12px;
    letter-spacing: 0.04em;
  }

  .brand-copy {
    padding-left: 9px;
    min-height: 44px;
    gap: 2px;
  }

  .brand-row {
    margin-bottom: 8px;
    padding-right: 176px;
    gap: 10px;
  }

  .logo-title {
    width: 58px;
    height: 58px;
    padding: 2px;
  }

  .sidebar-tools {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 166px;
    height: 46px;
    display: flex;
    align-items: center;
    margin-bottom: 0;
    gap: 0;
  }

  #bossSearchInput {
    height: 44px;
    padding: 9px 14px;
    font-size: 15px;
    border-radius: 14px;
  }

  .boss-list {
    max-height: 56px;
    min-height: 56px;
    padding-right: 30px;
    gap: 6px;
    overflow: hidden;
    position: relative;
    justify-content: center;
  }

  .boss-item {
    padding: 6px 7px;
    grid-template-columns: 30px 1fr 22px 24px;
    gap: 7px;
  }

  .boss-switch-rail {
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .boss-switch-btn {
    width: 22px;
    height: 22px;
    border: 1px solid rgba(156, 181, 235, 0.6);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.14);
    color: #dce8ff;
    font-size: 10px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
  }

  .boss-switch-btn:active {
    transform: scale(0.96);
  }

  .boss-avatar-wrap {
    width: 30px;
    height: 30px;
  }

  .boss-text strong {
    font-size: 12px;
  }

  .boss-text small {
    font-size: 10px;
  }

  .sidebar-divider {
    margin: 8px 2px 6px;
  }

  .sidebar-ad-banner {
    margin: 8px 2px 0;
    border-radius: 10px;
  }

  .changelog-link {
    display: none;
  }

  .sidebar-divider {
    display: none;
  }

  #refreshCacheBtn {
    display: none;
  }

  .main-header {
    padding: 8px 10px;
  }

  .desc {
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .quick-questions {
    padding: 6px 10px 4px;
  }

  .quick-header {
    margin-bottom: 6px;
  }

  .quick-title {
    font-size: 11px;
    padding: 3px 8px;
  }

  .quick-refresh {
    padding: 3px 8px;
    font-size: 11px;
  }

  .quick-list {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .quick-item {
    max-width: 100%;
    min-height: 34px;
    padding: 6px 10px;
    font-size: 12px;
  }

  .chat-form {
    padding: 8px 10px 10px;
    grid-template-columns: 1fr 84px;
    gap: 8px;
  }

  #questionInput {
    padding: 8px 10px;
    font-size: 13px;
    min-height: 42px;
    max-height: 76px;
  }

  .header-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .admin-panel {
    width: 100vw;
  }

  .admin-topic-grid {
    grid-template-columns: 1fr;
  }
}
