/* 首页目标共用一个内容区：突出今日，昨日与本月为小字摘要。 */
.goal-configuration { margin:8px 0 12px; padding:10px 14px; border:1px solid var(--theme-line,#e2e9f3); border-radius:10px; background:var(--theme-surface,#fff); color:var(--theme-text,#263752); font-size:12px; line-height:1.7; overflow-wrap:anywhere; }
.goal-configuration[hidden] { display:none; }
.goal-configuration summary { cursor:pointer; color:var(--theme-blue,#477bd2); }
.goal-configuration p { margin:6px 0 0; }
.month-day-detail>.goal-configuration { flex:0 0 100%; box-sizing:border-box; margin:0; }
.month-platform-context { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin:-4px 0 16px; color:var(--theme-muted,#8090a6); font-size:12px; }
.month-platform-context label { display:flex; align-items:center; gap:8px; }
.month-platform-context select { padding:7px 28px 7px 10px; border:1px solid var(--theme-line,#e2e9f3); border-radius:8px; color:var(--theme-text,#263752); background:var(--theme-surface,#fff); font:inherit; }
.month-goal-rule { margin:0 0 16px; color:var(--theme-muted,#8090a6); font-size:12px; line-height:1.7; }
.goal-field-unit { color:var(--theme-muted,#8090a6); font-size:11px; }
.goal-overview-scroll { min-width:0; overflow-x:auto; padding:2px 0 6px; scrollbar-width:thin; }
.goal-overview-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); grid-template-rows:44px auto; gap:0 16px; min-width:1080px; }
.goal-metric-card { grid-row:span 2; display:grid; grid-template-rows:subgrid; min-width:0; border:1px solid var(--theme-line,#e2e9f3); border-radius:12px; overflow:hidden; color:var(--theme-text,#263752); background:var(--theme-surface,#fff); box-shadow:0 3px 12px #29456a04; }
.goal-metric-heading { display:flex; align-items:center; gap:8px; padding:7px 14px; border-bottom:1px solid var(--theme-line,#e2e9f3); }
.goal-metric-heading h3 { margin:0; font-size:13px; font-weight:650; line-height:1.4; }
.goal-metric-icon { display:grid; place-items:center; flex:none; width:27px; height:27px; border-radius:8px; color:var(--theme-blue,#477bd2); background:var(--theme-blue-soft,#eef4ff); }
.goal-metric-icon svg { width:17px; height:17px; }
[data-goal-metric=active] .goal-metric-icon { color:#219d82; background:#219d8212; }
[data-goal-metric=revenue] .goal-metric-icon { color:#8771ca; background:#8771ca12; }
.goal-announcement .goal-metric-icon { color:#bd8b36; background:#bd8b3612; }
.goal-metric-body { display:flex; flex-direction:column; min-width:0; padding:10px 14px; background:linear-gradient(120deg,var(--theme-blue-soft,#eef4ff),transparent 85%); }
.goal-period-row { min-width:0; }
.goal-period-heading,.goal-period-heading>div { display:flex; align-items:center; gap:7px; min-width:0; }
.goal-period-heading { justify-content:space-between; min-height:18px; margin-bottom:4px; }
.goal-period-heading strong { font-size:11px; font-weight:600; white-space:nowrap; }
.goal-period-heading time { color:var(--theme-muted,#8090a6); font-size:9px; font-variant-numeric:tabular-nums; white-space:nowrap; }
.goal-period-row[data-dimension=today] .goal-period-heading strong { color:var(--theme-blue,#477bd2); }
.goal-period-row .goal-status { flex:none; padding:1px 5px; font-size:9px; line-height:1.5; border-radius:4px; }
#goal-cards .goal-period-row .goal-values { display:flex; flex-wrap:wrap; align-items:baseline; gap:2px 6px; min-height:28px; margin:0; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.goal-period-row .goal-values b { min-width:0; font-size:23px; font-weight:650; line-height:1.2; letter-spacing:-.3px; }
.goal-period-row .goal-target-value { min-width:0; color:var(--theme-muted,#8090a6); font-size:10px; line-height:1.5; }
.goal-period-row .progress { height:4px; overflow:hidden; border-radius:999px; margin:6px 0 3px; background:var(--theme-subtle,#edf1f7); }
.goal-period-row .progress>span { display:block; height:100%; border-radius:inherit; background:var(--theme-blue,#4e7fe0); }
.goal-period-row[data-goal-state=COMPLETED] .progress>span { background:#29a375; }
.goal-period-row footer { display:flex; justify-content:space-between; align-items:baseline; flex-wrap:wrap; gap:2px 8px; min-height:13px; color:var(--theme-muted,#8090a6); font-size:9px; line-height:1.45; }
.goal-period-row footer small { font-size:9px; }
.goal-history { display:grid; gap:3px; margin-top:8px; }
.goal-period-compact { position:relative; display:grid; grid-template-columns:24px minmax(0,1fr) auto; align-items:baseline; column-gap:7px; min-height:19px; }
.goal-period-compact .goal-period-heading { min-height:0; margin:0; }
.goal-period-compact .goal-period-heading strong { font-size:10px; font-weight:400; color:var(--theme-muted,#8090a6); }
#goal-cards .goal-period-compact .goal-values { justify-content:flex-end; min-height:0; gap:1px 4px; text-align:right; }
.goal-period-compact .goal-values b { color:var(--theme-text,#263752); font-size:11px; line-height:1.45; letter-spacing:0; font-weight:550; }
.goal-period-compact .goal-target-value { font-size:9px; }
.goal-period-compact .progress { display:none!important; }
.goal-period-compact footer { justify-content:flex-end; min-height:0; font-size:9px; white-space:nowrap; }
.goal-period-compact .goal-period-heading time,.goal-period-compact .goal-status,.goal-period-compact [data-goal-freshness],.goal-announcement-state { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.goal-announcement-example { margin-left:auto; padding:2px 5px; border-radius:4px; background:var(--theme-raised,#f5f7fb); color:var(--theme-muted,#8090a6); font-size:9px; line-height:1.4; }
.goal-announcement-list { display:grid; grid-template-rows:repeat(4,minmax(0,1fr)); gap:0; min-width:0; margin:0; padding:7px 14px; list-style:none; }
.goal-announcement-list li { position:relative; display:flex; align-items:center; gap:7px; min-width:0; min-height:29px; }
.goal-announcement-list li::before { content:""; flex:none; width:5px; height:5px; border-radius:50%; }
.goal-announcement-list li.is-unread::before { background:#e75a62; box-shadow:0 0 0 2px #e75a6210; }
.goal-announcement-text { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--theme-muted,#8090a6); font-size:11px; line-height:1.5; }
.is-unread .goal-announcement-text { color:var(--theme-text,#263752); font-weight:550; }
.goal-announcement-list time { flex:none; color:var(--theme-muted,#8090a6); font-size:9px; font-variant-numeric:tabular-nums; }
#goal-cards .goal-period-row [data-goal-current].goal-data-pending { height:28px; }
#goal-cards .goal-period-row [data-goal-date].goal-data-pending { width:38px; height:9px; }
#goal-cards .goal-period-row .progress.goal-data-pending { height:4px; }
#goal-cards .goal-period-compact [data-goal-current].goal-data-pending { width:36px; height:14px; }
#goal-cards .goal-period-compact [data-goal-target].goal-data-pending { width:35px; min-width:0; height:10px; }
#goal-cards .goal-period-compact [data-goal-percent].goal-data-pending { width:30px; min-width:0; height:10px; }
.goal-overview-scroll:focus-visible { outline:2px solid var(--theme-blue,#477bd2); outline-offset:-2px; }
@media(max-width:1100px) { .goal-overview-grid { gap:0 12px; } }
@media(prefers-reduced-motion:reduce) { .goal-period-row * { animation:none!important; transition:none!important; } }
.goal-configuration-context{padding:14px 16px;margin-bottom:12px;border:1px solid var(--theme-line,#e2e9f3);border-radius:12px;background:var(--theme-surface,#fff);}
.goal-configuration-context p{margin:6px 0 0;}
.goal-platform-notice{padding:10px 12px;border-left:3px solid var(--theme-blue,#2563eb);background:var(--theme-surface,#fff);font-size:13px;line-height:1.7;}
.goal-platform-notice a{font-weight:600;}
.goal-team-total{margin:12px 0;padding:14px 16px;border:1px solid var(--theme-line,#e2e9f3);border-radius:12px;background:var(--theme-blue-soft,#eef4ff);}
.goal-team-total>.goal-edit-fields{margin-top:0;}
.goal-team-total .goal-edit-fields>div{display:flex;flex-direction:column;gap:6px;min-width:0;overflow-wrap:anywhere;}
.goal-team-total span,.goal-team-total small,.goal-team-total p{font-size:12px;color:var(--theme-muted,#8090a6);}
.goal-team-total b{font-size:18px;font-variant-numeric:tabular-nums;}
.goal-team-total p{margin:12px 0 0;line-height:1.6;}
.goal-saved-history{margin:8px 0 14px;font-size:12px;line-height:1.7;overflow-wrap:anywhere;}
.goal-saved-history summary{cursor:pointer;color:var(--theme-blue,#477bd2);}
.goal-saved-history ol{padding-left:20px;max-height:220px;overflow:auto;}
.goal-saved-history li{margin-bottom:10px;}
.goal-saved-history span{color:var(--theme-muted,#8090a6);}
.goal-saved-history p{margin:2px 0;}
