/* =========================================================
   家庭打卡 · 协作版
   ========================================================= */
:root{
  --org:#ff7a45;
  --org-d:#f0602a;
  --org-l:#fff2ec;
  --ink:#1f2329;
  --ink2:#5c636e;
  --ink3:#9aa1ab;
  --line:#eef0f3;
  --bg:#f6f7f9;
  --card:#ffffff;
  --ok:#12b76a;
  --bad:#f04438;
  --grad:#7b61ff;
  --r:16px;
  --sh:0 2px 10px rgba(20,25,40,.05);
  --kai:"Kaiti SC","STKaiti","KaiTi","楷体","Kai","KaiTi_GB2312","AR PL UKai CN",serif;
  /* 四线格总高（与田字格同高）；--py-fs / --py-lh 由 JS 用 canvas 实测字体度量后校准 */
  --gh:50px;
  --py-fs:32.14px;   /* 使 x 高度 = 中格高（--gh / 3） */
  --py-lh:44.38px;   /* 使基线正好落在第三条线上（--gh * 2 / 3） */
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;padding:0}
body{
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Helvetica Neue","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  background:var(--bg);color:var(--ink);font-size:15px;line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
button,input,textarea{font-family:inherit;font-size:inherit;color:inherit;outline:none}
button{border:0;background:none;cursor:pointer}
.hide{display:none !important}

#app{padding-bottom:calc(66px + env(safe-area-inset-bottom))}
#app.no-tab{padding-bottom:0}

/* ---------------- 页面 ---------------- */
.page{min-height:100vh}
.wrap{padding:14px 14px 26px}

/* ---------------- 欢迎页 ---------------- */
.wel{padding:38px 22px 30px;max-width:520px;margin:0 auto}
.wel-ico{font-size:52px;text-align:center;line-height:1}
.wel-t{font-size:27px;font-weight:800;text-align:center;margin-top:12px;letter-spacing:.5px}
.wel-d{text-align:center;color:var(--ink2);font-size:14px;margin-top:10px;line-height:1.75}
.wel-d b{color:var(--org-d)}
.wel-card{background:var(--card);border-radius:var(--r);padding:16px;box-shadow:var(--sh);margin-top:18px}
.wel-or{display:flex;align-items:center;gap:10px;color:var(--ink3);font-size:12px;margin:18px 0}
.wel-or::before,.wel-or::after{content:"";flex:1;height:1px;background:#e3e6ea}
.lb{display:block;font-size:13px;color:var(--ink2);margin-bottom:8px;font-weight:600}
.wel-foot{margin-top:26px;text-align:center;color:var(--ink3);font-size:12px;line-height:1.9}

.inp{
  width:100%;height:46px;border:1px solid #e3e6ea;border-radius:12px;
  padding:0 14px;background:#fbfcfd;transition:.15s;
}
.inp:focus{border-color:var(--org);background:#fff;box-shadow:0 0 0 3px rgba(255,122,69,.12)}

.btn-primary{
  width:100%;height:48px;border-radius:12px;background:var(--org);color:#fff;
  font-weight:700;font-size:16px;margin-top:12px;transition:.15s;
}
.btn-primary:active{background:var(--org-d);transform:scale(.99)}
.btn-primary:disabled{background:#f3c3ae;color:#fff}
.btn-line{background:#fff;color:var(--org-d);border:1.5px solid var(--org)}
.btn-line:active{background:var(--org-l)}
.btn-ghost{
  flex:1;height:44px;border-radius:12px;background:#f1f3f5;color:var(--ink2);
  font-weight:600;transition:.15s;
}
.btn-ghost:active{background:#e6e9ed}
.btn-danger{
  width:100%;height:44px;border-radius:12px;background:#fff;color:var(--bad);
  border:1.5px solid #ffd9d6;font-weight:700;
}
.btn-sm{
  height:46px;padding:0 18px;border-radius:12px;background:var(--org);color:#fff;
  font-weight:700;flex:0 0 auto;
}
.btn-row{display:flex;gap:10px;margin-top:14px}
.btn-row .btn-primary{margin-top:0}
.row-inline{display:flex;gap:10px;align-items:center}

/* ---------------- 顶部 hero ---------------- */
.hero{
  background:linear-gradient(135deg,#ff8f5e 0%,#ff6a35 100%);
  color:#fff;padding:calc(20px + env(safe-area-inset-top)) 20px 20px;
  border-radius:0 0 22px 22px;
}
.hero-top{display:flex;justify-content:space-between;align-items:flex-start}
.hero-t{font-size:21px;font-weight:800;letter-spacing:.4px}
.hero-d{font-size:12.5px;opacity:.9;margin-top:3px}
.hero-right{text-align:right}
.streak-n{font-size:30px;font-weight:800;line-height:1.05}
.streak-l{font-size:11.5px;opacity:.88}
.hero-stat{display:flex;align-items:center;margin-top:16px;background:rgba(255,255,255,.16);border-radius:14px;padding:11px 0}
.hero-stat-tight{margin-top:12px;background:rgba(255,255,255,.2)}
.hs{flex:1;text-align:center}
.hs b{display:block;font-size:20px;font-weight:800;line-height:1.15}
.hs span{font-size:11.5px;opacity:.9}
.hs-line{width:1px;height:24px;background:rgba(255,255,255,.36)}

/* ---------------- 通用 bar ---------------- */
.bar{
  padding:calc(16px + env(safe-area-inset-top)) 18px 14px;background:#fff;
  border-bottom:1px solid var(--line);
}
.bar-t{font-size:19px;font-weight:800}
.bar-sub{font-size:12.5px;color:var(--ink3);margin-top:2px}
.bar-hero{
  background:linear-gradient(135deg,#ff8f5e 0%,#ff6a35 100%);
  color:#fff;border-bottom:0;border-radius:0 0 22px 22px;padding-bottom:18px;
}
.bar-hero .bar-sub{color:rgba(255,255,255,.88)}
.bar-back{
  color:#fff;font-size:14px;font-weight:600;padding:2px 6px 6px 0;opacity:.95;
}

/* ---------------- 列表 / 卡片 ---------------- */
.card{background:var(--card);border-radius:var(--r);padding:16px;box-shadow:var(--sh);margin-top:12px}
.ct{font-size:15px;font-weight:800;margin-bottom:6px}
.ct-d{font-size:12.5px;color:var(--ink3);line-height:1.75;margin-bottom:10px}
.ct-d b{color:var(--org-d)}
.card-tip{font-size:12.5px;color:var(--ink3);line-height:1.85;background:#fff;border-radius:var(--r);padding:14px;margin-top:16px;box-shadow:var(--sh)}
.card-tip b{color:var(--ink2)}

.tip-line{font-size:12.5px;color:var(--ink3);text-align:center;padding:14px 0}

/* 孩子卡片 */
.kids{margin-top:2px}
.kid{
  display:flex;align-items:center;gap:12px;background:#fff;border-radius:var(--r);
  padding:14px;box-shadow:var(--sh);margin-bottom:10px;transition:.15s;
}
.kid:active{transform:scale(.985)}
.kid-av{
  width:46px;height:46px;flex:0 0 46px;border-radius:14px;display:flex;align-items:center;justify-content:center;
  font-size:19px;font-weight:800;color:#fff;background:linear-gradient(135deg,#ffa06b,#ff6a35);
}
.kid-main{flex:1;min-width:0}
.kid-n{font-size:16px;font-weight:750;display:flex;align-items:center;gap:6px}
.badge{font-size:10.5px;font-weight:700;padding:1.5px 7px;border-radius:20px;background:#e8f7ef;color:#0e9f5e}
.badge.wait{background:var(--org-l);color:var(--org-d)}
.kid-d{font-size:12px;color:var(--ink3);margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.kid-right{text-align:center;flex:0 0 auto;padding-left:4px}
.kid-right b{display:block;font-size:19px;font-weight:800;color:var(--org-d);line-height:1.1}
.kid-right span{font-size:10.5px;color:var(--ink3)}
.mini-bar{height:4px;border-radius:4px;background:var(--line);margin-top:7px;overflow:hidden}
.mini-bar i{display:block;height:100%;border-radius:4px;background:linear-gradient(90deg,#ffa06b,#ff6a35)}

.btn-add-kid{
  width:100%;height:46px;border-radius:14px;border:1.5px dashed #d5dae0;color:var(--ink2);
  font-weight:700;background:#fff;margin-top:6px;
}
.btn-add-kid:active{background:#fafbfc}

/* ---------------- 空态 / 完成 ---------------- */
.empty{text-align:center;padding:34px 20px;background:#fff;border-radius:var(--r);box-shadow:var(--sh);margin-top:14px}
.empty-ico{font-size:40px;line-height:1}
.empty-t{font-size:16px;font-weight:750;margin-top:10px}
.empty-d{font-size:13px;color:var(--ink3);line-height:1.85;margin-top:8px}
.empty .btn-primary{max-width:260px;margin:16px auto 0}
.done-box{text-align:center;padding:26px 20px;background:#fff;border-radius:var(--r);box-shadow:var(--sh);margin-top:14px}
.done-ico{font-size:38px;line-height:1}
.done-t{font-size:16px;font-weight:750;margin-top:8px}
.done-d{font-size:12.5px;color:var(--ink3);margin-top:6px;line-height:1.8}
.done-box .btn-ghost{max-width:240px;margin:14px auto 0}

/* ---------------- 任务分组 ---------------- */
.grp{margin-top:16px}
.grp-h{display:flex;justify-content:space-between;align-items:baseline;padding:0 2px 9px}
.grp-t{font-size:14px;font-weight:800}
.grp-act{font-size:12.5px;color:var(--org-d);font-weight:600}
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(84px,1fr));gap:9px}
.card-item{
  background:#fff;border-radius:14px;box-shadow:var(--sh);padding:10px 6px 10px;
  text-align:center;position:relative;border:1.5px solid transparent;transition:.12s;
}
.card-item:active{transform:scale(.96)}
.card-item .py{
  font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;
  font-size:11.5px;color:var(--ink3);margin-top:5px;letter-spacing:.3px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.card-item .stg{position:absolute;top:6px;right:6px;font-size:9.5px;color:var(--org-d);background:var(--org-l);border-radius:6px;padding:0 4px;line-height:15px}
.card-item.is-wrong{border-color:#ffd9d6;background:#fffaf9}
.card-item.is-grad{background:#f7f9fb;opacity:.72}
.card-item.is-grad .hz,.card-item.is-grad .pyin{color:var(--ink2)}

/* 汉字：田字格（楷体） */
.tzg{
  position:relative;width:50px;height:50px;margin:0 auto;
  border:1.5px solid #f0a98c;border-radius:5px;background:#fff;
  display:flex;align-items:center;justify-content:center;
}
.tzg::before{content:"";position:absolute;left:50%;top:0;bottom:0;border-left:1px dashed #f6cbb8}
.tzg::after{content:"";position:absolute;top:50%;left:0;right:0;border-top:1px dashed #f6cbb8}
.tzg .hz{
  position:relative;z-index:1;font-family:var(--kai);
  font-size:33px;line-height:1;color:var(--ink);
}
.tzg .hz.long{font-size:18px;letter-spacing:-.5px}

/* 拼音：四线格（上格 / 中格 / 下格，字母主体正好占满中格） */
.sxg{
  position:relative;width:70px;height:var(--gh);margin:0 auto;overflow:hidden;
  background:
    linear-gradient(#f0a98c,#f0a98c) 0 0/100% 1.5px no-repeat,
    linear-gradient(#f6cbb8,#f6cbb8) 0 33.333%/100% 1px no-repeat,
    linear-gradient(#f6cbb8,#f6cbb8) 0 66.667%/100% 1px no-repeat,
    linear-gradient(#f0a98c,#f0a98c) 0 100%/100% 1.5px no-repeat;
}
.sxg .pyin{
  position:absolute;left:0;right:0;top:0;
  display:block;text-align:center;white-space:nowrap;
  font-family:Arial,"Helvetica Neue",Helvetica,"Liberation Sans",sans-serif;
  font-size:var(--py-fs);line-height:var(--py-lh);font-weight:400;
  color:var(--ink);
}

.who-line{
  font-size:12.5px;color:var(--ink2);background:#fff;border-radius:12px;
  padding:10px 13px;box-shadow:var(--sh);line-height:1.7;
}
.who-line b{color:var(--org-d)}

/* ---------------- 进度条 ---------------- */
.sr-head,.sr-foot{display:flex;justify-content:space-between;font-size:12.5px;color:var(--ink2)}
.sr-num i{font-style:normal;font-weight:800;color:var(--org-d)}
.sr-foot{margin-top:8px;color:var(--ink3)}
.sr-foot b{color:var(--ink)}
/* 总进度条（注意：不要叫 .bar，.bar 是页面标题栏） */
.pbar{height:8px;border-radius:8px;background:var(--line);margin-top:8px;overflow:hidden}
.pbar-in{height:100%;border-radius:8px;background:linear-gradient(90deg,#ffa06b,#ff6a35);transition:width .35s}

/* ---------------- 图表 ---------------- */
.chart{display:flex;align-items:flex-end;gap:6px;height:132px;padding-top:8px}
.ch-col{flex:1;text-align:center;display:flex;flex-direction:column;justify-content:flex-end;height:100%}
.ch-n{font-size:11px;color:var(--ink2);font-weight:700;margin-bottom:4px;height:15px}
.ch-bar{background:linear-gradient(180deg,#ffa06b,#ff6a35);border-radius:5px 5px 0 0;min-height:3px}
.ch-bar.zero{background:#eceff2}
.ch-d{font-size:10.5px;color:var(--ink3);margin-top:6px}

.streaks{display:flex;flex-direction:column;gap:9px}
.streak-row{display:flex;align-items:center;gap:10px;font-size:13.5px}
.streak-row .sr-av{width:30px;height:30px;border-radius:9px;background:var(--org-l);color:var(--org-d);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:13px}
.streak-row .sr-nm{flex:1;font-weight:650}
.streak-row .sr-v{font-weight:800;color:var(--org-d)}
.streak-row .sr-v small{color:var(--ink3);font-weight:500;font-size:11px}

/* ---------------- 记录流 ---------------- */
.loglist{display:flex;flex-direction:column}
.logitem{display:flex;gap:10px;padding:10px 0;border-bottom:1px solid var(--line);font-size:13px;align-items:flex-start}
.logitem:last-child{border-bottom:0}
.logitem .li-ico{width:26px;height:26px;flex:0 0 26px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:13px;background:var(--org-l)}
.logitem .li-main{flex:1;min-width:0}
.logitem .li-t{font-weight:650}
.logitem .li-t em{font-style:normal;color:var(--org-d);font-weight:800}
.logitem .li-s{font-size:11.5px;color:var(--ink3);margin-top:2px}
.logitem .li-time{font-size:11px;color:var(--ink3);flex:0 0 auto;padding-top:2px}

/* ---------------- 家庭页 ---------------- */
.invite-card{background:linear-gradient(160deg,#fff7f2,#fff)}
.room-line{display:flex;justify-content:space-between;align-items:center;background:#fff;border:1px dashed #ffd0ba;border-radius:12px;padding:11px 14px;margin-bottom:10px}
.room-line span{font-size:12.5px;color:var(--ink3)}
.room-line b{font-size:19px;font-weight:800;letter-spacing:2.5px;color:var(--org-d);font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.link-ta{
  width:100%;min-height:66px;border:1px solid #e3e6ea;border-radius:12px;padding:10px 12px;
  font-size:12px;color:var(--ink2);background:#fbfcfd;resize:none;word-break:break-all;line-height:1.6;
}
.ta{
  width:100%;min-height:112px;border:1px solid #e3e6ea;border-radius:12px;padding:12px;
  font-size:14px;background:#fbfcfd;resize:none;line-height:1.7;
}
.ta:focus{border-color:var(--org);background:#fff}
.admin-list{display:flex;flex-direction:column;gap:9px}
.admin-row{display:flex;align-items:center;gap:10px;background:#fafbfc;border-radius:12px;padding:10px 12px}
.admin-row .ar-n{flex:1;font-weight:650;font-size:14px}
.admin-row .ar-n small{display:block;color:var(--ink3);font-weight:400;font-size:11.5px}
.ar-btn{font-size:12.5px;color:var(--ink2);padding:5px 10px;border-radius:9px;background:#eef1f4;font-weight:600}
.ar-btn.del{color:var(--bad);background:#fff1f0}
.about{margin-top:22px;padding:0 4px 10px;color:var(--ink3);font-size:12px;line-height:1.85}
.ab-t{font-size:13px;font-weight:750;color:var(--ink2);margin-bottom:6px}
.ab-v{margin-top:8px;font-size:11.5px}
.danger-card{background:#fffafa}

/* ---------------- 底部导航 ---------------- */
.tabbar{
  position:fixed;left:0;right:0;bottom:0;display:flex;background:rgba(255,255,255,.96);
  backdrop-filter:saturate(180%) blur(12px);border-top:1px solid var(--line);
  padding-bottom:env(safe-area-inset-bottom);z-index:50;
}
.tb{flex:1;text-align:center;padding:8px 0 7px;color:var(--ink3);font-size:11px;transition:.15s}
.tb i{display:block;font-size:19px;font-style:normal;line-height:1.35;filter:grayscale(1);opacity:.55}
.tb span{display:block}
.tb.on{color:var(--org-d);font-weight:700}
.tb.on i{filter:none;opacity:1}

/* ---------------- 弹层 ---------------- */
.mask{position:fixed;inset:0;background:rgba(20,25,40,.42);z-index:100;display:flex;align-items:flex-end;justify-content:center;animation:fade .16s}
@keyframes fade{from{opacity:0}to{opacity:1}}
.sheet{
  width:100%;max-width:520px;background:#fff;border-radius:20px 20px 0 0;
  padding:20px 16px calc(18px + env(safe-area-inset-bottom));animation:up .2s;
}
@keyframes up{from{transform:translateY(24px);opacity:.6}to{transform:none;opacity:1}}
.sheet-ch{font-size:40px;font-weight:750;text-align:center;line-height:1.35;word-break:break-all;padding:0 10px}
.sheet-ch.kai{font-family:var(--kai);font-weight:400}
.sheet-py{text-align:center;color:var(--ink3);font-size:13px;margin-top:2px;letter-spacing:.5px;font-family:Arial,"Helvetica Neue",Helvetica,sans-serif}
.sheet-btns{margin-top:18px;display:flex;flex-direction:column;gap:9px}
.sb{height:48px;border-radius:13px;font-weight:700;font-size:15.5px;background:#f4f6f8;color:var(--ink);transition:.12s}
.sb:active{transform:scale(.99);opacity:.9}
.sb-ok{background:#e8f7ef;color:#0e9f5e}
.sb-bad{background:#fff1f0;color:var(--bad)}
.sb-grad{background:#f2f0ff;color:var(--grad)}
.sb-speak{background:#eef4ff;color:#2563eb}
.sb-del{background:#fff;color:var(--bad);border:1.5px solid #ffd9d6}
.sb-cancel{background:#fff;color:var(--ink2);border:1.5px solid var(--line)}
.sheet-add{max-width:520px}
.sheet-title{font-size:17px;font-weight:800;text-align:center;margin-bottom:6px}
.sheet-tip{font-size:12px;color:var(--ink3);text-align:center;line-height:1.75;margin-bottom:12px}
.add-count{font-size:12px;color:var(--org-d);text-align:center;margin-top:10px;font-weight:600}
.sheet-add .inp{margin-top:14px;text-align:center;font-size:16px;font-weight:600}

/* ---------------- toast ---------------- */
.toast{
  position:fixed;left:50%;bottom:96px;transform:translateX(-50%);z-index:200;
  background:rgba(30,34,42,.92);color:#fff;font-size:13.5px;padding:10px 18px;border-radius:22px;
  max-width:82vw;text-align:center;line-height:1.5;animation:fade .16s;
}
.topbar{
  position:fixed;left:0;right:0;top:0;z-index:150;background:#fff5e6;color:#a15c17;
  font-size:12px;text-align:center;padding:calc(7px + env(safe-area-inset-top)) 12px 7px;
  border-bottom:1px solid #ffe3bd;
}

/* ---------------- 内容库入口 ---------------- */
.btn-duo{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:6px}
.btn-duo .btn-add-kid{margin-top:0}
.empty .btn-line{margin-top:8px}
.lib-jump{
  font-size:12.5px;color:var(--org-d);font-weight:600;text-align:center;line-height:1.6;
  background:var(--org-l);border-radius:11px;padding:10px 12px;margin-bottom:10px;
}
.lib-jump:active{opacity:.78}

/* 新建孩子时的起步内容勾选 */
.seed-row{
  display:flex;align-items:flex-start;gap:9px;margin-top:12px;
  background:#fafbfc;border-radius:12px;padding:11px 12px;text-align:left;
}
.seed-row input{position:absolute;opacity:0;width:0;height:0}
.seed-row .sr-box{
  width:19px;height:19px;flex:0 0 19px;border-radius:6px;border:1.5px solid #d3d8de;
  background:#fff;margin-top:2px;position:relative;transition:.15s;
}
.seed-row input:checked + .sr-box{background:var(--org);border-color:var(--org)}
.seed-row input:checked + .sr-box::after{
  content:"";position:absolute;left:5.5px;top:1.5px;width:5px;height:9px;
  border:2px solid #fff;border-top:0;border-left:0;transform:rotate(42deg);
}
.seed-row .sr-txt{font-size:13.5px;font-weight:650;line-height:1.5}
.seed-row .sr-txt small{display:block;color:var(--ink3);font-weight:400;font-size:11.5px;margin-top:2px}

/* ---------------- 内容库弹层 ---------------- */
.sheet-lib{max-width:520px;display:flex;flex-direction:column;max-height:88vh}
.lib-tabs{display:flex;gap:8px;background:#f1f3f5;border-radius:12px;padding:4px;margin-bottom:12px;flex:0 0 auto}
.lib-tab{
  flex:1;text-align:center;font-size:13.5px;font-weight:650;color:var(--ink2);
  padding:8px 0;border-radius:9px;transition:.15s;
}
.lib-tab b{font-weight:800;font-size:11.5px;color:var(--ink3)}
.lib-tab.on{background:#fff;color:var(--org-d);box-shadow:0 1px 4px rgba(20,25,40,.08)}
.lib-tab.on b{color:var(--org-d)}
.lib-list{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;margin:0 -2px;padding:0 2px}
.lib-row{
  display:flex;align-items:center;gap:11px;padding:11px 12px;border-radius:12px;
  background:#fafbfc;margin-bottom:8px;border:1.5px solid transparent;transition:.12s;
}
.lib-row.on{background:var(--org-l);border-color:#ffcbb3}
.lib-row .lr-chk{
  width:19px;height:19px;flex:0 0 19px;border-radius:6px;border:1.5px solid #d3d8de;
  background:#fff;position:relative;
}
.lib-row.on .lr-chk{background:var(--org);border-color:var(--org)}
.lib-row.on .lr-chk::after{
  content:"";position:absolute;left:5.5px;top:1.5px;width:5px;height:9px;
  border:2px solid #fff;border-top:0;border-left:0;transform:rotate(42deg);
}
.lib-row .lr-n{flex:1;min-width:0;font-size:14px;font-weight:650;line-height:1.4}
.lib-row .lr-n small{color:var(--ink3);font-weight:400;font-size:11.5px;margin-left:5px}
.lib-row .lr-pv{
  font-size:11px;color:var(--ink3);letter-spacing:.6px;margin-top:3px;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.lib-row .lr-c{
  flex:0 0 auto;font-size:11.5px;font-weight:700;color:var(--ink2);
  background:#eef1f4;border-radius:20px;padding:3px 9px;white-space:nowrap;
}
.lib-row.on .lr-c{background:#fff;color:var(--org-d)}
.lib-row.done .lr-c{background:#e8f7ef;color:#0e9f5e}
.lib-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px;padding:0 2px;flex:0 0 auto}
.lib-links{display:flex;gap:14px;flex:0 0 auto}
.lib-links em{font-style:normal;font-size:12.5px;color:var(--org-d);font-weight:700}
.lib-foot .add-count{margin-top:0;text-align:right}

/* ---------------- 清单页：分段筛选 ---------------- */
.seg{display:flex;gap:5px;background:#fff;border-radius:14px;padding:5px;box-shadow:var(--sh);margin-bottom:14px}
.seg-i{
  flex:1;text-align:center;font-size:12.5px;font-weight:650;color:var(--ink2);
  padding:7px 2px;border-radius:10px;transition:.15s;line-height:1.25;
}
.seg-i em{display:block;font-style:normal;font-size:12px;font-weight:800;color:var(--ink3);margin-top:1px}
.seg-i.on{background:var(--org-l);color:var(--org-d)}
.seg-i.on em{color:var(--org-d)}
/* 汉字 / 拼音 两个页签（今日页 + 清单页） */
.seg-kind{margin-bottom:8px;padding:4px}
.seg-kind .seg-i{padding:8px 2px;font-size:13.5px;font-weight:700;letter-spacing:.5px}
.seg-kind .seg-i.on{background:var(--org);color:#fff}
.list-note{
  font-size:12.5px;color:var(--ink2);background:#fff;border-radius:12px;padding:10px 13px;
  box-shadow:var(--sh);line-height:1.7;margin-bottom:12px;
}
.list-note b{color:var(--org-d)}
.card-item .stg.warn{background:#fff1f0;color:var(--bad)}
.card-item .stg.ok{background:#e8f7ef;color:#0e9f5e}
.tabbar .tb i{font-size:18px}
