/*
    Split editor (spe-): the mobile v4 SplitTransactionPopup on the web. Built on the transaction popup (txp-, header,
    logo, sheet and dialog size) and the shared tokens in transaction-popups.css, so the two popups read as one family in
    light and dark. Couple colors: you in --tx-user (blue), your partner in --tx-partner (amber). Load after
    transaction-popup.css.
*/

.spe {
    --spe-user: var(--tx-user);
    --spe-partner: var(--tx-partner);
    --spe-user-card: linear-gradient(120deg, color-mix(in srgb, var(--tx-user) 13%, var(--tx-surface)) 0%, var(--tx-surface) 62%);
    --spe-partner-card: linear-gradient(120deg, color-mix(in srgb, var(--tx-partner) 15%, var(--tx-surface)) 0%, var(--tx-surface) 62%);
}

/* The header's help icon (also on the transaction popup): beside the close X, the same color over the logo's header. */
.txp-head-help {
    position: absolute;
    top: 27px;
    right: 72px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 19px;
    background: transparent;
    color: var(--txp-close-light, var(--tx-text));
    filter: drop-shadow(0 1px 4px var(--txp-close-halo-light, transparent));
    font-size: 22px;
    cursor: pointer;
    opacity: .92;
    transition: opacity .15s ease, transform .15s ease;
}

.txp-head-help:hover {
    opacity: 1;
    transform: scale(1.06);
}

[data-bs-theme="dark"] .txp-head-help {
    color: var(--txp-close-dark, var(--tx-text));
    filter: drop-shadow(0 1px 4px var(--txp-close-halo-dark, transparent));
}

.spe-body {
    gap: 12px;
}

.spe-section-title {
    display: block;
    margin: 0;
    font-family: var(--tx-font);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--tx-muted);
}

.spe-section-title .spe-muted {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
}

.spe-muted {
    margin: 0;
    font-family: var(--tx-font-text);
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--tx-muted);
}

.spe-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 10px;
    background: var(--tx-hero-tile);
    color: var(--tx-muted);
    font-family: var(--tx-font);
    font-weight: 600;
    font-size: 10.5px;
    white-space: nowrap;
}

.spe-pill-accent {
    background: var(--tx-pill-bg);
    color: var(--tx-pill-text);
}

/* ------------------------------------------------------------------ At a glance */

.spe-glance {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
    border-radius: 20px;
    background: var(--tx-surface);
}

.spe-glance-tile {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--tx-tile-border);
    border-radius: 14px;
    background: var(--tx-hero-tile);
}

.spe-glance-value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: var(--tx-font);
    font-weight: 700;
    font-size: 17px;
    line-height: 1.2;
    color: var(--tx-text);
}

.spe-partner-ink {
    color: var(--spe-partner);
}

.spe-glance-detail {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: var(--tx-font-text);
    font-size: 11.5px;
    color: var(--tx-muted);
}

.spe-glance-owed {
    border-color: color-mix(in srgb, var(--spe-partner) 35%, var(--tx-tile-border));
}

.spe-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    font-family: var(--tx-font);
    font-weight: 600;
    font-size: 13.5px;
    line-height: 1.35;
    color: var(--tx-text);
}

.spe-status span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.spe-status .tx-glyph,
.spe-status svg {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    font-size: 13px;
    fill: currentColor;
}

.spe-status-new { color: var(--tx-primary); }
.spe-status-pending { color: var(--tx-caution); }
.spe-status-paid { color: var(--tx-positive); }
.spe-status-auto { color: var(--tx-primary); }

/* ------------------------------------------------------------------ Info */

.spe-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 0 6px;
}

.spe-info-text {
    margin: 0;
    font-family: var(--tx-font-text);
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--tx-text);
}

.spe-how {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    border: 0;
    background: transparent;
}

/* ------------------------------------------------------------------ Split history (the Recurring tab's recent charges) */

