body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #1f2933 0, #020617 55%);
  color: #e5e7eb;
  overflow-x: hidden; /* 去掉底部横向滚动条 */
}

/* AiEditor：深色模式适配当前深色玻璃风 */
body[data-theme="dark"] .aie-container,
body:not([data-theme]) .aie-container {
  border-color: rgba(148, 163, 184, 0.22) !important;
  background: rgba(15, 23, 42, 0.92) !important; /* 与 card 更一致 */
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.45),
    0 0 0 1px rgba(148, 163, 184, 0.18);
}

body[data-theme="dark"] .aie-container aie-header,
body:not([data-theme]) .aie-container aie-header {
  background: rgba(2, 6, 23, 0.35) !important;
}

body[data-theme="dark"] .aie-container .aie-content,
body:not([data-theme]) .aie-container .aie-content {
  background: transparent !important;
}

/* 工具栏文字太大：整体降一档 */
body[data-theme="dark"] .aie-container aie-header .aie-menu-item #text,
body[data-theme="light"] .aie-container aie-header .aie-menu-item #text {
  font-size: 12px !important;
}

body[data-theme="dark"] .aie-container aie-header .aie-menu-item svg,
body[data-theme="light"] .aie-container aie-header .aie-menu-item svg {
  width: 14px !important;
  height: 14px !important;
}

/* 工具栏更紧凑：降低高度与内边距 */
body[data-theme="dark"] .aie-container aie-header>div,
body[data-theme="light"] .aie-container aie-header>div {
  padding: 4px 6px !important;
}

body[data-theme="dark"] .aie-container aie-header .aie-menu-item,
body[data-theme="light"] .aie-container aie-header .aie-menu-item {
  padding: 2px 0 !important;
}

body[data-theme="dark"] .aie-container aie-header .aie-menu-item>div,
body[data-theme="light"] .aie-container aie-header .aie-menu-item>div {
  height: 16px !important;
  padding: 3px 4px !important;
  border-radius: 3px !important;
}

body[data-theme="dark"] .aie-container aie-header .aie-menu-divider,
body[data-theme="light"] .aie-container aie-header .aie-menu-divider {
  height: 14px !important;
  margin: 0 4px !important;
}

/* 去掉底部 Powered by.../Characters... */
.aie-container aie-footer {
  display: none !important;
}

/* 浅色科技感主题：通过 data-theme 切换 */
body[data-theme="light"] {
  /* 科技感：多层光晕 + 轻网格 */
  background-color: #eef2ff;
  background-image:
    radial-gradient(900px 520px at 18% 6%, rgba(14, 165, 233, 0.22), rgba(14, 165, 233, 0) 60%),
    radial-gradient(760px 480px at 82% 10%, rgba(99, 102, 241, 0.20), rgba(99, 102, 241, 0) 62%),
    radial-gradient(900px 640px at 50% 92%, rgba(34, 197, 94, 0.12), rgba(34, 197, 94, 0) 62%),
    linear-gradient(180deg, rgba(248, 250, 252, 0.9), rgba(238, 242, 255, 1)),
    repeating-linear-gradient(
      0deg,
      rgba(15, 23, 42, 0.045) 0px,
      rgba(15, 23, 42, 0.045) 1px,
      transparent 1px,
      transparent 32px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(15, 23, 42, 0.035) 0px,
      rgba(15, 23, 42, 0.035) 1px,
      transparent 1px,
      transparent 32px
    );
  background-attachment: fixed;
  color: #0b1220;
  /* 统一浅色组件基准（更有整体感） */
  --lt-card-bg: rgba(248, 250, 252, 0.84);
  --lt-card-bg-2: rgba(241, 245, 249, 0.92);
  --lt-border: rgba(148, 163, 184, 0.45);
  --lt-border-strong: rgba(148, 163, 184, 0.62);
  --lt-ink: rgba(15, 23, 42, 0.92);
  --lt-muted: rgba(71, 85, 105, 0.92);
  --lt-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
  --lt-shadow-soft: 0 10px 26px rgba(15, 23, 42, 0.08);
  --lt-ring: 0 0 0 4px rgba(99, 102, 241, 0.16);
}

body[data-theme="light"] .topbar {
  background: rgba(248, 250, 252, 0.78);
  border-bottom: 1px solid var(--lt-border);
  backdrop-filter: blur(16px);
}

body[data-theme="light"] .brand-sub {
  color: #64748b;
}

