/* Calm, high contrast surfaces; explicit directions avoid mirrored RTL glyphs. */
:root{--bg:#eef2f8;--ink:#212f47;--muted:#566379;--line:#dbe2ee;--green:#113574}
body{background:#eef2f8;color:var(--ink);text-align:right;background:linear-gradient(145deg,#eaeef4 0,#eef2fa 55%,#f3f1fa 100%);background-attachment:fixed}
header{background:#101b2e;background:linear-gradient(110deg,#182b4b,#102548);box-shadow:0 4px 18px #182b4b18}
.brand small{color:#d0d8e6}.brand .logo{background:#ffffff16;border:1px solid #ffffff45;color:#bcd1f6;border-radius:18px}
header>.icon{background:#ffffff14;border-radius:14px;color:#ffffff}
.card,.stat,.month-ledger{background:#ffffff;border:1px solid #dce3ef;box-shadow:0 4px 16px #26385810;border-radius:20px}
h1,h2,h3,label{color:#212f47}.sub,.muted,.person-last span,.person-kpis span{color:#526079}
.section-title{margin-top:25px}.section-title h2{font-size:21px}
.shortcut{border:1px solid #ccd9ef!important;box-shadow:0 5px 14px #2738560e;background:#f7faff;color:#415c8a}
.shortcut.primary{background:#113574;border-color:#113574!important;color:#ffffff}
.shortcut svg{box-sizing:content-box;padding:10px;border-radius:14px;background:#e7eefb;color:#506da0;width:28px;height:28px}
.shortcut.primary svg{background:#ffffff20;color:#ffffff}.compact-shortcuts .shortcut{gap:12px;padding:15px}
.monthly-total{border:1px solid #d4def0;background:#e8effa;border-radius:20px;border-right:5px solid #748ebb;padding:17px 20px}
.monthly-total>strong{color:#3f5884}.monthly-total>span{color:#55637b}
.avatar{background:#e8f0ff;color:#365b9c;font-weight:800;width:48px;height:48px;border-radius:16px}
.person-overview .row{align-items:flex-start}.person-title{min-width:0}.person-title strong{font-size:21px}.status-pill{flex-shrink:0}
.person-kpis{border:0;padding:0;gap:9px;grid-gap:9px;margin:17px 0}
.person-kpis>div{background:#edf1f7;padding:12px;border-radius:14px;min-width:0}
.person-kpis>div+div{background:#f1effb}.person-kpis strong{color:#13336a}.person-kpis>div+div strong{color:#50668b}
.person-last{padding:3px 2px}.person-last .last-date{display:block;text-align:left;color:#61708a}
.person-actions{padding-top:12px;border-top:1px solid #edf0f5}.person-actions [data-person-pay]{background:#efedfa;color:#4e6791;border-color:#dae2f0}
.person-actions .icon{background:#e9f0fb;color:#415c8b}
.date-bar{border:1px solid #d4dceb;padding:6px;border-radius:17px;box-shadow:0 2px 8px #27385606}
.date-bar>.icon,.calendar-heading>.icon{background:#eaeff8;color:#355283;border-radius:12px;display:flex;align-items:center;justify-content:center;min-width:48px;width:48px;min-height:48px}
svg{direction:ltr;transform:none}svg[data-icon=right],svg[data-icon=left]{width:24px;height:24px}
.date-main{min-width:0}.date-input strong,bdi,.money,.person-kpis strong,.stat strong{unicode-bidi:isolate}
.date-input strong,.person-kpis strong,.stat strong{direction:ltr;text-align:right}
input[type=tel],#amount,#card,#phone{direction:ltr;text-align:right}select,textarea,label{direction:rtl;text-align:right}
.report-range{line-height:2;color:#566379}.report-context{color:#50668b}
.dashboard-stats .stat{background:#efedfa}.dashboard-stats .stat.accent{background:#e6ebf4}.dashboard-stats .stat strong{color:#564c8a}.dashboard-stats .stat.accent strong{color:#12336b}
.report-records.person-records{grid-template-columns:minmax(0,1fr)}
.report-record{border-right:4px solid #647da9}.payment-overview{border-right:4px solid #9288c5}.payment-overview .money{color:#5b518f}
.advanced{background:#e3e9f3;color:#344666}.advanced[open]{background:#e8edf6}.segmented{background:#dfe5f0}.segmented button{font-size:16px;color:#445572}.segmented button.active{background:#14356e}
.segmented [data-report-detail=payments].active{background:#635898}
.period-tabs button{border-color:#dce2ed}.period-tabs button.active{background:#14356e}
.quick-row.is-present{background:#e8edf6;border-color:#a6b6d2}.quick-row{box-shadow:0 3px 10px #26385808}
.menu-list button{box-shadow:0 4px 14px #2638580b}.menu-list button>svg:first-child{box-sizing:content-box;padding:12px;border-radius:16px;background:#e7f0ff;color:#4165a4}
.menu-list [data-tab=projects]>svg:first-child{background:#dfd8ff;color:#362491}.menu-list [data-action=open-settings]>svg:first-child{background:#edeafa;color:#5e5297}
nav{border-top:1px solid #dce3ef;box-shadow:0 -4px 20px #2638580c;background:#ffffff}
nav button{color:#536179;border-radius:16px}nav button.active{background:#e6eaf2;color:#12336b}
nav [data-tab=payments] svg{color:#675ba4}nav [data-tab=reports] svg{color:#476baa}nav [data-tab=more] svg{color:#4b4082}
nav [data-tab=payments].active{background:#edebfa;color:#675ba4}nav [data-tab=reports].active{background:#e8effb;color:#385e9f}nav [data-tab=more].active{background:#e4dffa;color:#4b4082}
.calendar-overlay{background:#14243f88}.calendar-sheet{box-shadow:0 22px 70px #0a1a3633;padding:22px;max-width:460px}
.calendar-heading{gap:7px}.calendar-heading select{background:#f4f7fb;border-color:#dce2ed;min-height:52px}.calendar-grid button{background:#f0f3f9;color:#2c3e5e;border:1px solid #e6ebf4;min-height:46px}
.calendar-grid .weekday{color:#566681;font-weight:700}.calendar-grid .weekday:nth-child(7){color:#a64c5b}
.calendar-grid button.today{box-shadow:inset 0 0 0 2px #3e5e95}.calendar-grid button.chosen{background:#143774;color:white;border-color:#143774}.calendar-quick .secondary{background:#e5eaf2;color:#17356a}
.month-grid>button{background:#f0f3f9}.month-grid .pay-dot{color:#5e5393}.month-grid .selected{background:#143774;color:#ffffff}.month-grid .selected .pay-dot{color:#ffffff}.month-grid .today{border-color:#49679a}
.notice{background:#e7edf8;color:#405579}.tag{background:#efedf9;color:#5a5187}
button:focus-visible{outline:3px solid #3f22cf;outline-offset:3px}button:disabled{opacity:.4}
@media(max-width:380px){.compact-shortcuts .shortcut{padding:12px 9px;gap:8px}.shortcut svg{width:24px;height:24px;padding:7px}.person-kpis>div{padding:10px}.calendar-sheet{padding:16px}.calendar-heading{gap:4px}.calendar-heading>.icon{min-width:44px;width:44px}.calendar-grid button{min-height:40px}.person-title strong{font-size:19px}}
@media print{body{background:#ffffff}.card,.stat{box-shadow:none}.report-records.person-records{display:block}}
/* User preference: distinct adjacent surfaces, stronger section boundaries. */
body{background:#e6ecf7;background:linear-gradient(135deg,#dee5f0,#e6edfa 65%,#e9e6f6)}
.card,.month-ledger{border-color:#c4d0e4;box-shadow:0 5px 16px #24385b15}
.person-kpis>div{background:#d8e0ef;border:1px solid #afbbd1}.person-kpis>div+div{background:#e3dff6;border-color:#c5bfe3}
.monthly-total{background:#dedaf3;border-color:#b6afd6;border-right-color:#5d50a0}.monthly-total>strong{color:#3d3178}.monthly-total>span{color:#48416b}
.shortcut:not(.primary){background:#e1ddf6;color:#3f337b;border-color:#b7b0db!important}.shortcut:not(.primary) svg{background:#cac3ed;color:#403381}
.dashboard-stats .stat{background:#e2def5;border-color:#c1bae4}.dashboard-stats .stat.accent{background:#dce3ef;border-color:#acb9cf}
.advanced{background:#d5dfef;border:1px solid #bac8e1}.segmented{background:#cfd9eb;border:1px solid #b8c6df}.date-bar>.icon{background:#d9e3f5;color:#28477d}
.person-actions [data-person-pay]{background:#ded9f4;color:#41357d;border:1px solid #beb7e0}.person-actions .icon{background:#d7e3f8;color:#315491}
.month-grid>button{background:#e8eef7;border-color:#d6deed}.month-grid .selected{background:#143774;border-color:#143774}
.voice-shortcut{display:flex;align-items:center;gap:14px;width:100%;margin-top:12px;padding:13px 17px;border:1px solid #8c7bdf;border-radius:18px;background:#cec5fa;color:#211170;text-align:right;min-height:76px;box-shadow:0 3px 12px #32208a0d}
.voice-shortcut>svg{box-sizing:content-box;padding:11px;background:#a798f2;border-radius:14px;color:#221178}.voice-shortcut strong{display:block;font-size:19px}.voice-shortcut small{display:block;font-size:14px;color:#382e6b}.voice-arrow{margin-right:auto}
.voice-intro{display:flex;align-items:center;gap:12px;padding:15px;background:#d1c9f7;border:1px solid #a194e3;border-radius:16px;margin:14px 0;color:#211170}.voice-record{width:100%;background:#322283}.voice-record svg{margin-left:8px}.voice-review{width:100%;margin:14px 0}.voice-preview{padding:17px;border:2px solid #b7c5dd;border-radius:18px;background:white}.voice-preview h3{margin-top:0}.voice-confirm{width:100%;margin-top:16px;background:#14356e}.voice-recipient{padding-bottom:8px;border-bottom:1px solid #e1e6ef}#voice-amount{direction:ltr;text-align:right}
@media print{.voice-shortcut{display:none!important}}
