/* ============ design tokens ============ */
:root {
  --bg: #fdfbf8;
  --panel: #ffffff;
  --panel-soft: #faf7f2;
  --hover: #f4efe8;
  --line: #ece6dd;
  --line-soft: #f4efe7;
  --text: #1f2328;
  --text-mid: #4b5563;
  --text-soft: #6b7280;
  --text-faint: #a29a8f;
  --accent: #e2622a;
  --accent-soft: #fff1e8;
  --accent-line: #f6cdb6;
  --mark: #ffe58f;
  --shadow-sm: 0 1px 2px rgba(60, 40, 20, .06);
  --shadow: 0 1px 2px rgba(60, 40, 20, .05), 0 10px 28px rgba(60, 40, 20, .07);
  --radius: 12px;
  --radius-sm: 8px;
  --font-size: 15px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
}

[data-theme="dark"] {
  --bg: #14161a;
  --panel: #1a1d22;
  --panel-soft: #20242a;
  --hover: #262b33;
  --line: #2b3038;
  --line-soft: #23272e;
  --text: #e8eaed;
  --text-mid: #c2c7cf;
  --text-soft: #9aa1ab;
  --text-faint: #6f7783;
  --accent: #ff8a54;
  --accent-soft: #33221a;
  --accent-line: #5a3626;
  --mark: rgba(255, 196, 60, .34);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px rgba(0, 0, 0, .38);
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--font-size);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

button {
  font-family: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 0;
}

input, textarea { font-family: inherit; color: inherit; }

.app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-width: 280px;
  position: relative;
}

/* ============ top bar ============ */
.topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
  position: relative;
  z-index: 30;
}

.brand {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  flex: 0 0 auto;
  color: var(--accent);
}
.brand:hover { background: var(--hover); }
.logo { display: flex; }
.brand-txt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.brand-txt strong { font-size: 13px; letter-spacing: .01em; color: var(--text); }
.brand-txt span { font-size: 10px; color: var(--text-faint); }

@media (max-width: 340px) {
  .brand-txt span { display: none; }
  .brand-txt strong { font-size: 12px; }
}

.search {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--text-faint);
  transition: border-color .15s, background .15s;
}
.search:focus-within { border-color: var(--accent-line); background: var(--panel); }
.search input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: none;
  background: none;
  font-size: 12.5px;
  color: var(--text);
}
.search input::placeholder { color: var(--text-faint); }
.search input::-webkit-search-cancel-button { display: none; }
.search .clear { font-size: 11px; color: var(--text-faint); padding: 0 2px; }
.search .clear:hover { color: var(--text); }

.top-actions { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; }

.icon-btn {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--hover); color: var(--text); }
.icon-btn.active { background: var(--accent-soft); color: var(--accent); }
.icon-btn:disabled { opacity: .45; cursor: default; }

/* ============ calendar（下拉浮层） ============ */
.cal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 29;
  background: rgba(30, 22, 12, .12);
  animation: fadeIn .14s ease-out;
}
.cal-backdrop[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes calIn {
  from { opacity: 0; transform: translateY(-6px) scale(.99); }
}

.calendar {
  position: absolute;
  top: calc(100% + 4px);
  left: 6px;
  right: 6px;
  z-index: 40;
  max-height: min(64vh, 468px);
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(60, 45, 25, .18), 0 2px 8px rgba(60, 45, 25, .07);
  display: flex;
  flex-direction: column;
  animation: calIn .16s ease-out;
}
.calendar[hidden] { display: none; }

/* 今天 / 明天 / 后天 快捷入口 */
.cal-quick {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 10px 8px;
  border-bottom: 1px solid var(--line-soft);
  flex-wrap: wrap;
}
.cal-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-size: 11.5px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  color: var(--text-mid);
  transition: border-color .14s, color .14s, background .14s;
}
.cal-chip b { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text-soft); }
.cal-chip:hover { border-color: var(--accent-line); color: var(--accent); }
.cal-chip:hover b { color: var(--accent); }
.cal-chip.primary {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--accent);
}
.cal-chip.primary b { color: var(--accent); }
.cal-chip.on { border-color: var(--accent); color: var(--accent); }

.cal-pick {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-faint);
  background: var(--panel-soft);
}
.cal-pick:hover { border-color: var(--accent-line); color: var(--accent); }
/* 原生日期输入铺满按钮，点哪儿都能弹日历 */
.cal-pick input[type="date"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color-scheme: light dark;
}

.cal-scroll {
  overflow-y: auto;
  padding: 8px 10px 10px;
  scrollbar-width: thin;
}

.cal-month { border-radius: var(--radius-sm); }
.cal-month + .cal-month { margin-top: 2px; }

