/* ============================================================
   Windows 2000 经典主题（还原 3D 立体边框、标题栏渐变、经典控件）
   ============================================================ */

:root {
  --face: #d4d0c8;
  --face-2: #e8e5df;
  --hi: #ffffff;
  --hi-2: #dfdfdf;
  --sh: #808080;
  --sh-2: #404040;
  --ink: #000000;
  --ink-dim: #4a4a4a;
  --navy: #000080;
  --navy-2: #0a246a;
  --title-a: #0a246a;
  --title-b: #a6caf0;
  --desk-a: #4a7ab5;
  --desk-b: #123a6b;
  --sel: #000080;
  --sel-ink: #ffffff;
  --font: Tahoma, "MS Sans Serif", "Microsoft Sans Serif", "SimSun", "宋体", sans-serif;
  --font-cn: "SimSun", "宋体", Tahoma, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  font-family: var(--font);
  font-size: 12px;
  color: var(--ink);
  background: var(--face);
  -webkit-font-smoothing: none;
  user-select: none;
}

body { cursor: default; }

/* ---------------- 桌面 ---------------- */
.desktop {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 120%, #6f9ed0 0%, transparent 60%),
    linear-gradient(180deg, #4a7ab5 0%, #2b5d95 45%, #123a6b 100%);
  overflow: hidden;
}

.desktop::after {
  content: "Windows 2000";
  position: absolute;
  right: 28px;
  bottom: 58px;
  font-family: "Times New Roman", Georgia, serif;
  font-size: 44px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, .28);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, .18);
  pointer-events: none;
  z-index: 0;
  user-select: none;
}
.desktop > .window { z-index: 2; }

/* ---------------- 立体边框工具类 ---------------- */
.bevel-out {
  border: 1px solid var(--sh);
  border-top-color: var(--hi-2);
  border-left-color: var(--hi-2);
  box-shadow: inset 1px 1px 0 var(--hi), inset -1px -1px 0 var(--sh-2);
}
.bevel-in {
  border: 1px solid var(--hi);
  border-top-color: var(--sh);
  border-left-color: var(--sh);
  box-shadow: inset 1px 1px 0 var(--sh-2), inset -1px -1px 0 var(--hi-2);
}
.bevel-flat {
  border: 1px solid var(--face);
  box-shadow: none;
}

/* ---------------- 窗口 ---------------- */
.window {
  position: absolute;
  background: var(--face);
  padding: 3px;
  border: 1px solid #000;
  box-shadow: inset 1px 1px 0 var(--hi-2), inset -1px -1px 0 var(--sh), 2px 2px 6px rgba(0, 0, 0, .35);
  display: flex;
  flex-direction: column;
  min-width: 320px;
  min-height: 200px;
}

