
:root{--bg:#f6f7fb;--surface:#fff;--text:#18202a;--muted:#6f7a86;--border:#e7eaf0;--primary:#4f46e5;--primary2:#6d5dfc;--success:#16825d;--danger:#c9364f;--warning:#a36b10;--shadow:0 10px 35px rgba(22,32,51,.07);--radius:18px}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:Vazirmatn,Tahoma,sans-serif}.app-shell{min-height:100vh}.sidebar{position:fixed;right:0;top:0;bottom:0;width:270px;background:#111827;color:#fff;padding:22px 16px;display:flex;flex-direction:column;z-index:30}.brand{display:flex;align-items:center;gap:12px;padding:4px 8px 24px}.brand-mark{width:44px;height:44px;border-radius:14px;background:linear-gradient(135deg,#7c6cff,#4f46e5);display:grid;place-items:center;font-weight:800}.brand small,.user-mini small{display:block;color:#9ca3af;font-size:12px;margin-top:2px}.sidebar nav{display:flex;flex-direction:column;gap:7px}.sidebar nav a{color:#dbe1eb;text-decoration:none;padding:12px 14px;border-radius:13px;display:flex;gap:11px;align-items:center}.sidebar nav a:hover{background:#1f2937;color:#fff}.nav-label{font-size:11px;color:#778293;padding:20px 14px 5px}.sidebar-footer{margin-top:auto;border-top:1px solid #283241;padding:16px 8px 0}.user-mini{display:flex;gap:10px;align-items:center}.avatar{width:40px;height:40px;border-radius:12px;background:#293449;display:grid;place-items:center;font-weight:800}.logout-link{display:block;color:#ffb4be;text-decoration:none;margin-top:14px;font-size:13px}.main{margin-right:270px;min-height:100vh}.auth-main{margin-right:0;display:grid;place-items:center;padding:24px}.topbar{height:104px;padding:22px 34px;display:flex;align-items:center;gap:18px}.topbar h1{margin:0;font-size:25px}.topbar p{margin:4px 0 0;color:var(--muted);font-size:13px}.status-pill{margin-right:auto;background:#e9f8f1;color:var(--success);padding:9px 13px;border-radius:999px;font-size:12px}.menu-btn{display:none;border:0;background:var(--surface);width:42px;height:42px;border-radius:12px;font-size:20px}.content{padding:0 34px 40px;max-width:1500px;margin:0 auto}.grid{display:grid;grid-template-columns:repeat(12,1fr);gap:18px}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:22px}.stat-card{grid-column:span 3}.stat-card .num{font-size:30px;font-weight:800;margin-top:8px}.stat-card .label{color:var(--muted);font-size:13px}.card h2{font-size:17px;margin:0 0 16px}.muted{color:var(--muted)}.btn{border:0;border-radius:12px;padding:11px 16px;font-family:inherit;font-weight:700;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:7px}.btn-primary{background:linear-gradient(135deg,var(--primary2),var(--primary));color:#fff}.btn-light{background:#f2f4f8;color:#263142}.btn-danger{background:#fff0f2;color:var(--danger)}.input,.select{width:100%;border:1px solid #dfe3ea;border-radius:12px;padding:12px 13px;font-family:inherit;background:#fff;outline:none}.input:focus,.select:focus{border-color:#8378ff;box-shadow:0 0 0 4px rgba(79,70,229,.08)}.form-group{margin-bottom:16px}.form-group label{display:block;font-size:13px;font-weight:700;margin-bottom:7px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}.auth-card{width:min(440px,100%);padding:30px}.auth-logo{display:flex;justify-content:center;margin-bottom:18px}.auth-logo .brand-mark{color:#fff}.auth-card h1{text-align:center;margin:0;font-size:24px}.auth-card .subtitle{text-align:center;color:var(--muted);font-size:13px;margin:7px 0 25px}.auth-card .btn{width:100%;margin-top:5px}.help{font-size:12px;color:var(--muted);line-height:1.9}.alert{padding:13px 15px;border-radius:13px;margin-bottom:18px;font-size:13px}.alert-success{background:#e9f8f1;color:#126b4e}.alert-danger{background:#fff0f2;color:#a92d42}.alert-warning{background:#fff7e8;color:#85560b}.table-wrap{overflow:auto}.table{width:100%;border-collapse:collapse;min-width:700px}.table th,.table td{text-align:right;padding:14px 12px;border-bottom:1px solid #edf0f4;font-size:13px}.table th{color:#6e7885;font-size:12px}.badge{display:inline-flex;padding:5px 9px;border-radius:999px;font-size:11px;font-weight:700}.badge-admin{background:#eeeafe;color:#5445cd}.badge-user{background:#edf2f7;color:#516170}.badge-on{background:#e9f8f1;color:#147154}.badge-off{background:#f0f1f4;color:#737b87}.actions{display:flex;gap:7px;flex-wrap:wrap}.page-actions{display:flex;justify-content:flex-end;margin-bottom:16px}.empty{text-align:center;padding:42px 20px}.empty .icon{font-size:38px}.empty h3{margin:12px 0 6px}.kv{display:grid;grid-template-columns:180px 1fr;gap:10px;padding:11px 0;border-bottom:1px solid #eef1f5}.kv span:first-child{color:var(--muted);font-size:13px}.hero{grid-column:span 12;background:linear-gradient(135deg,#1f2a44,#111827);color:#fff}.hero p{color:#c5ccda;margin-bottom:0}.wide{grid-column:span 8}.side{grid-column:span 4}
@media(max-width:980px){.sidebar{transform:translateX(105%);transition:.2s}.sidebar-open .sidebar{transform:none}.main{margin-right:0}.menu-btn{display:inline-grid;place-items:center}.topbar{padding:18px 20px}.content{padding:0 20px 28px}.stat-card{grid-column:span 6}.wide,.side{grid-column:span 12}}
@media(max-width:600px){.topbar{height:auto}.topbar p,.status-pill{display:none}.topbar h1{font-size:20px}.content{padding:0 14px 24px}.stat-card{grid-column:span 12}.form-row{grid-template-columns:1fr}.card{padding:18px}.auth-card{padding:24px}.kv{grid-template-columns:1fr;gap:3px}}

/* v0.2 - Bank/account management */
.section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}.section-head h2{margin-bottom:4px}.count-chip,.lock-chip{white-space:nowrap;background:#f1f3f8;border:1px solid var(--border);padding:7px 10px;border-radius:999px;font-size:12px;color:#596474}.big-icon{font-size:34px}.required{color:var(--danger)}.inline-form{display:inline}.btn-sm{padding:8px 11px;border-radius:10px;font-size:12px}.btn-lg{padding:13px 20px}.form-card{grid-column:span 8}.info-card{grid-column:span 4}.form-actions{display:flex;gap:10px;align-items:center;margin-top:8px}.form-page{max-width:1050px;margin:0 auto}.form-section{margin-bottom:18px}.form-section-title{display:flex;gap:13px;align-items:center;padding-bottom:16px;margin-bottom:18px;border-bottom:1px solid #eef1f5}.form-section-title h2{margin:0 0 3px}.form-section-title p{margin:0;color:var(--muted);font-size:12px}.section-icon{width:46px;height:46px;border-radius:14px;background:#f2f0ff;display:grid;place-items:center;font-size:22px}.form-row.three{grid-template-columns:1fr 1fr 1.5fr}.textarea{resize:vertical;min-height:105px}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.4px}.input-prefix{position:relative}.input-prefix>span{position:absolute;left:13px;top:50%;transform:translateY(-50%);font-family:ui-monospace,monospace;color:#8b94a2;font-size:12px;pointer-events:none}.input-prefix .input{padding-left:42px}.credential-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.credential-box{border:1px solid var(--border);background:#fafbfe;border-radius:16px;padding:17px}.credential-box h3{margin:0 0 15px;font-size:14px}.security-note{margin-top:14px;background:#eef8f4;border:1px solid #d8eee6;color:#17684f;padding:11px 13px;border-radius:12px;font-size:12px}.switch-row{display:flex;gap:11px;align-items:flex-start;background:#fafbfc;border:1px solid var(--border);padding:14px;border-radius:14px;cursor:pointer}.switch-row input{margin-top:5px}.switch-row strong,.switch-row small{display:block}.switch-row small{margin-top:3px;color:var(--muted);font-size:11px}.sticky-actions{position:sticky;bottom:14px;z-index:10;background:rgba(255,255,255,.94);backdrop-filter:blur(12px);border:1px solid var(--border);box-shadow:0 12px 35px rgba(22,32,51,.12);padding:12px;border-radius:16px;display:flex;justify-content:flex-end;gap:10px;margin-top:18px}.accounts-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:18px}.search-box{flex:1;max-width:700px;background:#fff;border:1px solid var(--border);border-radius:14px;display:flex;align-items:center;padding:5px 7px 5px 13px;box-shadow:var(--shadow)}.search-box>span{font-size:21px;color:#778293;padding:0 6px}.search-box input{flex:1;border:0;outline:0;background:transparent;font-family:inherit;padding:9px}.search-box button{border:0;background:#eef0f5;border-radius:9px;padding:8px 12px;font-family:inherit;cursor:pointer}.search-box a{font-size:11px;color:#737d8a;text-decoration:none;padding:0 8px}.account-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.account-card{padding:19px}.account-card-top{display:flex;align-items:center;gap:12px}.bank-avatar{width:58px;height:58px;border-radius:18px;background:linear-gradient(135deg,#f0eeff,#e9f5ff);display:grid;place-items:center;font-size:27px;flex:0 0 auto}.bank-avatar.small{width:44px;height:44px;border-radius:14px;font-size:20px}.account-title{min-width:0;flex:1}.account-title h3{margin:0;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.account-title p{margin:3px 0 0;color:var(--muted);font-size:11px}.owner-line{margin-top:13px;background:#f8f9fc;border-radius:10px;padding:8px 10px;font-size:12px;color:#66717d}.account-numbers{margin:15px 0 13px;border-top:1px solid #eef1f5;border-bottom:1px solid #eef1f5;padding:7px 0}.account-numbers>div{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 0}.account-numbers span{font-size:11px;color:var(--muted)}.account-numbers strong{font-family:ui-monospace,monospace;font-size:12px;font-weight:600;text-align:left}.account-card-actions{display:flex;gap:7px;align-items:center}.icon-danger{margin-right:auto;border:0;background:#fff0f2;color:var(--danger);width:36px;height:36px;border-radius:10px;cursor:pointer;font-size:17px}.page-actions.split{justify-content:space-between}.account-hero{display:flex;align-items:center;gap:16px;margin-bottom:18px}.account-hero-main{flex:1}.account-hero-main h2{font-size:21px;margin:2px 0 2px}.account-hero-main p{margin:0;color:var(--muted);font-size:12px}.eyebrow{font-size:10px;color:#7a8491}.detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:18px}.detail-card{min-height:112px}.detail-label{font-size:11px;color:var(--muted);margin-bottom:11px}.secret-line{display:flex;align-items:center;gap:10px;justify-content:space-between}.secret-line code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:14px;direction:ltr;word-break:break-all;color:#1f2937}.copy-btn{border:1px solid var(--border);background:#f7f8fb;border-radius:9px;padding:6px 9px;cursor:pointer;font-family:inherit;font-size:11px;white-space:nowrap}.detail-sub{font-size:10px;color:var(--muted);margin-top:9px;direction:ltr}.sensitive{border-color:#eee8d5;background:#fffefa}.credentials-view{margin-bottom:18px}.mini-field{padding:10px 0;border-top:1px solid #e9edf3}.mini-field>span{display:block;font-size:10px;color:var(--muted);margin-bottom:6px}.concealed{letter-spacing:2px}.notes-text{line-height:2;color:#4d5865}.alert-danger a{color:inherit}
@media(max-width:980px){.form-card,.info-card{grid-column:span 12}.account-grid{grid-template-columns:1fr}.credential-grid{grid-template-columns:1fr}.detail-grid{grid-template-columns:1fr}}
@media(max-width:600px){.accounts-toolbar{align-items:stretch;flex-direction:column}.accounts-toolbar .btn{width:100%}.search-box{width:100%;max-width:none}.form-row.three{grid-template-columns:1fr 1fr}.form-row.three .form-group:last-child{grid-column:span 2}.sticky-actions{bottom:8px}.sticky-actions .btn{flex:1}.account-hero{align-items:flex-start}.account-card-actions{flex-wrap:wrap}.account-card-actions .btn{flex:1}.page-actions.split{gap:8px}.page-actions.split .btn{flex:1}.section-head{align-items:center}}

/* v0.3 - user-friendly search, identity profile, searchable bank picker and bank logos */
.field-hint{display:inline-flex;margin-right:6px;padding:2px 7px;border-radius:999px;background:#f1f3f8;color:#78828f;font-size:10px;font-weight:600}
.page-heading-actions,.accounts-page-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}.page-heading-actions h2,.accounts-intro h2{margin:0 0 5px;font-size:18px}.page-heading-actions p,.accounts-intro p{margin:0;color:var(--muted);font-size:12px}.list-toolbar{display:flex;align-items:center;gap:14px;margin-bottom:18px;padding:12px 14px}.compact-toolbar{box-shadow:0 7px 24px rgba(22,32,51,.05)}
.modern-search{flex:1;min-width:0;display:flex;align-items:center;gap:8px;background:#f8f9fc;border:1px solid #e2e6ee;border-radius:15px;padding:5px 6px 5px 10px;transition:.18s}.modern-search:focus-within{background:#fff;border-color:#8c82ff;box-shadow:0 0 0 4px rgba(79,70,229,.08)}.modern-search-icon{width:34px;height:34px;display:grid;place-items:center;color:#697586;font-size:22px;flex:0 0 auto}.modern-search input{flex:1;min-width:0;border:0;background:transparent;outline:none;font-family:inherit;font-size:13px;padding:9px 2px;color:var(--text)}.modern-search input::placeholder{color:#9aa3af}.search-submit{border:0;background:#1f2937;color:#fff;border-radius:11px;padding:9px 17px;font-family:inherit;font-weight:700;cursor:pointer;white-space:nowrap;transition:.15s}.search-submit:hover{background:#111827}.search-clear{width:30px;height:30px;border-radius:9px;background:#eceff4;color:#697586;text-decoration:none;display:grid;place-items:center;font-size:18px;line-height:1}.accounts-search-card .count-chip,.compact-toolbar .count-chip{flex:0 0 auto}.empty-account-state{padding:64px 24px}.empty-bank-visual{width:68px;height:68px;border-radius:22px;background:linear-gradient(135deg,#f2efff,#edf7ff);display:grid;place-items:center;font-size:31px;margin:0 auto}

.bank-logo-shell{display:inline-grid;place-items:center;background:#fff;border:1px solid #e7eaf0;box-shadow:0 5px 16px rgba(20,28,45,.06);overflow:hidden;flex:0 0 auto}.bank-logo-shell-sm{width:48px;height:48px;border-radius:15px}.bank-logo-shell-lg{width:78px;height:78px;border-radius:22px}.bank-logo-fallback{font-size:22px;background:linear-gradient(135deg,#f0eeff,#edf7ff)}.bank-logo-shell-lg.bank-logo-fallback{font-size:32px}.bank-table-cell{display:flex;align-items:center;gap:12px}.bank-table-cell strong,.bank-table-cell small{display:block}.bank-table-cell small{font-size:10px;color:var(--muted);margin-top:2px}.count-pill{display:inline-flex;padding:5px 9px;border-radius:999px;background:#f3f5f9;color:#556170;font-size:11px}.owner-line{display:flex;align-items:center;gap:8px}.owner-avatar{width:26px;height:26px;border-radius:9px;background:#e9edf5;display:grid;place-items:center;font-weight:800;font-size:11px;color:#4b5868}

.bank-picker-group{position:relative}.bank-combobox{position:relative}.bank-combo-control{height:48px;display:flex;align-items:center;border:1px solid #dfe3ea;border-radius:13px;background:#fff;transition:.18s;overflow:hidden}.bank-combobox.open .bank-combo-control{border-color:#8378ff;box-shadow:0 0 0 4px rgba(79,70,229,.08)}.combo-search-icon{width:44px;display:grid;place-items:center;color:#727d8b;font-size:20px}.bank-combo-input{flex:1;min-width:0;border:0;outline:0;background:transparent;font-family:inherit;padding:0 2px;height:100%;font-size:13px}.bank-combo-input::-webkit-search-cancel-button{display:none}.combo-clear{width:36px;height:36px;margin-left:5px;border:0;border-radius:10px;background:#f1f3f7;color:#697586;font-size:18px;cursor:pointer}.bank-combo-menu{display:none;position:absolute;right:0;left:0;top:calc(100% + 7px);z-index:60;background:#fff;border:1px solid #e1e5ec;border-radius:16px;box-shadow:0 18px 45px rgba(22,32,51,.16);padding:7px;max-height:310px;overflow:auto}.bank-combobox.open .bank-combo-menu{display:block}.bank-combo-option{width:100%;border:0;background:transparent;border-radius:12px;padding:8px;display:flex;align-items:center;gap:10px;text-align:right;font-family:inherit;cursor:pointer;color:var(--text)}.bank-combo-option:hover,.bank-combo-option.selected{background:#f3f2ff}.bank-combo-option[hidden]{display:none}.bank-combo-option .bank-logo-shell-sm{width:42px;height:42px;border-radius:13px}.combo-option-text{flex:1;min-width:0}.combo-option-text strong,.combo-option-text small{display:block}.combo-option-text strong{font-size:13px}.combo-option-text small{font-size:10px;color:var(--muted);margin-top:2px;min-height:14px}.combo-selected-mark{color:var(--primary);font-weight:800}.combo-no-results{display:none;text-align:center;padding:18px;color:var(--muted);font-size:12px}.bank-add-help{margin-top:7px}.bank-add-help a{color:var(--primary);font-weight:700;text-decoration:none}

.logo-picker{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;max-height:430px;overflow:auto;padding:2px}.logo-choice{position:relative;display:flex;align-items:center;gap:9px;border:1px solid #e5e8ee;border-radius:14px;padding:10px;background:#fff;cursor:pointer;min-height:64px;transition:.15s}.logo-choice:hover{border-color:#b9b3ff;background:#faf9ff}.logo-choice:has(input:checked){border-color:#7c70ff;background:#f5f3ff;box-shadow:0 0 0 3px rgba(79,70,229,.07)}.logo-choice input{position:absolute;opacity:0;pointer-events:none}.logo-choice strong,.logo-choice small{display:block;font-size:11px}.logo-choice small{font-size:9px;color:var(--muted);margin-top:2px}.logo-choice .bank-logo-shell-sm{width:42px;height:42px;border-radius:12px}.logo-auto-icon{width:42px;height:42px;border-radius:12px;background:linear-gradient(135deg,#eeeaff,#e9f6ff);display:grid;place-items:center;font-size:19px}.auto-choice strong{font-size:12px}

.profile-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:18px;align-items:start;max-width:1180px;margin:0 auto}.profile-main{min-width:0}.profile-side{position:sticky;top:18px;text-align:center}.profile-avatar-large{width:82px;height:82px;border-radius:26px;background:linear-gradient(135deg,#6558f5,#4138c8);color:#fff;display:grid;place-items:center;font-size:30px;font-weight:800;margin:2px auto 13px;box-shadow:0 12px 25px rgba(79,70,229,.2)}.profile-side h2{margin:0 0 3px}.profile-side>p{margin:0 0 18px}.profile-meta{display:flex;justify-content:space-between;gap:10px;padding:11px 0;border-top:1px solid #edf0f4;text-align:right;font-size:12px}.profile-meta span{color:var(--muted)}.profile-meta strong{font-size:12px}.profile-side .security-note{text-align:right;line-height:1.8}

.user-cell{display:flex;align-items:center;gap:9px}.table-avatar{width:32px;height:32px;border-radius:10px;background:#e9edf5;color:#4b5868}.self-chip{font-size:10px;color:#6a7480;background:#f1f3f7;border-radius:999px;padding:7px 9px}.user-table-card{padding-top:10px}.users-table td{vertical-align:middle}
.account-card-top>.bank-logo-shell-sm{width:50px;height:50px;border-radius:16px}.account-hero>.bank-logo-shell-lg{width:80px;height:80px}.account-delete-form{margin-right:auto}.icon-danger{margin-right:0}.account-card{transition:transform .16s,box-shadow .16s}.account-card:hover{transform:translateY(-2px);box-shadow:0 14px 38px rgba(22,32,51,.09)}

@media(max-width:1100px){.logo-picker{grid-template-columns:repeat(3,minmax(0,1fr))}.profile-layout{grid-template-columns:1fr}.profile-side{position:static;display:none}}
@media(max-width:760px){.page-heading-actions,.accounts-page-head{align-items:stretch;flex-direction:column}.page-heading-actions>.btn,.accounts-page-head>.btn{width:100%}.list-toolbar{align-items:stretch;flex-direction:column}.modern-search{width:100%}.accounts-search-card .count-chip,.compact-toolbar .count-chip{align-self:flex-start}.logo-picker{grid-template-columns:repeat(2,minmax(0,1fr))}.bank-combo-menu{position:fixed;right:12px;left:12px;top:auto;bottom:12px;max-height:55vh;z-index:100;border-radius:20px}.bank-combobox.open:after{content:"";position:fixed;inset:0;background:rgba(15,23,42,.25);z-index:59;pointer-events:none}.bank-combo-menu{z-index:101}.search-submit{padding:9px 13px}}
@media(max-width:480px){.modern-search{gap:3px}.modern-search-icon{width:30px}.search-submit{font-size:11px;padding:9px 11px}.logo-picker{grid-template-columns:1fr}.account-hero>.bank-logo-shell-lg{width:66px;height:66px;border-radius:18px}.account-hero>.bank-logo-shell-lg .ibl64{transform:scale(.82)}.account-card-top>.bank-logo-shell-sm{width:45px;height:45px}}
.combo-selected-mark{opacity:0;transition:.15s}.bank-combo-option.selected .combo-selected-mark{opacity:1}

/* v0.4 - brokerage-linked accounts, customer number and branch details */
.origin-selector{display:grid;grid-template-columns:1fr 1fr;gap:12px}.origin-choice{position:relative;display:flex;align-items:center;gap:12px;border:1px solid #e2e6ed;border-radius:16px;padding:15px;background:#fff;cursor:pointer;transition:.16s}.origin-choice:hover{border-color:#b8b2ff;background:#fbfaff}.origin-choice.selected{border-color:#7c70ff;background:#f6f4ff;box-shadow:0 0 0 3px rgba(79,70,229,.07)}.origin-choice input{position:absolute;opacity:0;pointer-events:none}.origin-choice>span:nth-of-type(2){flex:1}.origin-choice strong,.origin-choice small{display:block}.origin-choice strong{font-size:13px}.origin-choice small{font-size:10px;color:var(--muted);margin-top:4px;line-height:1.7}.origin-choice>b{opacity:0;width:24px;height:24px;border-radius:9px;background:#6659ed;color:#fff;display:grid;place-items:center;font-size:12px}.origin-choice.selected>b{opacity:1}.origin-icon{width:43px;height:43px;border-radius:13px;background:#f1f3f8;display:grid;place-items:center;font-size:20px;flex:0 0 auto}.origin-choice.selected .origin-icon{background:#eae7ff}.brokerage-fields{margin-top:18px;padding-top:18px;border-top:1px dashed #dfe4ec}.is-hidden{display:none!important}
.brokerage-logo{width:42px;height:42px;border-radius:14px;background:linear-gradient(135deg,#242b3b,#4a5568);color:#fff;display:grid;place-items:center;font-weight:800;box-shadow:0 7px 18px rgba(17,24,39,.12);flex:0 0 auto}.brokerage-logo.mini{width:42px;height:42px;border-radius:13px;font-size:13px}.brokerage-table-cell{display:flex;align-items:center;gap:11px}.brokerage-badge{display:inline-flex;align-items:center;gap:5px;padding:6px 10px;border-radius:999px;background:#f1eeff;color:#5a49c7;border:1px solid #e5e0ff;font-size:10px;font-weight:700}.account-source-line{margin:11px 0 2px}.hero-brokerage{margin-top:9px}.brokerage-info-card{margin-bottom:18px}.brokerage-info-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.brokerage-info-grid>div{padding:13px;border-radius:13px;background:#f8f9fc;border:1px solid #eceff4}.brokerage-info-grid span,.brokerage-info-grid strong{display:block}.brokerage-info-grid span{font-size:10px;color:var(--muted);margin-bottom:5px}.brokerage-info-grid strong{font-size:13px}.branch-view strong,.branch-view span{display:block}.branch-view strong{font-size:13px;margin-bottom:8px}.branch-view span{font-size:11px;color:var(--muted)}.branch-view .copy-btn{margin-right:5px}.brokerage-form-page{max-width:820px}
@media(max-width:760px){.origin-selector{grid-template-columns:1fr}.brokerage-info-grid{grid-template-columns:1fr}.origin-choice{padding:13px}}

/* v0.5 - admin-managed custom bank logos */
.bank-logo-custom{padding:5px;background:#fff}.bank-logo-custom img{display:block;width:100%;height:100%;object-fit:contain;border-radius:inherit}.custom-logo-editor{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;align-items:stretch}.custom-logo-preview,.custom-logo-upload{min-height:116px;border:1px solid #e3e7ed;border-radius:18px;background:#fbfcfe;padding:16px;display:flex;align-items:center;gap:14px}.custom-logo-preview .bank-logo-shell-lg{width:78px;height:78px;flex:0 0 auto}.custom-logo-preview strong,.custom-logo-preview small,.custom-logo-upload strong,.custom-logo-upload small{display:block}.custom-logo-preview strong,.custom-logo-upload strong{font-size:13px}.custom-logo-preview small,.custom-logo-upload small{font-size:10px;color:var(--muted);margin-top:5px;line-height:1.75}.custom-logo-placeholder,.upload-icon{width:58px;height:58px;border-radius:17px;display:grid;place-items:center;flex:0 0 auto}.custom-logo-placeholder{background:linear-gradient(135deg,#f0eeff,#edf7ff);color:#6558f5;font-size:26px}.custom-logo-upload{cursor:pointer;background:#fff;border-style:dashed;border-color:#cfd5df;transition:.16s}.custom-logo-upload:hover{border-color:#8479ff;background:#faf9ff}.custom-logo-upload input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.upload-icon{background:#efedff;color:#5f53df;font-size:25px;font-weight:800}.remove-custom-logo{margin-top:13px;padding:12px 14px;border:1px solid #f1d4d4;background:#fff9f9;border-radius:14px;display:flex;align-items:flex-start;gap:10px;cursor:pointer}.remove-custom-logo input{margin-top:3px;accent-color:#d54848}.remove-custom-logo strong,.remove-custom-logo small{display:block}.remove-custom-logo strong{font-size:12px;color:#a83838}.remove-custom-logo small{font-size:10px;color:#7e6b6b;margin-top:3px}.bank-table-cell .bank-logo-custom{padding:4px}
@media(max-width:760px){.custom-logo-editor{grid-template-columns:1fr}.custom-logo-preview,.custom-logo-upload{min-height:98px}.custom-logo-preview .bank-logo-shell-lg{width:66px;height:66px}}


/* v0.6 - admin-managed custom brokerage logos */
.brokerage-logo-shell{display:grid;place-items:center;flex:0 0 auto;overflow:hidden;background:linear-gradient(135deg,#242b3b,#4a5568);color:#fff;font-weight:800;box-shadow:0 7px 18px rgba(17,24,39,.12)}
.brokerage-logo-sm{width:42px;height:42px;border-radius:14px;font-size:15px}.brokerage-logo-mini{width:36px;height:36px;border-radius:11px;font-size:12px}.brokerage-logo-lg{width:78px;height:78px;border-radius:20px;font-size:24px}
.brokerage-logo-custom{background:#fff;padding:5px;border:1px solid #edf0f4}.brokerage-logo-custom img{display:block;width:100%;height:100%;object-fit:contain;border-radius:inherit}.brokerage-logo-fallback{background:linear-gradient(135deg,#242b3b,#4a5568)}
.brokerage-table-cell>div{display:flex;flex-direction:column;gap:3px}.brokerage-table-cell small{font-size:9px;color:var(--muted);font-weight:500}.brokerage-badge{padding:5px 10px 5px 7px}.brokerage-badge .brokerage-logo-mini{width:24px;height:24px;border-radius:8px;font-size:9px;box-shadow:none}.bank-combo-option .brokerage-logo-mini{width:42px;height:42px;border-radius:13px}
.custom-logo-preview>.brokerage-logo-lg{width:78px;height:78px;flex:0 0 auto}
@media(max-width:760px){.custom-logo-preview>.brokerage-logo-lg{width:66px;height:66px;border-radius:18px}}


/* v0.7 - brokerage ledger / cashflow accounting */
.ledger-chooser-head{margin-bottom:18px}.ledger-brokerage-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.ledger-brokerage-card{display:flex;align-items:center;gap:15px;text-decoration:none;color:inherit;transition:.16s;padding:18px}.ledger-brokerage-card:hover{transform:translateY(-2px);border-color:#cfcaff;box-shadow:0 14px 38px rgba(22,32,51,.09)}.ledger-brokerage-card-main{flex:1;min-width:0}.ledger-brokerage-card-main h3{margin:0;font-size:15px}.ledger-brokerage-card-main p{margin:3px 0 0;color:var(--muted);font-size:10px;min-height:15px}.ledger-brokerage-card-count{display:flex;flex-direction:column;align-items:center;min-width:72px;padding:8px 10px;background:#f7f8fb;border-radius:13px}.ledger-brokerage-card-count strong{font-size:18px}.ledger-brokerage-card-count span{font-size:9px;color:var(--muted)}.ledger-open-arrow{font-size:20px;color:#7770db}
.ledger-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px;padding:20px 22px}.ledger-head-brand{display:flex;align-items:center;gap:15px}.ledger-head-brand h2{margin:1px 0 2px;font-size:21px}.ledger-head-brand p{margin:0;color:var(--muted);font-size:10px}.ledger-head .eyebrow{font-size:10px;color:#6b61d8;font-weight:800}.ledger-head-actions{display:flex;gap:8px;flex-wrap:wrap}.ledger-owner-filter{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:18px;padding:15px 18px}.ledger-owner-form{display:flex;align-items:center;gap:10px;min-width:430px}.ledger-owner-form label{font-size:12px;font-weight:700;white-space:nowrap}.ledger-owner-form .select{min-width:250px}.ledger-owner-filter p{margin:0}
.ledger-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.ledger-summary{position:relative;overflow:hidden;padding:18px;border-top-width:3px}.ledger-summary:after{content:"";position:absolute;left:-18px;bottom:-26px;width:76px;height:76px;border-radius:50%;opacity:.07;background:currentColor}.ledger-summary span,.ledger-summary strong,.ledger-summary small{display:block}.ledger-summary span{font-size:11px;color:var(--muted)}.ledger-summary strong{font-size:20px;margin:7px 0 2px;direction:ltr;text-align:right}.ledger-summary small{font-size:9px;color:var(--muted)}.ledger-summary.deposit{color:#16795b;border-top-color:#22a879}.ledger-summary.withdrawal{color:#bd354d;border-top-color:#df5a70}.ledger-summary.profit{color:#7050c8;border-top-color:#8c68e0}.ledger-summary.net{color:#2e5f9e;border-top-color:#4e83c4}
.ledger-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px;padding:12px 14px}.ledger-type-filters{display:flex;gap:7px;flex-wrap:wrap}.ledger-filter{padding:8px 12px;border-radius:10px;background:#f3f5f8;color:#596474;text-decoration:none;font-size:11px;font-weight:700;border:1px solid transparent}.ledger-filter:hover{background:#eceff4}.ledger-filter.active{background:#232b3b;color:#fff}.ledger-filter.deposit.active{background:#16825d}.ledger-filter.withdrawal.active{background:#c9364f}.ledger-filter.profit.active{background:#7254c7}.ledger-search{max-width:540px}.ledger-list{display:flex;flex-direction:column;gap:11px}.ledger-row{display:grid;grid-template-columns:150px 205px minmax(0,1fr) auto;gap:16px;align-items:center;padding:16px 18px;border-right:4px solid transparent}.ledger-row.type-deposit{border-right-color:#23a978}.ledger-row.type-withdrawal{border-right-color:#df5a70}.ledger-row.type-profit{border-right-color:#8b68df}.ledger-row-type{display:flex;align-items:center;gap:10px}.ledger-type-icon{width:40px;height:40px;border-radius:13px;display:grid;place-items:center;font-size:19px;font-weight:800}.type-deposit .ledger-type-icon{background:#e9f8f1;color:#16825d}.type-withdrawal .ledger-type-icon{background:#fff0f2;color:#c9364f}.type-profit .ledger-type-icon{background:#f3edff;color:#7254c7}.ledger-row-type strong,.ledger-row-type span{display:block}.ledger-row-type strong{font-size:12px}.ledger-row-type div>span{font-size:10px;color:var(--muted);margin-top:2px;direction:ltr;text-align:right}.ledger-row-amount strong,.ledger-row-amount span{display:block}.ledger-row-amount strong{font-size:14px;direction:ltr;text-align:right}.ledger-row-amount span{font-size:9px;color:var(--muted);margin-top:4px}.amount-deposit{color:#16825d}.amount-withdrawal{color:#c9364f}.amount-profit{color:#7254c7}.ledger-row-detail{min-width:0}.ledger-reason{margin:4px 0 0}.ledger-reason strong,.ledger-reason span{display:block}.ledger-reason strong{font-size:12px}.ledger-reason span{font-size:10px;color:var(--muted);margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ledger-counterparty{margin:5px 0;font-size:10px;color:#596474}.ledger-counterparty span{color:var(--muted)}.profit-period-chip{display:inline-flex;padding:5px 9px;border-radius:999px;background:#f2ebff;color:#6b4ec0;border:1px solid #e5d9ff;font-size:10px;font-weight:800;margin-bottom:5px}.ledger-account-ref{display:flex;align-items:center;gap:8px;margin:4px 0 7px}.ledger-account-ref .bank-logo-shell-sm{width:31px;height:31px;border-radius:9px}.ledger-account-ref .ibl32{transform:scale(.78)}.ledger-account-ref small,.ledger-account-ref strong{display:block}.ledger-account-ref small{font-size:8px;color:var(--muted)}.ledger-account-ref strong{font-size:10px;margin-top:1px}.ledger-owner-chip{display:inline-flex;align-items:center;gap:6px;padding:4px 8px;background:#f2f4f8;border-radius:999px;font-size:9px;margin-top:6px}.ledger-owner-chip .owner-avatar{width:21px;height:21px;border-radius:7px;font-size:9px}.ledger-row-actions{display:flex;align-items:center;gap:6px}.ledger-row-actions .icon-danger{width:33px;height:33px}.ledger-empty{margin-top:4px}.ledger-footnote{margin-top:13px;padding:10px 13px;border-radius:11px;background:#f1f4f8;color:#697482;font-size:10px;line-height:1.8}
.ledger-form-page{max-width:980px}.ledger-form-broker{display:flex;align-items:center;gap:11px;margin-bottom:18px;padding:13px 16px}.ledger-form-broker>div{flex:1}.ledger-form-broker span,.ledger-form-broker strong{display:block}.ledger-form-broker span{font-size:9px;color:var(--muted)}.ledger-form-broker strong{font-size:13px;margin-top:2px}.ledger-form-broker>a{font-size:10px;color:#5f53df;text-decoration:none;font-weight:700}.ledger-type-selector{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.ledger-type-choice{position:relative;display:flex;align-items:center;gap:11px;border:1px solid #e2e6ed;border-radius:16px;padding:14px;cursor:pointer;transition:.16s;background:#fff}.ledger-type-choice:hover{transform:translateY(-1px)}.ledger-type-choice input{position:absolute;opacity:0}.ledger-type-choice>span:nth-of-type(2){flex:1}.ledger-type-choice strong,.ledger-type-choice small{display:block}.ledger-type-choice strong{font-size:13px}.ledger-type-choice small{font-size:9px;color:var(--muted);margin-top:3px}.ledger-type-choice>b{opacity:0;width:22px;height:22px;border-radius:8px;color:#fff;display:grid;place-items:center;font-size:10px}.ledger-type-choice.selected>b{opacity:1}.type-choice-icon{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;font-weight:800;font-size:18px}.ledger-type-choice.deposit .type-choice-icon{background:#e9f8f1;color:#16825d}.ledger-type-choice.withdrawal .type-choice-icon{background:#fff0f2;color:#c9364f}.ledger-type-choice.profit .type-choice-icon{background:#f3edff;color:#7254c7}.ledger-type-choice.deposit.selected{border-color:#78cbb0;background:#f4fbf8}.ledger-type-choice.withdrawal.selected{border-color:#e7a2ad;background:#fff8f9}.ledger-type-choice.profit.selected{border-color:#bba9e9;background:#faf8ff}.ledger-type-choice.deposit>b{background:#16825d}.ledger-type-choice.withdrawal>b{background:#c9364f}.ledger-type-choice.profit>b{background:#7254c7}.money-input-wrap{position:relative}.money-input-wrap .input{padding-left:68px;font-size:15px;font-weight:700}.money-input-wrap>span{position:absolute;left:12px;top:50%;transform:translateY(-50%);font-size:10px;color:var(--muted);pointer-events:none;background:#f1f3f7;padding:4px 7px;border-radius:7px}
@media(max-width:1100px){.ledger-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ledger-row{grid-template-columns:130px 180px minmax(0,1fr) auto}.ledger-owner-filter{align-items:stretch;flex-direction:column}.ledger-owner-form{min-width:0}}
@media(max-width:820px){.ledger-brokerage-grid{grid-template-columns:1fr}.ledger-head{align-items:stretch;flex-direction:column}.ledger-head-actions>.btn{flex:1}.ledger-toolbar{align-items:stretch;flex-direction:column}.ledger-search{max-width:none}.ledger-row{grid-template-columns:1fr auto;gap:10px 14px}.ledger-row-type{grid-column:1}.ledger-row-amount{grid-column:2;grid-row:1}.ledger-row-detail{grid-column:1/-1;border-top:1px solid #eef1f5;padding-top:10px}.ledger-row-actions{grid-column:1/-1;justify-content:flex-end}.ledger-type-selector{grid-template-columns:1fr}.ledger-owner-form{align-items:stretch;flex-direction:column;gap:6px}.ledger-owner-form .select{min-width:0}.ledger-owner-filter p{display:none}}
@media(max-width:560px){.ledger-summary-grid{grid-template-columns:1fr 1fr;gap:9px}.ledger-summary{padding:14px}.ledger-summary strong{font-size:15px}.ledger-head-actions{flex-direction:column}.ledger-head-actions>.btn{width:100%}.ledger-brokerage-card{padding:14px;gap:10px}.ledger-brokerage-card .brokerage-logo-lg{width:58px;height:58px;border-radius:17px}.ledger-brokerage-card-count{min-width:60px}.ledger-open-arrow{display:none}.ledger-row{padding:14px;border-right-width:3px}.ledger-row-amount strong{font-size:12px}.ledger-type-filters{display:grid;grid-template-columns:repeat(4,1fr)}.ledger-filter{text-align:center;padding:7px 5px}.ledger-form-broker>a{display:none}}

/* v0.8 - owner account filters + dedicated brokerage books */
.sidebar nav{flex:1;min-height:0;overflow-y:auto;padding-left:3px;scrollbar-width:thin;scrollbar-color:#3a4556 transparent}.sidebar nav::-webkit-scrollbar{width:5px}.sidebar nav::-webkit-scrollbar-thumb{background:#3a4556;border-radius:10px}.nav-label-ledger{padding-top:16px}.sidebar nav a.nav-sub-link{margin-right:17px;padding:8px 12px;font-size:11px;color:#aeb8c8;border-right:1px solid #344052;border-radius:10px}.sidebar nav a.nav-sub-link:hover{color:#fff;background:#1b2534}.nav-sub-dot{font-size:8px;color:#8b7fff}

.accounts-filter-toolbar{display:grid;grid-template-columns:minmax(300px,.8fr) minmax(360px,1.4fr) auto;align-items:center;gap:12px}.account-owner-filter-form{display:flex;align-items:center;gap:10px;min-width:0;background:#f8f9fc;border:1px solid #e2e6ee;border-radius:15px;padding:6px 8px}.account-owner-filter-icon{width:36px;height:36px;border-radius:11px;background:#eeeafd;color:#5e50d4;display:grid;place-items:center;font-size:17px;flex:0 0 auto}.account-owner-filter-copy{min-width:104px}.account-owner-filter-copy span,.account-owner-filter-copy small{display:block}.account-owner-filter-copy span{font-size:11px;font-weight:800}.account-owner-filter-copy small{font-size:8px;color:var(--muted);white-space:nowrap}.account-owner-select{min-width:0;flex:1;border:0;background:#fff;padding:9px 10px;border-radius:10px;font-size:11px}.account-owner-select:focus{box-shadow:0 0 0 3px rgba(79,70,229,.07)}.owner-filter-clear{width:29px;height:29px;border-radius:9px;background:#eceff4;color:#697586;text-decoration:none;display:grid;place-items:center;font-size:17px;flex:0 0 auto}.account-list-search{width:100%}.account-results-count{min-width:70px;display:flex;align-items:baseline;justify-content:center;gap:4px;flex-wrap:wrap;background:#f3f5f8;border:1px solid #e5e8ee;border-radius:14px;padding:10px 12px}.account-results-count strong{font-size:18px}.account-results-count span{font-size:10px;color:var(--muted)}.account-results-count small{flex-basis:100%;text-align:center;font-size:8px;color:#6b61d8;white-space:nowrap}

.brokerage-books-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px;padding:24px;background:linear-gradient(135deg,#171d2d,#24203b);color:#fff;border:0}.brokerage-books-hero .eyebrow{display:inline-flex;padding:5px 9px;border-radius:999px;background:rgba(137,119,255,.15);color:#cfc5ff;font-size:9px;font-weight:800}.brokerage-books-hero h2{font-size:22px;margin:8px 0 5px}.brokerage-books-hero p{max-width:720px;margin:0;color:#c6cada;font-size:11px;line-height:1.9}.brokerage-books-hero-actions{flex:0 0 auto}.brokerage-books-hero .btn-light{background:rgba(255,255,255,.1);color:#fff;border:1px solid rgba(255,255,255,.12)}.brokerage-books-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.brokerage-book-card{text-decoration:none;color:inherit;padding:18px;transition:.18s;overflow:hidden;position:relative}.brokerage-book-card:hover{transform:translateY(-3px);border-color:#cfcaff;box-shadow:0 15px 40px rgba(22,32,51,.1)}.brokerage-book-card-top{display:flex;align-items:center;gap:13px}.brokerage-book-card-title{flex:1;min-width:0}.brokerage-book-card-title>span{font-size:8px;color:#7367d7;font-weight:800}.brokerage-book-card-title h3{margin:2px 0 0;font-size:15px}.brokerage-book-card-title small{display:block;margin-top:2px;color:var(--muted);font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.brokerage-book-open{width:32px;height:32px;border-radius:10px;background:#f1efff;color:#6256d4;display:grid;place-items:center;font-size:17px}.brokerage-book-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:16px 0 13px}.brokerage-book-stats>div{background:#f8f9fc;border:1px solid #edf0f4;border-radius:12px;padding:9px 11px}.brokerage-book-stats strong,.brokerage-book-stats span{display:block}.brokerage-book-stats strong{font-size:16px}.brokerage-book-stats span{font-size:8px;color:var(--muted);margin-top:1px}.brokerage-book-footer{display:flex;align-items:center;gap:5px;padding-top:11px;border-top:1px solid #eef1f5}.brokerage-book-footer b{margin-right:auto;font-size:9px;color:#5f53d4}.book-type{padding:4px 7px;border-radius:999px;font-size:8px;font-weight:800}.book-type.deposit{background:#e9f8f1;color:#16825d}.book-type.withdrawal{background:#fff0f2;color:#c9364f}.book-type.profit{background:#f3edff;color:#7254c7}.brokerage-books-note{margin-top:14px;background:#eef2f7;border-radius:12px;padding:10px 13px;font-size:9px;color:#687484}.brokerage-books-note a{color:#5f53d4;font-weight:800;text-decoration:none}.brokerage-books-empty{padding:58px 22px}

@media(max-width:1180px){.accounts-filter-toolbar{grid-template-columns:1fr 1fr}.account-results-count{grid-column:1/-1;justify-self:start}.brokerage-books-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){.accounts-filter-toolbar{grid-template-columns:1fr}.account-results-count{grid-column:auto}.account-owner-filter-copy{display:none}.brokerage-books-hero{align-items:stretch;flex-direction:column}.brokerage-books-hero-actions .btn{width:100%}.brokerage-books-grid{grid-template-columns:1fr}}
@media(max-width:520px){.account-owner-filter-form{gap:6px}.account-owner-filter-icon{width:32px;height:32px}.account-owner-select{font-size:10px}.brokerage-books-hero{padding:19px}.brokerage-books-hero h2{font-size:18px}.brokerage-book-card{padding:15px}.brokerage-book-card .brokerage-logo-lg{width:58px;height:58px;border-radius:17px}.brokerage-book-footer b{display:none}}

/* v0.9 - brokerage-first accounts, multiple cards, brokerage credentials */
.credential-grid.single{grid-template-columns:1fr}.brokerage-login-box{max-width:820px}.account-security-note{margin:0 0 18px}.card-section-head{align-items:center}.card-section-head>.add-card-btn{margin-right:auto;flex:0 0 auto}.cards-editor-list{display:flex;flex-direction:column;gap:14px}.card-editor{border:1px solid #e5e9ef;border-radius:16px;padding:16px;background:#fafbfc;transition:.18s}.card-editor:hover{border-color:#d4d0fa}.card-editor.marked-for-removal{display:none}.card-editor-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px}.card-editor-head strong,.card-editor-head small{display:block}.card-editor-head strong{font-size:12px}.card-editor-head small{font-size:9px;color:var(--muted);margin-top:2px}.card-remove-btn{border:0;background:#fff0f2;color:#bd3149;border-radius:10px;padding:7px 10px;font:inherit;font-size:9px;font-weight:800;cursor:pointer}.card-remove-btn:hover{background:#ffe4e8}.brokerage-account-card{border-top:3px solid #7767d8}.bank-source-chip{display:flex;align-items:center;gap:8px;color:#596474;font-size:9px}.bank-source-chip .bank-logo-shell-sm{width:28px;height:28px;border-radius:9px}.bank-source-chip .ibl32{transform:scale(.72)}.account-empty-bank-data strong{font-family:inherit!important;direction:rtl!important;color:#6b7280!important}.brokerage-account-hero{background:linear-gradient(135deg,#fff,#faf8ff)}.hero-bank-chip{display:inline-flex;align-items:center;gap:8px;margin-top:8px;padding:5px 9px;border:1px solid #eceaf7;background:#fff;border-radius:12px;font-size:9px;color:#667085}.hero-bank-chip .bank-logo-shell-sm{width:28px;height:28px;border-radius:9px}.hero-bank-chip .ibl32{transform:scale(.72)}.brokerage-no-bank-account{display:flex;align-items:center;gap:13px;margin-bottom:15px;padding:14px 16px;background:#f7f4ff;border-color:#e8e0ff}.brokerage-no-bank-account>span{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:#ece5ff;color:#6a51c5;font-size:18px}.brokerage-no-bank-account strong,.brokerage-no-bank-account p{display:block}.brokerage-no-bank-account strong{font-size:11px}.brokerage-no-bank-account p{margin:3px 0 0;color:var(--muted);font-size:9px}.account-cards-section{margin-bottom:15px}.card-count-chip{padding:6px 10px;border-radius:999px;background:#f1efff;color:#6557ce;font-size:9px;font-weight:800}.cards-view-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin-top:13px}.bank-card-view{border:1px solid #e8ebf0;border-radius:16px;padding:15px;background:linear-gradient(145deg,#fff,#f9fafc)}.bank-card-view-head{display:flex;align-items:center;gap:10px}.bank-card-view-head>div{min-width:0}.bank-card-view-head span,.bank-card-view-head strong,.bank-card-view-head small{display:block}.bank-card-view-head span{font-size:8px;color:var(--muted)}.bank-card-view-head strong{font-size:11px;margin-top:1px}.bank-card-view-head small{font-size:8px;color:#7c8797;margin-top:2px}.bank-card-number{display:flex;align-items:center;gap:8px;margin:15px 0 11px;padding:10px 12px;background:#f4f6f9;border-radius:12px;direction:ltr}.bank-card-number code{font-size:13px;font-weight:800;letter-spacing:.7px;flex:1}.bank-card-meta{display:flex;align-items:center;justify-content:space-between;gap:9px;border-top:1px solid #edf0f3;padding-top:10px}.bank-card-meta>span{font-size:9px;color:var(--muted)}.bank-card-meta b,.bank-card-meta code{color:#253047;font-size:10px}.bank-card-meta .copy-btn{margin-right:5px}.brokerage-credentials-view{border-top:3px solid #7a62d9}
@media(max-width:760px){.card-section-head{align-items:flex-start}.card-section-head>.add-card-btn{margin-right:0;width:100%}.cards-view-grid{grid-template-columns:1fr}.card-editor{padding:13px}.card-editor-head{align-items:flex-start}.bank-card-meta{align-items:flex-start;flex-direction:column}.hero-bank-chip{display:flex;width:max-content;max-width:100%}}

/* v0.10 - searchable ledger source/destination account picker */
.ledger-account-picker{border:1px solid #e2e6ee;background:#fbfcfe;border-radius:17px;padding:12px}.ledger-account-search{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #dfe3ea;border-radius:13px;padding:5px 8px;transition:.18s}.ledger-account-search:focus-within{border-color:#8378ff;box-shadow:0 0 0 4px rgba(79,70,229,.08)}.ledger-account-search-icon{width:34px;height:34px;display:grid;place-items:center;color:#6d7480;font-size:20px;flex:0 0 auto}.ledger-account-search input{min-width:0;flex:1;border:0;outline:0;background:transparent;padding:9px 3px;font:inherit;color:var(--text)}.ledger-account-search input:disabled{cursor:not-allowed;color:#9aa2ad}.ledger-account-search-clear{width:31px;height:31px;border:0;border-radius:9px;background:#f0f2f6;color:#667085;font:inherit;font-size:17px;cursor:pointer;display:grid;place-items:center}.ledger-account-search-clear:hover{background:#e7eaf0}.ledger-account-selected{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px;padding:10px 12px;border:1px solid #dcd6ff;background:#f6f4ff;border-radius:13px}.ledger-account-selected-copy{min-width:0;flex:1}.ledger-account-selected-copy>span{display:block;color:#6557ce;font-size:8px;font-weight:800;margin-bottom:5px}.ledger-account-selected-main{display:flex;align-items:center;gap:9px;min-width:0}.ledger-account-selected-main .brokerage-logo-sm,.ledger-account-selected-main .bank-logo-shell-sm{width:38px;height:38px;border-radius:11px;flex:0 0 auto}.ledger-account-selected-main .ibl32{transform:scale(.84)}.ledger-account-remove{border:0;background:#fff;color:#a23c4e;border-radius:10px;padding:8px 10px;font:inherit;font-size:9px;font-weight:800;cursor:pointer;white-space:nowrap}.ledger-account-results{margin-top:10px;display:flex;flex-direction:column;gap:7px;max-height:300px;overflow:auto;padding:2px;scrollbar-width:thin;scrollbar-color:#c7ccd5 transparent}.ledger-account-result{width:100%;border:1px solid #e7eaf0;background:#fff;border-radius:13px;padding:10px 11px;display:flex;align-items:center;gap:10px;text-align:right;font:inherit;color:inherit;cursor:pointer;transition:.16s}.ledger-account-result:hover{border-color:#cfcaff;background:#fbfaff;transform:translateY(-1px)}.ledger-account-result.is-selected{border-color:#9e94ff;background:#f6f4ff;box-shadow:0 0 0 2px rgba(79,70,229,.05)}.ledger-account-result-logo{display:flex;align-items:center;justify-content:center;flex:0 0 auto}.ledger-account-result-logo .brokerage-logo-sm,.ledger-account-result-logo .bank-logo-shell-sm{width:42px;height:42px;border-radius:12px}.ledger-account-result-logo .ibl32{transform:scale(.9)}.ledger-account-result-copy{min-width:0;flex:1}.ledger-account-result-head{display:flex;align-items:center;gap:7px;min-width:0}.ledger-account-result-head strong{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ledger-account-result-head em{font-style:normal;font-size:7px;font-weight:800;padding:3px 6px;border-radius:999px;background:#eef0f5;color:#667085;white-space:nowrap}.ledger-account-result-copy small{display:block;margin-top:2px;color:var(--muted);font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ledger-account-result-ref{display:block;margin-top:4px;font-size:8px;color:#5d6674;direction:rtl}.ledger-account-result-action{font-size:8px;font-weight:800;color:#6256d4;background:#f0eeff;border-radius:9px;padding:6px 8px;white-space:nowrap}.ledger-account-result.is-selected .ledger-account-result-action{background:#6557ce;color:#fff}.ledger-account-empty{padding:28px 15px;text-align:center;color:var(--muted)}.ledger-account-empty>span,.ledger-account-empty>strong,.ledger-account-empty>small{display:block}.ledger-account-empty>span{font-size:25px}.ledger-account-empty>strong{font-size:11px;color:#4e5968;margin-top:5px}.ledger-account-empty>small{font-size:8px;margin-top:3px}.ledger-account-picker-foot{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;border-top:1px solid #edf0f4;margin-top:9px;padding:9px 3px 0;color:var(--muted);font-size:8px}.ledger-account-picker-foot>span:first-child{font-weight:800;color:#6557ce;white-space:nowrap}.is-hidden{display:none!important}
@media(max-width:640px){.ledger-account-picker{padding:9px}.ledger-account-results{max-height:340px}.ledger-account-result{padding:9px}.ledger-account-result-action{display:none}.ledger-account-selected{align-items:flex-start;flex-direction:column}.ledger-account-remove{width:100%}.ledger-account-picker-foot{flex-direction:column;gap:4px}}

/* v0.11 - multiple brokerage account numbers and IBANs */
.bank-details-editor-list{display:flex;flex-direction:column;gap:14px}.bank-detail-editor{border:1px solid #e5e9ef;border-radius:16px;padding:16px;background:linear-gradient(145deg,#fbfcfe,#f8f7ff);transition:.18s}.bank-detail-editor:hover{border-color:#d4d0fa}.bank-detail-editor.marked-for-removal{display:none}.brokerage-bank-details-help{margin-top:12px;padding:10px 12px;border-radius:12px;background:#f7f5ff;color:#665e87}.account-bank-details-section{margin-bottom:15px}.bank-details-view-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin-top:13px}.bank-detail-view{border:1px solid #e8ebf0;border-radius:16px;padding:15px;background:linear-gradient(145deg,#fff,#faf9ff)}.bank-detail-view-head{display:flex;align-items:center;gap:10px}.bank-detail-view-head>div{min-width:0}.bank-detail-view-head span,.bank-detail-view-head strong,.bank-detail-view-head small{display:block}.bank-detail-view-head span{font-size:8px;color:var(--muted)}.bank-detail-view-head strong{font-size:11px;margin-top:1px}.bank-detail-view-head small{font-size:8px;color:#7c8797;margin-top:2px}.bank-detail-generic{width:42px;height:42px;border-radius:12px;background:#f0eeff;color:#6557ce;display:grid!important;place-items:center;font-size:20px!important;flex:0 0 auto}.bank-detail-values{display:flex;flex-direction:column;gap:8px;margin-top:13px}.bank-detail-values>div{padding:10px 11px;border-radius:12px;background:#f4f6f9}.bank-detail-values>div>span{display:block;font-size:8px;color:var(--muted);margin-bottom:5px}.bank-detail-values .secret-line{gap:8px}.bank-detail-values code{font-size:11px}.multi-bank-mini{width:28px;height:28px;border-radius:9px;background:#f0eeff;color:#6557ce;display:grid;place-items:center;font-size:14px;flex:0 0 auto}
@media(max-width:760px){.bank-details-view-grid{grid-template-columns:1fr}.bank-detail-editor{padding:13px}.brokerage-bank-details-section .card-section-head>.add-card-btn{width:100%}}

/* v0.11: multiple brokerage bank identities + per-card secrets */
.bank-card-passwords{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px;border-top:1px dashed #e4e8ef;padding-top:10px}.bank-card-passwords>div{background:#f7f8fb;border-radius:10px;padding:9px 10px}.bank-card-passwords>div>span{display:block;font-size:8px;color:var(--muted);margin-bottom:5px}.bank-card-passwords .secret-line code{font-size:10px}.card-password-row{padding-top:4px;border-top:1px dashed #e7eaf0}@media(max-width:600px){.bank-card-passwords{grid-template-columns:1fr}}

/* ========================================================================== 
   v0.13 — Visual refresh
   A clean Persian-first UI layer. Existing module selectors are kept for
   backwards compatibility while the shell, forms, tables and cards receive
   a consistent design system.
   ========================================================================== */
:root{
  --bg:#f4f6fb;
  --surface:#ffffff;
  --surface-soft:#f8f9fc;
  --surface-tint:#f5f3ff;
  --text:#182033;
  --heading:#111827;
  --muted:#778195;
  --border:#e6e9f1;
  --border-strong:#d9deea;
  --primary:#635bdb;
  --primary2:#7568f3;
  --primary-soft:#eeecff;
  --success:#17835f;
  --success-soft:#eaf8f2;
  --danger:#c83e55;
  --danger-soft:#fff0f3;
  --warning:#a86c12;
  --warning-soft:#fff7e8;
  --sidebar:#111827;
  --sidebar-soft:#1a2435;
  --shadow:0 10px 30px rgba(27,36,58,.06);
  --shadow-hover:0 16px 38px rgba(27,36,58,.10);
  --radius:18px;
  --radius-sm:12px;
}

html{scroll-behavior:smooth}
body{
  background:
    radial-gradient(circle at 90% -5%,rgba(99,91,219,.08),transparent 28rem),
    var(--bg);
  color:var(--text);
  font-family:"Vazirmatn","Vazir","IRANSansX","IRANSans",Tahoma,sans-serif;
  font-size:14px;
  line-height:1.75;
  -webkit-font-smoothing:antialiased;
}
button,input,select,textarea{font:inherit}
a{color:inherit}
::selection{background:#dcd8ff;color:#302885}
.ui-icon{display:block;fill:currentColor;stroke:currentColor;flex:0 0 auto}

/* App shell */
.sidebar{
  width:286px;
  padding:22px 16px 18px;
  background:
    radial-gradient(circle at 80% 0,rgba(116,104,243,.17),transparent 15rem),
    linear-gradient(180deg,#111827 0%,#0d1422 100%);
  border-left:1px solid rgba(255,255,255,.06);
  box-shadow:-8px 0 35px rgba(15,23,42,.08);
}
.brand{padding:2px 8px 22px;gap:12px}
.brand-mark{
  width:46px;height:46px;border-radius:15px;
  background:linear-gradient(135deg,#8478ff,#5d54d8);
  box-shadow:0 9px 22px rgba(99,91,219,.28);
  color:#fff;
}
.brand-mark span{font-weight:800;letter-spacing:.4px}
.brand-copy{min-width:0}
.brand-copy strong{display:block;font-size:15px;letter-spacing:.2px}
.brand-copy small{display:block;margin-top:2px;color:#8f9aae;font-size:11px;font-weight:500}
.main-nav{display:flex;flex-direction:column;gap:18px;overflow:auto;padding:2px 2px 10px;scrollbar-width:thin;scrollbar-color:#2e394a transparent}
.nav-section{display:flex;flex-direction:column;gap:5px}
.nav-section-title{padding:0 12px 5px;color:#667085;font-size:10px;font-weight:700;letter-spacing:.2px}
.sidebar .nav-link{
  min-height:44px;padding:9px 11px;border-radius:13px;
  color:#c4ccda;text-decoration:none;display:flex;gap:10px;align-items:center;
  font-size:13px;font-weight:600;border:1px solid transparent;transition:.18s ease;
}
.sidebar .nav-link:hover{background:rgba(255,255,255,.055);color:#fff;transform:translateX(-1px)}
.sidebar .nav-link.active{background:linear-gradient(135deg,rgba(116,104,243,.20),rgba(99,91,219,.13));border-color:rgba(151,140,255,.17);color:#fff}
.sidebar .nav-link-accent{color:#e5e1ff}
.sidebar .nav-link-accent .nav-icon{background:rgba(116,104,243,.18)}
.nav-icon{width:29px;height:29px;border-radius:9px;display:grid;place-items:center;background:rgba(255,255,255,.045);color:#9ca8ba}
.nav-link.active .nav-icon{background:rgba(116,104,243,.25);color:#dedaff}
.nav-sub-link{padding-right:18px!important;min-height:38px!important;font-size:12px!important}
.nav-sub-dot{width:6px;height:6px;border-radius:999px;background:#586275;margin-right:12px}
.nav-sub-link.active .nav-sub-dot{background:#8e85ff;box-shadow:0 0 0 4px rgba(142,133,255,.12)}
.sidebar-footer{padding:15px 6px 0;border-color:#263143}
.user-mini{padding:2px 3px;gap:10px}
.avatar,.topbar-avatar{background:linear-gradient(135deg,#7568f3,#5c53d2);color:#fff;box-shadow:0 7px 18px rgba(92,83,210,.22)}
.user-mini-copy{min-width:0;flex:1}
.user-mini-copy strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}
.user-mini-copy small{font-size:10px;color:#8f9aae}
.logout-link{display:flex;align-items:center;gap:8px;margin-top:11px;padding:9px 10px;border-radius:11px;color:#f2a7b3;font-size:11px;font-weight:600;transition:.15s}
.logout-link:hover{background:rgba(230,80,105,.09);color:#ffc0ca}

.main{margin-right:286px;min-height:100vh}
.auth-main{margin-right:0}
.topbar{
  height:108px;padding:22px 34px 18px;
  display:flex;align-items:center;justify-content:space-between;gap:20px;
}
.topbar-main,.topbar-meta{display:flex;align-items:center;gap:13px}
.page-heading h1{font-size:24px;line-height:1.3;font-weight:800;letter-spacing:-.2px;color:var(--heading);margin:0}
.page-heading p{margin:4px 0 0;font-size:11px;color:var(--muted)}
.topbar-meta{margin-right:auto}
.secure-pill{display:flex;align-items:center;gap:7px;padding:8px 11px;border:1px solid #dcefe7;background:#f2fbf7;color:#247456;border-radius:999px;font-size:10px;font-weight:700}
.topbar-avatar{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;font-weight:800}
.menu-btn{background:#fff;border:1px solid var(--border);box-shadow:var(--shadow);color:#4c5568}
.content{padding:0 34px 48px;max-width:1540px}
.sidebar-backdrop{display:none}

/* Core surfaces */
.card{
  border:1px solid var(--border);
  border-radius:20px;
  box-shadow:var(--shadow);
  padding:22px;
  background:rgba(255,255,255,.97);
}
.card:hover{border-color:#e0e3ed}
.card h2{font-size:16px;font-weight:800;color:var(--heading)}
.muted,.help{color:var(--muted)}
.help{font-size:11px;line-height:1.9}
.eyebrow{font-size:10px;font-weight:800;color:#7168d8;letter-spacing:.25px}

.btn{
  min-height:40px;padding:9px 15px;border-radius:11px;
  font-weight:700;font-size:12px;line-height:1.3;
  transition:transform .15s ease,box-shadow .15s ease,background .15s ease,border-color .15s ease;
}
.btn:hover{transform:translateY(-1px)}
.btn-primary{background:linear-gradient(135deg,#7568f3,#5d55d5);box-shadow:0 8px 18px rgba(99,91,219,.18);color:#fff}
.btn-primary:hover{box-shadow:0 10px 24px rgba(99,91,219,.25)}
.btn-light{background:#f5f6fa;border:1px solid #e8eaf0;color:#465166}
.btn-light:hover{background:#eff1f6;border-color:#dfe3ea}
.btn-danger{background:var(--danger-soft);border:1px solid #f8d9df;color:var(--danger)}
.btn-sm{min-height:34px;padding:7px 10px;border-radius:9px;font-size:10px}
.btn-lg{min-height:44px;padding:11px 18px}
.actions{gap:8px}

.input,.select,textarea.input{
  min-height:45px;border:1px solid var(--border-strong);border-radius:12px;
  padding:10px 13px;background:#fff;color:var(--text);font-size:12px;
  transition:border-color .15s,box-shadow .15s,background .15s;
}
.input:hover,.select:hover,textarea.input:hover{border-color:#ccd2df}
.input:focus,.select:focus,textarea.input:focus{border-color:#8d84ef;box-shadow:0 0 0 4px rgba(99,91,219,.09);background:#fff}
.input::placeholder,textarea.input::placeholder{color:#a0a8b5}
.form-group{margin-bottom:17px}
.form-group label{font-size:11px;font-weight:800;color:#3d4759;margin-bottom:7px}
.form-row{gap:15px}
.form-section{padding:23px 24px;margin-bottom:16px}
.form-section-title{padding-bottom:16px;margin-bottom:19px;border-bottom:1px solid #edf0f4}
.form-section-title h2{font-size:15px;margin:0 0 3px}
.form-section-title p{font-size:10px;line-height:1.8;color:var(--muted);margin:0}
.section-icon{width:40px;height:40px;border-radius:12px;background:var(--primary-soft);color:#5f56d4;display:grid;place-items:center;font-size:18px}
.sticky-actions{border:1px solid var(--border);box-shadow:0 10px 25px rgba(23,32,51,.08);border-radius:16px;background:rgba(255,255,255,.94);backdrop-filter:blur(12px)}

/* Search / filters */
.list-toolbar{padding:13px 14px!important;border-radius:17px!important;gap:12px!important}
.modern-search{
  min-height:48px;border:1px solid #dfe3ec!important;background:#fff!important;border-radius:13px!important;
  padding:4px 5px 4px 10px!important;box-shadow:none!important;transition:.16s!important;
}
.modern-search:focus-within{border-color:#9289f2!important;box-shadow:0 0 0 4px rgba(99,91,219,.08)!important}
.modern-search-icon{width:35px!important;height:35px!important;display:grid!important;place-items:center!important;color:#8b94a4!important;font-size:18px!important}
.modern-search input{font-size:12px!important;padding:8px 4px!important}
.search-submit{height:38px!important;border-radius:10px!important;padding:0 15px!important;background:#6259da!important;font-size:11px!important;font-weight:800!important;box-shadow:none!important}
.search-clear{width:30px!important;height:30px!important;border-radius:9px!important;background:#f1f2f6!important;color:#737d8c!important}
.count-chip,.lock-chip,.count-pill{font-size:10px;border-radius:999px}

/* Tables */
.table-wrap{border-radius:14px}
.table{min-width:760px}
.table th{padding:12px 13px;background:#f8f9fb;color:#7a8494;font-size:10px;font-weight:800;border-bottom:1px solid #e8ebf1}
.table td{padding:14px 13px;font-size:11px;border-bottom:1px solid #edf0f4;vertical-align:middle}
.table tbody tr{transition:background .12s}
.table tbody tr:hover{background:#fafbfe}
.table tbody tr:last-child td{border-bottom:0}
.badge{padding:5px 9px;font-size:9px}
.user-table-card{padding:8px 12px}
.table-avatar{width:34px;height:34px;border-radius:10px}

/* Dashboard */
.hero{
  position:relative;overflow:hidden;
  background:linear-gradient(135deg,#171f32 0%,#25244f 62%,#5149ad 145%);
  border:0;box-shadow:0 18px 42px rgba(25,31,53,.13);padding:26px 28px;
}
.hero:after{content:"";position:absolute;left:-80px;top:-110px;width:280px;height:280px;border-radius:50%;background:rgba(125,114,255,.16);filter:blur(2px)}
.hero h2{font-size:20px;color:#fff;position:relative;z-index:1}
.hero p{font-size:11px;color:#c9d0df;position:relative;z-index:1;max-width:720px}
.stat-card{position:relative;overflow:hidden;min-height:128px;padding:20px}
.stat-card:before{content:"";position:absolute;left:17px;top:17px;width:10px;height:10px;border-radius:50%;background:#786cf0;box-shadow:0 0 0 6px #f0eeff}
.stat-card .label{font-size:10px;font-weight:700;color:#7a8494}
.stat-card .num{font-size:29px;line-height:1.2;color:#20283a;margin-top:13px}
.wide,.side{min-height:150px}

/* Page headings */
.page-heading-actions,.accounts-page-head{margin-bottom:17px;align-items:center}
.page-heading-actions h2,.accounts-intro h2{font-size:18px!important;color:var(--heading);margin:0 0 3px!important}
.accounts-intro p,.page-heading-actions .help{font-size:11px!important;margin:0!important}
.page-actions{margin-bottom:15px}

/* Account list */
.accounts-filter-toolbar{display:grid!important;grid-template-columns:minmax(260px,.8fr) minmax(380px,1.5fr) auto;align-items:center}
.account-owner-filter-form{min-height:48px!important;padding:4px 6px!important;border-radius:13px!important;border:1px solid #e0e4ec!important;background:#fff!important}
.account-owner-filter-icon{width:35px!important;height:35px!important;border-radius:10px!important;background:#f1efff!important;color:#655bd8!important;font-size:15px!important}
.account-owner-filter-copy span{font-size:9px!important}.account-owner-filter-copy small{font-size:8px!important}
.account-owner-select{min-height:36px!important;border:0!important;background:#f7f8fb!important;padding:6px 9px!important;font-size:10px!important}
.account-results-count{min-width:78px!important;padding:4px 11px!important;border-right:1px solid #eceef3!important}
.account-results-count strong{font-size:18px!important}.account-results-count span,.account-results-count small{font-size:8px!important}
.account-grid{gap:15px!important}
.account-card{padding:18px!important;border-radius:18px!important;transition:transform .16s,box-shadow .16s,border-color .16s}
.account-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-hover);border-color:#dcdfea}
.account-title h3{font-size:13px!important;margin-bottom:2px!important}.account-title p{font-size:9px!important}
.owner-line{font-size:9px!important}.owner-avatar{width:27px!important;height:27px!important;font-size:9px!important}
.account-numbers{gap:8px!important}.account-numbers>div{padding:10px 11px!important;border-radius:11px!important;background:#f7f8fb!important}
.account-numbers span{font-size:8px!important}.account-numbers strong{font-size:10px!important}
.account-card-actions{padding-top:12px!important;margin-top:12px!important;border-top:1px solid #edf0f4!important}
.icon-danger{width:34px!important;height:34px!important;border-radius:9px!important}

/* Bank / brokerage identity elements */
.bank-logo-shell,.brokerage-logo-shell{border:1px solid #e8ebf1;background:#fff;box-shadow:0 3px 10px rgba(28,38,61,.05)}
.bank-logo-shell-sm,.brokerage-logo-sm{width:44px!important;height:44px!important;border-radius:13px!important}
.bank-logo-shell-lg,.brokerage-logo-lg{width:64px!important;height:64px!important;border-radius:17px!important}
.bank-table-cell strong{font-size:11px}.bank-table-cell small{font-size:8px;color:var(--muted)}
.custom-logo-editor{gap:12px}
.custom-logo-preview,.custom-logo-upload{border-radius:15px!important;border-color:#e3e6ed!important;background:#fafbfc!important}
.custom-logo-upload:hover{border-color:#aca5f5!important;background:#f9f8ff!important}
.logo-picker{gap:10px!important}.logo-choice{border-radius:13px!important;padding:10px!important}
.logo-choice:has(input:checked){border-color:#9188ef!important;background:#f7f5ff!important;box-shadow:0 0 0 3px rgba(99,91,219,.06)}

/* Comboboxes */
.bank-combobox{border-radius:13px!important}
.bank-combo-control{min-height:45px!important;border-radius:12px!important;border-color:#dfe3ea!important}
.bank-combo-control:focus-within{border-color:#8e85ef!important;box-shadow:0 0 0 4px rgba(99,91,219,.08)!important}
.bank-combo-input{font-size:11px!important}
.bank-combo-menu{border-radius:14px!important;border-color:#e2e5ec!important;box-shadow:0 18px 40px rgba(30,39,60,.13)!important;padding:7px!important}
.bank-combo-option{border-radius:10px!important;padding:8px!important}.bank-combo-option strong{font-size:10px!important}.bank-combo-option small{font-size:8px!important}

/* Account form editors */
.origin-switch{gap:10px!important}.origin-choice{border-radius:15px!important;padding:14px!important;background:#fafbfc!important}
.origin-choice.selected{border-color:#9c94ef!important;background:#f7f5ff!important;box-shadow:0 0 0 3px rgba(99,91,219,.05)}
.origin-choice strong{font-size:11px!important}.origin-choice small{font-size:9px!important;line-height:1.7!important}
.card-editor,.bank-detail-editor{border-radius:16px!important;border-color:#e4e7ee!important;background:#fbfcfe!important;padding:16px!important}
.card-editor:hover,.bank-detail-editor:hover{border-color:#d2cef5!important}
.card-editor-head strong,.bank-detail-editor strong{font-size:11px!important}
.add-card-btn{border-radius:10px!important}

/* Account view */
.account-view-hero,.brokerage-account-hero{border-radius:20px!important;padding:22px!important}
.account-view-title h2{font-size:18px!important}.account-view-title p{font-size:10px!important}
.kv{grid-template-columns:170px minmax(0,1fr);padding:12px 0!important}
.kv span:first-child{font-size:10px!important}.kv span:last-child,.kv code{font-size:11px!important}
.cards-view-grid,.bank-details-view-grid{gap:12px!important}
.bank-card-view,.bank-detail-view{border-radius:15px!important;padding:14px!important}
.bank-card-view-head span,.bank-detail-view-head span{font-size:8px!important}.bank-card-view-head strong,.bank-detail-view-head strong{font-size:11px!important}
.bank-card-number code{font-size:12px!important}.bank-card-meta>span{font-size:8px!important}.bank-card-meta b,.bank-card-meta code{font-size:10px!important}

/* Brokerage books */
.brokerage-books-hero{border:0!important;background:linear-gradient(135deg,#fff,#f6f4ff)!important;box-shadow:var(--shadow)!important;padding:24px 25px!important}
.brokerage-books-hero h2{font-size:18px!important}.brokerage-books-hero p{font-size:10px!important;max-width:760px!important}
.brokerage-books-grid{gap:15px!important}
.brokerage-book-card{border-radius:18px!important;padding:18px!important;transition:transform .16s,box-shadow .16s}
.brokerage-book-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-hover)!important}
.brokerage-book-card-title span{font-size:8px!important}.brokerage-book-card-title h3{font-size:14px!important}.brokerage-book-card-title small{font-size:8px!important}
.brokerage-book-stats strong{font-size:18px!important}.brokerage-book-stats span{font-size:8px!important}.brokerage-book-footer{font-size:8px!important}

/* Ledger */
.ledger-head{padding:20px 22px!important;border-radius:19px!important}.ledger-head h2{font-size:18px!important}.ledger-head p{font-size:9px!important}
.ledger-summary-grid{gap:12px!important}.ledger-summary{padding:17px!important;border-radius:16px!important}.ledger-summary span{font-size:9px!important}.ledger-summary strong{font-size:18px!important}.ledger-summary small{font-size:8px!important}
.ledger-toolbar{padding:12px!important;border-radius:16px!important}
.ledger-filter{font-size:9px!important;padding:7px 10px!important;border-radius:9px!important}
.ledger-row{border-radius:17px!important;padding:16px!important}.ledger-row-type strong{font-size:10px!important}.ledger-row-type span{font-size:8px!important}.ledger-row-amount strong{font-size:16px!important}.ledger-row-amount span{font-size:8px!important}.ledger-reason strong{font-size:10px!important}.ledger-reason span,.ledger-counterparty{font-size:9px!important}
.ledger-account-picker{border-radius:15px!important;background:#fafbfc!important}.ledger-account-search{min-height:46px!important;border-radius:12px!important}.ledger-account-result{border-radius:12px!important;padding:10px!important}.ledger-account-result-head strong{font-size:10px!important}.ledger-account-result-copy small,.ledger-account-result-ref,.ledger-account-result-action{font-size:8px!important}

/* Auth / installer */
.auth-page,.auth-main{min-height:100vh}
.auth-main{background:radial-gradient(circle at 50% 5%,rgba(99,91,219,.13),transparent 26rem);padding:24px}
.auth-card{border-radius:22px!important;box-shadow:0 24px 60px rgba(26,35,57,.11)!important;border:1px solid #e4e7ef!important;padding:30px!important}
.auth-card h1{font-size:21px!important}.auth-card .subtitle{font-size:11px!important;line-height:1.9!important}
.auth-logo .brand-mark{width:52px;height:52px;border-radius:16px}

.alert{border:1px solid transparent;font-size:11px;padding:11px 13px;border-radius:12px}
.alert-success{border-color:#d5f0e5}.alert-danger{border-color:#f5d5dc}.alert-warning{border-color:#f3e3bd}
.empty{padding:48px 22px!important}.empty h3{font-size:15px!important}.empty p{font-size:10px!important}.empty .icon{font-size:32px!important}

/* Responsive */
@media(max-width:1180px){
  .accounts-filter-toolbar{grid-template-columns:1fr 1.25fr}.account-results-count{grid-column:1/-1;border-right:0!important;border-top:1px solid #edf0f4!important;padding-top:9px!important;display:flex!important;gap:6px!important;align-items:center!important;justify-content:flex-end!important}
}
@media(max-width:980px){
  .sidebar{width:278px;transform:translateX(110%);transition:transform .22s ease}
  .sidebar-open .sidebar{transform:none}
  .sidebar-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.38);backdrop-filter:blur(2px);z-index:25}
  .sidebar-open .sidebar-backdrop{display:block}
  .main{margin-right:0}
  .topbar{height:92px;padding:18px 20px}
  .menu-btn{display:grid;place-items:center}
  .content{padding:0 20px 32px}
}
@media(max-width:760px){
  body{font-size:13px}
  .topbar{height:auto;min-height:82px;padding:15px 14px}.page-heading h1{font-size:20px}.page-heading p,.secure-pill{display:none}.topbar-avatar{width:34px;height:34px}
  .content{padding:0 13px 26px}.card{padding:17px;border-radius:17px}
  .accounts-page-head,.page-heading-actions{align-items:flex-start;gap:12px}.accounts-page-head>.btn,.page-heading-actions>.btn{width:100%}
  .accounts-filter-toolbar{grid-template-columns:1fr!important}.account-owner-filter-form{display:grid!important;grid-template-columns:auto 1fr!important}.account-owner-select{grid-column:1/-1!important;width:100%!important}.owner-filter-clear{position:absolute!important;left:9px!important;top:9px!important}
  .modern-search{width:100%!important}.search-submit{padding:0 11px!important}
  .stat-card{min-height:105px}.stat-card .num{font-size:25px}
  .form-section{padding:18px}.form-section-title{align-items:flex-start}
  .sticky-actions{bottom:8px!important;margin:12px 0!important;padding:9px!important;gap:7px!important}.sticky-actions .btn{flex:1}
  .kv{grid-template-columns:1fr;gap:4px}
  .ledger-head{gap:14px!important}.ledger-head-actions{width:100%!important}.ledger-head-actions .btn{flex:1!important}
}
@media(max-width:520px){
  .brand{padding-bottom:16px}.sidebar{width:min(86vw,300px)}
  .topbar-meta{gap:7px}.topbar-avatar{display:none}
  .grid{gap:12px}.hero{padding:21px}.hero h2{font-size:18px}
  .btn-lg{min-height:42px}.form-row{gap:0}
  .brokerage-books-grid,.account-grid{grid-template-columns:1fr!important}
}

/* v0.13 dashboard composition */
.dashboard-hero{display:flex;align-items:center;justify-content:space-between;gap:28px;min-height:174px}
.dashboard-hero-copy{position:relative;z-index:1;max-width:720px}
.hero-kicker{display:inline-flex;padding:5px 9px;border:1px solid rgba(255,255,255,.12);border-radius:999px;background:rgba(255,255,255,.07);color:#d9dcff;font-size:9px;font-weight:800;margin-bottom:10px}
.dashboard-hero-copy h2{margin:0 0 6px;font-size:22px}.dashboard-hero-copy p{margin:0}
.dashboard-hero-actions{position:relative;z-index:1;display:flex;gap:8px;flex-wrap:wrap}
.hero-primary-btn{background:#fff!important;color:#4f47bf!important;box-shadow:0 8px 20px rgba(10,15,30,.14)!important}
.hero-secondary-btn{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);color:#f0f1f9}
.modern-stat:before{display:none}.modern-stat{display:flex;flex-direction:column;justify-content:space-between}.stat-head{display:flex;align-items:center;gap:9px}.stat-icon{width:34px;height:34px;border-radius:10px;display:grid;place-items:center}.stat-icon.purple{background:#efedff;color:#6259d8}.stat-icon.blue{background:#edf5ff;color:#3976bd}.stat-icon.green{background:#eaf8f2;color:#208164}.stat-icon.amber{background:#fff5df;color:#a86c12}.modern-stat .label{font-size:10px}.modern-stat .num{margin:12px 0 0}.modern-stat small{font-size:8px;color:#9098a7}
.section-head.compact{margin-bottom:14px}.section-head.compact h2{margin:2px 0 0}.quick-panel{padding:20px}.quick-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.quick-action{display:flex;align-items:center;gap:10px;padding:11px;border:1px solid #e9ebf1;border-radius:13px;text-decoration:none;background:#fafbfc;transition:.15s}.quick-action:hover{background:#f7f6ff;border-color:#d8d4fa;transform:translateY(-1px)}.quick-action-icon{width:35px;height:35px;border-radius:10px;background:#efedff;color:#6259d8;display:grid;place-items:center;flex:0 0 auto}.quick-action>span:nth-child(2){min-width:0;flex:1}.quick-action strong,.quick-action small{display:block}.quick-action strong{font-size:10px;color:#323b4e}.quick-action small{font-size:8px;color:#8992a2;margin-top:1px}.quick-action>.ui-icon{color:#a0a7b4}
.security-panel{position:relative;overflow:hidden;padding:22px}.security-panel:after{content:"";position:absolute;width:150px;height:150px;border-radius:50%;left:-70px;bottom:-80px;background:#efedff}.security-panel-icon{width:48px;height:48px;border-radius:14px;background:#eaf8f2;color:#238064;display:grid;place-items:center;margin-bottom:14px;position:relative;z-index:1}.security-panel h2{margin:3px 0 8px;font-size:14px}.security-panel p{font-size:9px;line-height:1.9;color:var(--muted);position:relative;z-index:1}.security-note{display:flex;align-items:center;gap:7px;margin-top:14px;padding:9px 10px;border-radius:10px;background:#f6f8fb;font-size:8px;color:#687386;position:relative;z-index:1}.security-note span{color:#1a966b;font-size:9px}
@media(max-width:780px){.dashboard-hero{align-items:flex-start;flex-direction:column}.dashboard-hero-actions{width:100%}.dashboard-hero-actions .btn{flex:1}.quick-action-grid{grid-template-columns:1fr}}

/* ========================================================================== 
   v0.14 — Readability / typography pass
   Larger Persian-first type scale across cards, forms, tables and ledgers.
   ========================================================================== */
body{font-size:15px;line-height:1.82}

/* Sidebar & top bar */
.brand-copy strong{font-size:16px}
.brand-copy small{font-size:12px}
.nav-section-title{font-size:11px}
.sidebar .nav-link{font-size:14px;min-height:46px}
.nav-sub-link{font-size:13px!important;min-height:40px!important}
.user-mini-copy strong{font-size:13px}
.user-mini-copy small{font-size:11px}
.logout-link{font-size:12px}
.page-heading h1{font-size:28px}
.page-heading p{font-size:14px}
.secure-pill{font-size:12px}

/* General content */
.card h2{font-size:18px}
.help{font-size:13px;line-height:1.9}
.eyebrow{font-size:12px}
.btn{font-size:14px;min-height:42px}
.btn-sm{font-size:13px;min-height:36px}
.btn-lg{font-size:15px;min-height:46px}
.input,.select,textarea.input{font-size:14px;min-height:47px}
.form-group label{font-size:13px}
.form-section-title h2{font-size:17px}
.form-section-title p{font-size:13px}
.count-chip,.lock-chip,.count-pill{font-size:12px}
.alert{font-size:13px}
.empty h3{font-size:17px!important}
.empty p{font-size:13px!important}

/* Search and filters */
.modern-search input{font-size:14px!important}
.search-submit{font-size:13px!important}
.account-owner-filter-copy span{font-size:12px!important}
.account-owner-filter-copy small{font-size:11px!important}
.account-owner-select{font-size:13px!important}
.account-results-count strong{font-size:21px!important}
.account-results-count span,.account-results-count small{font-size:11px!important}

/* Tables */
.table th{font-size:12px}
.table td{font-size:13px}
.badge{font-size:11px}
.bank-table-cell strong{font-size:13px}
.bank-table-cell small{font-size:11px}

/* Dashboard */
.hero h2{font-size:23px}
.hero p{font-size:14px}
.stat-card .label,.modern-stat .label{font-size:12px}
.stat-card .num{font-size:31px}
.modern-stat small{font-size:11px}
.hero-kicker{font-size:11px}
.dashboard-hero-copy h2{font-size:25px}
.page-heading-actions h2,.accounts-intro h2{font-size:21px!important}
.accounts-intro p,.page-heading-actions .help{font-size:13px!important}
.quick-action strong{font-size:13px}
.quick-action small{font-size:11px}
.security-panel h2{font-size:17px}
.security-panel p{font-size:12px}
.security-note{font-size:11px}
.security-note span{font-size:11px}

/* Account list — especially the screen shown in v0.13 feedback */
.account-title h3{font-size:16px!important;line-height:1.55}
.account-title p{font-size:12px!important}
.owner-line{font-size:12px!important}
.owner-avatar{font-size:11px!important}
.account-numbers span{font-size:11px!important}
.account-numbers strong{font-size:13px!important;line-height:1.65}
.account-card-actions .btn{font-size:13px}

/* Bank/brokerage selectors */
.bank-combo-input{font-size:14px!important}
.bank-combo-option strong{font-size:13px!important}
.bank-combo-option small{font-size:11px!important}
.origin-choice strong{font-size:14px!important}
.origin-choice small{font-size:12px!important}
.card-editor-head strong,.bank-detail-editor strong{font-size:14px!important}

/* Account view */
.account-view-title h2{font-size:21px!important}
.account-view-title p{font-size:13px!important}
.kv span:first-child{font-size:12px!important}
.kv span:last-child,.kv code{font-size:13px!important}
.bank-card-view-head span,.bank-detail-view-head span{font-size:11px!important}
.bank-card-view-head strong,.bank-detail-view-head strong{font-size:14px!important}
.bank-card-number code{font-size:14px!important}
.bank-card-meta>span{font-size:11px!important}
.bank-card-meta b,.bank-card-meta code{font-size:13px!important}
.bank-card-passwords>div>span,.bank-detail-values>div>span{font-size:11px!important}
.bank-card-passwords .secret-line code,.bank-detail-values code{font-size:13px!important}

/* Brokerage books */
.brokerage-books-hero h2{font-size:21px!important}
.brokerage-books-hero p{font-size:13px!important}
.brokerage-book-card-title span{font-size:11px!important}
.brokerage-book-card-title h3{font-size:17px!important}
.brokerage-book-card-title small{font-size:11px!important}
.brokerage-book-stats strong{font-size:21px!important}
.brokerage-book-stats span{font-size:11px!important}
.brokerage-book-footer{font-size:11px!important}

/* Ledger */
.ledger-head h2{font-size:21px!important}
.ledger-head p{font-size:12px!important}
.ledger-summary span{font-size:12px!important}
.ledger-summary strong{font-size:21px!important}
.ledger-summary small{font-size:10px!important}
.ledger-filter{font-size:12px!important}
.ledger-row-type strong{font-size:13px!important}
.ledger-row-type span{font-size:11px!important}
.ledger-row-amount strong{font-size:19px!important}
.ledger-row-amount span{font-size:11px!important}
.ledger-reason strong{font-size:13px!important}
.ledger-reason span,.ledger-counterparty{font-size:12px!important}
.ledger-account-result-head strong{font-size:13px!important}
.ledger-account-result-copy small,.ledger-account-result-ref,.ledger-account-result-action{font-size:11px!important}

/* Login / installer */
.auth-card h1{font-size:24px!important}
.auth-card .subtitle{font-size:13px!important}

@media(max-width:760px){
  body{font-size:15px}
  .page-heading h1{font-size:23px}
  .sidebar .nav-link{font-size:14px}
  .account-title h3{font-size:15px!important}
  .account-numbers strong{font-size:12px!important}
  .table th{font-size:11px}
  .table td{font-size:12px}
}

/* ========================================================================== 
   v0.15 — Ledger transaction icon alignment fix
   Keep the transaction glyph centered and prevent generic span rules from
   overriding the icon's grid centering in RTL layouts.
   ========================================================================== */
.ledger-row-type .ledger-type-icon{
  display:grid!important;
  place-items:center!important;
  flex:0 0 40px;
  width:40px;
  height:40px;
  line-height:1!important;
  text-align:center!important;
  direction:ltr;
  font-size:18px!important;
  margin:0;
  padding:0;
}
.ledger-row-type>div>span{
  display:block;
  font-size:11px!important;
}
@media(max-width:560px){
  .ledger-row-type .ledger-type-icon{
    flex-basis:40px;
    width:40px;
    height:40px;
  }
}

/* ========================================================================== 
   v0.17 — Card expiry reminders + Persian expiry layout
   ========================================================================== */
.card-expiry-row .help{margin-top:6px}
.account-status-stack{margin-right:auto;display:flex;flex-direction:column;align-items:flex-end;gap:6px;flex:0 0 auto}
.card-expiry-badge{display:inline-flex!important;align-items:center;justify-content:center;width:max-content;max-width:100%;padding:5px 9px;border-radius:999px;font-style:normal;font-size:10px!important;font-weight:800;line-height:1.2;white-space:nowrap}
.card-expiry-badge.warning{background:#fff4d8;color:#925d08;border:1px solid #f5dfaa}
.card-expiry-badge.expired{background:#fff0f2;color:#aa2e45;border:1px solid #f5ccd4}
.bank-card-meta>span:first-child{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.bank-card-meta .card-expiry-badge{font-size:9px!important;padding:4px 7px}

.card-expiry-alert-panel{grid-column:span 12;padding:19px 20px;border-color:#f0dfb8;background:linear-gradient(145deg,#fff,#fffdf7)}
.card-expiry-alert-panel .section-head{align-items:center}
.expiry-alert-summary{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.expiry-summary-chip{display:inline-flex;padding:6px 10px;border-radius:999px;font-size:11px;font-weight:800;white-space:nowrap}
.expiry-summary-chip.warning{background:#fff3d4;color:#8e5a08}
.expiry-summary-chip.expired{background:#ffecef;color:#a52d43}
.expiry-alert-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.expiry-alert-item{display:flex;align-items:center;gap:10px;padding:11px 12px;border:1px solid #eceff3;border-radius:13px;text-decoration:none;color:inherit;background:#fff;transition:.15s}
.expiry-alert-item:hover{transform:translateY(-1px);box-shadow:0 8px 22px rgba(31,41,55,.07)}
.expiry-alert-item.warning{border-color:#f1dfb5;background:#fffdf7}
.expiry-alert-item.expired{border-color:#f0ccd3;background:#fffafb}
.expiry-alert-icon{width:36px;height:36px;border-radius:11px;display:grid;place-items:center;flex:0 0 auto}
.expiry-alert-item.warning .expiry-alert-icon{background:#fff1cf;color:#a86a0d}
.expiry-alert-item.expired .expiry-alert-icon{background:#ffe9ed;color:#b63049}
.expiry-alert-copy{min-width:0;flex:1}
.expiry-alert-copy strong,.expiry-alert-copy small,.expiry-alert-date b,.expiry-alert-date small{display:block}
.expiry-alert-copy strong{font-size:13px;color:#30394b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.expiry-alert-copy small{font-size:11px;color:#80899a;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.expiry-alert-date{text-align:left;flex:0 0 auto}
.expiry-alert-date b{font-size:13px;color:#253047}
.expiry-alert-date small{font-size:10px;font-weight:700;margin-top:2px}
.expiry-alert-item.warning .expiry-alert-date small{color:#99620d}
.expiry-alert-item.expired .expiry-alert-date small{color:#ad3048}
.expiry-alert-more{margin-top:10px;font-size:11px;color:#7c8594;text-align:center}

@media(max-width:760px){
  .expiry-alert-list{grid-template-columns:1fr}
  .card-expiry-alert-panel .section-head{align-items:flex-start;flex-direction:column}
  .account-status-stack{gap:5px}
}
@media(max-width:480px){
  .expiry-alert-item{align-items:flex-start}
  .expiry-alert-date{min-width:72px}
  .card-expiry-badge{font-size:9px!important}
}
.expiry-topbar-pill{display:inline-flex;align-items:center;gap:6px;padding:8px 11px;border-radius:999px;background:#fff3d4;color:#8d5a08;text-decoration:none;font-size:11px;font-weight:800;border:1px solid #f2dda9;white-space:nowrap}
.expiry-topbar-pill:hover{background:#ffedc2}
@media(max-width:760px){.expiry-topbar-pill span{display:none}.expiry-topbar-pill{width:38px;height:38px;padding:0;justify-content:center}}
.expiry-format-hint{font-size:9px;color:#9aa2af;font-weight:500}

/* ========================================================================== 
   v0.18 — Joint account ownership + friendlier card expiry input
   ========================================================================== */
.account-ownership-editor{display:grid;grid-template-columns:minmax(240px,.8fr) minmax(300px,1.2fr);gap:16px;align-items:start}
.owner-picker-search{position:relative;margin-bottom:8px}
.owner-picker-search>span{position:absolute;right:13px;top:50%;transform:translateY(-50%);display:grid;place-items:center;color:#8b94a6;pointer-events:none}
.owner-picker-search .input{padding-right:40px}
.shared-owner-options{display:grid;gap:7px;max-height:280px;overflow:auto;padding:2px}
.shared-owner-option{display:grid;grid-template-columns:auto 38px minmax(0,1fr) auto;align-items:center;gap:9px;padding:9px 10px;border:1px solid #e6e9f0;border-radius:12px;background:#fff;cursor:pointer;transition:.15s}
.shared-owner-option:hover{border-color:#cbc4ff;background:#fbfaff}
.shared-owner-option:has(input:checked){border-color:#9c8cff;background:#f5f2ff;box-shadow:0 0 0 2px rgba(108,92,231,.06)}
.shared-owner-option.is-primary-owner{opacity:.55;background:#f7f8fa;cursor:not-allowed}
.shared-owner-option input{width:17px;height:17px;accent-color:#6c5ce7}
.shared-owner-option .avatar{width:36px;height:36px;border-radius:11px;background:#f0edff;color:#5f4fd2;display:grid;place-items:center;font-weight:800}
.shared-owner-option strong,.shared-owner-option small{display:block}
.shared-owner-option strong{font-size:13px;color:#20283a}
.shared-owner-option small{font-size:10px;color:#929aaa;margin-top:2px}
.shared-owner-option>b{font-size:10px;color:#6757db;background:#eeeaff;padding:4px 7px;border-radius:999px}
.joint-account-readonly{padding:12px 14px;border-radius:13px;border:1px solid #ddd7ff;background:#faf8ff;margin-bottom:14px}
.joint-account-label{display:inline-flex;font-weight:800;color:#5f50cf;margin-bottom:8px}
.joint-owner-chips{display:flex;gap:7px;flex-wrap:wrap}
.joint-owner-chips span{padding:5px 8px;border-radius:999px;background:#eeeaff;color:#5144bb;font-size:11px;font-weight:700}
.joint-account-readonly small{display:block;color:#8a92a1;margin-top:8px}
.select-compact{min-height:34px!important;height:34px;padding:4px 9px;font-size:11px!important;width:auto}
.card-expiry-row{direction:rtl}
.card-expiry-row .input{direction:ltr;text-align:left}
@media(max-width:760px){.account-ownership-editor{grid-template-columns:1fr}.shared-owner-options{max-height:220px}}
