@import "https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap";:root{color:#163d39;font-synthesis:none;background:#f5f4ef;font-family:IBM Plex Sans Arabic,Tahoma,Arial,sans-serif}*{box-sizing:border-box}html{background:#f5f4ef;min-width:320px}body{min-width:320px;min-height:100vh;margin:0}button,input{font:inherit}button{cursor:pointer}body:before{content:"";z-index:-1;opacity:.32;background-image:linear-gradient(#0d80670b 1px,#0000 1px),linear-gradient(90deg,#0d80670b 1px,#0000 1px);background-size:34px 34px;position:fixed;inset:0;-webkit-mask-image:linear-gradient(#000,#0000 80%);mask-image:linear-gradient(#000,#0000 80%)}.app-shell{width:min(1180px,100% - 40px);margin:0 auto;padding:31px 0 60px}.topbar{border-bottom:1px solid #dbe2dc;justify-content:space-between;align-items:center;padding-bottom:30px;display:flex}.brand,.metric-card__top,.profit-card__heading,.panel__header,.intro-row,.month-switcher,.save-state,.history-section__header,.history-count,.auto-save,.expense-bar__label{align-items:center;display:flex}.brand{gap:12px}.brand__mark{border-radius:13px;width:43px;height:43px;box-shadow:0 8px 18px #0d806729}.brand__eyebrow,.section-kicker{color:#0d8067;letter-spacing:.02em;margin:0 0 3px;font-size:.76rem;font-weight:700}h1,h2,h3,p{margin-top:0}h1{color:#102d2c;margin-bottom:0;font-size:1.15rem;font-weight:700}.save-state{color:#667a73;gap:8px;font-size:.78rem;font-weight:500}.save-state__dot{background:#c0cbc4;border-radius:99px;width:8px;height:8px}.save-state__dot--saved{background:#20a480;box-shadow:0 0 0 4px #20a4801f}.intro-row{justify-content:space-between;gap:24px;padding:38px 0 27px}.intro-row h2{color:#173c39;letter-spacing:-.025em;margin:0 0 10px;font-size:clamp(1.55rem,3vw,2.2rem);line-height:1.35}.intro-row h2 span{color:#0d8067}.intro-row>div:first-child>p:last-child{color:#60736c;max-width:590px;margin:0;font-size:.94rem;line-height:1.8}.month-switcher{direction:ltr;background:#fff;border:1px solid #dde5df;border-radius:14px;flex:none;gap:8px;padding:6px;box-shadow:0 7px 20px #193c340a}.icon-button{color:#315c56;background:0 0;border:0;border-radius:10px;place-items:center;width:35px;height:35px;transition:all .2s;display:grid}.icon-button:hover{color:#fff;background:#0d8067}.icon-button--previous{transform:scaleX(-1)}.month-field{color:#0d8067;direction:rtl;border-inline:1px solid #e4ebe6;align-items:center;gap:8px;padding:0 8px;display:flex}.month-field input{color:#193f39;background:0 0;border:0;outline:0;width:112px;padding:7px 0;font-family:Manrope,IBM Plex Sans Arabic,sans-serif;font-size:.82rem;font-weight:700}.metrics-grid{grid-template-columns:1.2fr 1fr 1fr;gap:16px;display:grid}.profit-card,.metric-card,.panel,.history-section{background:#ffffffed;border:1px solid #dce5df;box-shadow:0 13px 30px #183f350b}.profit-card{color:#effaf5;background:#0f6557;border-color:#197e67;border-radius:18px;min-height:182px;padding:22px;position:relative;overflow:hidden}.profit-card:after{content:"";border:26px solid #def5ea1c;border-radius:50%;width:160px;height:160px;position:absolute;bottom:-95px;left:-75px}.profit-card--negative{background:#855a24;border-color:#855a24}.profit-card__heading{z-index:1;gap:10px;position:relative}.profit-badge{color:#fff;background:#ffffff29;border:1px solid #fff3;border-radius:12px;place-items:center;width:38px;height:38px;display:grid}.profit-card .metric-label{color:#f5fffa}.profit-card__heading p{color:#effaf5b8;margin:3px 0 0;font-size:.73rem}.profit-card__amount{z-index:1;letter-spacing:-.05em;text-align:right;margin:17px 0 13px;font-family:Manrope,sans-serif;font-size:clamp(1.8rem,4vw,2.35rem);font-weight:800;line-height:1;display:block;position:relative}.profit-card__footer{z-index:1;color:#effaf5d4;border-top:1px solid #ffffff2e;justify-content:space-between;padding-top:12px;font-size:.76rem;display:flex;position:relative}.profit-card__footer strong{color:#fff;font-family:Manrope,sans-serif}.metric-card{border-radius:18px;min-height:182px;padding:21px}.metric-card__top{justify-content:space-between}.metric-label{color:#49655d;font-size:.82rem;font-weight:700}.metric-icon{border-radius:11px;place-items:center;width:36px;height:36px;display:grid}.metric-emerald .metric-icon{color:#08785f;background:#ddf3ea}.metric-amber .metric-icon{color:#a66113;background:#fff0d7}.metric-navy .metric-icon{color:#294c76;background:#e5eefb}.metric-value{color:#193e39;letter-spacing:-.04em;text-align:right;margin:23px 0 9px;font-family:Manrope,sans-serif;font-size:clamp(1.55rem,3vw,2rem);font-weight:800;line-height:1;display:block}.metric-caption{color:#7a8c85;font-size:.72rem}.workspace-grid{grid-template-columns:1.55fr 1fr;gap:16px;margin-top:17px;display:grid}.panel{border-radius:18px}.entry-panel,.insight-panel{padding:23px}.panel__header{justify-content:space-between;gap:15px;margin-bottom:18px}.panel__header h2,.history-section__header h2{color:#193e39;letter-spacing:-.015em;margin:0;font-size:1.15rem}.auto-save{color:#08785f;white-space:nowrap;background:#eaf7f1;border-radius:8px;gap:6px;padding:6px 9px;font-size:.7rem;font-weight:700}.amount-list{gap:9px;display:grid}.amount-input{border:1px solid #e2e9e4;border-radius:13px;grid-template-columns:40px 1fr minmax(115px,145px);align-items:center;min-height:75px;padding:10px 12px;transition:border-color .2s,box-shadow .2s,transform .2s;display:grid}.amount-input:focus-within{border-color:#40a58f;transform:translateY(-1px);box-shadow:0 0 0 3px #0d80671a}.amount-input__icon{border-radius:10px;place-items:center;width:32px;height:32px;display:grid}.amount-input--income .amount-input__icon{color:#08785f;background:#e5f5ed}.amount-input--expense .amount-input__icon{color:#9e671f;background:#fff4e3}.amount-input__copy{min-width:0;padding-inline:8px}.amount-input__label{color:#214640;font-size:.84rem;font-weight:700;display:block}.amount-input__hint{color:#84938d;white-space:nowrap;text-overflow:ellipsis;margin-top:3px;font-size:.68rem;display:block;overflow:hidden}.amount-input__control{direction:ltr;background:#f6f8f5;border-radius:9px;align-items:center;gap:6px;min-width:0;padding:7px 8px;display:flex}.amount-input__control input{color:#193e39;text-align:right;background:0 0;border:0;outline:0;width:100%;min-width:0;font-family:Manrope,sans-serif;font-size:.9rem;font-weight:700}.amount-input__control input::-webkit-inner-spin-button{appearance:none;margin:0}.amount-input__control input::-webkit-outer-spin-button{appearance:none;margin:0}.amount-input__control span{color:#87968f;white-space:nowrap;font-size:.65rem}.panel__note{color:#6f827a;margin:16px 0 0;font-size:.72rem;line-height:1.7}.expense-bars{gap:18px;padding-top:5px;display:grid}.expense-bar__label{color:#5b7169;justify-content:space-between;margin-bottom:7px;font-size:.76rem}.expense-bar__label strong{color:#214640;font-family:Manrope,sans-serif;font-size:.76rem}.expense-bar__track{background:#eef2ee;border-radius:9px;height:8px;overflow:hidden}.expense-bar__track span{border-radius:inherit;background:linear-gradient(90deg,#e7a449,#cf7d27);min-width:0;height:100%;transition:width .35s;display:block}.empty-insight{color:#748881;text-align:center;place-items:center;min-height:154px;padding:17px;display:grid}.empty-insight__icon{color:#aa7751;background:#fff4e8;border-radius:50%;place-items:center;width:44px;height:44px;margin-bottom:9px;display:grid}.empty-insight p{max-width:210px;margin:0;font-size:.78rem;line-height:1.8}.insight-result{color:#61766d;border-top:1px solid #e5ece7;justify-content:space-between;align-items:center;margin-top:24px;padding:13px 0 0;font-size:.75rem;display:flex}.insight-result strong{color:#0d8067;font-family:Manrope,sans-serif;font-size:1.08rem}.history-section{border-radius:18px;margin-top:17px;padding:23px}.history-section__header{justify-content:space-between;margin-bottom:18px}.history-count{color:#63786f;gap:6px;font-size:.75rem}.table-wrap{border:1px solid #e5ebe7;border-radius:12px;overflow-x:auto}table{border-collapse:collapse;text-align:right;width:100%;min-width:745px}th{color:#71857d;white-space:nowrap;background:#f5f8f5;padding:12px 14px;font-size:.69rem;font-weight:700}td{color:#36544e;white-space:nowrap;border-top:1px solid #e8edea;padding:14px;font-family:Manrope,IBM Plex Sans Arabic,sans-serif;font-size:.76rem;font-weight:600}tbody tr{transition:background .16s}tbody tr:hover,tbody tr.is-selected{background:#f0f8f4}.month-link{color:#166b59;background:0 0;border:0;padding:0;font-family:IBM Plex Sans Arabic,sans-serif;font-weight:700}.result-chip{border-radius:7px;padding:5px 8px;font-family:Manrope,sans-serif;font-size:.7rem;display:inline-block}.result-chip--positive{color:#08785f;background:#e5f5ed}.result-chip--negative{color:#a65a26;background:#fff0e7}.empty-history{color:#71847b;border:1px dashed #d5e0d9;border-radius:12px;align-items:center;gap:13px;padding:22px;display:flex}.empty-history>span{color:#367d6c;background:#e9f5f0;border-radius:50%;flex:none;place-items:center;width:42px;height:42px;display:grid}.empty-history h3{color:#3c5a52;margin:0 0 3px;font-size:.86rem}.empty-history p{margin:0;font-size:.74rem;line-height:1.7}@media (width<=830px){.metrics-grid{grid-template-columns:1fr 1fr}.profit-card{grid-column:1/-1}.workspace-grid{grid-template-columns:1fr}}@media (width<=610px){.app-shell{width:min(100% - 24px,1180px);padding-top:18px}.topbar{align-items:flex-start;padding-bottom:22px}.save-state{margin-top:8px;font-size:.68rem}.intro-row{padding:27px 0 20px;display:block}.month-switcher{justify-content:space-between;width:100%;margin-top:20px}.month-field{flex:1;justify-content:center}.metrics-grid{grid-template-columns:1fr;gap:10px}.profit-card,.metric-card{min-height:auto}.metric-card{padding:17px}.metric-value{margin:17px 0 6px}.entry-panel,.insight-panel,.history-section{padding:17px}.amount-input{grid-template-columns:35px 1fr;gap:0;min-height:95px}.amount-input__control{grid-column:1/-1;margin-top:8px}.amount-input__copy{padding-inline-start:5px}.amount-input__hint{white-space:normal}.history-section__header{align-items:flex-start}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition:none!important}}.topbar__actions{align-items:center;gap:10px;display:flex}.quiet-button,.primary-button,.small-add-button{border-radius:10px;justify-content:center;align-items:center;gap:8px;min-height:40px;padding:0 14px;font-size:.78rem;font-weight:700;transition:background .18s,border-color .18s,transform .18s;display:inline-flex}.quiet-button{color:#176b58;background:#f6fbf8;border:1px solid #cfe2d8}.quiet-button:hover{background:#eaf6f0;border-color:#7db8a7}.primary-button{color:#fff;background:#0d8067;border:1px solid #0d8067;box-shadow:0 7px 16px #0d806726}.primary-button:hover{background:#096b56;border-color:#096b56;transform:translateY(-1px)}button:disabled{cursor:not-allowed;opacity:.58;transform:none!important}.logout-button{border:1px solid #e1e8e3}.save-state__dot--pending{background:#dd9b3a;box-shadow:0 0 0 4px #dd9b3a1f}.telegram-settings{margin:18px 0 0;padding:22px}.telegram-settings .panel__header{margin-bottom:12px}.settings-copy,.settings-hint{color:#667b72;font-size:.8rem;line-height:1.8}.settings-copy{margin:0 0 9px}.settings-copy code{color:#145947;direction:ltr;background:#eaf6f0;border-radius:5px;padding:2px 6px}.bot-identity{color:#46645a;margin:0 0 12px;font-size:.8rem}.bot-identity a{color:#08785f;font-family:Manrope,sans-serif;font-weight:700}.settings-form{grid-template-columns:minmax(220px,1fr) auto;align-items:end;gap:14px;display:grid}.settings-field{color:#31574d;gap:7px;font-size:.76rem;font-weight:700;display:grid}.settings-field input{color:#193e39;text-align:left;direction:ltr;background:#fbfcfa;border:1px solid #dce7df;border-radius:9px;outline:none;width:100%;min-height:42px;padding:0 12px;font-family:Manrope,sans-serif}.settings-field input:focus,.detail-name input:focus,.detail-amount input:focus{border-color:#54a993;box-shadow:0 0 0 3px #0d806714}.settings-actions{gap:8px;display:flex}.settings-hint{margin:11px 0 0;font-size:.72rem}.inline-feedback{color:#23705d;margin:9px 0 0;font-size:.78rem;line-height:1.7}.notice{border-radius:10px;margin-top:12px;padding:11px 13px;font-size:.78rem;line-height:1.8}.notice--success{color:#17654f;background:#eef9f3;border:1px solid #cbe8da}.notice--error{color:#9a432d;background:#fff5f0;border:1px solid #f0d2c5}.notice--warning{color:#805617;background:#fff9e9;border:1px solid #f0dfba}.notice--info{color:#335b6d;background:#f2f8fa;border:1px solid #d4e5eb}.migration-banner{color:#6f541d;background:#fffaf0;border:1px solid #ead8b2;border-radius:13px;justify-content:space-between;align-items:center;gap:18px;margin-top:17px;padding:15px 17px;display:flex}.migration-banner strong{font-size:.82rem}.migration-banner p{color:#84734b;margin:4px 0 0;font-size:.73rem;line-height:1.7}.detail-section{border-top:1px solid #e6ece7;margin-top:18px;padding:15px 0 0}.detail-section__heading,.detail-section__title,.detail-total{justify-content:space-between;align-items:center;gap:10px;display:flex}.detail-section__title{justify-content:flex-start}.detail-section__title h3{color:#25483f;margin:0;font-size:.86rem}.detail-section__title p{color:#85938d;margin:3px 0 0;font-size:.68rem}.detail-icon{color:#08785f;background:#e7f5ee;border-radius:10px;flex:none;place-items:center;width:33px;height:33px;display:grid}.detail-icon--amber{color:#a66113;background:#fff1d9}.small-add-button{color:#0d8067;background:#f6fbf8;border:1px solid #d2e6dc;min-height:34px;padding:0 10px;font-size:.7rem}.small-add-button:hover{background:#eaf6f0;border-color:#8bbdac}.detail-empty{color:#81918a;border:1px dashed #dfe7e1;border-radius:9px;margin:13px 0 5px;padding:10px 12px;font-size:.72rem}.detail-rows{gap:7px;margin-top:11px;display:grid}.detail-row{grid-template-columns:minmax(100px,1fr) minmax(120px,160px) 34px;align-items:center;gap:8px;display:grid}.detail-name input,.detail-amount input{color:#23473e;background:#fafcf9;border:1px solid #e1e9e3;border-radius:8px;outline:none;width:100%;min-width:0;min-height:38px;padding:0 9px;font-size:.74rem}.detail-amount{direction:ltr;background:#fafcf9;border:1px solid #e1e9e3;border-radius:8px;align-items:center;gap:5px;min-width:0;padding-inline-end:7px;display:flex}.detail-amount:focus-within{border-color:#54a993;box-shadow:0 0 0 3px #0d806714}.detail-amount input{text-align:right;background:0 0;border:0;min-height:36px;font-family:Manrope,sans-serif}.detail-amount input:focus{box-shadow:none;border:0}.detail-amount span{color:#87968f;font-size:.64rem}.detail-amount input::-webkit-inner-spin-button{appearance:none;margin:0}.detail-amount input::-webkit-outer-spin-button{appearance:none;margin:0}.remove-row-button{color:#a9664f;background:#fff5f0;border:0;border-radius:8px;place-items:center;width:33px;height:33px;display:grid}.remove-row-button:hover{color:#963c25;background:#ffe9df}.detail-total{color:#73877d;border-top:1px dashed #e6ece7;margin-top:10px;padding-top:9px;font-size:.72rem}.detail-total strong{color:#265448;font-family:Manrope,IBM Plex Sans Arabic,sans-serif;font-size:.75rem}.submit-report-button{width:100%;min-height:47px;margin-top:18px;font-size:.86rem}.delivery-status{margin:10px 0 0;font-size:.74rem}.delivery-status--sent{color:#1d7b5d}.delivery-status--failed{color:#a85e32}.delivery-status--sending{color:#55768a}.privacy-note{color:#70857b;border-top:1px solid #e6ece7;align-items:flex-start;gap:8px;margin-top:18px;padding-top:13px;font-size:.72rem;line-height:1.7;display:flex}.privacy-note svg{color:#34846f;flex:none}.app-footer{color:#87968f;text-align:center;margin-top:18px;font-size:.68rem;line-height:1.8}.auth-screen{place-items:center;min-height:100vh;padding:24px;display:grid}.auth-card{text-align:center;background:#fffffff5;border:1px solid #dce5df;border-radius:20px;width:min(100%,440px);padding:35px;box-shadow:0 20px 60px #183f3517}.auth-logo{border-radius:16px;width:56px;height:56px;margin-bottom:17px;box-shadow:0 8px 18px #0d806729}.auth-card h1{margin:0 0 12px;font-size:1.5rem}.auth-card__copy{color:#667b72;margin:0 auto 21px;font-size:.86rem;line-height:1.9}.auth-button{width:100%;min-height:46px}.auth-card__foot{color:#8b9891;margin:16px 0 0;font-size:.7rem}.visually-hidden{clip:rect(0,0,0,0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}table{min-width:920px}@media (width<=830px){.settings-form{grid-template-columns:1fr}.settings-actions{flex-wrap:wrap}}@media (width<=610px){.topbar{align-items:flex-start;gap:10px}.topbar__actions{flex-wrap:wrap;justify-content:flex-end;gap:6px;max-width:62%}.topbar__actions .save-state{order:2;justify-content:flex-end;width:100%;margin:0}.topbar__actions .quiet-button{min-height:34px;padding:0 9px;font-size:.68rem}.topbar__actions .logout-button{width:34px;height:34px}.telegram-settings{padding:17px}.settings-actions>button{flex:100%}.migration-banner{flex-direction:column;align-items:flex-start}.migration-banner .quiet-button{width:100%}.detail-section__heading{align-items:flex-start}.detail-row{grid-template-columns:minmax(90px,1fr) minmax(105px,130px) 32px;gap:6px}.detail-name input,.detail-amount input{font-size:.69rem}.detail-total{align-items:flex-start}.auth-card{padding:27px 21px}}.schedule-section{border-top:1px solid #e2ebe5;margin-top:22px;padding-top:19px}.schedule-header{justify-content:space-between;align-items:center;gap:16px;margin-bottom:14px;display:flex}.schedule-header h3{color:#23483f;margin:0;font-size:.92rem}.schedule-toggle{color:#176b58;white-space:nowrap;cursor:pointer;background:#f3faf6;border:1px solid #d6e7dd;border-radius:10px;align-items:center;gap:8px;padding:9px 12px;font-size:.75rem;font-weight:700;display:inline-flex}.schedule-toggle input{accent-color:#0d8067;width:16px;height:16px}.schedule-fields{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.schedule-fields .settings-field select{color:#193e39;width:100%;min-height:42px;font:inherit;background:#fbfcfa;border:1px solid #dce7df;border-radius:9px;outline:none;padding:0 11px;font-size:.78rem}.schedule-fields .settings-field input:focus,.schedule-fields .settings-field select:focus{border-color:#54a993;box-shadow:0 0 0 3px #0d806714}.schedule-fields .settings-field input{direction:ltr}.schedule-fields .settings-field select{direction:rtl}.schedule-last-sent{color:#61786d;margin:10px 0 0;font-size:.75rem}.schedule-last-sent strong{color:#176b58}.schedule-save-button{margin-top:13px}@media (width<=830px){.schedule-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=610px){.schedule-header{flex-direction:column;align-items:flex-start}.schedule-fields{grid-template-columns:1fr}.schedule-save-button{width:100%}}
