* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: #00ADE6;
  color: #233c4b;
  font: 17px Arial,sans-serif;
  scrollbar-gutter: stable;
}

header,main {
  width: calc(100% - 24px);
  max-width: 896px;
  margin: 12px auto;
}

header {
  height: 80px;
  border-radius: 14px;
  background: #FFF7E6;
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  align-items: center;
  padding: 8px 14px;
  gap: 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.brand strong {
  color: #176580;
  font-size: 20px;
}

header small {
  display: block;
  font-size: 12px;
}

h1 {
  font-size: 24px;
  text-align: center;
  margin: 0;
}

h1 small {
  font-weight: normal;
  margin-top: 3px;
  font-size: 15px;
}

header button {
  justify-self: end;
  font-size: 14px;
}

header button[hidden] {
  display: block !important;
  visibility: hidden;
}

button {
  font: inherit;
  font-weight: bold;
  border: 1px solid #b9d1de;
  border-radius: 10px;
  background: #edf7fb;
  color: #233c4b;
  padding: 8px 12px;
  cursor: pointer;
  touch-action: manipulation;
}

button:focus-visible,summary:focus-visible {
  outline: 3px solid #b77c15;
  outline-offset: 2px;
}

button:disabled {
  opacity: .45;
  cursor: default;
}

.primary,.green {
  background: #4FAE4F;
  color: #173c20;
  border-color: #4FAE4F;
}

.panel {
  height: max(450px,min(590px,calc(100dvh - 116px)));
  background: white;
  border-radius: 18px;
  padding: 18px 24px;
  text-align: center;
  box-shadow: 0 5px 16px #007aa733;
  overflow: auto;
}

h2 {
  font-size: 24px;
  margin: 0 0 10px;
}

p {
  margin: 8px 0;
  line-height: 1.35;
}

.label {
  font-weight: bold;
  margin: 8px 0 5px;
}

.choices,.report-actions {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 5px 0 8px;
}

.choices button[aria-pressed=true],.trainers button[aria-pressed=true] {
  background: #dceff8;
  border-color: #237da3;
  box-shadow: inset 0 0 0 1px #237da3;
}

.rows button {
  width: 48px;
  font-size: 22px;
  padding: 5px 0;
}

.trainers {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 5px 0 10px;
}

.trainers button {
  width: 110px;
  height: 108px;
  padding: 4px;
  display: grid;
  justify-items: center;
  align-content: center;
  font-size: 15px;
}

.animal-icon img {
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.mascot {
  flex: 0 0 54px;
}

.mascot img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.coach-message {
  flex: 1;
  text-align: left;
  min-width: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
}

.sub {
  color: #526a77;
  font-size: 14px;
}

details {
  margin: 8px 0;
  font-size: 15px;
}

summary {
  cursor: pointer;
  color: #176580;
}

.save {
  display: block;
  margin: 6px;
}

.top {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
}

.progress {
  height: 9px;
  background: #e4edf1;
  border-radius: 10px;
  overflow: hidden;
}

.progress span {
  height: 100%;
  display: block;
  background: #4FAE4F;
}

.instruction {
  text-align: left;
  margin: 0;
}

#game {
  display: grid;
  grid-template-rows: 24px 9px 24px minmax(0,1fr) 68px 18px;
  gap: 7px;
  overflow: visible;
}

.work {
  display: grid;
  grid-template-rows: minmax(50px,.7fr) minmax(0,2fr);
  gap: 8px;
  justify-items: center;
  min-height: 0;
}

.problem {
  font: bold clamp(36px,6vw,58px) Georgia,serif;
  align-self: center;
  white-space: nowrap;
}

.answer {
  display: inline-block;
  min-width: 1.7em;
  border-bottom: 3px solid #4BA8D8;
  color: #176580;
}

.keypad {
  width: min(100%,340px);
  display: grid;
  grid-template-columns: repeat(3,1fr);
  grid-template-rows: repeat(4,minmax(0,1fr));
  gap: 7px;
  min-height: 0;
}

.keypad button {
  padding: 0;
  font-size: 28px;
  min-height: 0;
}

.feedback {
  height: 68px;
  width: 100%;
  max-width: 600px;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: #EDF7FB;
  border-radius: 10px;
}

.feedback.bad {
  background: #fcecec;
  color: #8e3333;
}

.feedback.good {
  background: #e8f5e8;
  color: #286b2c;
}

#hint {
  margin: 0;
}

