/* ==========================================================================
   私人笔记 (LuoMuQAQ Private Notes) - 统一物理液态玻璃设计系统
   Visual Architecture: Liquid Glass Design System (VisionOS / macOS Standard)
   ========================================================================== */

:root {
  color-scheme: dark;
  --font-sans: "MiSans", "MiSans Latin", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: Consolas, "SFMono-Regular", "Cascadia Code", "Courier New", monospace;

  /* 文字系统与色阶 */
  --text-primary: rgba(240, 244, 255, 0.96);
  --text-secondary: rgba(185, 205, 235, 0.78);
  --text-tertiary: rgba(140, 165, 205, 0.62);

  /* 主题强调色 */
  --accent: #72cff3;
  --accent-strong: #8178f0;
  --accent-soft: rgba(114, 207, 243, 0.18);
  --accent-ink: #061528;
  --danger: #ff5c77;
  --danger-soft: rgba(255, 92, 119, 0.18);
  --success: #36d399;
  --success-soft: rgba(54, 211, 153, 0.18);

  /* 统一液态玻璃材质 (深色模式) */
  --glass-fill-top: rgba(255, 255, 255, 0.045);
  --glass-fill-mid: rgba(118, 148, 205, 0.012);
  --glass-fill-bottom: rgba(7, 13, 28, 0.07);
  --glass-glint: rgba(255, 255, 255, 0.18);
  --glass-line: rgba(255, 255, 255, 0.18);
  --glass-line-hover: rgba(255, 255, 255, 0.32);
  --glass-line-shadow: rgba(0, 0, 0, 0.25);
  --glass-shadow: 0 16px 36px rgba(4, 8, 22, 0.22), 0 2px 8px rgba(4, 8, 22, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 -1px 0 rgba(0, 0, 0, 0.14);
  --glass-shadow-hover: 0 22px 52px rgba(4, 8, 22, 0.3), 0 7px 20px rgba(42, 99, 190, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.24), inset 0 -1px 0 rgba(0, 0, 0, 0.16);
  --glass-filter: blur(12px) saturate(125%) brightness(102%);
  --dropdown-filter: blur(18px) saturate(114%) brightness(95%);
  --bg-base: #12192b;

  /* 全屏暗色均一覆盖层 */
  --overlay: linear-gradient(180deg, rgba(4, 8, 20, 0.52) 0%, rgba(4, 8, 20, 0.52) 100%);

  /* 动画缓动曲线 (Apple Fluid Momentum) */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);

  /* 圆角规范 */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
}

[data-theme="light"] {
  color-scheme: light;
  --text-primary: #0f192d;
  --text-secondary: rgba(20, 32, 58, 0.88);
  --text-tertiary: rgba(35, 52, 85, 0.72);
  --bg-base: #ebf1fa;

  --accent: #087cb7;
  --accent-strong: #5147c9;
  --accent-soft: rgba(8, 124, 183, 0.16);
  --accent-ink: #ffffff;
  --danger: #e02e4c;
  --danger-soft: rgba(224, 46, 76, 0.14);
  --success: #10b981;
  --success-soft: rgba(16, 185, 129, 0.14);

  /* 浅色模式高通透水晶玻璃材质 */
  --glass-fill-top: rgba(255, 255, 255, 0.16);
  --glass-fill-mid: rgba(242, 247, 255, 0.04);
  --glass-fill-bottom: rgba(207, 222, 246, 0.02);
  --glass-glint: rgba(255, 255, 255, 0.35);
  --glass-line: rgba(255, 255, 255, 0.62);
  --glass-line-hover: rgba(255, 255, 255, 0.82);
  --glass-line-shadow: rgba(59, 83, 132, 0.12);
  --glass-shadow: 0 16px 36px rgba(41, 58, 96, 0.08), 0 2px 8px rgba(49, 67, 109, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.65), inset 0 -1px 0 rgba(70, 100, 160, 0.08);
  --glass-shadow-hover: 0 22px 52px rgba(37, 58, 111, 0.13), 0 7px 20px rgba(77, 127, 255, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.75), inset 0 -1px 0 rgba(70, 100, 160, 0.1);
  --glass-filter: blur(12px) saturate(120%) brightness(104%);
  --dropdown-filter: blur(18px) saturate(110%) brightness(102%);
  --overlay: linear-gradient(180deg, rgba(235, 241, 255, 0.22) 0%, rgba(235, 241, 255, 0.22) 100%);
}

