/* Store evaluation comparison and trend controls. */
.se-comparison-workspace.se-local-history-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
.se-local-history-layout .se-comparison-side { display: block; min-width: 0; }
.se-local-history-layout .se-comparison-matrix,
.se-local-history-layout .se-trend-panel { padding: 22px; }
.se-local-history-layout .se-comparison-section-title h4 { font-size: 19px; }
.se-local-history-layout .se-comparison-section-title span { font-size: 13px; line-height: 1.6; }
.se-local-history-layout .se-dimension-tabs { flex-wrap: wrap; }
.se-local-history-layout .se-dimension-tabs button { font-size: 14px; padding: 9px 14px; min-height: 40px; }
.se-local-history-layout .se-comparison-table { min-width: 700px; }
.se-local-history-layout .se-comparison-table th,
.se-local-history-layout .se-comparison-table td { padding: 13px 16px; line-height: 1.6; }
.se-local-history-layout .se-comparison-table thead th { font-size: 14px; }
.se-local-history-layout .se-comparison-table tbody th { font-size: 15px; }
.se-local-history-layout .se-comparison-table td { font-size: 16px; }
.se-local-history-layout .se-main-brand-scope { font-size: 13px; line-height: 1.8; }
.se-local-history-layout .se-trend-legend { font-size: 13px; gap: 16px; line-height: 1.6; }
.se-local-history-layout .se-trend-legend span { font-size: inherit; }
.se-local-history-layout .se-trend-svg { max-width: 1300px; margin: 12px auto; }
.se-local-history-layout .se-trend-svg text { font-size: 9px; }
.se-local-history-scroll-hint { display: none; }
.se-local-history-range {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto minmax(210px, .9fr);
  align-items: end;
  gap: 12px;
  margin: 16px 0 8px;
}
.se-local-choice-field { display: grid; gap: 6px; min-width: 0; }
.se-local-choice-label { color: var(--muted); font-size: 14px; }
.se-local-dropdown { position: relative; min-width: 0; }
.se-local-dropdown[open] { z-index: 40; }
.se-local-dropdown summary {
  display: flex; align-items: center; height: 42px; min-width: 0; padding: 0 36px 0 13px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink);
  list-style: none; cursor: pointer; font-size: 14px; font-weight: 600; position: relative;
}
.se-local-dropdown summary::-webkit-details-marker { display: none; }
.se-local-dropdown summary::after {
  content: ""; position: absolute; right: 14px; top: 18px;
  border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid #36556c;
}
.se-local-choice-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.se-local-dropdown[open] summary { border-color: #86adca; box-shadow: 0 0 0 3px #eaf3fa; }
.se-local-dropdown summary[aria-invalid="true"] { border-color: #be4b22; }
.se-local-dropdown summary:focus-visible,
.se-local-choice-menu button:focus-visible { outline: 2px solid #1688d4; outline-offset: 2px; }
.se-local-choice-menu {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 41;
  display: grid; gap: 3px; max-height: 280px; overflow-y: auto; overscroll-behavior: contain;
  padding: 6px; border: 1px solid var(--line); border-radius: 9px; background: #fff;
  box-shadow: 0 10px 26px rgba(24, 51, 77, .14);
}
.se-local-dropdown:not([open]) .se-local-choice-menu { display: none; }
.se-local-dropdown-up .se-local-choice-menu { top: auto; bottom: calc(100% + 6px); }
.se-local-choice-menu button {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%;
  min-height: 36px; padding: 8px 10px; border: 0; border-radius: 5px;
  background: #fff; color: var(--ink); text-align: left; font-size: 14px; font-weight: 500; cursor: pointer;
}
.se-local-choice-menu button:hover,
.se-local-choice-menu button:focus-visible { background: #f2f7fb; }
.se-local-choice-menu button[aria-selected="true"] { background: #eaf4fc; color: #145589; font-weight: 700; }
.se-local-choice-menu i { font-style: normal; color: #1688d4; }
.se-local-history-range .se-local-history-apply {
  height: 42px; padding: 0 18px; border: 1px solid #235381; border-radius: 7px;
  background: #244d7d; color: #fff; font-size: 14px; white-space: nowrap; cursor: pointer;
}
.se-local-history-range-error { grid-column: 1 / -1; color: #a83d16; font-size: 14px; line-height: 1.5; }
.se-local-history-range-error:empty { display: none; }
.se-local-history-current {
  padding: 9px 10px; border-radius: 6px; background: #eef6fc; color: #235381;
  font-size: 14px; line-height: 1.6; margin: 10px 0;
}
@media (max-width: 980px) {
  .se-local-history-range { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .se-local-history-layout .se-comparison-matrix,
  .se-local-history-layout .se-trend-panel { padding: 16px; }
  .se-local-history-layout .se-dimension-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .se-local-history-layout .se-dimension-tabs button { padding: 10px 6px; font-size: 14px; }
  .se-local-history-layout .se-comparison-section-title h4 { font-size: 18px; }
  .se-local-history-layout .se-trend-svg text { font-size: 16px; }
  .se-local-history-layout .se-trend-legend { font-size: 13px; }
  .se-local-history-scroll-hint { display: block; margin: 10px 0 0; font-size: 13px; color: var(--muted); }
  .se-local-history-range { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

.se-trend-metric-link { border:0; background:transparent; padding:2px 0; text-align:left; cursor:pointer; font:inherit; color:inherit; }
.se-trend-metric-link[aria-pressed="true"] { color:#1688d4; }
.se-local-history-apply[disabled] { opacity:.65; cursor:wait; }

/* Pointer/keyboard inspection is local to the already loaded monthly series. */
.se-trend-plot { position: relative; max-width: 1300px; margin: 12px auto; }
.se-local-history-layout .se-trend-plot .se-trend-svg { margin: 0; max-width: none; touch-action: pan-y pinch-zoom; }
.se-trend-svg:focus-visible { outline: 2px solid #1688d4; outline-offset: 3px; border-radius: 4px; }
.se-trend-crosshair[hidden], .se-trend-tooltip[hidden] { display: none; }
.se-trend-crosshair { pointer-events: none; }
.se-trend-svg .se-trend-crosshair > line { stroke: #6c8298; stroke-width: 1; stroke-dasharray: 3 3; }
.se-trend-svg .se-trend-crosshair circle { stroke: #fff; stroke-width: 2; }
.se-trend-axis-label rect { fill: #244d7d; }
.se-trend-svg .se-trend-axis-label text { fill: #fff; font-size: 8px; font-weight: 600; }
.se-trend-interaction-surface { cursor: crosshair; pointer-events: all; }
.se-trend-tooltip { position: absolute; z-index: 8; width: min(300px, calc(100% - 16px)); box-sizing: border-box;
  padding: 12px 14px; border: 1px solid #ccdce9; border-radius: 9px; background: #fff;
  color: var(--ink); box-shadow: 0 5px 20px rgba(24,51,77,.15); pointer-events: none; font-size: 13px; line-height: 1.5; }
.se-trend-tooltip-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.se-trend-tooltip-heading strong { font-size: 14px; }
.se-trend-tooltip-heading span, .se-trend-tooltip-period, .se-trend-tooltip-metric { color: var(--muted); font-size: 12px; }
.se-trend-tooltip-period { margin-top: 2px; }
.se-trend-tooltip-reference { display: flex; justify-content: space-between; gap: 10px; margin: 8px 0; padding: 7px 8px; border-radius: 5px; background: #eef6fc; color: #235381; }
.se-trend-tooltip-reference strong { white-space: nowrap; }
.se-trend-tooltip-metric { border-top: 1px solid #e4edf4; padding-top: 7px; margin-top: 4px; }
.se-trend-tooltip-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-top: 7px; }
.se-trend-tooltip-row > span { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.se-trend-tooltip-row i { display: inline-block; width: 7px; height: 7px; flex-shrink: 0; border-radius: 50%; }
.se-trend-tooltip-row > strong { white-space: nowrap; font-variant-numeric: tabular-nums; }
.se-trend-announcement { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 640px) {
  .se-trend-tooltip { position: static; width: 100%; margin-top: 10px; box-shadow: none; }
}