body[data-theme="light"] .user-box {
  background: rgba(248, 250, 252, 0.82);
  border-color: var(--lt-border);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

body[data-theme="light"] .user-avatar {
  background: linear-gradient(135deg, #0ea5e9, #22c55e);
  color: #f8fafc;
}

body[data-theme="light"] .user-name {
  color: #0f172a;
}

body[data-theme="light"] .btn-logout {
  border-color: var(--lt-border);
  color: var(--lt-muted);
}

body[data-theme="light"] .btn-logout:hover {
  background: rgba(59, 130, 246, 0.12);
  color: #0f172a;
}

body[data-theme="light"] .nav-link {
  color: var(--lt-ink);
  border-color: var(--lt-border);
  background: rgba(248, 250, 252, 0.78);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

body[data-theme="light"] .card {
  /* 浅色卡片不要纯白：带一点浅蓝灰，更融入背景 */
  background: var(--lt-card-bg);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.68), var(--lt-card-bg-2));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(148, 163, 184, 0.34);
  box-shadow: var(--lt-shadow);
}

body[data-theme="light"] .muted,
body[data-theme="light"] .preview-text,
body[data-theme="light"] .legend-item,
body[data-theme="light"] .manager-search-label {
  color: rgba(71, 85, 105, 0.92);
}

body[data-theme="light"] .input,
body[data-theme="light"] .textarea {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(241, 245, 249, 0.92));
  border-color: var(--lt-border);
  color: var(--lt-ink);
  box-shadow: var(--lt-shadow-soft);
}

body[data-theme="light"] .input::placeholder,
body[data-theme="light"] .textarea::placeholder {
  color: #94a3b8;
}

body[data-theme="light"] .input:focus,
body[data-theme="light"] .textarea:focus {
  border-color: rgba(99, 102, 241, 0.72);
  box-shadow:
    0 16px 34px rgba(2, 6, 23, 0.12),
    var(--lt-ring);
}

body[data-theme="light"] .btn {
  background: rgba(241, 245, 249, 0.86);
  color: var(--lt-ink);
  border-color: var(--lt-border);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

body[data-theme="light"] .btn-primary {
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  border-color: transparent;
  color: #f9fafb;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.24);
}

body[data-theme="light"] .btn-primary:hover {
  filter: brightness(1.05);
}

body[data-theme="light"] .chip {
  background: rgba(241, 245, 249, 0.82);
  color: var(--lt-ink);
  border-color: var(--lt-border);
}

body[data-theme="light"] .chip-ok {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.6);
  color: #166534;
}

body[data-theme="light"] .chip-warn {
  background: rgba(249, 115, 22, 0.12);
  border-color: rgba(249, 115, 22, 0.6);
  color: #9a3412;
}

body[data-theme="light"] .member-item.selected {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(37, 99, 235, 0.02));
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.3);
}

body[data-theme="light"] .member-item {
  background: rgba(248, 250, 252, 0.9);
  border-color: rgba(148, 163, 184, 0.6);
}

body[data-theme="light"] .member-name {
  color: #0f172a;
}

body[data-theme="light"] .manager-legend .legend-text {
  color: #64748b;
}

body[data-theme="light"] .fab-group .fab {
  background: linear-gradient(135deg, #0ea5e9, #22c55e);
  color: #f8fafc;
}

body[data-theme="light"] .modal {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.6);
}

body[data-theme="light"] .status-bar {
  background: rgba(241, 245, 249, 0.95);
  border-color: rgba(148, 163, 184, 0.6);
}

body[data-theme="light"] .status-pill {
  background: #e5e7eb;
  color: #0f172a;
  border-color: rgba(148, 163, 184, 0.7);
}

body[data-theme="light"] .status-pill.ok {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.6);
  color: #166534;
}

body[data-theme="light"] .status-pill.warn {
  background: rgba(249, 115, 22, 0.12);
  border-color: rgba(249, 115, 22, 0.6);
  color: #9a3412;
}

body[data-theme="light"] .preview-html {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(241, 245, 249, 0.92));
  border-color: rgba(148, 163, 184, 0.38);
  color: var(--lt-ink);
}

body[data-theme="light"] .preview-html h1,
body[data-theme="light"] .preview-html h2,
body[data-theme="light"] .preview-html h3 {
  color: #0b1220;
  font-weight: 800;
  letter-spacing: 0.2px;
}

body[data-theme="light"] .preview-html h2 {
  margin-top: 0.9rem;
  margin-bottom: 0.55rem;
  padding-left: 0.6rem;
  border-left: 3px solid rgba(14, 165, 233, 0.85);
}

body[data-theme="light"] .preview-html h3 {
  margin-top: 0.8rem;
  margin-bottom: 0.45rem;
}

body[data-theme="light"] .preview-html strong {
  color: #0b1220;
}

body[data-theme="light"] .preview-html p,
body[data-theme="light"] .preview-html li {
  color: rgba(15, 23, 42, 0.92);
}

body[data-theme="light"] .preview-html table {
  border-color: rgba(148, 163, 184, 0.7);
}

body[data-theme="light"] .preview-html th {
  background: #e5e7eb;
}

body[data-theme="light"] .read-badge {
  background: #0f172a;
  color: #f9fafb;
}

