/* V043: scoped to the new controls; no changes to flip layers or timing. */
.shot-log .sl-quantity {
  display:inline-block; max-width:100%; padding:0; margin:0; border:0; border-radius:3px;
  background:transparent; box-shadow:none; color:inherit; font:inherit; line-height:inherit;
  text-align:left; text-transform:none; white-space:pre-line; cursor:pointer; vertical-align:top;
}
.shot-log .sl-quantity:hover:not(:disabled), .shot-log .sl-quantity:focus-visible { outline:1px dotted currentColor; outline-offset:3px; }
.shot-log .sl-quantity:disabled { opacity:1; cursor:default; }
.shot-log .sl-kind-control { margin:10px 0; }
.shot-log .sl-kind-control select { max-width:100%; min-width:240px; width:auto; }
.shot-log .sl-unit-toggle { pointer-events:auto; cursor:pointer; font:inherit; font-size:11px; color:#305d85; border:0; background:#f4f8fc; border-radius:3px; padding:2px 4px; z-index:2; }
.shot-log .sl-unit-toggle:focus-visible { outline:2px solid #305d85; }
.shot-log .sl-unit-converted > [data-field] { visibility:hidden; }
.shot-log .sl-unit-converted > .sl-barrel-conversion { display:none!important; }
.shot-log .sl-unit-readout { position:absolute; inset:0; width:100%; height:100%; margin:0; padding:10px 12px; border:1px solid #bacbe0; border-radius:6px; background:#f4f8fc; color:inherit; font:inherit; line-height:1.5; text-align:left; white-space:pre-line; overflow:auto; cursor:pointer; }
.shot-log .sl-unit-readout[hidden], .shot-log .sl-unit-edit-original[hidden], .shot-log .sl-unit-toggle[hidden] { display:none!important; }
.shot-log .sl-unit-edit-original { display:block; padding:3px 0; border:0; background:transparent; color:#305d85; font:inherit; font-size:11px; text-decoration:underline; cursor:pointer; }
.shot-log .sl-editor-media-inline { margin-top:16px; padding-top:10px; border-top:1px solid #d3ddec; }
.shot-log .sl-editor-media-inline .sl-editor-media-details > summary { cursor:pointer; color:#691919; font-weight:600; padding:8px 0; }
.shot-log .sl-editor-media-inline .sl-gallery { display:flex; flex-wrap:wrap; gap:16px; margin:8px 0 16px; }
.shot-log .sl-editor-media-inline figure { width:130px; margin:0; }
.shot-log .sl-editor-media-inline figure figcaption { font-size:12px; padding-top:5px; }
.shot-log .sl-editor-media-inline .sl-description { max-width:100%; overflow-wrap:anywhere; }
.shot-log .sl-editor-preview-text { margin:10px 0; }
.shot-log .sl-editor-preview-text > summary { cursor:pointer; font-weight:600; }
.shot-log .sl-preview-notes { white-space:pre-line; }
@media (max-width:600px) {
  .shot-log .sl-kind-control select { min-width:0; width:100%; }
  .shot-log .sl-editor-media-inline figure { width:calc(50% - 12px); max-width:130px; }
}

.shot-log .sl-unit-managed > [data-field] { padding-right:82px; }
/* The editor is not a compact table: give its existing flip widget the same
   stable image box without altering the front/back transforms. */
.shot-log .sl-editor-media-inline .sl-image-trigger {
  position:relative; display:block; width:130px; height:130px; max-width:100%;
  padding:0; margin:0 auto; border:0; border-radius:0; background:transparent;
  box-shadow:none; text-decoration:none; perspective:800px;
}

/* Replace the legacy quarter-inch hint; the linked unit control now owns
   converted length display and never overwrites its editable source. */
.shot-log .sl-input-shell.sl-unit-managed [data-barrel-preview] { display:none!important; }
.shot-log .sl-ghost-field .sl-input-shell.sl-unit-managed > [data-field] { padding-right:82px; }
