/* ============ 峰峰爱存钱 设计系统 ============ */
[hidden]{display:none !important}
:root{
  /* 品牌色：深森林绿 */
  --green:#145C48; --green-d:#0F4A3A; --green-l:#E6F3EC; --green-2:#7EC3AB;
  /* 强调：低饱和暖琥珀 */
  --gold:#C9902F; --gold-l:#F6EEE0;
  /* 状态色（柔和） */
  --red:#C8544A; --red-l:#F8ECEA;
  --yellow:#B8842B; --yellow-l:#F7F0DE;
  /* 文字 / 背景 / 分割 */
  --ink:#202722; --ink-2:#5C6760; --ink-3:#8B958E;
  --line:#E8ECE8; --bg:#F6F7F5; --card:#ffffff;
  /* 阴影：低存在感 */
  --shadow:0 8px 24px rgba(32,39,34,.08);
  --shadow-sm:0 1px 2px rgba(32,39,34,.05), 0 1px 3px rgba(32,39,34,.03);
  /* 圆角体系 */
  --r-xl:22px; --r-lg:16px; --r-md:12px;
  --radius:16px; --radius-s:12px;
  /* 间距体系 */
  --sp-1:4px; --sp-2:8px; --sp-3:12px; --sp-4:16px; --sp-5:20px; --sp-6:24px; --sp-8:32px;
  --tabbar-h:60px;
  --safe-b:env(safe-area-inset-bottom,0px);
  --nav-b:max(env(safe-area-inset-bottom,0px),10px);
  --safe-t:env(safe-area-inset-top,0px);
  /* 毛玻璃 */
  --glass-a:rgba(255,255,255,.68); --glass-b:rgba(255,255,255,.54);
  --glass-bd:rgba(255,255,255,.72);
  --glass-hi:inset 0 1px 0 rgba(255,255,255,.8);
}
html.dark{
  --green:#2E9B7C; --green-d:#4FB497; --green-l:#12291F; --green-2:#357E66;
  --gold:#DCA955; --gold-l:#2C2414;
  --red:#E07A70; --red-l:#2E1A18;
  --yellow:#D4A857; --yellow-l:#2C2414;
  --ink:#E9EEEB; --ink-2:#A7B2AB; --ink-3:#77837C;
  --line:#253029; --bg:#0E1311; --card:#171E1A;
  --shadow:0 8px 24px rgba(0,0,0,.45); --shadow-sm:0 1px 2px rgba(0,0,0,.3);
  --glass-a:rgba(27,35,30,.6); --glass-b:rgba(22,29,25,.48);
  --glass-bd:rgba(255,255,255,.07);
  --glass-hi:inset 0 1px 0 rgba(255,255,255,.07);
}
*{margin:0;padding:0;box-sizing:border-box;-webkit-tap-highlight-color:transparent}
/* App 外壳固定：body 永不滚动，只有 #view 内部滚动。
   底栏是 flex 布局里的固定成员，与页面滚动、地址栏伸缩、转场动画彻底无关，切换页面时纹丝不动。 */
html,body{height:100%;overflow:hidden;overscroll-behavior:none}
body{
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei","Segoe UI",Roboto,sans-serif;
  background:var(--bg);color:var(--ink);font-size:15px;line-height:1.5;
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
  overscroll-behavior:none;
}
.num{font-variant-numeric:tabular-nums;font-feature-settings:"tnum";letter-spacing:-.01em}
button{font-family:inherit;border:none;background:none;color:inherit;cursor:pointer}
input,select,textarea{font-family:inherit;font-size:15px;color:var(--ink)}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}

#app{position:fixed;left:0;right:0;top:0;bottom:0;max-width:560px;margin:0 auto;display:flex;flex-direction:column;overflow:hidden}