/* ==========================================================================
   全局重置与无障碍跳链
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  min-width: 320px;
  font-size: 16px;
  height: 100%;
  height: 100dvh;
}

body {
  min-width: 320px;
  height: 100%;
  height: 100dvh;
  margin: 0;
  overflow: hidden;
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.5;
  background: var(--bg-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background 0.35s ease, color 0.3s ease;
}

button, input, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: transparent;
  outline: none;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

[hidden] {
  display: none !important;
}

/* 无障碍 Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  z-index: 10000;
  padding: 10px 18px;
  background: var(--bg-base);
  color: var(--text-primary);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus-visible {
  top: 20px;
  outline: none;
}

:focus-visible {
  outline: none !important;
  box-shadow: 0 0 0 2.5px rgba(255, 255, 255, 0.85), 0 0 0 4.5px rgba(4, 8, 22, 0.6) !important;
}

[data-theme="light"] :focus-visible {
  box-shadow: 0 0 0 2.5px rgba(20, 32, 58, 0.8), 0 0 0 4.5px rgba(255, 255, 255, 0.9) !important;
}

/* ==========================================================================
   背景壁纸与环境微光层 (Wallpaper & Ambient System)
   ========================================================================== */
.bg-wallpaper, .bg-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  min-height: 100vh;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.bg-wallpaper {
  z-index: -2;
  background: var(--bg-base) url("bg.webp") center / cover no-repeat;
  transition: background-image 0.4s ease;
}

[data-theme="dark"] .bg-wallpaper {
  background-image: url("bg-dark.webp");
}

@media (orientation: portrait) {
  .bg-wallpaper {
    background-image: url("bg-portrait.webp");
  }
  [data-theme="dark"] .bg-wallpaper {
    background-image: url("bg-portrait-dark.webp");
    filter: brightness(94%);
  }
}

.bg-overlay {
  z-index: -1;
  background: var(--overlay);
  transition: background 0.5s var(--ease-smooth);
}

/* 环境微光流体光球 */
.ambient-orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.45;
  z-index: -1;
  transition: opacity 0.5s ease;
}

.ambient-orb-one {
  top: 8%;
  left: 15%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(114, 207, 243, 0.28) 0%, rgba(129, 120, 240, 0.08) 70%, transparent 100%);
}

.ambient-orb-two {
  bottom: 10%;
  right: 12%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(129, 120, 240, 0.24) 0%, rgba(114, 207, 243, 0.06) 70%, transparent 100%);
}

[data-theme="light"] .ambient-orb {
  opacity: 0.35;
}

/* ==========================================================================
   物理液态玻璃核心基类 (Unified Liquid Glass System)
   ========================================================================== */
.liquid-glass {
  position: relative;
  border: 1px solid var(--glass-line);
  background-clip: padding-box;
  background: linear-gradient(135deg, var(--glass-fill-top) 0%, var(--glass-fill-mid) 48%, var(--glass-fill-bottom) 100%);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--glass-filter);
  backdrop-filter: var(--glass-filter);
  overflow: hidden;
  transition: border-color 0.3s var(--ease-smooth), box-shadow 0.35s var(--ease-smooth);
}

.liquid-glass::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  pointer-events: none;
  background: radial-gradient(130% 90% at 16% -20%, var(--glass-glint) 0%, transparent 68%),
              linear-gradient(115deg, rgba(255, 255, 255, 0.03) 0%, transparent 45%);
  opacity: 0.85;
}

.liquid-glass::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 -1px 0 var(--glass-line-shadow);
}

