/* v1.7 오늘 탭 대시보드 카드(최근 수정 · 섹션별 현황 · 중요도×작성 수준) — DESIGN 토큰만 사용 */
/* 색 규칙(SPEC §15.3): 작성 수준 고=--green · 저=--blue · 미입력=--gray, 중요도 점은 배지와 같은 계열(red·orange·yellow·gray).
   크기는 rem/em 만 — 글자 32px 에서도 줄바꿈으로 수용. SVG 는 viewBox 없이 % 좌표라 글자는 늘어나지 않고 폭만 카드에 맞춘다. */
.ov-card { --ov-ink: #0b0b0d; }   /* 채움 위 숫자: green·blue·gray 세 색 모두 위에서 ≥5:1 (흰 글자는 blue 위 4.0 으로 미달) */
.ov-card .card { min-width: 0; }
.ov-state { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 12px 0; color: var(--label-2); font-size: var(--t-sub); line-height: 1.4; }
.ov-state .text-btn { min-height: 2.25em; height: auto; }

/* 공용 스와치·범례 */
.ov-hi { --ov-c: var(--green); }
.ov-lo { --ov-c: var(--blue); }
.ov-none { --ov-c: var(--gray); }
.ov-sw { display: inline-block; width: .75em; height: .75em; border-radius: 3px; background: var(--ov-c); flex: none; }
.ov-idot { display: inline-block; width: .6em; height: .6em; border-radius: 50%; flex: none; }
.ov-imp-top { background: var(--red); }
.ov-imp-high { background: var(--orange); }
.ov-imp-mid { background: var(--yellow); }
.ov-imp-low { background: var(--gray); }
.ov-legends { display: flex; flex-wrap: wrap; gap: .25em 1.25em; margin-bottom: .75em; }
.ov-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25em .9em; font-size: var(--t-foot); color: var(--label-2); }
.ov-legend li { display: inline-flex; align-items: center; gap: .35em; white-space: nowrap; }

/* ① 최근 수정 — 14일 막대 */
.ov-edits { display: block; height: 8.5rem; overflow: visible; }
.ov-edits .ov-base { stroke: var(--separator); stroke-width: 1; }
.ov-edits .ov-hit { fill: transparent; }
.ov-edits .ov-track { fill: var(--fill-4); }
.ov-edits .ov-col { fill: var(--gray); }
.ov-edits .cur .ov-col { fill: var(--accent); }
.ov-edits .ov-val { font-size: var(--t-cap); font-weight: 600; fill: var(--label); font-variant-numeric: tabular-nums; }
.ov-edits .ov-x { font-size: var(--t-cap); fill: var(--label-2); font-variant-numeric: tabular-nums; }
.ov-edits .ov-x.cur { fill: var(--label); font-weight: 600; }
.ov-edits .ov-x2 { font-size: var(--t-cap2); }
.ov-edits .ov-day { outline: none; }
.ov-edits .ov-day:focus-visible .ov-hit { stroke: var(--accent); stroke-width: 2; }
@media (hover: hover) { .ov-edits .ov-day:hover .ov-hit { fill: var(--fill-4); } .ov-edits .ov-day:hover .ov-col { fill: var(--label-2); } .ov-edits .cur .ov-day:hover .ov-col { fill: var(--accent); } }
.ov-sum { margin: .75em 0 .25em; font-size: var(--t-foot); color: var(--label-2); line-height: 1.5; }
.ov-sum b { color: var(--label); font-weight: 600; font-variant-numeric: tabular-nums; }

