/* Tower · leitura compacta da evolução e da composição. */
.dc-card {
  --dc-navy: #10283f;
  --dc-ink: #152a40;
  --dc-muted: #647184;
  --dc-gold: #c5a572;
  --dc-line: #e2daca;
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  background: #fbf8f1;
  color: var(--dc-ink);
  border: 1px solid var(--dc-line);
  border-radius: .875rem;
  padding: .75rem .875rem;
  font-family: Inter, system-ui, sans-serif;
  font-size: .875rem;
  line-height: 1.45;
}
.dc-card *, .dc-card *::before, .dc-card *::after { box-sizing: border-box; }
.dc-card h2, .dc-card p { margin: 0; }
.dc-card button, .dc-card select { font: inherit; -webkit-tap-highlight-color: transparent; }
.dc-card button { cursor: pointer; }
.dc-card button:focus-visible, .dc-card select:focus-visible, .dc-ring-segment:focus-visible { outline: 2px solid #997544; outline-offset: 3px; }
.dc-card button:disabled { opacity: .32; cursor: default; }
.dc-card .icon { width: .875rem; height: .875rem; flex-shrink: 0; }
.dc-card-header { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-width: 0; }
.dc-card-header h2 { font-family: 'Space Grotesk', Inter, sans-serif; font-size: 1.25rem; line-height: 1.2; font-weight: 500; letter-spacing: -.035em; min-width: 0; }
.dc-period-label { color: #6f7c7d; font-size: .75rem; line-height: 1.5; white-space: nowrap; }
.dc-daily-reading { min-width: 0; text-align: right; flex-shrink: 0; }
.dc-reading-caption { display: block; font-size: .75rem; line-height: 1.2; color: var(--dc-muted); }
.dc-daily-reading strong { display: block; font-family: 'Space Grotesk', Inter, sans-serif; font-size: 1.5rem; letter-spacing: -.045em; font-weight: 500; line-height: 1.2; white-space: nowrap; margin-top: .0625rem; }
.dc-delta { display: flex; align-items: center; gap: .25rem; color: #8b7654; font-size: .75rem; line-height: 1.4; margin-top: .125rem !important; }
.dc-delta .icon { width: .75rem; height: .75rem; }
.dc-chart-stage { padding-left: 2.75rem; position: relative; min-width: 0; margin-top: .375rem; }
.dc-y-axis { position: absolute; left: 0; top: 0; bottom: 1.375rem; width: 2.1875rem; pointer-events: none; }
.dc-y-axis span { position: absolute; transform: translateY(-50%); display: block; text-align: right; width: 100%; font-size: .75rem; line-height: 1.2; font-variant-numeric: tabular-nums; color: #76817e; white-space: nowrap; }
.dc-plot { position: relative; height: 9.375rem; min-width: 0; }
.dc-daily-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.dc-gridline { stroke: #e4dfd3; stroke-width: 1; stroke-dasharray: 3 6; }
.dc-gridline.is-zero { stroke: #b4bcb9; stroke-dasharray: none; }
.dc-trend { filter: drop-shadow(0 2px 4px #10283f12); }
.dc-cursor-line { position: absolute; top: 5%; bottom: 5%; width: 1px; background: linear-gradient(180deg,#b2915d05,#b2915d80 28%,#b2915d80 78%,#b2915d05); pointer-events: none; transition: left 130ms ease; }
.dc-marker { position: absolute; transform: translate(-50%,-50%); width: .6875rem; height: .6875rem; border: .125rem solid #fbf8f1; border-radius: 50%; background: #9d7b46; box-shadow: 0 0 0 .25rem #c5a57224; pointer-events: none; transition: left 130ms ease,top 130ms ease; }
.dc-day-hits { position: absolute; inset: 0; display: flex; }
.dc-day-hits button { flex: 1; min-width: 0; border: 0; border-radius: .25rem; padding: 0; background: transparent; }
.dc-day-hits button:hover { background: #c5a57209; }
.dc-day-hits button:focus-visible { outline-offset: -3px; background: #c5a5720b; }
.dc-x-axis { display: flex; height: 1.375rem; padding-top: .25rem; }
.dc-x-axis span { flex: 1; text-align: center; min-width: 0; font: .75rem/1.4 'Space Grotesk', Inter, sans-serif; color: #7c8582; }
.dc-x-axis span.is-active { font-weight: 600; color: #8f6b36; }
.dc-tooltip { position: absolute; z-index: 4; border-radius: .625rem; border: 1px solid #f4efe330; background: #10283ff2; color: #f4efe3; box-shadow: 0 .375rem 1rem #07132225; padding: .625rem .875rem; pointer-events: none; visibility: hidden; opacity: 0; transform: translateY(3px); transition: opacity 120ms ease,transform 120ms ease; }
.dc-tooltip.is-visible { visibility: visible; opacity: 1; transform: translateY(0); }
.dc-tooltip > span { display: block; color: #c8b48e; font-size: .75rem; line-height: 1.4; }
.dc-tooltip > strong { display: block; font: 500 1.125rem/1.4 'Space Grotesk', Inter, sans-serif; letter-spacing: -.025em; }
.dc-tooltip > small { display: block; color: #abb9c7; font-size: .75rem; line-height: 1.4; }
.dc-chart-footer { display: flex; align-items: center; justify-content: space-between; gap: .625rem; border-top: 1px solid var(--dc-line); padding-top: .25rem; }
.dc-chart-footer > span { display: flex; align-items: center; gap: .375rem; color: #69787c; font-size: .75rem; line-height: 1.4; }
.dc-line-key { display: inline-block; width: .875rem; height: .125rem; background: #233d56; border-radius: 1px; flex-shrink: 0; }
.dc-day-selector { display: flex; align-items: center; gap: .125rem; margin-left: auto; }
.dc-day-selector > button { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border: 0; background: #ebe9e6; color: #8c734d; border-radius: .375rem; }
.dc-day-selector > button:hover:not(:disabled) { background: #dfdcd6; }
.dc-day-selector select { border: 0; border-radius: .375rem; background: transparent; font-size: .8125rem; color: #23384e; padding: .1875rem .0625rem .1875rem .25rem; min-height: 1.75rem; }
.dc-mode-switch { display: flex; align-items: center; gap: .125rem; }
.dc-mode-switch button { border: 0; border-radius: .375rem; background: #e9e7e4; color: #6b7681; padding: .25rem .5rem; font-size: .75rem; line-height: 1.5; min-height: 1.75rem; white-space: nowrap; }
.dc-mode-switch button[aria-pressed='true'] { background: var(--dc-navy); color: #f4efe3; }
.dc-composition { container-type: inline-size; container-name: tower-composition; display: grid; grid-template-columns: minmax(0,1fr) 6rem; align-content: start; gap: .625rem; min-height: 18.125rem; }
.dc-composition > .dc-card-header { grid-column: 1 / -1; }
.dc-composition-grid { grid-column: 1 / -1; display: grid; grid-template-columns: 8.5rem minmax(0,1fr); gap: .75rem; align-items: center; min-width: 0; }
.dc-donut-block { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.dc-donut { width: 8.5rem; height: 8.5rem; position: relative; flex-shrink: 0; }
.dc-donut > svg { display: block; width: 100%; height: 100%; overflow: visible; }
.dc-ring-segment { cursor: pointer; transition: opacity 150ms ease,stroke-width 150ms ease,filter 150ms ease; }
.dc-ring-segment:hover, .dc-ring-segment.is-active { stroke-width: 33; filter: drop-shadow(0 2px 4px #142b411c); }
.dc-composition.has-active-component .dc-ring-segment:not(.is-active) { opacity: .3; }
.dc-ring-segment:focus-visible { outline: none; stroke-width: 33; filter: drop-shadow(0 0 3px #142b4180); }
.dc-donut-share { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; pointer-events: none; }
.dc-donut-share > strong { font: 500 1.5rem/1.2 'Space Grotesk', Inter, sans-serif; letter-spacing: -.04em; }
.dc-donut-share > span { font-size: .75rem; color: #758381; line-height: 1.4; }
.dc-donut-center { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: .125rem; min-width: 0; }
.dc-donut-center > span { font-size: .75rem; line-height: 1.3; color: #687884; }
.dc-donut-center > strong { font: 500 1.1875rem/1.35 'Space Grotesk', Inter, sans-serif; letter-spacing: -.04em; white-space: nowrap; }
.dc-component-list { display: flex; flex-direction: column; min-width: 0; }
.dc-component-row { display: grid; grid-template-columns: .25rem minmax(0,1fr) auto; gap: .375rem; align-items: center; width: 100%; min-height: 2.375rem; text-align: left; border: 0; border-bottom: 1px solid #e2daca8a; border-radius: .3125rem; padding: .1875rem .25rem; background: transparent; color: var(--dc-ink); transition: background 140ms ease; }
.dc-component-row:last-child { border-bottom-color: transparent; }
.dc-component-row:hover, .dc-component-row.is-active { background: #e5e2dd; }
.dc-component-color { width: .25rem; height: .875rem; border-radius: .125rem; }
.dc-component-name { font-size: .8125rem; line-height: 1.25; overflow-wrap: normal; }
.dc-component-amount { text-align: right; }
.dc-component-amount strong { display: block; font: 500 .875rem/1.2 'Space Grotesk', Inter, sans-serif; letter-spacing: -.015em; white-space: nowrap; }
.dc-component-amount small { display: block; color: #7d8984; font-size: .75rem; line-height: 1.2; }
.dc-component-row.is-empty { color: #788583; }
.dc-component-row.is-empty .dc-component-color { background: #cdd1cc !important; }
.dc-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@container tower-composition (max-width: 24rem) {
  .dc-composition > .dc-card-header { grid-column: 1; grid-row: 1; align-self: start; display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; padding-bottom: 2.75rem; }
  .dc-composition-grid, .dc-donut-block { display: contents; }
  .dc-donut { grid-column: 2; grid-row: 1; width: 5.5rem; height: 5.5rem; align-self: center; justify-self: center; }
  .dc-donut-share > strong { font-size: 1.25rem; }
  .dc-donut-center { grid-column: 1; grid-row: 1; align-self: end; align-items: flex-start; text-align: left; }
  .dc-donut-center > strong { font-size: 1.375rem; }
  .dc-component-list { grid-column: 1 / -1; grid-row: 2; }
  .dc-component-row { min-height: 2.125rem; padding: .125rem .25rem; }
  .dc-component-name { font-size: .875rem; }
  .dc-component-amount strong { font-size: .9375rem; line-height: 1.1; }
  .dc-component-amount small { line-height: 1.1; }
  .dc-component-amount { display: flex; flex-direction: column; align-items: flex-end; }
}
@media (max-height: 900px) and (min-width: 681px) {
  .dc-plot { height: 8.125rem; }
  .dc-composition { min-height: 16.875rem; }
}
@media (max-width: 680px) {
  .dc-card { padding: .75rem; }
  .dc-card-header { gap: .5rem; }
  .dc-card-header h2 { font-size: 1.1875rem; }
  .dc-daily-reading strong { font-size: 1.375rem; }
  .dc-delta { font-size: .75rem; }
  .dc-chart-stage { padding-left: 2.5rem; }
  .dc-y-axis { width: 2rem; }
  .dc-plot { height: 8.5rem; }
  .dc-day-selector select { font-size: 1rem; }
  .dc-day-selector > button { width: 2rem; height: 2rem; }
  .dc-chart-footer > span { font-size: .75rem; }
  .dc-composition { gap: .375rem; min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .dc-ring-segment, .dc-component-row, .dc-cursor-line, .dc-marker, .dc-tooltip { transition: none; }
}
