:root {
  --ink: #17253e;
  --muted: #69768a;
  --blue: #274e9a;
  --orange: #ca713c;
  --green: #21846b;
  --line: #e4e8ef;
  --surface: #fff;
  --bg: #f7f8fb;
  --radius: 18px;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled,
input:disabled,
select:disabled {
  cursor: wait;
  opacity: 0.55;
}
button,
select,
input {
  min-height: 44px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #5c86d6;
  outline-offset: 4px;
}
button {
  border: 0;
  background: none;
  color: inherit;
}
a {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(34px, 4.3vw, 54px);
  letter-spacing: -2px;
  line-height: 1.1;
  font-weight: 650;
}
h2 {
  font-size: 24px;
  letter-spacing: -0.6px;
  line-height: 1.3;
  font-weight: 650;
}
h3 {
  font-size: 16px;
  font-weight: 620;
}
p {
  line-height: 1.6;
}
.wrap {
  max-width: 1240px;
  margin: auto;
  padding-left: 40px;
  padding-right: 40px;
}
.site-header {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  font-size: 23px;
  letter-spacing: -0.4px;
  font-weight: 700;
}
.brand-name {
  font-style: normal;
}
.market {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.market-divider {
  margin: 0 3px;
  color: #c6cdd8;
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}
.intro {
  padding: 45px 0 34px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 700;
  color: #7a879b;
  margin-bottom: 13px;
}
.lead {
  margin-top: 15px;
  font-size: 17px;
  color: var(--muted);
}
.query-panel {
  padding: 28px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 5px 20px #17253e03;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.panel-heading h2 {
  font-size: 17px;
  letter-spacing: -0.2px;
}
.timezone-control {
  display: grid;
  gap: 4px;
  font-size: 11px;
  color: var(--muted);
}
.timezone-control select {
  max-width: 160px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  padding: 6px 8px;
}
#search-form {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 16px;
  align-items: end;
  margin-top: 24px;
}
.field {
  min-width: 0;
}
.field label,
.extension-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}
.field label span {
  font-size: 10px;
  color: #7b8799;
  font-weight: 400;
  margin-left: 5px;
}
.field input,
.field select,
.extension-field select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border: 1px solid #dce2ec;
  border-radius: 9px;
  background: #fff;
  padding: 11px 13px;
  color: var(--ink);
  font-size: 14px;
  height: 47px;
}
/* Match Safari date-control sizing and alignment to the selects. */
.field input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  line-height: normal;
}
.field input[type="date"]::-webkit-date-and-time-value {
  margin: 0;
  min-height: 1.2em;
  text-align: left;
}
.field input[type="date"]::-webkit-datetime-edit {
  padding: 0;
}
.field input[type="date"]::-webkit-calendar-picker-indicator {
  margin: 0;
}
select {
  cursor: pointer;
}
.primary {
  height: 47px;
  border-radius: 9px;
  color: #fff;
  background: #24477f;
  box-shadow: 0 3px 8px #24477f18;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
}
.primary:hover:not(:disabled) {
  background: #1c3967;
}
.primary:active:not(:disabled) {
  transform: translateY(1px);
}
.search-icon {
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
}
.muted {
  color: var(--muted);
  font-size: 12px;
}
.preview-chart {
  height: 180px;
  min-width: 0;
  margin-top: 7px;
}
.window-preview {
  margin-top: 14px;
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
}
.window-preview > summary {
  cursor: pointer;
  color: #24477f;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  min-height: 44px;
  align-content: center;
}
.window-preview > summary:focus-visible {
  outline: 2px solid #24477f;
  outline-offset: 4px;
  border-radius: 3px;
}
.window-preview > .muted,
.preview-description {
  margin: 6px 0;
  font-size: 12px;
  line-height: 1.6;
}
.preview-description {
  color: var(--muted);
}
.results {
  padding-top: 48px;
}
.result-controls {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.extension-field {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-left: 24px;
  border-left: 1px solid var(--line);
}
.extension-field label[for="extension"] {
  font-size: 12px;
  color: var(--ink);
  margin: 0;
}
.extension-field select {
  width: 200px;
  font-size: 12px;
  height: 44px;
  padding: 9px 11px;
}
.results-toolbar {
  display: flex;
  justify-content: flex-start;
  gap: 15px;
  align-items: center;
  margin: 12px 0 16px;
}
.legend {
  font-size: 10px;
  color: #6e7b90;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.key {
  width: 14px;
  height: 2px;
  display: inline-block;
  margin-left: 9px;
  vertical-align: middle;
}
.query-key {
  background: var(--blue);
}
.match-key {
  height: 0;
  border-top: 2px dashed var(--orange);
}
.future-key {
  background: var(--green);
}
#future-legend {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
#detail-also-detected {
  font-size: 12px;
  line-height: 1.65;
  margin-bottom: 16px;
  overflow-wrap: anywhere;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.match-card {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition:
    box-shadow 0.18s,
    border-color 0.18s;
}
.match-card:hover {
  box-shadow: 0 8px 24px #263f6810;
  border-color: #c8d4e7;
}
.card-top {
  padding: 20px 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 10px;
}
.card-rank {
  color: #95a1b2;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 7px;
}
.card-date {
  font-size: 14px;
  font-weight: 620;
  line-height: 1.5;
  letter-spacing: -0.1px;
}
.card-duration {
  font-size: 10px;
  color: #8d98aa;
  margin-top: 3px;
}
.correlation {
  text-align: right;
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}
.correlation strong {
  display: block;
  font-size: 18px;
  color: var(--ink);
  font-weight: 550;
  letter-spacing: -0.4px;
  margin-top: 3px;
}
.match-chart {
  height: 235px;
  width: 100%;
  min-width: 0;
}
.card-bottom {
  padding: 0 20px 17px;
}
.detail-button {
  width: 100%;
  border: 1px solid #e1e7f0;
  border-radius: 8px;
  min-height: 39px;
  font-size: 12px;
  color: #344b70;
  font-weight: 600;
  background: #fbfcfe;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.detail-button:hover {
  background: #eff3fa;
  border-color: #c8d5e9;
}
.availability {
  font-size: 10px;
  color: #8a754e;
  padding: 0 20px 12px;
}
.chart-note {
  font-size: 11px;
  color: #7d899c;
  line-height: 1.65;
  margin-top: 15px;
}
.chart-note > span {
  font-size: 15px;
  margin-right: 4px;
}
.welcome {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 44px 0 18px;
}
.step {
  display: block;
  color: #a6b2c4;
  font-size: 10px;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}
.welcome h3 {
  font-size: 13px;
}
.welcome p {
  font-size: 12px;
  color: #8a96a8;
  margin-top: 6px;
}
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  font-size: 10px;
  color: #919caf;
  padding-top: 50px;
  padding-bottom: 30px;
}
.site-footer > span:first-child {
  font-weight: 600;
  color: #7c899c;
}
.message {
  margin-top: 15px;
  font-size: 12px;
  border: 1px solid #e6d8bd;
  padding: 12px 15px;
  border-radius: 9px;
  color: #735b30;
  background: #fffcf5;
}
.message.error {
  border-color: #efc9c9;
  color: #9b3838;
  background: #fff8f8;
}
.empty-state {
  border: 1px dashed #cfd8e7;
  background: #fff;
  border-radius: 14px;
  padding: 44px 20px;
  text-align: center;
}
.empty-state h3 {
  font-size: 18px;
}
.empty-state p {
  font-size: 13px;
  color: var(--muted);
  max-width: 410px;
  margin: 10px auto 23px;
}
.secondary {
  border: 1px solid #dce3ee;
  border-radius: 8px;
  background: #fff;
  min-height: 40px;
  padding: 0 16px;
  font-size: 12px;
  color: #334b72;
  font-weight: 600;
}
.secondary:hover {
  background: #f3f6fb;
}
.more-matches {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}
.match-count {
  font-size: 12px;
  color: var(--muted);
}
.show-more-matches {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 22px;
  font-size: 13px;
}
.match-card:focus-visible {
  outline: 3px solid #5c86d6;
  outline-offset: 4px;
}
.skeleton {
  animation: shimmer 1.8s infinite;
  background: linear-gradient(100deg, #f0f3f8 20%, #fafbfd 40%, #f0f3f8 60%);
  background-size: 200% 100%;
  border-radius: 9px;
  height: 215px;
  margin: 15px;
}
.loading .match-card {
  pointer-events: none;
}
.loading .detail-button {
  opacity: 0.4;
}
.spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #ffffff55;
  border-top-color: white;
  animation: spin 0.7s linear infinite;
}
.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;
}
.skip {
  position: absolute;
  top: -60px;
  left: 15px;
  background: #fff;
  padding: 12px;
  z-index: 100;
}
.skip:focus {
  top: 10px;
}
[hidden] {
  display: none !important;
}
dialog {
  padding: 0;
  border: 1px solid #dae1ec;
  border-radius: 18px;
  width: min(1060px, calc(100% - 40px));
  max-height: 92dvh;
  color: var(--ink);
  box-shadow: 0 25px 100px #14264245;
}
dialog::backdrop {
  background: #14243b70;
  backdrop-filter: blur(4px);
}
.dialog-shell {
  display: flex;
  flex-direction: column;
  max-height: 90dvh;
}
.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 30px 20px;
  border-bottom: 1px solid #edf0f5;
  flex-shrink: 0;
}
.dialog-header h2 {
  font-size: 23px;
}
.dialog-header .eyebrow {
  margin-bottom: 7px;
}
.icon-button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 15px;
  color: #7a879a;
}
.icon-button:hover {
  background: #f5f7fb;
}
.dialog-content {
  padding: 25px 30px;
  overflow: auto;
  overscroll-behavior: contain;
}
.detail-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  margin-bottom: 25px;
}
.detail-meta > div > span {
  display: block;
  font-size: 10px;
  color: #8a96a8;
  margin-bottom: 7px;
}
.detail-meta strong {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}
.candle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.candle-grid h3 {
  font-size: 12px;
  margin: 15px 0 4px;
}
.candle-chart {
  height: 295px;
  min-width: 0;
}
.dialog-footer {
  padding: 17px 30px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  flex-shrink: 0;
  background: #fff;
}
.dialog-footer .muted {
  font-size: 10px;
}
.busy-label {
  font-size: 12px;
  color: var(--muted);
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
@media (max-width: 900px) {
  .wrap {
    padding-left: 25px;
    padding-right: 25px;
  }
  .cards {
    gap: 12px;
  }
  .card-top {
    padding: 16px 14px 0;
    gap: 8px;
  }
  .card-date {
    font-size: 12px;
  }
  .correlation strong {
    font-size: 16px;
  }
  .correlation {
    font-size: 9px;
  }
  .card-bottom {
    padding-left: 14px;
    padding-right: 14px;
  }
  .legend {
    font-size: 9px;
    gap: 4px;
  }
  .key {
    margin-left: 3px;
    width: 11px;
  }
  .results-toolbar {
    gap: 10px;
  }
  .detail-meta {
    gap: 22px;
  }
}
@media (max-width: 680px) {
  .wrap {
    padding-left: 20px;
    padding-right: 20px;
  }
  .site-header {
    height: 77px;
  }
  .brand {
    font-size: 21px;
  }
  .brand img {
    width: 27px;
    height: 27px;
  }
  .market {
    font-size: 10px;
    gap: 5px;
  }
  .intro {
    padding: 30px 0 27px;
  }
  h1 {
    letter-spacing: -1.4px;
    font-size: 37px;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1.5px;
  }
  .lead {
    font-size: 14px;
    max-width: 300px;
    line-height: 1.7;
  }
  .query-panel {
    padding: 20px 18px;
    border-radius: 14px;
  }
  .panel-heading {
    gap: 10px;
  }
  .panel-heading h2 {
    font-size: 15px;
  }
  #search-form {
    gap: 12px;
    margin-top: 21px;
  }
  .field input,
  .field select {
    font-size: 16px;
    padding: 9px 8px;
  }
  .field label {
    font-size: 10px;
  }
  .field label span {
    font-size: 8px;
    margin-left: 1px;
  }
  .primary {
    grid-column: 1/-1;
    width: 100%;
    margin-top: 2px;
    height: 46px;
  }
  .preview-chart {
    height: 165px;
  }
  .results {
    padding-top: 33px;
  }
  .extension-field {
    gap: 6px;
  }
  .extension-field label[for="extension"] {
    width: 100%;
  }
  .extension-field select {
    width: 100%;
  }
  .results-toolbar {
    display: block;
  }
  .legend {
    font-size: 10px;
    justify-content: flex-start;
    gap: 7px;
    row-gap: 8px;
  }
  .cards {
    grid-template-columns: 1fr;
    gap: 17px;
  }
  .card-top {
    padding: 20px 20px 0;
  }
  .card-date {
    font-size: 15px;
  }
  .card-rank {
    font-size: 9px;
  }
  .correlation {
    font-size: 10px;
  }
  .correlation strong {
    font-size: 21px;
  }
  .match-chart {
    height: 245px;
  }
  .card-bottom {
    padding: 0 20px 19px;
  }
  .detail-button {
    min-height: 44px;
  }
  .welcome {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 30px;
  }
  .welcome > div {
    display: grid;
    grid-template-columns: 24px 1fr;
    column-gap: 8px;
  }
  .step {
    grid-row: 1/3;
    margin: 3px 0;
  }
  .welcome p {
    margin-top: 4px;
    font-size: 11px;
  }
  .welcome h3 {
    font-size: 12px;
  }
  .site-footer {
    font-size: 9px;
    align-items: start;
    padding-top: 36px;
    gap: 15px;
  }
  .site-footer > span:last-child {
    max-width: 175px;
    text-align: right;
  }
  dialog {
    width: calc(100% - 16px);
    border-radius: 14px;
    max-height: 95dvh;
  }
  .dialog-shell {
    max-height: 94dvh;
  }
  .dialog-header {
    padding: 20px 18px 15px;
  }
  .dialog-header h2 {
    font-size: 20px;
  }
  .dialog-content {
    padding: 20px 15px;
  }
  .detail-meta {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .detail-meta > div:first-child {
    grid-column: 1/-1;
  }
  .detail-meta strong {
    font-size: 12px;
  }
  .detail-meta > div > span {
    font-size: 9px;
  }
  .candle-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .candle-chart {
    height: 260px;
  }
  .dialog-footer {
    padding: 13px 18px;
  }
  .dialog-footer .muted {
    max-width: 205px;
    line-height: 1.6;
  }
  .chart-note {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.detail-chart-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}
.detail-chart-controls select {
  border: 1px solid #dce2ec;
  border-radius: 8px;
  background: #fff;
  padding: 8px 12px;
  color: var(--ink);
  font-size: 12px;
  min-width: 125px;
}
.card-duration,
.chart-note {
  color: #69768a;
}
.card-rank {
  color: #748197;
}
.correlation {
  font-size: 11px;
}
.match-card .availability {
  color: #806535;
}
.result-group {
  margin-top: 28px;
}
.result-group .empty-state h4 {
  font-size: 18px;
  margin: 0;
}
.detail-chart-controls {
  margin-top: 0;
}
.candle-chart + .chart-note {
  color: #806535;
}
.candle-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.candle-grid > div {
  min-width: 0;
}
@media (max-width: 680px) {
  .candle-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.include-query {
  display: flex !important;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  cursor: pointer;
  font-size: 11px !important;
  font-weight: 400 !important;
  color: var(--muted);
  margin: 5px 0 0 !important;
}
.include-query input {
  width: 17px;
  height: 17px;
  min-height: 17px;
  margin: 0;
  accent-color: var(--blue);
  cursor: pointer;
}
.include-query:has(input:disabled) {
  opacity: 0.6;
  cursor: default;
}
.extension-field .include-query {
  margin: 0 0 0 8px !important;
}
.query-future-key {
  height: 0;
  border-top: 2px dotted var(--blue);
}
#query-future-legend {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.detail-chart-controls {
  flex-wrap: wrap;
}
.detail-chart-controls .include-query {
  margin: 0 !important;
}
#detail-query-following-note {
  margin: 8px 0 12px;
}
#query-following-note {
  margin-top: 0;
  max-width: 720px;
}
#query-candle-availability {
  color: #806535;
}
@media (max-width: 680px) {
  .extension-field .include-query {
    width: 100%;
    margin: 2px 0 0 !important;
  }
  .detail-chart-controls .include-query {
    flex-basis: 100%;
    justify-content: flex-end;
  }
  .legend {
    row-gap: 10px;
  }
}
.card-top .correlation {
  font-size: 10px;
}
.pattern-status {
  min-width: 0;
  padding: 12px 14px;
  border-left: 3px solid #b8c3d2;
  border-radius: 4px;
  background: #f6f8fb;
  color: #34445b;
  font-size: 14px;
  line-height: 1.5;
}
.pattern-status-label {
  margin: 0 0 5px;
  font-size: 12px;
  color: #526078;
}
.pattern-status-title {
  display: block;
  font-size: 14px;
}
.pattern-status-detail {
  margin: 4px 0 0;
}
.pattern-status-invalidated {
  border-color: #c58060;
  background: #fff5ef;
}
.pattern-status-invalidated .pattern-status-title {
  color: #8a3a20;
}
.candle-grid .pattern-status {
  margin: 10px 0 0;
}
.invalidation-help {
  margin: 12px 0 18px;
  color: #526078;
  font-size: 12px;
  line-height: 1.6;
}
.invalidation-help p {
  margin: 5px 0;
}
.invalidation-help summary {
  cursor: pointer;
  padding: 6px 0;
  min-height: 32px;
}

