:root{color-scheme:dark;--bg:#0B1220;--card:#141C2E;--border:#22304A;--text:#E8EEF8;--muted:#8A9BB8;--teal:#14B8A6;--blue:#0EA5E9;--gold:#F5B942;--danger:#EF4444;--success:#22C55E;--radius:18px}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}body{margin:0;background:var(--bg);color:var(--text);font-family:-apple-system,"SF Arabic",Tahoma,sans-serif;font-size:15px;line-height:1.6;overscroll-behavior-y:none}button,input,textarea,select{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button{color:inherit;cursor:pointer}button:disabled{opacity:.5;cursor:wait}a{color:inherit;text-decoration:none}[hidden]{display:none!important}svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}button:focus-visible,a:focus-visible{outline:2px solid var(--teal);outline-offset:3px}input:focus,textarea:focus,select:focus{outline:none;border-color:var(--teal);box-shadow:0 0 0 3px #14b8a615}h1,h2,h3,p{margin:0}h1{font-size:19px;font-weight:750;line-height:1.35}h2{font-size:23px;letter-spacing:-.5px}h3{font-size:17px}.app-shell{max-width:560px;min-height:100svh;margin:auto;padding:env(safe-area-inset-top) 22px calc(22px + env(safe-area-inset-bottom));position:relative}.topbar{display:flex;align-items:center;gap:13px;height:91px;border-bottom:1px solid #22304a70;margin-bottom:26px}.top-title{flex:1}.brand{color:var(--muted);font-size:11px;display:flex;align-items:center;gap:5px;margin-bottom:2px}.brand-dot{height:5px;width:5px;background:var(--teal);border-radius:50%}.icon-button{border:1px solid var(--border);background:var(--card);border-radius:15px;min-width:48px;min-height:48px;display:inline-flex;align-items:center;justify-content:center;padding:11px}.home-link{background:transparent;border-color:#22304a80}.icon-button:active,.key:active,.card-button:active{transform:scale(.96)}.muted{color:var(--muted)}.small{font-size:12px}.eyebrow{font-size:12px;color:var(--teal);font-weight:600}.row{display:flex;align-items:center;gap:10px}.row-between{display:flex;align-items:center;justify-content:space-between;gap:12px}.grow{flex:1;min-width:0}.wrap{flex-wrap:wrap}.hero{margin-bottom:23px}.hero h2{margin:3px 0 4px}.status-pill{font-size:11px;color:var(--teal);background:#14b8a60e;border:1px solid #14b8a62a;border-radius:30px;display:inline-flex;align-items:center;gap:5px;padding:5px 9px}.status-pill svg{width:13px;height:13px}.stats{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:27px}.stat{background:var(--card);border:1px solid var(--border);border-radius:18px;padding:15px 16px}.stat .stat-top{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:12px}.stat svg{width:18px;height:18px;color:var(--teal)}.stat strong{display:block;font-size:29px;line-height:1.3;font-weight:700;margin-top:7px;direction:ltr;text-align:right}.list-heading{margin-bottom:14px}.text-button{min-height:48px;border:0;background:none;color:var(--teal);display:inline-flex;align-items:center;gap:5px;padding:0 3px;font-weight:600;font-size:13px}.text-button svg{width:18px;height:18px}.section-card{width:100%;display:flex;align-items:center;gap:14px;text-align:right;border:1px solid var(--border);border-radius:18px;background:var(--card);padding:17px;margin-bottom:12px;min-height:94px}.section-card h3{overflow-wrap:anywhere;margin-bottom:3px}.section-card .chevron{color:var(--muted);width:18px;height:18px}.section-symbol{display:flex;align-items:center;justify-content:center;width:52px;height:52px;border-radius:16px;flex-shrink:0;background:#14b8a615;color:var(--teal)}.section-symbol svg{width:26px;height:26px}.section-color-teal{color:#14B8A6;background:#14b8a619}.section-color-blue{color:#0EA5E9;background:#0ea5e919}.section-color-gold{color:#F5B942;background:#f5b94219}.section-color-purple{color:#A78BFA;background:#a78bfa19}.section-color-rose{color:#FB7185;background:#fb718519}.section-color-green{color:#22C55E;background:#22c55e19}.section-meta{font-size:12px;color:var(--muted)}.primary,.secondary,.danger-button{border:0;min-height:52px;border-radius:15px;display:flex;align-items:center;justify-content:center;gap:9px;font-weight:650;width:100%;padding:12px 18px}.primary{background:linear-gradient(115deg,#14B8A6,#0EA5E9);color:#fff;box-shadow:0 6px 24px #0ea5e912}.secondary{border:1px solid var(--border);background:var(--card)}.danger-button{background:#ef444415;border:1px solid #ef44443d;color:var(--danger)}.primary svg,.secondary svg,.danger-button svg{width:21px;height:21px}.empty-state{border:1px dashed var(--border);border-radius:18px;text-align:center;padding:30px 18px;margin-bottom:18px}.empty-state .section-symbol{margin:0 auto 13px}.empty-state h3{margin-bottom:4px}.empty-state p{color:var(--muted);font-size:13px}.empty-state .primary{margin-top:20px}.privacy-footer{display:flex;align-items:center;justify-content:center;gap:6px;color:var(--muted);font-size:11px;margin-top:30px}.privacy-footer svg{width:14px;height:14px}.auth{text-align:center;padding-top:14px}.auth-symbol{width:76px;height:76px;margin:0 auto 20px;display:flex;justify-content:center;align-items:center;border-radius:25px;background:linear-gradient(145deg,#14b8a61a,#0ea5e91a);border:1px solid #14b8a635;color:var(--teal)}.auth-symbol svg{width:32px;height:32px}.auth h2{font-size:24px;margin-bottom:4px}.auth-subtitle{font-size:13px;color:var(--muted)}.pin-dots{display:flex;justify-content:center;gap:16px;direction:ltr;margin:25px auto 10px}.pin-dot{width:12px;height:12px;border:1px solid #465778;border-radius:50%;transition:background .1s}.pin-dot.filled{background:var(--teal);border-color:var(--teal);box-shadow:0 0 12px #14b8a630}.auth-message{min-height:29px;font-size:12px;color:var(--muted)}.auth-message.error{color:var(--danger)}.keypad{direction:ltr;display:grid;grid-template-columns:repeat(3,1fr);gap:10px;max-width:302px;margin:12px auto 18px}.key{height:58px;border:1px solid var(--border);border-radius:16px;background:var(--card);font-size:25px;font-weight:500;display:flex;align-items:center;justify-content:center;transition:transform .1s,background .15s}.key svg{width:21px}.key-clear{font-size:12px;color:var(--muted)}.auth-submit{max-width:302px;margin:auto;min-height:50px}.pin-warning{color:var(--gold);font-size:11px;margin:19px auto 0;max-width:305px;display:flex;align-items:center;justify-content:center;gap:6px}.pin-warning svg{width:15px;height:15px}.auth .text-button{font-size:12px;margin-top:6px}.search-box{position:relative;margin:20px 0 12px}.search-box svg{position:absolute;right:16px;top:15px;color:var(--muted);width:20px;height:20px}.search-box input{padding-right:46px}.input,input:not([type=file]),textarea,select{width:100%;border:1px solid var(--border);background:var(--bg);color:var(--text);border-radius:13px;padding:13px 14px;min-height:50px;font-size:16px;-webkit-appearance:none;appearance:none}input::placeholder,textarea::placeholder{color:#6c7f9f}textarea{min-height:95px;resize:vertical}input[type=date]{min-width:0;display:block;text-align:right}input[type=tel],input[type=number]{direction:ltr;text-align:right}select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%238A9BB8' stroke-width='2'%3E%3Cpath d='m3 5 4 4 4-4'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:left 12px center;padding-left:30px}.section-tools{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:16px}.sort-select{max-width:165px;min-height:48px;font-size:12px;padding-top:10px;padding-bottom:10px}.section-header{align-items:flex-start}.section-header h2{font-size:22px;overflow-wrap:anywhere}.section-back{display:flex;align-items:center;gap:5px;font-size:12px;color:var(--muted);border:0;background:transparent;min-height:48px;margin:-12px 0 10px;padding:0}.section-back svg{width:18px}.totals{display:flex;gap:10px;overflow-x:auto;margin:18px 0 0;scrollbar-width:none}.total-chip{min-width:143px;border:1px solid #f5b94230;background:#f5b94208;border-radius:15px;padding:11px 14px;flex-shrink:0}.total-chip span{display:block;color:var(--muted);font-size:11px}.total-chip strong{color:var(--gold);font-size:21px;display:block;direction:ltr;text-align:right;white-space:nowrap}.record-card{padding:16px;border:1px solid var(--border);background:var(--card);border-radius:18px;margin-bottom:12px}.record-card h3{font-size:16px;overflow-wrap:anywhere}.record-number{font-size:11px;color:var(--teal);margin-bottom:4px}.record-values{display:grid;grid-template-columns:1fr 1fr;gap:12px 15px;margin-top:13px;padding-top:12px;border-top:1px solid var(--border)}.record-value{min-width:0}.record-value span{display:block;font-size:11px;color:var(--muted)}.record-value strong{display:block;font-size:14px;font-weight:500;white-space:pre-wrap;overflow-wrap:anywhere}.record-value.wide{grid-column:1/-1}.record-edit{background:var(--bg)}.add-record{position:sticky;bottom:calc(14px + env(safe-area-inset-bottom));margin-top:20px;z-index:1}.sheet-layer{position:fixed;inset:0;z-index:20;display:flex;align-items:flex-end;justify-content:center}.sheet-backdrop{position:absolute;inset:0;background:#030711bb;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}.sheet{position:relative;max-width:560px;width:100%;max-height:calc(100dvh - env(safe-area-inset-top) - 18px);background:var(--card);border:1px solid var(--border);border-radius:26px 26px 0 0;padding:10px 22px calc(22px + env(safe-area-inset-bottom));overflow-y:auto;overscroll-behavior:contain;animation:sheet-in .22s ease-out}.sheet-handle{height:4px;width:36px;border-radius:5px;background:#40506b;margin:0 auto 12px}.sheet-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;gap:12px}.sheet-header h2{font-size:20px}.sheet-header .icon-button{background:transparent}.sheet-content label{display:block;font-size:13px;color:var(--muted);margin-bottom:8px}.form-group{margin-bottom:18px}.choice-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:8px}.choice{min-width:0;min-height:48px;background:var(--bg);border:1px solid var(--border);border-radius:12px;display:flex;align-items:center;justify-content:center;position:relative}.choice.selected{border-color:var(--teal);box-shadow:0 0 0 1px var(--teal)}.color-dot{width:21px;height:21px;border-radius:50%;background:var(--teal)}.color-dot.blue{background:var(--blue)}.color-dot.gold{background:var(--gold)}.color-dot.purple{background:#A78BFA}.color-dot.rose{background:#FB7185}.color-dot.green{background:#22C55E}.color-choice.selected:after{content:'✓';position:absolute;font-size:12px;font-weight:bold;color:var(--bg)}.field-editor{border:1px solid var(--border);background:var(--bg);border-radius:15px;padding:12px;margin-bottom:10px}.field-editor .row{gap:8px}.field-editor input{min-width:0;font-size:15px}.field-editor select{width:112px;font-size:13px;flex-shrink:0}.field-editor .field-bottom{margin-top:9px;display:flex;align-items:center;justify-content:space-between;gap:8px}.field-editor .icon-button{min-width:48px;min-height:48px;color:var(--muted)}.field-editor .field-type{font-size:11px;color:var(--muted)}.field-editor.archived{opacity:.68}.form-actions{margin-top:23px;display:flex;flex-direction:column;gap:12px}.error-text{color:var(--danger);font-size:12px;margin-top:8px;min-height:19px}.note-box{font-size:12px;color:var(--muted);padding:13px 14px;border:1px solid var(--border);border-radius:13px;background:var(--bg);margin:14px 0}.note-box.warning{color:var(--gold);border-color:#f5b94230;background:#f5b94208}.settings-item{display:flex;width:100%;align-items:center;gap:12px;background:var(--bg);border:1px solid var(--border);border-radius:15px;min-height:66px;margin-bottom:10px;padding:13px;text-align:right}.settings-item svg{color:var(--teal);width:22px}.settings-item span{flex:1}.settings-item small{color:var(--muted);display:block;font-size:11px}.settings-item.danger svg,.danger{color:var(--danger)}.toast{position:fixed;bottom:calc(25px + env(safe-area-inset-bottom));left:20px;right:20px;max-width:460px;margin:auto;z-index:40;background:#20354a;color:var(--text);border:1px solid #46627e;border-radius:14px;padding:13px 17px;text-align:center;font-size:13px;box-shadow:0 8px 30px #0006}.noscript{padding:25px;color:var(--gold)}.form-caption{font-size:11px;color:var(--muted);margin-top:6px}.shake{animation:shake .28s ease}.sheet-open{overflow:hidden}.long-word{overflow-wrap:anywhere}.session-cover .app-shell{visibility:hidden}@keyframes sheet-in{from{transform:translateY(30px);opacity:.5}to{transform:translateY(0);opacity:1}}@keyframes shake{25%{transform:translateX(5px)}75%{transform:translateX(-5px)}}@media(max-height:750px){.auth{padding-top:0}.auth-symbol{width:61px;height:61px;margin-bottom:12px}.pin-dots{margin-top:16px}.keypad{gap:8px;margin-top:8px;margin-bottom:12px}.key{height:49px}.topbar{height:78px;margin-bottom:20px}.pin-warning{margin-top:12px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}@media(min-width:600px){.sheet{margin-bottom:20px;border-radius:26px;max-height:90dvh}.app-shell{padding-top:18px}}
.session-cover .sheet-layer,.session-cover .toast{visibility:hidden}
.record-value strong[dir=ltr]{text-align:right}

/* v136 phone accounts: compact, fully local assets. */
.account-form{max-width:320px;margin:25px auto 0;text-align:right}.account-form label{display:block;font-size:12px;color:var(--muted);margin:14px 0 7px}.account-form input{background:var(--card)}.account-form input[type=tel],.account-form input[type=password]{direction:ltr;text-align:left;letter-spacing:1px}.account-form select{margin-top:10px;min-height:48px;font-size:12px;color:var(--muted)}.account-form .auth-message{margin:14px 0 9px}.account-number{display:block;color:var(--teal);text-align:center;font-size:14px;letter-spacing:1px}.sync-status{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:32px;min-height:48px;border:0;background:transparent;padding:3px;color:var(--muted)}.sync-status svg{width:25px;height:25px}.sync-status[data-state=synced]{color:var(--teal)}.sync-status[data-state=pending],.sync-status[data-state=error]{color:var(--gold)}#app-footer{flex-direction:column;gap:0}#app-footer>span{display:flex;align-items:center;gap:6px}#app-footer .text-button{font-size:12px}.top-title{min-width:0}.topbar{gap:9px}.auth .privacy-footer{margin-top:22px}.auth{padding-top:12px}.auth-symbol{margin-bottom:17px}@media(max-height:750px){.account-form{margin-top:15px}.account-form label{margin-top:10px}.auth .privacy-footer{margin-top:16px}}
