/* The page's tooltip (src/UI/tooltips.js; human 2026-11-08: "both cursor-on explanations and reminder should have 25 characters
   length limit"): its lines as tooltips.js breaks them, in the page's font at the supplementary-text size (界面 一) */
.page-tooltip {
  position: fixed;
  z-index: 1000;
  max-width: none;
  padding: 5px 8px;
  border: 1px solid #b9c4bd;
  border-radius: 3px;
  background: #fffdf6;
  color: var(--ink, #001e42);
  box-shadow: 0 4px 14px rgba(0, 30, 66, 0.18);
  font-size: var(--font-small);
  font-weight: 400;
  line-height: 1.45;
  white-space: pre;
  pointer-events: none;
}
.page-tooltip[hidden] { display: none; }

/* A notice's text in the lines app.js pushOperationStatus breaks (the same rule) */
.map-notices .status-notice:not(.configuration-status-card) {
  grid-template-columns: max-content max-content;
  justify-self: start;
}
.map-notices .status-notice:not(.configuration-status-card) > span {
  white-space: pre-line;
}

/* 详情展示 off (the 开发设置 menu; human 2026-11-08: "add "详情展示" setting to turn on/off the detailed explanations"): the
   panels' explanatory paragraphs hide (their data and controls stay) */
:root[data-detail-display="off"] :is(.scenario-intro, .display-scenario-note, .scenario-change,
  .display-rules-intro:not(.scoped-rules-choose), .scope-tab-hint) {
  display: none !important;
}

/* the 开发设置 menu under its button (src/UI/explorer-mode-dialog.js) */
.ui-mode-menu-anchor {
  position: relative;
  display: inline-flex;
}
.ui-mode-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 80;
  display: grid;
  min-width: 100%;
  padding: 4px 0;
  border: 1px solid #b9c4bd;
  border-radius: 3px;
  background: #fffdf6;
  box-shadow: 0 8px 24px rgba(0, 30, 66, 0.22);
}
.ui-mode-menu[hidden] { display: none; }
.ui-mode-menu > button {
  min-height: 32px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: var(--ink, #001e42);
  font-size: var(--font-medium);
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}
.ui-mode-menu > button:hover { background: #eef1eb; }
