.overview-workspace {
  --sector-overdue: #ea8ea9;
  --sector-near: #f0bf7a;
  --sector-important: #b6a2f4;
  --sector-rest: #78cbd0;
  --overview-ink: #edf9f7;
  --overview-muted: #a9c5cc;
  --overview-line: #b4e9f026;
  --overview-ease: cubic-bezier(.22, .76, .2, 1);
}
.overview-workspace .workspace-title { font-size: clamp(36px, 5vw, 66px); }
.overview-workspace .workspace-head {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
}
.overview-text-button { margin-inline-start: -8px; }
.overview-record-button {
  display: grid;
  gap: 7px;
  justify-items: center;
  padding: 2px 6px 4px;
  border: 0;
  border-radius: 22px;
  background: transparent;
  color: #e4faf8;
  font-size: clamp(13px, 2.8vw, 16px);
  font-weight: 720;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.overview-record-button:focus-visible {
  outline: 2px solid #abfff1;
  outline-offset: 3px;
}
.overview-record-orb {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: clamp(66px, 19vw, 92px);
  aspect-ratio: 1;
  border: 1px solid #c1fbffcb;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 29% 14%, #e1fffcd6 0%, #b4fff360 18%, transparent 45%),
    radial-gradient(ellipse at 77% 85%, #cfb3ffbd 0%, #a493f059 23%, transparent 57%),
    conic-gradient(from 28deg, #7dffdc43, #92ccf348, #9b77d381, #54d6d86e, #1372879a, #7dffdc43),
    #153449;
  box-shadow:
    inset 0 1px 5px #f0fffedd,
    inset 0 -3px 9px #b1dbff8c,
    inset 0 0 0 4px #d4fcff24,
    0 5px 16px #020e1baa,
    0 0 29px #6ce2dc46;
  transition: transform 170ms var(--overview-ease), box-shadow 210ms ease;
}
.overview-record-orb::before, .overview-record-orb::after {
  content: '';
  position: absolute;
  border-radius: inherit;
  pointer-events: none;
}
.overview-record-orb::before {
  z-index: -1;
  inset: 5px;
  border: 1px solid #e4ffff58;
  background: linear-gradient(147deg, #e1ffff56, transparent 47% 60%, #c8b3ff42);
}
.overview-record-orb::after {
  inset: 1px;
  background: conic-gradient(from 225deg, transparent 72deg, #efffffcb 124deg, #a9fff82a 164deg, transparent 205deg 255deg, #ead7ffbc 294deg, transparent 330deg);
  -webkit-mask: radial-gradient(circle closest-side, #0000 93%, #000 97%, #0000);
  mask: radial-gradient(circle closest-side, #0000 93%, #000 97%, #0000);
}
.overview-record-orb .icon {
  width: 58%;
  height: 58%;
  color: #ebfffa;
  filter: drop-shadow(0 1px 4px #1c5e75) drop-shadow(0 0 6px #b7ffe891);
}
.overview-record-orb .kg-face { fill-opacity: .38; }
.overview-record-button:active .overview-record-orb { transform: scale(.94); }
@media (hover: hover) {
  .overview-record-button:hover .overview-record-orb {
    transform: translateY(-2px);
    box-shadow: inset 0 1px 5px #f0fffe, inset 0 -3px 9px #b1dbffbc,
      inset 0 0 0 4px #d4fcff32, 0 7px 20px #020e1b9c, 0 0 36px #6ce2dc61;
  }
}
.overview-view, .overview-trends { display: grid; gap: clamp(12px, 2vw, 26px); }
.overview-trends { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }

.analytics-glass {
  position: relative; isolation: isolate; overflow: hidden; min-width: 0;
  color: var(--overview-ink);
  border: 1px solid #b6e5ec62;
  border-radius: clamp(20px, 2.8vw, 32px);
  background:
    radial-gradient(ellipse at 2% -10%, #81cdfb29, transparent 47%),
    radial-gradient(ellipse at 93% 110%, #957fd128, transparent 46%),
    linear-gradient(159deg, #224752d9, #15333feb 43%, #102734ef 82%);
  box-shadow: inset 0 1px 2px #deffff7d, inset 0 0 0 3px #a5e1f00d,
    0 10px 24px #020e1874;
}
.analytics-glass::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none; inset: 3px;
  border-radius: inherit;
  background: linear-gradient(119deg, #ecffff2f, transparent 29% 78%, #c5acff24);
  clip-path: polygon(0 0, 56% 0, 15% 11%, 0 41%, 0 0, 100% 100%, 55% 100%, 88% 90%, 100% 45%, 100% 100%);
}
.analytics-heading { font-size: clamp(20px, 2.5vw, 34px); font-weight: 735; line-height: 1.12; letter-spacing: -.038em; }
.overview-snapshot { padding: clamp(14px, 2.3vw, 35px); }
.overview-snapshot-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .86fr);
  align-items: center; gap: clamp(18px, 6vw, 92px);
  width: min(100%, 1090px); margin-inline: auto;
}
.analytics-dial {
  position: relative; display: grid; place-items: center; isolation: isolate;
  width: min(100%, clamp(242px, 28vw, 423px)); aspect-ratio: 1;
  margin: -12px 0 0; justify-self: center;
}
.analytics-dial-rim, .analytics-dial-face, .analytics-dial-center { position: absolute; border-radius: 50%; }
.analytics-dial-rim {
  inset: 3%; border: 1px solid #baefff67;
  background:
    repeating-conic-gradient(from 6deg, #d8f6ff13 0 1deg, #07253028 1deg 7.5deg),
    radial-gradient(circle, #597b8938 55%, #2146599c 68%, #142e3dd6 69%, #205771b3 70%);
  box-shadow: 0 11px 28px #010e19ad, 0 0 0 4px #bdefff0d, inset 0 1px 2px #edffff78, inset 0 -2px 6px #77a6c76b;
}
.analytics-dial-face {
  inset: 7%; isolation: isolate;
  background: var(--dial-segments, transparent);
  mask-image: radial-gradient(circle closest-side, #0000 66.5%, #000 67% 98.5%, #0000 100%);
  box-shadow: inset 0 1px 3px #edffffb8, inset 0 -3px 4px #15506bc7;
}
.analytics-dial-face::before, .analytics-dial-face::after {
  content: ''; position: absolute; pointer-events: none; inset: 0; border-radius: inherit;
}
.analytics-dial-face::before {
  background:
    radial-gradient(circle closest-side, #060f1b8c 63%, #0c193777 69%, #ebffffc2 73.5%, #fff8 76%, transparent 81% 87%, #153b689c 94%, #82c1e54d 97%, #f5ffffc7 99%, transparent),
    linear-gradient(153deg, #efffff4a, transparent 40% 72%, #d7edff36);
}
.analytics-dial-face::after {
  background: conic-gradient(from 8deg, transparent 8deg, #fff5 33deg, transparent 60deg 135deg, #051a3c88 157deg, #e1fbff66 186deg, transparent 208deg 276deg, #d5faff73 320deg, transparent 352deg);
  mix-blend-mode: soft-light;
}
.analytics-dial-center {
  display: flex; justify-content: center; align-items: center; flex-direction: column; gap: 2px;
  inset: 21%; border: 1px solid #d5f3f773;
  background:
    radial-gradient(ellipse at 32% -6%, #e0fcff45, transparent 36%),
    radial-gradient(ellipse at 68% 115%, #9082d85e, transparent 44%),
    linear-gradient(151deg, #2a4d5ac9, #091f2cfa 60%);
  box-shadow: inset 0 3px 7px #d4f7fb25, inset 0 0 0 4px #b9f4f515, 0 5px 14px #06141ba8;
}
.analytics-dial-center strong {
  max-width: 90%; font-size: clamp(43px, 7.5vw, 94px); font-weight: 685; line-height: .96; letter-spacing: -.064em;
  font-variant-numeric: tabular-nums; color: #f5fffb; text-shadow: 0 3px 18px #a9fff62b;
}
.analytics-dial-center span { color: #b8d5dc; font-size: clamp(13px, 1.35vw, 18px); font-weight: 540; }

.analytics-legend { min-width: 0; }
.analytics-legend dl { margin: 0; }
.analytics-legend-row, .analytics-important-total {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; min-width: 0;
}
.analytics-legend-row { min-height: 49px; padding: 5px 0; border-bottom: 1px solid var(--overview-line); }
.analytics-legend-row[data-tone="overdue"] { --prism: var(--sector-overdue); }
.analytics-legend-row[data-tone="near"] { --prism: var(--sector-near); }
.analytics-legend-row[data-tone="important"] { --prism: var(--sector-important); }
.analytics-legend-row[data-tone="rest"] { --prism: var(--sector-rest); }
.analytics-legend-row dt { display: flex; align-items: center; gap: 11px; font-size: clamp(14px, 1.35vw, 18px); color: #d7e9ed; }
.analytics-legend-row dd, .analytics-important-total strong {
  margin: 0; color: #eefcf7; font-size: clamp(18px, 2.5vw, 27px); font-weight: 675;
  letter-spacing: -.025em; font-variant-numeric: tabular-nums;
}
.analytics-prism {
  display: inline-block; flex: 0 0 11px; width: 11px; height: 11px; border-radius: 4px;
  transform: rotate(12deg);
  background: linear-gradient(133deg, #ffffffe8, transparent 51%, #1a356d60 60%), var(--prism, var(--sector-important));
  box-shadow: inset 0 0 0 1px #ffffff57, 0 2px 7px #050c21a8;
}
.analytics-important-total { margin-top: 11px; color: var(--overview-muted); font-size: clamp(13px, 1.28vw, 16px); }
.analytics-important-total strong { color: #e2d9ff; }

.analytics-chart { display: flex; flex-direction: column; padding: clamp(14px, 2vw, 27px); }
.analytics-chart-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 10px; }
.analytics-chart-head p, .analytics-chart-note { color: var(--overview-muted); font-size: clamp(13px, 1.24vw, 16px); line-height: 1.3; }
.analytics-chart-head p { margin-top: 3px; }
.analytics-chart-total { color: #f1fffa; font-weight: 680; font-size: clamp(25px, 3.2vw, 44px); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.analytics-bars {
  position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: clamp(3px, 1vw, 11px);
  list-style: none; padding: 0; margin: clamp(12px, 1.6vw, 21px) 0 0;
}
.analytics-bars::before {
  position: absolute; content: ''; pointer-events: none; inset: 20px 0 35px;
  background: repeating-linear-gradient(to top, var(--overview-line) 0 1px, transparent 1px 33.333%);
}
.analytics-day { position: relative; display: grid; grid-template-rows: clamp(84px, 9.3vw, 130px) 33px; gap: 2px; min-width: 0; }
.analytics-bars-track { position: relative; display: grid; justify-items: center; align-items: end; padding-top: 18px; }
.analytics-bar { position: relative; display: flex; width: min(69%, 43px); height: var(--bar-height, 0%); flex-direction: column-reverse; border-radius: 6px 6px 3px 3px; }
.analytics-bar i { display: block; min-width: 0; }
.analytics-bar-important {
  height: var(--bar-important, 0%);
  border-radius: inherit;
  background: linear-gradient(137deg, #ece4ffe0, #ab9bf8c7 31%, #6555aedd);
  box-shadow: inset 1px 0 2px #fffdff91, inset -1px 0 2px #4c438a72, 0 3px 9px #0e082e68;
}
.analytics-bar-other {
  height: calc(100% - var(--bar-important, 0%));
  border-radius: inherit;
  background: linear-gradient(137deg, #c4fff2dd, #7dcec8aa 31%, #30717e);
  box-shadow: inset 1px 0 2px #e6fff6aa, inset -1px 0 2px #3a7d8791;
}
.analytics-bar:has(.analytics-bar-other) .analytics-bar-important { border-radius: 0 0 3px 3px; }
.analytics-bar:has(.analytics-bar-important) .analytics-bar-other { border-radius: 6px 6px 0 0; }
.analytics-bar[data-empty]::after {
  content: ''; width: 42%; max-width: 12px; height: 2px; border-radius: 2px; position: absolute; margin-left: 29%;
  background: #badbe069;
}
.analytics-day-total {
  position: absolute; inset: auto -6px calc(100% + 3px);
  color: #dfecf3; font-size: 13px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums;
}
.analytics-day-label {
  display: grid; align-content: center; justify-items: center; gap: 0;
  color: #a9c6cd; font-size: clamp(11px, 1.15vw, 14px); line-height: 1.12; text-transform: capitalize;
}
.analytics-day-label b { font-size: clamp(12px, 1.22vw, 15px); font-weight: 700; }
.analytics-day[data-today] .analytics-day-label {
  border-radius: 7px; color: #defef1; background: #7dcbc52a; box-shadow: inset 0 0 0 1px #a8eee92a;
}
.analytics-chart-note { display: flex; align-items: center; gap: 6px; margin-block-start: 10px; }
.analytics-chart-note strong { color: #dfd7ff; font-variant-numeric: tabular-nums; }

.overview-view[data-enter] .analytics-glass { animation: analytics-panel-in 330ms var(--overview-ease) both; }
.overview-view[data-enter] .analytics-chart { animation-delay: 50ms; }
.overview-view[data-enter] .analytics-dial { animation: analytics-dial-in 460ms var(--overview-ease) both; }
.overview-view[data-enter] .analytics-bar { animation: analytics-bar-in 420ms var(--overview-ease) both; transform-origin: bottom; }
@keyframes analytics-panel-in { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
@keyframes analytics-dial-in { from { opacity: .3; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes analytics-bar-in { from { transform: scaleY(.02); } to { transform: scaleY(1); } }

@media (max-width: 760px) {
  .overview-workspace .workspace-head { margin-block: 4px 10px; gap: 8px; }
  .overview-workspace .workspace-meta { min-height: 24px; margin-block-start: 2px; }
  .overview-snapshot-layout, .overview-trends { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .analytics-dial { width: min(100%, clamp(196px, 61vw, 304px)); margin: 0; }
  .analytics-dial-center strong { font-size: clamp(43px, 12.5vw, 69px); }
  .analytics-legend-row { min-height: 34px; }
  .analytics-important-total { margin-top: 6px; }
  .analytics-legend-row dt { gap: 8px; }
  .analytics-day { grid-template-rows: clamp(80px, 22vw, 107px) 33px; }
}
@media (prefers-reduced-motion: reduce) {
  .overview-view[data-enter] :is(.analytics-glass, .analytics-dial, .analytics-bar) { animation: none; }
  .overview-record-button .overview-record-orb { transition: none; }
  .overview-record-button:is(:hover, :active) .overview-record-orb { transform: none; }
}
