/* anybing 的桌面 — 视觉系统（基准 macOS 26，网页起点参数） */
:root {
  --menubar-h: 30px;
  --toolbar-h: 52px;
  --traffic: 13px;
  --win-radius: 20px;
  --dock-icon: 52px;
  --desktop-icon: 60px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
html[data-theme="dark"] {
  --text: rgba(255,255,255,.92);
  --text-dim: rgba(255,255,255,.55);
  --text-faint: rgba(255,255,255,.35);
  --menubar-bg: rgba(40,40,46,.55);
  --dock-bg: rgba(50,50,58,.45);
  --win-bg: rgba(38,38,44,.92);
  --win-bg-inactive: rgba(34,34,40,.88);
  --toolbar-bg: rgba(255,255,255,.06);
  --sidebar-bg: rgba(255,255,255,.05);
  --content-bg: #232328;
  --border: rgba(255,255,255,.14);
  --border-soft: rgba(255,255,255,.08);
  --hover: rgba(255,255,255,.10);
  --selection: rgba(10,110,255,.55);
  --menu-bg: rgba(46,46,54,.72);
  --shadow: 0 24px 70px rgba(0,0,0,.55), 0 4px 18px rgba(0,0,0,.4);
  --shadow-inactive: 0 12px 40px rgba(0,0,0,.4);
  --accent: #0a6eff;
  --today: #ff453a;
  --sym-filter: invert(1);
  --field-bg: rgba(255,255,255,.10);
}
html[data-theme="light"] {
  --text: rgba(0,0,0,.88);
  --text-dim: rgba(0,0,0,.55);
  --text-faint: rgba(0,0,0,.35);
  --menubar-bg: rgba(246,246,248,.55);
  --dock-bg: rgba(250,250,252,.45);
  --win-bg: rgba(244,244,247,.94);
  --win-bg-inactive: rgba(238,238,242,.9);
  --toolbar-bg: rgba(0,0,0,.04);
  --sidebar-bg: rgba(0,0,0,.03);
  --content-bg: #ffffff;
  --border: rgba(0,0,0,.12);
  --border-soft: rgba(0,0,0,.07);
  --hover: rgba(0,0,0,.06);
  --selection: rgba(10,110,255,.35);
  --menu-bg: rgba(250,250,252,.75);
  --shadow: 0 24px 70px rgba(0,0,0,.28), 0 4px 18px rgba(0,0,0,.18);
  --shadow-inactive: 0 12px 40px rgba(0,0,0,.18);
  --accent: #0a6eff;
  --today: #ff3b30;
  --sym-filter: none;
  --field-bg: rgba(0,0,0,.06);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; }
body {
  font-family: var(--font);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  user-select: none;
  background: #000;
}
button { font-family: inherit; color: inherit; background: none; border: none; cursor: pointer; }
img { -webkit-user-drag: none; }
.sym { filter: var(--sym-filter); }
.sym-invert { filter: invert(1); }

/* ---------- 壁纸 ---------- */
#wallpaper { position: fixed; inset: 0; z-index: 0; }
.wp-sonoma { background:
  radial-gradient(60% 90% at 78% 108%, rgba(255,122,24,.85) 0%, rgba(255,122,24,0) 55%),
  radial-gradient(55% 80% at 95% 20%, rgba(140,60,220,.75) 0%, rgba(140,60,220,0) 60%),
  radial-gradient(70% 95% at 18% 95%, rgba(16,150,105,.9) 0%, rgba(16,150,105,0) 60%),
  radial-gradient(60% 70% at 40% 0%, rgba(20,120,200,.8) 0%, rgba(20,120,200,0) 55%),
  linear-gradient(160deg, #0d5c46 0%, #0a3f5c 55%, #2a1a5e 100%); }
.wp-macblue { background:
  radial-gradient(70% 90% at 85% 100%, rgba(64,156,255,.9) 0%, rgba(64,156,255,0) 55%),
  radial-gradient(60% 80% at 10% 10%, rgba(10,90,220,.9) 0%, rgba(10,90,220,0) 60%),
  linear-gradient(150deg, #061a4d 0%, #0a3d91 60%, #1463c3 100%); }
.wp-macgold { background:
  radial-gradient(65% 85% at 80% 100%, rgba(255,176,32,.95) 0%, rgba(255,176,32,0) 55%),
  radial-gradient(55% 75% at 8% 15%, rgba(255,214,120,.8) 0%, rgba(255,214,120,0) 60%),
  linear-gradient(155deg, #7a4a00 0%, #c07f10 55%, #e8a91c 100%); }
.wp-imacgreen { background:
  radial-gradient(70% 90% at 82% 105%, rgba(120,230,160,.85) 0%, rgba(120,230,160,0) 55%),
  radial-gradient(60% 80% at 12% 8%, rgba(24,160,90,.9) 0%, rgba(24,160,90,0) 60%),
  linear-gradient(155deg, #06391f 0%, #0b6b3a 60%, #12914d 100%); }
.wp-imacorange { background:
  radial-gradient(70% 90% at 82% 105%, rgba(255,190,90,.9) 0%, rgba(255,190,90,0) 55%),
  radial-gradient(60% 80% at 12% 8%, rgba(230,110,30,.9) 0%, rgba(230,110,30,0) 60%),
  linear-gradient(155deg, #6e2a00 0%, #c85a10 60%, #ef7d1a 100%); }
.wp-sky { background:
  radial-gradient(70% 90% at 85% 100%, rgba(170,220,255,.95) 0%, rgba(170,220,255,0) 55%),
  radial-gradient(60% 80% at 10% 10%, rgba(90,170,250,.9) 0%, rgba(90,170,250,0) 60%),
  linear-gradient(150deg, #2a6fd4 0%, #5ea9ec 60%, #a8d4f8 100%); }

/* ---------- 开机画面 ---------- */
#boot {
  position: fixed; inset: 0; z-index: 200;
  background: #05060f;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  transition: opacity .5s ease;
}
#boot.done { opacity: 0; pointer-events: none; }
.boot-logo { width: 84px; height: 84px; opacity: .95; }
.boot-text { color: rgba(255,255,255,.85); font-size: 15px; letter-spacing: .04em; }

/* ---------- 菜单栏 ---------- */
#menubar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--menubar-h); z-index: 100;
  display: flex; align-items: stretch; justify-content: space-between;
  padding: 0 10px 0 6px;
  background: var(--menubar-bg);
  backdrop-filter: blur(22px) saturate(1.6);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  border-bottom: 1px solid var(--border-soft);
  font-size: 13.5px;
}
.menu-left { display: flex; align-items: stretch; }
.menu-item {
  display: flex; align-items: center; padding: 0 11px; border-radius: 5px;
  color: var(--text); font-size: 13.5px; line-height: 1;
}
.menu-item.open, .menu-item:hover { background: var(--hover); }
.menu-item.app-name { font-weight: 700; }
.apple-item { padding: 0 12px; }
.menubar-sym { width: 16px; height: 16px; filter: var(--sym-filter); }
.menu-right { display: flex; align-items: center; gap: 14px; padding-right: 6px; font-size: 13.5px; }
.owner-name { font-weight: 600; }
#clock { font-variant-numeric: tabular-nums; color: var(--text); }

/* ---------- 弹出菜单 ---------- */
#menu-layer, #context-layer { position: fixed; inset: 0; z-index: 120; display: none; }
#menu-layer { top: var(--menubar-h); }
#menu-layer.open, #context-layer.open { display: block; }
.dropdown {
  position: absolute; min-width: 230px; padding: 5px;
  background: var(--menu-bg);
  backdrop-filter: blur(26px) saturate(1.6);
  -webkit-backdrop-filter: blur(26px) saturate(1.6);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 14px 44px rgba(0,0,0,.35);
  font-size: 13.5px;
  animation: menu-in .12s ease;
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
.dropdown .mi {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 4px 9px; border-radius: 6px; text-align: left; font-size: 13.5px; color: var(--text);
}
.dropdown .mi:hover:not(:disabled) { background: var(--accent); color: #fff; }
.dropdown .mi:disabled { color: var(--text-faint); cursor: default; }
.dropdown .mi .check { width: 14px; text-align: center; font-size: 12px; }
.dropdown .mi .ext { margin-left: auto; color: var(--text-faint); font-size: 12px; }
.dropdown .mi:hover .ext { color: rgba(255,255,255,.75); }
.dropdown .sep { height: 1px; background: var(--border); margin: 5px 10px; }

/* ---------- 桌面图标 ---------- */
#desktop { position: fixed; inset: var(--menubar-h) 0 0 0; z-index: 1; }
.dicon {
  position: absolute; width: 92px; padding: 6px 2px 5px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  border-radius: 10px; cursor: default; text-align: center;
}
.dicon img { width: var(--desktop-icon); height: var(--desktop-icon); pointer-events: none; }
.dicon .dlabel {
  font-size: 12.5px; line-height: 1.25; color: #fff; max-width: 88px;
  text-shadow: 0 1px 4px rgba(0,0,0,.65), 0 0 2px rgba(0,0,0,.5);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  padding: 0 3px; border-radius: 4px; pointer-events: none;
}
.dicon.selected { background: rgba(255,255,255,.14); }
.dicon.selected .dlabel { background: var(--selection); text-shadow: none; }
.dicon.dragging { opacity: .85; z-index: 5; }

/* ---------- 窗口 ---------- */
#windows { position: fixed; inset: 0; z-index: 10; pointer-events: none; }
.window {
  position: absolute; display: flex; flex-direction: column;
  min-width: 320px; min-height: 220px;
  background: var(--win-bg);
  backdrop-filter: blur(30px) saturate(1.5);
  -webkit-backdrop-filter: blur(30px) saturate(1.5);
  border: 1px solid var(--border);
  border-radius: var(--win-radius);
  box-shadow: var(--shadow-inactive);
  overflow: hidden; pointer-events: auto;
  transition: box-shadow .15s ease;
}
.window.active { box-shadow: var(--shadow); background: var(--win-bg); }
.window:not(.active) { background: var(--win-bg-inactive); }
.window.opening { animation: win-open .22s ease; }
@keyframes win-open { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
.window.minimizing, .window.restoring { transition: transform .38s cubic-bezier(.32,.72,.35,1), opacity .38s ease; }
.titlebar {
  height: var(--toolbar-h); flex: 0 0 var(--toolbar-h);
  display: flex; align-items: center; gap: 10px; padding: 0 14px;
  background: var(--toolbar-bg);
  border-bottom: 1px solid var(--border-soft);
  position: relative; touch-action: none;
}
.window:not(.active) .titlebar { opacity: .75; }
.traffic { display: flex; gap: 8px; align-items: center; flex: 0 0 auto; z-index: 2; }
.tl {
  width: var(--traffic); height: var(--traffic); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; position: relative;
  box-shadow: inset 0 0 2px rgba(0,0,0,.25);
}
.tl img { width: 9px; height: 9px; opacity: 0; transition: opacity .1s; pointer-events: none; }
.window.active .titlebar:hover .tl img, .window .traffic:hover .tl img { opacity: .6; }
.tl.close { background: #ff5f57; }
.tl.min { background: #febc2e; }
.tl.full { background: #28c840; }
.window:not(.active) .tl { background: #6d6d72; }
.win-title {
  position: absolute; left: 0; right: 0; text-align: center;
  font-size: 14px; font-weight: 600; color: var(--text);
  pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 90px;
}
.window:not(.active) .win-title { color: var(--text-dim); }
.win-body { flex: 1; display: flex; min-height: 0; background: var(--content-bg); position: relative; }
.resize-handle { position: absolute; z-index: 30; }
.rh-n { top: -4px; left: 12px; right: 12px; height: 8px; cursor: ns-resize; }
.rh-s { bottom: -4px; left: 12px; right: 12px; height: 8px; cursor: ns-resize; }
.rh-e { right: -4px; top: 12px; bottom: 12px; width: 8px; cursor: ew-resize; }
.rh-w { left: -4px; top: 12px; bottom: 12px; width: 8px; cursor: ew-resize; }
.rh-ne { right: -5px; top: -5px; width: 12px; height: 12px; cursor: nesw-resize; }
.rh-sw { left: -5px; bottom: -5px; width: 12px; height: 12px; cursor: nesw-resize; }
.rh-nw { left: -5px; top: -5px; width: 12px; height: 12px; cursor: nwse-resize; }
.rh-se { right: -5px; bottom: -5px; width: 12px; height: 12px; cursor: nwse-resize; }

/* ---------- 程序坞 ---------- */
#dock-wrap { position: fixed; left: 0; right: 0; bottom: 6px; z-index: 90; display: flex; justify-content: center; pointer-events: none; }
#dock {
  display: flex; align-items: flex-end; gap: 5px; padding: 6px 8px;
  background: var(--dock-bg);
  backdrop-filter: blur(26px) saturate(1.6);
  -webkit-backdrop-filter: blur(26px) saturate(1.6);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 14px 40px rgba(0,0,0,.35);
  pointer-events: auto;
}
.dock-item { position: relative; display: flex; flex-direction: column; align-items: center; }
.dock-item img {
  width: var(--dock-icon); height: var(--dock-icon);
  transform-origin: bottom center; will-change: transform;
}
.dock-item .dot {
  width: 4px; height: 4px; border-radius: 50%; margin-top: 2px;
  background: var(--text); opacity: 0;
}
.dock-item.running .dot { opacity: .85; }
.dock-sep { width: 1px; align-self: stretch; margin: 4px 3px; background: var(--border); }
.dock-label {
  position: absolute; bottom: calc(100% + 14px); left: 50%; transform: translateX(-50%);
  padding: 3px 10px; border-radius: 7px; white-space: nowrap;
  background: var(--menu-bg); border: 1px solid var(--border);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  font-size: 13px; color: var(--text); opacity: 0; pointer-events: none; transition: opacity .1s;
}
.dock-item:hover .dock-label { opacity: 1; }

/* ---------- 通用：边栏与工具栏按钮 ---------- */
.sidebar {
  flex: 0 0 178px; padding: 12px 8px; overflow-y: auto;
  background: var(--sidebar-bg); border-right: 1px solid var(--border-soft);
}
.sidebar h4 { font-size: 11.5px; color: var(--text-faint); font-weight: 600; padding: 8px 8px 4px; }
.side-item {
  display: flex; align-items: center; gap: 7px; width: 100%;
  padding: 4px 8px; border-radius: 6px; font-size: 13.5px; color: var(--text); text-align: left;
}
.side-item img { width: 17px; height: 17px; }
.side-item:hover { background: var(--hover); }
.side-item.sel { background: var(--selection); color: #fff; }
.main-col { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.toolbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  min-width: 30px; height: 28px; padding: 0 7px; border-radius: 7px; color: var(--text-dim);
}
.toolbtn img { width: 15px; height: 15px; filter: var(--sym-filter); }
.toolbtn:hover:not(:disabled) { background: var(--hover); color: var(--text); }
.toolbtn:disabled { opacity: .35; cursor: default; }
.toolbtn.on { background: var(--hover); color: var(--text); }
.toolbar-group { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.search-field {
  display: flex; align-items: center; gap: 5px; height: 28px; padding: 0 8px;
  background: var(--field-bg); border-radius: 7px; min-width: 130px;
}
.search-field img { width: 13px; height: 13px; filter: var(--sym-filter); opacity: .6; }
.search-field input {
  background: none; border: none; outline: none; color: var(--text);
  font-size: 13px; width: 100%; font-family: inherit; user-select: text;
}
.statusbar {
  flex: 0 0 26px; display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--text-dim); border-top: 1px solid var(--border-soft);
  background: var(--toolbar-bg);
}

/* ---------- 访达 ---------- */
.finder-grid {
  flex: 1; overflow-y: auto; padding: 16px;
  display: grid; grid-template-columns: repeat(auto-fill, 96px); gap: 8px; align-content: start;
}
.fitem {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 8px 2px 6px; border-radius: 9px; text-align: center; cursor: default;
}
.fitem img { width: 52px; height: 52px; pointer-events: none; }
.fitem span { font-size: 12.5px; line-height: 1.3; color: var(--text); padding: 0 3px; border-radius: 4px; word-break: break-all; }
.fitem.selected { background: var(--hover); }
.fitem.selected span { background: var(--selection); color: #fff; }
.finder-list { flex: 1; overflow-y: auto; padding: 6px 0; }
.frow {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 4px 16px; font-size: 13.5px; color: var(--text); text-align: left; cursor: default;
}
.frow img { width: 22px; height: 22px; }
.frow:nth-child(odd) { background: var(--toolbar-bg); }
.frow.selected { background: var(--selection); color: #fff; }
.empty-note { margin: auto; text-align: center; color: var(--text-faint); font-size: 14px; line-height: 1.7; padding: 30px; }

/* ---------- 备忘录 ---------- */
.notes-list { flex: 0 0 218px; border-right: 1px solid var(--border-soft); overflow-y: auto; background: var(--sidebar-bg); }
.note-item { display: block; width: 100%; text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border-soft); color: var(--text); }
.note-item h5 { font-size: 14px; font-weight: 600; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.note-item p { font-size: 12px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.note-item.sel { background: var(--selection); color: #fff; }
.note-item.sel p { color: rgba(255,255,255,.75); }
.note-pane { flex: 1; overflow-y: auto; padding: 26px 34px; min-width: 0; }
.md-body { user-select: text; font-size: 15.5px; line-height: 1.75; color: var(--text); max-width: 640px; }
.md-body h1 { font-size: 24px; margin: 0 0 14px; }
.md-body h2 { font-size: 19px; margin: 22px 0 8px; }
.md-body h3 { font-size: 16.5px; margin: 18px 0 6px; }
.md-body p { margin: 0 0 12px; }
.md-body ul { margin: 0 0 12px 20px; }
.md-body li { margin-bottom: 5px; }
.md-body a { color: var(--accent); text-decoration: none; }
.md-body a:hover { text-decoration: underline; }
.md-body strong { font-weight: 700; }
.note-foot { margin-top: 30px; padding-top: 12px; border-top: 1px solid var(--border-soft); color: var(--text-faint); font-size: 12.5px; }

/* ---------- 日历 ---------- */
.cal-wrap { flex: 1; display: flex; flex-direction: column; padding: 18px 22px; overflow-y: auto; }
.cal-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.cal-head .y { font-size: 21px; font-weight: 700; color: var(--today); }
.cal-head .m { font-size: 21px; font-weight: 700; }
.cal-nav { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-wd { text-align: center; font-size: 12px; color: var(--text-dim); padding: 4px 0; font-weight: 600; }
.cal-day {
  aspect-ratio: 1.35; display: flex; align-items: flex-start; justify-content: center; padding-top: 6px;
  font-size: 14.5px; border-radius: 9px; color: var(--text); position: relative;
}
.cal-day.dim { color: var(--text-faint); }
.cal-day .num { width: 27px; height: 27px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.cal-day.today .num { background: var(--today); color: #fff; font-weight: 700; }
.cal-day:hover { background: var(--hover); }

/* ---------- 浏览器 ---------- */
.addr-bar {
  flex: 1; max-width: 430px; margin: 0 auto; height: 30px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--field-bg); border-radius: 8px; font-size: 13px; color: var(--text);
  padding: 0 12px; user-select: text; white-space: nowrap; overflow: hidden;
}
.addr-bar img { width: 12px; height: 12px; filter: var(--sym-filter); opacity: .55; }
.start-page { flex: 1; overflow-y: auto; padding: 34px 30px; }
.start-page h2 { font-size: 19px; margin-bottom: 16px; }
.link-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; max-width: 640px; }
.link-card {
  display: flex; flex-direction: column; gap: 9px; align-items: flex-start;
  padding: 16px; border-radius: 14px; background: var(--sidebar-bg);
  border: 1px solid var(--border-soft); color: var(--text); text-align: left; cursor: pointer;
}
.link-card:hover { background: var(--hover); }
.link-card img { width: 38px; height: 38px; }
.link-card b { font-size: 14.5px; }
.link-card small { color: var(--text-dim); font-size: 12px; word-break: break-all; }
.start-note { margin-top: 22px; color: var(--text-dim); font-size: 13px; line-height: 1.7; max-width: 560px; }

/* ---------- 外观 ---------- */
.appr { flex: 1; overflow-y: auto; padding: 24px 28px; }
.appr h2 { font-size: 20px; margin-bottom: 6px; }
.appr .sub { color: var(--text-dim); font-size: 13px; margin-bottom: 22px; }
.appr h3 { font-size: 14.5px; margin: 20px 0 10px; }
.seg { display: inline-flex; background: var(--field-bg); border-radius: 9px; padding: 2px; }
.seg button { padding: 4px 18px; border-radius: 7px; font-size: 13.5px; color: var(--text-dim); }
.seg button.on { background: var(--content-bg); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.wp-grid { display: grid; grid-template-columns: repeat(auto-fill, 104px); gap: 12px; }
.wp-pick { display: flex; flex-direction: column; gap: 6px; align-items: center; font-size: 12px; color: var(--text-dim); }
.wp-pick .sw { width: 104px; height: 68px; border-radius: 10px; border: 2px solid transparent; }
.wp-pick.on .sw { border-color: var(--accent); }
.wp-pick.on { color: var(--text); }
input[type="range"] { width: 220px; accent-color: var(--accent); }
.plain-btn {
  padding: 5px 14px; border-radius: 8px; background: var(--field-bg);
  font-size: 13.5px; color: var(--text); border: 1px solid var(--border-soft);
}
.plain-btn:hover { background: var(--hover); }
.row-flex { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* ---------- 关于 ---------- */
.about-box { flex: 1; overflow-y: auto; padding: 30px 34px; text-align: center; }
.about-box img.app-icon { width: 84px; height: 84px; }
.about-box h2 { font-size: 21px; margin: 12px 0 4px; }
.about-box .ver { color: var(--text-dim); font-size: 13px; margin-bottom: 18px; }
.about-box .desc { font-size: 14.5px; line-height: 1.8; color: var(--text); max-width: 480px; margin: 0 auto 14px; text-align: left; user-select: text; }
.about-box .desc.center { text-align: center; }
.about-box .fine { color: var(--text-faint); font-size: 12px; line-height: 1.7; max-width: 480px; margin: 10px auto 0; text-align: left; }

/* ---------- 响应与动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media (max-width: 720px) {
  .sidebar { flex-basis: 128px; }
  .notes-list { flex-basis: 150px; }
  .note-pane { padding: 18px; }
  .menu-item.optional { display: none; }
}