#continueAnswer {
  font-size: 14px;
  padding: 6px;
  white-space: nowrap;
}

.coach-report {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #EDF7FB;
  border-radius: 12px;
  padding: 8px 14px;
  max-width: 700px;
  margin: auto;
  text-align: left;
}

.coach-report img {
  width: 90px;
  height: 90px;
  object-fit: contain;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 8px;
  margin: 12px 0;
}

.stat {
  background: #EDF7FB;
  border-radius: 10px;
  padding: 10px 4px;
  font-size: 15px;
}

.stat b {
  display: block;
  font-size: 30px;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 8px;
}

.facts span {
  background: #EDF7FB;
  border-radius: 8px;
  padding: 6px 10px;
  font: 20px Georgia,serif;
}

.map {
  display: grid;
  grid-template-columns: repeat(11,minmax(0,1fr));
  gap: 5px;
  max-width: 500px;
  margin: 12px auto;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.1;
}

.map span,.map button {
  font: inherit;
  padding: 6px 0;
  border: 0;
  border-radius: 6px;
  min-width: 0;
}

.map .unseen {
  background: #e5e8eb;
}

.map .error {
  background: #efb3b3;
}

.map .practice {
  background: #f4df9b;
}

.map .provisional {
  background: #9acde6;
}

.map .master {
  background: #b4dfac;
}

.map .outside {
  color: #999;
}

#mapPanel {
  background: white;
}

#mapPanel h2 {
  font-size: 24px;
  margin-bottom: 12px;
}

#mapModes {
  gap: 10px;
  margin: 6px 0 12px;
}

#mapModes button {
  font-size: 18px;
  padding: 8px 16px;
}

#mapDetail {
  font-size: 18px;
  font-weight: 600;
  color: #233c4b;
  margin-top: 12px;
}

#mapPanel .sub {
  font-size: 16px;
  line-height: 1.4;
}

#mapBack {
  margin-top: 10px;
  font-size: 18px;
  padding: 10px 18px;
}

@media (max-width:600px) {
  header {
    height: 94px;
    grid-template-columns: 1fr auto;
    gap: 2px;
    padding: 5px 10px;
  }

  header h1 {
    grid-row: 2;
    grid-column: 1/-1;
    font-size: 20px;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .brand strong {
    font-size: 17px;
  }

  .panel {
    height: max(450px,min(650px,calc(100dvh - 130px)));
    padding: 12px;
  }

  .trainers button {
    width: 24%;
    height: 88px;
    font-size: 12px;
  }

  .animal-icon img {
    width: 58px;
    height: 58px;
  }

  .rows button {
    width: calc(20% - 6px);
  }

  .coach-message {
    font-size: 17px;
  }

  .mascot {
    flex-basis: 40px;
  }

  .mascot img {
    width: 40px;
    height: 40px;
  }

  .stat {
    font-size: 12px;
  }

  .stat b {
    font-size: 25px;
  }

  #game .problem {
    font-size: 40px;
  }

  .map {
    max-width: 100%;
    gap: 3px;
    font-size: 15px;
  }

  .map span,.map button {
    padding: 4px 0;
  }

  #mapModes button {
    font-size: 16px;
    padding: 7px 12px;
  }

  #mapDetail {
    font-size: 16px;
  }

  #mapPanel .sub {
    font-size: 14px;
  }

  #mapBack {
    font-size: 16px;
    padding: 8px 14px;
  }
}

