/* SHOT-LOGs — deliberately scoped to avoid changing the theme or other plugins. */
.shot-log {
    --sl-accent: #1d4f91;
    --sl-accent-hover: #153b70;
    --sl-accent-contrast: #fff;
    --sl-accent-soft: #eff6ff;
    --sl-accent-soft-hover: #e1edfc;
    --sl-accent-border: #bfd2ea;
    --sl-focus: #2563eb;
    --sl-button-accent: #691515;
    --sl-button-accent-hover: #511010;
    --sl-button-text: #ebc517;
    --sl-button-text-hover: #ffdf4d;
    --sl-button-soft: #faf1f1;
    --sl-button-border: #c8c0c0;
    --sl-button-focus: #bf8d17;
    --sl-text: #1f2937;
    --sl-heading: #0f172a;
    --sl-muted: #64748b;
    --sl-border: #d8dee8;
    --sl-surface: #fff;
    --sl-soft: #f6f8fb;
    color: var(--sl-text);
    width: 100%;
    max-width: 1920px;
    min-width: 0;
    margin: 0 auto;
    line-height: 1.5;
    font-size: 15px;
}
.shot-log *, .shot-log *::before, .shot-log *::after { box-sizing: border-box; }
.shot-log [hidden] { display: none !important; }
.shot-log .sl-edit-navigation { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.shot-log h1, .shot-log h2, .shot-log h3, .shot-log h4 {
    color: var(--sl-heading);
    line-height: 1.3;
    overflow-wrap: anywhere;
}
.shot-log h1 { font-size: 28px; margin: 0 0 18px; }
.shot-log h2 { font-size: 21px; margin: 0 0 16px; }
.shot-log h3 { font-size: 19px; margin: 0 0 12px; }
.shot-log h4 { font-size: 16px; margin: 0 0 12px; }
.shot-log p { margin-top: 0; }
.shot-log a { color: var(--sl-accent); }
.shot-log a:hover { color: var(--sl-accent-hover); }
.shot-log :where(a, button, input, select, textarea, summary):focus-visible {
    outline: 3px solid var(--sl-focus);
    outline-offset: 3px;
}
.shot-log :where(button, .sl-button, .sl-help > summary, .sl-filter-help > summary, .sl-filter-panel-summary, .sl-report-toggle):focus-visible {
    outline-color: var(--sl-button-focus);
}
.shot-log input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.shot-log select, .shot-log textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 41px;
    margin: 0;
    padding: 8px 10px;
    color: var(--sl-text);
    background: #fff;
    border: 1px solid #bfc8d5;
    border-radius: 6px;
    font: inherit;
    line-height: 1.4;
    box-shadow: none;
}
.shot-log input[readonly] { background: #eef2f6 !important; }
.shot-log input[type="file"] { padding: 7px 10px; cursor: pointer; }
.shot-log input[type="checkbox"], .shot-log input[type="radio"] {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    min-width: 17px;
    margin: 3px 0 0;
    accent-color: var(--sl-accent);
}
.shot-log textarea { resize: vertical; min-height: 120px; }
.shot-log fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
.shot-log legend { float: none; width: auto; padding: 0; margin: 0 0 8px; }
.shot-log label { cursor: pointer; }
.shot-log button, .shot-log input, .shot-log textarea, .shot-log select {
    letter-spacing: normal;
    text-transform: none;
}
.shot-log .sl-button,
.shot-log button.sl-button,
.shot-log input[type="submit"].sl-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    width: auto;
    min-height: 41px;
    padding: 9px 16px;
    margin: 0;
    border: 1px solid var(--sl-button-accent);
    border-radius: 6px;
    background: var(--sl-button-accent);
    color: var(--sl-button-text);
    font: inherit;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: none;
    white-space: normal;
}
.shot-log .sl-button:hover, .shot-log .sl-button:focus {
    background: var(--sl-button-accent-hover);
    border-color: var(--sl-button-accent-hover);
    color: var(--sl-button-text-hover);
    text-decoration: none;
}
.shot-log .sl-button.sl-button-secondary {
    color: var(--sl-button-accent);
    background: #fff;
    border-color: var(--sl-button-border);
}
.shot-log .sl-button.sl-button-secondary:hover {
    background: var(--sl-button-soft);
    border-color: var(--sl-button-accent);
}
.shot-log .sl-button:disabled, .shot-log button:disabled {
    opacity: .55;
    cursor: wait;
}
.shot-log .sl-card, .shot-log .sl-filter-panel, .shot-log .sl-editor-row {
    padding: 16px;
    margin: 0;
    min-width: 0;
    border: 1px solid var(--sl-border);
    border-radius: 10px;
    background: var(--sl-surface);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
}
.shot-log .sl-filter-panel { position: relative; z-index: 4; margin-bottom: 18px; }
.shot-log .sl-section-title { margin: 0 0 15px; font-size: 18px; }
.shot-log .sl-filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.shot-log .sl-filter-field, .shot-log .sl-field { min-width: 0; }
.shot-log .sl-field > label,
.shot-log .sl-field-label,
.shot-log .sl-filter-field > span {
    display: block;
    margin: 0 0 5px;
    color: #44526a;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 600;
    overflow-wrap: anywhere;
}
.shot-log .sl-field > label .required, .shot-log .sl-required { color: var(--sl-accent); }
.shot-log .sl-filter-dropdown { position: relative; }
.shot-log .sl-filter-dropdown > summary,
.shot-log .sl-record-details > summary,
.shot-log .sl-shots > summary {
    list-style: none;
    cursor: pointer;
}
.shot-log .sl-filter-dropdown > summary::-webkit-details-marker,
.shot-log .sl-record-details > summary::-webkit-details-marker,
.shot-log .sl-shots > summary::-webkit-details-marker { display: none; }
.shot-log .sl-filter-dropdown > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
    min-height: 41px;
    padding: 8px 11px;
    background: #fff;
    border: 1px solid #bfc8d5;
    border-radius: 6px;
}
.shot-log .sl-filter-dropdown > summary > span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.shot-log .sl-filter-dropdown > summary::after,
.shot-log .sl-shots > summary::after {
    content: "";
    flex: 0 0 7px;
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}
.shot-log .sl-filter-dropdown[open] > summary::after,
.shot-log .sl-shots[open] > summary::after { transform: translateY(2px) rotate(225deg); }
.shot-log .sl-filter-dropdown[open] > summary { border-color: var(--sl-accent); }
.shot-log .sl-filter-options {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 5px);
    z-index: 40;
    max-height: 320px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 5px;
    background: #fff;
    border: 1px solid var(--sl-border);
    border-radius: 7px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .16);
}
.shot-log .sl-filter-option {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    min-height: 37px;
    margin: 0;
    padding: 8px;
    border-radius: 4px;
    overflow-wrap: anywhere;
}
.shot-log .sl-filter-option:hover, .shot-log .sl-filter-option:focus-within { background: var(--sl-accent-soft); }
.shot-log .sl-filter-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-top: 17px;
}
.shot-log .sl-mode-field { display: flex; gap: 18px; flex-wrap: wrap; }
.shot-log .sl-sort-control { flex: 0 1 240px; min-width: 0; max-width: 100%; }
.shot-log .sl-sort-control select { max-width: 100%; }
.shot-log .sl-mode-field legend { font-size: 12px; color: var(--sl-muted); }
.shot-log .sl-mode-choice { display: flex; align-items: flex-start; gap: 8px; }
.shot-log .sl-mode-choice strong { display: block; font-size: 13px; }
.shot-log .sl-mode-choice small {
    display: block;
    max-width: 230px;
    color: var(--sl-muted);
    font-size: 11px;
    line-height: 1.4;
}
.shot-log .sl-help, .shot-log .description {
    margin: 10px 0 0;
    color: var(--sl-muted);
    font-size: 12px;
    line-height: 1.5;
}
.shot-log .sl-form-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}
.shot-log form > .sl-form-actions { margin-top: 18px; }
.shot-log .sl-release-choice {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.45;
}
.shot-log .sl-release-control {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
}
.shot-log .sl-release-control .sl-button { min-height: 34px; padding: 6px 10px; font-size: 12px; }
.shot-log .sl-release-note { display: block; margin-top: 7px; color: var(--sl-muted); font-size: 12px; }
.shot-log .sl-button.sl-button-danger { background: #991b1b; border-color: #991b1b; color: #fff; }
.shot-log .sl-button.sl-button-danger:hover { background: #7f1d1d; border-color: #7f1d1d; }
.shot-log .sl-results-header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin: 0 2px 10px;
}
.shot-log .sl-results-count, .shot-log .sl-page-count { margin: 0; color: var(--sl-muted); font-size: 13px; }
.shot-log .sl-results-count strong { color: var(--sl-text); }
.shot-log .sl-record-list { display: grid; gap: 14px; min-width: 0; }
.shot-log .sl-record { overflow: visible; position: relative; }
.shot-log .sl-record-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
}
.shot-log .sl-caliber { min-width: 0; }
.shot-log .sl-caliber .sl-field-label { margin-bottom: 3px; }
.shot-log .sl-caliber h3 {
    font-size: 22px;
    margin: 0;
    color: var(--sl-accent);
    font-weight: 650;
    line-height: 1.2;
}
.shot-log .sl-identity {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 7px 10px;
    min-width: 0;
    padding-top: 2px;
    font-size: 13px;
}
.shot-log .sl-device-code {
    display: inline-block;
    padding: 3px 8px;
    color: var(--sl-accent);
    background: var(--sl-accent-soft);
    border: 1px solid var(--sl-accent-border);
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .035em;
}
.shot-log .sl-log-id { white-space: nowrap; color: var(--sl-heading); }
.shot-log .sl-series { color: var(--sl-muted); font-size: 12px; white-space: nowrap; }
.shot-log .sl-edit-link { font-size: 12px; }
.shot-log .sl-data-line {
    display: grid;
    gap: 10px 16px;
    margin: 0;
    padding: 11px 0;
    border-top: 1px solid #edf0f4;
}
.shot-log .sl-components-line { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.shot-log .sl-cases-line { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.shot-log .sl-stats-line { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.shot-log .sl-context-line { grid-template-columns: 1.3fr .8fr .8fr 1.3fr 1fr; padding-bottom: 0; }
.shot-log .sl-data-pair { min-width: 0; }
.shot-log .sl-data-pair dt {
    display: block;
    margin: 0 0 4px;
    color: var(--sl-muted);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
.shot-log .sl-data-pair dd {
    display: block;
    padding: 0;
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}
.shot-log .sl-stat .sl-value { font-variant-numeric: tabular-nums; font-weight: 650; }
.shot-log .sl-unit { color: var(--sl-muted); font-size: .83em; font-weight: 400; white-space: nowrap; }
.shot-log .sl-empty { color: #8a94a5; }
.shot-log .sl-shots { position: relative; display: inline-block; }
.shot-log .sl-shots > summary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 42px;
    min-height: 27px;
    margin-top: -3px;
    padding: 2px 8px;
    background: var(--sl-accent-soft);
    border: 1px solid var(--sl-accent-border);
    border-radius: 5px;
    color: var(--sl-accent);
    font-variant-numeric: tabular-nums;
    font-weight: 650;
}
.shot-log .sl-shot-popover {
    position: absolute;
    z-index: 35;
    top: calc(100% + 7px);
    right: 0;
    width: 292px;
    max-width: calc(100vw - 46px);
    padding: 13px;
    background: #fff;
    border: 1px solid var(--sl-border);
    border-radius: 8px;
    box-shadow: 0 8px 26px rgba(15, 23, 42, .17);
}
.shot-log .sl-popover-title {
    padding: 0 0 9px;
    margin: 0 0 8px;
    border-bottom: 1px solid #edf0f4;
    color: var(--sl-heading);
    font-size: 12px;
    font-weight: 650;
}
.shot-log .sl-shot-values {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px 12px;
    max-height: 280px;
    overflow-y: auto;
    padding: 0;
    margin: 0;
    list-style: none;
    overscroll-behavior: contain;
}
.shot-log .sl-shot-values li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin: 0;
    padding: 5px 0;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}
.shot-log .sl-shot-number { color: var(--sl-muted); font-size: 10px; }
.shot-log .sl-calculated-note { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 0; font-size: 11px; color: var(--sl-muted); }
.shot-log .sl-badge { display: inline-block; background: #eef2f6; color: #44526a; border-radius: 4px; padding: 2px 7px; font-size: 11px; }
.shot-log .sl-status-badge { background: var(--sl-accent-soft); color: var(--sl-accent); border: 1px solid var(--sl-accent-border); }
.shot-log .sl-record-details { margin-top: 14px; border-top: 1px solid #e5e9ef; }
/* Reporting belongs to one record; keep its form in the normal document flow. */
.shot-log .sl-report { margin-top: 14px; padding-top: 12px; border-top: 1px solid #e5e9ef; }
.shot-log .sl-report > summary.sl-report-toggle { display: inline-flex; min-height: 34px; padding: 6px 12px; font-size: 12px; list-style: none; }
.shot-log .sl-report > summary.sl-report-toggle::-webkit-details-marker { display: none; }
.shot-log .sl-report[open] > summary.sl-report-toggle { background: var(--sl-button-soft); }
.shot-log .sl-report-panel { margin-top: 12px; max-width: 760px; padding: 14px; border: 1px solid var(--sl-border); border-radius: 7px; background: var(--sl-soft); }
.shot-log .sl-report-context { margin-bottom: 10px; font-size: 12px; color: var(--sl-muted); overflow-wrap: anywhere; }
.shot-log .sl-report-form > label { display: block; margin-bottom: 5px; font-size: 13px; font-weight: 600; }
.shot-log .sl-report-message { min-height: 110px; }
.shot-log .sl-report-help { display: block; margin-top: 6px; font-size: 12px; color: var(--sl-muted); overflow-wrap: anywhere; }
.shot-log .sl-report-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.shot-log .sl-report-panel .sl-error, .shot-log .sl-report-panel .sl-notice { margin-top: 0; }
.shot-log .sl-report-honeypot { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.shot-log .sl-record-details > summary {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 0 0;
    color: var(--sl-button-accent);
    font-weight: 600;
    font-size: 13px;
}
.shot-log .sl-record-details > summary::before {
    content: "+";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 1px solid var(--sl-button-accent);
    border-radius: 50%;
    color: var(--sl-button-accent);
    font-size: 16px;
    line-height: 1;
}
.shot-log .sl-record-details[open] > summary::before { content: "−"; }
.shot-log .sl-detail-content { padding-top: 16px; min-width: 0; }
.shot-log .sl-description {
    max-width: 85ch;
    padding: 0;
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}
.shot-log .sl-description > :first-child { margin-top: 0; }
.shot-log .sl-description > :last-child { margin-bottom: 0; }
.shot-log .sl-description ul, .shot-log .sl-description ol { padding-left: 1.5em; }
.shot-log .sl-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
}
.shot-log .sl-gallery figure { min-width: 0; margin: 0; }
.shot-log .sl-gallery a {
    display: block;
    padding: 5px;
    background: #fafbfc;
    border: 1px solid var(--sl-border);
    border-radius: 6px;
}
.shot-log .sl-gallery img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    margin: 0;
    border-radius: 3px;
}
.shot-log .sl-gallery figcaption { padding: 7px 2px 0; color: var(--sl-muted); font-size: 12px; overflow-wrap: anywhere; }
.shot-log .sl-empty-results { padding: 35px 16px; border: 1px dashed #ccd4e0; border-radius: 10px; text-align: center; color: var(--sl-muted); }
.shot-log .sl-pagination { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 22px; font-size: 13px; }
.shot-log .sl-grid, .shot-log .sl-editor-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 15px; }
.shot-log .sl-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shot-log .sl-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.shot-log .sl-field-wide { grid-column: 1 / -1; }
.shot-log .sl-editor-row { margin-bottom: 16px; }
.shot-log .sl-editor-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.shot-log .sl-editor-heading h2, .shot-log .sl-editor-heading h3 { margin: 0; }
.shot-log .sl-editor-heading input[data-log-id] { max-width: 150px; }
.shot-log .sl-record-meta { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: flex-end; margin: 12px 0; color: var(--sl-muted); font-size: 12px; }
.shot-log .sl-record-meta > label { flex: 0 0 150px; width: 150px; color: #44526a; font-weight: 600; }
.shot-log .sl-record-meta input[data-log-id] { margin-top: 5px !important; }
.shot-log [data-visited-status] { color: var(--sl-muted); font-size: 12px; }
.shot-log .sl-field { position: relative; }
.shot-log .sl-ghost-field.sl-visited input[data-field] { border-color: #8eac96; }
.shot-log .sl-field.sl-inherited input, .shot-log .sl-field.sl-inherited select, .shot-log .sl-field.sl-inherited textarea {
    background: #f5f8fc;
    border-left: 3px solid #8b9db9;
}
/* DIV is an accepted information entry. Actual validation errors stay red. */
.shot-log .sl-field.sl-weight-info input[data-field] {
    border-color: #fffc00;
    box-shadow: 0 0 0 1px #fffc00;
    background-color: rgba(255, 252, 0, .5);
    color: #3d3a00;
}
.shot-log .sl-data-pair.sl-weight-info dd {
    padding: 2px 6px;
    border: 1px solid #fffc00;
    border-radius: 4px;
    background-color: rgba(255, 252, 0, .5);
    color: #3d3a00;
}
.shot-log .sl-field.sl-field-error input,
.shot-log .sl-field.sl-field-error select,
.shot-log .sl-field.sl-field-error textarea,
.shot-log [aria-invalid="true"] {
    border-color: #c73333 !important;
    box-shadow: 0 0 0 1px #c73333 !important;
    background-color: #fff7f7 !important;
}
.shot-log .sl-field.sl-field-error > label { color: #a91d1d; }

/* Compact capture controls keep labels accessible while showing them as ghosts. */
.shot-log .sl-ghost-field > label.sl-screen-reader,
.shot-log .sl-ghost-field > label.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
.shot-log .sl-input-shell { position: relative; min-width: 0; }
.shot-log .sl-editor-row .sl-ghost-field input[data-field] {
    min-height: 38px !important;
    padding: 8px 9px;
    font-size: 13px;
}
.shot-log .sl-ghost-field input::placeholder { color: #65748a; opacity: 1; font-size: 11px; }
.shot-log .sl-editor-row .sl-ghost-field input[data-field]:placeholder-shown { padding-left: 6px; padding-right: 6px; }
.shot-log .sl-input-unit {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    max-width: 82px;
    color: var(--sl-muted);
    font-size: 11px;
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
}
.shot-log .sl-ghost-field.sl-has-unit input[data-field] { padding-right: 42px; }
.shot-log .sl-ghost-field.sl-has-barrel-preview input[data-field] { padding-right: var(--sl-barrel-padding, 42px); }
.shot-log .sl-ghost-field .sl-barrel-conversion { font-size: 10px; }
.shot-log .sl-editor-topline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    min-width: 0;
    margin: 0 0 13px;
    color: var(--sl-muted);
    font-size: 11px;
}
.shot-log .sl-record-key, .shot-log .sl-inline-id {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    margin: 0;
}
.shot-log .sl-record-key { flex: 0 0 auto; }
.shot-log .sl-inline-id { color: var(--sl-heading); font-size: 12px; font-weight: 600; }
.shot-log .sl-editor-topline .sl-inline-id input[data-log-id] {
    width: 10.5ch;
    min-height: 30px;
    padding: 4px 6px;
    font-size: 13px;
    line-height: 1.4;
    font-variant-numeric: tabular-nums;
    appearance: textfield;
    -moz-appearance: textfield;
}
.shot-log .sl-inline-id input[data-log-id]::-webkit-inner-spin-button,
.shot-log .sl-inline-id input[data-log-id]::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
.shot-log .sl-editor-shot-count, .shot-log .sl-inline-statistics { white-space: nowrap; }
.shot-log .sl-inline-statistics { flex: 0 1 auto; font-variant-numeric: tabular-nums; }
.shot-log .sl-source-file {
    flex: 1 1 200px;
    min-width: 0;
    margin-left: auto;
    text-align: right;
    overflow-wrap: anywhere;
    font-size: 11px;
}
.shot-log .sl-editor-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 14px;
    margin-top: 13px;
    font-size: 12px;
}
.shot-log .sl-editor-status [data-visited-status] { font-size: 10px; }
.shot-log .sl-editor-status .sl-release-choice { margin: 0; font-size: 12px; }
.shot-log .sl-editor-status > a { margin-left: auto; font-size: 12px; }
.shot-log .sl-help { margin: 0 0 13px; min-width: 0; }
.shot-log .sl-help > summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 32px;
    padding: 5px 11px;
    border: 1px solid var(--sl-button-border);
    border-radius: 6px;
    color: var(--sl-button-accent);
    background: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    cursor: pointer;
    list-style: none;
}
.shot-log .sl-help > summary::-webkit-details-marker { display: none; }
.shot-log .sl-help > summary::before {
    content: "?";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 11px;
    line-height: 1;
}
.shot-log .sl-help > summary:hover, .shot-log .sl-help[open] > summary { background: var(--sl-button-soft); border-color: var(--sl-button-accent); }
.shot-log .sl-help > div {
    margin-top: 9px;
    padding: 12px 14px;
    border: 1px solid var(--sl-border);
    border-radius: 7px;
    background: var(--sl-soft);
    font-size: 13px;
    overflow-wrap: anywhere;
}
.shot-log .sl-help > div > :last-child { margin-bottom: 0; }
.shot-log .sl-editor-row .sl-editor-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
@supports (container-type: inline-size) {
    .shot-log .sl-editor-row { container-type: inline-size; }
    @container (max-width: 699px) {
        .shot-log .sl-editor-row .sl-editor-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    }
    @container (max-width: 479px) {
        .shot-log .sl-editor-row .sl-editor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        .shot-log .sl-source-file { flex-basis: 100%; text-align: left; }
        .shot-log .sl-inline-statistics { white-space: normal; }
    }
    @container (max-width: 319px) {
        .shot-log .sl-editor-row .sl-editor-grid { grid-template-columns: minmax(0, 1fr); }
    }
}
@supports not (container-type: inline-size) {
    @media (max-width: 800px) {
        .shot-log .sl-editor-row .sl-editor-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    }
    @media (max-width: 600px) {
        .shot-log .sl-editor-row .sl-editor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }
    @media (max-width: 420px) {
        .shot-log .sl-editor-row .sl-editor-grid { grid-template-columns: minmax(0, 1fr); }
        .shot-log .sl-source-file { flex-basis: 100%; text-align: left; }
        .shot-log .sl-inline-statistics { white-space: normal; }
    }
}
.shot-log .sl-notice, .shot-log .sl-error {
    padding: 13px 15px;
    margin: 0 0 17px;
    border: 1px solid #c8d6e7;
    border-left: 4px solid #738eaf;
    border-radius: 6px;
    background: #f4f7fb;
    color: #314963;
    overflow-wrap: anywhere;
}
.shot-log .sl-error, .shot-log .sl-notice-error {
    border-color: #efc5c5;
    border-left-color: #bc2929;
    background: #fff6f6;
    color: #8c1919;
}
.shot-log .sl-notice-success { border-color: #c3dbc7; border-left-color: #4c8058; background: #f3faf5; color: #2c5936; }
.shot-log .sl-notice p:last-child, .shot-log .sl-error p:last-child { margin-bottom: 0; }
.shot-log [data-editor-errors] ul { margin: 8px 0 0; padding-left: 20px; max-height: 220px; overflow-y: auto; }
.shot-log .sl-error-link { padding: 2px 0; margin: 0; background: none; border: 0; color: inherit; font: inherit; text-align: left; text-decoration: underline; cursor: pointer; }
.shot-log .sl-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 18px; }
.shot-log .sl-toolbar h1 { margin: 0; }
.shot-log .sl-table-wrap { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; border: 1px solid var(--sl-border); border-radius: 8px; }
.shot-log table { width: 100%; border-collapse: collapse; margin: 0; font-size: 13px; }
.shot-log th, .shot-log td { padding: 10px 12px; border-bottom: 1px solid #e7ebf0; text-align: left; vertical-align: top; }
.shot-log th { background: #f3f6f9; color: #44526a; font-weight: 600; }
.shot-log tr:last-child td { border-bottom: 0; }
.shot-log .sl-muted { color: var(--sl-muted); }
.shot-log .sl-image-grid, .shot-log .sl-media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.shot-log .sl-media-grid { margin: 16px 0; }
.shot-log .sl-image-slot { padding: 12px; border: 1px solid var(--sl-border); border-radius: 8px; min-width: 0; }
.shot-log .sl-image-slot h3, .shot-log .sl-image-slot h4 { font-size: 14px; margin-bottom: 10px; }
.shot-log [data-image-preview] {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 130px;
    aspect-ratio: 4 / 3;
    margin: 0 0 10px;
    padding: 5px;
    border: 1px dashed #c7d0dd;
    border-radius: 5px;
    background: #f7f9fb;
    color: var(--sl-muted);
    font-size: 12px;
}
.shot-log [data-image-preview] img { display: block; width: 100%; height: 100%; max-height: 200px; object-fit: contain; }
.shot-log .sl-image-slot .sl-form-actions { gap: 6px; }
.shot-log .sl-image-slot .sl-button { padding: 7px 10px; min-height: 36px; font-size: 12px; }
.shot-log [data-image-status] { margin: 8px 0 0; font-size: 12px; line-height: 1.4; color: var(--sl-muted); overflow-wrap: anywhere; }
.shot-log [data-image-status]:empty { display: none; }
.shot-log [data-image-status].sl-image-save-success { color: #27663b; }
.shot-log [data-image-status].sl-image-save-error { color: #a01919; font-weight: 600; }
.shot-log [data-retry-image] { margin-top: 7px; }
.shot-log [data-retry-image][hidden] { display: none !important; }
.shot-log .sl-text-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.shot-log .sl-text-block { min-width: 0; }
.shot-log .sl-language-editor { margin-top: 22px; }
.shot-log details.sl-language-editor { margin-top: 8px; min-width: 0; border: 1px solid var(--sl-border); border-radius: 6px; }
.shot-log details.sl-language-editor > summary { display: flex; align-items: center; gap: 10px; padding: 10px 12px; min-height: 42px; list-style: none; cursor: pointer; font-size: 14px; font-weight: 600; background: #f7f9fb; }
.shot-log details.sl-language-editor > summary::-webkit-details-marker { display: none; }
.shot-log details.sl-language-editor > summary::before { content: "+"; flex: 0 0 16px; text-align: center; color: var(--sl-accent, #1d4f91); font-size: 19px; line-height: 1; }
.shot-log details.sl-language-editor[open] > summary { border-bottom: 1px solid var(--sl-border); }
.shot-log details.sl-language-editor[open] > summary::before { content: "−"; }
.shot-log details.sl-language-editor > summary:focus-visible { outline: 2px solid var(--sl-accent, #1d4f91); outline-offset: -3px; }
.shot-log .sl-language-body { padding: 12px; min-width: 0; }
.shot-log .sl-text-block > label, .shot-log .sl-text-block > h3 { display: block; margin: 0 0 7px; font-size: 14px; font-weight: 600; }
.shot-log [data-text-count] { display: block; margin-top: 5px; color: var(--sl-muted); font-size: 11px; text-align: right; }
.shot-log [data-text-count].sl-over-limit { color: #b02020; font-weight: 700; }
.shot-log .wp-editor-wrap, .shot-log .wp-editor-container, .shot-log .mce-tinymce, .shot-log .mce-container { max-width: 100%; }
.shot-log .wp-editor-wrap textarea.wp-editor-area { border-radius: 0; min-height: 180px; font-family: inherit; }
.shot-log .sl-screen-reader {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
@media (max-width: 1100px) {
    .shot-log .sl-grid, .shot-log .sl-editor-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .shot-log .sl-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .shot-log .sl-stats-line { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .shot-log .sl-shot-popover { left: 0; right: auto; }
}
@media (max-width: 820px) {
    .shot-log .sl-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .shot-log .sl-filter-footer { align-items: stretch; }
    .shot-log .sl-filter-footer > .sl-form-actions { width: 100%; }
    .shot-log .sl-filter-footer > .sl-form-actions > .sl-button { flex: 1; }
    .shot-log .sl-context-line { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .shot-log .sl-toolbar { align-items: stretch; }
    .shot-log .sl-text-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
    .shot-log { font-size: 14px; }
    .shot-log .sl-card, .shot-log .sl-filter-panel, .shot-log .sl-editor-row { padding: 13px; }
    .shot-log .sl-grid, .shot-log .sl-editor-grid, .shot-log .sl-grid-2, .shot-log .sl-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 11px; }
    .shot-log .sl-components-line, .shot-log .sl-cases-line { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .shot-log .sl-record-heading { gap: 10px; }
    .shot-log .sl-identity { gap: 4px 7px; max-width: 48%; }
    .shot-log .sl-series { flex-basis: 100%; text-align: right; }
    .shot-log .sl-caliber h3 { font-size: 21px; }
    .shot-log .sl-data-line { gap: 10px 11px; }
    .shot-log .sl-context-line { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .shot-log .sl-data-pair dd { font-size: 13px; }
    .shot-log .sl-data-pair dt { font-size: 10px; }
    .shot-log .sl-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
    .shot-log .sl-shot-pair { position: relative; }
    .shot-log .sl-shots { position: static; }
    .shot-log .sl-shot-popover { right: auto; left: 0; max-width: min(292px, calc(100vw - 110px)); }
    .shot-log .sl-results-header { gap: 8px; }
    .shot-log .sl-pagination { gap: 9px; }
    .shot-log .sl-pagination .sl-button { padding-left: 10px; padding-right: 10px; }
    .shot-log .sl-editor-heading { align-items: flex-start; }
    .shot-log .sl-mode-field { gap: 11px; width: 100%; }
    .shot-log .sl-mode-choice { flex: 1; }
    .shot-log .sl-mode-choice small { font-size: 10px; }
}
@media (max-width: 420px) {
    .shot-log .sl-filter-grid, .shot-log .sl-grid, .shot-log .sl-editor-grid,
    .shot-log .sl-grid-2, .shot-log .sl-grid-3 { grid-template-columns: minmax(0, 1fr); }
    .shot-log .sl-filter-options { position: static; box-shadow: none; margin-top: 5px; }
    .shot-log .sl-form-actions > .sl-button { width: 100%; }
    .shot-log .sl-report-actions > .sl-button { width: 100%; }
    .shot-log .sl-report-panel { padding: 11px; }
    .shot-log .sl-image-slot .sl-form-actions > .sl-button { width: auto; flex: 1; }
    .shot-log .sl-stats-line { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .shot-log .sl-shot-popover { left: auto; right: 0; max-width: calc(100vw - 52px); }
    .shot-log .sl-device-code { padding: 2px 5px; }
    .shot-log .sl-mode-field { flex-direction: column; }
    .shot-log .sl-mode-choice small { max-width: none; }
    .shot-log .sl-pagination .sl-button { width: auto; }
}
@media (prefers-reduced-motion: no-preference) {
    .shot-log .sl-button { transition: background-color .12s ease, border-color .12s ease; }
}
/* V008 public comparison table. Editing and media-upload screens keep their layout. */
.shot-log.sl-compact-frontend { --sl-adminbar-height: 0px; }
.shot-log.sl-compact-frontend .sl-results-header { flex-wrap: wrap; }
.shot-log .sl-selection-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.shot-log .sl-selection-status { color: var(--sl-muted); font-size: 12px; white-space: nowrap; }
.shot-log .sl-selection-toolbar .sl-button { min-height: 34px; padding: 6px 10px; font-size: 12px; }
.shot-log .sl-selection-toolbar button:disabled { cursor: default; }
.shot-log .sl-table-scroll {
    position: relative;
    width: 100%;
    max-width: 100%;
    max-height: none;
    overflow-x: auto;
    overflow-y: visible;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto;
    border: 1px solid var(--sl-border);
    border-radius: 8px;
    background: var(--sl-surface);
    scroll-padding-top: 78px;
}
.shot-log .sl-table-scroll:focus-visible { outline: 3px solid var(--sl-focus); outline-offset: 3px; }
.shot-log .sl-compact-table { min-width: 960px; width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: 12px; line-height: 1.4; }
.shot-log .sl-compact-table th, .shot-log .sl-compact-table td { padding: 9px 7px; border: 0; overflow-wrap: anywhere; }
.shot-log .sl-compact-table .sl-record-values > td { padding-top: 6px; padding-bottom: 6px; }
.shot-log .sl-compact-table thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    background: #f2f5f9;
    color: #344258;
    box-shadow: inset 0 -1px var(--sl-border), 0 2px 3px rgba(15, 23, 42, .04);
    font-size: 11px;
    font-weight: 650;
    vertical-align: top;
}
.shot-log .sl-compact-table thead th > small { display: block; margin-top: 4px; color: var(--sl-muted); font-size: 10px; font-weight: 400; }
.shot-log .sl-compact-table thead th:nth-child(1) { width: 10%; }
.shot-log .sl-compact-table thead th:nth-child(2) { width: 8%; }
.shot-log .sl-compact-table thead th:nth-child(3) { width: 9%; }
.shot-log .sl-compact-table thead th:nth-child(4) { width: 10%; }
.shot-log .sl-compact-table thead th:nth-child(5) { width: 9%; }
.shot-log .sl-compact-table thead th:nth-child(6) { width: 14%; }
.shot-log .sl-compact-table thead th:nth-child(7) { width: 10%; }
.shot-log .sl-compact-table thead th:nth-child(8) { width: 18%; }
.shot-log .sl-compact-table thead th:nth-child(9) { width: 12%; }
.shot-log .sl-compact-record:nth-of-type(even) { background: #fafbfc; }
.shot-log .sl-compact-record.is-selected { background: var(--sl-accent-soft); }
.shot-log .sl-record-values > td + td { border-left: 1px solid #edf0f4; }
.shot-log .sl-compact-value { display: block; margin: 0 0 4px; }
.shot-log .sl-compact-value:last-child { margin-bottom: 0; }
.shot-log .sl-compact-value.sl-weight-info { padding: 3px 4px; border: 1px solid #c9c600; border-radius: 4px; background: rgba(255, 252, 0, .5); color: #303000; }
.shot-log .sl-row-selection { display: flex; align-items: flex-start; gap: 7px; margin: 0 0 6px; }
.shot-log .sl-row-selection input { margin-top: 2px; }
.shot-log .sl-caliber-value { color: var(--sl-accent); font-size: 18px; line-height: 1.2; overflow-wrap: normal; word-break: normal; hyphens: none; }
.shot-log .sl-caliber-token { display: inline-block; white-space: nowrap; overflow-wrap: normal; word-break: normal; hyphens: none; }
.shot-log .sl-caliber-token + .sl-caliber-token { margin-left: .24em; }
.shot-log .sl-caliber-suffix { font-size: .88em; }
.shot-log .sl-caliber-suffix.sl-caliber-long { font-size: .80em; }
.shot-log .sl-caliber-suffix.sl-caliber-xlong { font-size: .72em; }
.shot-log .sl-caliber-suffix.sl-caliber-xxlong { font-size: .64em; }
.shot-log .sl-compact-identity { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-bottom: 5px; }
.shot-log .sl-compact-identity .sl-device-code { padding: 1px 4px; border-radius: 3px; font-size: 9px; }
.shot-log .sl-compact-identity .sl-log-id { font-size: 11px; }
.shot-log .sl-cell-identity .sl-status-badge { margin-right: 4px; padding: 1px 4px; font-size: 9px; }
.shot-log .sl-cell-identity .sl-edit-link { font-size: 10px; }
.shot-log .sl-weapon-spec { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.shot-log .sl-weapon-spec .sl-compact-value { margin: 0; white-space: nowrap; }
.shot-log .sl-cell-source .sl-compact-value:last-child { font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.shot-log .sl-metric-label-grid, .shot-log .sl-metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 5px; text-align: right; }
.shot-log .sl-metric-label-grid { margin: 5px 7px 0; color: var(--sl-muted); font-size: 10px; font-weight: 500; }
.shot-log .sl-metrics.sl-shots { position: relative; display: block; width: 100%; }
.shot-log .sl-metrics > summary { position: relative; display: block; min-width: 0; width: 100%; margin: 0; padding: 6px; font-size: 12px; font-weight: 600; }
.shot-log .sl-metrics > summary::after { position: absolute; right: 8px; bottom: 9px; width: 6px; height: 6px; }
.shot-log .sl-metric-grid { font-variant-numeric: tabular-nums; }
.shot-log .sl-metric-grid > span { min-width: 0; white-space: nowrap; }
.shot-log .sl-metric-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 8px; margin-top: 6px; padding-right: 14px; font-size: 10px; font-weight: 400; }
.shot-log .sl-metric-unit { color: var(--sl-muted); }
.shot-log .sl-shot-count { white-space: nowrap; }
.shot-log .sl-metrics .sl-shot-popover { position: static; width: 100%; max-width: none; margin-top: 5px; padding: 7px 3px; border-radius: 5px; box-shadow: none; }
.shot-log .sl-metrics .sl-popover-title { padding: 0 3px 5px; margin: 0 0 5px; font-size: 10px; }
.shot-log .sl-metrics [data-shot-list] > .sl-popover-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 3px 6px; }
.shot-log .sl-shot-unit-toggle { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 4px; min-height: 24px; padding: 2px 5px; margin: 0; border: 1px solid var(--sl-button-accent); border-radius: 4px; background: var(--sl-button-accent); color: var(--sl-button-text); font: inherit; font-size: 10px; font-weight: 600; line-height: 1.25; white-space: nowrap; cursor: pointer; }
.shot-log .sl-shot-unit-toggle:hover, .shot-log .sl-shot-unit-toggle:focus { background: var(--sl-button-accent-hover); border-color: var(--sl-button-accent-hover); color: var(--sl-button-text-hover); }
.shot-log .sl-shot-columns { display: flex; align-items: flex-start; gap: 3px; }
.shot-log .sl-shot-column { display: block; flex: 1 1 0; min-width: 0; margin: 0; padding: 0; list-style: none; }
.shot-log .sl-shot-column + .sl-shot-column { border-left: 1px solid #edf0f4; padding-left: 3px; }
.shot-log .sl-shot-column li { display: flex; flex-direction: column; align-items: center; gap: 0; margin: 0; padding: 4px 0; font-size: 11px; font-variant-numeric: tabular-nums; line-height: 1.3; white-space: nowrap; }
.shot-log .sl-shot-column:only-child li { flex-direction: row; justify-content: space-between; gap: 6px; padding: 3px 5px; }
.shot-log .sl-shot-column .sl-unit { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.shot-log .sl-shot-column .sl-shot-number { font-size: 9px; }
.shot-log .sl-metrics .sl-calculated-note { margin-top: 6px; padding: 0 3px; font-size: 9px; }
.shot-log .sl-cell-spread { text-align: center; }
.shot-log .sl-cell-spread .sl-compact-value { margin-top: 4px; font-size: 11px; }
.shot-log .sl-record-detail-row > td { padding: 0 7px 4px; border-bottom: 1px solid var(--sl-border) !important; }
.shot-log .sl-row-tools { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px 14px; }
.shot-log .sl-row-tools > .sl-record-details, .shot-log .sl-row-tools > .sl-report { min-width: 0; margin: 0; padding: 0; border: 0; }
.shot-log .sl-row-tools > details[open] { flex: 1 0 100%; }
.shot-log .sl-row-tools .sl-record-details > summary { display: inline-flex; min-height: 28px; padding: 3px 0; font-size: 11px; }
.shot-log .sl-row-tools .sl-record-details > summary::before { width: 16px; height: 16px; font-size: 13px; }
.shot-log .sl-row-tools .sl-report > summary.sl-report-toggle { min-height: 28px; padding: 3px 8px; font-size: 11px; }
.shot-log .sl-row-tools .sl-detail-content { padding: 10px 0 4px; }
.shot-log .sl-row-tools .sl-description { margin-top: 0; }
.shot-log .sl-row-tools .sl-report-panel { margin-top: 6px; }
.shot-log .sl-compact-gallery { grid-template-columns: repeat(auto-fill, 100px); align-items: start; gap: 13px 14px; }
.shot-log .sl-compact-gallery figure { width: 100px; }
.shot-log .sl-compact-gallery figcaption { margin-top: 4px; font-size: 10px; line-height: 1.35; overflow-wrap: anywhere; }
.shot-log .sl-compact-table .sl-image-trigger { position: relative; display: block; width: 100px; height: 100px; max-width: 100%; padding: 0; margin: 0 auto; border: 0; border-radius: 0; background: transparent; box-shadow: none; text-decoration: none; perspective: 800px; }
.shot-log .sl-image-trigger > img, .shot-log .sl-image-trigger .sl-flip-front > img, .shot-log .sl-image-trigger .sl-flip-back > img { display: block; width: 100%; height: 100%; aspect-ratio: 1; object-fit: contain; padding: 0; border: 0; background: transparent; box-shadow: none; }
.shot-log .sl-flip-inner { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; transform-style: preserve-3d; }
.shot-log .sl-flip-front, .shot-log .sl-flip-back { position: absolute; display: block; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.shot-log .sl-flip-back { transform: rotateY(180deg); }
.shot-log .sl-flip-image.is-flipped > .sl-flip-inner { transform: rotateY(180deg); }
.shot-log .sl-spread-bubble { position: absolute; z-index: 2; left: 3px; right: 3px; bottom: 3px; padding: 4px 5px; color: #fff; background: rgba(15, 23, 42, .9); border-radius: 5px; font-size: 12px; line-height: 1.3; text-align: center; opacity: 0; pointer-events: none; }
.shot-log .sl-spread-image:hover .sl-spread-bubble, .shot-log .sl-spread-image:focus .sl-spread-bubble { opacity: 1; }
.shot-log .sl-image-dialog { max-width: calc(100vw - 24px); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); width: 350px; padding: 0; border: 0; border-radius: 0; background: transparent; color: #fff; font: inherit; box-shadow: none; overflow: auto; }
.shot-log .sl-image-dialog::backdrop { background: rgba(15, 23, 42, .7); }
.shot-log .sl-image-dialog-content { position: relative; padding: 0; border: 0; background: transparent; max-width: 100%; }
.shot-log .sl-viewer-stage { position: relative; width: fit-content; max-width: 100%; margin: 0 auto; padding: 0; border: 0; background: transparent; }
.shot-log .sl-viewer-image { display: block; width: min(350px, calc(100vw - 24px), calc(100vh - 190px)); height: min(350px, calc(100vw - 24px), calc(100vh - 190px)); width: min(350px, calc(100vw - 24px), calc(100dvh - 190px)); height: min(350px, calc(100vw - 24px), calc(100dvh - 190px)); min-width: 100px; min-height: 100px; padding: 0; margin: 0 auto; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: inherit; cursor: pointer; perspective: 1000px; touch-action: pan-y pinch-zoom; }
.shot-log .sl-viewer-image img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 0; border: 0; background: transparent; box-shadow: none; }
.shot-log .sl-image-dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.shot-log .sl-image-dialog-actions .sl-button { flex: 1; min-height: 36px; padding: 6px 10px; border: 0; background: transparent; color: #fff; font-size: 12px; }
.shot-log .sl-image-dialog-actions .sl-button:hover, .shot-log .sl-image-dialog-actions .sl-button:focus { background: rgba(0, 0, 0, .22); color: #fff; }
.shot-log .sl-image-dialog-actions:has(> [hidden]:only-child), .shot-log .sl-image-dialog-actions:has(> [hidden] + [hidden]) { display: none; }
.shot-log .sl-image-hint { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; max-width: 350px; margin: 0; padding: 5px 6px; color: #fff; background: transparent; font-size: 11px; line-height: 1.5; text-align: center; opacity: 0; pointer-events: none; }
.shot-log .sl-viewer-stage.is-help-visible .sl-image-hint, .shot-log .sl-viewer-stage.has-image-error .sl-image-hint { opacity: 1; }
.shot-log .sl-image-dialog .sl-image-hint, .shot-log .sl-image-dialog button { text-shadow: -1px -1px 0 #111, 1px -1px 0 #111, -1px 1px 0 #111, 1px 1px 0 #111, 0 2px 4px #000; }
.shot-log .sl-image-dialog button:focus { outline: none; }
.shot-log .sl-image-dialog button:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
@media (hover: hover) {
    .shot-log a.sl-flip-image:hover > .sl-flip-inner { transform: rotateY(180deg); }
}
@media (prefers-reduced-motion: no-preference) {
    .shot-log .sl-flip-inner { transition: transform .32s ease; }
}
@media (prefers-reduced-motion: reduce) {
    .shot-log .sl-flip-inner { transition: none; }
}
@media (max-width: 820px) {
    .shot-log.sl-compact-frontend .sl-results-header { align-items: flex-start; }
    .shot-log .sl-selection-toolbar { flex-basis: 100%; }
    .shot-log .sl-compact-gallery, .shot-log .sl-row-tools .sl-description, .shot-log .sl-row-tools .sl-report-panel { max-width: calc(100vw - 52px); }
    .shot-log .sl-compact-gallery { grid-template-columns: repeat(auto-fill, 100px); }
    .shot-log .sl-table-scroll { max-height: none; }
}
/* V011: results extend the page; only the horizontal comparison area scrolls. */
.shot-log .sl-load-more { display: none; padding: 14px 0 4px; text-align: center; overflow-anchor: none; }
.shot-log.sl-continuous-results .sl-load-more { display: block; }
.shot-log .sl-loaded-status, .shot-log .sl-load-status, .shot-log .sl-load-end { margin: 0 0 9px; font-size: 12px; color: var(--sl-muted); }
.shot-log .sl-load-status:empty { display: none; }
.shot-log .sl-load-status.sl-load-error { color: #8c1919; }
.shot-log .sl-load-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.shot-log .sl-load-actions .sl-button { min-height: 34px; padding: 6px 10px; font-size: 12px; }
.shot-log .sl-load-more [aria-disabled="true"] { opacity: .6; pointer-events: none; }
[data-shotlog-footer-pending="1"] { display: none !important; }
/* Read-only copy outside table overflow; the original remains the accessible header. */
.shot-log.sl-floating-header { position: fixed; z-index: 9998; top: 0; left: 0; display: block; width: 0; height: 0; max-width: none; min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 0; overflow: hidden; pointer-events: none; background: #f2f5f9; }
.shot-log.sl-floating-header[hidden] { display: none !important; }
.shot-log.sl-floating-header .sl-compact-table { position: absolute; top: 0; left: 0; margin: 0; border: 0; transform-origin: left top; }
.shot-log.sl-floating-header .sl-compact-table thead th { position: static; }
/* V009 compact public filter bar; native details retain unsent form values. */
.shot-log .sl-filter-panel.sl-filter-compact { padding: 8px; margin-bottom: 9px; border-radius: 7px; font-size: 13px; line-height: 1.35; container-type: inline-size; }
.shot-log .sl-filter-compact > .sl-filter-panel-summary { display: flex; align-items: center; gap: 8px; min-height: 22px; padding: 0; margin: 0; list-style: none; cursor: pointer; color: var(--sl-heading); }
.shot-log .sl-filter-compact > .sl-filter-panel-summary::-webkit-details-marker { display: none; }
.shot-log .sl-filter-panel-summary::before { content: ""; flex: 0 0 6px; width: 6px; height: 6px; border-right: 2px solid var(--sl-button-accent); border-bottom: 2px solid var(--sl-button-accent); transform: rotate(-45deg); margin: 0 2px 0 1px; }
.shot-log .sl-filter-compact[open] > .sl-filter-panel-summary::before { transform: translateY(-2px) rotate(45deg); }
.shot-log .sl-filter-title { font-weight: 650; white-space: nowrap; }
.shot-log .sl-filter-active-summary { flex: 1; min-width: 0; color: var(--sl-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.shot-log .sl-filter-edit, .shot-log .sl-filter-collapse { color: var(--sl-button-accent); white-space: nowrap; font-size: 11px; }
.shot-log .sl-filter-compact:not([open]) .sl-filter-collapse, .shot-log .sl-filter-compact[open] .sl-filter-edit { display: none; }
.shot-log .sl-filter-compact .sl-filter-form { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 8px; padding-top: 6px; margin: 0; }
.shot-log .sl-filter-compact .sl-filter-grid { flex: 1 1 520px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; min-width: 0; }
.shot-log .sl-filter-compact .sl-filter-field { position: relative; }
.shot-log .sl-filter-compact .sl-filter-dropdown > summary { min-height: 33px; height: 33px; padding: 5px 8px; gap: 6px; border-radius: 4px; font-size: 13px; line-height: 1.3; }
.shot-log .sl-filter-compact .sl-filter-dropdown > summary.sl-filter-placeholder { color: #697586; font-weight: 400; }
.shot-log .sl-filter-compact .sl-filter-dropdown > summary::after { flex-basis: 6px; width: 6px; height: 6px; border-width: 1.5px; }
.shot-log .sl-filter-compact .sl-filter-options { position: absolute; z-index: 60; top: calc(100% + 4px); left: 0; right: 0; width: auto; max-height: min(300px, 50vh); max-height: min(300px, 50dvh); margin: 0; padding: 4px; border-radius: 5px; box-shadow: 0 6px 22px rgba(15, 23, 42, .15); }
.shot-log .sl-filter-compact .sl-filter-option { gap: 6px; min-height: 31px; padding: 6px 4px; font-size: 12px; line-height: 1.35; }
.shot-log .sl-filter-compact input[type="checkbox"], .shot-log .sl-filter-compact input[type="radio"] { width: 15px; height: 15px; min-width: 15px; margin-top: 1px; }
.shot-log .sl-filter-compact .sl-filter-options > .sl-muted { margin: 4px; font-size: 12px; }
.shot-log .sl-filter-compact .sl-filter-footer { flex: 1 1 470px; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 6px 8px; margin: 0; min-width: 0; }
.shot-log .sl-filter-mode-group { display: flex; flex: 0 0 auto; align-items: center; gap: 6px; min-height: 33px; }
.shot-log .sl-filter-compact .sl-mode-field { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 8px; width: auto; }
.shot-log .sl-filter-compact .sl-mode-choice { display: inline-flex; align-items: center; flex: 0 0 auto; gap: 4px; margin: 0; }
.shot-log .sl-filter-compact .sl-mode-choice input { margin-top: 0; }
.shot-log .sl-filter-compact .sl-mode-choice strong { font-size: 11px; font-weight: 600; }
.shot-log .sl-filter-compact .sl-sort-control { flex: 1 1 148px; min-width: 120px; max-width: 100%; margin: 0; }
.shot-log .sl-filter-compact .sl-sort-control select { height: 33px; min-height: 33px; padding: 4px 24px 4px 7px; border-radius: 4px; font-size: 12px; line-height: 1.3; }
.shot-log .sl-filter-compact .sl-filter-footer > .sl-form-actions { display: flex; flex: 0 0 auto; flex-wrap: nowrap; gap: 5px; width: auto; }
.shot-log .sl-filter-compact .sl-form-actions > .sl-button { flex: 0 0 auto; width: auto; min-height: 33px; padding: 5px 8px; border-radius: 4px; font-size: 12px; line-height: 1.3; }
.shot-log .sl-filter-help { position: relative; flex: 0 0 auto; margin: 0; }
.shot-log .sl-filter-help > summary { display: grid; place-items: center; width: 24px; height: 24px; margin: 0; padding: 0; border: 1px solid var(--sl-button-border); border-radius: 50%; background: #fff; color: var(--sl-button-accent); font-size: 13px; font-weight: 650; line-height: 1; list-style: none; cursor: pointer; }
.shot-log .sl-filter-help > summary::-webkit-details-marker { display: none; }
.shot-log .sl-filter-help[open] > summary { background: var(--sl-button-soft); border-color: var(--sl-button-accent); }
.shot-log .sl-filter-help[open]::after { content: ""; position: absolute; z-index: 69; top: 100%; left: 0; width: min(330px, calc(100vw - 32px)); height: 8px; transform: translateX(var(--sl-help-shift, 0px)); }
.shot-log .sl-filter-help.sl-help-above[open]::after { top: auto; bottom: 100%; }
.shot-log .sl-filter-help-bubble { position: absolute; z-index: 70; top: calc(100% + 6px); left: 0; width: min(330px, calc(100vw - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; transform: translateX(var(--sl-help-shift, 0px)); padding: 11px 12px; border: 1px solid var(--sl-border); border-radius: 7px; background: #fff; color: var(--sl-text); box-shadow: 0 7px 24px rgba(15, 23, 42, .18); font-size: 12px; line-height: 1.5; font-weight: 400; cursor: auto; }
.shot-log .sl-filter-help.sl-help-above .sl-filter-help-bubble { top: auto; bottom: calc(100% + 6px); }
.shot-log .sl-filter-help-bubble p { margin: 0 0 8px; }
.shot-log .sl-filter-help-bubble p:last-child { margin-bottom: 0; }
/* V012: editable filters, with native top-layer popups inside the original form. */
.shot-log .sl-filter-compact .sl-filter-combobox { position: relative; display: flex; flex-wrap: wrap; align-items: stretch; min-width: 0; width: 100%; }
.shot-log .sl-filter-compact input.sl-filter-search[data-filter-search] { flex: 1 1 0; min-width: 0; width: 0; height: 33px; min-height: 33px; margin: 0; padding: 5px 8px; border: 1px solid var(--sl-border); border-right: 0; border-radius: 4px 0 0 4px; background: #fff; color: var(--sl-text); font: inherit; font-size: 13px; line-height: 1.3; text-overflow: ellipsis; }
.shot-log .sl-filter-compact input.sl-filter-search::placeholder { color: #697586; opacity: 1; }
.shot-log .sl-filter-compact button.sl-filter-open { flex: 0 0 29px; display: grid; place-items: center; width: 29px; height: 33px; min-height: 33px; margin: 0; padding: 0; border: 1px solid var(--sl-border); border-left: 0; border-radius: 0 4px 4px 0; background: #fff; color: var(--sl-button-accent); font: inherit; font-size: 14px; line-height: 1; cursor: pointer; }
.shot-log .sl-filter-compact button.sl-filter-open:hover { background: var(--sl-button-soft); }
.shot-log .sl-filter-compact .sl-filter-search:focus, .shot-log .sl-filter-compact .sl-filter-open:focus-visible { position: relative; z-index: 1; outline: 2px solid var(--sl-focus); outline-offset: -2px; box-shadow: none; }
.shot-log .sl-filter-compact .sl-filter-open:focus-visible { outline-color: #b48a26; }
.shot-log .sl-filter-compact input.sl-filter-search[aria-invalid="true"] { border-color: #a42020; background: #fff6f6; }
.shot-log .sl-filter-compact .sl-filter-search-error { flex: 1 0 100%; width: 100%; margin: 4px 0 0; color: #a42020; font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
.shot-log .sl-filter-compact .sl-filter-no-matches { margin: 5px; color: var(--sl-muted); font-size: 12px; line-height: 1.45; }
.shot-log .sl-filter-compact .sl-filter-popup[popover] { position: fixed; inset: auto; z-index: auto; box-sizing: border-box; min-width: 0; max-width: calc(100vw - 16px); margin: 0; transform: none; overflow: auto; overscroll-behavior: contain; background: #fff; color: var(--sl-text); }
.shot-log .sl-filter-compact .sl-filter-popup[popover]:not(:popover-open) { display: none; }
.shot-log .sl-filter-compact .sl-filter-popup[popover]:popover-open { display: block; }
.shot-log .sl-filter-compact .sl-filter-popup[popover]::backdrop { background: transparent; pointer-events: none; }
.shot-log .sl-filter-compact .sl-filter-toplayer .sl-filter-options { border: 1px solid var(--sl-border); }
.shot-log .sl-filter-compact .sl-filter-inline .sl-filter-popup { position: static; inset: auto; width: 100%; max-width: 100%; min-width: 0; max-height: 300px; margin: 4px 0 0; transform: none; box-shadow: none; }
.shot-log .sl-filter-help.sl-filter-toplayer[open]::after, .shot-log .sl-filter-help.sl-filter-inline[open]::after { content: none; }
.shot-log .sl-filter-mode-group.sl-help-inline-open { flex: 1 1 100%; flex-wrap: wrap; min-width: 0; }
.shot-log .sl-filter-help.sl-filter-inline[open] { flex: 1 0 100%; min-width: 0; }
@container (max-width: 540px) {
    .shot-log .sl-filter-compact .sl-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .shot-log .sl-filter-compact .sl-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .shot-log .sl-filter-compact .sl-filter-footer { gap: 6px; }
}
@media print {
    .shot-log.sl-floating-header { display: none !important; }
    .shot-log .sl-filter-panel, .shot-log .sl-pagination, .shot-log .sl-edit-link, .shot-log .sl-report { display: none !important; }
    .shot-log .sl-card { box-shadow: none; break-inside: avoid; margin-bottom: 12px; }
    .shot-log .sl-record-list { display: block; }
    .shot-log .sl-shot-popover { position: static; width: auto; max-width: none; box-shadow: none; }
    .shot-log .sl-record-details { break-inside: auto; }
    .shot-log .sl-selection-toolbar, .shot-log .sl-image-dialog, .shot-log [data-select-record] { display: none !important; }
    .shot-log .sl-table-scroll { overflow: visible; max-height: none; border: 0; }
    .shot-log .sl-compact-table { min-width: 0; font-size: 9px; }
    .shot-log .sl-compact-table thead th { position: static; font-size: 8px; }
    .shot-log .sl-compact-table th, .shot-log .sl-compact-table td { padding: 4px; }
}


/* V020: keep all SHOT-LOG administration table headers visible while scrolling. */
.shot-log .sl-admin-table thead th {
    position: sticky;
    top: 0;
    z-index: 6;
    background: #f2f5f9;
    box-shadow: inset 0 -1px var(--sl-border), 0 2px 3px rgba(15, 23, 42, .04);
}
body.admin-bar .shot-log .sl-admin-table thead th { top: 32px; }
@media screen and (max-width: 782px) {
    body.admin-bar .shot-log .sl-admin-table thead th { top: 46px; }
}

/* V024: Flip face isolation. Transparent PNGs must not show the opposite face
   behind them, including on Firefox (which may not reliably cull 3D faces). */
.shot-log .sl-flip-image > .sl-flip-inner,
.shot-log a.sl-flip-image:hover > .sl-flip-inner,
.shot-log .sl-flip-image.is-flipped > .sl-flip-inner {
    transform: none;
    transform-style: flat;
    transition: none;
}
.shot-log .sl-flip-image .sl-flip-front,
.shot-log .sl-flip-image .sl-flip-back {
    transform: none;
    backface-visibility: visible;
    -webkit-backface-visibility: visible;
}
.shot-log .sl-flip-image .sl-flip-front { display: block; }
.shot-log .sl-flip-image .sl-flip-back { display: none; }
.shot-log .sl-flip-image.is-flipped .sl-flip-front { display: none; }
.shot-log .sl-flip-image.is-flipped .sl-flip-back { display: block; }
@media (hover: hover) {
    .shot-log a.sl-flip-image:hover .sl-flip-front { display: none; }
    .shot-log a.sl-flip-image:hover .sl-flip-back { display: block; }
}
/* Preserve the HTML hidden attribute on the non-existent secondary image. */
.shot-log .sl-flip-back[hidden] { display: none !important; }

/* V024: Compact ID input in the existing management navigation bar. */
.shot-log .sl-toolbar-id-filter {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    margin: 0;
    min-width: 0;
}
.shot-log .sl-toolbar-id-filter label { font-weight: 600; white-space: nowrap; }
.shot-log .sl-toolbar-id-filter input[type="search"] {
    width: 138px;
    max-width: 100%;
    min-height: 38px;
    margin: 0;
    padding: 7px 10px;
    border: 1px solid #c7c9cc;
    border-radius: 5px;
    color: inherit;
    background: #fff;
    font: inherit;
    box-sizing: border-box;
}
.shot-log .sl-toolbar-id-filter .sl-button { min-height: 38px; margin: 0; }
.shot-log .sl-id-filter-reset { text-decoration: underline; }
@media (max-width: 600px) {
    .shot-log .sl-toolbar-id-filter { width: 100%; }
    .shot-log .sl-toolbar-id-filter input[type="search"] { flex: 1 1 110px; width: auto; }
}

/* V025: visible field captions and an accurate sticky column-heading strip. */
.shot-log .sl-editor-sticky-header {
    position: sticky;
    top: 0;
    z-index: 65;
    padding: 6px 14px 8px;
    margin: 0 0 9px;
    border: 1px solid var(--sl-border);
    border-radius: 7px;
    background: rgba(247, 249, 253, .98);
    box-shadow: 0 2px 7px rgba(15, 23, 42, .09);
}
.admin-bar .shot-log .sl-editor-sticky-header { top: 32px; }
.shot-log .sl-editor-sticky-record { font-size: 11px; font-weight: 650; color: var(--sl-accent); margin-bottom: 3px; }
.shot-log .sl-editor-sticky-columns {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    column-gap: 10px;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.25;
    color: #334762;
}
.shot-log .sl-editor-sticky-columns > span { min-width: 0; overflow-wrap: anywhere; }
.shot-log .sl-editor-row .sl-editor-field-caption {
    display: block;
    min-height: 15px;
    margin-bottom: 3px;
    color: #445674;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 600;
    overflow-wrap: anywhere;
}
.shot-log .sl-editor-row[id] { scroll-margin-top: 110px; }
@media (max-width: 782px) {
    .admin-bar .shot-log .sl-editor-sticky-header { top: 46px; }
}

/* V026: instant, transient ID/public filters share the manager toolbar. */
.shot-log .sl-toolbar-id-filter { align-items: flex-end; flex-wrap: wrap; gap: 9px 12px; }
.shot-log .sl-toolbar-id-filter .sl-live-filter-control { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.shot-log .sl-toolbar-id-filter .sl-live-filter-control label { font-size: 13px; }
.shot-log .sl-toolbar-id-filter #sl-toolbar-id { width: 155px; }
.shot-log .sl-toolbar-id-filter #sl-toolbar-visibility { width: 192px; min-height: 38px; }
.shot-log .sl-toolbar-id-filter .sl-filter-live-status { font-size: 12px; color: var(--sl-muted); align-self: center; }
.shot-log .sl-toolbar-id-filter .sl-filter-live-status:empty { display: none; }
@media (max-width: 600px) {
  .shot-log .sl-toolbar-id-filter .sl-live-filter-control { flex: 1 1 130px; }
  .shot-log .sl-toolbar-id-filter #sl-toolbar-id,
  .shot-log .sl-toolbar-id-filter #sl-toolbar-visibility { width: 100%; }
}

/* V027: clear status indication and release toggle (checkbox itself is colored). */
.shot-log .sl-manager-state { display: inline-flex; gap: 7px; align-items: center; }
.shot-log .sl-manager-state-dot { display: inline-block; flex: 0 0 11px; width: 11px; height: 11px; border-radius: 50%; background: #bc2525; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.shot-log .sl-manager-state-green .sl-manager-state-dot { background: #19803c; }
.shot-log .sl-release-choice input[type="checkbox"] { appearance: none; -webkit-appearance: none; display: inline-grid; place-items: center; flex: 0 0 19px; width: 19px; height: 19px; border: 1px solid #8f1717; border-radius: 3px; background: #bc2525; color: white; vertical-align: middle; cursor: pointer; }
.shot-log .sl-release-choice input[type="checkbox"]::after { content: "×"; font-size: 17px; font-weight: 700; line-height: 1; }
.shot-log .sl-release-choice input[type="checkbox"]:checked { background: #16813c; border-color: #116b31; }
.shot-log .sl-release-choice input[type="checkbox"]:checked::after { content: "✓"; font-size: 15px; }
.shot-log .sl-release-choice input[type="checkbox"]:focus-visible { outline: 3px solid #176be7; outline-offset: 2px; }
.shot-log .sl-release-choice input[type="checkbox"]:disabled { opacity: .7; cursor: wait; }
.shot-log .sl-front-sort-help { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 6px 0 9px; font-size: 11px; color: var(--sl-muted, #536a8a); }
.shot-log .sl-front-sort-heading { display: inline-flex; gap: 3px; align-items: baseline; color: inherit; text-decoration: none; }
.shot-log .sl-front-sort-heading:hover, .shot-log .sl-front-sort-heading:focus-visible { text-decoration: underline; color: #8a1515; }
.shot-log .sl-front-sort-mark { color: #17599f; font-size: 10px; font-weight: 700; white-space: nowrap; }
/* V027: the 640ms flip is driven by safeFlipTo to prevent transparent bleed-through. */
/* The floating cloned header is pointer-active, but remains a presentation-only copy for accessibility. */
.shot-log.sl-floating-header .sl-front-sort-heading { pointer-events: auto; cursor: pointer; }

/* Flip state may change only at the edge-on midpoint (JS), not immediately on hover. */
.shot-log a.sl-flip-image:hover .sl-flip-front { display: block; }
.shot-log a.sl-flip-image:hover .sl-flip-back { display: none; }
.shot-log a.sl-flip-image.is-flipped .sl-flip-front,
.shot-log a.sl-flip-image.is-flipped:hover .sl-flip-front { display: none; }
.shot-log a.sl-flip-image.is-flipped .sl-flip-back,
.shot-log a.sl-flip-image.is-flipped:hover .sl-flip-back { display: block; }
.shot-log .sl-flip-image .sl-flip-inner { transform: none; transition: none; }
.shot-log a.sl-flip-image:hover .sl-flip-inner { transform: none; transition: none; }
.shot-log .sl-flip-image.is-flipped .sl-flip-inner { transform: none; transition: none; }

/* V028: direct logical ID navigation in the media editor toolbar. */
.shot-log .sl-direct-id-form { display: inline-flex; align-items: flex-end; flex-wrap: wrap; gap: 8px; margin: 0; }
.shot-log .sl-direct-id-form .sl-direct-id-input { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.shot-log .sl-direct-id-form .sl-direct-id-input label { font-size: 13px; font-weight: 600; white-space: nowrap; }
.shot-log .sl-direct-id-form input[name="sl_log_id"] { width: 135px; min-height: 42px; margin: 0; }
.shot-log .sl-direct-id-form .sl-button { white-space: nowrap; min-height: 42px; margin: 0; }
@media (max-width: 680px) {
    .shot-log .sl-direct-id-form { width: 100%; }
    .shot-log .sl-direct-id-form .sl-direct-id-input { flex: 1 1 125px; }
    .shot-log .sl-direct-id-form input[name="sl_log_id"] { width: 100%; }
}

/* V029: confirm the suggested 100-block before uploading any records. */
.shot-log .sl-upload-review {
    margin: 14px 0; border: 1px solid #b7c5d8; border-radius: 7px;
    padding: 12px 16px; background: #f7faff;
}
.shot-log .sl-upload-review[hidden],
.shot-log .sl-upload-review [hidden],
.shot-log .sl-upload-form .sl-form-actions [hidden] { display: none !important; }
.shot-log .sl-upload-warning { color: #a32222; font-weight: 600; }

/* V031: live media-ID input, without redundant heading or action button. */
.shot-log .sl-direct-id-form { align-items: center; }
.shot-log .sl-direct-id-form .sl-direct-id-input { flex-direction: row; }
.shot-log .sl-direct-id-message { font-size: 12px; color: var(--sl-muted); }
.shot-log .sl-direct-id-message[hidden] { display: none !important; }

/* V031: prevent horizontal/vertical scrollbars during large image flips.
   All animated faces remain within the viewport-sized frame; do not touch
   the flip timing, clipping transparency or the original image assets. */
.shot-log .sl-image-dialog {
    overflow: hidden !important;
    overflow: clip !important;
    box-sizing: border-box;
    scrollbar-width: none;
    overscroll-behavior: none;
}
.shot-log .sl-image-dialog::-webkit-scrollbar { display: none; }
.shot-log .sl-image-dialog-content,
.shot-log .sl-viewer-stage,
.shot-log .sl-viewer-image {
    box-sizing: border-box;
    max-height: 100%;
    overflow: hidden;
    overflow: clip;
}
.shot-log .sl-viewer-image {
    min-width: 0;
    min-height: 0;
    max-width: 100%;
}

/* V034: persistent navigation/column headings in administrative and public tables. */
.shot-log .sl-toolbar {
    position: sticky;
    top: 0;
    z-index: 70;
    background: #f1f1f1;
    padding: 8px 0;
    border-bottom: 1px solid #dce3ed;
}
body.admin-bar .shot-log .sl-toolbar { top: 32px; }
.shot-log .sl-table-scroll .sl-compact-table thead th { position: sticky; top: 0; z-index: 8; }
@media screen and (max-width: 782px) {
    body.admin-bar .shot-log .sl-toolbar { top: 46px; }
    .shot-log .sl-compact-table thead th { position: sticky; top: 0; }
}

/* V034: header rows stick directly below the actual toolbar height, even if it wraps. */
.shot-log .sl-admin-table thead th,
.shot-log:not(.sl-floating-header) .sl-compact-table thead th,
.shot-log .sl-editor-sticky-header {
    top: var(--sl-sticky-toolbar-height, 0px);
}
body.admin-bar .shot-log .sl-admin-table thead th,
body.admin-bar .shot-log:not(.sl-floating-header) .sl-compact-table thead th,
body.admin-bar .shot-log .sl-editor-sticky-header {
    top: calc(var(--sl-sticky-toolbar-height, 0px) + 32px);
}
@media screen and (max-width: 782px) {
  body.admin-bar .shot-log .sl-admin-table thead th,
  body.admin-bar .shot-log:not(.sl-floating-header) .sl-compact-table thead th,
  body.admin-bar .shot-log .sl-editor-sticky-header {
      top: calc(var(--sl-sticky-toolbar-height, 0px) + 46px);
  }
}

/* V070: compact single-line public controls on desktop. */
.shot-log.sl-compact-frontend .sl-front-control-line {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    min-width: 0;
    margin: 0 0 6px;
}
.shot-log.sl-compact-frontend .sl-front-control-line > .sl-filter-panel {
    flex: 1 1 360px;
    min-width: 230px;
    margin: 0;
}
.shot-log.sl-compact-frontend .sl-front-control-line > .sl-filter-panel:not([open]) {
    padding: 6px;
    font-size: 10px;
    line-height: 1.25;
}
.shot-log.sl-compact-frontend .sl-front-control-line > .sl-filter-panel:not([open]) > .sl-filter-panel-summary {
    gap: 6px;
    min-height: 17px;
}
.shot-log.sl-compact-frontend .sl-front-control-line > .sl-filter-panel:not([open]) .sl-filter-active-summary,
.shot-log.sl-compact-frontend .sl-front-control-line > .sl-filter-panel:not([open]) .sl-filter-edit {
    font-size: 9px;
}
.shot-log.sl-compact-frontend .sl-front-control-line > .sl-kind-control {
    flex: 0 1 180px;
    min-width: 145px;
    margin: 0;
}
.shot-log.sl-compact-frontend .sl-front-control-line > .sl-kind-control select {
    width: 100%;
    min-width: 0;
    min-height: 30px;
    height: 30px;
    padding: 3px 24px 3px 7px;
    font-size: 11px;
    line-height: 1.2;
}
.shot-log.sl-compact-frontend .sl-front-control-line .sl-selection-toolbar {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 6px;
}
.shot-log.sl-compact-frontend .sl-front-control-line .sl-selection-status {
    font-size: 9px;
}
.shot-log.sl-compact-frontend .sl-front-control-line .sl-selection-toolbar .sl-button {
    min-height: 26px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 9px;
    line-height: 1.2;
    white-space: nowrap;
}
.shot-log.sl-compact-frontend .sl-front-info {
    position: relative;
    flex: 0 0 auto;
    margin: 0;
}
.shot-log.sl-compact-frontend .sl-front-info > summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 26px;
    min-height: 26px;
    margin: 0;
    padding: 3px 6px;
    border: 1px solid var(--sl-border);
    border-radius: 4px;
    background: #fff;
    color: var(--sl-heading);
    font-size: 9px;
    line-height: 1;
    list-style: none;
    cursor: pointer;
    box-sizing: border-box;
}
.shot-log.sl-compact-frontend .sl-front-info > summary::-webkit-details-marker { display: none; }
.shot-log.sl-compact-frontend .sl-front-info > summary:hover,
.shot-log.sl-compact-frontend .sl-front-info > summary:focus-visible { background: var(--sl-button-soft); }
.shot-log.sl-compact-frontend .sl-front-info-bubble {
    display: none;
    position: absolute;
    z-index: 1000;
    top: calc(100% + 5px);
    right: 0;
    width: max-content;
    max-width: min(360px, calc(100vw - 36px));
    padding: 8px 10px;
    border: 1px solid var(--sl-border);
    border-radius: 5px;
    background: #fff;
    color: var(--sl-text);
    font-size: 10px;
    line-height: 1.4;
    box-shadow: 0 5px 18px rgba(15, 23, 42, .16);
}
.shot-log.sl-compact-frontend .sl-front-info[open] > .sl-front-info-bubble { display: block; }
.shot-log.sl-compact-frontend .sl-front-info-bubble p { margin: 0; }
.shot-log.sl-compact-frontend .sl-front-info-bubble p + p { margin-top: 5px; }
.shot-log.sl-compact-frontend .sl-results-info .sl-results-count,
.shot-log.sl-compact-frontend .sl-results-info .sl-page-count { font-size: 10px; }
.shot-log.sl-compact-frontend .sl-pinned-front { padding-top: 5px; }
.shot-log.sl-compact-frontend .sl-pinned-front > :last-child { margin-bottom: 6px; }
@media (max-width: 900px) {
    .shot-log.sl-compact-frontend .sl-front-control-line { flex-wrap: wrap; }
    .shot-log.sl-compact-frontend .sl-front-control-line > .sl-filter-panel { flex: 1 1 100%; }
}
@media (min-width: 901px) {
    .shot-log.sl-compact-frontend .sl-front-control-line:has(> .sl-filter-panel[open]) { flex-wrap: wrap; }
    .shot-log.sl-compact-frontend .sl-front-control-line > .sl-filter-panel[open] { flex: 1 1 100%; }
}
