.ok-metric-title [data-history-title] {
  background: transparent; border: 0; padding: 0; min-height: 0; color: inherit; font: inherit;
  cursor: pointer; text-align: left; touch-action: manipulation;
}
.ok-metric-title [data-history-title]:hover { color: var(--blue-dark); }
.okr-history { width: min(1440px, 96vw); max-height: 92dvh; padding: 0; color: var(--ink); background: var(--panel);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-raised); font-variant-numeric: tabular-nums; }
.okr-history::backdrop { background: rgb(23 32 42 / 35%); }
.okr-history [hidden], .okr-history .oh-status:empty { display: none; }
.okr-history header, .okr-history .oh-heading, .okr-history .oh-nav { display: flex; align-items: center; gap: 10px; }
.okr-history header, .okr-history .oh-heading { justify-content: space-between; }
.okr-history header { padding: 17px 24px; background: linear-gradient(100deg,#fcf4ee,#fff 65%); border-bottom: 1px solid var(--line); }
.okr-history header small { color: var(--blue-dark); }
.okr-history :is(h2,h3,h4) { margin: 0; }
.okr-history .oh-layout { display: grid; grid-template-columns: minmax(0,44fr) minmax(0,56fr); }
.okr-history .oh-layout section { min-width: 0; padding: 20px clamp(12px,2vw,24px); }
.okr-history .oh-calendar { border-left: 1px solid var(--line); container-type: inline-size; }
.okr-history .oh-range,.okr-history small,.okr-history .oh-read { color: var(--muted); }
.okr-history .oh-range,.okr-history .oh-key,.okr-history small,.okr-history .oh-read { font-size: 12px; }
.okr-history .oh-values { display:flex; flex-wrap:wrap; gap:14px 20px; margin:16px 0; }
.okr-history .oh-values small { display:block; }
.okr-history .oh-values strong { font-size:22px; margin-right:2px; }
.okr-history .oh-values i { display:inline-block; width:12px; height:3px; margin-right:5px; vertical-align:middle; }
.okr-history .oh-plots svg { width:100%; display:block; }
.okr-history .oh-plots text { font-size:11px; fill:var(--muted); }
.okr-history .oh-read { display:flex; justify-content:flex-end; align-items:center; gap:8px; }
.okr-history :is(input,select) { min-width:0; width:auto; }
.okr-history .oh-dates { display:flex; align-items:center; flex-wrap:wrap; gap:4px; margin:8px 0; }
.okr-history .oh-nav { margin:12px 0 6px; }
.okr-history .oh-nav :is([data-prev],[data-next]) { border:0; font-size:21px; padding:2px 8px; }
.okr-history .oh-key { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:10px; color:var(--muted); }
.okr-history .oh-pass { color:var(--green); }
.okr-history .oh-fail { color:var(--red); }
.okr-history :is(.oh-week,.oh-days) { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); }
.okr-history .oh-week { padding:7px 0; border-bottom:1px solid var(--line); color:var(--muted); font-size:12px; }
.okr-history .oh-week span { padding-left:5px; }
.okr-history .oh-days { grid-auto-rows:minmax(82px,auto); }
.okr-history button.oh-day { display:flex; flex-direction:column; align-items:stretch; gap:3px; min-width:0;
  background:white; color:var(--ink); opacity:1; border:0; border-bottom:1px solid var(--line); border-radius:0; text-align:left; padding:4px; font-weight:400; }
.okr-history .oh-day:hover:enabled { background:#f6f7f8; }
.okr-history .oh-day[aria-pressed=true] { background:#f1f3f5; box-shadow:inset 0 -2px var(--blue-dark); }
.okr-history .oh-num { align-self:flex-start; font:500 16px/24px "Segoe UI",var(--font); padding:0 3px; }
.okr-history .today .oh-num { background:var(--blue-dark); color:white; border-radius:50%; min-width:24px; text-align:center; }
.okr-history .adjacent .oh-num { color:#a1a7af; }
.okr-history .oh-event { display:flex; flex-wrap:wrap; align-items:baseline; gap:0 3px; position:relative; padding-left:9px; font-size:11px; line-height:1.35; overflow-wrap:anywhere; }
.okr-history .oh-event::before { content:""; position:absolute; width:5px; height:5px; border-radius:50%; left:1px; top:5px; background:currentColor; }
.okr-history .oh-event.oh-fail::before { border-radius:1px; transform:rotate(45deg); }
.okr-history .oh-event span,.okr-history .oh-missing { color:var(--muted); }
.okr-history .oh-event b { font-size:12px; }
.okr-history .oh-detail { margin-top:16px; }
.okr-history .oh-detail table { width:100%; border-collapse:collapse; font-size:13px; margin-top:8px; }
.okr-history .oh-detail :is(th,td) { padding:6px; border-bottom:1px solid var(--line-soft); text-align:right; }
.okr-history .oh-detail th:first-child { text-align:left; }
.okr-history .oh-detail thead { background:#f5f6f7; }
.okr-history .oh-status { padding:8px 20px; color:var(--muted); }
@media(max-width:850px){
  .okr-history .oh-layout { grid-template-columns:1fr; }
  .okr-history .oh-calendar { border-left:0; border-top:1px solid var(--line); }
}
@container(max-width:460px){
  .okr-history button.oh-day { padding-inline:2px; }
  .okr-history .oh-event { display:block; padding-left:0; }
  .okr-history .oh-event::before { display:none; }
  .okr-history .oh-event b { display:block; }
  .okr-history .oh-event.oh-fail b { text-decoration:underline dotted; text-underline-offset:2px; }
}