.cal-m {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 5px 6px;
  border-radius: 7px;
  text-align: left;
  font-size: 12.5px;
  color: var(--text-mid);
}
.cal-m:hover { background: var(--hover); }
.cal-chev { width: 10px; font-size: 9px; color: var(--text-faint); }
.cal-m-name { flex: 1 1 auto; font-weight: 500; }
.cal-m-count {
  font-size: 10.5px;
  color: var(--text-faint);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 6px;
  line-height: 16px;
}

.cal-weeks { padding-left: 16px; }
.cal-week { margin-top: 1px; }

.cal-w {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  border-radius: 7px;
  font-size: 12px;
  color: var(--text-soft);
  width: 100%;
  text-align: left;
}
.cal-w:hover { background: var(--hover); color: var(--text); }
.cal-w.current { color: var(--accent); font-weight: 600; }
.cal-w .cal-chev { font-size: 8px; }

.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  padding: 3px 0 4px 18px;
}

.cal-d {
  position: relative;
  height: 26px;
  border-radius: 7px;
  font-size: 11.5px;
  color: var(--text-mid);
  display: grid;
  place-items: center;
  transition: background .12s;
}
.cal-d:hover { background: var(--hover); }
.cal-d.has::after {
  content: "";
  position: absolute;
  bottom: 3px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .85;
}
.cal-d.today { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.cal-d.active { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent); font-weight: 600; }
/* 未来日期：颜色更淡，鼓励提前规划 */
.cal-d.future { color: var(--text-faint); }
.cal-d.future:hover { color: var(--text); }
/* 明天：虚线提示 */
.cal-d.tomorrow { box-shadow: inset 0 0 0 1.5px var(--accent-line); color: var(--accent); font-weight: 600; }
.cal-d.tomorrow.has::after { opacity: 1; }

/* ============ tag bar ============ */
.tagbar {
  flex: 0 0 auto;
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  overflow-x: auto;
  background: var(--panel);
  border-bottom: 1px solid var(--line-soft);
  scrollbar-width: none;
}
.tagbar::-webkit-scrollbar { display: none; }
.tagbar[hidden] { display: none; }

.tag-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--text-soft);
  white-space: nowrap;
  transition: all .15s;
}
.tag-chip:hover { border-color: var(--accent-line); color: var(--accent); }
.tag-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.tag-chip .n { opacity: .65; font-size: 10px; }

/* ============ timeline ============ */
.timeline {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  outline: none;
  padding-bottom: 48px;
  scroll-behavior: smooth;
}

.card {
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  padding: 14px 16px 12px;
  transition: background .15s;
}
.card.today { border-top: 2px solid var(--accent); }
.card.today:first-child { border-top: 2px solid var(--accent); }

.card-head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}

.card-title {
  flex: 1 1 auto;
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--text);
  line-height: 1.45;
}
.card.hit .card-title { font-size: 13.5px; font-weight: 600; color: var(--text-mid); }

