/* ===== «عُهدتي»: تخطيط بسيط بعمود واحد ===== */
.shell { max-width: 760px; margin: 0 auto; padding: 0 16px 110px; min-height: 100vh; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 18px 0 14px; }
.topbar .t-name { font-weight: 700; line-height: 1.3; }
.topbar .t-sub { font-size: .8rem; color: var(--muted); }
.topbar .spacer { flex: 1; }
.dock { position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(8px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.dock-in { max-width: 760px; margin: 0 auto; display: flex; }
.dock a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .74rem; color: var(--muted); text-decoration: none; padding: 4px 0; }
.dock a.active { color: var(--primary); font-weight: 600; }

.fab { position: fixed; z-index: 60; bottom: calc(76px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); box-shadow: 0 8px 24px color-mix(in srgb, var(--primary) 35%, transparent); border-radius: 30px; padding: 13px 24px; font-size: 1rem; }

/* بطاقة العهدة */
.cust { padding: 20px; display: flex; flex-direction: column; gap: 14px; cursor: pointer; transition: border-color .15s; text-decoration: none; color: inherit; }
.cust:hover { border-color: var(--primary-line); }
.cust .c-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.cust .c-title { font-weight: 700; }
.cust .c-sub { font-size: .82rem; color: var(--muted); }
.cust .c-remain { text-align: end; }
.cust .c-remain .v { font-size: 1.7rem; font-weight: 700; line-height: 1.1; }
.cust .c-remain .l { font-size: .78rem; color: var(--muted); }
.cust .c-nums { display: flex; justify-content: space-between; font-size: .85rem; color: var(--ink-2); }
.neg { color: var(--bad) !important; }

/* أزرار البنود السريعة */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 22px; padding: 7px 14px; cursor: pointer; font-size: .9rem; font-weight: 500; }
.chip.on { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.big-money { font-size: 1.8rem !important; font-weight: 700; padding: 12px 14px !important; }

/* قائمة المصروفات */
.day { font-size: .8rem; color: var(--muted); font-weight: 600; padding: 12px 20px 6px; background: var(--surface-2); border-bottom: 1px solid var(--line-2); }
.exp { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.exp:last-child { border-bottom: 0; }
.exp:hover { background: var(--surface-2); }
.exp .e-icon { width: 38px; height: 38px; border-radius: 11px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; flex: none; font-weight: 700; }
.exp .e-main { flex: 1; min-width: 0; }
.exp .e-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.exp .e-sub { font-size: .8rem; color: var(--muted); }
.exp .e-amt { font-weight: 700; }

.welcome { text-align: center; padding: 40px 10px 10px; }
.welcome h1 { margin: 10px 0 6px; font-size: 1.5rem; }
.hero-mark { width: 64px; height: 64px; border-radius: 18px; margin: 0 auto; background: var(--primary); color: #fff; display: grid; place-items: center; }

@media (min-width: 861px) {
  .shell { padding-top: 10px; }
}