body[data-theme="light"] .manager-stats-line {
  color: #475569;
}

body[data-theme="light"] .meta {
  background: rgba(255, 255, 255, 0.9);
}

body[data-theme="light"] .page-title {
  color: #334155;
}

body[data-theme="light"] .card-title {
  color: #334155; /* 不用纯黑，更柔和但足够醒目 */
}

/* 预览/表单里的栏目标题（如 一、日程/二、情况汇报…） */
body[data-theme="light"] .label {
  color: rgba(51, 65, 85, 0.92);
  font-weight: 700;
  letter-spacing: 0.2px;
}

body[data-theme="light"] .form .label {
  margin-top: 0.65rem;
}

body[data-theme="light"] .nav-sep {
  color: #94a3b8;
}

body[data-theme="light"] .quill-form .ql-toolbar.ql-snow {
  background: #f8fafc;
  border-color: rgba(148, 163, 184, 0.6);
}

body[data-theme="light"] .quill-form .ql-container.ql-snow {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.6);
}

body[data-theme="light"] .quill-form .ql-editor {
  color: #0b1220;
  background: rgba(255, 255, 255, 0.98); /* 覆盖暗色主题默认深灰编辑区 */
}

body[data-theme="light"] .quill-form .ql-editor.ql-blank::before {
  color: rgba(100, 116, 139, 0.85); /* placeholder 更自然 */
}

body[data-theme="light"] .quill-form .ql-toolbar .ql-stroke {
  stroke: rgba(51, 65, 85, 0.75);
}

body[data-theme="light"] .quill-form .ql-toolbar .ql-fill {
  fill: rgba(51, 65, 85, 0.75);
}

body[data-theme="light"] .quill-form .ql-toolbar button:hover .ql-stroke,
body[data-theme="light"] .quill-form .ql-toolbar .ql-picker-label:hover .ql-stroke {
  stroke: rgba(99, 102, 241, 0.9);
}

*, *::before, *::after {
  box-sizing: border-box;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(2, 6, 23, 0.75);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 0.4rem 0.75rem 0; /* 左边贴齐 container，右侧略留空 */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-title {
  font-size: 1.4rem;
  font-weight: 700;
}

.brand-sub {
  font-size: 0.95rem;
  color: rgba(148, 163, 184, 0.9);
}

.brand-logo {
  display: block;
  height: 44px;
  transform: scale(1.25);
  transform-origin: left center;
}

.brand-mark-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.nav {
  display: flex;
  gap: 0.6rem;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-box {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #0f766e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: #e5e7eb;
}

.user-name {
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.95);
}

.btn-logout {
  margin-left: 0.3rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: transparent;
  color: rgba(148, 163, 184, 0.95);
  font-size: 0.8rem;
  cursor: pointer;
}

.btn-logout:hover {
  background: rgba(30, 64, 175, 0.45);
  color: #e5e7eb;
}

.btn-theme-toggle {
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.6);
  color: #e5e7eb;
  font-size: 0.8rem;
  cursor: pointer;
}

.btn-theme-toggle:hover {
  filter: brightness(1.08);
}

body[data-theme="light"] .btn-theme-toggle {
  background: rgba(248, 250, 252, 0.95);
  border-color: rgba(148, 163, 184, 0.7);
  color: #0f172a;
}

.nav-link {
  text-decoration: none;
  color: rgba(226, 232, 240, 0.95);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.35);
}

.nav-link:hover {
  filter: brightness(1.1);
}

.main {
  width: 100%;
  padding: 1.25rem 1rem 2rem;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); /* 默认：左更宽右稍窄 */
  gap: 2rem; /* 增大间距，避免阴影视觉重叠 */
  align-items: flex-start;
  justify-items: stretch;
  isolation: isolate; /* 避免子元素 z-index/阴影互相影响造成叠盖感 */
}

.split-search {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr);
  gap: 1.5rem;
}

/* 管理者视图：列表更窄、详情更宽 */
.split-manager {
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 2.3fr);
}

/* 日报详情页：编辑区更宽、右侧信息略窄 */
.split-detail {
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1.1fr);
}

@media (max-width: 960px) {
  .split {
    grid-template-columns: minmax(0, 1fr); /* 窄屏上下排列 */
  }
}

.split-col {
  min-width: 0;
  width: 100%;
}

.split .card {
  max-width: none; /* 在左右布局中占满列宽 */
  position: relative;
  z-index: 0;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.page-title {
  font-size: 1.2rem;
  font-weight: 700;
}

.muted {
  color: rgba(148, 163, 184, 0.95);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.preview-text {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: rgba(148, 163, 184, 0.95);
  font-size: 0.9rem;
  line-height: 1.45;
}

.actions {
  display: flex;
  gap: 0.6rem;
}

.card {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  box-shadow:
    0 20px 40px rgba(15, 23, 42, 0.5),
    0 0 0 1px rgba(148, 163, 184, 0.3);
  width: 100%; /* 交给父容器控制宽度，不再限制 max-width */
}

/* 管理者视图：成员列表与详情布局 */
.member-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  max-height: 520px;
  overflow-y: auto;
}

.manager-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 0.5rem;
  align-items: center;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.95);
}