.card-tools {
  display: flex;
  gap: 1px;
  opacity: 0;
  transition: opacity .15s;
  flex: 0 0 auto;
}
.card:hover .card-tools, .card:focus-within .card-tools { opacity: 1; }
.card-tools button {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: var(--text-faint);
  font-size: 12px;
}
.card-tools button:hover { background: var(--hover); color: var(--text); }
.card-tools button.danger:hover { background: #fdecea; color: #d93025; }
.card-tools button.confirming { background: #fdecea; color: #d93025; font-size: 10px; width: auto; padding: 0 6px; }

.card-body {
  cursor: text;
  border-radius: var(--radius-sm);
  min-height: 22px;
}
.card-body:hover { background: color-mix(in srgb, var(--panel-soft) 70%, transparent); }
.card-body .empty {
  color: var(--text-faint);
  font-size: 12.5px;
  margin: 2px 0 4px;
  font-style: normal;
}

.card .excerpt {
  margin: 2px 0 6px;
  font-size: 12.5px;
  color: var(--text-soft);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card .excerpt mark {
  background: var(--mark);
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
  min-height: 0;
}
.card-meta .tag {
  font-size: 11px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 1px 7px;
  border-radius: 999px;
}
.card-meta .meta-time { font-size: 10.5px; color: var(--text-faint); margin-left: auto; }
.card-meta:empty { display: none; }

.load-more-wrap { padding: 14px 16px 22px; text-align: center; background: var(--panel); }

/* ============ editor ============ */
.editor { margin-top: 4px; }

.ed-tools {
  display: flex;
  align-items: center;
  gap: 1px;
  padding: 3px;
  margin-bottom: 6px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 10px 10px 0 0;
  border-bottom: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.ed-tools::-webkit-scrollbar { display: none; }
.ed-tools button {
  min-width: 24px;
  height: 24px;
  padding: 0 5px;
  border-radius: 6px;
  font-size: 11.5px;
  color: var(--text-soft);
  display: grid;
  place-items: center;
}
.ed-tools button:hover { background: var(--hover); color: var(--text); }
.ed-tools .spacer { flex: 1 1 auto; }

.ed-input {
  display: block;
  width: 100%;
  min-height: 72px;
  resize: none;
  border: 1px solid var(--line);
  border-radius: 0 0 10px 10px;
  background: var(--panel);
  padding: 10px 11px;
  font-size: 13.5px;
  line-height: 1.75;
  outline: none;
  transition: border-color .15s;
}
.ed-input:focus { border-color: var(--accent-line); }

.ed-preview {
  margin-top: 8px;
  padding: 10px 11px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: var(--panel-soft);
  font-size: calc(var(--font-size) - 1px);
  max-height: 300px;
  overflow: auto;
}
.ed-preview::before {
  content: "实时预览";
  display: block;
  font-size: 9.5px;
  letter-spacing: .08em;
  color: var(--text-faint);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.ed-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.ed-state { font-size: 11px; color: var(--text-faint); flex: 1 1 auto; }
.ed-state.saved::before { content: "✓ "; color: #1a7f37; }

.btn-primary {
  padding: 5px 12px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
}
.btn-primary:hover { filter: brightness(1.06); }

.btn-ghost {
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 12px;
}
.btn-ghost:hover { background: var(--hover); color: var(--text); }

/* ============ status bar ============ */
.statusbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-top: 1px solid var(--line);
  background: var(--panel);
  font-size: 11px;
  color: var(--text-faint);
}
.statusbar .spacer { flex: 1 1 auto; }
.sync-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-faint);
  flex: 0 0 auto;
}
.sync-dot[data-state="synced"] { background: #2da44e; }
.sync-dot[data-state="syncing"] { background: var(--accent); animation: pulse 1.1s infinite; }
.sync-dot[data-state="error"] { background: #d93025; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

.link { color: var(--text-soft); font-size: 11px; }
.link:hover { color: var(--accent); }

/* ============ menu ============ */
.menu {
  position: absolute;
  top: 44px;
  right: 10px;
  z-index: 60;
  min-width: 208px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 5px;
  animation: pop .12s ease-out;
}
.menu[hidden] { display: none; }
.menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 7px 10px;
  border-radius: 7px;
  font-size: 12.5px;
  color: var(--text-mid);
}
.menu button:hover { background: var(--hover); color: var(--text); }
.menu-sep { height: 1px; background: var(--line); margin: 4px 6px; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ============ modal ============ */
.modal {
  position: absolute;
  inset: 0;
  z-index: 80;
  background: rgba(30, 22, 14, .38);
  display: grid;
  place-items: center;
  padding: 18px;
  backdrop-filter: blur(1.5px);
}
.modal[hidden] { display: none; }

.modal-card {
  position: relative;
  width: 100%;
  max-width: 300px;
  background: var(--panel);
  border-radius: 16px;
  padding: 22px 20px 16px;
  text-align: center;
  box-shadow: var(--shadow);
  animation: pop .16s ease-out;
}
.modal-card h2 { margin: 0 0 4px; font-size: 15px; }
.modal-sub { margin: 0 0 16px; font-size: 11.5px; color: var(--text-soft); line-height: 1.6; }
.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  color: var(--text-faint);
  font-size: 11px;
}
.modal-close:hover { background: var(--hover); color: var(--text); }

.qr-wrap {
  display: grid;
  place-items: center;
  min-height: 190px;
  padding: 10px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.qr-wrap img { width: 190px; height: 190px; display: block; border-radius: 6px; }
.qr-wrap .qr-loading, .qr-wrap .qr-error { font-size: 12px; color: #6b7280; text-align: center; line-height: 1.7; padding: 0 8px; }
.qr-wrap .qr-error { color: #b45309; }

.qr-actions { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.qr-actions button {
  padding: 8px 12px;
  border-radius: 9px;
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-mid);
}
.qr-actions button:hover { background: var(--hover); }
.qr-actions .dev { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); font-weight: 500; }
.modal-card .ghost { margin-top: 10px; font-size: 11.5px; color: var(--text-faint); }
.modal-card .ghost:hover { color: var(--text); }

/* ============ toast ============ */
.toast {
  position: absolute;
  left: 50%;
  bottom: 42px;
  transform: translateX(-50%);
  background: rgba(31, 35, 40, .94);
  color: #fff;
  font-size: 11.5px;
  padding: 7px 13px;
  border-radius: 999px;
  z-index: 90;
  max-width: 86%;
  text-align: center;
  animation: pop .14s ease-out;
}
.toast[hidden] { display: none; }

/* ============ markdown ============ */
.md { font-size: var(--font-size); color: var(--text); word-break: break-word; }
.md > *:first-child { margin-top: 0; }
.md > *:last-child { margin-bottom: 0; }

.md .md-h1 { font-size: 1.28em; font-weight: 700; margin: .7em 0 .35em; line-height: 1.4; }
.md .md-h2 { font-size: 1.16em; font-weight: 700; margin: .65em 0 .3em; line-height: 1.4; }
.md .md-h3 { font-size: 1.06em; font-weight: 600; margin: .6em 0 .3em; }
.md .md-h4, .md .md-h5, .md .md-h6 { font-size: 1em; font-weight: 600; margin: .5em 0 .25em; color: var(--text-mid); }

.md .md-p { margin: .4em 0; line-height: 1.72; }
.md .md-list { margin: .35em 0; padding-left: 1.25em; }
.md .md-list li { margin: .12em 0; line-height: 1.7; }
.md .md-list .md-list { margin: .1em 0; }
.md .md-task { font-size: .95em; color: var(--accent); margin-right: 2px; cursor: pointer; user-select: none; }
.md .md-task-done { color: var(--text-faint); cursor: pointer; }
.md .md-remind { font-size: 11px; color: var(--accent); background: var(--accent-soft); border-radius: 6px; padding: 0 6px; margin-left: 4px; white-space: nowrap; }

/* ---- 待办提醒部件 ---- */
.todo-widget { border-color: var(--accent-line); }
.todo-widget .todo-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.todo-row { display: flex; align-items: center; gap: 8px; font-size: 13.5px; line-height: 1.5; }
.todo-row .md-task { font-size: 15px; margin-right: 0; }
.todo-row .todo-text { flex: 1 1 auto; min-width: 0; }
.todo-row .todo-meta { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.todo-row .todo-bell { font-size: 11px; color: var(--accent); white-space: nowrap; }
.todo-row .todo-meta.overdue .todo-bell { color: #d93025; }
.todo-row .todo-meta .tag-chip { font-size: 11px; padding: 1px 7px; cursor: pointer; }

.md .md-quote {
  margin: .5em 0;
  padding: 3px 12px;
  border-left: 3px solid var(--accent-line);
  background: var(--panel-soft);
  border-radius: 0 6px 6px 0;
  color: var(--text-mid);
}
.md .md-quote .md-p { margin: .25em 0; }

.md .md-code {
  position: relative;
  margin: .5em 0;
  padding: 10px 12px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: auto;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
}
.md .md-code code { font-family: inherit; background: none; padding: 0; }
.md .md-code-lang {
  position: absolute;
  top: 5px;
  right: 8px;
  font-size: 9.5px;
  color: var(--text-faint);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.md .md-inline-code {
  font-family: var(--mono);
  font-size: .88em;
  background: var(--panel-soft);
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  padding: 1px 5px;
}
.md .md-link, .md .md-wikilink { color: var(--accent); text-decoration: none; border-bottom: 1px solid transparent; }
.md .md-link:hover, .md .md-wikilink:hover { border-bottom-color: var(--accent); }
.md .md-tag {
  display: inline-block;
  font-size: .84em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0 6px;
  border-radius: 999px;
  text-decoration: none;
  line-height: 1.6;
}
.md mark, .md .md-mark { background: var(--mark); color: inherit; border-radius: 2px; padding: 0 1px; }
.md del { color: var(--text-faint); }
.md .md-hr { border: 0; border-top: 1px solid var(--line); margin: .9em 0; }
.md .md-img { max-width: 100%; border-radius: 8px; border: 1px solid var(--line); display: block; margin: .4em 0; }
.md .md-table-wrap { overflow-x: auto; margin: .5em 0; }
.md .md-table { border-collapse: collapse; font-size: .92em; }
.md .md-table th, .md .md-table td { border: 1px solid var(--line); padding: 5px 9px; text-align: left; }
.md .md-table th { background: var(--panel-soft); font-weight: 600; }

/* 滚动条 */
.timeline::-webkit-scrollbar, .cal-scroll::-webkit-scrollbar, .ed-preview::-webkit-scrollbar { width: 7px; }
.timeline::-webkit-scrollbar-thumb, .cal-scroll::-webkit-scrollbar-thumb, .ed-preview::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 4px;
}
.timeline::-webkit-scrollbar-track { background: transparent; }