@media (max-height:650px) {
  .panel {
    padding: 10px 14px;
  }

  .trainers button {
    height: 78px;
  }

  .animal-icon img {
    width: 52px;
    height: 52px;
  }

  .label {
    margin-top: 5px;
  }

  .choices {
    margin: 3px 0 5px;
  }

  #game {
    grid-template-rows: 20px 8px 22px minmax(0,1fr) 56px 18px;
    gap: 5px;
  }

  .feedback {
    height: 56px;
  }

  .problem {
    font-size: 40px;
  }

  .keypad button {
    font-size: 24px;
  }

  .mascot img {
    width: 44px;
    height: 44px;
  }
}

/* Compact fixed-height workspace, with unchanged centre line. */

body {
  scrollbar-gutter: auto;
}

header,main {
  margin: 8px auto;
}

main {
  margin-bottom: 8px;
}

.panel {
  height: min(590px,calc(100dvh - 112px));
  overflow: hidden;
  padding: 14px 20px;
}

#setup {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

#setup .label {
  margin: 2px 0 3px;
}

#setup .choices {
  margin: 0 0 3px;
}

#setup .trainers {
  margin: 0 0 4px;
}

#setup .trainers button {
  height: clamp(62px,13vh,108px);
  width: clamp(68px,12vw,110px);
}

#setup .animal-icon img {
  width: clamp(40px,9vh,76px);
  height: clamp(40px,9vh,76px);
}

.settings-columns {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 10px;
  align-items: start;
  margin: 5px 0;
}

.settings-columns>div {
  min-width: 0;
  background: #f5fafc;
  border-radius: 10px;
  padding: 5px 6px;
}

.settings-columns button {
  font-size: clamp(12px,1.8vw,16px);
  padding: 6px 9px;
}

#start {
  align-self: center;
  min-width: 220px;
}

.subtle {
  background: none;
  border: 0;
  color: #176580;
  font-size: 14px;
  padding: 5px 10px;
}

#game {
  overflow: hidden;
}

.work {
  position: relative;
  width: 100%;
  grid-template-rows: minmax(44px,.7fr) minmax(0,2fr);
}

.side-coach {
  position: absolute;
  left: 8px;
  bottom: calc(100% - 5px);
  width: clamp(74px,12vw,110px);
  height: clamp(74px,12vw,110px);
  pointer-events: none;
  z-index: 1;
}

.side-coach img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feedback .mascot {
  display: none;
}

.feedback {
  justify-content: center;
}

.coach-message {
  text-align: center;
}

.map {
  margin: 4px auto;
  max-width: 380px;
  gap: 2px;
}

.map span,.map button {
  padding: 2px 0;
}

#mapPanel p {
  margin: 5px 0;
}

#report .facts {
  margin: 5px;
}

.report-actions {
  margin: 6px 0;
}

#reportDetails p {
  margin: 15px 0;
}

#reportDetails {
  overflow: auto;
}

@media (max-width:600px) {
  header {
    height: 82px;
  }

  header h1 {
    font-size: 18px;
  }

  header h1 small {
    font-size: 12px;
  }

  .panel {
    height: min(650px,calc(100dvh - 106px));
    padding: 10px;
  }

  .settings-columns {
    gap: 4px;
    grid-template-columns: 1.4fr 1fr;
  }

  .settings-columns button {
    padding: 5px 6px;
    font-size: 12px;
  }

  .settings-columns>div {
    padding: 4px;
  }

  .settings-columns .label {
    font-size: 13px;
  }

  .side-coach {
    display: none;
  }

  .feedback .mascot {
    display: block;
  }

  .coach-message {
    text-align: left;
  }

  .rows button {
    width: calc(20% - 6px);
    font-size: 19px;
  }

  .trainers {
    gap: 4px;
  }

  .trainers button {
    max-width: 23%;
  }

  .coach-report img {
    width: 64px;
    height: 64px;
  }

  .stat b {
    font-size: 22px;
  }

  .stats {
    margin: 6px 0;
  }

  .report-actions button {
    font-size: 13px;
    padding: 5px 8px;
  }

  .facts span {
    font-size: 16px;
    padding: 4px 6px;
  }
}