.liquid-glass > * {
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   rdev/liquid-glass-react 本地物理折射与边缘反光体系
   背景像素在独立层折射，内容保持清晰；轮廓只绘制一次遮罩高光，无双层接缝。
   ========================================================================== */
.rdev-glass-defs {
  position: fixed;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.rdev-glass {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 0 !important;
  background: transparent !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: transform 0.38s var(--ease-spring), box-shadow 0.38s var(--ease-smooth);
}

[data-theme="light"] .rdev-glass {
  box-shadow: 0 12px 36px rgba(37, 50, 86, 0.1);
}

.rdev-glass-warp {
  position: absolute !important;
  z-index: 0 !important;
  inset: 0;
  display: block;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(10, 16, 34, 0.025));
  -webkit-backdrop-filter: blur(2.5px) saturate(122%);
  backdrop-filter: blur(2.5px) saturate(122%);
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

[data-theme="light"] .rdev-glass-warp {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.065), rgba(210, 224, 249, 0.015));
  -webkit-backdrop-filter: blur(2.5px) saturate(116%);
  backdrop-filter: blur(2.5px) saturate(116%);
}

.rdev-glass > :not(.rdev-glass-warp):not(.liquid-ripple) {
  position: relative;
  z-index: 2;
}

/* 点击波纹必须脱离按钮排版，否则会把按钮瞬间撑大。 */
.rdev-glass > .liquid-ripple {
  position: absolute !important;
  z-index: 10 !important;
}

.rdev-glass::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block !important;
  border-radius: inherit;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(120% 92% at 18% -18%, rgba(255, 255, 255, 0.08), transparent 68%),
    linear-gradient(115deg, rgba(255, 255, 255, 0.015), transparent 48%);
  opacity: 0.30;
  transition: opacity 0.35s ease;
}

[data-theme="light"] .rdev-glass::before {
  background:
    radial-gradient(120% 92% at 18% -18%, rgba(255, 255, 255, 0.18), transparent 68%),
    linear-gradient(115deg, rgba(255, 255, 255, 0.03), transparent 48%);
  opacity: 0.34;
}

.rdev-glass::after {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: block !important;
  padding: 1px;
  border: 0;
  border-radius: inherit;
  content: "";
  pointer-events: none;
  background: linear-gradient(
    138deg,
    rgba(255, 255, 255, 0.42) 0%,
    rgba(255, 255, 255, 0.18) 30%,
    rgba(255, 255, 255, 0.08) 56%,
    rgba(120, 175, 255, 0.14) 80%,
    rgba(255, 255, 255, 0.28) 100%
  );
  box-shadow: none !important;
  opacity: 0.68;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: opacity 0.35s ease, background 0.35s ease;
}

[data-theme="light"] .rdev-glass::after {
  background: linear-gradient(
    138deg,
    rgba(255, 255, 255, 0.75) 0%,
    rgba(255, 255, 255, 0.32) 30%,
    rgba(255, 255, 255, 0.16) 58%,
    rgba(90, 125, 190, 0.22) 100%
  );
  opacity: 0.75;
}

@media (hover: hover) and (pointer: fine) {
  .rdev-glass:hover::before {
    opacity: 0.88;
  }

  .rdev-glass:hover::after {
    opacity: 0.95;
  }
}

/* 主按钮沿用普通按钮的玻璃材质，仅保留语义化文字颜色。 */
.rdev-glass.btn-primary {
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--glass-fill-top), var(--glass-fill-bottom)) !important;
}

.rdev-glass.btn-danger {
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--glass-fill-top), var(--glass-fill-bottom)) !important;
}

.rdev-glass.btn {
  box-shadow: 0 4px 14px rgba(3, 8, 23, 0.18);
}

@media (hover: hover) and (pointer: fine) {
  .rdev-glass.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(4, 8, 22, 0.3), 0 0 14px rgba(110, 200, 242, 0.18);
  }
}

.rdev-glass.btn:active {
  transform: scale(0.96);
  transition-duration: 0.1s;
}

.rdev-glass.btn:focus:not(:focus-visible) {
  box-shadow: 0 4px 14px rgba(3, 8, 23, 0.18) !important;
}

/* ==========================================================================
   首屏丝滑入场动效引擎 (Independent Translate + Transform Fallback)
   ========================================================================== */
.app-preparing .app-container,
.app-preparing .auth-view {
  visibility: hidden;
}

.app-preparing .app-container *,
.app-preparing .auth-view * {
  transition: none !important;
}

