.inspectable-panel {
  width: min(520px, calc(100vw - 32px));
  max-height: min(620px, calc(100dvh - 32px));
  margin: auto;
  padding: 0;
  overflow: hidden;
  color: var(--ivory, #eee7ca);
  background: #24251c;
  border: 1px solid rgba(238, 231, 202, 0.28);
  border-top: 4px solid var(--office-amber, #e0bf67);
  border-radius: 2px;
  box-shadow: 0 28px 80px rgba(8, 9, 6, 0.62);
  font-family: var(--ui-sans, system-ui, sans-serif);
}

.inspectable-panel::backdrop {
  background: rgba(12, 13, 9, 0.68);
}

.inspectable-sheet {
  max-height: calc(100dvh - 36px);
  padding: clamp(22px, 5vw, 38px);
  overflow: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-user-select: text;
  user-select: text;
}

.inspectable-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(238, 231, 202, 0.2);
}

.inspectable-heading { min-width: 0; }

.inspectable-eyebrow {
  margin: 0;
  color: rgba(238, 231, 202, 0.58);
  font: 600 10px/1.3 ui-monospace, "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.12em;
  overflow-wrap: anywhere;
}

.inspectable-title {
  margin: 8px 0 0;
  color: var(--ivory, #eee7ca);
  font-size: clamp(25px, 6vw, 36px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

.inspectable-close {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--ivory, #eee7ca);
  background: rgba(36, 37, 28, 0.94);
  border: 1px solid rgba(238, 231, 202, 0.28);
  border-radius: 1px;
  font: 400 24px/1 var(--ui-sans, system-ui, sans-serif);
  cursor: pointer;
}

.inspectable-close:hover { color: var(--office-amber, #e0bf67); border-color: rgba(224, 191, 103, 0.64); }
.inspectable-close:focus-visible { outline: 2px solid var(--office-amber, #e0bf67); outline-offset: 3px; }

.inspectable-text {
  margin: 22px 0 0;
  color: rgba(238, 231, 202, 0.76);
  font-size: 16px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (max-width: 400px) {
  .inspectable-panel { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); }
  .inspectable-sheet { max-height: calc(100dvh - 24px); padding: 22px 18px 26px; }
  .inspectable-header { gap: 14px; }
  .inspectable-close { flex-basis: 48px; width: 48px; height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .inspectable-panel { animation: none !important; }
}
