:root{--forest:#123d2d;--forest-2:#1a513c;--green:#2c7553;--sage:#e9f1e8;--gold:#cba658;--gold-light:#f5edda;--ink:#202b25;--muted:#78837d;--line:#e6eae6;--surface:#fff;--canvas:#f6f8f5;--red:#b6443d;--red-light:#fbefed;--shadow:0 10px 30px rgba(27,52,38,.06);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;background:var(--canvas);font-size:14px;line-height:1.45}.app-shell{min-height:100vh;display:flex}.sidebar{width:252px;background:var(--forest);color:#fff;position:fixed;inset:0 auto 0 0;padding:28px 18px 20px;display:flex;flex-direction:column;z-index:5}.brand{display:flex;align-items:center;gap:12px;color:#fff;text-decoration:none;padding:0 8px 32px}.brand-mark{width:39px;height:39px;border-radius:13px;background:linear-gradient(135deg,#e4c47a,#b68a37);color:#163a2a;font-weight:850;font-size:13px;display:grid;place-items:center;box-shadow:0 5px 12px #071c1444;letter-spacing:-.5px;flex:none}.brand strong{display:block;font-size:19px;letter-spacing:-.5px}.brand small{display:block;color:#bdd0c3;font-size:10px;margin-top:2px;letter-spacing:.2px}.nav-label,.eyebrow{font-size:9px;letter-spacing:1.5px;font-weight:800}.nav-label{color:#9bb3a3;padding:0 12px 12px}.side-nav{display:grid;gap:6px}.nav-item{display:flex;align-items:center;gap:12px;border:0;background:transparent;color:#d6e2d9;text-align:left;padding:11px 12px;border-radius:10px;cursor:pointer;font:inherit;transition:.18s}.nav-item:hover{background:#ffffff12}.nav-item.active{background:#ffffff18;color:#fff;box-shadow:inset 3px 0 0 var(--gold)}.nav-icon{width:24px;height:24px;display:grid;place-items:center;color:#d8bd79;font-size:18px}.nav-item span:last-child{font-size:12px;font-weight:650}.nav-item small{display:block;color:#9bb3a3;font-size:9px;font-weight:450;margin-top:1px}.sidebar-bottom{margin-top:auto}.local-card{display:flex;gap:10px;align-items:center;padding:12px;background:#ffffff10;border:1px solid #ffffff10;border-radius:11px}.local-dot{width:8px;height:8px;background:#84cb8f;border-radius:50%;box-shadow:0 0 0 4px #84cb8f20}.local-card b,.local-card small{display:block}.local-card b{font-size:10px}.local-card small{font-size:9px;color:#b5c8bb;margin-top:2px}.sidebar-note{font-size:10px;line-height:1.6;color:#d1dcd3;padding:16px 10px}.sidebar-copy{font-size:9px;color:#8fa797;padding:0 10px}.main-area{margin-left:252px;min-width:0;width:calc(100% - 252px);padding:0 38px 24px}.topbar{height:76px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:16px}.topbar-title{display:flex;flex-direction:column;gap:3px}.topbar-title .eyebrow{color:var(--green)}.topbar-sub{font-size:10px;color:var(--muted)}.topbar-actions{display:flex;align-items:center;gap:11px}.date-chip{font-size:10px;font-weight:650;color:#526057;background:#fff;border:1px solid var(--line);padding:8px 11px;border-radius:9px}.notification-button{border:1px solid #d8e3d9;background:#fff;color:var(--forest);padding:8px 11px;border-radius:9px;font-size:10px;font-weight:700;cursor:pointer}.notification-button:hover{background:var(--sage)}.bell{font-size:14px;margin-right:5px}.avatar{width:31px;height:31px;border-radius:50%;background:var(--forest);color:#f0d38b;font-weight:800;display:grid;place-items:center}.mobile-brand{display:none}.reminder-notice{margin:17px 0 20px;border:1px solid #e9dfc8;background:#fbf8ee;border-radius:9px;padding:9px 12px;display:flex;align-items:flex-start;gap:9px;color:#675f4f;font-size:10px;line-height:1.5}.reminder-notice b{color:#4e4a3f}.notice-icon{display:grid;place-items:center;width:15px;height:15px;border-radius:50%;background:#d6bd80;color:#fff;font-size:10px;font-weight:800;flex:none;margin-top:1px}.page-content{max-width:1350px;margin:0 auto}.app-footer{display:flex;justify-content:space-between;color:#9aa39d;font-size:9px;padding:25px 0 8px}.hero{position:relative;overflow:hidden;min-height:225px;border-radius:16px;background:var(--forest);color:#fff;display:flex;align-items:center;padding:28px 34px;margin-bottom:19px;box-shadow:var(--shadow)}.hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#103b2c 0%,#103b2cee 38%,#103b2c82 68%,#103b2c18 100%),radial-gradient(circle at 81% 24%,#ffc857 0 8%,transparent 8.5%),radial-gradient(circle at 94% 69%,#ee5b3d 0 16%,transparent 16.5%),radial-gradient(circle at 74% 90%,#7254c4 0 18%,transparent 18.5%),linear-gradient(115deg,#168ca5,#53289e 80%);opacity:1}.hero-content{position:relative;z-index:1;max-width:590px}.hero-kicker{display:flex;align-items:center;gap:7px;color:#d7bf7e;font-size:9px;font-weight:800;letter-spacing:1.4px}.hero-kicker span{width:5px;height:5px;border-radius:50%;background:#d7bf7e}.hero h1{font-size:27px;line-height:1.15;letter-spacing:-.7px;margin:12px 0 7px}.hero p{color:#d2dfd5;font-size:11px;max-width:430px;margin:0 0 18px}.hero-actions{display:flex;gap:9px;flex-wrap:wrap}.button{border:0;border-radius:8px;padding:10px 14px;font:inherit;font-size:10px;font-weight:750;cursor:pointer;transition:.16s}.button:hover{transform:translateY(-1px);filter:brightness(1.04)}.button.gold{background:var(--gold);color:#183a2b}.button.ghost{background:#ffffff17;border:1px solid #ffffff46;color:white}.button.primary{background:var(--forest);color:#fff}.button.secondary{background:#fff;border:1px solid var(--line);color:var(--forest)}.button.danger{background:var(--red-light);color:var(--red)}.button.small{padding:7px 10px;font-size:9px}.button:disabled{opacity:.55;cursor:not-allowed;transform:none}.hero-side{position:absolute;right:32px;bottom:24px;z-index:1;text-align:right}.hero-side small{display:block;font-size:8px;color:#c3d2c7;letter-spacing:1.2px}.hero-side strong{display:block;font-size:14px;margin-top:4px;color:#f2d994}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:12px;margin:22px 0 12px}.section-heading h2{font-size:15px;letter-spacing:-.25px;margin:0}.section-heading p{margin:3px 0 0;color:var(--muted);font-size:10px}.section-heading .link-button{border:0;background:none;color:var(--green);font:inherit;font-size:10px;font-weight:750;cursor:pointer}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.stat-card,.panel,.product-card,.customer-card{background:var(--surface);border:1px solid #e9ede9;border-radius:12px;box-shadow:0 4px 16px rgba(27,52,38,.025)}.stat-card{padding:15px 16px;min-height:106px}.stat-top{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:10px}.stat-icon{width:27px;height:27px;border-radius:8px;background:var(--sage);color:var(--green);display:grid;place-items:center;font-size:13px}.stat-value{font-size:21px;font-weight:780;letter-spacing:-.6px;margin-top:9px}.stat-foot{font-size:9px;color:#8a948e;margin-top:2px}.stat-value.profit{color:var(--green)}.stat-value.loss{color:var(--red)}.content-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr);gap:14px;align-items:start}.panel{padding:16px}.panel-title{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:13px}.panel-title h3{font-size:12px;margin:0}.panel-title p{font-size:9px;color:var(--muted);margin:3px 0 0}.pill{font-size:8px;font-weight:750;color:var(--green);background:#edf5ed;border-radius:20px;padding:5px 8px;white-space:nowrap}.task-list{display:grid;gap:8px}.task-row{display:flex;gap:10px;align-items:flex-start;border:1px solid #edf0ed;border-radius:9px;padding:10px}.task-check{width:17px;height:17px;accent-color:var(--green);flex:none;margin:1px 0 0;cursor:pointer}.task-copy{font-size:10px;font-weight:650}.task-copy small{display:block;color:var(--muted);font-size:9px;font-weight:450;margin-top:2px}.task-row.done .task-copy{text-decoration:line-through;color:#8c9790}.tip-box{background:#f8f5ec;border:1px solid #eee5cf;border-radius:10px;padding:12px 13px}.tip-label{font-size:8px;letter-spacing:1px;color:#9b7931;font-weight:800}.tip-text{font-size:11px;line-height:1.6;color:#3f463f;margin-top:5px}.tip-action{font-size:9px;color:#8a6c2c;font-weight:700;margin-top:8px}.review-form{display:flex;gap:7px;margin-top:10px}.field,select,textarea{font:inherit;color:var(--ink);border:1px solid #dfe5df;background:#fff;border-radius:8px;padding:9px 10px;font-size:10px;outline:none;width:100%}.field:focus,select:focus,textarea:focus{border-color:#70a582;box-shadow:0 0 0 3px #4d9a6720}.review-form .field{flex:1}.review-note{font-size:9px;color:var(--muted);margin-top:8px}.review-saved{color:var(--green);font-weight:700}.followup-list,.activity-list{display:grid;gap:8px}.followup-item,.activity-item{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid #edf0ed;padding:9px 10px;border-radius:9px}.followup-item strong,.activity-item strong{font-size:10px;display:block}.followup-item small,.activity-item small{font-size:8px;color:var(--muted);display:block;margin-top:2px}.tag-due{font-size:8px;padding:4px 6px;background:var(--gold-light);color:#8b6b2e;border-radius:6px;white-space:nowrap}.empty-state{border:1px dashed #dce4dd;border-radius:10px;color:#89948d;text-align:center;padding:18px 12px;font-size:10px}.empty-state strong{display:block;color:#4f5c54;font-size:10px;margin-bottom:3px}.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.product-card{padding:14px}.product-top{display:flex;justify-content:space-between;gap:8px;align-items:flex-start}.product-name{font-size:12px;font-weight:750}.product-roman{font-size:9px;color:var(--muted);margin-top:2px}.stock-level{font-size:8px;font-weight:750;border-radius:20px;padding:5px 7px;color:var(--green);background:#edf5ed;white-space:nowrap}.stock-level.low{color:var(--red);background:var(--red-light)}.product-number{font-size:22px;font-weight:780;letter-spacing:-.5px;margin-top:17px}.product-unit{font-size:10px;color:var(--muted);font-weight:550}.product-meta{font-size:9px;color:#76827a;margin-top:2px}.product-actions{display:flex;gap:7px;margin-top:13px}.product-actions .button{flex:1}.notice-alert{background:var(--red-light);color:#9e3f39;border:1px solid #f2d9d6;padding:10px 12px;border-radius:9px;font-size:10px;font-weight:700;margin-bottom:13px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.form-field label{display:block;color:#657169;font-size:9px;font-weight:700;margin:0 0 5px}.form-field.full{grid-column:1/-1}.form-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:13px}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:10px}.data-table{border-collapse:collapse;width:100%;min-width:620px;background:white}.data-table th,.data-table td{text-align:left;padding:10px 12px;border-bottom:1px solid #edf0ed;font-size:9px}.data-table th{font-size:8px;color:#7b877f;background:#f9faf9;text-transform:uppercase;letter-spacing:.6px}.data-table tr:last-child td{border-bottom:0}.data-table td strong{font-size:10px}.money{font-variant-numeric:tabular-nums;font-weight:700}.gain{color:var(--green)}.loss{color:var(--red)}.page-intro{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;margin:3px 0 17px}.page-intro h1{font-size:22px;letter-spacing:-.5px;margin:0}.page-intro p{color:var(--muted);font-size:10px;margin:4px 0 0}.page-actions{display:flex;gap:8px}.sale-form{max-width:780px}.form-hint{font-size:9px;color:var(--muted);margin-top:8px}.month-strip{display:flex;gap:14px;flex-wrap:wrap;color:#647068;font-size:9px}.month-strip b{color:var(--ink);font-size:11px;margin-left:4px}.customer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.customer-card{padding:13px}.customer-head{display:flex;justify-content:space-between;gap:8px}.customer-name{font-size:12px;font-weight:750}.customer-phone{font-size:9px;color:var(--muted);margin-top:3px}.customer-detail{display:flex;gap:12px;border-top:1px solid #edf0ed;margin-top:11px;padding-top:10px;color:#667269;font-size:9px}.customer-follow{display:flex;justify-content:space-between;align-items:center;margin-top:11px}.progress-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.progress-number{font-size:21px;font-weight:800}.progress-caption{font-size:9px;color:var(--muted)}.week-chart{height:115px;display:flex;align-items:end;gap:10px;padding:12px 5px 0;border-bottom:1px solid var(--line)}.week-col{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;gap:5px}.week-bar-track{height:78px;width:100%;max-width:26px;background:#f1f4f1;border-radius:5px 5px 0 0;display:flex;align-items:flex-end;overflow:hidden}.week-bar{width:100%;background:linear-gradient(0deg,#256347,#83b493);border-radius:5px 5px 0 0;min-height:2px}.week-col small{font-size:8px;color:#87928b}.week-legend{font-size:8px;color:#87928b;margin-top:9px}.weekly-lines{display:grid;gap:8px}.weekly-line{display:flex;justify-content:space-between;border-bottom:1px solid #f0f2f0;padding:5px 0;font-size:9px;color:#68746c}.weekly-line b{color:var(--ink)}.toast-region{position:fixed;right:20px;top:90px;z-index:20;display:grid;gap:8px}.toast{background:var(--forest);color:#fff;padding:11px 14px;border-radius:9px;box-shadow:var(--shadow);font-size:10px;max-width:300px;animation:slidein .2s ease}.toast.error{background:#a5433d}.toast.gold{background:#765b23}@keyframes slidein{from{transform:translateY(-5px);opacity:0}to{transform:translateY(0);opacity:1}}.modal-backdrop{position:fixed;inset:0;background:#0d2119aa;display:grid;place-items:center;padding:16px;z-index:30}.modal{background:#fff;width:min(460px,100%);border-radius:14px;padding:19px;box-shadow:0 20px 55px #0b201777}.modal-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.modal-header h3{font-size:14px;margin:0}.close-modal{border:0;background:#f3f5f3;width:27px;height:27px;border-radius:50%;cursor:pointer}.modal-help{font-size:9px;color:var(--muted);margin:-7px 0 13px}.inline-actions{display:flex;gap:8px;align-items:center}.mobile-nav{display:none}.hidden{display:none!important}
@media(max-width:1100px){.main-area{padding:0 25px 20px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-side{right:22px}.content-grid{grid-template-columns:minmax(0,1fr) minmax(250px,.85fr)}}
@media(max-width:760px){body{font-size:13px}.sidebar{display:none}.main-area{margin:0;width:100%;padding:0 15px 82px}.topbar{height:62px}.mobile-brand{display:flex;align-items:center;gap:8px;color:var(--forest);font-size:15px}.mobile-brand .brand-mark{width:30px;height:30px;border-radius:10px;font-size:11px}.topbar-title{display:none}.topbar-actions{gap:7px}.date-chip{display:none}.notification-button{font-size:0;padding:7px 9px}.notification-button .bell{font-size:15px;margin:0}.notification-button #notification-label{font-size:0}.avatar{width:29px;height:29px}.reminder-notice{margin:12px 0 15px;font-size:9px}.hero{min-height:228px;padding:22px 20px;margin-bottom:14px}.hero:before{background:linear-gradient(90deg,#103b2c 0%,#103b2cde 50%,#103b2c7a 100%),radial-gradient(circle at 84% 35%,#ffc857 0 11%,transparent 11.5%),radial-gradient(circle at 96% 78%,#ee5b3d 0 20%,transparent 20.5%),linear-gradient(115deg,#168ca5,#53289e 80%)}.hero h1{font-size:23px;max-width:290px}.hero p{font-size:10px;max-width:285px}.hero-side{display:none}.section-heading{margin:17px 0 10px}.section-heading h2{font-size:13px}.stats-grid{gap:8px}.stat-card{padding:12px;min-height:96px}.stat-top{font-size:9px}.stat-value{font-size:18px}.stat-icon{width:24px;height:24px}.content-grid{grid-template-columns:1fr;gap:11px}.panel{padding:13px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.product-card{padding:12px}.product-number{font-size:20px;margin-top:13px}.customer-grid{grid-template-columns:1fr}.progress-grid{grid-template-columns:1fr}.page-intro{align-items:flex-start;flex-direction:column;margin:7px 0 14px}.page-intro h1{font-size:20px}.page-actions{width:100%}.page-actions .button{flex:1}.form-grid{grid-template-columns:1fr 1fr;gap:9px}.form-field.full{grid-column:1/-1}.app-footer{font-size:8px;gap:8px;line-height:1.5;padding:20px 0 0}.mobile-nav{position:fixed;display:grid;grid-template-columns:repeat(5,1fr);left:0;right:0;bottom:0;background:#fff;border-top:1px solid var(--line);padding:6px 6px calc(6px + env(safe-area-inset-bottom));z-index:10;box-shadow:0 -5px 18px #153d2d0b}.mobile-nav-item{border:0;background:none;color:#88938b;display:grid;justify-items:center;gap:1px;padding:3px;cursor:pointer;font:inherit}.mobile-nav-item span{font-size:17px;line-height:20px}.mobile-nav-item small{font-size:8px}.mobile-nav-item.active{color:var(--forest);font-weight:750}.toast-region{right:12px;left:12px;top:72px}.toast{max-width:none}.week-chart{height:100px}.week-bar-track{height:65px}.date-chip{font-size:9px}.modal{padding:16px}}
@media(max-width:380px){.main-area{padding-left:11px;padding-right:11px}.hero{padding:20px 16px}.hero h1{font-size:21px}.stats-grid{gap:6px}.stat-card{padding:10px}.product-grid{gap:6px}.product-card{padding:10px}.product-name{font-size:11px}.button{padding:9px 10px}}

/* Persistent app-wide appearance preferences (works offline). */
:root[data-theme="dark"]{color-scheme:dark;--ink:#e7eee8;--muted:#a9b6ad;--line:#34443a;--surface:#1d2b23;--canvas:#111a15;--sage:#263d30;--gold-light:#473b20;--red-light:#412725;--shadow:0 10px 30px #0004}
:root[data-theme="dark"] body{background:var(--canvas);color:var(--ink)}:root[data-theme="dark"] .panel,:root[data-theme="dark"] .stat-card,:root[data-theme="dark"] .product-card,:root[data-theme="dark"] .customer-card,:root[data-theme="dark"] .modal,:root[data-theme="dark"] .date-chip,:root[data-theme="dark"] .notification-button,:root[data-theme="dark"] .mobile-nav{background:var(--surface);border-color:var(--line);color:var(--ink)}:root[data-theme="dark"] .field,:root[data-theme="dark"] select,:root[data-theme="dark"] textarea,:root[data-theme="dark"] .button.secondary{background:#17221b;border-color:#405247;color:var(--ink)}:root[data-theme="dark"] .data-table{background:var(--surface);color:var(--ink)}:root[data-theme="dark"] .data-table th{background:#26352b;color:#c3cec5}:root[data-theme="dark"] .tip-box{background:#302c20;border-color:#51452c}:root[data-theme="dark"] .tip-text,:root[data-theme="dark"] .empty-state strong{color:#e0e7e0}:root[data-theme="dark"] .task-row,:root[data-theme="dark"] .followup-item,:root[data-theme="dark"] .activity-item{border-color:var(--line)}:root[data-theme="dark"] .reminder-notice{background:#302c20;border-color:#574a2b;color:#e4d8b8}:root[data-theme="dark"] .jao-wrap .jao-auth,:root[data-theme="dark"] .jao-wrap .jao-card,:root[data-theme="dark"] .jao-wrap .jao-product,:root[data-theme="dark"] .jao-wrap .jao-order,:root[data-theme="dark"] .jao-wrap .jao-own{background:var(--surface);color:var(--ink);border-color:var(--line)}:root[data-theme="dark"] .jao-wrap h2,:root[data-theme="dark"] .jao-wrap h3{color:#e4eee5}:root[data-theme="dark"] .jao-wrap input,:root[data-theme="dark"] .jao-wrap textarea,:root[data-theme="dark"] .jao-wrap select,:root[data-theme="dark"] .jao-wrap button{background:#17221b;color:var(--ink);border-color:#405247}:root[data-theme="dark"] .jao-wrap .jao-primary{background:#276344;color:#fff}
.preferences-panel{max-width:850px}.preferences-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.preference-card{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:18px;margin:0 0 14px}.preference-card h2{font-size:15px;margin:0}.preference-card p{font-size:11px;color:var(--muted)}.choice-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.choice-row button{border:1px solid var(--line);border-radius:8px;padding:9px 12px;background:var(--surface);color:var(--ink);font:inherit;font-size:11px;cursor:pointer}.choice-row button[aria-pressed="true"]{background:var(--forest);border-color:var(--forest);color:white}.preference-help{border-top:1px solid var(--line);padding-top:12px;margin-top:14px!important}
html[dir="rtl"] body{font-family:system-ui,-apple-system,"Noto Naskh Arabic","Noto Sans Arabic","Segoe UI",sans-serif}html[dir="rtl"] .sidebar{left:auto;right:0}html[dir="rtl"] .main-area{margin-left:0;margin-right:252px}html[dir="rtl"] .nav-item{text-align:right}html[dir="rtl"] .nav-item.active{box-shadow:inset -3px 0 0 var(--gold)}html[dir="rtl"] .hero-side{right:auto;left:32px;text-align:left}html[dir="rtl"] .notification-button .bell{margin-right:0;margin-left:5px}html[dir="rtl"] .jao-wrap{font-family:system-ui,-apple-system,"Noto Naskh Arabic","Noto Sans Arabic","Segoe UI",sans-serif}html[dir="rtl"] input[type="number"],html[dir="rtl"] input[type="tel"],html[dir="rtl"] input[type="email"],html[dir="rtl"] input[type="date"],html[dir="rtl"] input[type="url"]{direction:ltr;text-align:left}html[dir="rtl"] .money,html[dir="rtl"] .stat-value,html[dir="rtl"] .product-number{direction:ltr;unicode-bidi:plaintext;text-align:right}
@media(max-width:760px){.preferences-grid{grid-template-columns:1fr}html[dir="rtl"] .main-area{margin:0}html[dir="rtl"] .sidebar{display:none}}

.locale-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.locale-fields label{display:grid;gap:5px;font-size:10px;font-weight:700;color:var(--muted)}.locale-fields input,.locale-fields select{min-width:0;width:100%;font:inherit;font-size:11px}.locale-card .preference-help{line-height:1.6}@media(max-width:760px){.locale-fields{grid-template-columns:1fr}}

/* Settings: clearer, touch-friendly regional controls and a calmer account section. */
.preferences-panel{display:grid;gap:16px}.preferences-panel .preference-card{border-radius:16px;box-shadow:0 8px 24px #123d2d0b}.preferences-panel .preference-card h2{letter-spacing:-.01em}.locale-fields select,.locale-fields input{min-height:42px;border-radius:10px}.preferences-panel .choice-row button{min-height:42px}.preferences-panel .preference-help{max-width:78ch;margin-top:12px;line-height:1.7}
@media(max-width:760px){.preferences-panel{gap:12px}.preferences-panel .preference-card{padding:16px}.preferences-panel .preference-help{max-width:none}}

/* Owner-supplied JAW.Ali identity; the ledger remains business-neutral. */
.brand{gap:11px;padding-inline:4px}.brand-mark.brand-logo{width:48px;height:48px;padding:0;object-fit:contain;background:#0c1420;border:1px solid #ffffff36;border-radius:14px;box-shadow:0 5px 15px #071c1450}.brand small{font-size:10px}.hero{min-height:240px}.hero:before{background:radial-gradient(ellipse at 100% 0%,#3d806055,transparent 65%),linear-gradient(110deg,#103b2c,#1b513c);opacity:1}.hero:after{content:"";position:absolute;top:23px;inset-inline-end:26px;width:128px;height:128px;border-radius:21px;background:#0c1420 url('assets/jaw-ali-logo.webp?v=1.1.1') center/contain no-repeat;border:1px solid #cba65880;box-shadow:0 10px 26px #061c154d}.hero-content{max-width:calc(100% - 175px)}.hero-side{left:auto;right:auto;inset-inline-end:26px;max-width:160px}.hero h1{overflow-wrap:anywhere}.brand-logo{user-select:none}
@media(max-width:760px){.mobile-brand .brand-mark.brand-logo{width:38px;height:38px;border-radius:11px;border-color:#123d2d25}.hero{min-height:228px}.hero:after{display:none}.hero-content{max-width:100%}.hero:before{background:radial-gradient(ellipse at 100% 0%,#3d806055,transparent 65%),linear-gradient(135deg,#103b2c,#1b513c)}}

/* Keep every finance section reachable on shorter desktop displays. */
.side-nav{min-height:0;overflow-y:auto;overscroll-behavior:contain}.sidebar-bottom{padding-top:12px}.modal{max-height:calc(100dvh - 32px);overflow-y:auto}.choice-row{align-items:center}.choice-row .field{width:auto;max-width:100%}

/* Website footer: direct download of the existing signed Android release. */
.app-footer{align-items:center;gap:16px;border-top:1px solid var(--line);margin-top:24px;padding:16px 0 8px}.app-footer-copy{display:flex;flex-wrap:wrap;gap:6px 20px;line-height:1.6}.app-download-link{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:none;min-height:40px;padding:9px 14px;border:1px solid var(--gold);border-radius:9px;background:var(--forest);color:#f5edda;text-decoration:none;white-space:nowrap;font-size:11px;font-weight:750;box-shadow:0 3px 10px #123d2d10;transition:background .16s ease}.app-download-link:hover{background:var(--forest-2)}.app-download-link:focus-visible{outline:2px solid var(--gold);outline-offset:3px}.app-download-link svg{flex:none}
@media(max-width:760px){.app-footer{gap:12px;padding:14px 0 0;margin-top:20px}.app-footer-copy{flex:1;display:grid;gap:4px}.app-download-link{padding:9px 11px;font-size:10px;min-height:42px}}

@media(max-width:760px){.mobile-nav{background:rgba(255,255,255,.96);backdrop-filter:blur(14px);box-shadow:0 -8px 24px #202b2514}.mobile-nav-item{min-height:48px;border-radius:13px;transition:background .15s,color .15s}.mobile-nav-item.active{background:#f1effb;color:#4d3d98}.mobile-nav-item span{font-size:19px}.mobile-nav-item small{font-size:9px;font-weight:650}}

.offline-account-button{border:1px solid #d8e3d9;background:#fff;color:var(--forest);padding:8px 10px;border-radius:9px;font:inherit;font-size:9px;font-weight:750;cursor:pointer;white-space:nowrap}.offline-account-button:hover{background:var(--sage)}#offline-account-layer{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:18px;background:rgba(8,28,18,.72);backdrop-filter:blur(5px);overflow:auto}.offline-account-card{width:min(100%,470px);max-height:94vh;overflow:auto;background:var(--surface,#fff);color:var(--ink,#202b25);border:1px solid #dce5dc;border-radius:18px;padding:27px;box-shadow:0 24px 80px #051b12aa}.offline-account-mark{display:inline-grid;place-items:center;background:linear-gradient(135deg,#e4c47a,#b68a37);color:#153b2a;border-radius:10px;padding:8px 11px;font-size:12px;font-weight:850;letter-spacing:.2px}.offline-account-eyebrow{margin:18px 0 4px;color:var(--green,#2c7553);font-size:9px;font-weight:850;letter-spacing:1.5px}.offline-account-card h1{margin:0 0 8px;font-size:23px;line-height:1.2;letter-spacing:-.4px}.offline-account-intro{margin:0 0 18px;color:var(--muted,#78837d);font-size:12px;line-height:1.65}.offline-account-card label{display:block;margin-bottom:6px;font-size:11px;font-weight:750}.offline-account-card input{width:100%;min-height:47px;font-size:16px;letter-spacing:.3px}.offline-account-actions{display:grid;gap:9px;margin-top:12px}.offline-account-actions .button{min-height:44px;font-size:11px}.offline-account-error{min-height:21px;margin-top:9px;color:var(--red,#b6443d);font-size:10px;line-height:1.5}.offline-account-migration{margin-top:7px;padding:11px 12px;border:1px solid #e7d9b5;border-radius:9px;background:#fbf7eb;color:#584d38;font-size:10px;line-height:1.55}.offline-account-migration b{display:block;margin-bottom:3px}.offline-account-notice{margin-top:12px;padding:12px;border:1px solid #e5eae5;border-radius:9px;background:var(--canvas,#f6f8f5);color:var(--muted,#66746a);font-size:10px;line-height:1.6}.offline-account-notice b{color:var(--forest,#123d2d)}.offline-account-back{display:block;width:100%;margin-top:13px;border:0;background:transparent;color:var(--green,#2c7553);font:inherit;font-size:10px;font-weight:750;text-align:left;cursor:pointer}.offline-account-foot{display:block;margin-top:14px;color:var(--muted,#78837d);font-size:9px;line-height:1.5}@media(max-width:760px){.topbar-actions{gap:6px}.offline-account-button{padding:8px 7px;font-size:8px}.offline-account-card{padding:22px 18px;border-radius:15px}.offline-account-card h1{font-size:21px}#offline-account-layer{padding:12px}}


/* v1.4.4: keep the four primary mobile destinations in a fixed bottom bar. */
@media (max-width: 1100px) {
  .app-shell { display: block; }
  .sidebar { display: none; }
  .main-area { margin: 0; width: 100%; padding: 0 22px calc(88px + env(safe-area-inset-bottom)); }
  .topbar { height: 64px; }
  .mobile-brand { display: flex; align-items: center; gap: 8px; color: var(--forest); font-size: 15px; }
  .topbar-title { display: none; }
  .topbar-actions { gap: 7px; }
  .date-chip { display: none; }
  .notification-button { font-size: 0; padding: 7px 9px; }
  .notification-button .bell { font-size: 15px; margin: 0; }
  .notification-button #notification-label { font-size: 0; }
  .avatar { width: 30px; height: 30px; }
  .mobile-nav {
    position: fixed; top: auto; bottom: 0; left: 0; right: 0;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0; width: 100%; margin: 0; padding: 5px 8px calc(6px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.98); border: 0; border-top: 1px solid var(--line);
    border-radius: 0; box-shadow: 0 -6px 22px rgba(18,61,45,.1);
    backdrop-filter: blur(14px); z-index: 20;
  }
  .mobile-nav-item { min-width: 0; min-height: 57px; border: 0; border-radius: 9px; background: transparent; color: #68766d; display: grid; justify-items: center; align-content: center; gap: 2px; padding: 3px 2px; cursor: pointer; font: inherit; transition: background .15s, color .15s; }
  .mobile-nav-item>span { display:grid;place-items:center;width:25px;height:25px;color:currentColor; }
  .mobile-nav-item svg { width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round; }
  .mobile-nav-item small { font-size: 9px; font-weight: 650; }
  .mobile-nav-item.active { background: #fff2f7; color: #c52f69; font-weight: 750; box-shadow: inset 0 -2px 0 #d6437d; }
  .reminder-notice { margin-top: 0; }
}
@media (max-width: 380px) {
  .main-area { padding-left: 11px; padding-right: 11px; padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .mobile-nav { padding-inline: 4px; }
  .mobile-nav-item small { font-size: 8px; }
}
:root[data-theme="dark"] .mobile-nav{background:rgba(29,43,35,.98);border-top-color:#405347}:root[data-theme="dark"] .mobile-nav-item{color:#b9c9bd}:root[data-theme="dark"] .mobile-nav-item.active{background:#442836;color:#ff9abd;box-shadow:inset 0 -2px 0 #dd5385}

/* More Tools: lightweight, responsive feature cards with pastel illustration wells. */
.more-tools-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:stretch}
.more-tool-card{--tool-tint:#e8f3fc;--tool-ink:#4b83ad;min-width:0;width:100%;display:flex;flex-direction:column;align-items:stretch;text-align:start;padding:12px;border:1px solid color-mix(in srgb,var(--tool-ink) 13%,transparent);border-radius:18px;background:var(--surface);color:var(--ink);box-shadow:0 7px 22px rgba(27,52,38,.055);font:inherit;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.more-tool-card:hover{transform:translateY(-3px);box-shadow:0 13px 27px rgba(27,52,38,.11);border-color:color-mix(in srgb,var(--tool-ink) 35%,transparent)}.more-tool-card:focus-visible{outline:3px solid var(--tool-ink);outline-offset:3px}.more-tool-stock{--tool-tint:#e8f3fc;--tool-ink:#4884b2}.more-tool-purchases{--tool-tint:#f0ecfc;--tool-ink:#7663b0}.more-tool-expenses{--tool-tint:#fff0e3;--tool-ink:#be7138}.more-tool-customers{--tool-tint:#e8f4e9;--tool-ink:#4d8a5d}.more-tool-progress{--tool-tint:#fbf3d9;--tool-ink:#a78123}.more-tool-settings{--tool-tint:#faeaf0;--tool-ink:#ae5b78}
.more-tool-art{height:142px;display:grid;place-items:center;overflow:hidden;border-radius:13px;background:var(--tool-tint)}.more-tool-art img{display:block;width:min(76%,180px);height:120px;object-fit:contain;transition:transform .2s ease}.more-tool-card:hover .more-tool-art img{transform:scale(1.04)}.more-tool-copy{display:grid;gap:7px;padding:13px 4px 3px}.more-tool-title{font-size:16px;line-height:1.3;font-weight:780;letter-spacing:-.2px}.more-tool-description{min-height:38px;color:var(--muted);font-size:13px;line-height:1.55}.more-tool-action{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:42px;padding:0 13px;border-radius:10px;background:var(--forest);color:white;font-size:12px;font-weight:750;margin-top:3px}.more-tool-action span{font-size:16px;line-height:1}
@media(max-width:1100px){.more-tools-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.more-tools-grid{gap:9px}.more-tool-card{padding:9px;border-radius:15px}.more-tool-art{height:108px}.more-tool-art img{height:95px;width:82%}.more-tool-copy{gap:6px;padding:10px 2px 2px}.more-tool-title{font-size:14px}.more-tool-description{font-size:12px;min-height:56px}.more-tool-action{min-height:42px;padding:0 9px;font-size:12px}}
@media(max-width:340px){.more-tools-grid{grid-template-columns:1fr}.more-tool-art{height:130px}.more-tool-art img{height:112px}.more-tool-description{min-height:0}}
@media(prefers-reduced-motion:reduce){.more-tool-card,.more-tool-art img{transition:none}.more-tool-card:hover{transform:none}.more-tool-card:hover .more-tool-art img{transform:none}}
:root[data-theme="dark"] .more-tool-card{background:var(--surface);border-color:color-mix(in srgb,var(--tool-ink) 40%,var(--line));box-shadow:0 7px 20px #0002}:root[data-theme="dark"] .more-tool-art{background:color-mix(in srgb,var(--tool-ink) 20%,#1d2b23)}:root[data-theme="dark"] .more-tool-action{background:#286244}