@media (max-height:650px) {
  header {
    height: 66px;
  }

  .brand img {
    height: 48px;
    width: 48px;
  }

  header h1 {
    font-size: 20px;
  }

  .panel {
    height: calc(100dvh - 90px);
    padding: 8px 14px;
  }

  #setup {
    gap: 2px;
  }

  #setup .label {
    font-size: 15px;
  }

  #setup button {
    padding-top: 4px;
    padding-bottom: 4px;
  }

  #setup .rows button {
    font-size: 20px;
  }

  #setup .trainers button {
    height: 70px;
  }

  #setup .animal-icon img {
    height: 46px;
    width: 46px;
  }

  .coach-report img {
    width: 64px;
    height: 64px;
  }

  .stats {
    margin: 6px 0;
  }

  .stat {
    padding: 5px 3px;
  }

  .report-actions button {
    padding: 5px 8px;
  }

  .map {
    max-width: 320px;
    font-size: 12px;
  }

  .map span,.map button {
    padding: 1px 0;
  }
}

@media (max-width:600px) and (max-height:650px) {
  header {
    height: 74px;
  }

  .panel {
    height: calc(100dvh - 98px);
  }

  #setup .trainers button {
    height: 60px;
  }

  #setup .animal-icon img {
    height: 38px;
    width: 38px;
  }

  #setup .label {
    font-size: 13px;
  }

  #setup .choices {
    gap: 3px;
  }

  #setup .rows button {
    font-size: 17px;
    padding: 2px;
  }

  .settings-columns {
    margin: 2px 0;
  }
}

/* All settings on one screen. */

#setup {
  justify-content: flex-start;
  gap: 8px;
  padding-top: 10px;
}

#setup .label {
  margin: 4px 0 5px;
}

#setup .trainers {
  margin: 2px 0 8px;
  gap: 12px;
}

#setup .trainers button {
  height: clamp(58px,12vh,96px);
}

#setup .animal-icon img {
  width: clamp(38px,8.5vh,68px);
  height: clamp(38px,8.5vh,68px);
}

#setup .settings-columns {
  margin: 6px 0 4px;
  align-items: stretch;
  gap: 14px;
}

#setup .settings-columns>div {
  padding: 8px 10px;
}

#setup .choices {
  margin-bottom: 4px;
}

.inline-settings {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 12px;
  background: #f5fafc;
  border-radius: 10px;
  padding: 8px 10px;
  text-align: left;
  font-size: 13px;
}

.inline-settings .save {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  line-height: 1.25;
}

.inline-settings input {
  flex-shrink: 0;
  margin: 0;
  width: 16px;
  height: 16px;
}

.action-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.action-row button {
  min-width: 220px;
}

.action-row #clear {
  min-width: 240px;
  font-size: 14px;
}

.action-row #start {
  margin-top: 0;
}

@media (max-width:600px) {
  .inline-settings {
    grid-template-columns: 1fr;
    gap: 8px;
    font-size: 12px;
    padding: 6px 8px;
  }

  .action-row {
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
  }

  .action-row button,.action-row #clear {
    min-width: 0;
    width: 100%;
  }

  #setup {
    padding-top: 6px;
    gap: 5px;
  }

  #setup .trainers button {
    height: 70px;
  }

  #setup .animal-icon img {
    width: 45px;
    height: 45px;
  }

  #setup .settings-columns {
    gap: 6px;
  }

  #setup .trainers {
    gap: 4px;
  }
}

@media (max-height:650px) {
  #setup {
    padding-top: 5px;
    gap: 5px;
  }

  #setup .trainers button {
    height: 65px;
  }

  #setup .animal-icon img {
    width: 42px;
    height: 42px;
  }

  .inline-settings {
    padding: 6px 8px;
  }

  .action-row {
    margin-top: 6px;
    gap: 8px;
  }

  .action-row button {
    min-width: 210px;
  }

  .action-row #clear {
    min-width: 220px;
    font-size: 13px;
  }
}