@keyframes glassEnterFromTop {
  from {
    transform: translateY(-30px);
    translate: 0 -30px;
  }
  to {
    transform: translateY(0);
    translate: 0 0;
  }
}

@keyframes glassEnterFromBottom {
  from {
    transform: translateY(38px);
    translate: 0 38px;
  }
  to {
    transform: translateY(0);
    translate: 0 0;
  }
}

html.app-entering .topbar {
  animation: glassEnterFromTop 0.68s var(--ease-smooth) both;
  will-change: transform, translate;
}

html.app-entering .workspace,
html.app-entering .login-card-container {
  animation: glassEnterFromBottom 0.72s 70ms var(--ease-smooth) both;
  will-change: transform, translate;
}

/* ==========================================================================
   通用交互组件 (Buttons, Inputs, Ripples)
   ========================================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  background: linear-gradient(135deg, var(--glass-fill-top), var(--glass-fill-bottom));
  background-clip: padding-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 -1px 0 var(--glass-line-shadow), 0 3px 10px rgba(0, 0, 0, 0.1);
  -webkit-backdrop-filter: var(--glass-filter);
  backdrop-filter: var(--glass-filter);
  overflow: hidden;
  contain: paint;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
  transition: transform 0.28s var(--ease-spring), border-color 0.25s ease, box-shadow 0.28s var(--ease-smooth), background 0.25s ease;
  outline: none;
}

[data-theme="light"] .btn {
  border-color: var(--glass-line);
  background: linear-gradient(135deg, var(--glass-fill-top), var(--glass-fill-bottom));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -1px 0 var(--glass-line-shadow), 0 3px 10px rgba(35, 52, 92, 0.06);
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    transform: translateY(-2px);
    border-color: var(--glass-line-hover);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 10px 24px rgba(4, 8, 22, 0.3), 0 0 14px rgba(110, 200, 242, 0.18);
  }

  [data-theme="light"] .btn:hover {
    border-color: var(--glass-line-hover);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 10px 24px rgba(35, 52, 92, 0.14), 0 0 14px rgba(8, 124, 183, 0.12);
  }
}

.btn:active {
  transform: scale(0.96);
  transition-duration: 0.1s;
}

.btn:focus:not(:focus-visible) {
  outline: none !important;
  border-color: var(--glass-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 -1px 0 var(--glass-line-shadow), 0 3px 10px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  color: var(--text-primary);
  border-color: var(--glass-line);
  background: linear-gradient(135deg, var(--glass-fill-top), var(--glass-fill-bottom));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 -1px 0 var(--glass-line-shadow), 0 3px 10px rgba(0, 0, 0, 0.1);
}

.btn-danger {
  color: var(--text-primary);
  border-color: var(--glass-line);
  background: linear-gradient(135deg, var(--glass-fill-top), var(--glass-fill-bottom));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 -1px 0 var(--glass-line-shadow), 0 3px 10px rgba(0, 0, 0, 0.1);
}

.btn-danger:hover {
  border-color: var(--glass-line-hover);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 10px 24px rgba(4, 8, 22, 0.3), 0 0 14px rgba(110, 200, 242, 0.18);
}

.btn-icon {
  position: relative !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  max-width: 42px !important;
  max-height: 42px !important;
  flex: 0 0 42px !important;
  aspect-ratio: 1 / 1 !important;
  box-sizing: border-box !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: var(--radius-md);
  overflow: hidden !important;
}

.btn-icon svg {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 20px !important;
  height: 20px !important;
  margin: 0 !important;
  transform-box: fill-box;
  transform-origin: center center;
  pointer-events: none;
  z-index: 2;
}

/* 3态主题图标精准显示控制 */
#theme-icon-sun, #theme-icon-moon, #theme-icon-auto {
  display: none !important;
}

[data-theme-mode="light"] #theme-icon-sun {
  display: block !important;
}

[data-theme-mode="dark"] #theme-icon-moon {
  display: block !important;
}

[data-theme-mode="auto"] #theme-icon-auto,
:root:not([data-theme-mode]) #theme-icon-auto {
  display: block !important;
}

.btn-ghost {
  min-height: 32px;
  padding: 4px 10px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  background: transparent;
  box-shadow: none;
  font-size: 0.82rem;
}