.legend-item input[type="checkbox"] {
  accent-color: #22c55e;
}

.legend-icon {
  width: 1.1rem;
  text-align: center;
}

.legend-text {
  white-space: nowrap;
}

/* 管理者视图列表滚动条：与暗色玻璃风适配 */
.member-list {
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: rgba(148, 163, 184, 0.55) rgba(2, 6, 23, 0.25);
}

.member-list::-webkit-scrollbar {
  width: 10px;
}

.member-list::-webkit-scrollbar-track {
  background: rgba(2, 6, 23, 0.25);
  border-radius: 999px;
  margin: 6px 0;
}

.member-list::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.45);
  border: 2px solid rgba(2, 6, 23, 0.25); /* 形成内边距效果 */
  border-radius: 999px;
}

.member-list::-webkit-scrollbar-thumb:hover {
  background: rgba(94, 234, 212, 0.45);
}

.member-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.45rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.member-item:hover {
  border-color: rgba(94, 234, 212, 0.65);
  box-shadow: 0 0 0 1px rgba(94, 234, 212, 0.35);
}

.member-item.selected {
  border-color: rgba(34, 197, 94, 0.85);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.5);
  background: radial-gradient(circle at left, rgba(34, 197, 94, 0.22), rgba(15, 23, 42, 0.9));
}

.member-avatar {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, #22c55e, #0ea5e9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #020617;
  flex-shrink: 0;
}

.member-main {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.35rem;
}

.member-name {
  font-size: 0.9rem;
  font-weight: 500;
}

.member-icons {
  display: flex;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.95);
}

.member-icons span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1rem;
}

.clickable {
  cursor: pointer;
}

.btn-small {
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.75);
  color: rgba(226, 232, 240, 0.95);
  font-size: 0.78rem;
  cursor: pointer;
}

.btn-small:hover {
  filter: brightness(1.1);
}

.section-annotations {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.section-annotation-item {
  position: relative;
}

.bubble {
  position: absolute;
  top: 120%;
  left: 0;
  z-index: 10;
  min-width: 260px;
  max-width: 320px;
  padding: 0.6rem 0.7rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.98);
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.8),
    0 0 0 1px rgba(148, 163, 184, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.45);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: #5eead4;
  font-size: 0.75rem;
}

.button-row {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
}

.btn {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: transparent;
  color: #e5e7eb;
  font-size: 0.85rem;
  cursor: pointer;
}

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

.btn-primary {
  border-color: #22c55e;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #020617;
}

.btn:hover {
  filter: brightness(1.1);
}

.fab-group {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 50;
}

.fab {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.92);
  color: rgba(226, 232, 240, 0.98);
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  user-select: none;
}

.fab:hover {
  border-color: rgba(94, 234, 212, 0.55);
  transform: translateY(-1px);
}

.fab:active {
  transform: translateY(0);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(2, 6, 23, 0.66);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal {
  width: min(560px, 100%);
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  padding: 14px;
}

.modal-title {
  font-weight: 700;
  margin-bottom: 10px;
}

.modal-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.status-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

/* 管理者日报详情：标题后置状态 */
.detail-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.detail-title {
  margin-bottom: 0; /* card-title 默认有 margin-bottom */
}

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

/* 管理者：AI 标注助手卡片 */
.ai-assist-card {
  padding: 1rem 1.25rem;
  margin: 0 0 12px 0;
}

.ai-assist-card .ai-assist {
  margin: 0; /* 交给卡片控制外边距 */
}

.status-pill {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.38);
  background: rgba(2, 6, 23, 0.35);
  padding: 0.25rem 0.6rem;
  font-size: 0.82rem;
  color: rgba(226, 232, 240, 0.95);
  cursor: default;
  user-select: none;
}

.status-pill.clickable {
  cursor: pointer;
}

.status-pill.ok {
  border-color: rgba(34, 197, 94, 0.55);
}

.status-pill.warn {
  border-color: rgba(245, 158, 11, 0.55);
}

.status-pill.info {
  border-color: rgba(56, 189, 248, 0.55);
}

.meta {
  padding: 1rem 1.25rem;
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.35);
  font-size: 0.8rem;
}

.read-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  margin-left: 0.35rem;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(226, 232, 240, 0.25);
  font-size: 0.75rem;
  font-weight: 800;
  color: rgba(226, 232, 240, 0.98);
}

.chip-ok {
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.12);
  color: rgba(134, 239, 172, 1);
}

.chip-warn {
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.12);
  color: rgba(253, 230, 138, 1);
}