.feedback-wrap {
  position: relative;
  width: 100%;
  max-width: 600px;
  justify-self: center;
  align-self: stretch;
}

.feedback-wrap .feedback {
  height: 100%;
  max-width: none;
}

.side-coach img {
  display: block;
}

.action-row #clear {
  background: #B83D3D;
  color: #fff;
  border-color: #A93232;
}

.action-row #clear:hover {
  background: #9E3030;
}

#reportIntro {
  font-size: clamp(16px,2vw,20px);
  font-weight: 600;
  line-height: 1.35;
}

@media (min-width:601px) and (max-width:720px) {
  .side-coach {
    width: 72px;
    height: 72px;
    left: 0;
  }
}

@media (max-width:600px) {
  .action-row #start,.action-row #clear {
    min-width: 0;
  }

  .action-row {
    flex-direction: row;
  }

  .action-row button {
    font-size: 12px;
    padding: 6px;
  }

  .inline-settings {
    grid-template-columns: 1fr 1fr;
  }

  .side-coach {
    display: none;
  }
}

@media (max-height:650px) {
  #setup {
    gap: 2px;
  }

  #setup .label {
    margin: 2px 0 3px;
  }

  #setup .trainers {
    margin: 0 0 3px;
  }

  #setup .settings-columns {
    margin: 2px 0;
  }

  #setup .settings-columns>div {
    padding: 4px 6px;
  }

  #setup .choices {
    margin-bottom: 2px;
  }

  .action-row {
    margin-top: 3px;
  }

  .inline-settings {
    padding: 4px 6px;
  }
}

/* Clearly visible optional training settings. */

#setup .inline-settings {
  background: none;
  padding: 0;
  gap: 12px;
  align-items: stretch;
  grid-template-columns: 1fr 1.2fr;
}

#setup .inline-settings .save {
  background: #EDF7FB;
  border: 1px solid #B9D1DE;
  border-radius: 10px;
  padding: 10px 12px;
  gap: 10px;
  font-size: 15px;
  cursor: pointer;
  min-height: 58px;
}

#setup .inline-settings .save:has(input:checked) {
  background: #DCEFF8;
  border-color: #237DA3;
  box-shadow: inset 0 0 0 1px #237DA3;
}

#setup .inline-settings input {
  width: 22px;
  height: 22px;
  accent-color: #237DA3;
  cursor: pointer;
}

#setup .inline-settings small {
  display: block;
  font-size: 12px;
  font-weight: normal;
  margin-top: 3px;
  color: #526a77;
}

@media (max-height:650px),(max-width:600px) {
  #setup .inline-settings {
    gap: 6px;
  }

  #setup .inline-settings .save {
    padding: 5px 6px;
    gap: 6px;
    font-size: 12px;
    min-height: 46px;
  }

  #setup .inline-settings input {
    width: 18px;
    height: 18px;
  }

  #setup .inline-settings small {
    font-size: 11px;
    margin-top: 1px;
  }
}

@media (max-height:650px) {
  .coach-message {
    font-size: 17px;
  }
}

@media (max-width:380px) {
  .coach-message {
    font-size: 16px;
  }
}

.side-coach img,.mascot img,.coach-report img {
  object-fit: contain;
  object-position: center bottom;
  transition: none;
  animation: none;
}

/* Trainer visibility: preserve original transparent artwork and anchoring. */

.animal-icon img,.side-coach img,.mascot img,.coach-report img {
  filter: saturate(1.15) contrast(1.10) drop-shadow(0 1px 1px rgba(66,39,20,.14));
}

@media (min-width:721px) and (min-height:651px) {
  .side-coach {
    width: 132px;
    height: 132px;
    left: -5px;
  }

  #setup .animal-icon img {
    width: 76px;
    height: 76px;
  }
}

