:root { color-scheme: light; font: 1rem system-ui, sans-serif; }
body { margin: 0; max-width: 100%; overflow-x: hidden; background: #fff; color: #282522; }
header { padding: 1rem 1.25rem; background: #fff; color: #282522; border-bottom: 1px solid #ddd; } header h1 { display: inline; margin: 0; } header p { display: inline; margin-left: 1rem; } header #site-description { display: block; margin: .45rem 0 0; color: #6f6962; } header a { color: #6f6962; }
main { display: grid; grid-template-columns: 18.75rem minmax(0, 1fr); gap: 0; width: 100%; max-width: 100%; padding: 0; box-sizing: border-box; }
aside { background: white; padding: 1rem; border-right: 1px solid #ddd; align-self: start; } h2 { font-size: 1rem; margin: .2rem 0 .7rem; }
.content { min-width: 0; max-width: 100%; }
details { margin: .4rem 0; } summary { cursor: pointer; font-weight: 600; } .book { display: block; margin: .35rem 0 .35rem 1.2rem; font-weight: 400; }
#metrics { display: grid; gap: .4rem; } label { cursor: pointer; }
.collapse-button { float: right; padding: .2rem .45rem; border: 1px solid #b8afa6; border-radius: .25rem; background: white; color: #6f6962; font-size: .72rem; cursor: pointer; }
.metric-row { display: flex; align-items: center; gap: .25rem; } .metric-row span { flex: 1; } .metric-help, .metric-flip { width: 1.35rem; height: 1.35rem; padding: 0; border: 1px solid #b8afa6; border-radius: 50%; background: white; color: #6f6962; font-size: .75rem; cursor: pointer; } .metric-flip { border: 0; border-radius: 0; font-size: 1rem; }
.chart-box { width: 100%; max-width: 100%; padding: 1rem; background: white; height: min(65vh, 40.625rem); box-sizing: border-box; overflow: hidden; }
.chart-frame { position: relative; }
.radar-title { margin: .4rem 0 0; text-align: center; font-size: 1.1rem; font-weight: 600; }
.authors-clear { margin: .6rem 0 .4rem; }
.prompt-exports { display: grid; gap: .4rem; margin-top: 1rem; }
.prompt-exports button { width: 100%; }
.chart-box canvas { display: block; width: 100% !important; max-width: 100%; cursor: crosshair; }
.radar-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem 1rem; padding: .5rem 2rem .8rem; margin-bottom: .5rem; font-size: .85rem; }
.radar-legend span { display: inline-flex; align-items: center; gap: .35rem; cursor: pointer; pointer-events: auto; user-select: none; }
.radar-legend i { display: inline-block; width: 1.2rem; height: .18rem; }
.radar-tools { display: flex; justify-content: center; gap: .5rem; margin-bottom: .5rem; }
#metrics-reset { display: block; width: 100%; margin-top: .8rem; font-size: .8rem; }
.config-actions { display: grid; gap: .4rem; margin-top: .45rem; }
.config-actions button, .config-actions select { width: 100%; }
#config-presets { display: grid; gap: .35rem; }
.preset-remove { margin-left: .5rem; color: #8b3f35; font-weight: 700; cursor: pointer; }
.table-note-help { width: 1.2rem; height: 1.2rem; padding: 0; border: 1px solid #b8afa6; border-radius: 50%; background: white; color: #6f6962; font-size: .7rem; cursor: pointer; vertical-align: middle; }
.radar-selection { min-height: 1.2rem; margin: .35rem 0; color: #6f6962; font-size: .9rem; }
.axis-help { position: fixed !important; z-index: 100; top: 5vh !important; left: 2vw !important; transform: none; width: 96vw; height: 90vh; max-height: 90vh; overflow: auto; margin: 0; padding: 2rem 2.5rem; border: 1px solid #cfc8c0; border-radius: .625rem; background: #fffdf9; box-shadow: 0 0 0 100vmax #0008, 0 0 2.5rem #0004; color: #6f6962; font-size: 1.05rem; line-height: 1.6; box-sizing: border-box; }
.axis-help #metric-note-close { position: absolute; top: .45rem; right: .65rem; border: 0; background: transparent; font-size: 1.6rem; line-height: 1; color: #6f6962; cursor: pointer; }
.axis-help #metric-note-text { padding-right: 1.5rem; }
.axis-help h2 { margin: 0 0 1rem; font-size: 1.25rem; }
.axis-help p { margin: 0 0 1rem; }
.axis-help p + p { margin-top: 1rem; }
.app-help-link { text-align: right; border-top: 1px solid #e4dfda; padding-top: .8rem; }
.app-help-link button { border: 0; background: transparent; color: #6f6962; text-decoration: underline; cursor: pointer; font: inherit; }
.surface-box, .distance-box { position: relative; width: 100%; max-width: 100%; margin-top: 1.5rem; padding: 1rem; background: white; border-radius: .75rem; height: auto; box-sizing: border-box; overflow: hidden; }
.surface-box canvas, .distance-box canvas { display: block; width: 100% !important; max-width: 100%; }
.mds-box, .neighborhood-box { position: relative; width: 100%; max-width: 100%; margin-top: 1.5rem; padding: 1rem; background: white; border-radius: .75rem; height: 38.75rem; box-sizing: border-box; overflow: hidden; }
.mds-box canvas, .neighborhood-box canvas { display: block; width: 100% !important; max-width: 100%; height: calc(100% - 2rem) !important; }
.mds-controls { display: flex; gap: .35rem; position: absolute; top: .35rem; right: .5rem; z-index: 2; }
.mds-controls button { border: 1px solid #c9c1bb; background: #fff; color: #514a44; border-radius: .25rem; min-width: 2rem; height: 1.8rem; padding: 0 .45rem; cursor: pointer; font: inherit; line-height: 1; }
.mds-controls button:hover { background: #f1ede9; }
.neighborhood-verdict { margin: .35rem 0 .65rem; padding: .45rem .6rem; color: #514a44; line-height: 1.45; }
.neighborhood-verdict { font-size: 1rem; font-weight: 600; }
.reference-select { display: inline-flex; gap: .4rem; align-items: center; margin: 0 .8rem .6rem 0; }
.neighborhood-table { margin: .25rem 0 .8rem; overflow-x: auto; }
.neighborhood-table-title { font-weight: 600; margin: .55rem 0 .15rem; }
.neighborhood-table-meta { color: #756c65; font-size: .85rem; margin-bottom: .35rem; }
.neighborhood-table table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.neighborhood-table th, .neighborhood-table td { padding: .25rem .45rem; border-bottom: 1px solid #e4dfda; text-align: left; }
.neighborhood-table tr.pinned-row { color: #d13c36; font-weight: 600; }
.neighborhood-table th:first-child, .neighborhood-table td:first-child, .neighborhood-table th:last-child, .neighborhood-table td:last-child { white-space: nowrap; }
.bonus-link { display: block; margin: 1.2rem auto 0; border: 0; background: none; color: #6a5a50; text-decoration: underline; cursor: pointer; font: inherit; }
.bonus-links { display: flex; justify-content: center; align-items: center; gap: 0; margin: 1.2rem 0; }
.bonus-links .bonus-link { display: inline; margin: 0; }
.bonus-links .bonus-link + .bonus-link { border-left: 1px solid #aaa29b; border-radius: 0; padding-left: .8rem; margin-left: .8rem; }
.table-download { border: 1px solid #c9c1bb; background: white; color: #514a44; padding: .35rem .65rem; border-radius: .25rem; cursor: pointer; }
.neighborhood-box .table-download { position: static; display: block; margin: .6rem 0 0 auto; }
.reference-select { display: block; margin: 0 0 .5rem; color: #6f6962; font-size: .9rem; }
.evolution-box { width: 100%; max-width: 100%; margin-top: 1.5rem; padding: 1rem; background: white; border-radius: .75rem; box-sizing: border-box; overflow: hidden; }
.evolution-chart { position: relative; width: 100%; height: 16.25rem; margin: 1rem 0 2rem; }
.evolution-chart h3 { margin: 0 0 .4rem; font-size: .95rem; }
.chart-download { appearance: none; position: absolute; top: .7rem; right: .7rem; z-index: 5; width: 2.2rem; height: 2.2rem; padding: .25rem; border: 1px solid #cfc8c0; border-radius: .3125rem; background: white url("download-button.svg") center / 1.35rem no-repeat; color: transparent; cursor: pointer; }
.help { width: 1.25rem; height: 1.25rem; padding: 0; border: 1px solid #8d857d; border-radius: 50%; color: #6f6962; background: white; font-size: .8rem; cursor: help; vertical-align: middle; }
.help-text { position: absolute; top: 3.2rem; left: 1rem; z-index: 10; max-width: 28rem; margin: 0; padding: .7rem .85rem; border: 1px solid #cfc8c0; border-radius: .4375rem; background: #fffdf9; box-shadow: 0 .25rem 1rem #0002; color: #6f6962; font-size: .9rem; }
.chart-download option { color: #282522; background: white; }
.evolution-chart .chart-download { top: 1.9rem; }
.downloads { margin: .5rem 0; display: flex; justify-content: flex-end; gap: .5rem; } button, select { padding: .45rem .8rem; border: 1px solid #cfc8c0; border-radius: .375rem; background: white; cursor: pointer; }
.download-icon { width: 2.2rem; height: 2.2rem; padding: 0; font-size: 1.45rem; line-height: 1; }
dialog { border: 1px solid #cfc8c0; border-radius: .5rem; padding: 1.2rem; box-shadow: 0 .5rem 1.875rem #0002; } dialog::backdrop { background: #0003; } dialog h3 { margin: 0 0 1rem; } .download-choices { display: flex; gap: .5rem; } dialog .cancel { margin-top: 1rem; width: 100%; }
.table-wrap { margin-top: 1.5rem; overflow-x: auto; background: white; padding: 1rem; border-radius: .75rem; box-sizing: border-box; } table { border-collapse: collapse; width: 100%; min-width: 40.625rem; } th, td { border-bottom: 1px solid #e5e1dc; padding: .45rem .6rem; text-align: right; } th:first-child, td:first-child { text-align: left; position: sticky; left: 0; background: white; }
footer { padding: .8rem 1.5rem 1.5rem; color: #6f6962; font-size: .9rem; }
@media (max-width: 50rem) {
  main { display: block; padding: 0; overflow-x: hidden; }
  aside { position: static; width: 100%; box-sizing: border-box; border-right: 0; border-bottom: 1px solid #ddd; }
  .content { width: 100%; max-width: 100%; overflow-x: hidden; }
  header { padding: .85rem 1rem; }
  header h1 { display: block; font-size: 1.35rem; }
  header p { display: block; margin: .35rem 0 0; }
  .chart-box { height: min(70vh, 32rem); padding: .35rem; }
  .radar-legend { padding-left: .5rem; padding-right: .5rem; font-size: .75rem; gap: .3rem .6rem; }
  .radar-tools { flex-wrap: wrap; }
  .mds-box, .neighborhood-box { height: 30rem; padding: .65rem; }
  .reference-select { display: flex; flex-wrap: wrap; align-items: center; }
  .reference-select select { max-width: 100%; min-width: 0; }
  .table-wrap { padding: .65rem; }
  footer { padding: .8rem 1rem 1.2rem; }
}