.form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.label {
  font-size: 0.85rem;
  color: rgba(226, 232, 240, 0.95);
}

.manager-search-label {
  font-size: 1.25rem;
  font-weight: 600;
  display: block;
  margin-bottom: 0.8rem;
  color: rgba(226, 232, 240, 0.98);
}

.manager-search-stats {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  text-align: right;
  /* 与左侧输入框上下对齐：补齐 label 占据的高度 */
  padding-top: calc(1.25rem + 1.3rem);
}

.manager-stats-line {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.only-unread {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.75rem;
  user-select: none;
}

.only-unread input[type="checkbox"] {
  accent-color: #22c55e;
}

.stat-num {
  margin: 0 0.15rem;
  color: rgba(34, 197, 94, 0.95);
  font-weight: 800;
}

.rt-toolbar {
  display: flex;
  gap: 0.4rem;
  margin: 0.2rem 0 0.35rem;
  flex-wrap: wrap;
}

.rt-btn {
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.7);
  color: rgba(226, 232, 240, 0.9);
  font-size: 0.75rem;
  cursor: pointer;
}

.rt-btn:hover {
  filter: brightness(1.1);
}

.ai-assist {
  margin: 0.5rem 0 0.85rem;
}

.ai-assist-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.ai-assist-actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.ai-loading-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: 0.25rem;
}

.ai-loading {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.ai-spinner {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(148, 163, 184, 0.35);
  border-top-color: rgba(99, 102, 241, 0.85);
  animation: ai-spin 0.9s linear infinite;
  flex: 0 0 auto;
}

body[data-theme="dark"] .ai-spinner {
  border-color: rgba(148, 163, 184, 0.28);
  border-top-color: rgba(94, 234, 212, 0.85);
}

@keyframes ai-spin {
  to { transform: rotate(360deg); }
}

.ai-assist-actions-bottom {
  margin-top: 0.45rem;
  justify-content: flex-end;
}

.ai-result-edit {
  min-height: 120px;
}

.ai-result {
  margin-top: 0.55rem;
}

/* 管理者 AI 弹窗 */
.ai-modal {
  width: min(720px, 100%);
  max-height: min(76vh, 720px);
  display: flex;
  flex-direction: column;
  overflow: auto; /* 标注/AI 内容过长时出现滚动条 */
  min-height: 0;  /* 允许内部内容正确触发 overflow */
}

.ai-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 10px;
  flex: 0 0 auto;
}

.ai-modal-section {
  margin-top: 10px;
  flex: 0 0 auto;
}

.ai-modal-selected {
  max-height: 140px;
  overflow: auto;
}

.ai-modal-qa {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: center;
}

.ai-modal-footer {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

/* 回答区：固定高度 + 超出滚动；编辑/非编辑共用同一区域，避免高度跳变 */
.ai-modal .ai-result,
.ai-modal .ai-result-edit {
  /* 固定展示高度：不随内容多少而变小，超出滚动 */
  height: clamp(220px, 38vh, 380px);
  overflow: auto;
}

.ai-modal .ai-result-edit {
  width: 100%;
  resize: none; /* 保持弹窗高度稳定 */
}

/* 滚动条风格：与暗色/浅色主题一致（作用于弹窗内所有可滚动区域） */
.ai-modal {
  scrollbar-width: thin; /* Firefox */
}
body[data-theme="dark"] .ai-modal {
  scrollbar-color: rgba(148, 163, 184, 0.55) rgba(2, 6, 23, 0.25);
}
body[data-theme="light"] .ai-modal {
  scrollbar-color: rgba(100, 116, 139, 0.55) rgba(241, 245, 249, 0.55);
}

.ai-modal ::-webkit-scrollbar {
  width: 10px;
}
.ai-modal ::-webkit-scrollbar-track {
  background: rgba(2, 6, 23, 0.10);
  border-radius: 999px;
  margin: 6px 0;
}
body[data-theme="light"] .ai-modal ::-webkit-scrollbar-track {
  background: rgba(241, 245, 249, 0.85);
}
.ai-modal ::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.45);
  border: 2px solid rgba(2, 6, 23, 0.10);
  border-radius: 999px;
}
body[data-theme="light"] .ai-modal ::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.35);
  border-color: rgba(241, 245, 249, 0.85);
}
.ai-modal ::-webkit-scrollbar-thumb:hover {
  background: rgba(94, 234, 212, 0.45);
}
body[data-theme="light"] .ai-modal ::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.35);
}

.rt-sep {
  color: rgba(148, 163, 184, 0.5);
  margin: 0 0.2rem;
  user-select: none;
}

.rt-editor {
  width: 100%;
  min-height: 92px;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.4);
  color: #e5e7eb;
  outline: none;
  overflow-wrap: break-word;
  white-space: pre-wrap;
}

