/* v7 inspection controls over the accepted v6 cream/gold shell.
   These two app children never resize the stage, canvas or native panel.
   Input, light rendering and clue text remain owned by the real game. */
html.activity-theme.igg-skin.feicui-ui.playable-v6 #inspection-toolbar {
  position: absolute; left: 44px; top: 76px; z-index: 9;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 28px;
  align-items: center; gap: 6px; width: 474px; height: 38px; margin: 0; padding: 4px;
  box-sizing: border-box; border: 1px solid #d3b16e; border-radius: 10px;
  color: #624722; background: #fff7e7ed;
  box-shadow: inset 0 1px 0 #fffdf4, 0 2px 5px #1f2b222b;
  pointer-events: auto; user-select: none; -webkit-user-select: none;
}

html.activity-theme.igg-skin.feicui-ui.playable-v6 #inspection-toolbar [data-inspect-tool] {
  position: relative; isolation: isolate; display: flex; align-items: center; justify-content: center;
  gap: 5px; min-width: 0; width: 100%; height: 28px; min-height: 28px; margin: 0; padding: 0 10px 1px;
  box-sizing: border-box; border: 0; border-radius: 6px;
  color: #796443; background: transparent; box-shadow: none;
  font: inherit; font-size: 13px; font-weight: 800; line-height: 26px;
  white-space: nowrap; text-shadow: 0 1px 0 #fffcf2;
  cursor: pointer; touch-action: manipulation;
}
html.activity-theme.igg-skin.feicui-ui.playable-v6 #inspection-toolbar [data-inspect-tool]::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  box-sizing: border-box; border: solid transparent; border-width: 1px 16px;
  border-image: url('./assets/igg/btn-cancel.png') 1 45 fill stretch;
  background: none; box-shadow: none; opacity: 1; pointer-events: none;
}
html.activity-theme.igg-skin.feicui-ui.playable-v6 #inspection-toolbar [data-inspect-tool]:is(.is-active, [aria-pressed='true']) {
  color: #fff9e8;
  text-shadow: -1px -1px 0 #9b661c, 1px -1px 0 #9b661c, -1px 1px 0 #9b661c, 1px 1px 0 #9b661c;
}
html.activity-theme.igg-skin.feicui-ui.playable-v6 #inspection-toolbar [data-inspect-tool]:is(.is-active, [aria-pressed='true'])::before {
  border-image-source: url('./assets/igg/btn-confirm.png');
  filter: drop-shadow(0 1px 0 #b4883c38);
}
html.activity-theme.igg-skin.feicui-ui.playable-v6 #inspection-toolbar [data-inspect-tool]:not(:disabled):hover::before {
  filter: brightness(1.06);
}
html.activity-theme.igg-skin.feicui-ui.playable-v6 #inspection-toolbar [data-inspect-tool]:not(:disabled):active {
  transform: translateY(1px);
}
html.activity-theme.igg-skin.feicui-ui.playable-v6 #inspection-toolbar [data-inspect-tool] :is(svg, img) {
  flex: 0 0 15px; width: 15px; height: 15px; object-fit: contain;
}
html.activity-theme.igg-skin.feicui-ui.playable-v6 #inspection-toolbar .inspection-help {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; min-height: 26px; margin: 0; padding: 0;
  box-sizing: border-box; border: 1px solid #c6a15f; border-radius: 50%;
  color: #8b642e; background: linear-gradient(#fffbef, #f2dfb8);
  box-shadow: inset 0 1px 0 #fffdf6;
  font: inherit; font-size: 15px; font-weight: 850; line-height: 24px;
  text-shadow: 0 1px 0 #fff8e3; cursor: pointer; touch-action: manipulation;
}
html.activity-theme.igg-skin.feicui-ui.playable-v6 #inspection-toolbar .inspection-help::before {
  display: none;
}
html.activity-theme.igg-skin.feicui-ui.playable-v6 #inspection-toolbar .inspection-help:not(:disabled):hover {
  color: #6e471b; border-color: #a87b33; background: #fff0c8;
}
html.activity-theme.igg-skin.feicui-ui.playable-v6 #inspection-toolbar button:focus-visible {
  outline: 2px solid #94631f; outline-offset: 2px;
  box-shadow: 0 0 0 3px #fff5d9;
}
html.activity-theme.igg-skin.feicui-ui.playable-v6 #inspection-toolbar button:disabled {
  opacity: .55; cursor: default; filter: grayscale(.7);
}