.spe-history {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.spe-history-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.spe-history-headline {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.spe-history-total {
    font-family: var(--tx-font);
    font-weight: 700;
    font-size: 26px;
    line-height: 1;
    color: var(--tx-text);
}

.spe-history-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    min-height: 92px;
    padding-top: 4px;
}

.spe-history-bars.has-years {
    min-height: 106px;
}

.spe-bar-slot {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    min-width: 0;
}

.spe-bar-count,
.spe-bar-label,
.spe-bar-year {
    font-family: var(--tx-font-text);
    line-height: 1.1;
    color: var(--tx-muted);
    white-space: nowrap;
}

.spe-bar-count {
    min-height: 12px;
    font-size: 10px;
    font-weight: 600;
}

.spe-bar-label {
    font-size: 10.5px;
}

.spe-bar-year {
    min-height: 11px;
    font-size: 9.5px;
}

.spe-bar {
    width: 18px;
    max-width: 70%;
    border-radius: 5px;
    background: var(--tx-nr-chart-bar);
    transition: height .3s ease;
}

.spe-bar-slot.is-empty .spe-bar {
    opacity: .45;
}

.spe-bar-slot.is-highlighted .spe-bar {
    background: var(--tx-nr-chart-flagged);
}

.spe-bar-slot.is-highlighted .spe-bar-count,
.spe-bar-slot.is-highlighted .spe-bar-label {
    color: var(--tx-nr-chart-flagged);
    font-weight: 700;
}

.spe-bar-bone {
    width: 18px;
    border-radius: 5px;
}

.spe-history-bars-loading {
    min-height: 60px;
}

.spe-history-caption {
    margin: 0;
    font-family: var(--tx-font-text);
    font-size: 12px;
    color: var(--tx-muted);
}

.spe-history-empty {
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.spe-history-empty-glyph {
    flex: 0 0 auto;
    color: var(--tx-nr-chart-flagged);
    font-size: 22px;
}

/* ------------------------------------------------------------------ Split between */

.spe-between {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 0 2px;
}

.spe-between-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 10px;
}

.spe-total {
    font-family: var(--tx-font);
    font-weight: 600;
    font-size: 13px;
    color: var(--tx-text);
}

.spe-person {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(128px, 170px);
    align-items: center;
    gap: 12px;
    padding: 9px 10px 9px 12px;
    border-radius: 20px;
}

.spe-person-user {
    background: var(--spe-user-card);
}

.spe-person-partner {
    background: var(--spe-partner-card);
}

.spe-avatar {
    width: 48px;
    height: 48px;
    border: 2px solid var(--spe-person-ring, var(--tx-border));
    border-radius: 50%;
    background: var(--tx-wrapper);
    object-fit: cover;
}

.spe-person-user { --spe-person-ring: var(--spe-user); }
.spe-person-partner { --spe-person-ring: var(--spe-partner); }

.spe-avatar-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-family: var(--tx-font);
    font-weight: 700;
    font-size: 18px;
}

.spe-person-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.spe-person-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: var(--tx-font);
    font-weight: 500;
    font-size: 16px;
    color: var(--tx-text);
}

.spe-person-share {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: var(--tx-font-text);
    font-size: 12px;
    color: var(--tx-muted);
}

.spe-amount {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 46px;
    padding: 0 12px;
    border: 1px solid var(--tx-tile-border);
    border-radius: 14px;
    background: var(--tx-input-bg);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.spe-amount:focus-within {
    border-color: var(--tx-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--tx-primary) 18%, transparent);
}

.spe-amount-glyph {
    flex: 0 0 auto;
    color: var(--tx-muted);
    font-size: 16px;
}

.spe-amount .e-control-wrapper.e-numeric,
.spe-amount .e-input-group {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.spe-amount .e-input-group::before,
.spe-amount .e-input-group::after {
    display: none !important;
}

.spe-amount input.e-input,
.spe-amount input {
    min-width: 0;
    padding: 0 !important;
    background: transparent !important;
    color: var(--tx-text) !important;
    font-family: var(--tx-font) !important;
    font-weight: 600 !important;
    font-size: 17px !important;
    text-align: right !important;
}

.spe-amount.is-readonly {
    background: transparent;
}

/* The couple share bar: you in blue, your partner in amber, blended at the seam (CoupleShareBar, couple-share-bar.css). */
.spe-sharebar {
    display: flex;
    height: 10px;
    margin: 2px 10px 0;
    border-radius: 5px;
    overflow: hidden;
}

.spe-sharebar-legend {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 0 10px;
    font-family: var(--tx-font-text);
    font-size: 11.5px;
    color: var(--tx-muted);
}

.spe-sharebar-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.spe-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 4px;
}

