:root{--portal-ink:#182219;--portal-green:#baf04d;--portal-soft:#f7fbed;--portal-line:#dfe8c9;--portal-muted:#768075}
.client-portal{min-height:100vh;background:linear-gradient(135deg,#dff4a9,#f7fbed 34%,#eef8d7);color:var(--portal-ink);font-family:ui-rounded,"SF Pro Rounded","PingFang SC",sans-serif;padding:clamp(18px,4vw,42px)}
.client-portal>*{max-width:760px;margin-left:auto;margin-right:auto}.portal-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:42px}.portal-header span,.portal-eyebrow{font-size:13px;color:#71806f}.portal-header strong{display:block;font-size:18px;margin-top:4px}.portal-expiry{background:var(--portal-ink);color:white;border-radius:18px;padding:10px 16px;text-align:right}.portal-expiry small{display:block;color:#c9d4c4}.portal-view>h1{font-size:clamp(34px,7vw,56px);letter-spacing:-.05em;margin:4px 0 20px}.portal-progress{background:rgba(255,255,255,.7);border:1px solid var(--portal-line);border-radius:20px;padding:15px 18px;margin-bottom:16px}.portal-modules{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.portal-modules button{border:1px solid var(--portal-line);border-radius:24px;background:rgba(255,255,255,.86);min-height:142px;padding:20px;text-align:left;display:grid;grid-template-columns:auto 1fr;gap:14px;color:inherit;box-shadow:0 12px 30px rgba(47,68,25,.07)}.portal-modules button i{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:var(--portal-green);font-style:normal;font-weight:800}.portal-modules b{display:block;font-size:21px}.portal-modules small{display:block;color:var(--portal-muted);margin-top:8px;line-height:1.5}.portal-modules em{grid-column:2;font-style:normal;font-size:13px}.portal-account{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}.portal-account button,.portal-back,.trend-ranges button,.calendar-toolbar button{border:1px solid var(--portal-line);background:white;border-radius:999px;padding:10px 15px;color:inherit}.portal-back{margin:0 0 20px}.record-section{background:rgba(255,255,255,.9);border:1px solid var(--portal-line);border-radius:28px;padding:clamp(18px,4vw,30px);margin:18px 0}.record-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.record-heading>div{display:flex;align-items:center;gap:12px}.record-heading span{display:grid;place-items:center;width:34px;height:34px;background:var(--portal-green);border-radius:11px;font-weight:800}.record-heading h2{font-size:21px;margin:0}.record-heading>b{color:#6f7f68;font-size:13px}.record-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.record-grid>label,.record-stack>label{display:block;background:#f8faF4;border:1px solid #e3e9d8;border-radius:18px;padding:13px}.record-grid label>span,.record-stack label>span{display:block;font-weight:700;margin-bottom:8px}.record-grid label>span small{font-weight:400;color:var(--portal-muted)}.record-stack{display:grid;gap:10px;margin-top:12px}.record-stack textarea,.record-stack input,.record-stack select,.record-grid input,.record-grid select{box-sizing:border-box;width:100%;border:1px solid var(--portal-line);background:white;border-radius:12px;padding:11px;font:inherit}.number-control{display:grid;grid-template-columns:34px 1fr 34px;gap:5px}.number-control button{border:0;border-radius:10px;background:#e9f5cf;font-size:18px}.record-grid [data-previous],.record-stack [data-previous]{display:block;color:#8a9388;font-size:12px;margin-top:6px}.record-save{width:100%;border:0;border-radius:16px;background:var(--portal-ink);color:white;padding:15px;margin-top:16px;font:700 16px inherit}.previous-note,.pvt-rules{border-radius:16px;background:#eff7db;padding:14px;line-height:1.6}.pvt-rules{margin-bottom:12px}.pvt-live #pvt-live-target{min-height:240px;width:100%;border:0;border-radius:24px;background:#eef4df;font-size:20px}.pvt-live #pvt-live-target.ready{background:var(--portal-green);font-size:28px}.pvt-live #pvt-live-close{border:0;background:transparent;padding:14px}.integrated-pvt-result dl,#integrated-pvt-result dl{display:grid;gap:8px}.integrated-pvt-result dl div,#integrated-pvt-result dl div{display:flex;justify-content:space-between;border-bottom:1px solid var(--portal-line);padding:9px 0}.calendar-toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.cat-calendar{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;background:rgba(255,255,255,.9);padding:12px;border-radius:24px}.cat-calendar>b{text-align:center;font-size:12px;color:#808a7d}.cat-day{min-height:82px;text-align:center;border-radius:14px;background:#f8faF4;padding:5px}.cat-day small,.cat-day em{display:block;font-size:10px;font-style:normal}.cat-day img{width:100%;max-width:48px;image-rendering:pixelated}.cat-day img.cat-stage-0{filter:grayscale(1);opacity:.52}.record-section article{display:flex;justify-content:space-between;border-top:1px solid var(--portal-line);padding:12px 0}.trend-ranges{display:flex;gap:6px;margin-bottom:14px}.trend-ranges .active{background:var(--portal-ink);color:white}.trend-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.trend-list article{background:white;border:1px solid var(--portal-line);border-radius:22px;padding:16px}.trend-list h2{font-size:16px}.trend-list svg{width:100%;color:#85b72c}.trend-list p{font-size:11px;color:var(--portal-muted)}.trend-empty{min-height:80px;display:grid;place-items:center;background:#f7faF0;border-radius:14px}
@media(max-width:600px){.client-portal{padding:18px 14px 42px}.portal-header{margin-bottom:30px}.portal-modules{grid-template-columns:1fr}.portal-modules button{min-height:112px}.record-grid,.trend-list{grid-template-columns:1fr}.cat-day{min-height:65px}.cat-day img{max-width:38px}}

.site-footer{margin:0 auto;max-width:760px;padding:18px 16px 26px;color:#8a9388;font-size:12px}.site-footer-inner{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:center;justify-content:center;text-align:center}.site-footer a{color:#6f7f68;text-decoration:none}.site-footer a:hover{text-decoration:underline}.footer-icp-pending{color:#c9a227;border:1px dashed #d8c06a;border-radius:999px;padding:3px 12px}

/* r28 填报减负：分区“沿用昨日”按钮 */
.record-heading-actions{display:flex;align-items:center;gap:8px}
.record-heading-actions button{border:1px solid var(--portal-line);background:#fff;color:#4c6b5a;border-radius:999px;padding:6px 11px;font:600 11px inherit}
.portal-identity{display:flex;align-items:flex-start;gap:8px;flex-wrap:wrap}.portal-identity>a{align-self:center;border:1px solid #cbd8b5;border-radius:999px;background:#fff;padding:6px 10px;color:var(--portal-ink);font-size:12px;text-decoration:none;white-space:nowrap}.portal-identity>a:focus-visible,.portal-identity>a:hover{background:var(--portal-green)}