@media (min-width:721px) and (max-height:650px) {
  .side-coach {
    width: 116px;
    height: 116px;
    left: -3px;
  }
}

/* Keep the label inside the fixed trainer tile. */

#setup .trainers button {
  grid-template-rows: minmax(0,1fr) 17px;
  align-content: stretch;
  gap: 2px;
  padding: 4px 4px 5px;
  line-height: 1.1;
  min-width: 0;
}

#setup .trainers .animal-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  width: 100%;
  height: 100%;
}

#setup .trainers .animal-icon img {
  display: block;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

#setup .trainers .animal-name {
  display: block;
  margin: 0;
  line-height: 17px;
  white-space: nowrap;
}

@media (max-width:600px) {
  #setup .trainers button {
    grid-template-rows: minmax(0,1fr) 15px;
    gap: 1px;
    padding: 3px 2px 4px;
  }

  #setup .trainers .animal-name {
    line-height: 15px;
  }
}

.brand > a {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  text-decoration: none;
}

.brand > a:focus-visible {
  outline: 3px solid #b77c15;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Přehledné podrobné výsledky. */
#reportDetails h2 {margin-bottom: 14px;}
#reportDetails .sub {font-size:18px;line-height:1.35;color:#233c4b;font-weight:600;margin:10px 0;}
#reportDetails .sub:empty {display:none;}
#newMaster {background:#e8f5e8;border-radius:10px;padding:10px 12px;}
#newMaster:empty {display:none;}
.detail-stats {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:12px 0;}
.detail-stat {display:flex;flex-direction:column;justify-content:center;gap:4px;padding:10px 5px;border-radius:10px;font-size:16px;font-weight:600;}
.detail-stat strong {font-size:30px;line-height:1.1;}
.detail-stat.master {background:#e8f5e8;color:#286b2c;}
.detail-stat.provisional {background:#dceff8;color:#176580;}
.detail-stat.practice {background:#fff0c8;color:#765300;}
.detail-stat.unseen {background:#e5e8eb;color:#45535b;}
#reportDetails #detailRecommendation {background:#e8f5e8;color:#286b2c;font-size:20px;font-weight:700;border-radius:10px;padding:12px;margin:12px 0;}
.detail-actions {display:flex;justify-content:center;gap:8px;flex-wrap:wrap;}
@media(max-width:600px){.detail-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;margin:8px 0}.detail-stat{font-size:13px;padding:5px}.detail-stat strong{font-size:24px}#reportDetails .sub{font-size:15px;margin:6px 0}#reportDetails #detailRecommendation{font-size:16px;padding:8px;margin:8px 0}}
@media(max-height:650px){#reportDetails h2{margin-bottom:6px}#reportDetails .sub{margin:5px 0}#reportDetails #detailRecommendation{margin:6px 0;padding:7px}.detail-stat{padding:5px}.detail-stats{margin:6px 0}}

/* Legenda používá stejné barvy jako mapa znalostí. */
.map-legend {display:flex;flex-wrap:wrap;justify-content:center;gap:6px 12px;margin:6px auto;font-size:15px;font-weight:600;line-height:1.2;color:#233c4b;}
.legend-item {display:inline-flex;align-items:center;gap:5px;white-space:nowrap;}
.legend-swatch {width:18px;height:18px;border:1px solid #0002;border-radius:4px;flex-shrink:0;}
.legend-swatch.unseen {background:#e5e8eb;}
.legend-swatch.error {background:#efb3b3;}
.legend-swatch.practice {background:#f4df9b;}
.legend-swatch.provisional {background:#9acde6;}
.legend-swatch.master {background:#b4dfac;}
@media(max-width:600px),(max-height:650px){.map-legend{font-size:12px;gap:4px 8px;margin:4px auto}.legend-swatch{width:14px;height:14px}#divisionLegend{font-size:12px}}