.btn-ghost:hover {
  transform: none;
  color: var(--text-primary);
  border-color: var(--glass-line);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

/* 水波纹效果 */
.liquid-ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: rippleAnimation 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.1) 70%, transparent 100%);
  pointer-events: none;
  z-index: 10;
}

@keyframes rippleAnimation {
  to {
    transform: scale(2.4);
    opacity: 0;
  }
}

/* 图标基类 */
.icon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 1.85;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 品牌 Logo 标识：固定透明图标，不参与玻璃折射和悬停动效。 */
.brand-mark {
  position: relative !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
  flex: 0 0 36px !important;
  aspect-ratio: 1 / 1 !important;
  box-sizing: border-box !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  user-select: none;
  overflow: visible !important;
  transition: none !important;
}

.brand-mark:hover,
.brand-mark:active {
  transform: none !important;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  transition: none !important;
}

.brand-mark::before,
.brand-mark::after,
.brand-mark > .rdev-glass-warp {
  display: none !important;
}

.brand-mark-img {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 32px !important;
  height: 32px !important;
  display: block !important;
  margin: 0 !important;
  object-fit: contain !important;
  pointer-events: none;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.18));
  z-index: 2;
}

/* 输入框控件体系 */
.input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  backdrop-filter: blur(10px) saturate(120%);
  font-size: 0.94rem;
  transition: border-color 0.2s var(--ease-smooth), box-shadow 0.2s var(--ease-smooth), background 0.2s ease;
}

[data-theme="light"] .input {
  background: rgba(255, 255, 255, 0.65);
}

.input::placeholder {
  color: var(--text-tertiary);
}

.input:focus {
  border-color: var(--accent);
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

[data-theme="light"] .input:focus {
  background: #ffffff;
}

/* ==========================================================================
   登录认证视图 (Auth View) & 首帧无闪烁会话切换
   ========================================================================== */
html.session-authenticated #authView {
  display: none !important;
}

html.session-authenticated #appView {
  display: flex !important;
}

html.session-unauthenticated #authView {
  display: grid !important;
}

html.session-unauthenticated #appView {
  display: none !important;
}

.auth-view {
  min-height: 100%;
  height: 100%;
  height: 100dvh;
  overflow-y: auto;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

.auth-stack {
  width: min(100%, 450px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.login-card {
  padding: 32px;
  border-radius: var(--radius-xl);
}

.login-card h2 {
  margin: 4px 0 6px;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.login-eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.login-helper {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.field {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrap .input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-tertiary);
  pointer-events: none;
}

.input-wrap .input {
  padding-left: 42px;
}

.input-wrap .input.has-toggle {
  padding-right: 46px;
}

.password-toggle {
  position: absolute;
  right: 4px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--text-tertiary);
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background 0.2s ease;
}

.password-toggle:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.login-card .btn-submit {
  width: 100%;
  margin-top: 24px;
  min-height: 46px;
  font-size: 0.96rem;
}

.auth-error {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 92, 119, 0.35);
  border-radius: var(--radius-md);
  color: #ffccd5;
  background: rgba(255, 65, 90, 0.14);
  font-size: 0.88rem;
}

[data-theme="light"] .auth-error {
  color: #c91836;
  background: rgba(255, 65, 90, 0.1);
}

.auth-footer-note {
  margin: 0;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.78rem;
  line-height: 1.5;
}

/* ==========================================================================
   笔记主工作区视图 (App View)
   ========================================================================== */
.app-container {
  width: min(1440px, calc(100% - 36px));
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 auto;
  padding: 16px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  box-sizing: border-box;
  background: transparent;
}

/* 顶栏 (Top Bar) - 锁定顶部永不随页面滑动 */
.topbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 18px 10px 12px;
  border-radius: var(--radius-lg);
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 0;
  padding-left: 0;
}

.topbar-title-group {
  min-width: 0;
}

.topbar-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.topbar-subtitle {
  display: block;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
}

.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 三个主体玻璃组件各自裁剪外溢投影，组件之间只显示页面背景。 */
.glass-region {
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: transparent;
}

.glass-region-topbar {
  flex: 0 0 auto;
  border-radius: var(--radius-lg);
}

/* 工作区网格 (Workspace Grid) - 空间锁定，独立下发滚动权 */
.workspace {
  min-height: 0;
  flex: 1;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 16px;
  overflow: hidden;
  background: transparent;
}

.glass-region-sidebar,
.glass-region-content {
  height: 100%;
  border-radius: var(--radius-lg);
}

/* 侧边栏 (Sidebar) - 整体锁定，内部笔记列表独立滚动 */
.sidebar {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.sidebar-head {
  flex-shrink: 0;
  padding: 16px;
  border-bottom: 1px solid var(--glass-line);
}

.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-wrap .search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-tertiary);
  pointer-events: none;
}