.rt-editor:focus {
  border-color: rgba(94, 234, 212, 0.45);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.12);
}

.rt-editor-readonly {
  background: rgba(15, 23, 42, 0.25);
  cursor: default;
}

/* Quill 富文本编辑器容器 */
.quill-form .quill-container {
  min-height: 140px;
  margin-bottom: 1rem;
}

/* AiEditor 容器（单编辑器 POC） */
.aieditor-host {
  height: 520px;
}

@media (max-width: 960px) {
  .aieditor-host {
    height: 520px;
  }
}

/* AiEditor 深色主题外观：贴合当前深色玻璃风 */
body[data-theme="dark"] .aieditor-host .aie-container,
body[data-theme="dark"] .aieditor-host .aie-theme-dark,
body[data-theme="dark"] .aieditor-host .aie-theme-dark .aie-container {
  background: rgba(15, 23, 42, 0.92) !important;
  border-color: rgba(148, 163, 184, 0.30) !important;
}

body[data-theme="dark"] .aieditor-host aie-header,
body[data-theme="dark"] .aieditor-host aie-header > div {
  background: rgba(15, 23, 42, 0.70) !important;
  border-bottom-color: rgba(148, 163, 184, 0.26) !important;
}

body[data-theme="dark"] .aieditor-host .aie-content {
  background: transparent !important;
}

/* AiEditor 浅色主题外观：贴合浅色科技风卡片 */
body[data-theme="light"] .aieditor-host .aie-container,
body[data-theme="light"] .aieditor-host .aie-theme-light,
body[data-theme="light"] .aieditor-host .aie-theme-light .aie-container {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.70), rgba(241, 245, 249, 0.92)) !important;
  /* 覆盖 aie-container 默认丑边框/圆角 */
  border: 1px solid rgba(148, 163, 184, 0.34) !important;
  border-radius: 16px !important;
  overflow: hidden;
  box-shadow:
    0 22px 54px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(99, 102, 241, 0.10);
}

body[data-theme="light"] .aieditor-host aie-header,
body[data-theme="light"] .aieditor-host aie-header > div {
  background: rgba(248, 250, 252, 0.95) !important;
  border-bottom-color: rgba(148, 163, 184, 0.45) !important;
}

body[data-theme="light"] .aieditor-host .aie-content {
  background: transparent !important;
  color: rgba(15, 23, 42, 0.92);
  /* 避免出现双层边框：边框交给 aie-container */
  border: 0 !important;
  box-shadow: none !important;
}

/* 浅色主题：更像输入框的视觉（背景/边框/聚焦态） */
body[data-theme="light"] .aieditor-host .aie-content,
body[data-theme="light"] .aieditor-host .ProseMirror,
body[data-theme="light"] .aieditor-host .prosemirror-editor,
body[data-theme="light"] .aieditor-host [contenteditable="true"] {
  background: rgba(255, 255, 255, 0.98) !important;
}

body[data-theme="light"] .aieditor-host .aie-container:focus-within {
  border-color: rgba(99, 102, 241, 0.70) !important;
  box-shadow:
    0 24px 54px rgba(2, 6, 23, 0.12),
    0 0 0 4px rgba(99, 102, 241, 0.16),
    0 0 0 1px rgba(14, 165, 233, 0.10);
}

/* 若 AiEditor 内部还有一层滚动/编辑面板，统一去掉默认深灰边框 */
body[data-theme="light"] .aieditor-host .aie-content * {
  border-color: rgba(148, 163, 184, 0.45);
}

/* 浅色主题下的可编辑区域底色/文字 */
body[data-theme="light"] .aieditor-host .ProseMirror,
body[data-theme="light"] .aieditor-host .prosemirror-editor,
body[data-theme="light"] .aieditor-host [contenteditable="true"] {
  color: rgba(15, 23, 42, 0.92) !important;
}

/* AiEditor 正文排版：默认模板字号偏大，统一调小一些 */
.aieditor-host .aie-content {
  font-size: 14px; /* 基准字号 */
  line-height: 1.6;
}

/* AiEditor（ProseMirror）常见正文容器 */
.aieditor-host .ProseMirror,
.aieditor-host .prosemirror-editor,
.aieditor-host [contenteditable="true"] {
  font-size: 14px !important;
  line-height: 1.65;
  letter-spacing: 0.1px;
}

/* 标题层级：避免模板里的“一、二、三…”过大 */
.aieditor-host .ProseMirror h1,
.aieditor-host .prosemirror-editor h1,
.aieditor-host [contenteditable="true"] h1 {
  font-size: 1.35em !important;
  line-height: 1.25;
  margin: 0.9em 0 0.55em;
}

.aieditor-host .ProseMirror h2,
.aieditor-host .prosemirror-editor h2,
.aieditor-host [contenteditable="true"] h2 {
  font-size: 1.18em !important;
  line-height: 1.28;
  margin: 0.85em 0 0.45em;
}