.market-note {
  color: #6c788c;
  font-size: 12px;
  line-height: 1.6;
  margin: 12px 0 0;
}
@media (max-width: 900px) {
  #search-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #search-form .primary {
    width: 100%;
  }
}
@media (max-width: 680px) {
  #search-form {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Keep missing query observations visible beside the inspector's controls. */
.following-unavailable {
  border-left: 3px solid #bd8a34;
  background: #fff8e9;
  color: #694b1e;
  padding: 12px 14px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.7;
}

.dialog-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
}
.full-view-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  white-space: nowrap;
}
.full-view-link[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}
.dialog-header {
  gap: 18px;
}
.dialog-header > div:first-child {
  min-width: 0;
}
.daily-series #search-form {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr);
}
@media (max-width: 680px) {
  .daily-series #search-form {
    grid-template-columns: minmax(0, 1fr);
  }
  .daily-series #search-form .field,
  .daily-series #search-form .primary {
    grid-column: 1 / -1;
  }
  .dialog-header {
    flex-wrap: wrap;
  }
  .dialog-actions {
    width: 100%;
    justify-content: space-between;
  }
  .dialog-actions .full-view-link {
    min-height: 44px;
  }
}

/* A single heading introduces the result charts. */
#group-C {
  margin-top: 0;
}
.correlation-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.correlation-filter label {
  display: block;
  font-size: 12px;
  font-weight: 600;
}
.correlation-input {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}
.correlation-input input {
  width: 100px;
  border: 1px solid #dce2ec;
  border-radius: 9px;
  padding: 9px 11px;
  background: var(--surface);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.shape-heading {
  font-size: 28px;
  letter-spacing: -0.6px;
  line-height: 1.2;
  margin-bottom: 8px;
}
.shape-heading:focus-visible {
  outline: 3px solid #5c86d6;
  outline-offset: 4px;
}
.shape-summary {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
}
@media (max-width: 1000px) {
  .result-controls {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
  }
  .extension-field {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 16px 0 0;
  }
  .correlation-filter {
    justify-content: space-between;
  }
}
@media (max-width: 680px) {
  .shape-heading {
    font-size: 24px;
  }
  .shape-summary {
    font-size: 13px;
    margin-bottom: 20px;
  }
}
