/* 小鲲日常 V1.0 · 移动端 PWA 样式（浅色/暗黑，data-theme 切换） */
#scr-today{background:var(--bg);min-height:100vh;min-height:100dvh;padding-bottom:100px;}
/* 隐藏纵向滚动条，横向滚动条显示 */
::-webkit-scrollbar:vertical {
  width: 0;
  display: none;
}
::-webkit-scrollbar:horizontal {
  height: 6px;
  background: #f0f0f0;
}
::-webkit-scrollbar-thumb:horizontal {
  background: #c0c8cc;
  border-radius: 3px;
}
* {
  scrollbar-width: thin;
  scrollbar-color: #c0c8cc #f0f0f0;
}
:root{
  --bg:#ffffff;
  --bg-soft:#f7f7f7;
  --card:#FFFFFF;
  --ink:#3A3A38;
  --ink-2:#6B6E66;
  --ink-3:#A8ACA0;
  --line:#e8e8e8;
  --accent:#B8C9A8;
  --accent2:#8FA67E;
  --green:#B8C9A8;
  --green-soft:#DDE5CE;
  --brown:#D4B896;
  --brown-soft:#EADBC6;
  --pink:#F2C4C4;
  --pink-soft:#F7DCDC;
  --yellow:#EDE0B0;
  --yellow-soft:#F1E8C8;
  --blue:#B8C8D8;
  --blue-soft:#D9E2EC;
  --purple:#C8B8D0;
  --purple-soft:#E4DCE8;
  --orange:#E8C4A8;
  --orange-soft:#F2D9C2;
  --shadow:0 6px 20px rgba(0,0,0,.06);
  --shadow-card:0 2px 10px rgba(0,0,0,.05);
  --radius:22px;
  --radius-md:16px;
  --radius-sm:12px;
}
html[data-theme="dark"]{
  --bg:#151513;--card:#1e1d1a;--ink:#ece7dd;--sub:#8f8a80;--line:#2b2a26;--shadow:0 2px 12px rgba(0,0,0,.4);
}
*{box-sizing:border-box;margin:0;-webkit-tap-highlight-color:transparent}
html,body{height:100%}
body{font-family:"Noto Sans SC","PingFang SC","Microsoft YaHei",system-ui,sans-serif;background:#ffffff;color:var(--ink)}
.phone{max-width:390px;margin:0 auto;height:100vh;height:100dvh;position:relative;background:var(--bg);overflow:hidden;box-shadow:0 0 40px rgba(0,0,0,.15)}

main{height:100%;overflow-y:auto;padding-bottom:calc(110px + env(safe-area-inset-bottom, 0px));padding-top:calc(env(safe-area-inset-top) + 16px);}
.screen{display:none;padding:12px 4px 20px;animation:fade .25s}
.screen.active{display:block}
#scr-profile, #scr-stats, #scr-diary { padding-left:16px; padding-right:16px; }
@keyframes fade{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

/* 顶栏 */
.top{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.top .greet{font-size:13px;color:var(--ink-3)}
.top .date{font-size:22px;font-weight:900;letter-spacing:1px}
.act{width:36px;height:36px;border-radius:50%;background:var(--card);box-shadow:var(--shadow-card);display:flex;align-items:center;justify-content:center;font-size:18px;cursor:pointer;border:none;color:var(--ink)}
.act-row{display:flex;gap:8px}

/* 进度条 */
.today-stat-card{border:4px solid #8FA67E;}
.today-todo-card{border:4px solid #8FA67E;}
.today-tab-bar{border:2px solid #E8A8A8;}
.quick-action-bar{border:2px solid #E8A8A8;}
.group-title-tag{border:2px solid #DBC87A;}
.habit-num-tag{border:2px solid #8FA8C0;}
.top-icon-btn{border:2px solid #8FA8C0;}
.section-title-tag{border:2px solid #DBC87A;}
.group-add-btn{border:2px solid #8FA8C0;}
span[onclick*="toggleHabitSearch"], span[onclick*="toggleHabitEdit"], span[onclick*="toggleHabitFilter"]{border:2px solid #8FA8C0;background:#fff;}
.prog{background:var(--card);border-radius:var(--radius-md);box-shadow:var(--shadow-card);border:4px solid #e63946;padding:14px 16px;margin-bottom:14px}
.prog .pl{font-size:13px;font-weight:700;display:flex;justify-content:space-between;margin-bottom:8px}
.prog .bar{height:10px;border-radius:6px;background:var(--line);overflow:hidden}
.prog .bar>i{display:block;height:100%;background:var(--accent);border-radius:6px;transition:width .4s}

/* 区块标题 */
.sec{font-size:13px;font-weight:700;color:var(--sub);margin:18px 0 10px;display:flex;justify-content:space-between;align-items:center}
.sec .more{font-size:12px;color:var(--accent);cursor:pointer;font-weight:600}

/* 小日常风格：分组标题（居中，两边虚线） */
.sec-head{
  display:flex;align-items:center;gap:10px;
  padding:16px 16px 8px;font-size:14px;font-weight:600;color:#4a575b;
  cursor:pointer;user-select:none;
}
.sec-head::before,.sec-head::after{
  content:'';flex:1;border-top:1px dashed #c3d4d8;
}

/* 小日常风格：圆形习惯网格 */
.habit-grid{
  display:grid;grid-template-columns:repeat(3,1fr);
  gap:16px 8px;padding:10px 0 16px;
}
.habit-group-title{display:flex;flex-direction:row !important;align-items:center;justify-content:space-between;flex-wrap:nowrap !important;flex-shrink:0}
.habit-circle{
  display:flex;flex-direction:column;align-items:center;gap:6px;cursor:pointer;
  position:relative;
}
.circle{
  width:58px;height:58px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  transition:transform .15s ease;
  border:none;
  position:relative;
}
.habit-circle:active .circle{transform:scale(.9)}
.circle-icon{font-size:26px}
.circle-name{font-size:11px;font-weight:700;color:var(--ink);text-align:center;line-height:1.2}
.circle-streak{font-size:10px;color:var(--ink-3);display:flex;align-items:center;gap:2px}
.circle-streak .flame{color:var(--brown-deep);font-weight:700}

/* 已打卡状态 */
.habit-circle.done .circle{
  border:none;
}
.habit-circle.done .circle-name{color:var(--ink)}
.habit-circle.done .circle::after{
  content:'✓';
  position:absolute;
  right:0;bottom:0;
  width:18px;height:18px;border-radius:50%;
  background:#8FA67E;color:#fff;
  display:flex;align-items:center;justify-content:center;
  font-size:11px;font-weight:bold;
  border:2px solid #fff;
  z-index:10;
}

/* 分组收起 */
.sec-head .chev{
  transition:transform .2s;color:#9fb0b5;
  font-size:14px;line-height:1;
}
.sec-head.closed .chev{transform:rotate(-90deg)}
.habit-grid.collapsed{display:none}
.collapsed{display:none}

/* 小日常风格：习惯页 */
.habits-head{
  display:flex;align-items:center;justify-content:center;
  padding:16px 16px 8px;position:relative;
}
.habits-head h2{font-size:17px;font-weight:700;color:#333}
.habits-head .add{
  position:absolute;right:16px;top:14px;
  width:32px;height:32px;border-radius:50%;
  background:#fff;border:2px solid #3a3a3a;
  color:#3a3a3a;font-size:20px;line-height:1;
  display:flex;align-items:center;justify-content:center;cursor:pointer;
}

/* 习惯列表顶部执行时间段筛选 Tab：横向滑动 + 胶囊样式 */
.period-tabs{
  display:flex;flex-wrap:nowrap;align-items:center;
  padding:10px 16px 12px;
  overflow-x:auto;overflow-y:hidden;
  white-space:nowrap;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
.period-tabs::-webkit-scrollbar{display:none}
.period-tab{
  flex:0 0 auto;
  margin-right:8px;padding:7px 16px;
  border-radius:999px;
  background:#f2f5f5;color:#6B6E66;
  font-size:13px;font-weight:600;line-height:1.2;
  white-space:nowrap;cursor:pointer;
  transition:background .15s,color .15s;
}
.period-tab:last-child{margin-right:0}
.period-tab.on{background:var(--accent);color:#fff;font-weight:700}

.h-list{
  padding:12px 16px 24px;
  display:flex;flex-direction:column;gap:10px;
}
.h-card{
  border-radius:14px;padding:16px;
  display:flex;align-items:center;gap:14px;
  cursor:pointer;transition:transform .12s ease;
}
.h-card:active{transform:scale(.98)}
.h-card .ico{
  width:56px;height:56px;flex:none;
  font-size:26px;display:flex;align-items:center;justify-content:center;
}
.h-card .ico img, .h-card .ico div{
  width:56px!important;height:56px!important;
  font-size:1.5em!important;
  line-height:1!important;
}
.h-card .name{
  flex:1;font-size:16px;font-weight:600;
  color:#3d3d3d;min-width:0;
}
.h-card .num{text-align:right;flex:none}
.h-card .num b{
  font-size:20px;display:block;line-height:1.2;
  color:#3d3d3d;
}
.h-card .num span{font-size:11px;color:rgba(60,60,60,.55)}

/* 小日常风格：我的页面 */
.profile-hero{
  margin:10px 6px 16px;
  display:flex;align-items:center;gap:14px;
  cursor:pointer;
}
.p-edit{
  margin-left:auto;font-size:13px;color:var(--accent2);cursor:pointer;
  flex:none;
}
.p-avatar{
  width:60px;height:60px;border-radius:50%;
  background:linear-gradient(135deg,var(--accent),var(--yellow));
  display:flex;align-items:center;justify-content:center;
  font-size:28px;flex:none;
  box-shadow:var(--shadow-card);
}
.p-info .p-name{
  font-size:18px;font-weight:900;color:var(--ink);
}
.p-info .p-desc{
  font-size:11px;color:var(--ink-3);margin-top:3px;
}
.p-stats{
  display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:16px 6px 20px;
}
.p-stat-card{
  background:#fff;border-radius:16px;padding:14px 8px;text-align:center;
  box-shadow:var(--shadow-card);
}
.p-stat-card .n{font-size:20px;font-weight:900;color:var(--ink)}
.p-stat-card .l{font-size:10px;color:var(--ink-3);margin-top:2px}
.p-more-title{
  font-size:13px;font-weight:900;margin:10px 4px 10px;
}
.me-list{background:#fff;border-radius:22px;box-shadow:var(--shadow-card);overflow:hidden;margin:0 6px 20px}
.me-item{
  display:flex;align-items:center;gap:12px;
  padding:14px 16px;border-bottom:1px solid var(--line);
  cursor:pointer;font-size:14px;
}
.me-item:last-child{border-bottom:none}
.me-item .chev{margin-left:auto;color:var(--ink-3)}
.me-item svg{color:var(--ink-2)}
.q-circle{width:60px;height:60px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;cursor:pointer}
.q-circle .q-label{font-size:11px;color:var(--ink)}
  margin:0 20px 16px;font-size:14px;font-weight:600;color:#6b7a7e;
}
.p-grid{
  display:grid;grid-template-columns:repeat(3,1fr);
  gap:24px 16px;padding:0 6px 20px;
}
.p-item{
  display:flex;flex-direction:column;align-items:center;gap:8px;
  cursor:pointer;
}
.p-ico{
  width:56px;height:56px;border-radius:16px;
  background:#fff;display:flex;align-items:center;justify-content:center;
  font-size:28px;box-shadow:var(--shadow);
}
.p-label{
  font-size:13px;color:#3d4a4e;
}

/* 小日常风格：日记页 */
.diary-hero{
  margin:14px 16px 4px;
  background:linear-gradient(135deg,#C9EBDD,#A8DDE0);
  border-radius:18px;padding:20px 18px;
}
.diary-hero .d-date{
  font-size:26px;font-weight:800;color:#2f4a4d;
}
.diary-hero .d-week{
  font-size:13px;color:#4a7a7d;margin-top:4px;
}
.card-today{
  margin-top:16px;background:#fff;
  border-radius:14px;padding:16px;
}
.card-today .ct-title{
  font-size:15px;font-weight:700;color:#3d4a4e;
}
.card-today .ct-sub{
  font-size:12.5px;color:#9aa6aa;margin-top:6px;line-height:1.5;
}
.ct-btn{
  margin-top:12px;background:#2FB6C4;color:#fff;
  font-size:13px;font-weight:600;padding:9px 18px;
  border-radius:18px;cursor:pointer;border:0;
}

/* 我在这一天：时间线 */
.timeline{
  padding:4px 20px 6px;
}
.tl-row{
  display:grid;grid-template-columns:46px 20px 1fr;
  position:relative;
}
.tl-time{
  align-self:center;font-size:12px;color:#9aa6aa;
  text-align:right;padding-right:6px;
}
.tl-axis{
  display:flex;justify-content:center;position:relative;
}
.tl-axis::after{
  content:'';position:absolute;left:50%;top:0;bottom:0;
  width:2px;transform:translateX(-50%);background:#dce7ea;
}
.tl-row:first-child .tl-axis::after{top:22px}
.tl-row:last-child .tl-axis::after{bottom:22px}
.tl-dot{
  width:12px;height:12px;border-radius:50%;
  border:2.5px solid #3a3a3a;align-self:center;
  z-index:1;box-sizing:border-box;
  background:#fff;
}
.tl-content{
  align-self:center;padding:9px 0;
  display:flex;align-items:center;gap:10px;
  font-size:14px;font-weight:600;color:#3d4a4e;
}
.tl-ico{
  width:28px;height:28px;border-radius:50%;
  border:2.5px solid #3a3a3a;
  display:flex;align-items:center;justify-content:center;
  flex:none;font-size:14px;
}

/* 今日习惯翻牌卡 */
.habit{position:relative;perspective:1100px;background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);border:4px solid #e63946;margin-bottom:12px;cursor:pointer}
.habit .hc{position:relative;width:100%;height:88px;transition:transform .6s cubic-bezier(.25,.85,.25,1);transform-style:preserve-3d}
.habit.flipped .hc{transform:rotateY(180deg)}
.hf,.hb{position:absolute;inset:0;backface-visibility:hidden;border-radius:var(--radius);display:flex;align-items:center;padding:14px 16px;gap:12px}
.hf{background:var(--card)}
.hb{background:var(--green);color:#fff;transform:rotateY(180deg);justify-content:center}
.hb b{font-size:16px}
.hb .st{font-size:12px;opacity:.9}
/* V1.1 数值型习惯：不翻转，正面展示进度与 ± 计数 */
.habit.numeric{height:auto}
.habit.numeric .hc{transform:none;height:auto;position:static;padding:0}
.habit.numeric .hf{position:static;backface-visibility:visible;flex-wrap:wrap}
.habit.numeric .hb.num{position:static;backface-visibility:visible;transform:none;background:transparent;color:var(--ink);flex-direction:column;align-items:stretch;gap:8px;padding:4px 16px 16px}
.habit.numeric .nv{display:flex;justify-content:space-between;align-items:center;font-size:13px}
.habit.numeric .nv b{color:var(--green);font-size:14px}
.habit.numeric .nv span{color:var(--sub)}
.habit.numeric .bar{height:8px;border-radius:5px;background:var(--bg2,var(--line));overflow:hidden}
.habit.numeric .bar>i{display:block;height:100%;background:var(--accent2,var(--green));border-radius:5px;transition:width .3s}
.habit.numeric .stepper{display:flex;justify-content:flex-end;gap:10px;padding-top:6px}
.habit.numeric .stepper button{width:30px;height:30px;border-radius:50%;border:1px solid var(--line);background:#fff;color:var(--green);font-size:18px;font-weight:700;display:flex;align-items:center;justify-content:center;cursor:pointer}
.hf .hi{width:44px;height:44px;border-radius:14px;display:flex;align-items:center;justify-content:center;font-size:22px;flex:0 0 auto}
.hf .hn{flex:1;min-width:0}
.hf .hn .nm{font-size:15px;font-weight:700}
.hf .hn .meta{font-size:11px;color:var(--sub);margin-top:2px}
.hf .streak{font-size:12px;font-weight:800;color:var(--accent);background:var(--accent2,var(--green-soft));background:rgba(255,138,76,.12);padding:4px 10px;border-radius:12px;white-space:nowrap}

/* 待办 */
.todo{background:var(--card);border-radius:18px;box-shadow:var(--shadow-card);border:4px solid #e63946;padding:14px; margin-bottom:10px;display:flex;align-items:center;gap:12px;transition:transform .15s;outline:none;-webkit-tap-highlight-color:transparent;user-select:none}
.todo:active{transform:scale(.98)}
.todo .ck{width:20px;height:20px;border-radius:50%;border:2px solid var(--line);display:flex;align-items:center;justify-content:center;font-size:12px;color:#fff;flex:none}
.todo.done .ck{background:var(--accent);border-color:var(--accent)}
.todo .ck{width:22px;height:22px;border-radius:50%;border:2px solid var(--line);cursor:pointer;flex:0 0 auto;display:flex;align-items:center;justify-content:center;color:#fff;font-size:13px}
.todo.done .ck{background:var(--green);border-color:var(--green)}
.todo .tx{flex:1;font-size:14px}
.todo.done .tx{text-decoration:line-through;color:var(--sub)}
.todo .imp{font-size:13px;cursor:pointer}
.todo .od{font-size:11px;font-weight:700;color:#fff;background:#e45c5c;padding:2px 8px;border-radius:10px}
.badge{display:inline-block;padding:2px 10px;border-radius:12px;font-size:12px}

/* 快捷入口 */
.quick{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:6px 0 4px}
.quick .qk{background:var(--card);border-radius:14px;box-shadow:var(--shadow);padding:12px 4px;text-align:center;cursor:pointer}
.quick .qk .qi{font-size:22px}
.quick .qk .ql{font-size:11px;color:var(--sub);margin-top:4px}

/* 统计 */
.seg{display:flex;background:var(--card);border-radius:20px;padding:4px;box-shadow:var(--shadow);margin-bottom:14px}
.seg span{flex:1;text-align:center;padding:8px 0;font-size:13px;font-weight:600;color:var(--sub);border-radius:999px;cursor:pointer}
.seg span.on{background:#222;color:#fff}
/* 登录页切换tab样式 */
.auth-tab{flex:1;text-align:center;padding:8px 0;border-radius:999px;cursor:pointer;font-size:14px;color:#666 !important;background:transparent;border:none}
.auth-tab.on{background:#222 !important;color:#fff !important}
/* 统计页切换 */
.seg-switch{background:var(--card);border-radius:30px;padding:4px;display:flex;align-items:center;margin:16px 0 12px;box-shadow:var(--shadow-card)}
.seg-switch .seg{flex:1;text-align:center;padding:8px;border-radius:26px;font-size:13px;color:var(--ink-2);cursor:pointer;display:flex;align-items:center;justify-content:center;gap:4px}
.seg-switch .seg.on{background:var(--accent);color:#fff;font-weight:700}
.period-switch{display:flex;background:#fff;border-radius:16px;padding:4px;gap:4px;margin-bottom:14px;box-shadow:var(--shadow-card)}
.period-switch .p{flex:1;text-align:center;padding:6px;border-radius:12px;font-size:12px;color:var(--ink-2);cursor:pointer}
.period-switch .p.on{background:var(--accent);color:#fff;font-weight:700}
.week-nav{display:flex;align-items:center;justify-content:space-between;padding:0 4px 12px;font-size:13px;color:var(--ink-2)}
.week-nav .arrow{cursor:pointer;font-size:18px}
.stat-card{background:#fff;border-radius:22px;box-shadow:var(--shadow-card);padding:16px;margin-bottom:14px}
.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:12px 0}
.stat-cell{background:#F2F7F3;border-radius:14px;box-shadow:0 4px 14px rgba(0,0,0,.15);padding:10px 4px;text-align:center;border:none}
.stat-cell .v{font-size:18px;font-weight:900;color:var(--ink)}.stat-cell .v small{font-size:10px;color:var(--sub)}
.stat-cell .l{font-size:10px;color:var(--sub);margin-top:4px}
.cal{background:#fff;border-radius:22px;box-shadow:var(--shadow-card);padding:16px;margin-bottom:16px}
.cal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.cal-head button{background:var(--bg2,var(--line));border:none;border-radius:10px;width:30px;height:30px;cursor:pointer;color:var(--ink)}
.cal-week{display:grid;grid-template-columns:repeat(7,1fr);text-align:center;font-size:11px;color:var(--sub);margin-bottom:6px}
.cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}
.cal-day{aspect-ratio:1;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:14px;font-weight:500;cursor:pointer}
.cal-day.full{background:#8FBF9F;color:#fff}
.cal-day.part{background:#d9ead9;color:#2E7D32}
.cal-day.miss{background:transparent;color:#999}
.cal-day.today{background:#e5e7eb !important;color:#222 !important;}
.cal-day.blank{background:transparent;cursor:default}
.h-note{font-size:12px;color:var(--sub);background:var(--card);border-radius:12px;padding:8px 12px;margin-bottom:12px}
.his{margin-top:12px;max-height:200px;overflow-y:auto;border-top:1px solid var(--line)}
.his-t{font-size:13px;font-weight:700;color:var(--sub);padding:8px 0 4px}
.his-row{display:flex;justify-content:space-between;align-items:center;padding:8px 4px;border-bottom:1px solid var(--line);font-size:13px}
.his-row b{color:var(--green);font-size:12px}
.his-empty{color:var(--sub);font-size:12px;padding:12px 4px}
.drag-item.dragging{opacity:.4}
.drag-item.over{border:2px dashed var(--accent)}
/* 日常打卡编辑模式：长按拖拽排序 */
.edit-drag-hint{margin:0 16px 10px;padding:8px 12px;border-radius:12px;background:#f2f8f2;color:#7d8f7a;font-size:12px;border:1px dashed #cadcc8}
.habit-grid-edit .habit-circle{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;-webkit-user-drag:none;touch-action:none}
.habit-drop-empty{grid-column:1/-1;min-height:64px;display:flex;align-items:center;justify-content:center;border:1.5px dashed #d9e2e0;border-radius:14px;color:#a9b4b1;font-size:12px;background:#fafcfb}
.drag-ghost{opacity:.35}
.drag-chosen{transform:scale(1.04);transition:transform .15s ease}
.drag-active{opacity:.92;background:#fff;border-radius:14px;box-shadow:0 10px 24px rgba(0,0,0,.18)}
.chart{background:var(--card);border-radius:22px;box-shadow:var(--shadow-card);padding:16px;margin:16px 0}
.chart .ctitle{font-size:14px;font-weight:900;margin-bottom:12px}
.bars{display:flex;align-items:flex-end;gap:8px;height:110px}
.bcol{flex:1;display:flex;flex-direction:column;align-items:center;gap:4px}
.bcol .bbar{width:100%;background:var(--line);border-radius:6px;display:flex;align-items:flex-end;height:70px;overflow:hidden}
.bcol .bbar>i{width:100%;background:linear-gradient(180deg,var(--accent),var(--accent2));border-radius:6px}
.bcol .bv{font-size:10px;color:var(--sub)}
.bcol .bl{font-size:10px;color:var(--sub)}
.hs-row{display:flex;align-items:center;gap:10px;background:var(--card);border-radius:12px;box-shadow:var(--shadow);padding:10px 12px;margin-bottom:8px}
.hs-row .hi{width:34px;height:34px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:17px;flex:0 0 auto}
.hs-row .hn{flex:1;font-size:13px}
.hs-row .hs{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.hs-row .hs span{font-size:11px;color:var(--sub);background:var(--line);padding:2px 8px;border-radius:10px}
.hs-row .rate{font-size:14px;font-weight:800;color:var(--accent)}

/* 卡片收藏库 */
.cards{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.card{aspect-ratio:3/4;border-radius:14px;overflow:hidden;position:relative;box-shadow:var(--shadow);cursor:pointer;background:var(--card)}
.card img{width:100%;height:100%;object-fit:cover;display:block}
.card .empty{width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:40px;background:var(--card)}
.card .cn{position:absolute;left:0;right:0;bottom:0;background:linear-gradient(transparent,rgba(0,0,0,.62));color:#fff;font-size:11px;line-height:1.35;padding:8px 8px 10px}
.card .card-save{position:absolute;top:6px;right:6px;background:rgba(0,0,0,.55);color:#fff;border:none;border-radius:8px;padding:3px 8px;font-size:11px;z-index:2;cursor:pointer}
.share-grid{display:flex;gap:18px;justify-content:center;padding:6px 0 4px}
.share-item{display:flex;flex-direction:column;align-items:center;gap:6px;cursor:pointer}
.share-item .ico{width:52px;height:52px;border-radius:16px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:20px;font-weight:700}
.share-item .ico.wx{background:#07C160}
.share-item .ico.qq{background:#12B7F5}
.share-item .ico.def{background:#F0A64A;font-size:22px}
.share-item .lb{font-size:12px;color:#666}

/* 日记 */
.search{display:flex;gap:8px;margin-bottom:12px}
.search input{flex:1;border:none;outline:none;background:var(--card);box-shadow:var(--shadow);border-radius:12px;padding:11px 14px;font-size:13px;color:var(--ink)}
.search button{border:none;background:var(--accent);color:#fff;border-radius:12px;padding:0 16px;font-weight:700;cursor:pointer}
.diary{background:#fff;border-radius:18px;box-shadow:var(--shadow-card);padding:14px;margin-bottom:12px}
.diary .dh{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.diary .dm{font-size:13px;font-weight:700}
.diary .mm{font-size:13px}
.diary .dt{font-size:12px;color:var(--sub);margin-left:auto}
.diary .txt{font-size:14px;line-height:1.7;white-space:pre-wrap}
.diary .imgs{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.diary .imgs img{width:72px;height:72px;object-fit:cover;border-radius:10px}
.diary .act{display:flex;gap:8px;margin-top:8px}
.diary .act button{border:none;background:var(--line);color:var(--sub);border-radius:10px;padding:5px 12px;font-size:12px;cursor:pointer}
/* 日记时间线（融合当天打卡 + 日记） */
.tl-day{border-radius:22px;padding:14px 16px;margin-bottom:14px}
.tl-day .tl-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:10px}
.tl-day .tl-date{font-size:14px;font-weight:900}
.tl-day .tl-today{font-size:11px;color:#fff;background:var(--accent);border-radius:10px;padding:2px 8px}
.tl-day .tl-ck{font-size:11px;color:var(--sub);margin-left:auto;display:flex;align-items:center;gap:4px;flex-wrap:wrap;}
.tl-day .diary{background:rgba(255,255,255,.7);box-shadow:none;margin:8px 0 0;padding:12px;border-radius:16px}
.tl-day .diary .dh{justify-content:flex-end;margin-bottom:2px}
.tl-day .diary .mm{font-size:12px;color:var(--sub);margin-right:auto}

/* 我的 */
.user-card{display:flex;align-items:center;gap:14px;background:var(--card);border-radius:16px;box-shadow:var(--shadow);padding:16px;margin-bottom:14px}
.avatar{width:56px;height:56px;border-radius:50%;background:var(--accent);display:flex;align-items:center;justify-content:center;font-size:26px;color:#fff}
.user-card .nm{font-size:17px;font-weight:800}
.user-card .st{font-size:12px;color:var(--sub);margin-top:3px}
.user-card .edit{margin-left:auto;font-size:13px;color:var(--accent);cursor:pointer}
.set-item{display:flex;align-items:center;gap:14px;background:var(--card);border-radius:16px;box-shadow:var(--shadow);padding:14px 16px;margin-bottom:10px;cursor:pointer}
.set-item .ic{width:38px;height:38px;border-radius:12px;background:var(--line);display:flex;align-items:center;justify-content:center;font-size:18px}
.set-item .tx{font-size:14px;font-weight:600;flex:1}
.set-item .sub{font-size:11px;color:var(--sub)}
.set-item .arr{color:var(--sub)}
.switch{width:46px;height:27px;border-radius:14px;background:var(--line);position:relative;cursor:pointer;transition:.25s;flex:0 0 auto}
.switch::after{content:"";position:absolute;top:3px;left:3px;width:21px;height:21px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.2);transition:.25s}
.switch.on{background:var(--green)}
.switch.on::after{left:22px}

/* 底部导航 */
.tabbar{position:absolute;left:50%;bottom:calc(8px + env(safe-area-inset-bottom, 0px));transform:translateX(-50%);width:356px;height:62px;background:rgba(255,255,255,.92);backdrop-filter:blur(14px);border-radius:32px;box-shadow:0 10px 30px rgba(100,110,80,.18);display:flex;align-items:center;justify-content:space-around;z-index:20;padding:0 10px}
.tb{flex:1;height:46px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0px;font-size:10px;color:var(--ink-3);cursor:pointer;border-radius:24px;transition:all .2s}
.tb .ti{display:block;font-size:20px;margin-bottom:0px}
.tb.on{background:var(--bg);color:var(--ink);font-weight:700}
.tb-center.on{background:rgba(184,201,168,.35);border-radius:40px;padding:6px 8px;}
.tb-center{transform:translateY(-8px);gap:0px;}
.tb-center .ti{width:56px;height:56px;border-radius:50%;background:#4EA8F5;display:flex;align-items:center;justify-content:center;padding:5px;box-shadow:0 4px 12px rgba(100,110,80,.25);margin-bottom:0px !important;}
.tb-center .ti img{width:100% !important;height:100% !important;border-radius:50%;object-fit:cover;}

/* 底部抽屉 sheet */
#overlay{position:absolute;inset:0;background:rgba(0,0,0,.4);opacity:0;pointer-events:none;transition:.25s;z-index:40}
#overlay.open{opacity:1;pointer-events:auto}
#sheet{position:absolute;left:0;right:0;bottom:0;background:var(--bg);border-radius:22px 22px 0 0;padding:16px 18px 26px;transform:translateY(102%);transition:transform .3s;z-index:50;max-height:86vh;max-height:86dvh;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
#sheet.open{transform:none}
#sheet .handle{width:44px;height:5px;border-radius:3px;background:var(--line);margin:0 auto 14px}
#sheet h2{font-size:17px;margin-bottom:14px;text-align:center}
#sheet .sheet-close{position:sticky;top:-6px;float:right;border:none;background:var(--card);box-shadow:var(--shadow);width:30px;height:30px;border-radius:50%;color:var(--sub);font-size:15px;cursor:pointer;z-index:3}
.field{margin-bottom:14px}
.field .fl{font-size:13px;font-weight:700;color:var(--sub);margin-bottom:7px}
.field input,.field textarea,.field select{width:100%;border:none;outline:none;background:var(--card);box-shadow:var(--shadow);border-radius:12px;padding:11px 14px;font-size:14px;color:var(--ink);font-family:inherit}
.field textarea{resize:none;height:90px}
/* 密码框：右侧显示/隐藏密码按钮（统一封装，44×44 触控区，绝对定位不影响输入框高度/间距） */
.pwd-wrap{position:relative}
.pwd-wrap input{padding-right:48px}
.pwd-toggle{position:absolute;top:50%;right:4px;transform:translateY(-50%);width:44px;height:44px;display:flex;align-items:center;justify-content:center;padding:0;border:none;border-radius:10px;background:transparent;color:var(--sub);cursor:pointer;-webkit-tap-highlight-color:transparent}
.pwd-toggle svg{width:20px;height:20px;display:block}
.pwd-toggle.on{color:var(--accent)}
.pwd-toggle:active{background:rgba(0,0,0,.06)}
.chips{display:flex;gap:8px;flex-wrap:wrap}
.tpl-scroll{flex-wrap:nowrap;overflow-x:auto;padding-bottom:8px}
.unit-scroll{flex-wrap:nowrap;overflow-x:auto;padding-bottom:8px}
.h-scroll{display:flex;gap:8px;flex-wrap:nowrap;overflow-x:auto;padding-bottom:8px;-webkit-overflow-scrolling:touch}
.chips .ch{font-size:13px;padding:8px 16px;border-radius:14px;background:var(--card);box-shadow:var(--shadow);cursor:pointer;font-weight:600;border:none;color:var(--ink);transition:all .15s;line-height:1.2;white-space:nowrap;flex-shrink:0}
.chips .ch.on{background:#8FBF9F;color:#fff;box-shadow:none;border:none;outline:none}
.icon-row{display:flex;flex-wrap:wrap;gap:8px}
.icon-row .ic{width:36px;height:36px;border-radius:9px;background:var(--card);box-shadow:var(--shadow);display:flex;align-items:center;justify-content:center;font-size:19px;cursor:pointer;border:2px solid transparent;transition:.15s}
.icon-row .ic.on{border-color:var(--accent);background:var(--accent)22}
#hDrawIconRow .draw-ic{width:56px !important;height:56px !important;border-radius:12px;background:var(--card);box-shadow:var(--shadow);display:flex;align-items:center;justify-content:center;cursor:pointer;border:2px solid transparent;transition:.15s;overflow:hidden}
#hDrawIconRow{gap:10px !important}
#hDrawIconRow .draw-ic img{width:56px !important;height:56px !important;object-fit:contain !important;display:block}
#hDrawIconRow .draw-ic.on{border-color:var(--accent);background:var(--accent)22}
.color-row{display:flex;flex-wrap:wrap;gap:9px;align-items:center}
.color-row .cc{width:26px;height:26px;border-radius:50%;cursor:pointer;border:2px solid transparent;box-shadow:var(--shadow);transition:.15s;flex:0 0 auto}
.color-row .cc.on{border-color:var(--ink);transform:scale(1.18)}
.color-row .cc.more{background:conic-gradient(red,yellow,lime,cyan,blue,magenta,red);color:#fff;font-size:12px;font-weight:800;display:flex;align-items:center;justify-content:center}
#sheet .field{margin-bottom:10px}
#sheet .field .fl{margin-bottom:6px}
#sheet .chips .ch{padding:7px 16px;flex-shrink:0;white-space:nowrap}
.avatar-pick{display:flex;flex-wrap:wrap;gap:8px}
.avatar-pick span{width:42px;height:42px;border-radius:12px;background:var(--card);box-shadow:var(--shadow);display:flex;align-items:center;justify-content:center;font-size:22px;cursor:pointer;border:2px solid transparent}
.avatar-pick span.on{border-color:var(--accent)}
.phone-row{display:flex;gap:8px}
.phone-row input{flex:1}
.phone-row button{flex:0 0 auto;font-size:13px;font-weight:700;padding:0 14px;border-radius:12px;border:none;cursor:pointer;background:var(--accent);color:#fff}
.btn-main{width:100%;background:var(--accent);color:#fff;border:none;border-radius:14px;padding:14px;font-size:15px;font-weight:700;cursor:pointer;margin-top:6px}
.btn-ghost{width:100%;background:var(--line);color:var(--sub);border:none;border-radius:14px;padding:13px;font-size:14px;font-weight:600;cursor:pointer;margin-top:8px}
.btn{width:100%;border:none;border-radius:14px;padding:14px;font-size:15px;font-weight:700;cursor:pointer;margin-top:6px;background:var(--accent);color:#fff}
.dw{display:flex;gap:8px}
.dw button{flex:1}

/* ============ 番茄专注：沉浸式极简 ============ */
#sheet.focus-page{background:#F6F3EC;overflow:hidden}
#sheet.focus-page .focus-shell{
  --fp-bg:#F6F3EC;--fp-ink:#1E1E1C;--fp-sub:#8B867B;--fp-line:#E4DFD1;
  --fp-card:#FFFFFF;--fp-accent:#7E9C7E;--fp-deep:#17231C;--fp-glow:rgba(126,156,126,.16);--fp-on-ink:#FFFFFF;
  position:relative;width:100%;height:100%;display:flex;flex-direction:column;
  background:var(--fp-bg);color:var(--fp-ink);overflow:hidden;
  transition:background .45s ease,color .45s ease;
}
html[data-theme="dark"] #sheet.focus-page{background:#151513}
html[data-theme="dark"] #sheet.focus-page .focus-shell{--fp-bg:#151513;--fp-ink:#F2EEE4;--fp-sub:#8F8A80;--fp-line:#2B2A26;--fp-card:#1E1D1A;--fp-on-ink:#1E1E1C}
#sheet.focus-page .focus-shell.running{background:var(--fp-deep);color:#F7F3E8}
#sheet.focus-page .focus-shell::before{content:'';position:absolute;left:0;right:0;top:0;height:46%;background:radial-gradient(120% 90% at 50% 0%,var(--fp-glow),transparent 72%);pointer-events:none;opacity:1;transition:opacity .45s}
#sheet.focus-page .focus-shell.running::before{opacity:.55}

.focus-top{position:relative;z-index:2;flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;height:calc(env(safe-area-inset-top) + 58px);padding:calc(env(safe-area-inset-top) + 14px) 18px 4px}
.focus-title{font-size:16px;font-weight:800;letter-spacing:.04em}
.focus-icon{width:40px;height:40px;border:0;border-radius:14px;background:transparent;color:var(--fp-ink);display:grid;place-items:center;cursor:pointer;transition:background .15s,transform .1s}
.focus-icon:active{transform:scale(.92);background:rgba(0,0,0,.05)}
.focus-top-spacer{width:40px;height:40px}
.focus-body{position:relative;z-index:1;flex:1;min-height:0;display:flex;flex-direction:column;padding:2px 22px 0;overflow:hidden}

/* 目标 + 备注 */
.focus-setup{flex:0 0 auto;display:flex;flex-direction:column;gap:10px;margin-top:6px}
.focus-setup-row{display:flex;align-items:center;gap:10px}
.focus-goal{flex:1;min-width:0;display:flex;align-items:center;gap:8px;height:46px;padding:0 14px;border:1px solid var(--fp-line);border-radius:16px;background:var(--fp-card);color:var(--fp-ink);cursor:pointer;box-shadow:0 2px 10px rgba(0,0,0,.03);text-align:left;font-family:inherit}
.focus-goal-kicker{flex:0 0 auto;font-size:11px;color:var(--fp-sub)}
.focus-goal-value{flex:1;min-width:0;font-size:13px;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.focus-goal-chev{flex:0 0 auto;color:var(--fp-sub)}
.focus-palette{flex:0 0 auto;width:46px;height:46px;border:1px solid var(--fp-line);border-radius:16px;background:var(--fp-card);color:var(--fp-sub);box-shadow:0 2px 10px rgba(0,0,0,.03)}
.focus-note-wrap{display:flex;align-items:center;gap:8px;height:42px;padding:0 14px;border:1px solid var(--fp-line);border-radius:16px;background:var(--fp-card);color:var(--fp-sub)}
.focus-note{flex:1;min-width:0;border:0;outline:0;background:transparent;padding:0;font-family:inherit;font-size:13px;color:var(--fp-ink)}
.focus-note::placeholder{color:var(--fp-sub)}

/* 核心计时区：巨大数字绝对居中 */
.focus-stage{position:relative;flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:8px 0}
.focus-goal-line{max-width:100%;margin-bottom:10px;padding:0 12px;font-size:12px;font-weight:600;color:var(--fp-sub);text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:none}
.focus-time{font-size:clamp(66px,27vw,108px);line-height:1;font-weight:800;letter-spacing:-.045em;color:var(--fp-ink);font-variant-numeric:tabular-nums;user-select:none;transition:color .45s}
.focus-sub{margin-top:14px;font-size:13px;font-weight:600;color:var(--fp-sub);letter-spacing:.02em}
.running .focus-time{color:#F7F3E8}
.running .focus-setup{display:none}
.running .focus-icon{color:#F7F3E8}
.running .focus-sub,.running .focus-goal-line{color:rgba(247,243,232,.62)}
.running .focus-icon:active{background:rgba(255,255,255,.08)}

/* 横向时间轴：选中项深色凸起卡片 */
.focus-durations{position:relative;flex:0 0 auto;display:flex;align-items:flex-start;padding:20px 0 8px;margin-bottom:4px;transition:opacity .3s}
.focus-durations::before{content:'';position:absolute;left:8%;right:8%;top:26px;height:1px;background:var(--fp-line)}
.focus-dur{position:relative;z-index:1;flex:1;display:flex;flex-direction:column;align-items:center;gap:10px;padding:0;border:0;background:transparent;color:var(--fp-sub);font-family:inherit;cursor:pointer}
.focus-dur-dot{width:9px;height:9px;border-radius:50%;background:var(--fp-bg);border:1.5px solid var(--fp-line);transition:all .25s}
.focus-dur-label{font-size:12px;font-weight:700;padding:7px 10px;border-radius:12px;white-space:nowrap;transition:all .25s}
.focus-dur.on .focus-dur-dot{background:var(--fp-ink);border-color:var(--fp-ink);box-shadow:0 0 0 4px rgba(30,30,28,.08)}
.focus-dur.on .focus-dur-label{background:var(--fp-ink);color:var(--fp-on-ink);transform:translateY(-2px);box-shadow:0 8px 18px -8px rgba(0,0,0,.45)}
.focus-dur:active .focus-dur-label{transform:scale(.95)}
.running .focus-durations{opacity:.55}
.running .focus-dur:not(.on){opacity:.55}
.running .focus-durations::before{background:rgba(247,243,232,.22)}
.running .focus-dur{pointer-events:none}
.running .focus-dur-dot{background:var(--fp-deep);border-color:rgba(247,243,232,.3)}
.running .focus-dur.on .focus-dur-dot{background:#F7F3E8;border-color:#F7F3E8;box-shadow:none}
.running .focus-dur.on .focus-dur-label{background:#F7F3E8;color:var(--fp-deep)}

/* 底部：巨大深色主按钮 / 暂停+结束组合 / 权限引导 */
.focus-foot{position:relative;z-index:2;flex:0 0 auto;display:flex;flex-direction:column;gap:10px;padding:8px 22px calc(env(safe-area-inset-bottom) + 12px)}
.focus-cta{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;height:58px;border:0;border-radius:19px;background:var(--fp-ink);color:var(--fp-on-ink);font-family:inherit;font-size:16px;font-weight:800;letter-spacing:.04em;cursor:pointer;box-shadow:0 14px 30px -14px rgba(0,0,0,.5);transition:transform .1s}
.focus-cta:active{transform:scale(.98)}
.running .focus-cta{display:none}
.focus-actions{display:none;gap:10px;width:100%}
.running .focus-actions{display:flex}
.focus-act{height:58px;border:0;border-radius:19px;font-family:inherit;font-size:16px;font-weight:800;cursor:pointer;transition:transform .1s}
.focus-act:active{transform:scale(.98)}
.focus-act-main{flex:1.7;background:#F7F3E8;color:#1E1E1C;box-shadow:0 14px 30px -14px rgba(0,0,0,.5)}
.focus-act-sub{flex:1;background:rgba(247,243,232,.1);color:#F7F3E8;border:1px solid rgba(247,243,232,.22)}
.focus-perm{display:flex;align-items:center;justify-content:center;gap:6px;padding:2px 0;border:0;background:transparent;color:var(--fp-sub);font-family:inherit;font-size:11.5px;font-weight:600;cursor:pointer;white-space:nowrap}
.focus-perm-tail{margin-left:2px;color:var(--fp-accent);font-weight:800}
.running .focus-perm{color:rgba(247,243,232,.5)}
.running .focus-perm-tail{color:var(--fp-accent);filter:brightness(1.45)}

/* 页内浮层：目标选择 / 氛围主题 */
.focus-pop{position:absolute;inset:0;z-index:20;display:flex;flex-direction:column;justify-content:flex-end;opacity:0;transition:opacity .2s}
.focus-pop.on{opacity:1}
.focus-pop-mask{position:absolute;inset:0;background:rgba(20,18,14,.35);backdrop-filter:blur(2px)}
.focus-pop-card{position:relative;display:flex;flex-direction:column;max-height:82%;padding:10px 20px calc(env(safe-area-inset-bottom) + 18px);border-radius:26px 26px 0 0;background:var(--fp-card);box-shadow:0 -18px 40px rgba(0,0,0,.16);transform:translateY(18px);transition:transform .24s ease;overflow:hidden}
.focus-pop.on .focus-pop-card{transform:none}
.focus-pop-grip{flex:0 0 auto;width:38px;height:4px;margin:0 auto 12px;border-radius:3px;background:var(--fp-line)}
.focus-pop-title{flex:0 0 auto;margin-bottom:4px;font-size:17px;font-weight:900}
.focus-pop-desc{flex:0 0 auto;margin-bottom:14px;font-size:12px;color:var(--fp-sub)}
.focus-goal-list{flex:1;min-height:0;display:flex;flex-direction:column;gap:6px;margin:0 -6px 12px;padding:0 6px;overflow-y:auto;scrollbar-width:none}
.focus-goal-list::-webkit-scrollbar{display:none}
.focus-goal-item{display:flex;align-items:center;gap:10px;width:100%;padding:11px 12px;border:1px solid transparent;border-radius:14px;background:transparent;color:var(--fp-ink);font-family:inherit;font-size:14px;font-weight:600;cursor:pointer;text-align:left}
.focus-goal-item:active{background:rgba(0,0,0,.04)}
.focus-goal-item.on{border-color:var(--fp-accent);background:rgba(126,156,126,.12)}
.focus-goal-ico{flex:0 0 auto;width:30px;height:30px;display:grid;place-items:center;overflow:hidden;border-radius:10px;background:var(--fp-bg)}
.focus-goal-ico img{width:100%;height:100%;object-fit:contain}
.focus-goal-emoji{font-size:17px;line-height:1}
.focus-goal-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.focus-goal-tick{color:var(--fp-accent);font-weight:900;opacity:0}
.focus-goal-item.on .focus-goal-tick{opacity:1}
.focus-custom-row{flex:0 0 auto;display:flex;gap:8px}
.focus-custom-row input{flex:1;min-width:0;height:44px;padding:0 13px;border:1px solid var(--fp-line);border-radius:13px;background:var(--fp-bg);outline:0;font-family:inherit;font-size:13px;color:var(--fp-ink)}
.focus-custom-row button{height:44px;padding:0 18px;border:0;border-radius:13px;background:var(--fp-ink);color:var(--fp-on-ink);font-family:inherit;font-size:13px;font-weight:800;cursor:pointer}
.focus-theme-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding-bottom:4px}
.focus-theme{position:relative;display:flex;flex-direction:column;align-items:center;gap:8px;padding:14px 0 12px;border:1px solid var(--fp-line);border-radius:16px;background:var(--fp-bg);color:var(--fp-ink);font-family:inherit;font-size:12px;font-weight:700;cursor:pointer}
.focus-theme.on{border-color:var(--fp-accent);box-shadow:inset 0 0 0 1px var(--fp-accent)}
.focus-theme-dot{width:26px;height:26px;border-radius:50%;box-shadow:0 3px 8px rgba(0,0,0,.16)}
.focus-theme-tick{position:absolute;top:7px;right:9px;font-size:11px;color:var(--fp-accent);opacity:0}
.focus-theme.on .focus-theme-tick{opacity:1}

/* 专注历史 */
.focus-hist-summary{flex:0 0 auto;display:flex;margin:8px 22px 14px;padding:16px 8px;border:1px solid var(--fp-line);border-radius:20px;background:var(--fp-card)}
.focus-hist-summary>div{flex:1;display:flex;flex-direction:column;align-items:center;gap:4px}
.focus-hist-summary>div+div{border-left:1px solid var(--fp-line)}
.focus-hist-summary b{font-size:22px;font-weight:900;line-height:1}
.focus-hist-summary span{font-size:11px;font-weight:600;color:var(--fp-sub)}
.focus-hist-list{flex:1;min-height:0;padding:0 22px calc(env(safe-area-inset-bottom) + 18px);overflow-y:auto;scrollbar-width:none}
.focus-hist-list::-webkit-scrollbar{display:none}
.focus-hist-day{margin:14px 2px 8px;font-size:12px;font-weight:800;color:var(--fp-sub)}
.focus-hist-day:first-child{margin-top:0}
.focus-log{margin-bottom:8px;padding:13px 14px;border:1px solid var(--fp-line);border-radius:16px;background:var(--fp-card)}
.focus-log-main{display:flex;align-items:center;justify-content:space-between;gap:8px}
.focus-log-goal{font-size:14px;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.focus-log-tag{flex:0 0 auto;padding:3px 8px;border-radius:999px;font-size:10.5px;font-weight:800}
.focus-log-tag.ok{color:#2E7D53;background:rgba(126,156,126,.16)}
.focus-log-tag.quit{color:#A8704F;background:rgba(198,125,92,.14)}
.focus-log-meta{margin-top:5px;font-size:11.5px;color:var(--fp-sub)}
.focus-log-note{margin-top:6px;font-size:12px;line-height:1.5;color:var(--fp-sub);word-break:break-word}
.focus-hist-empty{padding:60px 10px;text-align:center;font-size:14px;font-weight:700;color:var(--fp-sub)}
.focus-hist-empty-ico{margin-bottom:10px;font-size:40px}
.focus-hist-empty-sub{margin-top:6px;font-size:12px;font-weight:500;line-height:1.6}

/* 小屏适配：保证不出现纵向滚动条 */
@media (max-height:700px){
  .focus-top{height:calc(env(safe-area-inset-top) + 50px);padding-top:calc(env(safe-area-inset-top) + 8px)}
  .focus-body{padding:0 18px}
  .focus-setup{gap:8px;margin-top:2px}
  .focus-goal,.focus-palette{height:42px}
  .focus-note-wrap{height:38px}
  .focus-time{font-size:clamp(58px,23vw,86px)}
  .focus-sub{margin-top:10px}
  .focus-durations{padding-top:14px}
  .focus-durations::before{top:20px}
  .focus-dur{gap:8px}
  .focus-dur-label{padding:6px 8px;font-size:11.5px}
  .focus-foot{gap:8px;padding:6px 18px calc(env(safe-area-inset-bottom) + 8px)}
  .focus-cta,.focus-act{height:52px}
  .focus-stage{padding:4px 0}
}
@media (max-height:600px){
  .focus-note-wrap{display:none}
  .focus-time{font-size:clamp(52px,21vw,76px)}
  .focus-perm{font-size:11px}
}

/* 图片选择 */
.img-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;max-height:40vh;overflow-y:auto}
.img-grid .ig{aspect-ratio:1;border-radius:10px;overflow:hidden;position:relative;cursor:pointer;border:2px solid transparent}
.img-grid .ig img{width:100%;height:100%;object-fit:cover}
.img-grid .ig.sel{border-color:var(--accent)}
.img-grid .ig.sel::after{content:"✓";position:absolute;top:4px;right:4px;width:20px;height:20px;border-radius:50%;background:var(--accent);color:#fff;display:flex;align-items:center;justify-content:center;font-size:12px}
.dsel{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
.dsel .ds{position:relative;width:56px;height:56px;border-radius:10px;overflow:hidden}
.dsel .ds img{width:100%;height:100%;object-fit:cover}
.dsel .ds b{position:absolute;top:0;right:0;background:rgba(0,0,0,.5);color:#fff;font-size:10px;padding:1px 5px;border-radius:0 0 0 8px;cursor:pointer}

/* 日记选图：素材库/相册 两选项 + col 弹层 + 底部确认栏 + 双击放大预览 */
.dsc-opt{display:flex;gap:10px;margin-bottom:10px}
.dsc-opt .opt{flex:1;padding:13px 0;border:none;border-radius:14px;background:var(--card);color:var(--ink);font-size:13px;font-weight:700;cursor:pointer;border:1px solid var(--line);box-shadow:var(--shadow);transition:all .15s}
.dsc-opt .opt.on{background:var(--accent);color:#fff;box-shadow:none;border-color:var(--accent)}
.dsc-hint{font-size:11px;color:var(--sub);margin:6px 2px}
#sheet.col{display:flex;flex-direction:column;overflow:hidden;max-height:86vh;max-height:86dvh}
#sheet.col h2, #sheet.col .chips, #sheet.col .tpl-scroll{flex-shrink:0}
#sheet.col .chips.tpl-scroll{margin-bottom:10px}
#sheet.col .dsc-body{flex:1;overflow-y:auto;min-height:0;padding-bottom:20px;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
#sheet.col .sheet-foot{flex:0 0 auto;background:var(--bg);padding:10px 18px calc(10px + env(safe-area-inset-bottom));border-top:1px solid var(--line);box-shadow:0 -4px 18px rgba(0,0,0,.10)}
#sheet.col .sheet-foot.pair{display:flex;gap:10px;align-items:center}
#sheet.col .sheet-foot.pair .btn,#sheet.col .sheet-foot.pair .btn-ghost{flex:1;margin:0}
.dsel-scroll{display:flex;gap:6px;flex-wrap:nowrap;overflow-x:auto;padding-bottom:8px}
.sheet-foot #dscPreview{margin-bottom:6px}
.dsc-actions{display:flex;gap:10px}
.dsc-actions .btn{margin-top:0;flex:1}
.dsc-actions .btn-ghost{margin-top:0;flex:1;background:var(--line);color:var(--sub)}

/* 账号体系 · 登录/注册（市面风格全屏页，复用 --accent 等主题变量） */
#sheet.auth{max-height:100dvh;height:100dvh;border-radius:0;padding:0;overflow:hidden;display:flex;flex-direction:column}
#sheet.auth .handle{display:none}
#sheet.auth .auth-mood{position:relative;flex:0 0 auto;height:168px;overflow:hidden}
#sheet.auth .auth-mood .scene{position:absolute;inset:0;width:100%;height:100%}
#sheet.auth .auth-brand{position:absolute;top:20px;left:70px;z-index:2;font-weight:700;font-size:13px;letter-spacing:.14em;color:var(--accent2);display:inline-flex;align-items:center;gap:8px}
#sheet.auth .auth-back{position:absolute;top:18px;left:18px;z-index:999;width:40px;height:40px;border-radius:50%;border:0;background:var(--card);box-shadow:0 6px 18px -10px rgba(60,40,20,.4);color:var(--ink);cursor:pointer;display:grid;place-items:center;transition:transform .1s}
#sheet.auth .auth-body{padding:22px 0 24px;overflow:visible}
#sheet.auth .auth-back:active{transform:scale(.92)}
#sheet.auth .auth-brand::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 5px rgba(255,138,76,.25)}
#sheet.auth .auth-body{flex:1;overflow-y:auto;height:calc(100dvh - 168px);min-height:0;padding:6px 24px 18px;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
#sheet.auth .auth-head{margin:2px 0 16px}
#sheet.auth .auth-hi{font-size:26px;font-weight:800}
#sheet.auth .auth-sub{margin-top:8px;font-size:13px;color:var(--sub);line-height:1.6}
#sheet.auth .auth-logged{margin-bottom:14px;padding:9px 13px;border-radius:12px;background:var(--green-soft);color:var(--green);font-size:13px;text-align:center}
#sheet.auth .auth-tabs{display:flex;gap:8px;margin:0 0 14px}
#sheet.auth .auth-tab{flex:1;padding:9px 0;border-radius:10px;background:transparent;color:var(--sub);font-size:14px;font-weight:600;border:none;cursor:pointer;transition:all .15s}
#sheet.auth .auth-tab.on{background:#2FB6C4;color:#fff;box-shadow:none}
#sheet.auth .agree{display:flex;align-items:flex-start;gap:10px;margin:16px 2px 0;font-size:12px;color:var(--sub);line-height:1.55}
#sheet.auth .agree .ck{flex:none;width:24px;height:24px;margin-top:0;border:1.5px solid var(--line);border-radius:6px;background:var(--card);cursor:pointer;display:grid;place-items:center;transition:background .15s,border-color .15s;padding:4px}
#sheet.auth .agree .ck svg{width:16px;height:16px;opacity:0;stroke:#fff;stroke-width:3;fill:none;stroke-linecap:round;stroke-linejoin:round;transition:opacity .15s;pointer-events:none}
#sheet.auth .agree .ck.on{background:var(--accent);border-color:var(--accent)}
#sheet.auth .agree .ck.on svg{opacity:1}
#sheet.auth .agree a{color:var(--accent2);text-decoration:none}
#sheet.auth .auth-err{display:none;margin-top:12px;font-size:12px;color:#c94b3a;line-height:1.5}
#sheet.auth .auth-err.show{display:block}
#sheet.auth .auth-cta{height:52px;margin-top:18px;border-radius:16px;box-shadow:none}
#sheet.auth .auth-cta[disabled]{background:var(--line);color:#b9a68f;box-shadow:none}
#sheet.auth .guest{margin-top:16px;text-align:center;font-size:13px;color:var(--sub)}
#sheet.auth .guest b{color:var(--ink);font-weight:600;cursor:pointer}
#sheet.auth .auth-logout{margin-top:16px;background:var(--line);color:var(--sub)}
#sheet.auth .auth-foot{margin:24px 0 6px;text-align:center;font-size:11px;color:#b7a691;line-height:1.9}
#sheet.auth .auth-foot a{color:var(--sub);text-decoration:none;padding:0 5px}

/* 我的页 · 退出软件键（市面红字卡片钮） */
.exit-row{margin:16px 16px 4px}
.exit-key{width:100%;padding:14px;border:0;border-radius:14px;background:var(--card);color:#c94b3a;font-size:15px;font-weight:700;letter-spacing:.04em;cursor:pointer;box-shadow:var(--shadow)}
.exit-key:active{background:#fbeae6}
#albCount.pop{animation:countPop .32s ease}
@keyframes countPop{0%{transform:scale(.72);color:var(--accent)}60%{transform:scale(1.12)}100%{transform:scale(1);color:#fff}}
.lib-region{margin-bottom:16px}
.lib-reg-title{font-size:12px;font-weight:700;color:var(--sub);margin:0 0 6px 2px}
.dsc-grid{display:flex;gap:8px;flex-wrap:wrap}
.dsc{position:relative;width:62px;height:62px;border-radius:10px;overflow:hidden;border:2px solid transparent;cursor:pointer;flex:0 0 auto}
.dsc img{width:100%;height:100%;object-fit:cover;display:block}
.dsc.sel{border-color:var(--accent)}
.dsc .tick{position:absolute;top:2px;right:2px;background:var(--accent);color:#fff;width:18px;height:18px;border-radius:50%;font-size:11px;display:none;align-items:center;justify-content:center;line-height:1}
.dsc.sel .tick{display:flex}
.dsc-sel{position:relative;width:62px;height:62px;border-radius:10px;overflow:hidden;flex:0 0 auto;border:1px solid var(--line)}
.dsc-sel img{width:100%;height:100%;object-fit:cover;display:block}
.dsc-sel .dsc-x{position:absolute;top:0;right:0;width:20px;height:20px;font-size:12px;line-height:1;background:rgba(0,0,0,.62);color:#fff;border:none;border-radius:0 0 0 9px;cursor:pointer;padding:0}
.dsc-sel .dsc-m{position:absolute;bottom:0;width:24px;height:20px;font-size:13px;line-height:1;background:rgba(0,0,0,.5);color:#fff;border:none;cursor:pointer;padding:0}
.dsc-sel .dsc-m:nth-of-type(1){left:0;border-radius:9px 0 0 0}
.dsc-sel .dsc-m:nth-of-type(2){right:0;border-radius:0 9px 0 0}
.dsc-prev{position:fixed;inset:0;background:rgba(0,0,0,.86);display:none;align-items:center;justify-content:center;z-index:90;flex-direction:column}
.dsc-prev.open{display:flex}
.dsc-prev .dp-box{width:88%;max-width:340px;border-radius:16px;overflow:hidden;box-shadow:0 24px 60px rgba(0,0,0,.5);animation:dpIn .25s ease;background:#000}
.dsc-prev .dp-box img{width:100%;display:block;max-height:78vh;object-fit:contain}
.dsc-prev .dp-hint{color:#fff;font-size:13px;margin-top:16px;opacity:.85}
@keyframes dpIn{from{transform:scale(.7);opacity:0}to{transform:scale(1);opacity:1}}

/* toast */
#toast{position:absolute;bottom:96px;left:50%;transform:translateX(-50%);background:rgba(40,30,20,.92);color:#fff;font-size:13px;padding:10px 20px;border-radius:20px;z-index:70;opacity:0;transition:.3s;pointer-events:none;white-space:nowrap;max-width:90%}
#toast.show{opacity:1}
.empty{text-align:center;color:var(--sub);font-size:13px;padding:44px 24px;line-height:1.7}
.empty .empty-ic{font-size:40px;margin-bottom:8px}
.empty p{font-size:12px;color:var(--sub);opacity:.85}
.muted{color:var(--sub);font-size:12px}
.center{text-align:center}

.tabbar{
  border:4px solid #C8B8D0;
}

/* 回归简约治愈风，去掉所有粗彩色边框 */
.today-stat-card, .today-todo-card, .today-tab-bar, .quick-action-bar,
.group-title-tag, .habit-num-tag, .top-icon-btn, .section-title-tag,
.group-add-btn, .tabbar,
.prog, .todo, .habit{border:none !important;}
span[onclick*="toggleHabitSearch"], span[onclick*="toggleHabitEdit"], span[onclick*="toggleHabitFilter"]{border:none !important;background:transparent !important;}

.today-stat-card{background:#e5e5e5 !important;box-shadow:var(--shadow-card);}
.today-todo-card{background:#e5e5e5 !important;box-shadow:var(--shadow-card);}
.today-tab-bar{background:#e5e5e5 !important;box-shadow:var(--shadow-card);}
.quick-action-bar{background:#e5e5e5 !important;box-shadow:var(--shadow-card);}
.top-icon-btn{background:#e5e5e5 !important;box-shadow:var(--shadow-card);}
.group-title-tag{background:#e5e5e5 !important;}
.section-title-tag{background:#e5e5e5 !important;}
.habit-num-tag{background:#e5e5e5 !important;}
.group-add-btn{background:#e5e5e5 !important;}
span[onclick*="toggleHabitSearch"], span[onclick*="toggleHabitEdit"], span[onclick*="toggleHabitFilter"]{background:#e5e5e5 !important;}

/* 习惯马卡龙圆立体效果 */
.habit-circle .circle{
  background:transparent !important;
  box-shadow:none !important;
}
.habit-circle .circle img{
  border-radius:50%;
  box-shadow:0 4px 14px rgba(0,0,0,.22) !important;
  border:2px solid #ffffff;
}

/* 我的页面所有卡片统一柔和阴影 */
#scr-profile .p-stat-card, #scr-profile .me-list{
  box-shadow:0 4px 14px rgba(0,0,0,.22) !important;
  background:#ffffff !important;
  border-radius:16px !important;
  overflow:hidden;
}
#scr-profile .me-item{
  box-shadow:none !important;
}
#scr-profile .p-avatar{
  box-shadow:0 4px 14px rgba(0,0,0,.22) !important;
}
#scr-profile .q-circle{
  box-shadow:0 4px 14px rgba(0,0,0,.22) !important;
}

/* 日记卡片里的习惯图标缩小 */
.diary img, .tl-day img{
  width:32px !important;
  height:32px !important;
  margin:0 !important;
  border-width:1px !important;
}
.tl-day .habit-icon-wrap, .diary .habit-icon-wrap{
  width:32px !important;
  height:32px !important;
  font-size:1em !important;
  line-height:1 !important;
  padding:0 !important;
}
.tl-day .habit-icon-wrap > span, .diary .habit-icon-wrap > span{
  transform:translateY(-1px);
}
}

/* 日记页搜索框样式 */
.search{
  display:flex;
  gap:10px;
  align-items:center;
}
.search input{
  flex:1;
  background:#ffffff !important;
  border:none !important;
  border-radius:12px !important;
  box-shadow:0 4px 14px rgba(0,0,0,.22) !important;
  padding:10px 14px !important;
}
.search button{
  background:#ffffff !important;
  color:#333 !important;
  border:none !important;
  border-radius:12px !important;
  box-shadow:0 4px 14px rgba(0,0,0,.22) !important;
  padding:10px 18px !important;
  cursor:pointer;
}
.today-stat-card, .today-todo-card, .today-tab-bar, .quick-action-bar,
.top-icon-btn, .group-title-tag, .section-title-tag, .habit-num-tag,
.group-add-btn, #more-btn{
  background:#ffffff !important;
  box-shadow:0 4px 14px rgba(0,0,0,.22) !important;
}
.h-card{
  box-shadow:0 4px 14px rgba(0,0,0,.16) !important;
}
.group-add-btn{
  padding:6px 10px !important;
  border-radius:10px !important;
  font-size:18px !important;
}
#more-btn{
  background:#ffffff !important;
  box-shadow:0 2px 8px rgba(0,0,0,.1) !important;
}

/* 日记页/月历页顶部模块阴影 */
.cal{
  background:#ffffff !important;
  box-shadow:0 4px 14px rgba(0,0,0,.22) !important;
  border-radius:16px !important;
  padding:16px !important;
}

/* 日记卡片柔和阴影 */
.tl-day{
  box-shadow:0 4px 14px rgba(0,0,0,.22) !important;
  border-radius:16px !important;
  padding:16px !important;
  margin-bottom:16px !important;
}
.diary{
  box-shadow:0 2px 8px rgba(0,0,0,.12) !important;
  border-radius:12px !important;
}

/* 底部导航栏柔和阴影 */
.tabbar{
  box-shadow:0 4px 14px rgba(0,0,0,.22) !important;
}
#more-btn{
  background:#e5e5e5 !important;
  box-shadow:0 2px 8px rgba(0,0,0,.12);
}
.top-icon-btn{
  background:#e5e5e5 !important;
  box-shadow:0 2px 8px rgba(0,0,0,.12) !important;
}

/* 日记操作按钮 */
.diary-btn{
  font-size:12px;
  padding:4px 10px;
  border-radius:12px;
  border:1px solid var(--line);
  background:var(--card);
  color:var(--ink);
  cursor:pointer;
  margin-left:6px;
}
.diary-btn-del{
  color:#e74c3c;
  border-color:#fadbd8;
  background:#fdedec;
}

/* 全屏二级页面（密码设置、番茄专注） */
#sheet.full-page{
  max-height:100dvh;
  height:100dvh;
  border-radius:0;
  padding:0;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
#sheet.full-page .handle,
#sheet.full-page .sheet-close{display:none;}
#sheet.full-page .page-content{
  flex:1;
  overflow-y:auto;
  padding:calc(env(safe-area-inset-top) + 70px) 20px 24px;
  -webkit-overflow-scrolling:touch;
}
#sheet.full-page .dsc-body{
  flex:1;
  overflow-y:auto;
  padding:0 20px 20px;
  -webkit-overflow-scrolling:touch;
  min-height:0;
}
#sheet.full-page .sheet-foot{
  flex:0 0 auto;
  background:var(--bg);
  padding:10px 20px calc(10px + env(safe-area-inset-bottom));
  border-top:1px solid var(--line);
  box-shadow:0 -4px 18px rgba(0,0,0,.10);
}
#sheet.full-page .sheet-foot.pair{
  display:flex;
  gap:10px;
  align-items:center;
}
#sheet.full-page .sheet-foot.pair .btn,
#sheet.full-page .sheet-foot.pair .btn-ghost{
  flex:1;
  margin:0;
}
.page-back{
  position:absolute;
  top:28px;                                            /* 老内核不支持 env()/max() 时的兜底 */
  top:max(28px, calc(env(safe-area-inset-top) + 16px));
  left:18px;
  width:40px;
  height:40px;
  border-radius:10px;
  border:2px solid #000;
  background:#fff;
  color:#000;
  cursor:pointer;
  display:grid;
  place-items:center;
  z-index:999;
}
.page-back:active{transform:scale(.94);}
#sheet.full-page h2{padding-top:0;}

/* 打卡表固定顶部：背景覆盖安全区，挡住滚动内容 */
.checkin-header{
  position:sticky;
  top: calc(-1 * (env(safe-area-inset-top) + 16px));
  background:var(--bg);
  z-index:10;
  padding: calc(env(safe-area-inset-top) + 16px) 16px 8px;
  margin: 0 -16px 8px;
}
.page-back{
  z-index:999;
}

/* ===== 提醒时间：表单展示值 + 底部滚轮选择面板 ===== */
.time-val{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  height:42px;
  padding:0 14px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--card);
  color:var(--ink);
  font-size:16px;
  font-weight:600;
  font-variant-numeric:tabular-nums;
  letter-spacing:.03em;
  cursor:pointer;
  transition:transform .1s;
}
.time-val:active{transform:scale(.985);}
.time-val-arrow{font-size:11px;color:var(--ink-3);line-height:1;}

.tp{
  position:absolute;
  inset:0;
  z-index:60;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  opacity:0;
  pointer-events:none;
  transition:opacity .2s;
}
.tp.open{opacity:1;pointer-events:auto;}
.tp.closing{pointer-events:auto;}
.tp-mask{position:absolute;inset:0;background:rgba(0,0,0,.4);}
.tp-panel{
  position:relative;
  width:100%;
  background:var(--bg);
  border-radius:22px 22px 0 0;
  padding:6px 0 calc(10px + env(safe-area-inset-bottom));
  transform:translateY(100%);
  transition:transform .22s cubic-bezier(.22,.9,.28,1);
  box-shadow:0 -10px 30px -12px rgba(0,0,0,.35);
}
.tp.open .tp-panel{transform:none;}
.tp-head{display:flex;align-items:center;justify-content:space-between;padding:10px 18px 6px;}
.tp-title{font-size:14px;font-weight:600;color:var(--ink);letter-spacing:.02em;}
.tp-act{border:none;background:transparent;color:var(--sub);font-size:15px;padding:8px 6px;cursor:pointer;border-radius:8px;}
.tp-act:active{background:var(--bg-soft);}
.tp-act-ok{color:var(--accent2);font-weight:700;}
.tp-wheels{position:relative;display:flex;align-items:center;justify-content:center;gap:8px;padding:7px 0;}
.tp-col{
  position:relative;
  z-index:1;
  width:88px;
  height:220px;
  -webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 26%,#000 74%,transparent 100%);
  mask-image:linear-gradient(to bottom,transparent 0,#000 26%,#000 74%,transparent 100%);
}
.tp-colon{position:relative;z-index:1;font-size:22px;font-weight:700;color:var(--ink);line-height:1;padding-bottom:2px;pointer-events:none;}
.tp-scroll{
  height:100%;
  overflow-y:scroll;
  scroll-snap-type:y mandatory;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
  touch-action:pan-y;
}
.tp-scroll::-webkit-scrollbar{display:none;width:0;height:0;}
.tp-spacer{height:88px;}
.tp-item{
  height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  scroll-snap-align:center;
  font-size:18px;
  color:var(--ink-3);
  opacity:.4;
  cursor:pointer;
  user-select:none;
  -webkit-user-select:none;
}
.tp-item span{display:block;transform-origin:center;transition:transform .16s ease,opacity .16s ease;}
.tp-item.near{opacity:.7;}
.tp-item.near span{transform:scale(1.08);}
.tp-item.on{opacity:1;color:var(--ink);}
.tp-item.on span{transform:scale(1.32);font-weight:700;}
.tp-band{
  position:absolute;
  z-index:0;
  left:50%;
  top:50%;
  width:min(78%,260px);
  height:44px;
  transform:translate(-50%,-50%);
  border-radius:14px;
  background:var(--bg-soft);
  border:1px solid var(--line);
  pointer-events:none;
}
html[data-theme="dark"] .tp-band{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.10);}

/* 月报打印：只对 body.print-report 生效，避免影响其他打印场景 */
@media print{
  @page{ size:A4; margin:10mm; }
  body.print-report{ background:#fff !important; }
  body.print-report #overlay,
  body.print-report #toast,
  body.print-report nav.tabbar,
  body.print-report main,
  body.print-report .sheet-close,
  body.print-report .handle,
  body.print-report #aiGenBtn,
  body.print-report .no-print{ display:none !important; }
  body.print-report .phone{ position:static; max-width:none; height:auto; overflow:visible; background:#fff; box-shadow:none; }
  body.print-report #sheet{ position:static; inset:auto; transform:none !important; max-height:none; height:auto; width:auto; overflow:visible; background:#fff; border-radius:0; box-shadow:none; padding:0; }
  body.print-report #monthReportBody h2,
  body.print-report #monthReportBody h3{ break-after:avoid; page-break-after:avoid; }
  body.print-report #monthReportBody .stat-grid,
  body.print-report #monthReportBody .stat-cell,
  body.print-report #monthReportBody .set-item{ break-inside:avoid; page-break-inside:avoid; }
  body.print-report #aiSummaryBox{ background:#fff; box-shadow:none; border:1px solid #ddd; }
  body.print-report #aiContent{ break-inside:auto; page-break-inside:auto; }
}