.titlebar {
  height: 22px;
  flex: 0 0 22px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 2px 0 3px;
  background: linear-gradient(90deg, var(--title-a) 0%, #2f5c9e 55%, var(--title-b) 100%);
  color: #fff;
  font-weight: bold;
  font-size: 12px;
  cursor: default;
}
.titlebar.inactive { background: linear-gradient(90deg, #808080 0%, #b5b5b5 100%); color: #e8e8e8; }
.titlebar .tb-icon { width: 16px; height: 16px; flex: 0 0 16px; display: flex; }
.titlebar .tb-title {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, .3);
}
.titlebar .tb-btns { display: flex; gap: 2px; }

.tb-btn {
  width: 17px;
  height: 15px;
  padding: 0;
  font-family: var(--font);
  font-size: 9px;
  line-height: 1;
  color: #000;
  background: var(--face);
  border: 1px solid var(--sh);
  border-top-color: var(--hi);
  border-left-color: var(--hi);
  box-shadow: inset 1px 1px 0 var(--hi-2), inset -1px -1px 0 var(--sh-2);
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tb-btn:active {
  box-shadow: inset 1px 1px 0 var(--sh-2), inset -1px -1px 0 var(--hi-2);
  border-color: var(--hi);
  border-top-color: var(--sh);
  border-left-color: var(--sh);
}
.tb-btn.close { font-size: 10px; font-weight: bold; }

/* ---------------- 菜单栏 ---------------- */
.menubar {
  flex: 0 0 20px;
  height: 20px;
  display: flex;
  align-items: stretch;
  background: var(--face);
  border-bottom: 1px solid var(--face);
  position: relative;
  z-index: 60;
}
.menu-root {
  padding: 2px 8px 0;
  font-size: 12px;
  line-height: 16px;
  cursor: default;
  white-space: nowrap;
}
.menu-root:hover, .menu-root.open { background: var(--navy); color: #fff; }

.menu-pop {
  position: absolute;
  top: 20px;
  min-width: 190px;
  background: var(--face);
  padding: 2px;
  border: 1px solid var(--sh);
  border-top-color: var(--hi);
  border-left-color: var(--hi);
  box-shadow: inset 1px 1px 0 var(--hi-2), inset -1px -1px 0 var(--sh-2), 2px 2px 4px rgba(0, 0, 0, .35);
  display: none;
  z-index: 100;
}
.menu-pop.show { display: block; }
.menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 22px 3px 24px;
  font-size: 12px;
  white-space: nowrap;
  position: relative;
  cursor: default;
}
.menu-item:hover { background: var(--navy); color: #fff; }
.menu-item.disabled { color: var(--sh); pointer-events: none; }
.menu-item .mi-key { margin-left: auto; padding-left: 24px; color: var(--ink-dim); font-size: 11px; }
.menu-item:hover .mi-key { color: #d8e4ff; }
.menu-sep { height: 2px; margin: 3px 2px; border-top: 1px solid var(--sh); border-bottom: 1px solid var(--hi); }

/* ---------------- 工具栏 ---------------- */
.toolbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 1px;
  padding: 2px 3px;
  background: var(--face);
  border-top: 1px solid var(--hi);
  border-bottom: 1px solid var(--sh);
}
.tool-sep {
  width: 2px;
  align-self: stretch;
  margin: 2px 3px;
  border-left: 1px solid var(--sh);
  border-right: 1px solid var(--hi);
}
.tool-btn {
  height: 22px;
  min-width: 24px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 1px solid transparent;
  font-family: var(--font);
  font-size: 12px;
  color: var(--ink);
  cursor: default;
  white-space: nowrap;
}
.tool-btn:hover {
  border-color: var(--hi);
  border-top-color: var(--hi-2);
  border-left-color: var(--hi-2);
  border-color: var(--hi-2);
  box-shadow: inset 1px 1px 0 var(--hi), inset -1px -1px 0 var(--sh);
}
.tool-btn:active, .tool-btn.pressed {
  border-color: var(--sh);
  box-shadow: inset 1px 1px 0 var(--sh-2), inset -1px -1px 0 var(--hi);
  padding-top: 1px;
}
.tool-btn:disabled { color: var(--sh); }
.tool-btn svg { width: 16px; height: 16px; flex: 0 0 16px; }

/* ---------------- 按钮 ---------------- */
.btn {
  min-width: 70px;
  height: 23px;
  padding: 0 12px;
  font-family: var(--font);
  font-size: 12px;
  color: var(--ink);
  background: var(--face);
  border: 1px solid var(--sh);
  border-top-color: var(--hi-2);
  border-left-color: var(--hi-2);
  box-shadow: inset 1px 1px 0 var(--hi), inset -1px -1px 0 var(--sh-2);
  cursor: default;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
}
.btn:hover { background: #e4e0d9; }
.btn:active, .btn.is-active {
  box-shadow: inset 1px 1px 0 var(--sh-2), inset -1px -1px 0 var(--hi-2);
  border-color: var(--hi);
  border-top-color: var(--sh);
  border-left-color: var(--sh);
  padding-top: 1px;
}
.btn:disabled { color: var(--sh); text-shadow: 1px 1px 0 var(--hi); pointer-events: none; }
.btn:focus-visible { outline: 1px dotted #000; outline-offset: -4px; }
.btn.small { min-width: 0; height: 20px; padding: 0 8px; font-size: 11px; }
.btn.primary { font-weight: bold; }

/* ---------------- 输入控件 ---------------- */
.input, .textarea, select.input {
  font-family: var(--font);
  font-size: 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--sh);
  border-top-color: var(--sh-2);
  border-left-color: var(--sh-2);
  box-shadow: inset 1px 1px 0 var(--hi-2), inset -1px -1px 0 var(--hi);
  padding: 2px 4px;
  height: 20px;
  outline: none;
  border-radius: 0;
  user-select: text;
}
.input:focus, .textarea:focus { background: #fffef2; }
.input:disabled { background: var(--face); color: var(--sh); }
.input::placeholder { color: #909090; }
.textarea { height: auto; resize: none; }

select.input {
  appearance: none;
  padding-right: 18px;
  background-image: linear-gradient(45deg, transparent 50%, #000 50%), linear-gradient(135deg, #000 50%, transparent 50%);
  background-position: calc(100% - 9px) 9px, calc(100% - 5px) 9px;
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
}
select.input:focus { background-color: #fffef2; }

.checkbox {
  appearance: none;
  width: 13px;
  height: 13px;
  background: #fff;
  border: 1px solid var(--sh);
  border-top-color: var(--sh-2);
  border-left-color: var(--sh-2);
  box-shadow: inset 1px 1px 0 var(--hi-2);
  position: relative;
  margin: 0 4px 0 0;
  vertical-align: -2px;
  cursor: default;
  flex: 0 0 13px;
}
.checkbox:checked::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 0;
  width: 5px;
  height: 9px;
  border: solid #000;
  border-width: 0 2px 2px 0;
  transform: rotate(40deg);
}
.checkbox:disabled { background: var(--face); }

label.field { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }

/* ---------------- 面板 / 分组 ---------------- */
fieldset.group {
  border: 1px solid var(--sh);
  border-top-color: var(--hi-2);
  border-left-color: var(--hi-2);
  box-shadow: inset 1px 1px 0 var(--hi), inset -1px -1px 0 var(--hi-2);
  margin: 6px 0;
  padding: 8px 10px 10px;
}
fieldset.group > legend { font-size: 12px; padding: 0 4px; }

/* ---------------- 状态栏 ---------------- */
.statusbar {
  flex: 0 0 22px;
  display: flex;
  align-items: stretch;
  gap: 2px;
  padding: 2px 2px;
  background: var(--face);
  border-top: 1px solid var(--hi);
}
.sb-cell {
  display: flex;
  align-items: center;
  padding: 0 6px;
  font-size: 11px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  border: 1px solid var(--hi);
  border-top-color: var(--sh);
  border-left-color: var(--sh);
  box-shadow: inset 1px 1px 0 var(--hi-2);
  min-width: 0;
}
.sb-cell.grow { flex: 1; }
.sb-cell.fixed { flex: 0 0 auto; }

/* ---------------- 滚动条 ---------------- */
::-webkit-scrollbar { width: 16px; height: 16px; }
::-webkit-scrollbar-track {
  background-color: #e8e5df;
  background-image: linear-gradient(45deg, #d4d0c8 25%, transparent 25%, transparent 75%, #d4d0c8 75%),
    linear-gradient(45deg, #d4d0c8 25%, transparent 25%, transparent 75%, #d4d0c8 75%);
  background-size: 2px 2px;
  background-position: 0 0, 1px 1px;
}
::-webkit-scrollbar-thumb {
  background: var(--face);
  border: 1px solid var(--sh);
  border-top-color: var(--hi);
  border-left-color: var(--hi);
  box-shadow: inset 1px 1px 0 var(--hi-2), inset -1px -1px 0 var(--sh-2);
}
::-webkit-scrollbar-thumb:hover { background: #e4e0d9; }
::-webkit-scrollbar-corner { background: var(--face); }

/* ---------------- 对话框 ---------------- */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .18);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-mask .window { position: relative; max-height: calc(100vh - 80px); }
.dialog-body {
  padding: 12px 14px;
  overflow: auto;
  flex: 1 1 auto;
  min-height: 0;
  user-select: text;
}
.dialog-foot {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  padding: 6px 10px 8px;
  flex: 0 0 auto;
}
.msgbox-row { display: flex; gap: 14px; align-items: flex-start; }
.msgbox-icon { flex: 0 0 32px; }
.msgbox-text { line-height: 1.6; padding-top: 4px; max-width: 380px; }

/* ---------------- 标签页 ---------------- */
.tabs { display: flex; gap: 0; position: relative; padding-left: 4px; z-index: 2; }
.tab {
  padding: 3px 12px 4px;
  font-size: 12px;
  background: var(--face);
  border: 1px solid var(--sh);
  border-top-color: var(--hi-2);
  border-left-color: var(--hi-2);
  box-shadow: inset 1px 1px 0 var(--hi);
  border-bottom: none;
  margin-bottom: -1px;
  cursor: default;
  border-radius: 3px 3px 0 0;
  position: relative;
  top: 2px;
}
.tab.active { padding: 2px 14px 6px; top: 0; font-weight: normal; z-index: 3; background: var(--face); }
.tab-panel {
  border: 1px solid var(--hi-2);
  border-right-color: var(--sh);
  border-bottom-color: var(--sh);
  box-shadow: inset 1px 1px 0 var(--hi), inset -1px -1px 0 var(--hi-2);
  padding: 12px;
  position: relative;
  z-index: 1;
  background: var(--face);
}

/* ---------------- 树形视图 ---------------- */
.tree { padding: 2px 0; font-size: 12px; }
.tree-item {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 19px;
  padding-right: 6px;
  padding-left: 2px;
  white-space: nowrap;
  cursor: default;
}
.tree-item:hover { background: #e8e5df; }
.tree-item.selected { background: var(--sel); color: var(--sel-ink); }
.tree-item.selected .lbl { color: var(--sel-ink); }
.tree-item.drop-target { background: #cfe0f5; outline: 1px dotted #000; outline-offset: -1px; }
.tree-item .lbl { overflow: hidden; text-overflow: ellipsis; }
.tree-item .cnt { color: var(--sh); font-size: 11px; margin-left: 4px; }
.tree-item.selected .cnt { color: #c9d6ee; }
.twisty {
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  border: 1px solid var(--sh);
  background: #fff;
  position: relative;
  margin-right: 2px;
  cursor: default;
}
.twisty::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 4px;
  width: 5px;
  height: 1px;
  background: #000;
}
.twisty::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 2px;
  width: 1px;
  height: 5px;
  background: #000;
}
.twisty.open::after { display: none; }
.twisty.leaf { border: none; background: none; }
.twisty.leaf::before, .twisty.leaf::after { display: none; }
.tree-children { margin-left: 13px; border-left: 1px dotted #9a9a9a; padding-left: 5px; }

/* ---------------- 列表视图 ---------------- */
.details { display: flex; flex-direction: column; height: 100%; background: #fff; }
.details-head {
  display: flex;
  flex: 0 0 20px;
  background: var(--face);
  border-bottom: 1px solid var(--sh);
}
.details-head > div {
  display: flex;
  align-items: center;
  padding: 0 6px;
  font-size: 11px;
  border: 1px solid var(--hi);
  border-top-color: var(--hi-2);
  border-left-color: var(--hi-2);
  border-right-color: var(--sh);
  border-bottom-color: var(--sh);
  box-shadow: inset 1px 1px 0 var(--hi);
  overflow: hidden;
  white-space: nowrap;
}
.details-body { flex: 1 1 auto; overflow: auto; }
.row {
  display: flex;
  align-items: center;
  height: 20px;
  font-size: 12px;
  white-space: nowrap;
  cursor: default;
  padding-left: 2px;
}
.row:nth-child(even) { background: #f4f4f4; }
.row:hover { background: #e8eef7; }
.row.selected { background: var(--sel); color: var(--sel-ink); }
.row .c-title { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; padding-left: 4px; display: flex; align-items: center; gap: 4px; }
.row .c-date { flex: 0 0 76px; color: var(--ink-dim); font-size: 11px; text-align: right; padding-right: 6px; }
.row.selected .c-date, .row.selected .c-att { color: #cdd8ef; }
.row .c-att { flex: 0 0 34px; text-align: center; color: var(--ink-dim); font-size: 11px; }
.row.dragging { opacity: .5; }

.empty-state {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #8a8a8a;
  font-size: 12px;
  background: #fff;
  padding: 20px;
  text-align: center;
}

/* ---------------- 分割条 ---------------- */
.splitter {
  flex: 0 0 4px;
  cursor: col-resize;
  background: var(--face);
  position: relative;
}
.splitter::after {
  content: "";
  position: absolute;
  inset: 0;
  border-left: 1px solid var(--sh);
  border-right: 1px solid var(--hi);
}

/* ---------------- 任务栏 ---------------- */
.taskbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30px;
  background: var(--face);
  border-top: 1px solid var(--hi);
  box-shadow: 0 -1px 0 var(--sh-2);
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 2px 3px;
  z-index: 500;
}
.start-btn {
  height: 24px;
  padding: 0 8px 0 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: bold;
  background: var(--face);
  border: 1px solid var(--sh);
  border-top-color: var(--hi-2);
  border-left-color: var(--hi-2);
  box-shadow: inset 1px 1px 0 var(--hi), inset -1px -1px 0 var(--sh-2);
  cursor: default;
}
.start-btn:active, .start-btn.open {
  box-shadow: inset 1px 1px 0 var(--sh-2), inset -1px -1px 0 var(--hi-2);
  border-color: var(--hi);
  border-top-color: var(--sh);
  border-left-color: var(--sh);
}
.flag {
  width: 15px;
  height: 14px;
  flex: 0 0 15px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1px;
  transform: skewX(-8deg);
}
.flag i { display: block; }
.flag i:nth-child(1) { background: #ff3b30; }
.flag i:nth-child(2) { background: #4cd964; }
.flag i:nth-child(3) { background: #007aff; }
.flag i:nth-child(4) { background: #ffcc00; }

.task-sep { width: 2px; align-self: stretch; margin: 3px 2px; border-left: 1px solid var(--sh); border-right: 1px solid var(--hi); }
.task-item {
  height: 22px;
  min-width: 120px;
  max-width: 200px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  background: var(--face);
  border: 1px solid var(--hi);
  border-top-color: var(--sh);
  border-left-color: var(--sh);
  box-shadow: inset 1px 1px 0 var(--hi-2);
  overflow: hidden;
  white-space: nowrap;
  cursor: default;
}
.task-item.active {
  background: #c9c5bd;
  border-color: var(--sh);
  border-top-color: var(--hi);
  border-left-color: var(--hi);
  box-shadow: inset 1px 1px 0 var(--sh-2);
  font-weight: bold;
}
.tray {
  margin-left: auto;
  height: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  border: 1px solid var(--hi);
  border-top-color: var(--sh);
  border-left-color: var(--sh);
  box-shadow: inset 1px 1px 0 var(--hi-2);
  font-size: 11px;
}

.start-menu {
  position: absolute;
  left: 3px;
  bottom: 30px;
  width: 210px;
  background: var(--face);
  padding: 2px;
  border: 1px solid var(--sh);
  border-top-color: var(--hi);
  border-left-color: var(--hi);
  box-shadow: inset 1px 1px 0 var(--hi-2), inset -1px -1px 0 var(--sh-2), 3px 3px 6px rgba(0, 0, 0, .4);
  z-index: 600;
  display: none;
}
.start-menu.show { display: block; }
.start-menu .banner {
  position: absolute;
  left: 2px;
  top: 2px;
  bottom: 2px;
  width: 22px;
  background: linear-gradient(180deg, #0a246a, #3a6ea5);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: #fff;
  font-weight: bold;
  font-size: 12px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 8px;
  letter-spacing: 1px;
}
.start-menu .sm-items { margin-left: 24px; padding: 2px 0; }

/* ---------------- 附件条 / 富文本 ---------------- */
.attach-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  min-height: 32px;
  overflow-x: auto;
  background: var(--face);
  border-top: 1px solid var(--sh);
  border-bottom: 1px solid var(--hi);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 6px 2px 4px;
  background: var(--face-2);
  border: 1px solid var(--sh);
  border-top-color: var(--hi);
  border-left-color: var(--hi);
  box-shadow: inset 1px 1px 0 var(--hi-2);
  font-size: 11px;
  max-width: 340px;
  white-space: nowrap;
  flex: 0 0 auto;
}
.chip .nm { overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.chip button {
  border: none;
  background: none;
  font-size: 11px;
  padding: 0 2px;
  cursor: default;
  color: var(--navy);
  font-family: var(--font);
}
.chip button:hover { text-decoration: underline; }

.rt-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1px;
  padding: 2px 3px;
  background: var(--face);
  border-top: 1px solid var(--hi);
  border-bottom: 1px solid var(--sh);
  flex: 0 0 auto;
}
.rt-btn {
  min-width: 22px;
  height: 21px;
  padding: 0 4px;
  font-family: var(--font);
  font-size: 12px;
  background: transparent;
  border: 1px solid transparent;
  cursor: default;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.rt-btn b { font-family: Georgia, serif; font-size: 13px; }
.rt-btn i { font-family: Georgia, serif; font-size: 13px; }
.rt-btn:hover { border-color: var(--hi-2); box-shadow: inset 1px 1px 0 var(--hi), inset -1px -1px 0 var(--sh); }
.rt-btn.on { border-color: var(--sh); box-shadow: inset 1px 1px 0 var(--sh-2), inset -1px -1px 0 var(--hi); background: #c9c5bd; }
.rt-toolbar .tool-sep { margin: 1px 2px; }
.rt-select { height: 20px; font-size: 11px; }

.rt-editor {
  flex: 1 1 auto;
  overflow: auto;
  background: #fff;
  padding: 10px 14px;
  font-family: var(--font-cn);
  font-size: 14px;
  line-height: 1.75;
  color: #111;
  outline: none;
  user-select: text;
  min-height: 0;
}
.rt-editor:focus { box-shadow: inset 0 0 0 1px #a8c0e0; }
.rt-editor p { margin: 0 0 8px; }
.rt-editor h1 { font-size: 20px; margin: 10px 0 8px; }
.rt-editor h2 { font-size: 17px; margin: 10px 0 6px; }
.rt-editor h3 { font-size: 15px; margin: 8px 0 6px; }
.rt-editor blockquote {
  margin: 8px 0;
  padding: 4px 10px;
  border-left: 3px solid #b8b8b8;
  background: #f7f7f7;
  color: #333;
}
.rt-editor pre {
  background: #f4f4f4;
  border: 1px solid #d6d6d6;
  padding: 8px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  overflow-x: auto;
  white-space: pre-wrap;
}
.rt-editor img { max-width: 100%; height: auto; }
.rt-editor a { color: #0000cd; }
.rt-editor table { border-collapse: collapse; }
.rt-editor td, .rt-editor th { border: 1px solid #999; padding: 3px 6px; }
.rt-editor:empty::before {
  content: "在此输入日志正文……";
  color: #a9a9a9;
}

/* ---------------- 其它 ---------------- */
.progress {
  height: 14px;
  background: #fff;
  border: 1px solid var(--sh);
  border-top-color: var(--sh-2);
  border-left-color: var(--sh-2);
  box-shadow: inset 1px 1px 0 var(--hi-2);
  padding: 1px;
  overflow: hidden;
}
.progress > i {
  display: block;
  height: 100%;
  background: repeating-linear-gradient(90deg, #000080 0 8px, #2b6fd6 8px 10px);
  width: 0;
  transition: width .15s linear;
}
.hint { color: var(--ink-dim); font-size: 11px; }
.kv { display: grid; grid-template-columns: 96px 1fr; gap: 6px 10px; align-items: center; font-size: 12px; }
.txt-link { color: #0000cd; text-decoration: underline; cursor: pointer; }
.txt-link:hover { color: #d00000; }
.spacer { flex: 1 1 auto; }
.center { text-align: center; }
.mono { font-family: Consolas, "Courier New", monospace; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