.spe-dot-user { background: var(--ci-couple-user, #2563EB); }
.spe-dot-partner { background: var(--ci-couple-partner, #D97706); }

.spe-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 2px 8px 0;
}

.spe-quick-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 12px;
    border: 1px solid var(--tx-tile-border);
    border-radius: 15px;
    background: var(--tx-hero-tile);
    color: var(--tx-text);
    font-family: var(--tx-font);
    font-weight: 600;
    font-size: 12px;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.spe-quick-chip .tx-glyph {
    color: var(--tx-primary);
    font-size: 11px;
}

.spe-quick-chip:hover:not(:disabled) {
    border-color: color-mix(in srgb, var(--tx-primary) 40%, transparent);
}

.spe-quick-chip.is-active {
    border-color: var(--tx-primary);
    background: var(--tx-pill-bg);
    color: var(--tx-pill-text);
}

.spe-quick-chip:disabled {
    opacity: .55;
    cursor: default;
}

/* ------------------------------------------------------------------ Percentage (locked slider) */

.spe-slider-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.spe-slider-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.spe-slider-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.spe-lock {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--tx-tile-border);
    border-radius: 14px;
    background: var(--tx-tile-bg);
    color: var(--tx-text);
    font-family: var(--tx-font);
    font-weight: 600;
    font-size: 12.5px;
    cursor: pointer;
}

.spe-lock .tx-glyph {
    color: var(--tx-muted);
    font-size: 12px;
}

.spe-lock.is-unlocked {
    border-color: var(--tx-primary);
    background: var(--tx-pill-bg);
    color: var(--tx-pill-text);
}

.spe-lock.is-unlocked .tx-glyph {
    color: var(--tx-pill-text);
}

.spe-lock:disabled {
    opacity: .55;
    cursor: default;
}

.spe-slider-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
}

.spe-slider-track {
    min-width: 0;
    padding: 0 6px;
}

.spe-slider-section .e-slider-container {
    margin: 0;
}

.spe-slider-section .e-slider-container .e-slider .e-range {
    background: var(--tx-primary) !important;
}

.spe-slider-section .e-slider-container .e-slider .e-slider-track {
    background: var(--tx-wrapper) !important;
    border-color: transparent !important;
}

.spe-slider-section .e-slider-container .e-handle {
    width: 20px !important;
    height: 20px !important;
    margin-top: -1px;
    border: 3px solid var(--tx-page) !important;
    background: var(--tx-text) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .22) !important;
}

.spe-slider-section .e-slider-container.e-disabled {
    opacity: .85;
}

.spe-slider-section.is-locked .spe-slider-track {
    cursor: not-allowed;
}

.spe-slider-scale {
    display: flex;
    justify-content: space-between;
    margin-top: 2px;
    font-family: var(--tx-font-text);
    font-size: 11px;
    color: var(--tx-muted);
}

.spe-percent {
    min-width: 56px;
    font-family: var(--tx-font);
    font-weight: 700;
    font-size: 20px;
    text-align: right;
    color: var(--tx-text);
}

/* ------------------------------------------------------------------ Notes */

.spe-notes-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.spe-notes.e-control-wrapper,
.spe-notes.e-input-group {
    margin: 0 !important;
    border: 1px solid var(--tx-tile-border) !important;
    border-radius: 14px !important;
    background: var(--tx-input-bg) !important;
    overflow: hidden;
}

.spe-notes.e-input-group::before,
.spe-notes.e-input-group::after {
    display: none !important;
}

.spe-notes textarea {
    min-height: 84px !important;
    padding: 10px 14px !important;
    background: transparent !important;
    color: var(--tx-text) !important;
    font-family: var(--tx-font-text) !important;
    font-size: 14px !important;
}

/* ------------------------------------------------------------------ Auto Split */

.spe-auto {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.spe-auto.is-active {
    box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--tx-primary) 45%, transparent);
}

