:root{--green:#123e2e;--green-2:#1e5a40;--green-3:#2d7250;--cream:#f4f2e9;--paper:#fffefa;--gold:#d9a83f;--gold-soft:#ecd9a6;--ink:#19382d;--muted:#7a8178;--line:#e7e5db;--shadow:0 22px 70px rgba(13,43,31,.2);--sans:'IBM Plex Sans Arabic',Tahoma,Arial,sans-serif;--serif:'Noto Kufi Arabic','IBM Plex Sans Arabic',sans-serif;--platform-accent:#d9437a}
*{box-sizing:border-box}html{min-height:100%;scroll-behavior:smooth}body{margin:0;min-height:100vh;background:radial-gradient(circle at 16% 75%,rgba(217,168,63,.1),transparent 24%),linear-gradient(132deg,#f5f2e9,#e9ecdf 52%,#f7f4eb);color:var(--ink);font:15px/1.65 var(--sans)}button,input,a{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid var(--gold);outline-offset:3px}a{color:inherit;text-decoration:none}img{display:block;max-width:100%}button{color:inherit}.skip-link{position:fixed;z-index:100;top:8px;inset-inline-start:8px;padding:10px 16px;border-radius:9px;background:var(--green);color:#fff;transform:translateY(-160%)}.skip-link:focus{transform:translateY(0)}
.demo-header{height:72px;padding:0 clamp(20px,5vw,72px);display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid rgba(18,62,46,.08)}.demo-brand{display:flex;align-items:center;gap:14px}.demo-brand img{width:142px;height:48px;object-fit:contain;object-position:right center}.demo-brand span{font-size:11px;color:#657368;border-inline-start:1px solid #d9ddd2;padding-inline-start:14px}.demo-status{display:flex;align-items:center;gap:8px;font-size:11px;color:#6e7b70}.status-dot{width:7px;height:7px;border-radius:50%;background:#d1a747;box-shadow:0 0 0 4px rgba(217,168,63,.13)}.status-divider{color:#c1b894}
.simulator-layout{min-height:calc(100dvh - 72px);padding:20px clamp(16px,5vw,72px) 28px;display:flex;flex-direction:column}.platform-dock{width:min(410px,100%);margin:0 auto 15px}.dock-label{margin:0 0 7px;text-align:center;font-size:10px;color:#829084;letter-spacing:.03em}.platform-switcher{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;padding:5px;border:1px solid rgba(18,62,46,.1);border-radius:17px;background:rgba(255,254,250,.75);box-shadow:0 8px 24px rgba(18,62,46,.06)}.platform-choice{min-height:48px;border:0;border-radius:12px;background:transparent;color:#748078;display:flex;align-items:center;justify-content:center;gap:8px;font-size:13px;font-weight:600;transition:background .2s,color .2s,transform .2s}.platform-choice:hover{background:#f2f1e9}.platform-choice.active{background:var(--green);color:white;box-shadow:0 5px 15px rgba(18,62,46,.17)}.choice-symbol{width:25px;height:25px;border-radius:50%;display:grid;place-items:center;background:rgba(18,62,46,.07);font:600 17px Arial,sans-serif}.platform-choice.active .choice-symbol{background:rgba(255,255,255,.15)}.instagram-symbol{color:#c13776}.facebook-symbol{font:bold 18px Arial}.x-symbol{font-size:14px}
.experience-grid{flex:1;min-height:0;display:grid;grid-template-columns:minmax(260px,1fr) minmax(335px,410px) minmax(0,1fr);align-items:center;gap:clamp(20px,5vw,78px);max-width:1180px;width:100%;margin:0 auto}.side-story{max-width:430px;justify-self:end;position:relative;padding:10px 0 45px}.eyebrow{margin:0 0 16px;display:flex;align-items:center;gap:10px;color:#738075;font-size:11px;font-weight:600}.eyebrow span{width:26px;height:1px;background:var(--gold)}.side-story h1{margin:0;color:var(--green);font:600 clamp(27px,3.2vw,44px)/1.55 var(--serif);letter-spacing:-.04em}.side-story h1 em{color:#4b7859;font-style:normal}.side-description{max-width:380px;color:#778177;font-size:14px;line-height:2;margin:18px 0 28px}.side-hint{display:flex;align-items:center;gap:12px;color:#7a857a;font-size:12px}.side-hint b{color:var(--green);font-size:11px}.hint-icon{width:38px;height:38px;border:1px solid var(--gold-soft);color:#b2934f;border-radius:50%;display:grid;place-items:center;font-size:18px}.side-ornament{position:absolute;bottom:0;left:8%;color:#d2b35f;font-size:34px;opacity:.55}
.phone-shell{width:100%;max-width:410px;height:min(800px,calc(100dvh - 195px));min-height:570px;justify-self:center;overflow:hidden;display:grid;grid-template-rows:27px minmax(0,1fr) 62px 12px;padding:8px 8px 5px;border:1px solid #b9c6b6;border-radius:38px;background:#132f25;box-shadow:0 0 0 5px rgba(255,255,255,.65),var(--shadow);position:relative}.phone-shell:before{content:"";position:absolute;z-index:9;top:10px;left:50%;transform:translateX(-50%);width:70px;height:14px;border-radius:99px;background:#132f25}.device-status-bar{display:flex;align-items:center;justify-content:space-between;padding:0 17px;color:#233b30;font:bold 10px Arial,sans-serif;background:var(--paper);border-radius:29px 29px 0 0;direction:ltr}.device-status-icons{letter-spacing:-2px;font-size:9px}.phone-screen{min-height:0;overflow-y:auto;overscroll-behavior:contain;background:#fffefa;scrollbar-width:thin;scrollbar-color:#d8ddd4 transparent;scroll-padding-top:50px}.phone-screen[data-platform="instagram"]{--platform-accent:#c83d76}.phone-screen[data-platform="facebook"]{--platform-accent:#1877f2}.phone-screen[data-platform="x"]{--platform-accent:#121212}.app-toolbar{position:sticky;top:0;z-index:7;min-height:52px;padding:0 15px;display:flex;align-items:center;justify-content:space-between;gap:10px;background:rgba(255,254,250,.96);border-bottom:1px solid #f0eee7;backdrop-filter:blur(12px);font-size:16px}.app-toolbar>strong{font:600 16px var(--serif);color:#233c30}.app-toolbar>div{display:flex;align-items:center;gap:12px}.instagram-toolbar>strong{font:600 21px Georgia,serif;letter-spacing:-.06em}.facebook-toolbar>strong{font:700 20px Arial,sans-serif;color:#1877f2;letter-spacing:-.04em}.x-toolbar>strong{font:600 15px var(--sans)}.icon-button{width:42px;height:42px;border:0;border-radius:50%;background:transparent;display:inline-grid;place-items:center;color:#26392f;font-size:20px}.icon-button:hover{background:#f1f1eb}.more-button{font-size:13px;letter-spacing:2px}
.story-strip{display:flex;gap:12px;padding:13px 12px 11px;overflow-x:auto;scrollbar-width:none;border-bottom:1px solid #f0eee8;overscroll-behavior-inline:contain}.story-strip::-webkit-scrollbar,.highlight-strip::-webkit-scrollbar{display:none}.story-chip{flex:0 0 65px;min-width:65px;min-height:80px;border:0;background:none;display:flex;flex-direction:column;align-items:center;gap:5px;padding:0;font-size:10px;color:#59685d;line-height:1.3;text-align:center}.story-ring{width:55px;height:55px;border-radius:50%;padding:3px;position:relative;background:conic-gradient(#dfb34d,#d45476,#9c53a0,#dfb34d)}.story-ring img{width:100%;height:100%;border:2px solid #fffefa;border-radius:50%;object-fit:cover}.story-ring i{position:absolute;right:-1px;bottom:0;width:19px;height:19px;border:2px solid #fff;border-radius:50%;background:#1688e8;color:#fff;display:grid;place-items:center;font:600 14px Arial,sans-serif;font-style:normal}.feed-label{padding:13px 14px 6px;display:flex;align-items:center;justify-content:space-between;color:#33493a}.feed-label span:first-child{font-size:12px;font-weight:700}.feed-label span:last-child{font-size:9px;color:#929a91}.feed-list{display:grid}.post-card{background:#fffefa;border-bottom:1px solid #eeeae1}.post-header{min-height:57px;padding:8px 13px;display:flex;align-items:center;gap:9px}.account-avatar{width:36px;height:36px;flex:0 0 36px;object-fit:cover;border-radius:50%;border:1px solid #e6e2d5;background:#fff}.post-author{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.45}.post-author strong,.x-post-author strong{font-size:11px;color:#293d32}.post-author span,.x-post-author span{font-size:9px;color:#959b93}.post-image-button{display:block;width:100%;padding:0;border:0;background:#f0eee7;overflow:hidden}.post-image-button img{width:100%;max-height:490px;aspect-ratio:4/5;object-fit:cover}.post-actions{display:flex;align-items:center;gap:5px;padding:4px 10px 0;min-height:46px}.post-actions button{min-width:43px;min-height:42px;padding:4px 6px;border:0;background:none;border-radius:10px;color:#58675c;display:inline-flex;align-items:center;justify-content:center;gap:4px;font-size:18px}.post-actions button span{font-size:10px}.post-actions button:hover{background:#f4f3ed}.post-actions .is-liked{color:#dc4163}.post-actions .save-action{margin-inline-start:auto}.post-actions .is-saved{color:#b48c36}.post-caption-line{padding:0 13px 3px;font-size:11px;line-height:1.75;color:#59685d}.post-caption-line strong{color:#273b30}.comments-link{border:0;background:none;padding:2px 13px 11px;color:#949b92;font-size:10px}.fb-caption{padding:4px 13px 10px;margin:0;font-size:11px;color:#526357;line-height:1.7}.facebook-post .post-image-button img{aspect-ratio:4/4.2;object-fit:contain;background:#f7f6f1}.x-post{padding:11px 10px;display:grid;grid-template-columns:38px minmax(0,1fr);gap:7px}.x-avatar-column .account-avatar{width:36px;height:36px}.x-post-main{min-width:0}.x-post-author{display:flex;align-items:center;gap:5px;min-height:24px}.x-post-author span{flex:1;font-size:9px}.x-post-author strong{font-size:11px}.post-caption{margin:3px 0 10px;font-size:12px;line-height:1.8;color:#37463b}.x-post .post-image-button{border:1px solid #eae8df;border-radius:14px}.x-post .post-image-button img{aspect-ratio:4/4.2;object-fit:contain;border-radius:13px}.x-actions{justify-content:space-between;padding:3px 0 0}.x-actions button{font-size:14px;color:#818981}.x-actions button span{font-size:9px}
.bottom-nav{display:flex;align-items:center;justify-content:space-around;gap:2px;background:#fffefa;border-top:1px solid #efede5;padding:4px 4px calc(4px + env(safe-area-inset-bottom));z-index:8}.nav-item{flex:1;min-width:0;min-height:52px;border:0;border-radius:11px;background:transparent;color:#829087;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px}.nav-item.active{color:var(--platform-accent)}.nav-icon{font:400 23px/1 Arial,sans-serif}.nav-item.active .nav-icon{font-weight:700}.nav-item small{font-size:9px;line-height:1.3;white-space:nowrap}.device-home-indicator{display:grid;place-items:center;background:var(--paper);border-radius:0 0 30px 30px}.device-home-indicator span{width:92px;height:4px;border-radius:9px;background:#1d2d24}
.profile-block{padding-bottom:10px}.profile-identity{display:flex;align-items:center;gap:20px;padding:18px 15px 10px}.profile-large{width:83px;height:83px;flex-basis:83px;padding:3px;background:#fff;border:2px solid transparent;outline:2px solid #d35a7b;outline-offset:1px}.profile-numbers{flex:1}.stat-row{display:flex;justify-content:space-around;gap:6px;padding:8px 12px;color:#47574b}.stat-row span{display:flex;flex-direction:column;align-items:center;white-space:nowrap;font-size:9px}.stat-row b{font-size:14px;color:#273d31}.profile-name{display:flex;flex-direction:column;padding:4px 15px 9px;font-size:10px;line-height:1.65;color:#56655b}.profile-name strong{font-size:11px;color:#293e32}.profile-name .link-muted{color:#3280a8}.profile-buttons{display:flex;gap:7px;padding:3px 13px 9px}.follow-button,.secondary-button,.primary-button{min-height:42px;border:1px solid #dfe3dc;border-radius:9px;padding:7px 14px;background:#f4f5f2;color:#334c3a;font-size:11px;font-weight:600}.follow-button{flex:1;border-color:var(--platform-accent);background:var(--platform-accent);color:#fff}.follow-button.following{background:#f3f4f1;color:#293e32;border-color:#dbded7}.secondary-button{flex:1}.icon-square{flex:0 0 42px;width:42px;padding:6px}.highlight-strip{display:flex;gap:12px;overflow-x:auto;padding:8px 12px 13px;border-bottom:1px solid #eceae2;scrollbar-width:none}.highlight-chip{flex:0 0 62px;min-height:82px;padding:0;border:0;background:none;color:#4e5e52;display:flex;flex-direction:column;align-items:center;gap:4px}.highlight-chip>span{width:54px;height:54px;padding:3px;border:1px solid #e8dfc6;border-radius:50%;background:#fff}.highlight-chip img{width:100%;height:100%;border-radius:50%;object-fit:cover}.highlight-chip small{font-size:9px}.profile-grid,.explore-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px;padding:2px}.profile-grid button,.explore-grid button{border:0;padding:0;overflow:hidden;background:#eee;aspect-ratio:1}.profile-grid img,.explore-grid img{width:100%;height:100%;object-fit:cover}.profile-tabs{display:flex;justify-content:space-around;border-bottom:1px solid #eee;padding:5px}.profile-tabs button{flex:1;min-height:40px;border:0;background:none;color:#79847b;font-size:10px}.profile-tabs button.selected{color:var(--platform-accent);font-weight:700;border-bottom:2px solid var(--platform-accent)}
.cover-photo{width:100%;height:145px;object-fit:cover;background:#ece9df}.page-identity{display:flex;align-items:center;gap:10px;padding:0 12px 6px}.page-avatar{width:72px;height:72px;margin-top:-26px;flex-basis:72px;padding:3px;border:3px solid #fff;border-radius:18px;background:#fff}.page-identity h2,.x-profile h2{font-size:14px;margin:6px 0 2px;color:#253a2e}.page-identity p{font-size:9px;color:#727e73;margin:0}.page-profile>.stat-row{border-bottom:1px solid #eee;padding-block:9px}.page-profile>p{margin:10px 13px;color:#5c695e;font-size:10px;line-height:1.8}.page-profile .profile-buttons{padding-bottom:10px}.page-profile .cover-photo{margin-bottom:0}.page-profile.x-profile{position:relative;padding-bottom:8px}.x-profile .cover-photo{height:128px}.x-profile>.page-avatar{margin:-35px 13px 0;border-radius:50%;width:70px;height:70px}.x-profile-actions{position:absolute;top:139px;inset-inline-end:12px;display:flex;gap:7px}.x-profile-actions .follow-button{min-width:94px}.x-profile h2,.x-profile .handle,.x-profile>p:not(.handle){margin-inline:14px}.x-profile .handle{font-size:10px;color:#8b948c;margin-block:0 8px}.x-profile>p:not(.handle){font-size:10px;line-height:1.7}.x-profile .stat-row{justify-content:flex-start;gap:18px}
.search-bar{margin:12px;min-height:43px;border-radius:12px;background:#f0f1ed;display:flex;align-items:center;gap:8px;padding:0 12px;color:#7c877e}.search-bar span{font-size:19px}.search-bar input{width:100%;border:0;outline:none!important;background:transparent;color:#293f32;font-size:11px}.search-bar input::placeholder{color:#929b92}.search-bar:focus-within{box-shadow:0 0 0 2px #d4decf}.activity-list{padding:9px 13px}.section-kicker{color:#8c958b;font-size:10px;font-weight:600;margin:11px 0}.activity-list>button{width:100%;min-height:65px;display:flex;align-items:center;gap:10px;padding:9px 0;border:0;border-bottom:1px solid #f0eee7;background:none;text-align:right;color:#536258;font-size:10px}.activity-list>button span{flex:1;line-height:1.6}.activity-list>button small{display:block;color:#929a91}.activity-list>button>img:last-child{width:42px;height:48px;object-fit:cover;border-radius:6px}.menu-profile{display:flex;align-items:center;gap:12px;padding:17px;border-bottom:1px solid #eee}.menu-profile .account-avatar{width:44px;height:44px}.menu-profile small{display:block;color:#89938a;font-size:10px}.menu-link{width:calc(100% - 24px);margin:6px 12px;min-height:47px;padding:7px 12px;border:0;border-radius:10px;background:#f6f6f2;text-align:right;color:#435248;font-size:12px}.message-empty{min-height:340px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:28px}.message-empty>span{width:64px;height:64px;border:1px solid #dedfd8;border-radius:50%;display:grid;place-items:center;font-size:28px;color:#6d7b71}.message-empty h2{font-size:17px;margin:15px 0 3px}.message-empty p{font-size:11px;color:#7e8980;max-width:250px}.primary-button{background:#111;color:#fff;border-color:#111}.x-compose{display:flex;align-items:center;gap:12px;padding:13px;border-bottom:6px solid #f3f2ee}.x-compose .account-avatar{width:42px;height:42px}.x-compose>button{flex:1;text-align:right;min-height:46px;padding-inline:14px;border:0;border-radius:25px;background:#f4f4f1;color:#839087;font-size:12px}
.viewer{position:fixed;inset:0;z-index:50;display:none;align-items:center;justify-content:center;padding:18px}.viewer.open{display:flex}.viewer-backdrop{position:absolute;inset:0;border:0;background:rgba(8,28,20,.76);backdrop-filter:blur(5px)}.viewer-panel{position:relative;z-index:1;width:min(880px,96vw);max-height:min(90dvh,800px);border-radius:20px;background:#fffefa;overflow:auto;box-shadow:0 25px 80px rgba(0,0,0,.32);animation:appear .18s ease}.viewer-close{position:sticky;z-index:5;float:left;top:10px;margin:10px;width:42px;height:42px;border:0;border-radius:50%;background:rgba(255,255,255,.93);color:#183d2c;font-size:25px;box-shadow:0 3px 14px rgba(0,0,0,.13)}.viewer-content{min-height:250px}.detail-view{display:grid;grid-template-columns:minmax(260px,1.1fr) 1fr;min-height:420px}.detail-image{display:grid;place-items:center;background:#efede5;min-height:380px}.detail-image img{width:100%;height:100%;max-height:76dvh;object-fit:contain}.detail-copy{padding:34px 25px 24px}.detail-copy .post-header{padding-inline:0}.detail-copy h2{font:600 19px var(--serif);color:var(--green);margin:16px 0 8px}.detail-copy>p{font-size:12px;color:#5c6b60;line-height:1.9}.detail-preview-note{padding:10px;border-radius:8px;background:#f3f2e9;font-size:10px!important}.story-viewer{position:relative;width:min(420px,100%);height:min(730px,82dvh);min-height:420px;margin:auto;overflow:hidden;border-radius:16px;background:#19392c;color:white}.story-viewer>img{width:100%;height:100%;object-fit:cover}.story-progress{position:absolute;z-index:2;top:12px;left:12px;right:12px;display:flex;gap:3px}.story-progress span{height:3px;flex:1;border-radius:5px;background:rgba(255,255,255,.43)}.story-progress i{display:block;height:100%;width:0;background:#fff;border-radius:5px}.story-progress i.done{width:100%}.story-viewer header{position:absolute;z-index:2;top:23px;right:12px;display:flex;align-items:center;gap:7px}.story-viewer header .account-avatar{width:31px;height:31px;border-color:white}.story-viewer header strong{font-size:11px}.story-viewer header small{font-size:9px;color:#e2e4de}.story-zone{position:absolute;top:15%;bottom:20%;width:32%;border:0;background:transparent}.story-prev{right:0}.story-next{left:0}.story-viewer-caption{position:absolute;bottom:24px;right:18px;left:18px;display:flex;flex-direction:column;text-shadow:0 2px 9px rgba(0,0,0,.7)}.story-viewer-caption b{font-size:15px}.story-viewer-caption span{font-size:11px}.single-asset{padding:30px;display:flex;flex-direction:column;align-items:center;text-align:center}.single-asset img{max-height:62dvh;object-fit:contain;border-radius:13px}.single-asset h2{font-size:18px;color:var(--green);margin:15px 0 0}.single-asset p{font-size:11px;color:#7c867c}.toast{position:fixed;z-index:70;left:50%;bottom:22px;transform:translate(-50%,18px);max-width:calc(100vw - 30px);padding:11px 17px;border-radius:50px;background:#153e2e;color:#fff;font-size:11px;text-align:center;box-shadow:0 7px 22px rgba(0,0,0,.2);opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}.toast.show{opacity:1;transform:translate(-50%,0)}
@keyframes appear{from{opacity:0;transform:translateY(8px) scale(.99)}to{opacity:1;transform:none}}
@media(max-width:850px){.experience-grid{grid-template-columns:minmax(300px,410px);justify-content:center}.side-story{display:none}.simulator-layout{padding-top:12px}.phone-shell{height:min(800px,calc(100dvh - 172px))}}
@media(max-width:600px){html,body{width:100%;height:100%;min-height:0;overflow:hidden}.demo-header{height:46px;padding:0 13px;border-bottom:1px solid rgba(18,62,46,.08);background:rgba(248,246,239,.96)}.demo-brand{gap:8px}.demo-brand img{width:104px;height:38px}.demo-brand span{font-size:9px;padding-inline-start:8px}.demo-status{font-size:9px;gap:5px}.status-divider{display:none}.status-dot{width:6px;height:6px}.simulator-layout{height:calc(100dvh - 46px);min-height:0;padding:7px 0 0}.platform-dock{width:100%;margin:0;padding:0 10px 8px}.dock-label{display:none}.platform-switcher{gap:4px;padding:4px;border:0;border-radius:0;background:transparent;box-shadow:none}.platform-choice{min-height:48px;border:1px solid #e4e5dc;border-radius:12px;background:rgba(255,254,250,.76);font-size:12px;gap:6px}.platform-choice.active{background:var(--green);border-color:var(--green)}.choice-symbol{width:23px;height:23px;font-size:16px}.experience-grid{flex:1;min-height:0;display:flex;width:100%;align-items:stretch}.phone-shell{width:100%;max-width:none;height:100%;min-height:0;justify-self:stretch;grid-template-rows:22px minmax(0,1fr) 59px 11px;padding:0;border:0;border-radius:0;background:#fffefa;box-shadow:none}.phone-shell:before{display:none}.device-status-bar{padding:0 18px;border-radius:0;font-size:10px}.phone-screen{scrollbar-width:none}.phone-screen::-webkit-scrollbar{display:none}.app-toolbar{min-height:49px;padding-inline:12px}.story-strip{gap:10px;padding:11px 10px 9px}.story-chip{flex-basis:62px;min-width:62px;min-height:75px;font-size:9px}.story-ring{width:52px;height:52px}.post-header{min-height:53px;padding-inline:11px}.account-avatar{width:34px;height:34px;flex-basis:34px}.post-image-button img{max-height:none}.post-actions{min-height:45px}.post-caption-line{font-size:10px}.comments-link{font-size:9px}.bottom-nav{min-height:59px;padding:3px 5px calc(3px + env(safe-area-inset-bottom));position:relative}.nav-item{min-height:51px}.nav-icon{font-size:23px}.nav-item small{font-size:9px}.device-home-indicator span{height:4px;width:88px}.viewer{padding:0;align-items:flex-end}.viewer-panel{width:100%;max-width:560px;max-height:92dvh;border-radius:20px 20px 0 0;padding-bottom:env(safe-area-inset-bottom)}.viewer-close{position:fixed;top:12px;right:12px;float:none;margin:0;background:rgba(255,255,255,.95)}.detail-view{display:flex;flex-direction:column;min-height:0}.detail-image{min-height:38dvh;max-height:48dvh}.detail-image img{max-height:48dvh}.detail-copy{padding:8px 16px 16px}.detail-copy .post-header{min-height:47px}.detail-copy h2{font-size:16px;margin:8px 0 4px}.detail-copy>p{font-size:11px;margin-block:6px}.detail-copy .post-actions{padding-inline:0}.story-viewer{height:88dvh;min-height:0;width:min(100%,480px);border-radius:18px 18px 0 0}.single-asset{padding:22px 18px}.single-asset img{max-height:62dvh}.toast{bottom:calc(18px + env(safe-area-inset-bottom));font-size:11px}}
@media(max-width:370px){.demo-brand img{width:92px}.demo-brand span{font-size:8px}.demo-status{font-size:8px}.platform-choice{gap:4px;font-size:11px}.choice-symbol{width:21px;height:21px}.profile-identity{gap:11px;padding-inline:11px}.profile-large{width:72px;height:72px;flex-basis:72px}.post-actions{gap:0}.post-actions button{min-width:39px}.story-strip{gap:6px}.story-chip{flex-basis:59px;min-width:59px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}


/* Motion and rendering refinements */
button{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.platform-choice,.nav-item,.icon-button,.story-chip,.highlight-chip,.post-actions button{transition:background-color .16s ease,color .16s ease,transform .16s cubic-bezier(.2,.8,.2,1)}
.platform-choice:active,.nav-item:active,.icon-button:active,.story-chip:active,.highlight-chip:active,.post-actions button:active{transform:scale(.97)}
.phone-screen.screen-enter{animation:screen-enter .22s cubic-bezier(.2,.75,.25,1) both}
@keyframes screen-enter{from{opacity:.72;transform:translate3d(0,7px,0)}to{opacity:1;transform:translate3d(0,0,0)}}
.viewer.open{animation:overlay-enter .18s ease-out both}
.viewer-panel{animation:appear .24s cubic-bezier(.2,.8,.2,1) both}
@keyframes overlay-enter{from{opacity:0}to{opacity:1}}
.toast{transition:opacity .18s ease,transform .22s cubic-bezier(.2,.8,.2,1)}
@media(max-width:600px){.app-toolbar{backdrop-filter:none;background:#fffefa}.viewer-backdrop{backdrop-filter:none}}

/* Low-cost image placeholders: reserve the existing image dimensions and avoid shimmer/reflow. */
img.image-placeholder{background-color:#f1f0e9;background-image:linear-gradient(115deg,#f1f0e9 0%,#f8f7f2 48%,#eceae2 100%);background-size:100% 100%;}
img.image-placeholder.image-failed{background:#f1f0e9;background-image:none;}
img.image-ready{background:transparent;}


/* Compact landscape layout: keep the platform controls and full phone usable at short heights. */
@media (max-height:520px) and (min-width:601px){
  .demo-header{height:42px;padding-inline:14px}
  .demo-brand{gap:8px}
  .demo-brand img{width:110px;height:35px}
  .demo-brand span{font-size:9px;padding-inline-start:8px}
  .demo-status{font-size:9px}
  .simulator-layout{height:calc(100dvh - 42px);min-height:0;padding:6px 12px;display:grid;grid-template-columns:minmax(185px,1fr) minmax(0,410px);align-items:center;justify-content:center;gap:clamp(8px,2vw,18px)}
  .platform-dock{width:100%;margin:0}
  .platform-switcher{grid-template-columns:1fr;gap:5px}
  .platform-choice{min-height:44px}
  .experience-grid{width:100%;max-width:410px;height:100%;min-height:0;margin:0;grid-template-columns:minmax(0,410px);gap:0}
  .side-story{display:none}
  .phone-shell{width:100%;height:100%;min-height:0;grid-template-rows:22px minmax(0,1fr) 48px 8px;padding:6px;border-radius:28px}
  .phone-shell:before{top:8px;width:60px;height:12px}
  .bottom-nav{min-height:48px;padding-block:2px}
  .nav-item{min-height:43px}
}

/* Fit short laptop/tablet viewports without forcing the outer page to scroll. */
@media (max-height:800px) and (min-width:851px){
  .simulator-layout{padding-block:12px}
  .phone-shell{height:min(650px,calc(100dvh - 220px));min-height:0}
}
@media (max-height:760px) and (min-height:521px) and (min-width:601px) and (max-width:850px){
  .simulator-layout{padding-block:8px}
  .phone-shell{height:calc(100dvh - 190px);min-height:0}
}
@media (max-width:600px) and (max-height:520px){
  .demo-header{height:38px;padding-inline:10px}
  .demo-brand{gap:6px}
  .demo-brand img{width:90px;height:30px}
  .demo-brand span,.demo-status{font-size:8px}
  .demo-brand span{padding-inline-start:7px}
  .simulator-layout{height:calc(100dvh - 38px);padding:2px 0 0}
  .platform-dock{padding:0 8px 4px}
  .platform-switcher{gap:3px;padding:2px}
  .platform-choice{min-height:38px;gap:4px;font-size:10px}
  .choice-symbol{width:19px;height:19px;font-size:12px}
  .phone-shell{grid-template-rows:18px minmax(0,1fr) 44px 6px}
  .bottom-nav{min-height:44px;padding-block:1px}
  .nav-item{min-height:40px}
  .nav-icon{font-size:19px}
}
