@font-face{font-family:Vazirmatn;src:url('Vazirmatn.woff2') format('woff2');font-weight:100 900;font-display:swap}*{box-sizing:border-box}body{margin:0;font-family:Vazirmatn,Tahoma,sans-serif;background:#f6f7fc;color:#20233c;font-size:14px;line-height:1.8}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer;border:0;border-radius:12px;padding:10px 16px;background:#eeeefa;color:#454465;transition:.15s}button:hover{filter:brightness(.97);transform:translateY(-1px)}button:disabled{opacity:.45;cursor:wait}button.primary{background:#6254e8;color:white;box-shadow:0 5px 16px #6254e828}button.danger{background:#fff0f2;color:#bc3359}button.ghost{background:transparent}button.small{padding:6px 10px;font-size:12px}a{color:#6254e8;text-decoration:none}h1,h2,h3,p{margin:0}h1{font-size:26px;letter-spacing:-.6px}h2{font-size:19px}h3{font-size:16px}.muted{color:#81849c}.smalltext{font-size:12px}.icon{width:21px;height:21px;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.shell{max-width:1450px;margin:auto;display:grid;grid-template-columns:220px minmax(0,1fr);min-height:100vh}.sidebar{padding:32px 20px;background:white;border-left:1px solid #e8e9f2;position:sticky;top:0;height:100vh;display:flex;flex-direction:column;gap:24px}.brand{display:flex;align-items:center;gap:12px;font-size:22px;font-weight:bold}.brand img{width:43px}.sidebar nav{display:grid;gap:8px}.sidebar nav button{text-align:right;background:transparent;color:#85869d;padding:14px}.sidebar nav button.active{background:#eeebff;color:#6254e8;font-weight:bold}.sidebar nav .icon{margin-left:9px}.sidebar .footer{margin-top:auto;padding:16px;border-radius:16px;background:#f6f5ff;font-size:12px}.main{padding:28px 36px 65px;min-width:0}.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:32px}.avatar{width:38px;height:38px;display:grid;place-items:center;background:#ebe8ff;border-radius:13px;color:#6254e8}.row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.between{justify-content:space-between}.column{display:grid;gap:16px}.hero{border-radius:24px;padding:30px;background:linear-gradient(110deg,#7666ed,#5544d2);color:white;display:flex;align-items:center;justify-content:space-between;margin:20px 0 24px;gap:25px}.hero p{opacity:.8;margin:8px 0 20px}.hero .primary{background:white;color:#5c4bd9}.hero-art{font-size:70px;opacity:.5;padding:0 25px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin:20px 0}.stat,.card{background:white;border:1px solid #e8e9f2;border-radius:20px;padding:22px}.stat strong{font-size:28px;display:block;margin-top:8px}.stat .iconbox{width:35px;height:35px;border-radius:11px;background:#eeebff;color:#6254e8;display:grid;place-items:center}.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.card p{margin-top:8px}.card .actions{padding-top:16px;border-top:1px solid #f0f0f7;margin-top:18px}.card .metrics{display:grid;grid-template-columns:repeat(3,1fr);margin-top:20px;gap:12px;font-size:11px;color:#888aa0}.metrics strong{font-size:19px;color:#323650;display:block}.badge{border-radius:8px;font-size:11px;padding:3px 9px;background:#f0f0f6;color:#7b7f99}.badge.active{background:#e7f8ef;color:#238e64}.badge.error{background:#fff0ef;color:#c25447}.badge.paused{background:#fff7e6;color:#a57a22}.chip{background:#f3f1ff;color:#6858cc;border-radius:8px;padding:4px 9px;font-size:12px}.filters{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0}label{display:grid;gap:7px;color:#51546e}input,select,textarea{width:100%;padding:11px 13px;border:1px solid #dddfea;border-radius:11px;background:white;color:#252941}input:focus,textarea:focus,select:focus{border-color:#7668ea;box-shadow:0 0 0 3px #ece9ff}textarea{min-height:100px;resize:vertical}input[type=checkbox]{width:18px;height:18px;accent-color:#6254e8}.check{display:flex;align-items:center;gap:9px}.fields{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.fieldwide{grid-column:1/-1}.notice{padding:13px 16px;background:#f2efff;border:1px solid #e6defe;color:#6e5aaa;border-radius:12px;font-size:12px;margin:12px 0}.notice.warn{background:#fff7e9;border-color:#f4e4c3;color:#9c732b}.errorbox{padding:12px 16px;background:#fff0f2;border-radius:12px;color:#bc3359;white-space:pre-wrap;margin:12px 0}.empty{text-align:center;padding:45px 20px;color:#8b8fa4;border:1px dashed #d9dbe9;border-radius:20px}.empty .icon{width:40px;height:40px;margin-bottom:12px}.bottomnav{display:none}.auth-wrap{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;max-width:1300px;margin:auto;align-items:center;gap:80px;padding:50px}.auth-hero{padding:55px;border-radius:35px;background:linear-gradient(140deg,#6856e5,#352886);color:white;min-height:580px;display:flex;flex-direction:column;justify-content:center;gap:25px;position:relative;overflow:hidden}.auth-hero:before{content:'';position:absolute;width:350px;height:350px;border:55px solid #ffffff09;border-radius:50%;left:-150px;bottom:-100px}.auth-hero h1{font-size:36px}.auth-card{background:white;border-radius:26px;padding:35px;border:1px solid #e8e9f2}.auth-card form{display:grid;gap:18px;margin-top:25px}.installer{max-width:820px;margin:45px auto;padding:25px}.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:24px 0}.step{padding:12px 6px;text-align:center;border-radius:12px;background:#eeeff6;color:#9a9cb1;font-size:12px}.step.current{background:#6254e8;color:white}.step.done{background:#ebe8ff;color:#6254e8}.wizard{max-width:940px;margin:auto}.wizard-footer{display:flex;justify-content:space-between;margin:25px 0}.messages{display:grid;gap:16px}.msg-block{border:1px solid #e2dff4;padding:20px;border-radius:18px;background:white}.msg-block header{margin-bottom:18px}.button-editor{background:#f8f8fd;border-radius:12px;padding:12px;margin-top:12px;display:grid;grid-template-columns:1fr 1fr 2fr 35px;gap:8px;align-items:center}.preview{background:#f1f2f7;border-radius:20px;padding:24px;max-width:420px;margin:auto}.bubble{padding:15px;background:white;border-radius:15px 15px 4px 15px;margin:12px 0;white-space:pre-wrap;overflow-wrap:anywhere;box-shadow:0 3px 10px #25294108}.bubble img,.bubble video{max-width:100%;border-radius:10px}.bubble a,.bubble button{display:block;padding:7px;text-align:center;border-top:1px solid #eee;width:100%;margin-top:8px}.media-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;max-height:480px;overflow:auto;margin:15px 0}.post{border:2px solid transparent;background:#f7f7fc;border-radius:14px;padding:10px;cursor:pointer;overflow:hidden}.post.selected{border-color:#7161e6;background:#f0ebff}.post img{width:100%;height:140px;object-fit:cover;border-radius:10px}.post p{font-size:11px;max-height:42px;overflow:hidden}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:12px}th,td{text-align:right;padding:12px;border-bottom:1px solid #f0f0f7;white-space:nowrap}th{color:#9193a7;font-weight:normal}code,.ltr{direction:ltr;text-align:left;unicode-bidi:plaintext;overflow-wrap:anywhere}pre{direction:ltr;text-align:left;white-space:pre-wrap;overflow-wrap:anywhere;background:#f5f5fb;padding:15px;border-radius:10px;font-size:12px}#toast{position:fixed;bottom:100px;left:50%;transform:translateX(-50%);background:#27243e;color:white;padding:12px 22px;border-radius:12px;max-width:90vw;display:none;z-index:99;box-shadow:0 10px 25px #0002}.upload{border:1px dashed #c9c2ed;border-radius:13px;padding:18px;background:#fbfaff;margin-top:12px}progress{width:100%;accent-color:#6254e8}.file-name{white-space:normal;overflow-wrap:anywhere}.hidden{display:none!important}.section-head{margin:20px 0 15px}.report-value{color:#6854db}.help-links{display:flex;gap:20px}.spinner{display:inline-block;width:18px;height:18px;border:2px solid #cec8ee;border-top-color:#6254e8;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
@media(max-width:1050px){.main{padding:25px}.shell{grid-template-columns:180px 1fr}.sidebar{padding:28px 14px}.cards{grid-template-columns:1fr}.auth-wrap{gap:25px}.auth-hero{padding:35px}.media-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:720px){body{font-size:13px}.shell{display:block}.sidebar{display:none}.main{padding:20px 16px 110px}.topbar{margin-bottom:20px}h1{font-size:22px}.hero{padding:22px;border-radius:21px}.hero-art{display:none}.stats{grid-template-columns:repeat(2,1fr);gap:10px}.stat{padding:16px}.stat strong{font-size:24px}.card{padding:18px}.bottomnav{position:fixed;bottom:0;right:0;left:0;background:#fffefef5;backdrop-filter:blur(12px);border-top:1px solid #ededf5;display:flex;justify-content:space-around;padding:10px 4px calc(10px + env(safe-area-inset-bottom));z-index:50}.bottomnav button{font-size:10px;background:transparent;color:#989aaf;border-radius:12px;padding:6px 10px;display:grid;justify-items:center;gap:3px}.bottomnav button.active{color:#6254e8;background:#f1edff}.fields{grid-template-columns:1fr}.fieldwide{grid-column:auto}.filters input{width:100%}.filters select{width:calc(50% - 5px)}.auth-wrap{display:block;padding:22px;min-height:100vh}.auth-hero{display:none}.auth-card{margin:60px auto;max-width:450px;padding:28px}.installer{margin:20px auto;padding:16px}.steps{gap:5px}.step{font-size:10px;padding:12px 3px}.button-editor{grid-template-columns:1fr 1fr}.button-editor input[data-key=url],.button-editor input[data-key=payload]{grid-column:1/-1}.media-grid{grid-template-columns:repeat(2,1fr)}.post img{height:120px}.metrics{grid-template-columns:repeat(3,1fr)}.wizard-footer{position:sticky;bottom:80px;background:#f6f7fce8;padding:10px 0;backdrop-filter:blur(5px)}.hero h2{font-size:18px}.row{gap:8px}.notice{font-size:11px}}

.update-steps{display:flex;gap:8px;flex-wrap:wrap}.update-step{padding:8px 12px;border-radius:10px;background:#f1f0f8;color:#75708e}.update-step.current{background:#e9e3ff;color:#6254e8}.update-step.done{background:#e6f7ee;color:#21845c}.update-status{min-height:32px;font-size:15px}.update-error{white-space:pre-wrap;overflow-wrap:anywhere}

/* Mobile form focus keeps the layout width and avoids iOS input zoom. */
html,body{max-width:100%;overflow-x:hidden}.main,.wizard,.fields,.msg-block,.column,.row>*{min-width:0}input:not([type=checkbox]):not([type=radio]),textarea,select{font-size:16px}.message-media{display:block;max-width:100%;max-height:360px;margin:12px auto;border-radius:14px}audio.message-media{width:100%}.upload input{max-width:100%}.keyboard-open .bottomnav{display:none}.keyboard-open .wizard-footer{position:static}.report-overlay{position:fixed;inset:0;z-index:100;background:#211e3988;padding:20px;overflow:auto;overscroll-behavior:contain}.report-card{max-width:950px;margin:auto}.report-card pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:420px;overflow:auto}.report-card p{overflow-wrap:anywhere}@media(max-width:600px){.report-overlay{padding:10px}.button-editor{grid-template-columns:1fr 1fr}.button-editor input[data-key=url],.button-editor input[data-key=payload]{grid-column:1/-1}.msg-block header{flex-wrap:wrap}.wizard-footer{flex-wrap:wrap}.message-media{max-height:260px}}