.spe-auto-head {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.spe-auto.is-unavailable .spe-auto-head {
    grid-template-columns: 36px minmax(0, 1fr);
}

.spe-auto-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--tx-tile-bg);
    color: var(--tx-primary);
    font-size: 19px;
}

.spe-auto-icon.is-muted {
    width: 36px;
    height: 36px;
    background: transparent;
    color: var(--tx-muted);
}

.spe-auto-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.spe-auto-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-family: var(--tx-font);
    font-weight: 600;
    font-size: 16px;
    color: var(--tx-text);
}

.spe-inline-help {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--tx-primary);
    font-size: 14px;
    cursor: pointer;
}

.spe-inline-help:hover {
    background: var(--tx-pill-bg);
}

.spe-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 6px 8px 6px 10px;
    border-radius: 16px;
    background: var(--tx-tile-bg);
    cursor: pointer;
    user-select: none;
}

.spe-switch.is-locked {
    cursor: not-allowed;
    opacity: .75;
}

.spe-switch-label {
    font-family: var(--tx-font);
    font-weight: 700;
    font-size: 10.5px;
    letter-spacing: .06em;
    color: var(--tx-muted);
}

.spe-switch.is-on .spe-switch-label {
    color: var(--tx-primary);
}

.spe-switch-input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.spe-switch-track {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
    border-radius: 12px;
    background: var(--tx-thumb-off);
    transition: background-color .18s ease;
}

.spe-switch-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 9px;
    background: #FFFFFF;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
    transition: transform .18s ease;
}

.spe-switch.is-on .spe-switch-track {
    background: var(--tx-primary);
}

.spe-switch.is-on .spe-switch-thumb {
    transform: translateX(18px);
}

.spe-switch-input:focus-visible + .spe-switch-track {
    outline: 2px solid var(--tx-primary);
    outline-offset: 2px;
}

.spe-auto-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 12px;
    border-top: 1px solid var(--tx-border);
}

.spe-auto-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 10px;
    font-family: var(--tx-font);
    font-size: 14px;
    color: var(--tx-text);
}

.spe-auto-row strong {
    font-weight: 500;
}

/* The same couple bar under Auto Split's "You 86% · Partner 14%" pill: the percentage Auto Split will use. */
.spe-sharebar.spe-sharebar-auto {
    height: 8px;
    margin: 4px 0 2px;
}

.spe-auto-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-family: var(--tx-font-text);
    font-weight: 600;
    font-size: 12.5px;
    color: var(--tx-text);
}

.spe-spinner {
    width: 14px;
    height: 14px;
}

.spe-auto-link {
    font-family: var(--tx-font-text);
    font-weight: 600;
    font-size: 12.5px;
    color: var(--tx-primary);
    text-decoration: none;
}

.spe-auto-link:hover {
    text-decoration: underline;
}

/* ------------------------------------------------------------------ Outcome, actions, errors, skeleton */

.spe-outcome {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 14px;
    font-family: var(--tx-font);
    font-weight: 600;
    font-size: 13px;
    background: var(--tx-positive-soft);
    color: var(--tx-positive);
}

.spe-outcome.is-error {
    background: var(--tx-critical-soft);
    color: var(--tx-critical);
}

.spe-outcome .tx-glyph {
    font-size: 16px;
}

.spe-actions {
    display: flex;
    gap: 10px;
    margin-top: 6px;
    padding-bottom: 4px;
}

.spe-actions .tx-btn {
    flex: 1 1 0;
    min-height: 48px;
}

.spe-actions .tx-btn .tx-glyph,
.spe-actions .tx-btn svg {
    width: 16px;
    height: 16px;
    font-size: 14px;
    fill: currentColor;
}

.spe-remove {
    color: var(--tx-critical);
}

.spe-load-error {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    margin: 56px 12px 24px;
}

.spe-load-error-glyph {
    color: var(--tx-critical);
    font-size: 22px;
}

.spe-load-error-actions {
    display: flex;
    grid-column: 1 / -1;
    justify-content: flex-end;
    gap: 10px;
}

/* ------------------------------------------------------------------ Loading skeleton
   The Dashboard's bones and sweep (admin-dashboard.css, .dsh-bone), tinted with the popup's skeleton tokens so light and
   dark follow the dialog. The frames reuse the real section classes, so nothing moves when the split arrives. The skeleton
   is only rendered while the split loads (AdminSplitDetailDrawer: @if (_loading)); the history strip has its own. */