/* ---------- 顶部栏（暖白轻量） ---------- */
.topbar{position:relative;z-index:40;flex:none;background:color-mix(in srgb,var(--bg) 88%, transparent);backdrop-filter:saturate(180%) blur(18px);-webkit-backdrop-filter:saturate(180%) blur(18px);color:var(--ink);padding:calc(var(--safe-t) + 8px) 18px 8px;border-bottom:1px solid transparent;transition:border-color .2s}
.topbar.scrolled{border-bottom-color:var(--line)}
.topbar-inner{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:40px}
.brand{display:flex;align-items:center;gap:10px;min-width:0;flex:1}
.brand-logo{width:36px;height:36px;border-radius:10px;box-shadow:var(--shadow-sm);flex:none}
.brand-text{min-width:0;flex:1}
.brand-title{font-size:16.5px;font-weight:650;letter-spacing:-.01em;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.brand-sub{font-size:11.5px;color:var(--ink-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:1px}
.topbar-actions{display:flex;gap:4px;flex:none}
.icon-btn{width:38px;height:38px;border-radius:50%;background:transparent;display:flex;align-items:center;justify-content:center;color:var(--ink-2);transition:background .15s,color .15s}
.icon-btn svg{width:22px;height:22px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}
.icon-btn:active{background:var(--line);color:var(--ink)}
.top-back{display:none;align-items:center;gap:2px;flex:none;margin-right:4px;padding:7px 10px 7px 4px;border-radius:99px;color:var(--green-d);font-size:15px;font-weight:600;transition:background .15s}
.top-back svg{width:23px;height:23px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}
.top-back:active{background:var(--line)}
.top-back:not([hidden]){display:inline-flex}

/* ---------- 页面转场 ---------- */
@keyframes pageFwd{from{opacity:.35;transform:translateX(30px)}to{opacity:1;transform:translateX(0)}}
@keyframes pageBack{from{opacity:.35;transform:translateX(-30px)}to{opacity:1;transform:translateX(0)}}
#view.page-fwd{animation:pageFwd .32s cubic-bezier(.28,.7,.3,1)}
#view.page-back{animation:pageBack .32s cubic-bezier(.28,.7,.3,1)}
/* 记账页左右滑动分页 */
#recBody{will-change:transform}
@keyframes recNext{from{opacity:.25;transform:translateX(42px)}to{opacity:1;transform:translateX(0)}}
@keyframes recPrev{from{opacity:.25;transform:translateX(-42px)}to{opacity:1;transform:translateX(0)}}
#recBody.rec-next{animation:recNext .3s cubic-bezier(.28,.7,.3,1)}
#recBody.rec-prev{animation:recPrev .3s cubic-bezier(.28,.7,.3,1)}
@keyframes recPop{from{opacity:.3;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}
#recBody.rec-pop{animation:recPop .34s cubic-bezier(.25,.7,.3,1)}
@media (prefers-reduced-motion:reduce){
  #view.page-fwd,#view.page-back,#recBody.rec-next,#recBody.rec-prev,#recBody.rec-pop{animation:none}
  .seg-ind{transition:none}
  .h-bar > i,.sa-track > i,.sa-seg > i,.sa-ring,.sar-saved,.sar-pend,.sar-center b,.sar-center span,.dt-ms-bar i,.wc-bar > i{animation:none}
  #view > *,#recBody > *{animation:none}
  .upd-mask,.upd-box{animation:none}
  .jp-panel{transition:none}
  .sbar,.sbar-row2,.sbar-row2-in,.sb-filter,.sb-filter svg{transition:none}
  .flt-pop{animation:none}
}

/* ---------- 主视图（App 内唯一滚动容器，顶栏/底栏在其外，切换页面时完全静止） ---------- */
.view{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding:6px 16px 86px;position:relative}
.section{margin-bottom:18px}
.section-head{display:flex;align-items:center;justify-content:space-between;margin:2px 2px 10px}
.section-title{font-size:16px;font-weight:650;letter-spacing:-.01em;display:flex;align-items:center;gap:7px;color:var(--ink)}
.section-title svg{width:18px;height:18px;stroke:var(--ink-2);stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}
.section-more{font-size:13px;color:var(--ink-3);display:inline-flex;align-items:center;gap:2px;cursor:pointer}
.section-more svg{width:14px;height:14px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}

/* 毛玻璃表面：渐变底、模糊、描边、内高光统一在此，各组件只保留圆角/内边距等差异 */
.card,.pill,.h-card,.h-metric,.wc-card,.quick,.month-bar button,.stat-box,.photo-btn,.sbar{
  background:linear-gradient(180deg,var(--glass-a),var(--glass-b));
  backdrop-filter:blur(20px) saturate(170%);
  -webkit-backdrop-filter:blur(20px) saturate(170%);
  border:1px solid var(--glass-bd);
  box-shadow:var(--shadow-sm),var(--glass-hi);
}
.card{border-radius:var(--r-lg);padding:15px}
.card + .card{margin-top:10px}
.card-tap{cursor:pointer}
.card-tap:active{transform:scale(.99)}

/* ---------- 计划切换 pill ---------- */
.plan-switch{display:flex;gap:8px;overflow-x:auto;padding:6px 2px 12px;scrollbar-width:none}
.plan-switch::-webkit-scrollbar{display:none}
.pill{flex:none;padding:7px 14px;border-radius:999px;font-size:13.5px;font-weight:550;color:var(--ink-2);display:inline-flex;align-items:center;transition:all .18s}
.pill.active{background:var(--green);border-color:var(--green);color:#fff;font-weight:600}
.pill .dot{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:6px;background:var(--green)}
.pill.active .dot{background:#fff}

/* 状态徽章 */
.badge{display:inline-flex;align-items:center;gap:4px;padding:3px 10px;border-radius:999px;font-size:11.5px;font-weight:600;letter-spacing:.01em}
.badge.green{background:var(--green-l);color:var(--green-d)}
.badge.red{background:var(--red-l);color:var(--red)}
.badge.yellow{background:var(--yellow-l);color:var(--yellow)}
.badge.gray{background:#EEF1EF;color:var(--ink-3)}
html.dark .badge.gray{background:#222d28}
.badge.gold{background:var(--gold-l);color:var(--gold)}
.badge.light{backdrop-filter:blur(4px);background:rgba(255,255,255,.16);color:#fff}

/* ================= iOS 风格首页组件 ================= */
.h-card{border-radius:var(--r-lg);padding:16px}
.h-card + .h-card,.h-stack > * + *{margin-top:12px}
.h-stack{display:flex;flex-direction:column;gap:12px}

/* B：核心目标卡（深森林绿，克制装饰） */
.h-hero{position:relative;overflow:hidden;background:linear-gradient(160deg,#176B50 0%,#10513E 100%);color:#fff;border-radius:var(--r-xl);padding:20px 18px 18px;box-shadow:0 10px 28px rgba(16,74,58,.22);cursor:pointer}
.h-hero::after{content:"";position:absolute;right:-54px;top:-64px;width:190px;height:190px;border-radius:50%;background:radial-gradient(circle at center,rgba(255,255,255,.10),rgba(255,255,255,0) 70%);pointer-events:none}
.h-hero-top{display:flex;align-items:center;justify-content:space-between;gap:10px;position:relative;z-index:1}
.h-hero-name{display:inline-flex;align-items:center;gap:7px;font-size:13.5px;font-weight:550;color:rgba(255,255,255,.86)}
.h-hero-name svg{width:16px;height:16px;stroke:rgba(255,255,255,.9);stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}
.h-hero-amt{position:relative;z-index:1;margin-top:14px;font-size:42px;font-weight:650;line-height:1.08;letter-spacing:-.02em;font-variant-numeric:tabular-nums;display:flex;align-items:baseline;gap:3px}
.h-hero-amt .yen{font-size:22px;font-weight:600;margin-right:3px;opacity:.92}
.h-hero-amt .goal{font-size:13.5px;font-weight:450;color:rgba(255,255,255,.66);margin-left:9px;letter-spacing:0}
.h-hero-amt .goal b{color:rgba(255,255,255,.92);font-weight:600}
.h-bar{position:relative;z-index:1;height:7px;border-radius:99px;background:rgba(255,255,255,.2);margin-top:16px;overflow:hidden}
.h-bar > i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#F0C36B,#E3AE52);transform-origin:left;animation:hGrow .8s cubic-bezier(.25,.7,.3,1) .15s both}
@keyframes hGrow{from{transform:scaleX(0)}to{transform:scaleX(1)}}
.h-hero-foot{position:relative;z-index:1;display:flex;justify-content:space-between;gap:10px;margin-top:12px;font-size:12.5px;color:rgba(255,255,255,.82);flex-wrap:wrap}
.h-hero-foot b{font-weight:650;color:#fff}
.h-hero-foot .hf-item{display:inline-flex;align-items:center;gap:4px}

/* C：轻量指标 2×2（与 hero 的间距 = 卡片间 10px） */
.h-metrics{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}
.h-metric{border-radius:var(--r-lg);padding:13px 14px}
.hm-label{font-size:12px;color:var(--ink-3);display:flex;align-items:center;gap:5px}
.hm-value{font-size:21px;font-weight:650;margin-top:5px;letter-spacing:-.01em;color:var(--ink)}
.hm-value .u{font-size:12.5px;font-weight:450;color:var(--ink-3);margin-left:2px}
.hm-sub{font-size:11.5px;color:var(--ink-3);margin-top:2px}
.hm-value.warn{color:var(--gold)}
.h-metric.tap{position:relative;cursor:pointer;transition:transform .14s cubic-bezier(.25,.7,.3,1),box-shadow .14s}
.h-metric.tap:active{transform:scale(.97)}
.hm-go{position:absolute;top:11px;right:11px;width:16px;height:16px;color:var(--ink-3);opacity:.55}
.hm-go svg{width:16px;height:16px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}

/* D：储蓄分析（状态优先，口径分区） */
.sa-card{padding:16px}
/* 头部：圆环（已存 + 待结折算）+ 温和结论 */
.sa-hero{display:flex;gap:15px;align-items:center;margin-bottom:15px}
.sa-ring{position:relative;width:102px;height:102px;flex:none;animation:saRingIn .6s cubic-bezier(.25,.7,.3,1) both}
.sa-ring svg{width:102px;height:102px;transform:rotate(-90deg);display:block}
.sar-track{fill:none;stroke:var(--line);stroke-width:9}
.sar-saved,.sar-pend{fill:none;stroke-width:9;stroke-linecap:butt}
.sar-saved{stroke:var(--green);animation:sarDraw .95s cubic-bezier(.32,.72,.28,1) .18s both}
.sar-pend{stroke:var(--green-2);animation:sarDraw .8s cubic-bezier(.32,.72,.28,1) .78s both}
@keyframes sarDraw{from{stroke-dashoffset:var(--sar-from)}}
.sar-center{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;pointer-events:none}
.sar-center b{font-size:23px;font-weight:700;letter-spacing:-.02em;line-height:1;color:var(--ink);animation:sarNum .55s cubic-bezier(.28,.7,.3,1) .35s both}
.sar-center b i{font-style:normal;font-size:12px;font-weight:600;color:var(--ink-3);margin-left:1px}
.sar-center span{font-size:10.5px;color:var(--ink-3);margin-top:3px;letter-spacing:.02em;animation:sarNum .55s cubic-bezier(.28,.7,.3,1) .45s both}
@keyframes sarNum{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@keyframes saRingIn{from{opacity:0;transform:scale(.9)}to{opacity:1;transform:scale(1)}}
.sa-ht{flex:1;min-width:0}
.sa-lead{font-size:18px;font-weight:700;letter-spacing:-.01em;line-height:1.25;margin:6px 0 3px}
.sa-hero.sa-green .sa-lead,.sa-hero.sa-done .sa-lead{color:var(--green-d)}
.sa-hero.sa-yellow .sa-lead{color:var(--yellow)}
.sa-hero.sa-red .sa-lead{color:var(--red)}
.sa-sub{font-size:12px;color:var(--ink-2);line-height:1.5}
.sa-pend{font-size:11px;color:var(--ink-3);line-height:1.55;margin-top:5px}
/* 分段进度条：已存 + 待结折算，时间刻度叠在条上 */
.sa-stack{margin-bottom:14px}
.sa-stack-k{display:flex;justify-content:space-between;align-items:baseline;font-size:12.5px;color:var(--ink-2);margin-bottom:10px}
.sa-stack-k b{font-weight:650;color:var(--ink)}
.sa-seg-wrap{position:relative;padding-top:15px}
.sa-seg{display:flex;height:9px;border-radius:99px;background:var(--line);overflow:hidden}
.sa-seg > i{display:block;height:100%;transform-origin:left;animation:hGrow .85s cubic-bezier(.25,.7,.3,1) .1s both}
.sas-saved{background:var(--green)}
.sas-pend{margin-left:2px;background:var(--green-2);background-image:repeating-linear-gradient(45deg,rgba(255,255,255,.28) 0 4px,transparent 4px 8px)}
.sa-tick{position:absolute;top:0;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;z-index:2;font-style:normal}
.sa-tick b{font-size:9.5px;font-weight:550;color:var(--ink-3);line-height:1;margin-bottom:2px;white-space:nowrap}
.sa-tick u{width:2px;height:10px;border-radius:1px;background:var(--card);text-decoration:none;box-shadow:0 0 0 .5px rgba(32,39,34,.12)}
.sa-legend{display:flex;flex-wrap:wrap;gap:5px 16px;margin-top:9px;font-size:11.5px;color:var(--ink-2)}
.sa-legend span{display:inline-flex;align-items:center}
.sa-legend i{width:9px;height:9px;border-radius:3px;margin-right:6px}
.sa-legend .lg-saved{background:var(--green)}
.sa-legend .lg-pend{background:var(--green-2)}
.sa-track{height:7px;border-radius:99px;background:var(--line);overflow:hidden}
.sa-track > i{display:block;height:100%;border-radius:99px;transform-origin:left;animation:hGrow .8s cubic-bezier(.25,.7,.3,1) .12s both}
.sa-track > i.sa-eff{background:repeating-linear-gradient(45deg,#2E9B7C 0 5px,#44AB8E 5px 10px)}
.sa-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px 14px;padding:13px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.sa-g{display:flex;flex-direction:column;gap:2px}
.sa-g span{font-size:11.5px;color:var(--ink-3)}
.sa-g b{font-size:15.5px;font-weight:650;color:var(--ink);font-variant-numeric:tabular-nums}
.sa-g b i{font-style:normal;font-size:11.5px;font-weight:450;color:var(--ink-3)}
.sa-month{padding-top:13px}
.sam-k{font-size:12.5px;font-weight:600;color:var(--ink-2)}
.sam-k em{font-style:normal;font-size:10.5px;font-weight:450;color:var(--ink-3);margin-left:5px;background:var(--bg);border-radius:5px;padding:1px 6px}
.sam-v{font-size:21px;font-weight:700;letter-spacing:-.01em;color:var(--green-d);margin:4px 0 9px}
.sam-v .sam-of{font-size:12.5px;font-weight:450;color:var(--ink-3)}
.sam-track{margin-bottom:9px}
.sam-flow{font-size:12px;color:var(--ink-2)}
.sam-note{font-size:11px;color:var(--ink-3);margin-top:6px;line-height:1.55}

/* 指标详情页 */
.dt-hero{border-radius:var(--r-xl);padding:20px 18px;margin-bottom:16px;color:#fff;position:relative;overflow:hidden}
.dt-hero::after{content:"";position:absolute;right:-46px;top:-56px;width:170px;height:170px;border-radius:50%;background:radial-gradient(circle at center,rgba(255,255,255,.12),rgba(255,255,255,0) 70%);pointer-events:none}
.dt-hero.dt-green{background:linear-gradient(160deg,#176B50,#10513E)}
.dt-hero.dt-gold{background:linear-gradient(160deg,#C9902F,#A8741F)}
.dt-hero.dt-red{background:linear-gradient(160deg,#C8544A,#A6413A)}
.dt-hero-ic{width:34px;height:34px;border-radius:10px;background:rgba(255,255,255,.16);display:flex;align-items:center;justify-content:center;margin-bottom:11px}
.dt-hero-ic svg{width:19px;height:19px;stroke:#fff;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}
.dt-hero-k{font-size:12.5px;color:rgba(255,255,255,.82)}
.dt-hero-v{font-size:34px;font-weight:700;letter-spacing:-.02em;margin-top:2px;line-height:1.12}
.dt-hero-s{font-size:12px;color:rgba(255,255,255,.8);margin-top:5px}
.dt-grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px 14px;padding:15px 16px}
.dt-g2{display:flex;flex-direction:column;gap:3px}
.dt-g2 span{font-size:11.5px;color:var(--ink-3)}
.dt-g2 b{font-size:16px;font-weight:650;font-variant-numeric:tabular-nums}
.dt-ms{display:flex;gap:11px;padding:13px 15px;border-bottom:1px solid var(--line)}
.dt-ms:last-child{border-bottom:none}
.dt-ms-ic{width:34px;height:34px;border-radius:10px;background:var(--gold-l);color:var(--gold);display:flex;align-items:center;justify-content:center;flex:none}
.dt-ms.done .dt-ms-ic{background:var(--green-l);color:var(--green-d)}
.dt-ms-ic svg{width:18px;height:18px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}
.dt-ms-main{flex:1;min-width:0}
.dt-ms-t{font-size:13.5px;font-weight:650}
.dt-ms-bar{height:5px;border-radius:99px;background:var(--line);overflow:hidden;margin:6px 0 4px}
.dt-ms-bar i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#1E7A5E,#145C48);transform-origin:left;animation:hGrow .8s cubic-bezier(.25,.7,.3,1) .1s both}
.dt-ms-s{font-size:11.5px;color:var(--ink-3)}
.dt-ms.done .dt-ms-s{color:var(--green-d)}
/* 距目标还差：有效存款构成 */
.dt-eff{padding:15px 16px}
.dte-k{display:flex;align-items:center;gap:7px;font-size:13px;font-weight:650;margin-bottom:11px}
.dte-dot{width:8px;height:8px;border-radius:50%;background:var(--green)}
.dte-row{display:flex;align-items:baseline;justify-content:space-between;gap:14px;font-size:12.5px;color:var(--ink-2);padding:7px 0;border-bottom:1px dashed var(--line)}
.dte-row:last-of-type{border-bottom:none}
.dte-row b{font-size:13.5px;font-weight:650;color:var(--ink);white-space:nowrap}
.dte-note{font-size:11px;color:var(--ink-3);line-height:1.6;margin-top:9px}

/* 记账页：工资总览 + 日历合并卡 */
.wc-card{border-radius:var(--r-lg);padding:15px 14px 13px;margin-bottom:10px}
.wc-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.wc-label{font-size:12.5px;color:var(--ink-3)}
.wc-amt{font-size:28px;font-weight:700;letter-spacing:-.02em;color:var(--ink);margin-top:2px;line-height:1.1}
.wc-side{text-align:right;flex:none;padding-top:2px}
.wc-days{font-size:12.5px;color:var(--ink-3);display:flex;align-items:baseline;justify-content:flex-end;gap:3px}
.wc-days b{font-size:17px;font-weight:700;color:var(--ink)}
.wc-avg{font-size:11.5px;color:var(--ink-3);margin-top:2px}
.wc-split{display:flex;gap:0;margin-top:13px;border-top:1px solid var(--line);padding-top:11px}
.wcs{flex:1;display:flex;align-items:center;gap:6px;min-width:0;font-size:12.5px}
.wcs + .wcs{border-left:1px solid var(--line);padding-left:13px;margin-left:13px}
.wcs svg{width:15px;height:15px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round;flex:none}
.wcs:first-child{color:var(--green-d)} .wcs:last-child{color:var(--gold)}
.wcs label{color:var(--ink-3);flex:none}
.wcs b{margin-left:auto;font-size:14px;font-weight:650;white-space:nowrap}
.wcs b.good{color:var(--green-d)} .wcs b.warn{color:var(--gold)}
.wc-bar{height:5px;border-radius:99px;background:var(--line);overflow:hidden;margin:10px 0 13px}
.wc-bar > i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#1E7A5E,#145C48);transform-origin:left;animation:hGrow .8s cubic-bezier(.25,.7,.3,1) .1s both}
.wc-dows{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}
.wc-dows span{text-align:center;font-size:10.5px;color:var(--ink-3);padding-bottom:3px}
.wc-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}
.wc-cell{height:38px;border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px}
.wc-cell b{font-size:10.5px;font-weight:500;color:var(--ink-3);line-height:1}
.wc-cell em{font-style:normal;font-size:9px;font-weight:650;color:var(--green-d);line-height:1;letter-spacing:-.02em}
.wc-cell.lvl1{background:color-mix(in srgb,var(--green) 7%,transparent)}
.wc-cell.lvl1 b{color:var(--ink-2)}
.wc-cell.lvl2{background:color-mix(in srgb,var(--green) 14%,transparent)}
.wc-cell.lvl2 b{color:var(--ink)}
.wc-cell.lvl3{background:color-mix(in srgb,var(--green) 23%,transparent)}
.wc-cell.lvl3 b{color:var(--ink)}
.wc-cell[data-day]{cursor:pointer;transition:transform .12s}
.wc-cell[data-day]:active{transform:scale(.92)}
.wc-cell.today{background:var(--green);box-shadow:0 3px 9px rgba(20,92,72,.3)}
.wc-cell.today b{color:#fff;font-weight:650}
.wc-cell.today em{color:rgba(255,255,255,.88)}
html.dark .wc-cell.lvl1{background:color-mix(in srgb,var(--green) 18%,transparent)}
html.dark .wc-cell.lvl2{background:color-mix(in srgb,var(--green) 30%,transparent)}
html.dark .wc-cell.lvl3{background:color-mix(in srgb,var(--green) 44%,transparent)}

/* E：里程碑 */
.h-ms-head{display:flex;align-items:center;gap:11px}
.h-ms-icon{width:38px;height:38px;border-radius:11px;background:var(--gold-l);color:var(--gold);display:flex;align-items:center;justify-content:center;flex:none}
.h-ms-icon svg{width:20px;height:20px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}
.h-ms-title{font-size:14.5px;font-weight:650}
.h-ms-count{margin-left:auto;font-size:12px;color:var(--ink-3);font-variant-numeric:tabular-nums}
.h-ms-bar{height:6px;border-radius:99px;background:var(--line);margin-top:13px;overflow:hidden}
.h-ms-bar > i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#E0B265,#C9902F);transform-origin:left;animation:hGrow .8s cubic-bezier(.25,.7,.3,1) .12s both}
.h-ms-sub{display:flex;justify-content:space-between;gap:8px;margin-top:8px;font-size:12.5px;color:var(--ink-3)}
.h-ms-sub b{color:var(--ink-2);font-weight:600}
.h-ms-done .h-ms-icon{background:var(--green-l);color:var(--green-d)}

/* F：本月工资 */
.h-wage-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px}
.h-wage-title{font-size:14.5px;font-weight:650}
.h-wage-month{font-size:12px;color:var(--ink-3)}
.h-wage3{display:flex;align-items:stretch}
.hw-item{flex:1;text-align:center;padding:2px 4px}
.hw-item + .hw-item{border-left:1px solid var(--line)}
.hw-num{font-size:20px;font-weight:650;letter-spacing:-.01em;color:var(--ink);font-variant-numeric:tabular-nums}
.hw-num .u{font-size:12px;font-weight:450;color:var(--ink-3)}
.hw-num.hot{color:var(--gold)}
.hw-cap{font-size:12px;color:var(--ink-3);margin-top:3px}
.h-mini-grid{display:grid;grid-template-columns:1fr 1fr;gap:1px 14px;margin-top:13px;padding-top:12px;border-top:1px solid var(--line)}
.h-mini{display:flex;justify-content:space-between;align-items:baseline;gap:8px;padding:5px 0;font-size:12.5px}
.h-mini .k{color:var(--ink-3)}
.h-mini .v{font-weight:600;font-variant-numeric:tabular-nums}
.h-mini .v.good{color:var(--green-d)} .h-mini .v.bad{color:var(--red)}
.h-footnote{margin-top:10px;padding-top:10px;border-top:1px solid var(--line);font-size:11.5px;color:var(--ink-3);line-height:1.6}
.h-footnote b{color:var(--ink-2);font-weight:600}
.h-minibar{height:5px;border-radius:99px;background:var(--line);margin-top:8px;overflow:hidden}
.h-minibar > i{display:block;height:100%;border-radius:99px;background:var(--green);transform-origin:left;animation:hGrow .8s cubic-bezier(.25,.7,.3,1) .1s both}

/* 待结算 / 列表 小图标 */
.h-bank-icon{width:38px;height:38px;border-radius:11px;background:var(--gold-l);color:var(--gold);display:flex;align-items:center;justify-content:center;flex:none}
.h-bank-icon svg{width:19px;height:19px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}

/* 快捷操作（线性图标） */
.quick-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}
.quick{border-radius:var(--r-lg);padding:14px 4px 11px;text-align:center;font:inherit;width:100%;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:7px;transition:transform .12s}
.quick:active{transform:scale(.95)}
.quick svg{width:23px;height:23px;stroke:var(--green-d);stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}
.quick span{font-size:12px;color:var(--ink-2)}
/* 「记一笔」快捷菜单：放大图标、紧凑按钮 */
.qm-btn{padding:20px 6px}
.qm-ic{width:30px;height:30px;display:inline-flex}
.qm-ic svg{width:30px;height:30px}
.qm-tx{font-size:14px;margin-top:4px}

/* 列表 */
.list-card{padding:0;overflow:hidden}
.list-row{display:flex;align-items:center;gap:12px;padding:13px 14px;border-bottom:1px solid var(--line)}
.list-row:last-child{border:none}
.list-row:active{background:var(--bg)}
.lr-icon{width:40px;height:40px;border-radius:12px;background:var(--green-l);display:flex;align-items:center;justify-content:center;font-size:18px;flex:none}
.lr-main{flex:1;min-width:0}
.lr-title{display:flex;align-items:center;gap:6px;font-size:14.5px;font-weight:600;white-space:nowrap;overflow:hidden}
.lr-title > .badge{flex:none}
.lrt-text{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis}
.lr-sub{font-size:12px;color:var(--ink-3);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lr-right{text-align:right;flex:none}
.lr-amt{font-weight:800;font-size:15px}
.lr-amt.in{color:var(--green-d)}
.lr-tag{font-size:11px;color:var(--ink-3);margin-top:2px}
.lr-icon svg{width:20px;height:20px;stroke:var(--green-d);stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}
.lr-title svg{width:17px;height:17px;stroke:var(--green-d);stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round;vertical-align:-3.5px;margin-right:5px}
.menu .lr-arrow{display:flex;align-items:center;color:var(--ink-3)}
.menu .lr-arrow svg{width:18px;height:18px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}
.menu .lr-arrow.warn{color:var(--red)}

/* 统一入场动效：所有板块轻微上浮淡入，依次错开 */
@keyframes vIn{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}
#view > *{animation:vIn .5s cubic-bezier(.25,.7,.3,1) both}
/* 记账页内部分段切换：分段按钮保持不动，只让内容区播放专属动效 */
#view.rec-inner > *{animation:none}
#view > *:nth-child(2){animation-delay:.05s}
#view > *:nth-child(3){animation-delay:.09s}
#view > *:nth-child(4){animation-delay:.13s}
#view > *:nth-child(5){animation-delay:.17s}
#view > *:nth-child(6){animation-delay:.21s}
#view > *:nth-child(7){animation-delay:.25s}
#view > *:nth-child(8){animation-delay:.29s}
#view > *:nth-child(9){animation-delay:.33s}
#recBody > *{animation:vIn .44s cubic-bezier(.25,.7,.3,1) both}
#recBody > *:nth-child(2){animation-delay:.05s}
#recBody > *:nth-child(3){animation-delay:.1s}
#recBody > *:nth-child(4){animation-delay:.15s}

/* 计划详情：里程碑列表 / 规则行（与首页设计语言统一） */
.ms-item{display:flex;align-items:center;gap:12px;padding:13px 14px;border-bottom:1px solid var(--line)}
.ms-item:last-child{border-bottom:none}
.ms-item:active{background:var(--bg)}
.ms-icon{width:40px;height:40px;border-radius:12px;background:var(--gold-l);color:var(--gold);display:flex;align-items:center;justify-content:center;flex:none}
.ms-icon svg{width:20px;height:20px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}
.ms-item.done .ms-icon{background:var(--green-l);color:var(--green-d)}
.ms-main{flex:1;min-width:0}
.ms-name{font-size:14.5px;font-weight:650}
.ms-reward{font-size:12px;color:var(--ink-3);margin-top:2px}
.ms-amt{font-size:12px;color:var(--ink-3);flex:none}
.ms-item.done .ms-amt{color:var(--green-d);font-weight:600}
.rs-row{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:11px 0;font-size:13.5px;border-bottom:1px solid var(--line)}
.rs-row:first-child{padding-top:2px}
.rs-row:last-child{border-bottom:none;padding-bottom:2px}
.rs-row span{color:var(--ink-3)}
.rs-row b{font-variant-numeric:tabular-nums;font-weight:600}
.h-hero:active{transform:scale(.992)}

/* 分段控件 */
.seg{--sn:3;position:relative;display:flex;background:var(--line);border-radius:12px;padding:3px;margin-bottom:12px}
.seg-ind{position:absolute;top:3px;bottom:3px;left:3px;width:calc((100% - 6px)/var(--sn,3));background:var(--card);border-radius:9px;box-shadow:var(--shadow-sm);transform:translateX(0);transition:transform .3s cubic-bezier(.28,.7,.3,1);z-index:0;will-change:transform}
.seg button{position:relative;z-index:1;flex:1;padding:8px;border-radius:9px;font-size:13.5px;font-weight:600;color:var(--ink-2);background:transparent}
.seg button.on{background:transparent;color:var(--green-d);box-shadow:none}
.seg button svg{width:15px;height:15px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round;vertical-align:-2.5px;margin-right:4px}
html.dark .seg button.on{color:var(--green)}

/* 月选择 */
.month-bar{display:flex;align-items:center;gap:10px;justify-content:center;margin-bottom:12px}
.month-bar button{width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--ink-2)}
.month-bar button svg{width:18px;height:18px;stroke:currentColor;stroke-width:1.9;fill:none;stroke-linecap:round;stroke-linejoin:round}
.month-bar .m-label{font-size:17px;font-weight:800;min-width:96px;text-align:center}
/* 工作记录：新增按钮（与待结算页新增按钮同级，绿色语义） */
.rec-add{margin:10px 0}
.rec-add .btn{padding:13px;font-size:15px}

/* 统计网格 */
.stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.stat-box{border-radius:14px;padding:12px 14px}
/* 待结算汇总卡：琥珀浅底，颜色全部走变量，深色模式自动跟随 */
.recv-sum{background:linear-gradient(135deg,var(--gold-l),color-mix(in srgb,var(--gold-l) 55%,var(--card)))}
.recv-sum .rs-amt{font-size:32px;font-weight:800;color:var(--gold);margin:2px 0}
.stat-box .sb-label{font-size:12px;color:var(--ink-3)}
.stat-box .sb-value{font-size:20px;font-weight:800;margin-top:3px}
.stat-box .sb-value.green{color:var(--green-d)}
.stat-box .sb-value.gold{color:var(--gold)}
.stat-box .sb-value.red{color:var(--red)}
.stat-box .sb-sub{font-size:11.5px;color:var(--ink-3);margin-top:2px}

.progress{height:8px;border-radius:99px;background:var(--line);overflow:hidden;margin-top:6px}
.progress > i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,var(--gold),#ffcf6b)}
.progress.green > i{background:linear-gradient(90deg,#23b27d,var(--green))}

/* ---------- 底部导航（iOS 风） ---------- */
.tabbar{position:relative;z-index:45;flex:none;display:flex;background:var(--card);border-top:0.5px solid var(--line);padding-bottom:var(--nav-b)}
.tab{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;height:var(--tabbar-h);font-size:10.5px;font-weight:500;color:var(--ink-3);transition:color .15s}
.tab svg{width:23px;height:23px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}
.tab.on{color:var(--green)}
.tab-center{position:relative}
.tab-center .ti-add{width:46px;height:46px;border-radius:50%;background:var(--green);color:#fff;display:flex;align-items:center;justify-content:center;margin-top:-20px;box-shadow:0 6px 16px rgba(20,92,72,.32);border:3px solid var(--bg);transition:transform .12s}
.tab-center:active .ti-add{transform:scale(.92)}
.tab-center .ti-add svg{width:24px;height:24px;stroke:currentColor;stroke-width:2.1;fill:none;stroke-linecap:round;stroke-linejoin:round}
.tab-center span:last-child{margin-top:1px;color:var(--ink-2)}

/* ---------- 底部弹层 ---------- */
/* 遮罩：暗度与模糊都跟随卡片滑入/滑出同步渐变，不做 0 帧硬切 */
.sheet-mask{position:fixed;inset:0;z-index:60;background:rgba(15,30,24,0);backdrop-filter:blur(0);-webkit-backdrop-filter:blur(0);opacity:0;visibility:hidden;transition:opacity .3s cubic-bezier(.3,.8,.3,1),background-color .3s cubic-bezier(.3,.8,.3,1),backdrop-filter .3s cubic-bezier(.3,.8,.3,1),-webkit-backdrop-filter .3s cubic-bezier(.3,.8,.3,1)}
.sheet-mask.show{background:rgba(15,30,24,.42);backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px);opacity:1;visibility:visible}
.sheet{position:fixed;left:0;right:0;bottom:0;z-index:61;max-width:560px;margin:0 auto;background:color-mix(in srgb,var(--card) 86%, transparent);backdrop-filter:blur(30px) saturate(180%);-webkit-backdrop-filter:blur(30px) saturate(180%);border-top:1px solid var(--glass-bd);border-radius:22px 22px 0 0;max-height:92vh;display:flex;flex-direction:column;box-shadow:0 -10px 40px rgba(32,39,34,.18);transform:translateY(105%);transition:transform .28s cubic-bezier(.3,.8,.3,1),bottom .25s cubic-bezier(.3,.8,.3,1),max-height .25s cubic-bezier(.3,.8,.3,1);padding-bottom:var(--safe-b)}
.sheet.open{transform:translateY(0)}
/* 卡片接力：幽灵层承接旧卡片画面，仅播放下滑，不拦截点击、不叠加毛玻璃 */
.sheet-ghost{pointer-events:none;backdrop-filter:none;-webkit-backdrop-filter:none;background:var(--card)}
/* 键盘弹出时（iPhone 全屏 PWA 由 JS 设置 --kb）：弹层整体抬到键盘上方 */
.kb-open .sheet.open{bottom:var(--kb,0px);max-height:calc(92vh - var(--kb,0px))}
/* 弹层打开时锁住内容区，防止滚动链穿透遮罩 */
body.sheet-lock #view{overflow:hidden}
.sheet-handle{width:40px;height:4px;border-radius:99px;background:var(--line);margin:9px auto 2px;flex:none}
.sheet-head{display:flex;align-items:center;justify-content:space-between;padding:10px 18px 8px;flex:none}
.sheet-title{font-size:17px;font-weight:800}
.sheet-close{width:32px;height:32px;border-radius:50%;background:var(--bg);color:var(--ink-3);font-size:14px}
.sheet-body{padding:6px 18px 24px;overflow-y:auto;flex:1;min-height:0;-webkit-overflow-scrolling:touch}

/* 表单 */
.form-group{margin-bottom:14px}
.form-label{display:block;font-size:13px;font-weight:600;color:var(--ink-2);margin-bottom:6px}
.form-label .req{color:var(--red)}
.form-input,.form-select,.form-textarea{width:100%;padding:12px 13px;border:1.5px solid var(--line);border-radius:12px;background:var(--bg);outline:none;transition:border-color .15s}
.form-input:focus,.form-select:focus,.form-textarea:focus{border-color:var(--green);background:var(--card)}
.form-textarea{resize:none;min-height:64px}
/* ---- 弹层紧凑表单：一屏放得下，高频字段在上 ---- */
.sheet-body .form-group{margin-bottom:11px}
.sheet-body .form-label{margin-bottom:5px}
.seg.frm-seg{margin:0}
/* 工资自动计价条：大号金额内嵌，自动/手动状态清晰 */
.wage-bar{display:flex;align-items:center;gap:9px;background:var(--green-l);border:1px solid transparent;border-radius:13px;padding:4px 14px;margin-bottom:7px;transition:background .15s,border-color .15s}
.wage-bar.manual{background:var(--bg);border-color:var(--line)}
.wage-bar input{flex:1;min-width:0;width:100%;border:none;background:none;outline:none;font-size:23px;font-weight:800;color:var(--green-d);font-variant-numeric:tabular-nums;letter-spacing:-.01em;padding:7px 0}
.wage-bar.manual input{color:var(--ink)}
.wb-unit{flex:none;font-size:12.5px;color:var(--ink-3)}
.wb-tag{flex:none;font-size:10.5px;font-weight:650;letter-spacing:.02em;padding:3px 9px;border-radius:99px;background:var(--green);color:#fff}
.wage-bar.manual .wb-tag{background:var(--ink-3);cursor:pointer}
.wage-bar-hint{font-size:11px;color:var(--ink-3);line-height:1.55;margin:0 2px 11px}
.wage-bar-hint b{color:var(--green-d);font-weight:650}
.wage-bar-hint a{color:var(--green-d);font-weight:650;margin-left:6px;white-space:nowrap}
/* 金额双栏：到账 / 存入 两个大数字输入 */
.amount-grid{display:flex;gap:10px;margin-bottom:9px}
.amount-grid .amt-cell{display:block;flex:1;min-width:0;border-radius:13px;padding:8px 13px 9px;border:1.5px solid var(--line);background:var(--bg);transition:border-color .15s}
.amount-grid .amt-cell:focus-within{border-color:var(--green);background:var(--card)}
.amount-grid .amt-cell.save{background:var(--gold-l);border-color:transparent}
.amount-grid .amt-cell.save:focus-within{border-color:var(--gold)}
.amount-grid .amt-label{font-size:11px;color:var(--ink-3);display:flex;justify-content:space-between;gap:6px}
.amount-grid .amt-cell.save .amt-label{color:#b07413}
.amount-grid input{border:none;background:none;outline:none;width:100%;font-size:22px;font-weight:800;color:var(--ink);font-variant-numeric:tabular-nums;padding:1px 0}
.amount-grid .amt-cell.save input{color:#b07413}
.split-line{display:flex;justify-content:space-between;font-size:12px;color:var(--ink-3);margin:0 2px 11px}
.split-line b{font-variant-numeric:tabular-nums}
.split-line b.good{color:var(--green-d)}
/* 关联工单提示 */
.link-hint{display:flex;align-items:flex-start;gap:7px;font-size:11.5px;line-height:1.55;color:var(--ink-3);margin:-2px 2px 11px}
.link-hint svg{width:14px;height:14px;stroke:var(--green-d);stroke-width:1.9;fill:none;stroke-linecap:round;stroke-linejoin:round;flex:none;margin-top:1px}

/* 收款表单：工单关联选择行 */
.pick-empty{display:flex;align-items:center;gap:10px;width:100%;padding:11px 13px;border-radius:12px;border:1.5px dashed var(--line);background:var(--bg);color:var(--ink-2);font-size:13.5px;font-weight:600;text-align:left;transition:border-color .15s,background .15s,transform .12s}
.pick-empty:active{transform:scale(.99)}
.pick-empty .pe-plus{width:26px;height:26px;border-radius:8px;background:var(--green-l);color:var(--green-d);display:flex;align-items:center;justify-content:center;flex:none;font-size:17px;font-weight:700;line-height:1}
.pick-empty .pe-sub{margin-left:auto;font-size:11px;font-weight:500;color:var(--ink-3)}
html.dark .pick-empty .pe-plus{color:var(--green)}
.pick-card{display:flex;align-items:center;gap:10px;width:100%;padding:10px 12px;border-radius:12px;border:1px solid var(--green-d);background:var(--green-l);text-align:left;transition:transform .12s}
.pick-card:active{transform:scale(.99)}
.pc-ic{width:32px;height:32px;border-radius:9px;background:var(--card);color:var(--green-d);display:flex;align-items:center;justify-content:center;flex:none}
.pc-ic svg{width:17px;height:17px;stroke:currentColor;stroke-width:1.9;fill:none;stroke-linecap:round;stroke-linejoin:round}
.pc-main{flex:1;min-width:0}
.pc-loc{display:block;font-size:13.5px;font-weight:650;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pc-meta{display:block;font-size:11.5px;color:var(--ink-3);margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pc-meta b{color:var(--green-d);font-weight:700}
.pc-clear{flex:none;width:26px;height:26px;border-radius:50%;background:var(--card);color:var(--ink-3);font-size:12px;display:flex;align-items:center;justify-content:center}
.pc-clear:active{transform:scale(.9)}
html.dark .pick-card{border-color:var(--green)}
html.dark .pc-meta b{color:var(--green)}

/* 工单选择面板（叠在 sheet 之上的二级浮层） */
.jp-mask{position:fixed;inset:0;z-index:64;background:rgba(15,30,24,0);backdrop-filter:blur(0);-webkit-backdrop-filter:blur(0);opacity:0;visibility:hidden;transition:opacity .3s cubic-bezier(.3,.8,.3,1),background-color .3s cubic-bezier(.3,.8,.3,1),backdrop-filter .3s cubic-bezier(.3,.8,.3,1),-webkit-backdrop-filter .3s cubic-bezier(.3,.8,.3,1)}
.jp-mask.show{background:rgba(15,30,24,.5);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);opacity:1;visibility:visible}
.jp-panel{position:fixed;left:0;right:0;bottom:0;z-index:65;max-width:560px;margin:0 auto;background:color-mix(in srgb,var(--card) 92%, transparent);border-top:1px solid var(--glass-bd);border-radius:22px 22px 0 0;box-shadow:0 -10px 40px rgba(32,39,34,.22);max-height:82vh;display:flex;flex-direction:column;transform:translateY(105%);transition:transform .32s cubic-bezier(.3,.8,.3,1);padding-bottom:var(--safe-b)}
.jp-mask.show .jp-panel{transform:translateY(0)}
.jp-handle{width:40px;height:4px;border-radius:99px;background:var(--line);margin:9px auto 2px;flex:none}
.jp-head{display:flex;align-items:center;justify-content:space-between;padding:8px 18px 6px;flex:none}
.jp-title{font-size:17px;font-weight:800}
.jp-search{display:flex;align-items:center;gap:8px;margin:4px 18px 10px;padding:9px 12px;border-radius:12px;background:var(--bg);border:1px solid var(--line);flex:none}
.jp-search svg{width:17px;height:17px;stroke:var(--ink-3);stroke-width:1.9;fill:none;stroke-linecap:round;stroke-linejoin:round;flex:none}
.jp-search input{flex:1;min-width:0;border:none;background:none;outline:none;font-size:14px;color:var(--ink)}
.jp-seg{margin:0 18px 10px;flex:none}
.jp-list{flex:1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:2px 14px 18px}
.jp-unlink{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;padding:10px;margin-bottom:8px;border-radius:12px;border:1.5px dashed var(--line);color:var(--ink-3);font-size:13px;font-weight:600;background:transparent}
.jp-unlink svg{width:15px;height:15px;stroke:currentColor;stroke-width:1.9;fill:none;stroke-linecap:round}
.jp-month{font-size:11.5px;font-weight:700;color:var(--ink-3);padding:8px 4px 6px;display:flex;justify-content:space-between}
.jp-month span:last-child{font-weight:500}
.jp-item{display:flex;align-items:center;gap:10px;width:100%;padding:11px 12px;margin-bottom:7px;border-radius:13px;background:var(--bg);border:1.5px solid transparent;text-align:left;transition:border-color .15s,background .15s,transform .12s}
.jp-item:active{transform:scale(.985)}
.jp-item.sel{border-color:var(--green-d);background:var(--green-l)}
.jp-item.disabled{opacity:.45}
.ji-main{flex:1;min-width:0}
.ji-loc{display:block;font-size:14px;font-weight:650;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ji-meta{display:block;font-size:11.5px;color:var(--ink-3);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ji-side{flex:none;text-align:right;display:flex;flex-direction:column;align-items:flex-end;gap:4px}
.ji-amt{font-size:14px;font-weight:750;color:var(--ink)}
.ji-check{display:none;width:19px;height:19px;border-radius:50%;background:var(--green);color:#fff;font-size:11px;line-height:19px;text-align:center}
.jp-item.sel .ji-check{display:block}
.jp-none{text-align:center;font-size:13px;color:var(--ink-3);padding:34px 0}
html.dark .jp-item.sel{border-color:var(--green)}
.form-row{display:flex;gap:10px}
.form-row > *{flex:1}
.chip-group{display:flex;flex-wrap:wrap;gap:8px}
.chip{padding:7px 13px;border-radius:999px;border:1.5px solid var(--line);background:var(--bg);font-size:13px;color:var(--ink-2)}
.chip.on{border-color:var(--green);background:var(--green-l);color:var(--green-d);font-weight:600}
html.dark .chip.on{color:var(--green)}
.switch-row{display:flex;align-items:center;justify-content:space-between;padding:12px 0;border-bottom:1px solid var(--line)}
.switch{width:46px;height:27px;border-radius:99px;background:#c4d0cb;position:relative;transition:.2s;flex:none}
.switch::after{content:"";position:absolute;top:3px;left:3px;width:21px;height:21px;border-radius:50%;background:#fff;transition:.2s;box-shadow:0 1px 3px rgba(0,0,0,.2)}
.switch.on{background:var(--green)}
.switch.on::after{left:22px}

.btn{width:100%;padding:14px;border-radius:14px;font-size:16px;font-weight:700;background:linear-gradient(135deg,var(--green),var(--green-d));color:#fff;box-shadow:0 6px 16px rgba(15,138,95,.3)}
.btn:active{opacity:.85}
.btn.gold{background:linear-gradient(135deg,var(--gold),#e89a1f);box-shadow:0 6px 16px rgba(240,168,48,.3)}
.btn.ghost{background:var(--bg);color:var(--ink-2);box-shadow:none;border:1.5px solid var(--line)}
.btn.danger{background:var(--red-l);color:var(--red);box-shadow:none}
.btn-row{display:flex;gap:10px}
.btn-row .btn{flex:1}
.mini-btn{padding:6px 12px;border-radius:99px;font-size:12.5px;font-weight:600;background:var(--green-l);color:var(--green-d)}
.mini-btn.gold{background:var(--gold-l);color:#b07413}
.mini-btn.red{background:var(--red-l);color:var(--red)}

/* 删除到账记录时的关联条目 */
.del-links{display:flex;flex-direction:column;gap:8px}
.del-link{display:flex;align-items:center;gap:10px;padding:11px 13px;border-radius:12px;background:var(--bg);border:1px solid var(--line)}
.dl-tag{flex:none;font-size:11px;font-weight:650;letter-spacing:.02em;padding:3px 9px;border-radius:99px;background:var(--green-l);color:var(--green-d)}
.dl-txt{font-size:13.5px;color:var(--ink);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* 空状态 */
.empty{text-align:center;padding:48px 24px;color:var(--ink-3);display:flex;flex-direction:column;align-items:center}
.empty .e-ic{width:68px;height:68px;border-radius:50%;background:var(--green-l);color:var(--green-d);display:flex;align-items:center;justify-content:center;margin-bottom:14px;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--green) 14%,transparent)}
.empty .e-ic svg{width:30px;height:30px;stroke:currentColor;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round}
.empty .e-title{font-size:15.5px;font-weight:650;color:var(--ink-2);margin-bottom:5px;letter-spacing:-.01em}
.empty p{font-size:13px;line-height:1.65;max-width:240px}
.e-reset{width:auto;margin-top:16px;padding:10px 22px;font-size:13.5px;border-radius:99px;box-shadow:none}

/* 图表 */
.chart-box{width:100%;overflow:hidden}
.chart-box svg{width:100%;height:auto;display:block}
.legend{display:flex;flex-wrap:wrap;gap:6px 14px;margin-top:10px;font-size:12px;color:var(--ink-2)}
.legend i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:5px}
.chart-note{margin-top:8px;font-size:11.5px;line-height:1.55;color:var(--ink-3)}

/* 月度口径对照表：窄列紧凑排版，整表在卡片内完整展示、无需横滑，
   月份列处于普通文档流，彻底规避 sticky 首列横滑重绘遮罩问题 */
.cal-card{padding:14px 12px 12px}
.cal-table{width:100%;border-collapse:collapse;font-size:12px}
.cal-table th{padding:0 2px 7px;font-size:10.5px;font-weight:600;text-align:right;line-height:1.4;white-space:nowrap;color:var(--ink-3)}
.cal-table .h-m{text-align:left;padding-left:4px;width:44px;color:var(--ink-3)}
.cal-table .h-g{font-size:11px;padding-bottom:3px}
.cal-table .h-cash{color:var(--ink-3)}
.cal-table .h-sal{color:var(--green-d)}
.cal-table td{padding:8px 2px;border-top:1px solid var(--line);text-align:right;white-space:nowrap;color:var(--ink)}
.cal-table .c-m{text-align:left;padding-left:4px;font-weight:650;color:var(--ink);line-height:1.3}
.cal-table .c-m small{display:block;font-size:9.5px;font-weight:500;color:var(--ink-3)}
.cal-table .c-m small.cross{color:var(--gold);font-weight:650}
.cal-table .c-e{font-weight:650}
.cal-table .c-cash{color:var(--ink-2)}
.cal-table .c-sal{color:var(--green-d)}
/* 两组口径之间的竖向分隔线（inset 阴影沿整列连续） */
.cal-table .edge{box-shadow:inset 1px 0 0 var(--line)}
.cal-table tfoot td{border-top:1.5px solid var(--ink-3);padding-top:9px;font-weight:750}
.cal-table .cal-dash{color:var(--ink-3);opacity:.5}
.cal-legend{display:flex;flex-direction:column;gap:5px;margin:11px 4px 0;font-size:11px;line-height:1.4;color:var(--ink-3)}
.cal-legend i{display:inline-block;width:7px;height:7px;border-radius:2px;margin-right:7px;vertical-align:0}
.cal-legend .d-cash{background:var(--ink-3)}
.cal-legend .d-sal{background:var(--green-d)}
html.dark .cal-table .h-sal,html.dark .cal-table .c-sal,html.dark .cal-legend .d-sal{color:var(--green)}
html.dark .cal-legend .d-sal{background:var(--green)}

/* 我的 菜单 */
.menu .list-row .lr-arrow{color:var(--ink-3);font-size:16px}
.about-logo{width:72px;height:72px;border-radius:20px;margin:0 auto 10px;box-shadow:var(--shadow)}
.about-title{text-align:center;font-size:20px;font-weight:800}
.about-ver{text-align:center;font-size:12px;color:var(--ink-3);margin:4px 0 18px}

/* 图片凭证缩略图 */
.thumbs{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.thumb{position:relative;width:74px;height:74px;border-radius:10px;overflow:hidden;border:1px solid var(--line)}
.thumb img{width:100%;height:100%;object-fit:cover}
.thumb .rm{position:absolute;top:2px;right:2px;width:20px;height:20px;border-radius:50%;background:rgba(0,0,0,.55);color:#fff;font-size:11px;line-height:20px;text-align:center}
.photo-btns{display:flex;gap:10px;margin-top:10px}
.photo-btn{flex:1;display:flex;align-items:center;justify-content:center;gap:7px;padding:11px 8px;border-radius:12px;color:var(--green-d);font-size:13.5px;font-weight:600;transition:transform .12s}
.photo-btn:active{transform:scale(.97)}
.photo-btn svg{width:18px;height:18px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}
.photo-btn span{white-space:nowrap}

/* Toast */
.toast{position:fixed;left:50%;bottom:calc(var(--tabbar-h) + var(--nav-b) + 84px);transform:translateX(-50%);background:rgba(20,32,28,.92);color:#fff;padding:11px 20px;border-radius:99px;font-size:14px;z-index:80;max-width:86%;text-align:center;box-shadow:var(--shadow)}
/* 热更新居中弹窗 */
.upd-mask{position:fixed;inset:0;z-index:85;background:rgba(14,22,18,.42);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;padding:28px;animation:updFade .25s ease}
.upd-box{width:100%;max-width:322px;background:var(--card);border:1px solid var(--line);border-radius:24px;padding:26px 22px 20px;text-align:center;box-shadow:var(--shadow);animation:updPop .38s cubic-bezier(.2,1.25,.4,1)}
@keyframes updFade{from{opacity:0}to{opacity:1}}
@keyframes updPop{from{opacity:0;transform:scale(.86) translateY(10px)}to{opacity:1;transform:none}}
.upd-ico{width:54px;height:54px;border-radius:16px;background:var(--green-l);color:var(--green-d);display:flex;align-items:center;justify-content:center;margin:0 auto 13px}
.upd-ico svg{width:26px;height:26px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}
.upd-box h3{font-size:18px;font-weight:750;letter-spacing:-.01em;margin-bottom:6px}
.upd-ver{color:var(--green-d)}
.upd-box p{font-size:13px;color:var(--ink-2);line-height:1.55;margin:0 auto 18px}
.upd-btns{display:flex;gap:10px}
.upd-b2{flex:1;padding:12px 0;border-radius:99px;font-size:14.5px;font-weight:650;white-space:nowrap;transition:transform .12s}
.upd-b2.later{background:var(--bg);color:var(--ink-2);border:1px solid var(--line)}
.upd-b2.now{background:var(--green);color:#fff;box-shadow:0 4px 12px rgba(20,92,72,.28)}
.upd-b2:active{transform:scale(.97)}
html.dark .upd-ver{color:var(--green)}
/* 庆祝弹层 */
.celebrate{position:fixed;inset:0;z-index:90;background:rgba(10,25,20,.55);display:flex;align-items:center;justify-content:center;backdrop-filter:blur(3px)}
.celebrate-box{background:var(--card);border-radius:24px;padding:30px 26px;width:82%;max-width:340px;text-align:center;animation:pop .4s cubic-bezier(.2,1.4,.4,1)}
@keyframes pop{from{transform:scale(.6);opacity:0}to{transform:scale(1);opacity:1}}
.celebrate-box .cb-emoji{font-size:58px}
.celebrate-box h3{font-size:21px;margin:10px 0 6px}
.celebrate-box p{font-size:14px;color:var(--ink-2);margin-bottom:18px}

.timeline-month{font-size:13px;font-weight:700;color:var(--ink-2);margin:14px 4px 8px;display:flex;justify-content:space-between}
.timeline-month span:last-child{color:var(--ink-3);font-weight:500}

.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:10px 0}
.dg-item{background:var(--bg);border-radius:12px;padding:10px 12px}
.dg-item .dg-k{font-size:12px;color:var(--ink-3)}
.dg-item .dg-v{font-size:16px;font-weight:800;margin-top:2px}

/* ============ 搜索 + 筛选融合卡（按钮原位 Morph 成悬浮卡片） ============ */
/* 容器闭合时就是搜索框；展开时左右和上边缘不动，仅下边缘生长为悬浮卡片 */
.sbar{position:relative;margin:0 0 12px;padding:9px 10px 9px 12px;border-radius:12px;transition:background .36s cubic-bezier(.32,.7,.28,1),border-color .36s cubic-bezier(.32,.7,.28,1),box-shadow .4s cubic-bezier(.32,.7,.28,1),border-radius .36s cubic-bezier(.32,.7,.28,1)}
#view > #sbar{animation:none}
.sbar.open{background:var(--card);border-color:var(--line);border-radius:18px;box-shadow:0 18px 46px rgba(32,39,34,.17),0 2px 10px rgba(32,39,34,.05);z-index:35}
.sbar-row1{display:flex;align-items:center;gap:8px}
.sbar .sb-ic{display:flex;color:var(--ink-3);flex:none}
.sbar .sb-ic svg{width:18px;height:18px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}
.sbar input{border:none;background:none;outline:none;flex:1;min-width:0;font-size:14px}
.sb-clear{flex:none;width:20px;height:20px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;background:var(--ink-3);transition:background .15s,transform .12s}
.sb-clear:active{transform:scale(.88)}
.sb-clear[hidden]{display:none}
.sb-clear svg{width:11px;height:11px;stroke:currentColor;stroke-width:2.1;fill:none;stroke-linecap:round;stroke-linejoin:round}
/* 筛选按钮：卡片展开的锚点（展开后淡绿底，激活后实心绿） */
.sb-filter{position:relative;flex:none;width:34px;height:34px;border-radius:10px;display:flex;align-items:center;justify-content:center;color:var(--ink-2);background:var(--bg);margin-left:2px;transition:background .22s,color .22s,transform .12s,box-shadow .3s}
.sb-filter:active{transform:scale(.9)}
.sb-filter svg{width:17px;height:17px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round;transition:transform .36s cubic-bezier(.32,.7,.28,1)}
.sbar.open .sb-filter{background:var(--green-l);color:var(--green-d)}
.sbar.open .sb-filter svg{transform:scale(1.06)}
.sb-filter.on{background:var(--green);color:#fff;box-shadow:0 4px 12px rgba(20,92,72,.28)}
.sb-filter.on svg{transform:none}
.sbf-badge{position:absolute;top:-4px;right:-4px;min-width:16px;height:16px;padding:0 4px;border-radius:8px;background:var(--gold);color:#fff;font-size:10px;font-style:normal;font-weight:700;display:flex;align-items:center;justify-content:center;border:1.5px solid var(--card)}
.sbf-badge[hidden]{display:none}
/* 第二行：grid 0fr→1fr，下边缘生长，第一行与左右边缘纹丝不动 */
.sbar-row2{display:grid;grid-template-rows:0fr;transition:grid-template-rows .4s cubic-bezier(.32,.72,.28,1)}
.sbar.open .sbar-row2{grid-template-rows:1fr}
/* Morph 过渡途中不响应 chip 点击，防止几何未稳定时打开选项面板 */
.sbar.morphing .sbar-row2-in{pointer-events:none}
.sbar-row2-in{position:relative;min-height:0;overflow:hidden;display:flex;flex-direction:column;opacity:0;visibility:hidden;transform:translateY(-5px);transition:opacity .2s ease,transform .3s cubic-bezier(.32,.7,.28,1),visibility 0s linear .2s}
.sbar.open .sbar-row2-in{opacity:1;visibility:visible;transform:translateY(0);z-index:11;transition:opacity .28s ease .12s,transform .38s cubic-bezier(.32,.7,.28,1) .08s,visibility 0s}
.sbar-div{height:1px;background:var(--line);margin:10px 2px 0}
.flt-bar-in{display:flex;align-items:center;gap:10px;padding-top:10px}
.flt-chips{flex:1;min-width:0;display:flex;gap:7px;overflow-x:auto;scrollbar-width:none;padding:2px 0;-webkit-mask-image:linear-gradient(to right,#000 calc(100% - 16px),transparent);mask-image:linear-gradient(to right,#000 calc(100% - 16px),transparent)}
.flt-chips::-webkit-scrollbar{display:none}
/* 实色底而非毛玻璃：横向滑动时 Chromium 不重绘滚动容器内的 backdrop-filter 元素，
   会滑出空白块（命中区仍在），小胶囊上实色与玻璃观感一致 */
.fchip{position:relative;flex:none;display:inline-flex;align-items:center;gap:3px;padding:7px 11px;border-radius:99px;font-size:12.5px;font-weight:550;color:var(--ink-2);background:var(--card);border:1px solid var(--line);box-shadow:var(--shadow-sm);transition:color .2s,background .22s,border-color .22s,border-radius .24s cubic-bezier(.32,.72,.28,1),box-shadow .22s,opacity .22s,transform .12s}
.fchip:active{transform:scale(.95)}
.fchip .fc-cv{display:inline-flex;color:var(--ink-3)}
.fchip .fc-cv svg{width:13px;height:13px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round;transition:transform .28s cubic-bezier(.32,.72,.28,1),color .2s}
.fchip.on{color:var(--green-d);border-color:color-mix(in srgb,var(--green) 30%,var(--glass-bd));background:var(--green-l);backdrop-filter:none;-webkit-backdrop-filter:none}
.fchip.on .fc-cv{color:var(--green-d)}
/* 打开选项面板的 chip：整条下边缘与面板融合，形成凸字形 Tab */
.fchip.pop-open{z-index:11;background:var(--card);backdrop-filter:none;-webkit-backdrop-filter:none;border-color:var(--line);border-bottom-color:var(--card);border-radius:10px 10px 0 0;box-shadow:none;color:var(--green-d)}
.fchip.pop-open.on{background:var(--card);border-color:var(--line);border-bottom-color:var(--card)}
.fchip.pop-open .fc-cv{color:var(--green-d)}
.fchip.pop-open .fc-cv svg{transform:rotate(180deg)}
/* 凸字两侧的内凹圆角：白块吃掉面板直线边框，弧线上的描边与面板边框相接。半径小于 chip 间距 7px，不探到相邻按钮 */
.fchip.pop-open::before,.fchip.pop-open::after{content:"";position:absolute;bottom:0;width:6px;height:6px;background:var(--card);pointer-events:none}
.fchip.pop-open::before{left:-6px;border-bottom-right-radius:6px;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}
.fchip.pop-open::after{right:-6px;border-bottom-left-radius:6px;border-left:1px solid var(--line);border-bottom:1px solid var(--line)}
/* 面板与 chip 同侧贴边时：直角直连，不画凹弧，面板该侧顶角也不圆 */
.fchip.pop-open.edge-l::before,.fchip.pop-open.edge-r::after{display:none}
.flt-pop.edge-l{border-top-left-radius:0}
.flt-pop.edge-r{border-top-right-radius:0}
/* 面板展开时弱化同排其他 chip，保持凸字主体干净，仍可点击切换 */
.sbar.pop-open #fltChips .fchip:not(.pop-open){opacity:.42;box-shadow:none}
.fc-reset{gap:4px;color:var(--ink-3)}
.fc-reset svg{width:13px;height:13px;stroke:currentColor;stroke-width:1.9;fill:none;stroke-linecap:round;stroke-linejoin:round}
.fc-reset[hidden],.flt-sum[hidden]{display:none}
.flt-sum{flex:none;display:flex;align-items:baseline;gap:3px;padding:8px 12px;border-radius:12px;background:var(--green);color:#fff;box-shadow:0 4px 12px rgba(20,92,72,.22);font-size:11px}
.flt-sum b{font-size:15px;font-weight:700;line-height:1}
.flt-sum em{font-style:normal;font-size:12.5px;font-weight:600;margin-left:5px;opacity:.92}
.sr-month{padding-top:12px}
/* 点外部关闭层（sbar 之外，保证展开卡浮于其上） */
.flt-mask{position:fixed;inset:0;z-index:34}
/* 凸字 Tab 的面板部分：紧贴 chip 下边缘（重叠 1px 融边），顶边钉住、沿
   transform-origin（JS 对准 chip 中心）向下拉长生长，与搜索框 morph 同缓动 */
.flt-pop{position:absolute;z-index:10;background:var(--card);border:1px solid var(--line);border-radius:16px;box-shadow:0 16px 44px rgba(32,39,34,.18),0 2px 8px rgba(32,39,34,.05);padding:6px;min-width:168px;max-width:calc(100vw - 32px);animation:popIn .3s cubic-bezier(.32,.72,.28,1) both}
@keyframes popIn{from{opacity:0;transform:scaleY(.62)}to{opacity:1;transform:scaleY(1)}}
.flt-pop.wide{width:298px}
.pop-list{display:flex;flex-direction:column;gap:1px;min-width:158px}
.pop-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 12px;border-radius:10px;font-size:13.5px;color:var(--ink);white-space:nowrap;text-align:left;transition:background .14s}
.pop-row:active{background:var(--line)}
.pop-row.on{background:var(--green-l);color:var(--green-d);font-weight:650}
.pk-ic{display:flex;flex:none}
.pk-ic svg{width:16px;height:16px;stroke:currentColor;stroke-width:2.2;fill:none;stroke-linecap:round;stroke-linejoin:round}
/* 金额面板 */
.pa{padding:4px}
.pa .chip-group{margin-bottom:12px}
.pa .chip{padding:6px 11px;font-size:12px}
.pa .chip.on{background:var(--green-l);border-color:var(--green);color:var(--green-d)}
.pa-inputs{display:flex;align-items:center;gap:9px;margin-bottom:12px}
.pa-in{flex:1;min-width:0}
.pa-in label{display:block;font-size:11.5px;color:var(--ink-3);margin-bottom:5px}
.pa-in input{width:100%;padding:10px 12px;border-radius:11px;border:1.5px solid var(--line);background:var(--bg);font-size:14px;font-variant-numeric:tabular-nums;outline:none}
.pa-in input:focus{border-color:var(--green)}
.pa-dash{width:8px;height:2px;border-radius:1px;background:var(--ink-3);margin-bottom:2px;flex:none}
.pa-btns{display:flex;gap:8px}
.pa-btns button{flex:1;padding:10px;border-radius:11px;font-size:13.5px;font-weight:650;background:var(--bg);color:var(--ink-2);border:1px solid var(--line);transition:transform .12s}
.pa-btns button:active{transform:scale(.97)}
.pa-btns button.ok{background:var(--green);color:#fff;border-color:var(--green)}
.text-green{color:var(--green-d)} .text-red{color:var(--red)} .text-gold{color:var(--gold)} .text-gray{color:var(--ink-3)}
.fw-bold{font-weight:700}
.mt8{margin-top:8px}.mt12{margin-top:12px}.mt16{margin-top:16px}
.fz12{font-size:12px}.fz13{font-size:13px}