.aieditor-host .ProseMirror h3,
.aieditor-host .prosemirror-editor h3,
.aieditor-host [contenteditable="true"] h3 {
  font-size: 1.08em !important;
  line-height: 1.3;
  margin: 0.75em 0 0.35em;
}

/* 工具栏下拉文字（标题/字体/字号）整体更紧凑 */
.aieditor-host aie-header .aie-menu-item #text {
  font-size: 12px !important;
}

.aieditor-host aie-header .aie-menu-item[data-size="medium"] #text {
  font-size: 13px !important;
}

/* 隐藏底部 Powered by / Characters */
.aieditor-host aie-footer,
.aieditor-host aie-footer > div {
  display: none !important;
}
.quill-form .ql-container {
  font-size: 0.95rem;
  border-color: rgba(148, 163, 184, 0.35);
}
.quill-form .ql-editor {
  min-height: 100px;
  background: rgba(15, 23, 42, 0.4);
  color: #e5e7eb;
}
.quill-form .ql-editor.ql-blank::before {
  /* 覆盖 Quill 默认的黑色 placeholder，改为柔和的灰蓝色 */
  color: rgba(148, 163, 184, 0.9);
}
.quill-form .ql-toolbar {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(148, 163, 184, 0.35);
}
.quill-form .ql-toolbar .ql-stroke {
  stroke: rgba(148, 163, 184, 0.5);
}
.quill-form .ql-toolbar .ql-fill {
  fill: rgba(148, 163, 184, 0.6);
}
.quill-form .ql-toolbar button:hover .ql-stroke,
.quill-form .ql-toolbar .ql-picker-label:hover .ql-stroke {
  stroke: rgba(94, 234, 212, 0.8);
}
.quill-form .ql-toolbar .ql-attachment {
  margin-left: 0.5rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.7);
}

.quill-form .ql-toolbar .ql-table {
  margin-left: 0.35rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.7);
  color: rgba(226, 232, 240, 0.95);
  font-size: 0.8rem;
}

.quill-form .ql-toolbar .ql-table:hover {
  border-color: rgba(94, 234, 212, 0.8);
}

/* 富文本内表格样式 */
.quill-form .ql-editor .ql-table-wrapper {
  margin: 0.5rem 0;
}
.quill-form .ql-editor table {
  border-collapse: collapse;
  width: 100%;
  max-width: 100%;
}
.quill-form .ql-editor td,
.quill-form .ql-editor th {
  border: 1px solid #4b5563;
  padding: 4px 6px;
  min-width: 40px;
  vertical-align: top;
}

.preview-html {
  white-space: normal;
  word-break: break-word;
  font-size: 14px;
  line-height: 1.65;
  letter-spacing: 0.1px;
}

/* 预览区标题层级：与编辑区一致，避免“一、二、三…”过大 */
.preview-html h1 {
  font-size: 1.35em !important;
  line-height: 1.25;
  margin: 0.9em 0 0.55em;
}
.preview-html h2 {
  font-size: 1.18em !important;
  line-height: 1.28;
  margin: 0.85em 0 0.45em;
}
.preview-html h3 {
  font-size: 1.08em !important;
  line-height: 1.3;
  margin: 0.75em 0 0.35em;
}

.preview-html ul,
.preview-html ol {
  margin: 0.35rem 0;
  padding-left: 1.5rem;
}

.preview-html table {
  border-collapse: collapse;
  width: 100%;
  margin: 0.5rem 0;
}
.preview-html td,
.preview-html th {
  border: 1px solid #4b5563;
  padding: 4px 6px;
}

.textarea {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(2, 6, 23, 0.55);
  color: rgba(226, 232, 240, 0.98);
  outline: none;
  line-height: 1.45;
}

.textarea:focus {
  border-color: rgba(94, 234, 212, 0.45);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.12);
}

.input {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(2, 6, 23, 0.55);
  color: rgba(226, 232, 240, 0.98);
  outline: none;
}

.input::placeholder,
.textarea::placeholder {
  /* 普通输入框 placeholder 颜色：柔和的灰蓝色，而不是黑色 */
  color: rgba(148, 163, 184, 0.9);
}

.input:focus {
  border-color: rgba(94, 234, 212, 0.45);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.12);
}

.raw {
  margin-top: 0.75rem;
  border-top: 1px dashed rgba(148, 163, 184, 0.22);
  padding-top: 0.75rem;
}

.pre {
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0.6rem 0 0;
  padding: 0.75rem;
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 10px;
  font-size: 0.82rem;
  color: rgba(226, 232, 240, 0.92);
}

.flash {
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.1);
  color: rgba(134, 239, 172, 1);
}

.flash-error {
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.1);
  color: rgba(254, 202, 202, 1);
}

