.em-inspector {
  --em-in-stroke: var(--line, #dfdfd7);
  --em-in-ink: var(--ink, #243c33);
  --em-in-muted: var(--muted, #656e65);
  --em-in-green: var(--accent, #315e4d);
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  color: var(--em-in-ink);
  background: #fffefa;
  border: 1px solid var(--em-in-stroke);
  border-radius: 15px;
  box-shadow: 0 2px 5px rgba(49, 51, 40, .025);
}
.em-inspector *, .em-inspector *::before, .em-inspector *::after { box-sizing: border-box; }
.em-inspector [hidden] { display: none !important; }
.em-inspector button, .em-inspector input, .em-inspector textarea { font: inherit; }
.em-inspector button { cursor: pointer; }
.em-inspector button:focus-visible, .em-inspector input:focus-visible, .em-inspector textarea:focus-visible {
  outline: 2px solid var(--em-in-green);
  outline-offset: 3px;
}
.em-in-heading { display: flex; align-items: center; gap: 10px; padding: 19px 21px 15px; }
.em-in-heading h2 {
  margin: 0;
  font-family: var(--serif, Georgia, 'Times New Roman', serif);
  font-size: 1.37rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.028em;
  color: var(--em-in-ink);
}
.em-in-heading-icon { display: inline-flex; color: var(--em-in-green); }
.em-in-tabs {
  display: flex;
  gap: 3px;
  margin: 0 21px;
  padding: 3px;
  background: #f0f0e9;
  border: 1px solid #e7e7df;
  border-radius: 8px;
}
.em-in-tabs button {
  flex: 1;
  background: transparent;
  min-height: 32px;
  padding: 4px 5px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--em-in-muted);
}
.em-in-tabs button:hover { color: var(--em-in-ink); }
.em-in-tabs button[aria-selected="true"] {
  background: #fffefa;
  border-color: #dedfd5;
  box-shadow: 0 1px 3px #353b2d13;
  color: var(--em-in-green);
  font-weight: 650;
}
.em-in-panel { padding: 19px 21px 18px; }
.em-in-fields { display: grid; gap: 14px; }
.em-in-field { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.em-in-field > span, .em-in-choices legend, .em-in-range label, .em-in-toggle strong, .em-in-cover-name {
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.35;
  color: var(--em-in-ink);
}
.em-in-field input, .em-in-field textarea {
  display: block;
  margin: 0;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 39px;
  padding: 8px 10px;
  color: var(--em-in-ink);
  border: 1px solid #dbdcd3;
  border-radius: 7px;
  background: #fffefa;
  box-shadow: inset 0 1px 2px #555c4f04;
  font-size: .9rem;
  line-height: 1.45;
}
.em-in-transition { position: relative; margin-bottom: 16px; }
.em-in-transition select {
  appearance: none; width: 100%; min-height: 39px; padding: 7px 32px 7px 10px;
  background: #fffefa; color: var(--em-in-ink); border: 1px solid #dbdcd3; border-radius: 7px;
  font: inherit; font-size: .9rem; cursor: pointer;
}
.em-in-transition select:focus-visible { outline: 2px solid var(--em-in-green); outline-offset: 2px; }
.em-in-transition::after {
  content: ''; position: absolute; right: 14px; bottom: 17px; width: 7px; height: 7px;
  border-right: 1.5px solid var(--em-in-muted); border-bottom: 1.5px solid var(--em-in-muted);
  transform: rotate(45deg); pointer-events: none;
}
.em-in-field input::placeholder, .em-in-field textarea::placeholder { color: #757a71; opacity: 1; }
.em-in-field input:hover, .em-in-field textarea:hover { border-color: #b7bdae; }
.em-in-field input:focus-visible, .em-in-field textarea:focus-visible {
  border-color: var(--em-in-green);
  outline: 2px solid color-mix(in srgb, var(--em-in-green) 27%, transparent);
  outline-offset: 0;
}
.em-in-field textarea { min-height: 49px; resize: vertical; }
.em-in-dates { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; }
.em-in-dates input { padding-inline: 8px; font-size: .845rem; color-scheme: light; }
.em-in-dates input::-webkit-calendar-picker-indicator { width: 13px; height: 13px; margin: 0; opacity: .62; cursor: pointer; }
.em-in-cover {
  margin-top: 1px;
  padding-top: 13px;
  border-top: 1px solid var(--em-in-stroke);
  display: flex;
  align-items: center;
  gap: 10px;
}
.em-in-thumbnail {
  width: 44px;
  height: 34px;
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 5px;
  overflow: hidden;
  background: #eaf0e6;
  color: #708570;
}
.em-in-thumbnail img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.em-in-link {
  margin-left: auto;
  min-height: 36px;
  padding: 4px 0 4px 8px;
  border: 0;
  background: transparent;
  color: var(--em-in-green);
  font-size: .875rem !important;
  font-weight: 650 !important;
}
.em-in-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.em-in-choices { border: 0; padding: 0; margin: 0; min-width: 0; }
.em-in-choices legend { display: block; padding: 0; margin-bottom: 9px; }
.em-in-choice {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 7px 10px 7px 7px;
  margin-top: 5px;
  border: 1px solid #e1e2d8;
  border-radius: 8px;
  color: var(--em-in-ink);
  cursor: pointer;
}
.em-in-choice:first-of-type { margin-top: 0; }
.em-in-choice:hover { border-color: #adb7a8; }
.em-in-choice.is-selected { border-color: #799385; background: #f0f4ed; }
.em-in-choice input, .em-in-toggle input { opacity: 0; position: absolute; width: 1px; height: 1px; }
.em-in-choice:has(input:focus-visible), .em-in-toggle:has(input:focus-visible) {
  outline: 2px solid var(--em-in-green);
  outline-offset: 2px;
}
.em-in-choice-text { display: grid; gap: 2px; min-width: 0; }
.em-in-choice-text strong { font-weight: 600; font-size: .9rem; line-height: 1.25; overflow-wrap: anywhere; }
.em-in-choice-text small, .em-in-note { font-size: .81rem; line-height: 1.35; color: var(--em-in-muted); }
.em-in-radio {
  margin-left: auto;
  display: grid;
  place-content: center;
  flex: none;
  width: 16px;
  height: 16px;
  border: 1px solid #b4b9ad;
  border-radius: 50%;
}
.em-in-radio svg { opacity: 0; stroke-width: 2.7; }
.em-in-choice.is-selected .em-in-radio { background: var(--em-in-green); border-color: var(--em-in-green); color: white; }
.em-in-choice.is-selected .em-in-radio svg { opacity: 1; }
.em-in-theme-preview {
  display: grid;
  place-content: center;
  width: 48px;
  height: 36px;
  flex: none;
  border-radius: 4px;
  font: 500 1.2rem Georgia, serif;
  letter-spacing: -.07em;
}
.em-in-theme.evergreen .em-in-theme-preview { background: linear-gradient(110deg, #354739, #64745c); color: #f4f0da; }
.em-in-theme.ivory .em-in-theme-preview { background: linear-gradient(110deg, #e5d4b4, #f5eddc); color: #655339; }
.em-in-theme.twilight .em-in-theme-preview { background: linear-gradient(110deg, #313747, #59657d); color: #edecf0; }
.em-in-track-icon { width: 30px; height: 32px; display: grid; place-items: center; border-radius: 5px; background: #e7ece1; color: #4c684f; flex: none; }
.em-in-track-icon.track-1 { background: #e6ebeb; color: #4c6870; }
.em-in-track-icon.track-2 { background: #f1e8da; color: #806647; }
.em-in-none { min-height: 34px; border-color: transparent; padding: 6px 10px; font-size: .875rem; }
.em-in-upload {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; min-height: 37px; margin-top: 8px;
  font-size: .875rem !important; font-weight: 600 !important;
  background: transparent; border: 1px solid #bcc8b9; border-radius: 7px; color: var(--em-in-green);
}
.em-in-upload:hover { background: #edf2e9; }
.em-in-divider { margin: 17px 0; border-top: 1px solid var(--em-in-stroke); }
.em-in-range + .em-in-range { margin-top: 12px; }
.em-in-range > div { display: flex; align-items: center; justify-content: space-between; }
.em-in-range output { font-size: .81rem; color: var(--em-in-muted); font-variant-numeric: tabular-nums; }
.em-in-range input {
  display: block; width: 100%; height: 21px; margin: 5px 0 0;
  appearance: none; -webkit-appearance: none; cursor: pointer; background: transparent;
}
.em-in-range input::-webkit-slider-runnable-track {
  border-radius: 5px; height: 4px;
  background: linear-gradient(to right, var(--em-in-green) var(--em-in-fill), #dfe4d9 var(--em-in-fill));
}
.em-in-range input::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%;
  background: var(--em-in-green); border: 2px solid #fffefa; box-shadow: 0 0 0 1px var(--em-in-green);
}
.em-in-range input::-moz-range-track { border-radius: 5px; height: 4px; background: #dfe4d9; }
.em-in-range input::-moz-range-progress { background: var(--em-in-green); height: 4px; border-radius: 5px; }
.em-in-range input::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; border: 2px solid white; background: var(--em-in-green); }
.em-in-note { margin: 5px 0 0; }
.em-in-toggle {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 36px; margin-top: 9px; cursor: pointer;
}
.em-in-toggle strong { font-weight: 500; }
.em-in-switch { width: 31px; height: 18px; border-radius: 20px; padding: 3px; flex: none; background: #afb6a9; }
.em-in-switch::after { content: ''; display: block; width: 12px; height: 12px; background: white; border-radius: 50%; }
.em-in-toggle input:checked + .em-in-switch { background: var(--em-in-green); }
.em-in-toggle input:checked + .em-in-switch::after { transform: translateX(13px); }
@media (max-width: 600px) {
  .em-in-heading { padding: 18px 17px 14px; }
  .em-in-tabs { margin-inline: 17px; }
  .em-in-panel { padding: 16px 17px; }
  .em-in-tabs button { min-height: 38px; }
  .em-in-field input, .em-in-field textarea { font-size: 1rem; min-height: 42px; }
  .em-in-dates input { font-size: 1rem; }
  .em-in-transition select { font-size: 1rem; min-height: 42px; }
  .em-in-link, .em-in-upload, .em-in-none, .em-in-toggle { min-height: 44px; }
}
@media (max-width: 370px) {
  .em-in-dates { grid-template-columns: 1fr; gap: 14px; }
}