.spe-skeleton,
.spe-skel-scope {
    --dsh-bone: var(--tx-skeleton-bone);
    --dsh-wave: var(--tx-skeleton-wave);
}

.spe-skeleton {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 0 24px;
}

.spe-skel-logo {
    width: 84px;
    height: 84px;
    margin-left: 8px;
    border-radius: 50%;
}

.spe-skel-titles {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    margin-top: -62px;
    padding-right: 12px;
}

.spe-skel-title { width: 180px; height: 20px; }
.spe-skel-line { width: 140px; height: 14px; }

.spe-skel-value { width: 70%; height: 17px; }
.spe-skel-detail { width: 45%; height: 11px; }

.spe-skel-text { width: 100%; height: 12px; }
.spe-skel-text-short { width: 62%; }
.spe-info .spe-skel-text + .spe-skel-text { margin-top: 8px; }

.spe-skel-pill { width: 60px; height: 20px; border-radius: 10px; }
.spe-skel-total { width: 84px; height: 14px; }

.spe-skel-avatar { width: 48px; height: 48px; border-radius: 50%; }
.spe-skel-name { width: 96px; height: 16px; }
.spe-skel-share { width: 120px; height: 12px; margin-top: 4px; }
.spe-skel-amount { width: 100%; height: 48px; border-radius: 14px; }

.spe-person-user .spe-skel-avatar,
.spe-person-user .spe-skel-amount { background-color: color-mix(in srgb, var(--spe-user) 22%, var(--tx-skeleton-bone)); }
.spe-person-partner .spe-skel-avatar,
.spe-person-partner .spe-skel-amount { background-color: color-mix(in srgb, var(--spe-partner) 22%, var(--tx-skeleton-bone)); }

.spe-skel-sharebar { height: 10px; }
.spe-skel-bar-user,
.spe-skel-bar-partner { height: 10px; border-radius: 5px; }
.spe-skel-bar-user { flex: 86 1 0; background-color: color-mix(in srgb, var(--spe-user) 30%, var(--tx-skeleton-bone)); }
.spe-skel-bar-partner { flex: 14 1 0; background-color: color-mix(in srgb, var(--spe-partner) 30%, var(--tx-skeleton-bone)); }

.spe-skel-chip { width: 74px; height: 30px; border-radius: 15px; }
.spe-skel-chip-wide { width: 112px; }

.spe-skel-button { width: 88px; height: 36px; border-radius: 12px; }

.spe-skel-slider-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px;
    align-items: center;
    gap: 14px;
    min-height: 56px;
}

.spe-skel-slider { height: 8px; border-radius: 4px; }
.spe-skel-percent { height: 22px; border-radius: 8px; }

.spe-skel-notes { width: 100%; height: 84px; border-radius: 14px; }

.spe-skel-auto-icon { width: 44px; height: 44px; border-radius: 12px; }
.spe-skel-switch { width: 76px; height: 36px; border-radius: 18px; }

.spe-skel-save { width: 100%; height: 48px; border-radius: 14px; }

/* ------------------------------------------------------------------ Remove confirmation */

.e-dialog.spe-confirm-dialog .e-dlg-content {
    height: auto;
}

.spe-confirm {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 22px 20px;
    text-align: center;
}

.spe-confirm h3 {
    margin: 0;
    font-weight: 600;
    font-size: 17px;
    color: var(--tx-text);
}

.spe-confirm-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: var(--tx-critical-soft);
    color: var(--tx-critical);
    font-size: 20px;
}

.spe-confirm-actions {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-top: 8px;
}

.spe-confirm-actions .tx-btn {
    flex: 1 1 0;
}

/* ------------------------------------------------------------------ Small screens */

@media (max-width: 520px) {
    .spe-glance {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .spe-glance-owed {
        grid-column: 1 / -1;
    }

    .spe-person {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .spe-amount {
        grid-column: 1 / -1;
    }

    .spe-actions {
        flex-direction: column-reverse;
    }

    .spe-bar {
        width: 12px;
    }

    .txp-head-help {
        right: 66px;
    }
}