.hint {
  font-size: 0.85rem;
  color: rgba(148, 163, 184, 0.95);
}

.grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.6rem;
}

.day {
  text-decoration: none;
  color: inherit;
  width: 100%;
  text-align: left;
  font: inherit;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.65);
  padding: 0.7rem 0.75rem;
  min-height: 72px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.day:hover {
  filter: brightness(1.08);
}

.day-num {
  font-weight: 700;
}

.day-status {
  font-size: 0.82rem;
  color: rgba(148, 163, 184, 0.95);
}

.day.submitted {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.08);
}

.day.draft {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.08);
}

.day.empty {
  opacity: 0.75;
}

/* ========== 移动端：仅小屏生效，桌面样式不变 ========== */
.bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20;
    padding: 0.5rem 0.5rem max(0.5rem, env(safe-area-inset-bottom));
    gap: 0.5rem;
    background: rgba(2, 6, 23, 0.92);
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    backdrop-filter: blur(12px);
    justify-content: space-around;
    align-items: center;
  }

  .bottom-nav-link {
    flex: 1;
    text-align: center;
    text-decoration: none;
    color: rgba(226, 232, 240, 0.95);
    padding: 0.6rem 0.5rem;
    border-radius: 12px;
    font-size: 0.9rem;
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
  }

  .bottom-nav-link:hover {
    background: rgba(148, 163, 184, 0.15);
  }

  body[data-theme="light"] .bottom-nav {
    background: rgba(248, 250, 252, 0.95);
    border-top-color: rgba(148, 163, 184, 0.35);
  }

  body[data-theme="light"] .bottom-nav-link {
    color: #0f172a;
  }

  body[data-theme="light"] .bottom-nav-link:hover {
    background: rgba(148, 163, 184, 0.2);
  }

  .topbar .nav {
    display: none;
  }

  .main {
    padding-bottom: calc(60px + env(safe-area-inset-bottom));
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .topbar-inner {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .brand-title {
    font-size: 1.1rem;
  }

  .brand-sub {
    font-size: 0.8rem;
  }

  .brand-mark-icon {
    width: 40px;
    height: 40px;
  }

  .user-box .user-name {
    display: none;
  }

  .btn-theme-toggle,
  .btn-logout {
    min-height: 44px;
    min-width: 44px;
    padding: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-link {
    min-height: 44px;
    min-width: 44px;
    padding: 0.5rem 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .btn,
  .btn-primary {
    min-height: 44px;
    padding: 0.5rem 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .btn-small {
    min-height: 44px;
    padding: 0.5rem 0.85rem;
  }

  .card {
    padding: 1rem 1.1rem;
  }

  .container {
    max-width: 100%;
  }

  .input,
  .textarea {
    font-size: 16px;
    min-height: 44px;
    padding: 0.5rem 0.75rem;
  }

  .textarea {
    min-height: 100px;
  }

  .page-head {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .page-title {
    font-size: 1.1rem;
  }

  .modal-backdrop {
    padding: 0.5rem;
    align-items: flex-end;
  }

  .modal {
    width: 100%;
    max-width: 100%;
    max-height: 90vh;
    border-radius: 16px 16px 0 0;
    margin-bottom: 0;
  }

  .member-list {
    max-height: 40vh;
  }

  .split-manager .member-list {
    max-height: 35vh;
  }

  .grid {
    gap: 0.4rem;
  }

  .day {
    min-height: 56px;
    padding: 0.5rem 0.6rem;
  }

  .form {
    gap: 0.6rem;
  }

  .actions {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .preview-html,
  .aie-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* 后台管理 */
.admin-tabs {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}
.admin-tabs .btn-small.active {
  background: var(--color-primary, #38bdf8);
  color: #020617;
}
.admin-tab-content {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}
.admin-manager-row {
  margin: 0.5rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}
.admin-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.15rem 0.4rem;
  background: rgba(56, 189, 248, 0.15);
  border-radius: 4px;
  font-size: 0.9em;
}
.admin-tag a {
  color: #f87171;
  text-decoration: none;
}
.admin-add-relation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}
.admin-add-relation select {
  min-width: 120px;
  padding: 0.35rem 0.5rem;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.3);
}
.admin-ai-row {
  margin: 0.5rem 0;
}
.admin-ai-row label {
  display: inline-block;
  min-width: 120px;
}
.admin-ai-row input {
  padding: 0.35rem 0.5rem;
  border-radius: 4px;
  width: 100%;
  max-width: 400px;
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.3);
}
.admin-logs-table-wrap {
  overflow-x: auto;
  margin-top: 0.5rem;
}
.admin-logs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9em;
}
.admin-logs-table th,
.admin-logs-table td {
  padding: 0.4rem 0.6rem;
  text-align: left;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}
.admin-logs-table th {
  color: #94a3b8;
  font-weight: 600;
}

