.compute-page .screen { position: relative; }
.compute-screen { padding-bottom: 12px; }
.compute-balance { padding: 18px; border-radius: 14px; color: #fff; background: #103f39; }
.compute-balance p { display: flex; align-items: center; gap: 7px; margin: 0; color: #d4e9e4; font-size: 13px; line-height: 19px; }
.compute-balance p svg { width: 17px; height: 17px; }
.compute-balance > strong { display: block; margin-top: 4px; font-size: 38px; font-weight: 760; line-height: 46px; font-variant-numeric: tabular-nums; }
.compute-balance > strong small { margin-left: 4px; font-size: 13px; font-weight: 600; }
.compute-balance > span { display: block; margin-top: 7px; color: #c4d9d4; font-size: 12px; line-height: 18px; }
.compute-filter-bar { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 10px; }
.compute-filter-bar > span { color: var(--ink-muted); font-size: 12px; line-height: 18px; }
.compute-filter-button { display: inline-flex; min-width: 0; min-height: 42px; align-items: center; gap: 7px; padding: 0 12px; border: 1px solid var(--outline); border-radius: 9px; background: transparent; color: var(--ink); font-size: 13px; font-weight: 650; }
.compute-filter-button svg { width: 17px; height: 17px; }
.compute-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 9px; }
.compute-section-heading h2 { margin: 0; color: #4e5752; font-size: 15px; font-weight: 650; line-height: 22px; }
.compute-section-heading > span { color: var(--ink-muted); font-size: 12px; line-height: 18px; }
.compute-list { overflow: hidden; border-top: 1px solid var(--outline-soft); border-bottom: 1px solid var(--outline-soft); background: var(--surface); }
.compute-entry { display: grid; width: 100%; min-height: 79px; grid-template-columns: 36px minmax(0,1fr) minmax(66px,auto); align-items: center; gap: 10px; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--outline-soft); background: transparent; text-align: left; }
.compute-entry:last-child { border-bottom: 0; }
.compute-entry:hover { background: #f9fbfa; }
.compute-entry-icon { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 10px; background: var(--brand-soft); color: var(--brand-dark); }
.compute-entry-icon.refund, .compute-entry-icon.adjustment { background: var(--info-soft); color: var(--info); }
.compute-entry-icon.gift { background: var(--warning-soft); color: var(--warning); }
.compute-entry-icon svg { width: 19px; height: 19px; }
.compute-entry-copy { min-width: 0; }
.compute-entry-copy strong { display: block; overflow: hidden; font-size: 14px; line-height: 20px; text-overflow: ellipsis; white-space: nowrap; }
.compute-entry-copy small { display: block; margin-top: 2px; color: var(--ink-muted); font-size: 11px; line-height: 17px; overflow-wrap: anywhere; }
.compute-entry-tail { min-width: 66px; text-align: right; }
.compute-entry-tail > strong { display: block; font-size: 15px; line-height: 21px; font-variant-numeric: tabular-nums; }
.compute-entry-tail > strong.positive, .compute-detail-summary > strong.positive { color: var(--success); }
.compute-entry-tail small { display: inline-flex; min-height: 21px; align-items: center; margin-top: 3px; padding: 2px 6px; border-radius: 7px; background: var(--surface-soft); color: var(--ink-muted); font-size: 10px; font-weight: 650; line-height: 15px; }
.compute-entry-tail small.warning { background: var(--warning-soft); color: var(--warning); }
.compute-entry-tail small.success { background: var(--success-soft); color: var(--success); }
.compute-detail-summary { padding: 18px; border: 1px solid var(--outline-soft); border-radius: 14px; background: var(--surface); }
.compute-detail-summary > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.compute-detail-summary h2 { min-width: 0; margin: 0; font-size: 18px; line-height: 25px; overflow-wrap: anywhere; }
.compute-detail-summary > strong { display: block; margin-top: 13px; font-size: 34px; line-height: 42px; font-variant-numeric: tabular-nums; }
.compute-detail-summary > strong.reserved { color: var(--warning); }
.compute-detail-summary > strong small { margin-left: 4px; color: var(--ink-muted); font-size: 13px; font-weight: 600; }
.compute-detail-summary > p { margin: 3px 0 0; color: var(--ink-muted); font-size: 12px; line-height: 18px; }
.compute-definition { margin: 0; }
.compute-definition > div { display: grid; grid-template-columns: minmax(88px,.8fr) minmax(0,1.4fr); gap: 14px; padding: 13px 15px; border-bottom: 1px solid var(--outline-soft); }
.compute-definition > div:last-child { border-bottom: 0; }
.compute-definition dt { color: var(--ink-muted); font-size: 13px; line-height: 20px; }
.compute-definition dd { min-width: 0; margin: 0; font-size: 13px; font-weight: 600; line-height: 20px; text-align: right; overflow-wrap: anywhere; }
.compute-notice { display: flex; min-height: 64px; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--warning-soft); color: var(--warning); }
.compute-notice > svg { width: 22px; height: 22px; flex: 0 0 22px; margin-top: 1px; }
.compute-notice span { min-width: 0; flex: 1; }
.compute-notice strong { display: block; font-size: 14px; line-height: 20px; }
.compute-notice p { margin: 3px 0 0; color: var(--ink-muted); font-size: 12px; line-height: 18px; }
.compute-state { display: flex; min-height: 390px; flex-direction: column; align-items: center; justify-content: center; padding: 30px 16px; text-align: center; }
.compute-state-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 14px; background: var(--info-soft); color: var(--info); }
.compute-state-icon.danger { background: var(--danger-soft); color: var(--danger); }
.compute-state-icon svg { width: 25px; height: 25px; }
.compute-state h2 { max-width: 280px; margin: 14px 0 0; font-size: 20px; line-height: 28px; }
.compute-state p { max-width: 290px; margin: 7px 0 0; color: var(--ink-muted); font-size: 13px; line-height: 20px; }
.compute-state button { margin-top: 20px; }
.compute-loading { display: grid; gap: 16px; padding: 6px 0; }
.compute-loading p { margin: 0; color: var(--ink-muted); font-size: 12px; text-align: center; }
.compute-skeleton { padding: 18px; border: 1px solid var(--outline-soft); border-radius: 14px; background: var(--surface); }
.compute-skeleton i { display: block; width: 100%; height: 13px; margin-top: 12px; border-radius: 7px; background: #e5eae7; animation: compute-pulse 1.3s ease-in-out infinite; }
.compute-skeleton i:first-child { width: 44%; margin-top: 0; }
.compute-skeleton i:nth-child(2) { width: 72%; }
@keyframes compute-pulse { 50% { opacity: .45; } }
.compute-overlay { position: fixed; z-index: 70; inset: 0; display: flex; align-items: flex-end; justify-content: center; background: rgba(21,28,26,.42); }
.compute-sheet { width: min(100%,480px); max-height: 84%; overflow: auto; padding: 9px 16px calc(18px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: var(--surface); box-shadow: 0 -12px 30px rgba(20,45,39,.16); }
.compute-sheet-handle { display: block; width: 34px; height: 4px; margin: 0 auto 13px; border-radius: 2px; background: #aeb7b2; }
.compute-sheet-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.compute-sheet-heading h2 { margin: 0; font-size: 20px; line-height: 28px; }
.compute-sheet-heading p { margin: 4px 0 0; color: var(--ink-muted); font-size: 13px; line-height: 20px; }
.compute-sheet-note { margin: 14px 0 0; color: var(--ink-muted); font-size: 13px; line-height: 20px; }
.compute-sheet-state-icon { display: grid; width: 48px; height: 48px; margin-bottom: 14px; place-items: center; border-radius: 14px; background: var(--danger-soft); color: var(--danger); }
.compute-sheet-state-icon svg { width: 25px; height: 25px; }
.compute-insufficient-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 16px; }
.compute-insufficient-facts div { padding: 12px; border-radius: 12px; background: var(--surface-soft); }
.compute-insufficient-facts span, .compute-insufficient-facts strong { display: block; }
.compute-insufficient-facts span { color: var(--ink-muted); font-size: 12px; line-height: 18px; }
.compute-insufficient-facts strong { margin-top: 3px; font-size: 15px; line-height: 22px; }
.compute-sheet-actions .primary-button svg { width: 18px; height: 18px; }
.compute-options { overflow: hidden; margin-top: 18px; border: 1px solid var(--outline-soft); border-radius: 12px; }
.compute-options label { display: flex; min-height: 48px; align-items: center; gap: 11px; padding: 10px 12px; border-bottom: 1px solid var(--outline-soft); }
.compute-options label:last-child { border-bottom: 0; }
.compute-options input { width: 20px; height: 20px; margin: 0; accent-color: var(--brand); }
.compute-sheet-actions { display: grid; grid-template-columns: 1fr 1.5fr; gap: 8px; margin-top: 18px; }
.compute-sheet-actions.compute-sheet-actions-stack { grid-template-columns: 1fr; }
@media (max-width: 350px) {
  .compute-entry { grid-template-columns: 34px minmax(0,1fr) minmax(60px,auto); gap: 8px; padding-right: 11px; padding-left: 11px; }
  .compute-definition > div { grid-template-columns: 82px minmax(0,1fr); gap: 9px; padding-right: 12px; padding-left: 12px; }
}
@media (prefers-reduced-motion: reduce) { .compute-skeleton i { animation: none; } }