.ov-ed-list { list-style: none; margin: .5em -16px 0; padding: 0; border-top: var(--hairline) solid var(--separator); }
.ov-ed { padding: .55em 16px .6em; cursor: default; min-width: 0; }
.ov-ed + .ov-ed { border-top: var(--hairline) solid var(--separator); }
@media (hover: hover) { .ov-ed:hover { background: var(--fill-4); } }
.ov-ed:active { background: var(--fill-3); }
.ov-ed:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ov-ed-h { display: flex; align-items: baseline; gap: .5em; min-width: 0; }
.ov-q { flex: none; font-weight: 700; color: var(--accent-fg); font-size: var(--t-foot); font-variant-numeric: tabular-nums; }
.ov-qt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--t-sub); color: var(--label); }
.ov-ed-m { display: flex; flex-wrap: wrap; align-items: center; gap: .2em .6em; margin-top: .25em; font-size: var(--t-cap); color: var(--label-2); line-height: 1.4; }
.ov-chip { display: inline-block; max-width: 100%; padding: .05em .55em; border-radius: var(--radius-xs); background: var(--fill-3); color: var(--label-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-ed-m time { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ov-fields { overflow-wrap: anywhere; }
.ov-more { display: block; margin: .25em auto 0; min-height: 2.75em; height: auto; font-size: var(--t-foot); }

/* 누적 막대(공용) */
.ov-stack { display: block; height: 1.5em; overflow: visible; }
.ov-stack .ov-strack { fill: var(--fill-4); }
.ov-seg rect { fill: var(--ov-c); stroke: var(--surface); stroke-width: 2px; }   /* 바탕색 2px 간격(세그먼트 경계) */
.ov-seg .ov-in { font-size: var(--t-cap); font-weight: 600; fill: var(--ov-ink, #0b0b0d); font-variant-numeric: tabular-nums; pointer-events: none; }
.ov-seg.act { cursor: pointer; outline: none; }
.ov-seg.act:focus-visible rect { stroke: var(--label); stroke-width: 3px; }
@media (hover: hover) { .ov-seg.act:hover rect { filter: brightness(.9); } }

/* ② 섹션별 현황 */
.ov-sec-list { list-style: none; margin: 0; padding: 0; }
.ov-sec { padding: .55em 0; min-width: 0; }
.ov-sec + .ov-sec { border-top: var(--hairline) solid var(--separator); }
.ov-sec-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15em .6em; margin-bottom: .35em; }
.ov-sec-l { flex: 1 1 8em; min-width: 0; font-size: var(--t-sub); font-weight: 600; color: var(--label); overflow-wrap: anywhere; }
.ov-sec-n { font-size: var(--t-foot); color: var(--label-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ov-imps { display: inline-flex; flex-wrap: wrap; gap: .1em .55em; font-size: var(--t-cap); color: var(--label); font-variant-numeric: tabular-nums; }
.ov-impn { display: inline-flex; align-items: center; gap: .25em; white-space: nowrap; }
.ov-impn.zero { color: var(--label-2); }
.ov-sec.muted .ov-sec-l, .ov-sec.muted .ov-imps { color: var(--label-2); font-weight: 500; }
.ov-sec.muted .ov-idot { opacity: .45; }

/* ③ 중요도 × 작성 수준 */
.ov-mx-head, .ov-mx { display: grid; grid-template-columns: 4.25em minmax(0, 1fr) 2.75em; align-items: center; gap: .6em; }
.ov-mx-head { font-size: var(--t-cap); color: var(--label-2); padding-bottom: .35em; border-bottom: var(--hairline) solid var(--separator); }
.ov-mx-head span:last-child { text-align: right; }
.ov-mx-list { list-style: none; margin: 0; padding: 0; }
.ov-mx { padding: .4em 0; }
.ov-mx + .ov-mx { border-top: var(--hairline) solid var(--separator); }
.ov-mx-imp { justify-self: start; border: 0; background: none; padding: .25em; margin: -.25em; border-radius: var(--radius-xs); cursor: pointer; min-height: 2.75em; display: inline-flex; align-items: center; }
@media (hover: hover) { .ov-mx-imp:hover { background: var(--fill-4); } }
.ov-mx-bar .ov-stack { height: 1.9em; }
.ov-mx-n { text-align: right; font-size: var(--t-sub); font-weight: 600; color: var(--label); font-variant-numeric: tabular-nums; }
.ov-mx.muted .ov-mx-n { color: var(--label-2); font-weight: 500; }
.ov-mx-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .25em .5em; margin-top: .35em; padding-top: .5em; border-top: 1px solid var(--separator-opaque); font-size: var(--t-foot); color: var(--label-2); }
.ov-ft-l { font-weight: 600; color: var(--label); margin-right: .25em; }
.ov-ft { display: inline-flex; align-items: center; gap: .35em; border: 0; background: none; color: inherit; font: inherit; padding: .3em .5em; border-radius: var(--radius-xs); cursor: pointer; min-height: 2.5em; }
@media (hover: hover) { .ov-ft:hover { background: var(--fill-4); } }
.ov-ft b, .ov-ft-all b { color: var(--label); font-variant-numeric: tabular-nums; }
.ov-ft-all { margin-left: auto; white-space: nowrap; }

/* 강제 색상(윈도 고대비): 채움이 사라지므로 테두리로 구분 */
@media (forced-colors: active) {
  .ov-seg rect, .ov-edits .ov-col { stroke: CanvasText; stroke-width: 1px; }
  .ov-sw, .ov-idot { border: 1px solid CanvasText; }
}

/* 좁은 카드(모바일·큰 글자): 중요도 행을 두 줄로 — 배지·합계 한 줄, 막대는 아래 전체 폭. em 은 카드 글자 크기 기준이라 32px 에서 자동 전환 */
.ov-card .card { container-type: inline-size; }
@container (max-width: 26em) {
  .ov-mx-head { display: none; }
  .ov-mx { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "imp n" "bar bar"; row-gap: .35em; }
  .ov-mx-imp { grid-area: imp; }
  .ov-mx-n { grid-area: n; }
  .ov-mx-bar { grid-area: bar; }
}
