:root{font:16px system-ui,-apple-system,"Segoe UI",Tahoma,sans-serif;color:#10243a;background:#f4f6f8}*{box-sizing:border-box}body{margin:0}a{color:inherit;text-decoration:none}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}[hidden]{display:none!important}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #bc7d23;outline-offset:3px}.editor-header{background:#fff;border-bottom:1px solid #dfe5e9;padding:22px max(24px,calc((100vw - 1320px)/2));display:flex;justify-content:space-between;gap:18px}.editor-header>a:first-child{font-weight:850;font-size:1.25rem}.editor-header span{display:inline-block;border-right:1px solid #cfd8df;margin-right:12px;padding-right:12px;font-size:.88rem;font-weight:500;color:#677687}.editor-header>a:last-child{font-size:.9rem;font-weight:650}.editor-main{max-width:1368px;padding:36px 24px 64px;margin:auto}.eyebrow{color:#8b601d;font-size:.82rem;font-weight:750;letter-spacing:.03em}.editor-title h1{font-size:clamp(1.7rem,3vw,2.4rem);margin:8px 0}.editor-title>p:last-child{color:#617284;line-height:1.7;margin-bottom:24px}#editor-status{line-height:1.7;min-height:28px}#editor-status[data-tone=error]{color:#a12222}#editor-status[data-tone=success]{color:#176440}.editor-layout{display:grid;grid-template-columns:330px minmax(0,1fr);gap:28px;align-items:start}.editor-controls{background:white;border:1px solid #dce4e9;border-radius:22px;overflow:hidden}.editor-controls fieldset{border:0;padding:0;margin:0;min-width:0}.editor-controls section{padding:22px;border-bottom:1px solid #e7edf1}.editor-controls h2{display:flex;gap:12px;font-size:.85rem;font-weight:500;color:#8c98a5;margin:0 0 20px}.editor-controls h2 span{color:#10243a;font-size:1.06rem;font-weight:750}.upload-box{display:flex;flex-direction:column;gap:9px;border:1px dashed #a7bac9;border-radius:14px;padding:20px 12px;text-align:center;background:#f7fafc;cursor:pointer}.upload-box b{font-size:.96rem}.upload-box span{font-size:.72rem;color:#617284}.upload-box input{width:100%;font-size:.75rem;margin-top:7px}.hint{font-size:.78rem;line-height:1.65;color:#607182;margin:10px 0}.color-row{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:12px 0;min-height:38px;font-size:.9rem}.color-row input[type=color]{padding:3px;width:48px;height:36px;border-radius:8px;border:1px solid #c8d4dd;background:white;flex-shrink:0;cursor:pointer}.range-label{display:flex;justify-content:space-between;font-size:.9rem;margin:22px 0 12px}.range-label output{direction:ltr;font-size:.85rem;color:#617284}input[type=range]{width:100%;accent-color:#173d59}.field-label{display:block;font-size:.9rem;margin:16px 0 8px}select{width:100%;min-height:44px;padding:8px 10px;border:1px solid #c8d4dd;border-radius:10px;background:white;color:#10243a}.editor-controls details{border-top:1px solid #e7edf1;margin-top:20px;padding-top:18px}.editor-controls summary{font-weight:700;cursor:pointer;min-height:28px}.editor-actions button{display:block;width:100%;min-height:44px;border-radius:10px;font-weight:650}.save-button{background:#153b56;color:#fff;border:0}.secondary-button{background:#fff;border:1px solid #c8d4dd;color:#274d67;margin:10px 0}.text-button{background:none;border:0;padding:7px 0;color:#46657c;font-size:.85rem;text-decoration:underline;text-underline-offset:4px}#image-status{font-size:.82rem;overflow-wrap:anywhere}.preview-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 18px}.preview-title h2{font-size:1.02rem;margin:0}.preview-title p{font-size:.8rem;color:#667788;margin:7px 0 0}.preview-badge{border:1px solid #cbd9d1;color:#466551;border-radius:99px;padding:6px 10px;font-size:.73rem;white-space:nowrap}.appearance-preview{border-radius:22px;overflow:hidden;border:1px solid #d4dfe7;background:#edf2f6;box-shadow:0 16px 45px #1738520c;min-height:660px}.appearance-preview .top{background:#10243a;color:#fff;padding:22px 24px}.brand{display:flex;align-items:center;gap:10px}.brand small{font-weight:400;font-size:.72rem;margin-right:8px;color:#bdcedd}.mark{display:grid;place-items:center;width:38px;height:38px;background:#f1b14e;color:#10243a;border-radius:10px;font-weight:850}.appearance-preview .shell{padding:28px 20px 40px;margin:0}.appearance-preview.appearance-active .shell{margin:22px 18px;padding:24px 16px 38px}.hello h3{font-size:1.05rem;line-height:1.7;margin:5px 0;color:#152c44}.preview-eyebrow{font-size:.7rem;color:#576d80}.hello p{font-size:.8rem;color:#637788}.cash-strip{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:22px 0}.cash-strip>div{border:1px solid #cbd7e0;border-radius:14px;background:#ffffffcf;padding:14px;display:flex;justify-content:space-between;gap:8px;font-size:.8rem}.section-label{display:flex;align-items:center;gap:10px;font-size:.83rem;color:#536c7f;font-weight:700;margin:18px 0 12px}.section-label:after{content:'';height:1px;background:#cad5df;flex:1}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.tile{display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;min-width:0;min-height:148px;border:1px solid #d8e1e9;border-radius:22px;background:white;color:#10243a;text-align:right;padding:16px;overflow-wrap:anywhere}.tile .icon{width:40px;height:40px;background:#eaf2f8;color:#21536f;border-radius:12px;display:grid;place-items:center}.icon svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.tile b{font-size:1.04rem;margin-top:16px;line-height:1.5}.tile .sub{font-size:.72rem;margin-top:4px}.tile[data-id=buy]{background:#87ceeb}.tile[data-id=sale]{background:#bd2424;color:#fff}.tile[data-id=expense]{background:#d69a14}.tile[data-id=capital]{background:#fff7e8}.secondary-label{margin-top:28px}.small .tile{min-height:105px}.small .tile b{font-size:.92rem}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:1000px){.editor-layout{grid-template-columns:290px minmax(0,1fr);gap:18px}.appearance-preview .grid{gap:8px}.appearance-preview .tile{padding:11px}.preview-title{flex-wrap:wrap}.appearance-preview .brand small{display:none}}@media(max-width:850px){.editor-layout{grid-template-columns:1fr}.preview-column{grid-row:1}.editor-header{padding:18px;flex-wrap:wrap}.editor-main{padding:22px 14px}.appearance-preview{min-height:0}.editor-header span{font-size:.8rem}.appearance-preview .shell{padding:20px 12px}.appearance-preview.appearance-active .shell{margin:12px 8px;padding:18px 10px 28px}.appearance-preview .tile b{font-size:.95rem}.appearance-preview .tile .sub{font-size:.66rem}}

.button-design-row{display:flex;flex-wrap:wrap;gap:8px}.button-design-row label{flex:1 0 100%}.button-design-row input:not([type=color]){width:110px}.button-design-row button{padding:6px 12px}

.emoji-choice{font-family:"Apple Color Emoji","Segoe UI Emoji",sans-serif;font-size:26px;padding:8px;margin:3px;background:#fff;border:1px solid #ccd5df;border-radius:10px;cursor:pointer}

.appearance-preview .tile{touch-action:none;user-select:none;-webkit-user-select:none;cursor:grab}.appearance-preview .tile.dragging{opacity:.45;cursor:grabbing}.appearance-preview .tile.drop-target{outline:4px solid #1485d1;outline-offset:2px}.appearance-preview .tile:focus-visible{outline:3px solid #1485d1;outline-offset:3px}.button-drag-ghost{position:fixed;z-index:9999;pointer-events:none;background:#10243a;color:white;padding:14px 18px;border-radius:14px;box-shadow:0 8px 24px #0004;max-width:220px;font:600 17px system-ui;direction:rtl}

.appearance-preview .tile{position:relative}.tile-edit-trigger{position:absolute;top:6px;left:6px;border:1px solid #ccd5df;border-radius:8px;background:#fff;color:#10243a;padding:5px 9px;font-size:13px;opacity:0;transition:opacity .15s;z-index:2;touch-action:manipulation}.tile:hover .tile-edit-trigger,.tile:focus-within .tile-edit-trigger{opacity:1}.tile.dragging .tile-edit-trigger{opacity:0}
@media(hover:none){.tile-edit-trigger{opacity:1}}
#tile-edit-dialog{border:0;border-radius:20px;padding:22px;width:min(560px,94vw);max-height:85vh;overflow:auto;color:#10243a;box-shadow:0 20px 70px #0005}#tile-edit-dialog::backdrop{background:#10243a88}#tile-edit-dialog header,#tile-edit-dialog footer{display:flex;justify-content:space-between;align-items:center;gap:12px}#tile-edit-dialog h2{font-size:20px;margin:0}#tile-edit-dialog button{border-radius:8px;padding:8px 12px}#tile-edit-dialog .button-design-row{gap:14px}#tile-edit-dialog .tile-control-label{display:flex;align-items:center;justify-content:space-between;gap:12px}#tile-edit-dialog input:not([type=color]):not([type=checkbox]){width:65%;padding:8px;border:1px solid #bdcbd7;border-radius:8px}#tile-edit-dialog .tile-control-label span{font-size:14px}#tile-edit-dialog footer{margin-top:20px}#tile-edit-dialog .save-button{padding:12px 20px}.tile-control-label span{display:block;margin-bottom:4px}