/* The compact readout ends at y387, leaving the original y395 paging strip clear. */
html.activity-theme.igg-skin.feicui-ui.playable-v6 #inspection-feedback {
  position: absolute; left: 50px; top: 321px; z-index: 8;
  display: flex; flex-direction: column; justify-content: center; gap: 3px;
  width: 464px; height: 66px; margin: 0; padding: 5px 9px;
  box-sizing: border-box; border: 1px solid #d6b675c9; border-radius: 9px;
  color: #654c29; background: #fff7e6e8;
  box-shadow: inset 0 1px 0 #fffdf0bd, 0 2px 5px #213a2c26;
  font-size: 12px; line-height: 16px; text-shadow: 0 1px 0 #fffbef8c;
  pointer-events: none; user-select: none; -webkit-user-select: none;
}
html.activity-theme.igg-skin.feicui-ui.playable-v6 #inspection-feedback .inspection-mode-line {
  flex: 0 0 16px; min-width: 0; margin: 0;
  overflow: hidden; color: #67471e; font-size: 12px; font-weight: 800; line-height: 16px;
  white-space: nowrap; text-overflow: ellipsis;
}
html.activity-theme.igg-skin.feicui-ui.playable-v6 #inspection-feedback .inspection-cues {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px;
  flex: 0 0 19px; min-width: 0; margin: 0; padding: 0;
}
html.activity-theme.igg-skin.feicui-ui.playable-v6 #inspection-feedback .cue {
  display: block; min-width: 0; height: 19px; margin: 0; padding: 0 6px;
  box-sizing: border-box; overflow: hidden; border: 1px solid #d9c394; border-radius: 5px;
  color: #846b43; background: #fff9eec9;
  font-size: 11px; font-weight: 650; line-height: 17px; text-align: center;
  white-space: nowrap; text-overflow: ellipsis;
}
html.activity-theme.igg-skin.feicui-ui.playable-v6 #inspection-feedback .cue:is(.is-active, .is-observed) {
  color: #79521e; border-color: #bd9850; background: #fae8b9;
  box-shadow: inset 0 1px 0 #fff7dd;
}
html.activity-theme.igg-skin.feicui-ui.playable-v6 #inspection-feedback .inspection-note {
  flex: 0 0 11px; min-width: 0; margin: 0;
  overflow: hidden; color: #8f7954; font-size: 10px; font-weight: 400; line-height: 11px;
  white-space: nowrap; text-overflow: ellipsis;
}
html.activity-theme.igg-skin.feicui-ui.playable-v6 #inspection-toolbar.show,
html.activity-theme.igg-skin.feicui-ui.playable-v6 #inspection-feedback.show {
  border-color: #c69a49;
}

/* State may hide either overlay while cutting or while another page owns the frame. */
html.activity-theme.igg-skin.feicui-ui.playable-v6 :is(#inspection-toolbar, #inspection-feedback)[hidden],
html.activity-theme.igg-skin.feicui-ui.playable-v6 #root:not(:is([data-screen='market'], [data-screen='work'], [data-screen='grand'], [data-screen='inspect'])) :is(#inspection-toolbar, #inspection-feedback),
html.activity-theme.igg-skin.feicui-ui.playable-v6 #root:is([data-fc-page='home'], [data-fc-page='growth'], [data-fc-page='areas'], [data-fc-page='hub']) :is(#inspection-toolbar, #inspection-feedback) {
  display: none !important;
}