.search-wrap .search-input {
  padding-left: 40px;
  padding-right: 36px;
  min-height: 40px;
  font-size: 0.88rem;
}

.search-clear-btn {
  position: absolute;
  right: 6px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--text-tertiary);
  border-radius: var(--radius-sm);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.search-clear-btn.show {
  opacity: 1;
  pointer-events: auto;
}

.search-clear-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  color: var(--text-tertiary);
  font-size: 0.78rem;
}

.notes-list {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 笔记列表项卡片 */
.note-item {
  width: 100%;
  padding: 14px;
  text-align: left;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: transform 0.28s var(--ease-spring), background 0.2s var(--ease-smooth), border-color 0.2s var(--ease-smooth), box-shadow 0.25s ease;
}

[data-theme="light"] .note-item {
  background: rgba(255, 255, 255, 0.45);
}

.note-item:hover {
  transform: translateY(-2px);
  border-color: var(--glass-line);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 18px rgba(4, 8, 22, 0.12);
}

[data-theme="light"] .note-item:hover {
  background: rgba(255, 255, 255, 0.85);
}

.note-item.selected {
  border-color: rgba(114, 207, 243, 0.45);
  background: linear-gradient(130deg, rgba(114, 207, 243, 0.16) 0%, rgba(129, 120, 240, 0.08) 100%);
  box-shadow: 0 8px 24px rgba(42, 99, 190, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

[data-theme="light"] .note-item.selected {
  border-color: rgba(8, 124, 183, 0.4);
  background: linear-gradient(130deg, rgba(8, 124, 183, 0.12) 0%, rgba(81, 71, 201, 0.06) 100%);
  box-shadow: 0 8px 24px rgba(8, 124, 183, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.note-item-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.note-item-excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 6px 0 8px;
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.5;
}

.note-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-tertiary);
  font-size: 0.75rem;
}

.note-time-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ==========================================================================
   主面板区 (Preview & Editor Panels) - 锁定头部，正文独立滚动
   ========================================================================== */
.preview-panel, .editor-panel {
  height: 100%;
  min-height: 0;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* 预览视图 (Preview View) */
.preview-head {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--glass-line);
}

/* 预览标题栏与正文框使用和侧边栏一致的连续玻璃材质。 */
.preview-head.liquid-glass {
  border-radius: var(--radius-md);
  margin: 0;
}

.preview-head-left {
  min-width: 0;
}

.preview-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.preview-title {
  margin: 4px 0 0;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
}

.preview-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  color: var(--text-tertiary);
  font-size: 0.8rem;
}

.preview-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.preview-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.preview-body {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px 24px;
  overflow: hidden;
}

.content-surface {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  background: rgba(5, 11, 27, 0.25);
  -webkit-backdrop-filter: blur(14px) saturate(118%);
  backdrop-filter: blur(14px) saturate(118%);
  overflow-wrap: anywhere;
  line-height: 1.8;
  font-size: 0.96rem;
}

.content-surface.liquid-glass {
  border-radius: var(--radius-md);
  background: rgba(8, 15, 32, 0.34) !important;
  -webkit-backdrop-filter: blur(17px) saturate(124%) brightness(102%) !important;
  backdrop-filter: blur(17px) saturate(124%) brightness(102%) !important;
  scrollbar-gutter: stable;
}

[data-theme="light"] .content-surface {
  background: rgba(245, 249, 255, 0.34) !important;
}

[data-theme="light"] .content-surface.liquid-glass {
  background: rgba(245, 249, 255, 0.34) !important;
  -webkit-backdrop-filter: blur(10px) saturate(110%) brightness(103%) !important;
  backdrop-filter: blur(10px) saturate(110%) brightness(103%) !important;
}

/* Markdown 排版渲染引擎 */
.markdown-body {
  line-height: 1.75;
}

.markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4 {
  margin: 1.2em 0 0.5em;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.markdown-body h1 { font-size: 1.6rem; border-bottom: 1px solid var(--glass-line); padding-bottom: 8px; }
.markdown-body h2 { font-size: 1.35rem; }
.markdown-body h3 { font-size: 1.15rem; }
.markdown-body p { margin: 0.8em 0; }
.markdown-body ul, .markdown-body ol { padding-left: 24px; margin: 0.8em 0; }
.markdown-body li { margin: 0.35em 0; }
.markdown-body hr { border: none; height: 1px; background: var(--glass-line); margin: 24px 0; }

.markdown-body code {
  padding: 2px 6px;
  border: 1px solid var(--glass-line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--accent);
}

[data-theme="light"] .markdown-body code {
  background: rgba(8, 124, 183, 0.08);
}

.markdown-body pre {
  position: relative;
  overflow-x: auto;
  padding: 14px 16px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-md);
  background: rgba(2, 6, 18, 0.65);
  margin: 16px 0;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.code-lang {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.btn-copy-code {
  padding: 3px 8px;
  border: 1px solid var(--glass-line);
  border-radius: 6px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.74rem;
  font-family: var(--font-sans);
  transition: all 0.15s ease;
}

.btn-copy-code:hover {
  color: var(--text-primary);
  border-color: var(--glass-line-hover);
  background: rgba(255, 255, 255, 0.14);
}

.markdown-body pre code {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  font-size: 0.9em;
  line-height: 1.65;
}

.task-item {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: -20px;
}

.task-item input[type="checkbox"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
}

.markdown-body blockquote {
  margin: 1.2em 0;
  padding: 8px 18px;
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  background: rgba(114, 207, 243, 0.06);
  color: var(--text-secondary);
}

.markdown-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.markdown-body th, .markdown-body td {
  padding: 10px 14px;
  border: 1px solid var(--glass-line);
  text-align: left;
}

.markdown-body th {
  background: rgba(255, 255, 255, 0.06);
  font-weight: 600;
}

/* 空状态占位 */
.empty-state {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 48px 24px;
  text-align: center;
}

.empty-state-icon {
  margin: 0 auto 16px;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-line);
}

.empty-state h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.empty-state p {
  margin: 8px 0 20px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ==========================================================================
   编辑视图 (Editor Panel)
   ========================================================================== */
.editor-panel {
  padding: 20px 24px;
}

.editor-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--glass-line);
}

.editor-head h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.editor-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.editor-title-wrap {
  flex-shrink: 0;
  position: relative;
}

.editor-title-input {
  min-height: 48px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  padding: 0 16px;
  border-radius: var(--radius-md);
}

.editor-counter {
  margin-top: 5px;
  color: var(--text-tertiary);
  font-size: 0.76rem;
  font-family: var(--font-mono);
  text-align: right;
}

/* Markdown 快捷工具栏 */
.format-toolbar {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 10px 0;
  padding: 8px 12px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
}

.format-btn {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 700;
  transition: color 0.15s ease, background 0.15s ease;
}

.format-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.format-divider {
  width: 1px;
  height: 18px;
  background: var(--glass-line);
  margin: 0 4px;
}

.editor-textarea {
  min-height: 0;
  flex: 1;
  resize: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px;
  border-radius: var(--radius-md);
  line-height: 1.8;
  font-size: 0.96rem;
  font-family: var(--font-sans);
}

.editor-status-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
}

