/* ============ 甲木日历 · 毛玻璃桌面日历 ============ */

:root {
  --glass-alpha: 0.75;
  --radius: 16px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  --pri-0: #8ea6c0; /* 低 */
  --pri-1: #4f8ef7; /* 中 */
  --pri-2: #f7a325; /* 高 */
  --pri-3: #e5484d; /* 紧急 */
  --accent: #2f9e6e;
  --text: #1c2430;
  --text-dim: #5b6b7c;
  --line: rgba(255, 255, 255, 0.35);
  --chip-alpha: 0.85;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background: #2b4a6f fixed;
  -webkit-font-smoothing: antialiased;
}

/* ---------- 皮肤背景 ---------- */
body.skin-jade      { background: linear-gradient(135deg, #0f3b34 0%, #17604f 35%, #2e8b6e 70%, #63b995 100%) fixed; }
body.skin-dawn      { background: linear-gradient(135deg, #35234f 0%, #7a3b63 40%, #c85d54 75%, #f2a65a 100%) fixed; }
body.skin-midnight  { background: linear-gradient(160deg, #0b1023 0%, #17203f 45%, #27356b 80%, #3a4a8c 100%) fixed; --text:#e8eefb; --text-dim:#9fb0cc; --line:rgba(255,255,255,.18); }
body.skin-minimal   { background: linear-gradient(160deg, #eef2f6 0%, #dde6ee 50%, #cfd9e4 100%) fixed; --text:#1a222c; --text-dim:#66788c; --line:rgba(0,0,0,.08); }
body.skin-festival  { background: linear-gradient(135deg, #7a1010 0%, #a91d1d 40%, #d43a2f 75%, #f0a63a 100%) fixed; }
body.skin-wallpaper { background: linear-gradient(150deg, #16324f 0%, #2c5f8a 35%, #56a0c8 65%, #ffd9a0 100%) fixed; }

/* ---------- 毛玻璃 ---------- */
.glass {
  background: rgba(255, 255, 255, var(--glass-alpha));
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.skin-midnight .glass, body.skin-midnight .glass { background: rgba(22, 30, 55, var(--glass-alpha)); }
.skin-minimal .glass { background: rgba(255, 255, 255, var(--glass-alpha)); }
.glass-strong {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px) saturate(1.5);
  border: 1px solid rgba(255,255,255,.5);
  border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  color: #1c2430;
}

.hidden { display: none !important; }

/* ---------- 登录屏 ---------- */
.auth-screen {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
}
.auth-card { width: 360px; padding: 36px 32px; text-align: center; }
.auth-logo { font-size: 52px; }
.auth-title { font-size: 26px; margin: 6px 0 2px; color: var(--text); }
.auth-sub { font-size: 13px; color: var(--text-dim); margin-bottom: 20px; }
.auth-tabs { display: flex; gap: 6px; background: rgba(0,0,0,.08); border-radius: 10px; padding: 4px; margin-bottom: 16px; }
.auth-tab { flex: 1; border: none; background: transparent; padding: 8px; border-radius: 8px; cursor: pointer; font-size: 14px; color: var(--text-dim); }
.auth-tab.active { background: #fff; color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,.12); font-weight: 600; }
#authForm input {
  width: 100%; padding: 11px 14px; margin-bottom: 10px;
  border: 1px solid rgba(0,0,0,.12); border-radius: 10px; font-size: 14px;
  background: rgba(255,255,255,.85); color: var(--text);
}
#authForm input:focus { outline: 2px solid var(--accent); }
.btn-primary {
  width: 100%; padding: 12px; border: none; border-radius: 10px; cursor: pointer;
  background: linear-gradient(135deg, #2f9e6e, #1f7a55); color: #fff;
  font-size: 15px; font-weight: 600; box-shadow: 0 4px 14px rgba(31,122,85,.4);
  transition: transform .12s;
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-secondary { padding: 9px 16px; border: 1px solid var(--accent); border-radius: 10px; background: transparent; color: var(--accent); cursor: pointer; font-size: 14px; }
.btn-danger { padding: 9px 16px; border: none; border-radius: 10px; background: #e5484d; color: #fff; cursor: pointer; }
.auth-error { margin-top: 10px; color: #e5484d; font-size: 13px; }

/* ---------- 布局 ---------- */
.app { display: flex; flex-direction: column; height: 100vh; padding: 10px; gap: 10px; position: relative; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; z-index: 30; flex-wrap: wrap; gap: 8px; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 10px; }
.logo { font-size: 17px; color: var(--text); margin-right: 4px; white-space: nowrap; }
.view-switch { display: flex; background: rgba(0,0,0,.1); border-radius: 9px; padding: 3px; }
.view-switch button { border: none; background: transparent; padding: 5px 14px; border-radius: 7px; cursor: pointer; font-size: 13px; color: var(--text-dim); }
.view-switch button.active { background: #fff; color: var(--text); font-weight: 600; box-shadow: 0 1px 5px rgba(0,0,0,.15); }
.date-nav { display: flex; align-items: center; gap: 4px; }
.icon-btn { border: none; background: rgba(0,0,0,.08); border-radius: 8px; width: 30px; height: 30px; cursor: pointer; font-size: 15px; color: var(--text); }
.icon-btn:hover { background: rgba(0,0,0,.15); }
.text-btn { border: none; background: rgba(0,0,0,.08); border-radius: 8px; padding: 6px 12px; cursor: pointer; font-size: 13px; color: var(--text); }
.text-btn:hover { background: rgba(0,0,0,.15); }
.range-label { font-size: 16px; font-weight: 700; color: var(--text); margin-left: 8px; min-width: 110px; }

.ai-quick { display: flex; align-items: center; background: rgba(0,0,0,.08); border-radius: 10px; padding: 2px 2px 2px 10px; }
.ai-quick input { border: none; background: transparent; padding: 6px; width: 300px; font-size: 13px; color: var(--text); outline: none; }
.ai-btn { border: none; border-radius: 8px; background: linear-gradient(135deg, #6a5df7, #4f8ef7); color: #fff; padding: 6px 14px; cursor: pointer; font-size: 13px; }
.main-area { flex: 1; display: flex; gap: 10px; min-height: 0; }
.calendar-panel { flex: 1; padding: 12px; display: flex; flex-direction: column; min-width: 0; position: relative; z-index: 10; overflow: auto; }
.panel-hint { text-align: right; font-size: 11px; color: var(--text-dim); padding: 6px 4px 0; opacity: .8; }
.side-panel { width: 320px; padding: 12px; display: flex; flex-direction: column; gap: 10px; z-index: 10; overflow: hidden; }
.side-block { display: flex; flex-direction: column; min-height: 0; }
.side-todos { flex: 1; }
.side-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 8px; color: var(--text); font-size: 14px; }
.todo-stats { font-size: 12px; color: var(--text-dim); }

/* ---------- 月视图 ---------- */
.month-view { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.month-header { display: grid; grid-template-columns: repeat(7, 1fr); padding: 2px 4px 8px; }
.month-header span { text-align: center; font-size: 12px; font-weight: 600; color: var(--text-dim); }
.month-header .wknd { color: #e5484d; }
.month-grid { flex: 1; display: grid; grid-template-columns: repeat(7, 1fr); grid-auto-rows: 1fr; gap: 4px; min-height: 0; }
.day-cell {
  border-radius: 10px; padding: 4px 6px; overflow: hidden; cursor: default;
  background: rgba(255,255,255,.28); border: 1px solid transparent;
  display: flex; flex-direction: column; gap: 2px; position: relative;
  transition: background .15s, transform .1s;
  min-height: 0;
}
.skin-minimal .day-cell { background: rgba(0,0,0,.04); }
.day-cell:hover { background: rgba(255,255,255,.5); }
.day-cell.other { opacity: .45; }
.day-cell.today { border-color: var(--accent); background: rgba(47,158,110,.14); box-shadow: inset 0 0 0 1px var(--accent); }
.day-cell.drag-over { border-color: var(--accent); background: rgba(47,158,110,.25); }
.cell-date { font-size: 12px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 4px; }
.today-badge { background: var(--accent); color: #fff; font-size: 10px; border-radius: 8px; padding: 0 6px; font-weight: 600; }
.festival-mark { font-size: 10px; color: #e5484d; font-weight: 600; }
.cell-tasks { flex: 1; overflow: hidden; display: flex; flex-direction: column; gap: 2px; }
.task-chip {
  font-size: 11px; padding: 1px 6px; border-radius: 5px; cursor: pointer;
  background: var(--chip-bg, rgba(79,142,247,.18)); color: var(--text);
  border-left: 3px solid var(--chip-c, var(--pri-1));
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: flex; align-items: center; gap: 4px;
}
.task-chip.done { opacity: .45; text-decoration: line-through; }
.task-chip.doing { font-weight: 600; }
.task-chip.overdue { background: rgba(229,72,77,.2); }
.cell-more { font-size: 10px; color: var(--text-dim); padding-left: 4px; }
.cell-more-badge {
  position: absolute; top: 4px; right: 6px;
  background: var(--pri-3); color: #fff; font-size: 10px; font-weight: 700;
  border-radius: 9px; padding: 0 5px; min-width: 17px; text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.3);
}

/* ---------- 周视图 ---------- */
.week-view { flex: 1; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; min-height: 0; }
.week-col { background: rgba(255,255,255,.25); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; min-height: 0; }
.week-col.today { border: 1.5px solid var(--accent); background: rgba(47,158,110,.12); }
.week-col-head { font-size: 12px; font-weight: 700; color: var(--text); text-align: center; padding-bottom: 4px; border-bottom: 1px dashed var(--line); margin-bottom: 2px; }
.week-col .task-chip { white-space: normal; }

/* ---------- 日视图 ---------- */
.day-view { flex: 1; overflow-y: auto; min-height: 0; padding-right: 4px; }
.day-view-head { font-size: 18px; font-weight: 700; color: var(--text); padding: 4px 6px 10px; }
.day-task-row {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 6px;
  background: rgba(255,255,255,.4); border-radius: 10px; cursor: pointer;
  border-left: 4px solid var(--chip-c, var(--pri-1));
}
.skin-minimal .day-task-row { background: rgba(0,0,0,.05); }
.day-task-row.done { opacity: .5; }
.day-task-row .t-time { font-size: 13px; font-weight: 700; color: var(--text-dim); min-width: 46px; }
.day-task-row .t-title { flex: 1; font-size: 14px; color: var(--text); }
.day-task-row.done .t-title { text-decoration: line-through; }

/* ---------- 侧栏清单 ---------- */
.list-container { display: flex; flex-direction: column; gap: 3px; max-height: 180px; overflow-y: auto; padding: 0 2px 6px; }
.list-item {
  display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 9px; cursor: pointer;
  font-size: 13px; color: var(--text);
}
.list-item:hover { background: rgba(0,0,0,.07); }
.list-item.active { background: rgba(0,0,0,.12); font-weight: 600; }
.list-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.list-count { margin-left: auto; font-size: 11px; color: var(--text-dim); }
.list-del { border: none; background: transparent; cursor: pointer; opacity: 0; color: #e5484d; font-size: 12px; }
.list-item:hover .list-del { opacity: .7; }

/* ---------- 侧栏待办 ---------- */
.todo-list { flex: 1; overflow-y: auto; min-height: 0; display: flex; flex-direction: column; gap: 4px; padding: 0 2px; }
.todo-item {
  display: flex; align-items: flex-start; gap: 9px; padding: 9px 10px; border-radius: 10px;
  background: rgba(255,255,255,.4); cursor: pointer; transition: background .15s;
  position: relative;
}
.skin-minimal .todo-item { background: rgba(0,0,0,.05); }
.todo-item:hover { background: rgba(255,255,255,.65); }
.todo-check {
  width: 19px; height: 19px; border-radius: 6px; border: 2px solid var(--text-dim);
  cursor: pointer; flex-shrink: 0; margin-top: 1px; position: relative;
  background: transparent; transition: all .2s;
}
.todo-check:hover { border-color: var(--accent); }
.todo-check.checked { background: var(--accent); border-color: var(--accent); }
.todo-check.checked::after {
  content: "✓"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 12px; font-weight: 700; animation: pop .25s;
}
@keyframes pop { 0% { transform: scale(.4); } 70% { transform: scale(1.2); } 100% { transform: scale(1); } }
.todo-body { flex: 1; min-width: 0; }
.todo-title { font-size: 13.5px; color: var(--text); word-break: break-all; position: relative; display: inline; }
.todo-title::after {
  content: ""; position: absolute; left: 0; top: 55%; height: 1.5px; width: 0;
  background: var(--text-dim); transition: width .35s ease;
}
.todo-item.done .todo-title { color: var(--text-dim); }
.todo-item.done .todo-title::after { width: 100%; }
.todo-meta { display: flex; gap: 6px; margin-top: 3px; font-size: 11px; color: var(--text-dim); align-items: center; flex-wrap: wrap; }
.todo-tag { padding: 0 6px; border-radius: 6px; font-size: 10.5px; color: #fff; }
.status-pill {
  border: 1px solid var(--text-dim); color: var(--text-dim); font-size: 10.5px;
  border-radius: 8px; padding: 0 6px; cursor: pointer; background: transparent;
}
.status-pill.doing { border-color: #f7a325; color: #f7a325; }
.status-pill.done { border-color: var(--accent); color: var(--accent); }
.todo-del { border: none; background: transparent; color: #e5484d; cursor: pointer; opacity: 0; font-size: 13px; padding: 2px; }
.todo-item:hover .todo-del { opacity: .65; }
.todo-empty { text-align: center; color: var(--text-dim); font-size: 13px; padding: 30px 0; }
.todo-add input {
  width: 100%; padding: 10px 12px; margin-top: 8px; border-radius: 10px;
  border: 1px dashed var(--text-dim); background: rgba(255,255,255,.5); font-size: 13px; color: var(--text);
}

/* ---------- 小组件 ---------- */
.widget-layer { position: fixed; inset: 0; pointer-events: none; z-index: 50; }
.widget {
  position: absolute; pointer-events: auto; min-width: 170px;
  border-radius: 16px; overflow: hidden;
  backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
  background: rgba(15, 25, 40, calc(var(--glass-alpha) * 0.82));
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 10px 36px rgba(0,0,0,.45);
  color: #fff; display: flex; flex-direction: column;
}
.widget .w-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 10px 2px; cursor: grab; user-select: none; font-size: 11.5px; opacity: .8;
}
.widget .w-head:active { cursor: grabbing; }
.w-close { border: none; background: transparent; color: #fff; opacity: .5; cursor: pointer; font-size: 12px; }
.w-close:hover { opacity: 1; }
.w-body { padding: 6px 12px 12px; flex: 1; overflow: hidden; }
.w-resize { position: absolute; right: 0; bottom: 0; width: 16px; height: 16px; cursor: nwse-resize; opacity: .4; }
.w-resize::before { content: "◢"; position: absolute; right: 2px; bottom: 1px; font-size: 10px; color: #fff; }

/* 时钟组件 */
.w-clock .w-time { font-size: 44px; font-weight: 300; letter-spacing: 2px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.w-clock .w-date { font-size: 12.5px; opacity: .85; margin-top: 2px; }
.w-clock .w-weather-line { font-size: 12px; opacity: .8; margin-top: 4px; }

/* 倒计时组件 */
.w-count .cd-item { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.w-count .cd-item:last-child { border-bottom: none; }
.cd-top { display: flex; justify-content: space-between; align-items: baseline; }
.cd-title { font-size: 13.5px; font-weight: 600; }
.cd-days { font-size: 22px; font-weight: 700; color: #ffd166; font-variant-numeric: tabular-nums; }
.cd-days.past { color: #8ea6c0; }
.cd-sub { font-size: 11px; opacity: .7; margin-top: 1px; }
.cd-empty { font-size: 12px; opacity: .6; padding: 10px 0; text-align: center; }
.cd-add { border: none; background: rgba(255,255,255,.15); color: #fff; border-radius: 8px; padding: 3px 10px; cursor: pointer; font-size: 12px; margin-top: 6px; }

/* 天气组件 */
.w-weather .w-temp { font-size: 36px; font-weight: 300; }
.w-weather .w-city { font-size: 12.5px; opacity: .85; }
.w-weather .w-desc { font-size: 12px; opacity: .75; margin-top: 2px; }

/* ---------- 贴边隐藏 ---------- */
.app.edge-hidden .topbar, .app.edge-hidden .main-area, .app.edge-hidden .widget-layer { display: none; }
.edge-tab {
  position: fixed; left: 0; top: 40%; z-index: 99;
  width: 26px; height: 110px; border-radius: 0 12px 12px 0;
  background: rgba(20, 60, 45, .85); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; cursor: pointer; box-shadow: 4px 0 16px rgba(0,0,0,.3);
  transition: width .15s;
}
.edge-tab:hover { width: 34px; }

/* ---------- 弹窗 ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200; background: rgba(10, 15, 25, .45);
  display: flex; align-items: center; justify-content: center; backdrop-filter: blur(3px);
}
.modal { width: 440px; max-width: 94vw; max-height: 86vh; overflow-y: auto; padding: 18px 20px; }
.modal-sm { width: 360px; }
.settings-modal { width: 520px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font-size: 16px; }
.modal-close { background: rgba(0,0,0,.06); }
#taskForm input[type="text"], #taskForm input[type="date"], #taskForm input[type="time"],
#taskForm select, #countdownForm input {
  width: 100%; padding: 10px 12px; margin-bottom: 10px; border-radius: 10px;
  border: 1px solid rgba(0,0,0,.15); font-size: 14px; background: #fff; color: #1c2430;
}
.form-row { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.form-row label { font-size: 13px; color: #5b6b7c; min-width: 42px; }
.form-row input, .form-row select { margin-bottom: 0; }
.modal-actions { display: flex; gap: 10px; margin-top: 14px; }
.modal-actions .btn-danger { margin-right: auto; }

/* ---------- 设置 ---------- */
.settings-tabs { display: flex; gap: 6px; margin-bottom: 14px; border-bottom: 1px solid rgba(0,0,0,.1); padding-bottom: 8px; }
.set-tab { border: none; background: transparent; padding: 6px 14px; border-radius: 8px; cursor: pointer; font-size: 14px; color: #5b6b7c; }
.set-tab.active { background: rgba(47,158,110,.15); color: #1f7a55; font-weight: 600; }
.set-pane h4 { font-size: 14px; margin: 12px 0 8px; color: #1c2430; }
.skin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.skin-card {
  border: 2px solid transparent; border-radius: 10px; padding: 8px; cursor: pointer;
  background: rgba(0,0,0,.04); font-size: 12.5px; color: #1c2430;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.skin-card.active { border-color: var(--accent); }
.skin-card.active::after { content: "✓ 当前"; font-size: 10px; color: var(--accent); }
.swatch { width: 100%; height: 34px; border-radius: 7px; display: block; }
.sw-jade { background: linear-gradient(135deg, #0f3b34, #2e8b6e, #63b995); }
.sw-dawn { background: linear-gradient(135deg, #35234f, #c85d54, #f2a65a); }
.sw-mid  { background: linear-gradient(135deg, #0b1023, #27356b, #3a4a8c); }
.sw-min  { background: linear-gradient(135deg, #eef2f6, #cfd9e4); }
.sw-fes  { background: linear-gradient(135deg, #7a1010, #d43a2f, #f0a63a); }
.sw-wal  { background: linear-gradient(150deg, #16324f, #56a0c8, #ffd9a0); }
.opacity-val { font-size: 12px; color: #5b6b7c; }
input[type="range"] { width: 100%; accent-color: #2f9e6e; }
.switch-row { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: #1c2430; padding: 5px 0; cursor: pointer; }
.switch-row input { accent-color: #2f9e6e; width: 16px; height: 16px; }
.set-tip { font-size: 12px; color: #5b6b7c; background: rgba(47,158,110,.08); border-radius: 8px; padding: 8px 10px; margin-top: 8px; line-height: 1.6; }
.widget-toggles { display: flex; flex-direction: column; gap: 6px; }
#settingsModal input[type="url"], #settingsModal input[type="text"], #settingsModal input[type="password"] {
  width: 100%; padding: 10px 12px; margin-bottom: 8px; border-radius: 10px;
  border: 1px solid rgba(0,0,0,.15); font-size: 13.5px; background: #fff;
}
.ai-save-msg { font-size: 13px; margin-top: 8px; color: #1f7a55; }
.ai-save-msg.err { color: #e5484d; }

/* ---------- AI 排程 ---------- */
.plan-content { font-size: 14px; line-height: 1.9; color: #1c2430; white-space: pre-wrap; min-height: 120px; }

/* ---------- 用户菜单 ---------- */
.user-menu { position: relative; }
.user-btn {
  width: 32px; height: 32px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, #2f9e6e, #1f7a55); color: #fff; font-weight: 700; font-size: 14px;
}
.dropdown {
  position: absolute; right: 0; top: 38px; min-width: 180px; z-index: 60;
  background: rgba(255,255,255,.97); border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.3);
  overflow: hidden; color: #1c2430;
}
.dropdown-head { padding: 10px 14px; font-size: 12.5px; color: #5b6b7c; border-bottom: 1px solid rgba(0,0,0,.08); }
.dropdown button { width: 100%; border: none; background: transparent; padding: 11px 14px; text-align: left; cursor: pointer; font-size: 14px; }
.dropdown button:hover { background: rgba(0,0,0,.06); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 300;
  background: rgba(20, 30, 45, .92); color: #fff; padding: 11px 22px; border-radius: 12px;
  font-size: 13.5px; box-shadow: 0 8px 30px rgba(0,0,0,.4); max-width: 80vw;
  animation: toastIn .25s ease;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- 紧凑模式 ---------- */
.app.compact .side-panel { width: 260px; }
.app.compact .ai-quick input { width: 170px; }
.app.compact .logo { font-size: 14px; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .main-area { flex-direction: column; }
  .side-panel { width: 100%; max-height: 40vh; }
  .ai-quick input { width: 150px; }
  .range-label { min-width: 80px; font-size: 14px; }
  .month-grid { min-height: 420px; }
  .day-cell { min-height: 60px; }
}

/* 滚动条 */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-thumb { background: rgba(120,130,145,.4); border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }
