@font-face{font-family:Vazir;src:url("./assets/Vazirmatn-Regular.woff2") format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:Vazir;src:url("./assets/Vazirmatn-Bold.woff2") format("woff2");font-weight:700;font-display:swap}
:root{--ink:#202c3b;--muted:#576679;--line:#dee4e9;--light:#f6f8fa;--orange:#c34e19;--green:#187562;--navy:#162638;--radius:16px;font-family:Vazir,Tahoma,sans-serif;color:var(--ink);background:#f4f6f8;font-synthesis:none}
*{box-sizing:border-box}
body{margin:0;min-height:100vh}
button,select{font:inherit;color:inherit}
button,summary,select{cursor:pointer}
button{border:0;background:none}
button:focus-visible,summary:focus-visible,select:focus-visible,pre:focus-visible{outline:3px solid #188ea5;outline-offset:2px}
button:disabled,select:disabled{cursor:default;opacity:.5}
button:not(:disabled),summary{transition:background-color .15s,box-shadow .15s,filter .15s}
button:not(:disabled):hover{filter:brightness(.96)}
h1,h2,h3,h4,p{margin:0}
svg{width:20px;height:20px;flex-shrink:0;vertical-align:middle}
i{font-style:normal}
.wrap{width:min(1540px,95%);margin-inline:auto}
.top{background:#fff;border-bottom:1px solid var(--line)}
.top-inner,.brand,.top-tools,.outline,.help,.panel-head,h2,.panel-head small,.live,.primary,.control-action,.time-jump,.brand-mark,.home-head,.icon-btn,.phone-action,.state-line,.packet-label,.payload-head,.date-tile span,.map-hud,.dialog-head{display:flex;align-items:center}
.top-inner{min-height:68px;gap:19px}.brand{gap:11px;font-size:1.18rem}.brand-mark{width:38px;height:38px;border-radius:12px;background:#f16b2e;color:#fff;justify-content:center;box-shadow:inset 0 -3px 0 #c6531625}.brand-mark svg{width:27px;height:27px}
.separator{height:21px;width:1px;background:var(--line)}.top-title,.help{color:var(--muted);font-size:.91rem}.top-tools{margin-inline-start:auto;gap:20px}.help{gap:7px;padding:6px 0}.help svg{width:17px}.version,.proto,.panel-head>small,.map-hud b,.payload-head small{font:600 .78rem/1.4 ui-monospace,monospace;letter-spacing:.04em}
.version{background:#f1f4f7;border:1px solid var(--line);padding:3px 9px;border-radius:6px;color:#586775}
.intro{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:28px 2px 23px}.intro h1{font-size:clamp(1.65rem,2.7vw,2.65rem);letter-spacing:-.065em;line-height:1.5}.intro p{color:var(--muted);line-height:1.8}.outline,.control-action,.time-jump,.primary,.phone-action,.soft{border-radius:9px;gap:8px;justify-content:center;min-height:39px;padding:7px 13px;font-size:.91rem;font-weight:700}.outline{background:white;border:1px solid #cfd8df}.outline svg,.time-jump svg,.phone-action svg,.primary svg{width:17px}
.workspace{display:grid;grid-template-columns:minmax(290px,1.04fr) minmax(223px,.8fr) minmax(355px,1.55fr);align-items:start;gap:15px;padding-bottom:30px}
.panel{overflow:hidden;background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 4px 15px #14243306;min-width:0}
.panel-head{height:59px;border-bottom:1px solid var(--line);padding:0 18px;justify-content:space-between;gap:5px}
h2{font-size:1.07rem;gap:9px;letter-spacing:-.035em}
h2>i{display:grid;place-items:center;color:#506377}
.panel-head>small{color:#687684}.live{gap:6px;font-size:.78rem;color:#1d705d}.live b{width:7px;height:7px;border-radius:50%;background:#2f967b}
.stage{padding:25px 14px 29px;display:grid;place-items:center;background-color:#e9eef1;background-image:radial-gradient(#9dadb866 .8px,transparent .8px),radial-gradient(ellipse at 28% 15%,#f7fafb 0,transparent 67%);background-size:13px 13px,100% 100%}
.phone{width:min(100%,292px);height:548px;display:flex;flex-direction:column;overflow:hidden;position:relative;border:6px solid #26313b;outline:1px solid #798692;border-radius:33px;background:white;box-shadow:0 13px 20px -9px #24313f60,0 0 0 3px #ffffff65}
.phone-status{position:relative;direction:ltr;height:25px;padding:1px 16px 0;display:flex;align-items:center;justify-content:space-between;background:#db6227;color:white;flex-shrink:0;font-size:.75rem}.phone-status span:last-child{display:flex;gap:3px}.phone-status svg{width:13px;height:12px}.lens{position:absolute;left:50%;top:7px;transform:translateX(-50%);width:9px;height:9px;border-radius:50%;background:#222a31;border:2px solid #323e48}
#screen{flex:1;min-height:0;position:relative;display:flex;background:white}.phone-page{width:100%;display:flex;flex-direction:column;overflow:auto}.gesture{height:12px;background:white;display:grid;place-items:center;flex-shrink:0}.gesture:before{content:"";width:32%;height:3px;border-radius:2px;background:#85909b}
.home-head,.in-head{background:linear-gradient(120deg,#ee8339,#dc6227);color:white;min-height:59px;padding:7px 13px;gap:7px;flex-shrink:0}.home-head>strong{font-size:1.38rem}.app-logo svg{width:26px;height:26px}
.head-pro{display:flex;align-items:center;gap:4px;margin-inline-start:auto;background:#81390b35;color:white;border:1px solid #ffffff42;border-radius:18px;padding:3px 8px;font-size:.78rem}.head-pro svg{width:13px}
.account,.chat-row,.peer-head,.message-line{display:flex;align-items:center;gap:9px;text-align:right}.account{padding:12px 13px;width:100%;background:#fffbf6;border-bottom:1px solid #eee4da}.account>span:nth-child(2),.row-text,.peer-head>span:last-child{display:grid;gap:2px;min-width:0}.account>svg{margin-inline-start:auto;color:#8a939e;width:15px;transform:rotate(180deg)}
.phone b,.phone strong{font-weight:700}.phone small,.chat-meta{font-size:.76rem}.account small,.row-text small,.chat-meta,.profile-main small{color:var(--muted)}.phone b,.row-text b{font-size:.93rem}
.avatar{width:43px;height:43px;display:inline-grid;place-items:center;border-radius:50%;overflow:hidden;flex-shrink:0}.avatar video,.avatar img{width:100%;height:100%;object-fit:cover;display:block}.avatar>svg{width:23px;height:23px}
.av-own{color:#245f6f;background:linear-gradient(145deg,#d4eef0,#9cc8d0)}.av-sara{color:#577c3d;background:linear-gradient(140deg,#e8efd0,#bcdaa9)}.av-group{color:#68509b;background:linear-gradient(140deg,#eee8fd,#cbb9e5)}.av-channel{color:#2a6486;background:linear-gradient(145deg,#ddedf6,#a9ccdf)}
.chat-label{display:flex;align-items:center;gap:6px;padding:10px 14px 3px;color:#657181;font-size:.83rem;font-weight:700}.chat-label span{font-size:.75rem;line-height:1.4;padding:1px 6px;border-radius:6px;background:#f0f3f5}
.chat-row{padding:10px 12px;min-height:66px;border-bottom:1px solid #edf0f2;width:100%;background:white}.row-text{flex:1}.row-text small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.star{display:inline-flex;vertical-align:middle;color:#df8d19}.star svg{width:16px;height:16px}
.chat-meta{align-self:stretch;display:flex;flex-direction:column;align-items:end;justify-content:space-evenly;white-space:nowrap}.chat-meta em{background:#de692c;color:white;border-radius:99px;font-size:.74rem;font-style:normal;min-width:18px;height:18px;line-height:19px;text-align:center}
.phone-foot{margin-top:auto;display:flex;justify-content:space-around;align-items:center;min-height:47px;background:#fafbfc;border-top:1px solid #e7ebef}.phone-foot span,.foot-btn{display:flex;align-items:center;gap:4px;font-size:.81rem}.phone-foot span{color:var(--orange);font-weight:700}.phone-foot svg{width:16px}.foot-btn{color:var(--muted)}
.control-body,.inspect-body{padding:16px}.date-tile{border:1px solid #dce4eb;background:#f4f7f9;border-radius:11px;padding:12px 14px}.date-tile span{gap:7px;font-size:.85rem;color:#536579}.date-tile span svg{width:16px}.date-tile b{display:block;margin-top:4px;font-size:1.28rem}.state-line{gap:6px;justify-content:space-between;margin:16px 0 19px;font-size:.87rem}.state{background:#edf1f4;border:1px solid #dfe5ea;color:#445568;padding:2px 8px;border-radius:20px;font-size:.8rem}.state.on{background:#e3f3ec;color:#12654e;border-color:#c1e4d4}
.action-area{border-top:1px solid var(--line);padding-top:17px}.action-area h3,.packet-label h3{font-size:1rem}.action-area p,.insight,.sheet p,.profile-body p{font-size:.92rem;line-height:1.85;color:var(--muted)}.action-area p{margin:4px 0 12px}
.wide{width:100%;margin-top:6px}.primary{background:#b84b1c;color:#fff}.primary>svg{width:13px}.control-action,.phone-action,.soft{background:#f4f6f8;border:1px solid #e0e6eb}.more{font-size:.85rem;margin-top:9px;color:#536476}.more summary{padding:5px 0;width:fit-content}.timeline-buttons{margin:16px 0;padding:11px 0 17px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.time-jump{background:#e8f5f1;color:#166a56;border:1px solid #b5dece}
.build-label{font-size:.85rem;color:var(--muted);display:block;margin-bottom:5px}select{appearance:none;width:100%;border:1px solid #d6dee6;border-radius:8px;padding:7px 10px 7px 28px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23566678' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat left 9px center;font-size:.9rem}
.tabs{display:flex;gap:18px;margin:0 16px;border-bottom:1px solid var(--line)}.tabs button{border-bottom:2px solid transparent;padding:10px 0 8px;font-size:.88rem;color:var(--muted)}.tabs button[aria-pressed=true]{border-color:var(--orange);color:var(--orange);font-weight:700}.tabs span{display:inline-block;padding:0 6px;border-radius:5px;background:#edf1f4;color:#415264;font-size:.76rem}
.map{border-radius:12px;overflow:hidden;background-color:#162a3b;background-image:radial-gradient(circle,#416073 1px,transparent 1px);background-size:14px 14px;border:1px solid #253c4c;color:white;padding:12px 10px 11px}.map-hud{direction:rtl;justify-content:space-between;padding:0 3px;color:#c4d6df;font-size:.75rem}.map-hud b{color:#a7becd;letter-spacing:.14em;font-size:.69rem}.map-hud span{display:flex;gap:6px;align-items:center}.map-hud i{width:15px;height:2px;background:#74ddbd}
.topology{height:164px;position:relative}.topology>svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}.wires path,.active-line,.route-arrow{fill:none;stroke:#4b6576;stroke-dasharray:3 4;vector-effect:non-scaling-stroke;stroke-width:1.5}.active-line,.route-arrow{stroke:#76e1c0;stroke-width:2;stroke-dasharray:none}.moving{fill:#d1ffed}
.node{position:absolute;transform:translate(-50%,-50%);display:flex;align-items:center;gap:8px;border:1px solid #52697a;background:#21384a;border-radius:9px;padding:7px 9px;min-width:107px;box-shadow:0 3px 9px #09182242}.node.lit{border-color:#5ba992;background:#203e46}.node i{background:#314a5c;width:28px;height:29px;border-radius:6px;display:grid;place-items:center;color:#c2d1db}.node.lit i{color:#9cf6d7;background:#305750}.node svg{width:17px}.node b,.node small{display:block;white-space:nowrap}.node b{font-size:.85rem;line-height:1.5}.node small{font: .73rem/1.3 ui-monospace,monospace;color:#b8cbd5;text-align:right}
.packet-label{justify-content:space-between;gap:10px;margin:14px 0 3px}.packet-label h3{display:flex;align-items:center;gap:6px}.packet-label h3 svg{width:16px;color:#a85324}.proto{border:1px solid #c9ded8;background:#edf6f3;color:#28644f;border-radius:5px;padding:3px 7px}.insight{line-height:1.75}
.packet-list{display:flex;gap:4px;flex-wrap:wrap;margin-top:7px}.packet-list button{border:1px solid var(--line);font-size:.8rem;border-radius:6px;padding:3px 7px}.packet-list button[aria-pressed=true]{background:#e3f4ed;border-color:#80baa8}
.payload{border-radius:10px;overflow:hidden;background:#172332;margin-top:13px}.payload-head{justify-content:space-between;padding:6px 12px;background:#223244;color:#dce5ed;font-size:.8rem;border-bottom:1px solid #39495a}.payload-head span{display:flex;align-items:center;gap:5px}.payload-head svg{width:16px}.payload-head small{color:#b6c8d5}
pre{height:127px;overflow:auto;margin:0;padding:10px 13px;scrollbar-color:#536476 #172332;color:#d9e6f0;font: .8rem/1.55 ui-monospace,monospace;text-align:left}pre .key{color:#9edbe2}pre .str{color:#d1e5a3}pre .val{color:#ffbf86}.route-caption{margin-top:9px;color:var(--muted);font-size:.78rem}.route-caption small{display:block;text-align:left;font:.75rem/1.45 ui-monospace,monospace}
.log{list-style:none;margin:0;padding:4px 17px 13px;max-height:550px;overflow:auto}.log li{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 3px;border-bottom:1px solid var(--line)}.log b,.log small{display:block}.log small{color:var(--muted)}.log li>span{border-radius:6px;padding:1px 8px;background:#edf3f5;color:#385263}
.in-head,.peer-head{display:flex;align-items:center}.icon-btn{justify-content:center;width:34px;height:34px;border-radius:50%;flex-shrink:0}.peer-head{color:white;padding:0;gap:7px}.peer-head .avatar{width:34px;height:34px}.peer-head small{font-size:.73rem;color:#fff6e9}
.conversation{flex:1;padding:14px 11px;background-color:#e7efe8;background-image:radial-gradient(#b8cbbb 1px,transparent 1px);background-size:14px 14px;overflow:auto}.chat-day{display:table;margin:0 auto 16px;background:#f7fbf7db;color:#506455;border-radius:12px;padding:2px 10px;font-size:.75rem}.bubble{width:fit-content;max-width:85%;border-radius:12px 3px 12px 12px;background:white;padding:7px 10px;margin:9px 0;font-size:.91rem;box-shadow:0 2px 5px #34473910}.bubble b,.bubble small{display:block}.bubble small{color:#6b796d;text-align:left}.bubble.mine{background:#d1edca;margin-inline-start:auto}.phone-action{margin:7px;min-height:36px}.profile-main{text-align:center;background:#fff8ee;padding:18px 0 9px;border-bottom:1px solid #eee3d7}.profile-main .avatar{width:70px;height:70px}.profile-main .avatar svg{width:34px;height:34px}.profile-main h3{font-size:1.09rem;margin-top:5px}.star-hit{padding:0 4px;min-width:30px;min-height:30px}.star-hit svg{width:21px;height:21px}.profile-body{padding:14px}.profile-body h4{font-size:.85rem;color:var(--muted);margin:7px 0 4px}.profile-body .phone-action{width:100%;margin:9px 0}.number-row{display:flex;align-items:center;gap:12px;padding:6px 0;font-size:1rem}.mutual{color:var(--orange);font-weight:700}.tip{background:#f2f6f8;padding:5px 9px;border-radius:8px}.message-line .avatar{width:34px;height:34px}.message-line{align-items:end}.shimmer .avatar{outline:1px solid #c48c25;animation:glow 1.5s ease-out 1}@keyframes glow{35%{box-shadow:0 0 11px 5px #e3ac4a}}
.overlay,.scrim{position:absolute;inset:0}.overlay{display:flex;align-items:flex-end}.scrim{background:#15233366;width:100%;height:100%}.sheet{position:relative;text-align:center;background:white;padding:9px 14px 11px;border-radius:20px 20px 0 0;width:100%;max-height:96%;overflow:auto;animation:slide .22s ease-out}.handle{width:34px;height:4px;background:#d4dce1;border-radius:4px;margin:0 auto 10px}.sheet-badge{width:38px;height:38px;display:grid;place-items:center;margin:auto;background:#fff0db;color:#bd6c17;border-radius:12px}.sheet h3{font-size:1.08rem;margin:7px 0 3px}.sheet p{line-height:1.65;font-size:.86rem;margin:2px 0 6px}.plain{color:var(--muted);font-size:.83rem;padding:5px}.fake-card{background:#e8f1ee;text-align:right;padding:8px 12px;border-radius:8px}.fake-card b{display:block;text-align:left;color:#2b5a50}.confetti{position:absolute;inset:0;overflow:hidden;pointer-events:none}.confetti i{position:absolute;left:calc(var(--n)*7%);top:0;width:5px;height:9px;background:#ed9f3b;animation:fall 1.3s ease-out both;animation-delay:calc(var(--n)*.025s)}.confetti i:nth-child(3n){background:#73b4a7}.confetti i:nth-child(3n + 1){background:#bd97d7}@keyframes fall{from{transform:translateY(-15px) rotate(0)}to{transform:translateY(160px) rotate(230deg);opacity:0}}@keyframes slide{from{transform:translateY(20%);opacity:.4}}
dialog{width:min(420px,90vw);border:1px solid var(--line);border-radius:14px;padding:19px 22px;color:var(--ink);box-shadow:0 20px 60px #15304435}dialog::backdrop{background:#15233370}.dialog-head{justify-content:space-between}dialog li{margin:6px 0;line-height:1.85}dialog ol{padding-inline-start:23px}dialog p{font-size:.88rem;color:var(--muted)}
@media(min-width:1500px){.stage{padding-block:30px}.phone{height:574px;width:300px}.topology{height:187px}.chat-row{min-height:70px}}
@media(max-width:1100px) and (min-width:1024px){.wrap{width:97%}.workspace{gap:9px;grid-template-columns:minmax(278px,1fr) minmax(205px,.75fr) minmax(330px,1.2fr)}.control-body,.inspect-body{padding:12px}.panel-head{padding-inline:12px}.stage{padding-inline:10px}}
@media(max-width:1023px){.workspace{grid-template-columns:minmax(275px,1.15fr) minmax(230px,1fr);max-width:820px;margin:auto}.inspector{grid-column:1/-1}.topology{height:178px}.intro{padding-block:20px}.intro p{font-size:.92rem}}
@media(max-width:600px){.wrap{width:94%}.top-inner{min-height:56px;gap:10px}.top-title,.separator{display:none}.top-tools{gap:12px}.intro{align-items:flex-start;flex-wrap:wrap;gap:7px}.intro .outline{min-height:32px;padding:3px 9px;font-size:.82rem}.workspace{display:flex;flex-direction:column;gap:13px}.panel{width:100%}.stage{padding:18px 12px}.phone{height:530px}.panel-head{height:49px}.topology{height:160px}.intro h1{font-size:1.7rem}.tabs{gap:15px}.node{min-width:96px;gap:5px;padding:6px}.version{display:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition:none!important}.moving{display:none}}