.status-badge.success {
  color: #34d399;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.28);
}

.status-badge.error {
  color: #ff6b81;
  background: rgba(255, 107, 129, 0.12);
  border: 1px solid rgba(255, 107, 129, 0.28);
}

/* ==========================================================================
   模态弹窗与 Toast 消息通知 (Modal & Toast System)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 6, 18, 0.58);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: modalFadeIn 0.25s ease forwards;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  width: min(100%, 420px);
  padding: 28px;
  border-radius: var(--radius-xl);
  transform: scale(0.94);
  animation: modalPopIn 0.32s var(--ease-spring) forwards;
}

@keyframes modalPopIn {
  to {
    transform: scale(1);
  }
}

.modal-card h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-card p {
  margin: 10px 0 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

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

/* Toast 浮动提示 */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  min-height: 48px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: auto;
  transform: translateY(16px) scale(0.96);
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ==========================================================================
   响应式断点适配 (Responsive Breakpoints)
   ========================================================================== */
@media (max-width: 960px) {
  .workspace {
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 14px;
  }
}

@media (max-width: 820px) {
  body {
    overflow-y: auto;
  }

  .app-container {
    width: calc(100% - 24px);
    height: auto;
    min-height: 100dvh;
    max-height: none;
    padding: 14px 0 20px;
    gap: 14px;
    overflow: visible;
  }

  .workspace {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .glass-region-sidebar,
  .glass-region-content {
    height: auto;
  }

  .sidebar {
    height: 42dvh;
    min-height: 280px;
  }

  .preview-panel, .editor-panel {
    min-height: 520px;
    height: auto;
  }
}

@media (max-width: 580px) {
  .app-container {
    width: calc(100% - 16px);
    padding: 10px 0 16px;
    gap: 12px;
  }

  .topbar {
    gap: 8px;
    padding: 8px;
    border-radius: var(--radius-md);
  }

  .topbar-brand {
    gap: 6px;
  }

  .topbar-actions {
    gap: 6px;
  }

  .topbar-actions #btnLogout span {
    display: none;
  }

  .topbar-actions #btnLogout {
    width: 40px;
    min-width: 40px;
    padding: 0;
  }

  .topbar-subtitle, .account-chip {
    display: none;
  }

  .topbar-actions .btn-text-hide span {
    display: none;
  }

  .topbar-actions .btn-text-hide {
    padding: 0;
    width: 40px;
    min-width: 40px;
  }

  .login-card {
    padding: 24px 18px;
  }

  .preview-head, .preview-body, .editor-panel {
    padding: 16px;
  }

  .toast-container {
    bottom: 16px;
    right: 16px;
    left: 16px;
  }
  
  .toast {
    width: 100%;
    justify-content: center;
  }
}

