:root { --brand: #5B3A8E; --brand-soft: #F1EDF7; --bg: #F1EDF7; }

/* customers */
.search { margin-bottom: 12px; }
.summary { display: flex; gap: 10px; margin-bottom: 14px; }
.summary .box { flex: 1; background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 12px 8px; text-align: center; }
.summary .n { font-size: 22px; font-weight: 700; color: var(--brand); line-height: 1.1; }
.summary .l { font-size: 12px; color: var(--muted); margin-top: 3px; }
.cust { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; text-align: left; background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; margin-bottom: 8px; color: var(--text); }
.cust-name { font-weight: 600; font-size: 15px; }
.cust-meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.cust-pts { text-align: right; font-weight: 700; color: var(--brand); font-size: 17px; white-space: nowrap; }
.cust-pts small { display: block; font-weight: 500; font-size: 11px; color: var(--muted); }
.kv { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.kv span:first-child { color: var(--muted); }
.vrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.sheet h3 { font-size: 15px; margin: 18px 0 8px; }

/* promos + settings */
.photo-preview { width: 100%; aspect-ratio: 16/9; border-radius: 12px; background: #F3EEF9; border: 1px dashed #CDBEE6; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.logo-preview { width: 120px; aspect-ratio: 1; }
.logo-preview img { object-fit: contain; }
.photo-empty { color: #8C7BAA; font-size: 13px; }
.pin-block { padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid #E8E0F2; }
.pin-block:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }

/* activity */
.act-title { font-weight: 600; font-size: 14px; }
.act-pts { font-weight: 700; font-size: 16px; white-space: nowrap; }
.act-pts.up { color: #1F8A5B; }
.act-pts.down { color: #C0392B; }
.act-row .hint { overflow-wrap: anywhere; }
.tab { font-size: 11.5px; }

.ov-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.ov-grid.small { margin-bottom: 0; }
.ov-tile { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; min-width: 0; }
.ov-label { font-size: 12px; color: var(--muted, #6b7f94); font-weight: 600; }
.ov-value { font-size: 22px; font-weight: 700; margin: 4px 0 2px; overflow-wrap: anywhere; }
.ov-sub { font-size: 11.5px; color: var(--muted, #6b7f94); }
.ov-sub.good { color: #1b7f4b; } .ov-sub.bad { color: #b4372c; }
.ov-chart { display: flex; align-items: flex-end; gap: 4px; height: 150px; }
.ov-col { flex: 1; display: flex; flex-direction: column; height: 100%; min-width: 0; }
.ov-barwrap { flex: 1; display: flex; align-items: flex-end; }
.ov-bar { width: 100%; background: #a9cdf3; border-radius: 5px 5px 0 0; min-height: 0; }
.ov-bar.today { background: #2f86e0; }
.ov-day { font-size: 9.5px; color: var(--muted, #6b7f94); text-align: center; height: 14px; margin-top: 4px; white-space: nowrap; }
.ov-tier { display: flex; align-items: center; gap: 10px; margin: 8px 0; font-size: 14px; }
.ov-tname { width: 96px; flex: none; }
.ov-tbar { flex: 1; height: 10px; background: #e8f0f8; border-radius: 6px; overflow: hidden; }
.ov-tbar span { display: block; height: 100%; background: #2f86e0; }
.ov-tnum { width: 28px; text-align: right; font-weight: 600; }

.pills { display: flex; gap: 8px; margin: 0 0 14px; }
.pill { flex: 1; background: var(--white); border: 1px solid var(--border); border-radius: 999px; padding: 10px 4px; font-size: 14px; font-weight: 600; color: var(--muted); }
.pill.active { background: var(--brand); border-color: var(--brand); color: var(--white); }
.tabbar .tab { font-size: 13.5px; }