/* 自定义滚动条 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: rgba(20, 32, 58, 0.2);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.32);
}

/* 圆角滚动容器：给滚动槽首尾留出安全距离，避免滚动条越过玻璃边缘。 */
.content-surface,
.notes-list,
.editor-textarea {
  scrollbar-gutter: stable;
  overscroll-behavior-y: contain;
}

.content-surface::-webkit-scrollbar,
.notes-list::-webkit-scrollbar,
.editor-textarea::-webkit-scrollbar {
  width: 7px;
}

.content-surface::-webkit-scrollbar-track,
.notes-list::-webkit-scrollbar-track,
.editor-textarea::-webkit-scrollbar-track {
  margin-block: 8px;
  border-radius: 999px;
  background: transparent;
}

.content-surface::-webkit-scrollbar-thumb,
.notes-list::-webkit-scrollbar-thumb,
.editor-textarea::-webkit-scrollbar-thumb {
  min-height: 32px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  background-clip: padding-box;
}

[data-theme="light"] .content-surface::-webkit-scrollbar-thumb,
[data-theme="light"] .notes-list::-webkit-scrollbar-thumb,
[data-theme="light"] .editor-textarea::-webkit-scrollbar-thumb {
  background: rgba(20, 32, 58, 0.24);
  background-clip: padding-box;
}

.content-surface::-webkit-scrollbar-thumb:hover,
.notes-list::-webkit-scrollbar-thumb:hover,
.editor-textarea::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.38);
  background-clip: padding-box;
}

[data-theme="light"] .content-surface::-webkit-scrollbar-thumb:hover,
[data-theme="light"] .notes-list::-webkit-scrollbar-thumb:hover,
[data-theme="light"] .editor-textarea::-webkit-scrollbar-thumb:hover {
  background: rgba(20, 32, 58, 0.34);
  background-clip: padding-box;
}
